Repository: andes2912/laundry Branch: 3.1 Commit: 6ad241378979 Files: 681 Total size: 14.3 MB Directory structure: gitextract_2jut_fdk/ ├── .circleci/ │ └── config.yml ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── FUNDING.yml │ └── ISSUE_TEMPLATE/ │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .styleci.yml ├── CODE_OF_CONDUCT.md ├── LICENSE ├── app/ │ ├── Console/ │ │ ├── Commands/ │ │ │ └── CreateAdminCommand.php │ │ └── Kernel.php │ ├── Exceptions/ │ │ └── Handler.php │ ├── Exports/ │ │ └── LaporanExport.php │ ├── Helpers/ │ │ └── Model.php │ ├── Http/ │ │ ├── Controllers/ │ │ │ ├── Admin/ │ │ │ │ ├── AdminController.php │ │ │ │ ├── CustomerController.php │ │ │ │ ├── DokumentasiController.php │ │ │ │ ├── FinanceController.php │ │ │ │ ├── KaryawanController.php │ │ │ │ ├── SettingsController.php │ │ │ │ └── TransaksiController.php │ │ │ ├── Auth/ │ │ │ │ ├── ForgotPasswordController.php │ │ │ │ ├── LoginController.php │ │ │ │ ├── RegisterController.php │ │ │ │ ├── ResetPasswordController.php │ │ │ │ └── VerificationController.php │ │ │ ├── Controller.php │ │ │ ├── Customer/ │ │ │ │ ├── ProfileController.php │ │ │ │ └── SettingController.php │ │ │ ├── FrontController.php │ │ │ ├── HomeController.php │ │ │ └── Karyawan/ │ │ │ ├── CustomerController.php │ │ │ ├── InvoiceController.php │ │ │ ├── LaporanController.php │ │ │ ├── PelayananController.php │ │ │ ├── ProfileController.php │ │ │ └── SettingsController.php │ │ ├── Kernel.php │ │ ├── Middleware/ │ │ │ ├── Authenticate.php │ │ │ ├── CheckForMaintenanceMode.php │ │ │ ├── EncryptCookies.php │ │ │ ├── RedirectIfAuthenticated.php │ │ │ ├── TrimStrings.php │ │ │ ├── TrustProxies.php │ │ │ └── VerifyCsrfToken.php │ │ └── Requests/ │ │ ├── AddCustomerRequest.php │ │ ├── AddKaryawanRequest.php │ │ ├── AddOrderRequest.php │ │ ├── HargaRequest.php │ │ ├── LoginRequest.php │ │ └── UpdateProfilRequest.php │ ├── Jobs/ │ │ ├── DoneCustomerJob.php │ │ ├── OrderCustomerJob.php │ │ └── RegisterCustomerJob.php │ ├── Mail/ │ │ ├── DoneCustomer.php │ │ ├── OrderCustomer.php │ │ └── RegisterCustomer.php │ ├── Models/ │ │ ├── Bank.php │ │ ├── DataBank.php │ │ ├── LaundrySetting.php │ │ ├── Notification.php │ │ ├── PageSettings.php │ │ ├── User.php │ │ ├── harga.php │ │ ├── notifications_setting.php │ │ └── transaksi.php │ ├── Notifications/ │ │ ├── OrderMasuk.php │ │ └── OrderSelesai.php │ └── Providers/ │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap/ │ ├── app.php │ └── cache/ │ └── .gitignore ├── composer.json ├── config/ │ ├── app.php │ ├── auth.php │ ├── broadcasting.php │ ├── cache.php │ ├── database.php │ ├── excel.php │ ├── filesystems.php │ ├── hashing.php │ ├── logging.php │ ├── mail.php │ ├── permission.php │ ├── queue.php │ ├── services.php │ ├── session.php │ ├── sweet-alert.php │ ├── sweetalert.php │ └── view.php ├── database/ │ ├── .gitignore │ ├── factories/ │ │ └── UserFactory.php │ ├── migrations/ │ │ ├── 2014_10_12_000000_create_users_table.php │ │ ├── 2014_10_12_100000_create_password_resets_table.php │ │ ├── 2019_05_24_091904_create_transaksis_table.php │ │ ├── 2019_05_24_094505_create_hargas_table.php │ │ ├── 2021_03_19_231220_create_page_settings_table.php │ │ ├── 2021_03_21_124956_add_theme_to_users_table.php │ │ ├── 2021_03_22_001021_create_laundry_settings_table.php │ │ ├── 2021_05_07_100208_create_permission_tables.php │ │ ├── 2021_05_07_135323_create_data_banks_table.php │ │ ├── 2021_05_07_155403_add_field_in_transaksi.php │ │ ├── 2021_05_11_130732_create_notifications_settings_table.php │ │ ├── 2021_08_08_100000_create_banks_tables.php │ │ ├── 2021_12_30_231550_add_field_username_telegram_channel_to_notifications_settings_table.php │ │ ├── 2022_01_28_171610_add_field_foto_to_users_table.php │ │ ├── 2022_01_29_185408_add_field_token_wa_to_notifications_settings_table.php │ │ ├── 2022_01_31_105111_update_field_auth_in_users_table.php │ │ ├── 2022_01_31_112034_add_field_karyawan_id_wa_in_users_table.php │ │ ├── 2022_02_02_220553_create_jobs_table.php │ │ ├── 2022_02_02_231121_create_failed_jobs_table.php │ │ ├── 2022_02_03_144826_add_field_point_in_users_table.php │ │ └── 2022_09_27_125933_create_notifications_table.php │ └── seeders/ │ ├── DatabaseSeeder.php │ ├── IndoBankSeeder.php │ ├── RoleSeeder.php │ ├── SettingPageSeeder.php │ └── addRoleSeeder.php ├── package.json ├── phpunit.xml ├── public/ │ ├── .htaccess │ ├── backend/ │ │ ├── css/ │ │ │ ├── bootstrap-extended.css │ │ │ ├── bootstrap.css │ │ │ ├── colors.css │ │ │ ├── components.css │ │ │ ├── core/ │ │ │ │ ├── colors/ │ │ │ │ │ ├── palette-gradient.css │ │ │ │ │ ├── palette-noui.css │ │ │ │ │ └── palette-variables.css │ │ │ │ ├── menu/ │ │ │ │ │ └── menu-types/ │ │ │ │ │ ├── horizontal-menu.css │ │ │ │ │ ├── vertical-menu.css │ │ │ │ │ └── vertical-overlay-menu.css │ │ │ │ └── mixins/ │ │ │ │ ├── alert.css │ │ │ │ ├── hex2rgb.css │ │ │ │ ├── main-menu-mixin.css │ │ │ │ └── transitions.css │ │ │ ├── pages/ │ │ │ │ ├── aggrid.css │ │ │ │ ├── app-chat.css │ │ │ │ ├── app-ecommerce-details.css │ │ │ │ ├── app-ecommerce-shop.css │ │ │ │ ├── app-email.css │ │ │ │ ├── app-todo.css │ │ │ │ ├── app-user.css │ │ │ │ ├── app-users.css │ │ │ │ ├── authentication.css │ │ │ │ ├── card-analytics.css │ │ │ │ ├── colors.css │ │ │ │ ├── coming-soon.css │ │ │ │ ├── dashboard-analytics.css │ │ │ │ ├── dashboard-ecommerce.css │ │ │ │ ├── data-list-view.css │ │ │ │ ├── error.css │ │ │ │ ├── faq.css │ │ │ │ ├── invoice.css │ │ │ │ ├── knowledge-base.css │ │ │ │ ├── page-auth.css │ │ │ │ ├── register.css │ │ │ │ ├── search.css │ │ │ │ ├── timeline.css │ │ │ │ ├── user-settings.css │ │ │ │ └── users.css │ │ │ ├── plugins/ │ │ │ │ ├── animate/ │ │ │ │ │ └── animate.css │ │ │ │ ├── extensions/ │ │ │ │ │ ├── context-menu.css │ │ │ │ │ ├── drag-and-drop.css │ │ │ │ │ ├── media-plyr.css │ │ │ │ │ ├── noui-slider.css │ │ │ │ │ ├── swiper.css │ │ │ │ │ └── toastr.css │ │ │ │ ├── forms/ │ │ │ │ │ ├── extended/ │ │ │ │ │ │ └── typeahed.css │ │ │ │ │ ├── form-inputs-groups.css │ │ │ │ │ ├── validation/ │ │ │ │ │ │ └── form-validation.css │ │ │ │ │ └── wizard.css │ │ │ │ ├── loaders/ │ │ │ │ │ ├── animations/ │ │ │ │ │ │ ├── ball-beat.css │ │ │ │ │ │ ├── ball-clip-rotate-multiple.css │ │ │ │ │ │ ├── ball-clip-rotate-pulse.css │ │ │ │ │ │ ├── ball-clip-rotate.css │ │ │ │ │ │ ├── ball-grid-beat.css │ │ │ │ │ │ ├── ball-grid-pulse.css │ │ │ │ │ │ ├── ball-pulse-rise.css │ │ │ │ │ │ ├── ball-pulse-round.css │ │ │ │ │ │ ├── ball-pulse-sync.css │ │ │ │ │ │ ├── ball-pulse.css │ │ │ │ │ │ ├── ball-rotate.css │ │ │ │ │ │ ├── ball-scale-multiple.css │ │ │ │ │ │ ├── ball-scale-random.css │ │ │ │ │ │ ├── ball-scale-ripple-multiple.css │ │ │ │ │ │ ├── ball-scale-ripple.css │ │ │ │ │ │ ├── ball-scale.css │ │ │ │ │ │ ├── ball-spin-fade-loader.css │ │ │ │ │ │ ├── ball-spin-loader.css │ │ │ │ │ │ ├── ball-triangle-trace.css │ │ │ │ │ │ ├── ball-zig-zag-deflect.css │ │ │ │ │ │ ├── ball-zig-zag.css │ │ │ │ │ │ ├── cube-transition.css │ │ │ │ │ │ ├── line-scale-pulse-out-rapid.css │ │ │ │ │ │ ├── line-scale-pulse-out.css │ │ │ │ │ │ ├── line-scale-random.css │ │ │ │ │ │ ├── line-scale.css │ │ │ │ │ │ ├── line-spin-fade-loader.css │ │ │ │ │ │ ├── pacman.css │ │ │ │ │ │ ├── semi-circle-spin.css │ │ │ │ │ │ ├── square-spin.css │ │ │ │ │ │ └── triangle-skew-spin.css │ │ │ │ │ └── loaders.css │ │ │ │ ├── pickers/ │ │ │ │ │ └── bootstrap-datetimepicker-build.css │ │ │ │ └── ui/ │ │ │ │ └── coming-soon.css │ │ │ └── themes/ │ │ │ ├── dark-layout.css │ │ │ └── semi-dark-layout.css │ │ ├── fonts/ │ │ │ ├── feather/ │ │ │ │ └── iconfont.css │ │ │ ├── flag-icon-css/ │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── css/ │ │ │ │ │ └── flag-icon.css │ │ │ │ └── sass/ │ │ │ │ ├── flag-icon-base.scss │ │ │ │ ├── flag-icon-list.scss │ │ │ │ ├── flag-icon-more.scss │ │ │ │ ├── flag-icon.scss │ │ │ │ └── variables.scss │ │ │ └── font-awesome/ │ │ │ ├── css/ │ │ │ │ └── font-awesome.css │ │ │ └── fonts/ │ │ │ └── FontAwesome.otf │ │ ├── js/ │ │ │ ├── core/ │ │ │ │ ├── app-menu.js │ │ │ │ └── app.js │ │ │ └── scripts/ │ │ │ ├── ag-grid/ │ │ │ │ └── ag-grid.js │ │ │ ├── cards/ │ │ │ │ ├── card-analytics.js │ │ │ │ └── card-statistics.js │ │ │ ├── charts/ │ │ │ │ ├── chart-apex.js │ │ │ │ ├── chart-chartjs.js │ │ │ │ ├── chart-echart.js │ │ │ │ └── gmaps/ │ │ │ │ └── maps.js │ │ │ ├── components.js │ │ │ ├── customizer.js │ │ │ ├── datatables/ │ │ │ │ └── datatable.js │ │ │ ├── documentation.js │ │ │ ├── editors/ │ │ │ │ └── editor-quill.js │ │ │ ├── extensions/ │ │ │ │ ├── context-menu.js │ │ │ │ ├── copy-to-clipboard.js │ │ │ │ ├── drag-drop.js │ │ │ │ ├── dropzone.js │ │ │ │ ├── fullcalendar.js │ │ │ │ ├── i18n.js │ │ │ │ ├── media-plyr.js │ │ │ │ ├── noui-slider.js │ │ │ │ ├── sweet-alerts.js │ │ │ │ ├── swiper.js │ │ │ │ ├── toastr.js │ │ │ │ ├── tour.js │ │ │ │ └── unslider.js │ │ │ ├── footer.js │ │ │ ├── forms/ │ │ │ │ ├── basic-inputs.js │ │ │ │ ├── form-maxlength.js │ │ │ │ ├── form-tooltip-valid.js │ │ │ │ ├── number-input.js │ │ │ │ ├── select/ │ │ │ │ │ └── form-select2.js │ │ │ │ ├── validation/ │ │ │ │ │ └── form-validation.js │ │ │ │ └── wizard-steps.js │ │ │ ├── modal/ │ │ │ │ └── components-modal.js │ │ │ ├── navs/ │ │ │ │ └── navs.js │ │ │ ├── pages/ │ │ │ │ ├── 3-columns-left-sidebar.js │ │ │ │ ├── account-setting.js │ │ │ │ ├── app-chat.js │ │ │ │ ├── app-ecommerce-details.js │ │ │ │ ├── app-ecommerce-shop.js │ │ │ │ ├── app-email.js │ │ │ │ ├── app-todo.js │ │ │ │ ├── app-user.js │ │ │ │ ├── bootstrap-toast.js │ │ │ │ ├── coming-soon.js │ │ │ │ ├── content-sidebar.js │ │ │ │ ├── dashboard-analytics.js │ │ │ │ ├── dashboard-ecommerce.js │ │ │ │ ├── faq-kb.js │ │ │ │ ├── invoice.js │ │ │ │ ├── page-auth-reset-password.js │ │ │ │ ├── sk-content-sidebar.js │ │ │ │ ├── user-profile.js │ │ │ │ └── user-settings.js │ │ │ ├── pagination/ │ │ │ │ └── pagination.js │ │ │ ├── pickers/ │ │ │ │ └── dateTime/ │ │ │ │ └── pick-a-datetime.js │ │ │ ├── popover/ │ │ │ │ └── popover.js │ │ │ ├── tooltip/ │ │ │ │ └── tooltip.js │ │ │ └── ui/ │ │ │ └── data-list-view.js │ │ └── vendors/ │ │ ├── css/ │ │ │ ├── animate/ │ │ │ │ └── animate.css │ │ │ ├── charts/ │ │ │ │ └── apexcharts.css │ │ │ ├── documentation.css │ │ │ ├── extensions/ │ │ │ │ ├── dataTables.checkboxes.css │ │ │ │ ├── pace.css │ │ │ │ ├── plyr.css │ │ │ │ ├── shepherd-theme-default.css │ │ │ │ ├── tether-theme-arrows.css │ │ │ │ ├── toastr.css │ │ │ │ └── unslider.css │ │ │ ├── forms/ │ │ │ │ ├── select/ │ │ │ │ │ └── select2.css │ │ │ │ ├── spinner/ │ │ │ │ │ └── jquery.bootstrap-touchspin.css │ │ │ │ └── toggle/ │ │ │ │ └── switchery.css │ │ │ ├── modal/ │ │ │ │ ├── facebook.css │ │ │ │ ├── google.css │ │ │ │ └── twitter.css │ │ │ ├── pickers/ │ │ │ │ └── pickadate/ │ │ │ │ ├── classic.css │ │ │ │ ├── classic.date.css │ │ │ │ ├── classic.time.css │ │ │ │ ├── default.css │ │ │ │ ├── default.time.css │ │ │ │ └── pickadate.css │ │ │ ├── tables/ │ │ │ │ ├── ag-grid/ │ │ │ │ │ ├── ag-grid.css │ │ │ │ │ └── ag-theme-material.css │ │ │ │ └── datatable/ │ │ │ │ └── extensions/ │ │ │ │ └── dataTables.checkboxes.css │ │ │ └── ui/ │ │ │ └── prism-treeview.css │ │ └── js/ │ │ ├── charts/ │ │ │ ├── apexcharts.js │ │ │ └── echarts/ │ │ │ └── echarts.js │ │ ├── extensions/ │ │ │ ├── lang-all.js │ │ │ ├── locale-all.js │ │ │ ├── transition.js │ │ │ └── wNumb.js │ │ ├── forms/ │ │ │ ├── extended/ │ │ │ │ ├── maxlength/ │ │ │ │ │ └── bootstrap-maxlength.js │ │ │ │ └── typeahead/ │ │ │ │ └── handlebars.js │ │ │ ├── select/ │ │ │ │ ├── select2.full.js │ │ │ │ └── select2.js │ │ │ ├── spinner/ │ │ │ │ └── jquery.bootstrap-touchspin.js │ │ │ ├── toggle/ │ │ │ │ └── switchery.js │ │ │ └── validation/ │ │ │ └── jqBootstrapValidation.js │ │ ├── media/ │ │ │ ├── plyr.js │ │ │ └── plyr.polyfilled.js │ │ ├── pickers/ │ │ │ └── pickadate/ │ │ │ ├── legacy.js │ │ │ ├── picker.date.js │ │ │ ├── picker.js │ │ │ └── picker.time.js │ │ ├── tables/ │ │ │ ├── ag-grid/ │ │ │ │ └── ag-grid-community.min.noStyle.js │ │ │ └── datatable/ │ │ │ └── vfs_fonts.js │ │ ├── ui/ │ │ │ ├── affix.js │ │ │ ├── jquery-sliding-menu.js │ │ │ ├── jquery.matchHeight-min.js │ │ │ ├── jquery.sticky.js │ │ │ └── prism-treeview.js │ │ └── vendors.js │ ├── frontend/ │ │ ├── crossbrowserjs/ │ │ │ └── html5shiv.js │ │ ├── css/ │ │ │ └── forum/ │ │ │ ├── style-responsive.css │ │ │ ├── style.css │ │ │ └── theme/ │ │ │ ├── blue.css │ │ │ ├── default.css │ │ │ ├── orange.css │ │ │ ├── purple.css │ │ │ └── red.css │ │ ├── js/ │ │ │ ├── forum/ │ │ │ │ ├── apps.js │ │ │ │ └── forum-details-page.js │ │ │ └── swal/ │ │ │ └── sweetalert2.js │ │ └── plugins/ │ │ ├── animate/ │ │ │ └── animate.css │ │ ├── bootstrap3/ │ │ │ ├── css/ │ │ │ │ ├── bootstrap-theme.css │ │ │ │ └── bootstrap.css │ │ │ └── js/ │ │ │ ├── bootstrap.js │ │ │ └── npm.js │ │ ├── bootstrap4/ │ │ │ ├── css/ │ │ │ │ ├── bootstrap-grid.css │ │ │ │ ├── bootstrap-reboot.css │ │ │ │ └── bootstrap.css │ │ │ └── js/ │ │ │ ├── bootstrap.bundle.js │ │ │ └── bootstrap.js │ │ ├── font-awesome/ │ │ │ ├── css/ │ │ │ │ └── font-awesome.css │ │ │ ├── fonts/ │ │ │ │ └── FontAwesome.otf │ │ │ ├── less/ │ │ │ │ ├── animated.less │ │ │ │ ├── bordered-pulled.less │ │ │ │ ├── core.less │ │ │ │ ├── fixed-width.less │ │ │ │ ├── font-awesome.less │ │ │ │ ├── icons.less │ │ │ │ ├── larger.less │ │ │ │ ├── list.less │ │ │ │ ├── mixins.less │ │ │ │ ├── path.less │ │ │ │ ├── rotated-flipped.less │ │ │ │ ├── screen-reader.less │ │ │ │ ├── stacked.less │ │ │ │ └── variables.less │ │ │ └── scss/ │ │ │ ├── _animated.scss │ │ │ ├── _bordered-pulled.scss │ │ │ ├── _core.scss │ │ │ ├── _fixed-width.scss │ │ │ ├── _icons.scss │ │ │ ├── _larger.scss │ │ │ ├── _list.scss │ │ │ ├── _mixins.scss │ │ │ ├── _path.scss │ │ │ ├── _rotated-flipped.scss │ │ │ ├── _screen-reader.scss │ │ │ ├── _stacked.scss │ │ │ ├── _variables.scss │ │ │ └── font-awesome.scss │ │ ├── jquery/ │ │ │ ├── jquery-1.9.1.js │ │ │ └── jquery-migrate-1.1.0.js │ │ ├── jquery-cookie/ │ │ │ └── jquery.cookie.js │ │ ├── js-cookie/ │ │ │ └── js.cookie.js │ │ ├── pace/ │ │ │ ├── .hsdoc │ │ │ ├── Gruntfile.coffee │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bower.json │ │ │ ├── docs/ │ │ │ │ ├── intro.md │ │ │ │ ├── lib/ │ │ │ │ │ ├── color.js │ │ │ │ │ ├── themes.coffee │ │ │ │ │ └── themes.js │ │ │ │ ├── resources/ │ │ │ │ │ ├── barber-pole-orange.css │ │ │ │ │ ├── flash-white.css │ │ │ │ │ └── templates/ │ │ │ │ │ ├── index.jade │ │ │ │ │ └── page.jade │ │ │ │ └── welcome/ │ │ │ │ └── index.html │ │ │ ├── install.json │ │ │ ├── pace.coffee │ │ │ ├── pace.js │ │ │ ├── package.json │ │ │ ├── templates/ │ │ │ │ ├── pace-theme-barber-shop.tmpl.css │ │ │ │ ├── pace-theme-big-counter.tmpl.css │ │ │ │ ├── pace-theme-bounce.tmpl.css │ │ │ │ ├── pace-theme-center-atom.tmpl.css │ │ │ │ ├── pace-theme-center-circle.tmpl.css │ │ │ │ ├── pace-theme-center-radar.tmpl.css │ │ │ │ ├── pace-theme-center-simple.tmpl.css │ │ │ │ ├── pace-theme-corner-indicator.tmpl.css │ │ │ │ ├── pace-theme-fill-left.tmpl.css │ │ │ │ ├── pace-theme-flash.tmpl.css │ │ │ │ ├── pace-theme-flat-top.tmpl.css │ │ │ │ ├── pace-theme-loading-bar.tmpl.css │ │ │ │ ├── pace-theme-mac-osx.tmpl.css │ │ │ │ └── pace-theme-minimal.tmpl.css │ │ │ ├── tests/ │ │ │ │ └── demo.html │ │ │ └── themes/ │ │ │ ├── black/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── blue/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── green/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── orange/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── pace-theme-barber-shop.css │ │ │ ├── pace-theme-big-counter.css │ │ │ ├── pace-theme-bounce.css │ │ │ ├── pace-theme-center-atom.css │ │ │ ├── pace-theme-center-circle.css │ │ │ ├── pace-theme-center-radar.css │ │ │ ├── pace-theme-center-simple.css │ │ │ ├── pace-theme-corner-indicator.css │ │ │ ├── pace-theme-fill-left.css │ │ │ ├── pace-theme-flash.css │ │ │ ├── pace-theme-flat-top.css │ │ │ ├── pace-theme-loading-bar.css │ │ │ ├── pace-theme-mac-osx.css │ │ │ ├── pace-theme-minimal.css │ │ │ ├── pink/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── purple/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── red/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── silver/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ ├── white/ │ │ │ │ ├── pace-theme-barber-shop.css │ │ │ │ ├── pace-theme-big-counter.css │ │ │ │ ├── pace-theme-bounce.css │ │ │ │ ├── pace-theme-center-atom.css │ │ │ │ ├── pace-theme-center-circle.css │ │ │ │ ├── pace-theme-center-radar.css │ │ │ │ ├── pace-theme-center-simple.css │ │ │ │ ├── pace-theme-corner-indicator.css │ │ │ │ ├── pace-theme-fill-left.css │ │ │ │ ├── pace-theme-flash.css │ │ │ │ ├── pace-theme-flat-top.css │ │ │ │ ├── pace-theme-loading-bar.css │ │ │ │ ├── pace-theme-mac-osx.css │ │ │ │ └── pace-theme-minimal.css │ │ │ └── yellow/ │ │ │ ├── pace-theme-barber-shop.css │ │ │ ├── pace-theme-big-counter.css │ │ │ ├── pace-theme-bounce.css │ │ │ ├── pace-theme-center-atom.css │ │ │ ├── pace-theme-center-circle.css │ │ │ ├── pace-theme-center-radar.css │ │ │ ├── pace-theme-center-simple.css │ │ │ ├── pace-theme-corner-indicator.css │ │ │ ├── pace-theme-fill-left.css │ │ │ ├── pace-theme-flash.css │ │ │ ├── pace-theme-flat-top.css │ │ │ ├── pace-theme-loading-bar.css │ │ │ ├── pace-theme-mac-osx.css │ │ │ └── pace-theme-minimal.css │ │ └── scrollMonitor/ │ │ ├── MIT-LICENSE.txt │ │ ├── README.md │ │ ├── bower.json │ │ ├── demos/ │ │ │ ├── fixed.html │ │ │ ├── list.html │ │ │ ├── listdata.json │ │ │ ├── scoreboard.html │ │ │ └── stress.html │ │ ├── package.json │ │ └── scrollMonitor.js │ ├── index.php │ ├── js/ │ │ └── app.js │ ├── mix-manifest.json │ ├── robots.txt │ └── web.config ├── readme.md ├── resources/ │ ├── js/ │ │ ├── app.js │ │ ├── bootstrap.js │ │ └── components/ │ │ ├── Contentone.vue │ │ └── contentwo.vue │ ├── lang/ │ │ └── en/ │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php │ ├── sass/ │ │ ├── _variables.scss │ │ └── app.scss │ └── views/ │ ├── auth/ │ │ ├── login.blade.php │ │ ├── passwords/ │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ └── verify.blade.php │ ├── customer/ │ │ ├── index.blade.php │ │ ├── profile/ │ │ │ └── index.blade.php │ │ └── setting/ │ │ └── index.blade.php │ ├── emails/ │ │ ├── done.blade.php │ │ ├── orders.blade.php │ │ └── register.blade.php │ ├── errors/ │ │ ├── 404.blade.php │ │ └── 500.blade.php │ ├── frontend/ │ │ ├── banner.blade.php │ │ ├── content.blade.php │ │ ├── footer.blade.php │ │ ├── header.blade.php │ │ ├── index.blade.php │ │ └── modal.blade.php │ ├── karyawan/ │ │ ├── customer/ │ │ │ ├── create.blade.php │ │ │ ├── detail.blade.php │ │ │ └── index.blade.php │ │ ├── index.blade.php │ │ ├── laporan/ │ │ │ ├── cetak.blade.php │ │ │ ├── excelExport.blade.php │ │ │ ├── index.blade.php │ │ │ └── invoice.blade.php │ │ ├── profile/ │ │ │ └── index.blade.php │ │ ├── settings/ │ │ │ └── index.blade.php │ │ └── transaksi/ │ │ ├── addorder.blade.php │ │ └── order.blade.php │ ├── layouts/ │ │ ├── auth.blade.php │ │ ├── backend.blade.php │ │ ├── error.blade.php │ │ └── frontend.blade.php │ └── modul_admin/ │ ├── customer/ │ │ ├── index.blade.php │ │ ├── infoCustomer.blade.php │ │ └── jmltransaksi.blade.php │ ├── doc/ │ │ ├── index.blade.php │ │ ├── notifikasi.blade.php │ │ ├── penggunaan.blade.php │ │ ├── tentang.blade.php │ │ └── version.blade.php │ ├── finance/ │ │ └── index.blade.php │ ├── index.blade.php │ ├── laundri/ │ │ ├── editharga.blade.php │ │ └── harga.blade.php │ ├── pengguna/ │ │ ├── addkry.blade.php │ │ └── kry.blade.php │ ├── setting/ │ │ ├── index.blade.php │ │ ├── modal.blade.php │ │ └── profile.blade.php │ └── transaksi/ │ ├── index.blade.php │ └── invoice.blade.php ├── routes/ │ ├── api.php │ ├── channels.php │ ├── console.php │ └── web.php ├── server.php ├── storage/ │ ├── app/ │ │ └── .gitignore │ ├── framework/ │ │ ├── .gitignore │ │ ├── cache/ │ │ │ └── .gitignore │ │ ├── sessions/ │ │ │ └── .gitignore │ │ ├── testing/ │ │ │ └── .gitignore │ │ └── views/ │ │ └── .gitignore │ └── logs/ │ └── .gitignore ├── stubs/ │ ├── export.model.stub │ ├── export.plain.stub │ ├── export.query-model.stub │ ├── export.query.stub │ ├── import.collection.stub │ └── import.model.stub ├── tests/ │ ├── CreatesApplication.php │ ├── Feature/ │ │ └── ExampleTest.php │ ├── TestCase.php │ └── Unit/ │ └── ExampleTest.php └── webpack.mix.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .circleci/config.yml ================================================ # Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 # Use a package of configuration called an orb. orbs: # Declare a dependency on the welcome-orb welcome: circleci/welcome-orb@0.4.1 # Orchestrate or schedule a set of jobs workflows: # Name the workflow "welcome" welcome: # Run the welcome/run job in its own container jobs: - welcome/run ================================================ FILE: .editorconfig ================================================ root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false [*.yml] indent_size = 2 ================================================ FILE: .gitattributes ================================================ * text=auto *.css linguist-vendored *.scss linguist-vendored *.js linguist-vendored CHANGELOG.md export-ignore ================================================ FILE: .github/FUNDING.yml ================================================ github: [andes2912] custom: ["https://saweria.co/andes2912"] ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here. ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. ================================================ FILE: .gitignore ================================================ /node_modules /public/hot /public/storage /storage/*.key /vendor .env .phpunit.result.cache Homestead.json Homestead.yaml npm-debug.log yarn-error.log ================================================ FILE: .styleci.yml ================================================ php: preset: laravel disabled: - unused_use finder: not-name: - index.php - server.php js: finder: not-name: - webpack.mix.js css: true ================================================ FILE: CODE_OF_CONDUCT.md ================================================ # Citizen Code of Conduct ## 1. Purpose A primary goal of Laundry is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof). This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior. We invite all those who participate in Laundry to help us create safe and positive experiences for everyone. ## 2. Open [Source/Culture/Tech] Citizenship A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community. Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society. If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know. ## 3. Expected Behavior The following behaviors are expected and requested of all community members: * Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. * Exercise consideration and respect in your speech and actions. * Attempt collaboration before conflict. * Refrain from demeaning, discriminatory, or harassing behavior and speech. * Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. * Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. ## 4. Unacceptable Behavior The following behaviors are considered harassment and are unacceptable within our community: * Violence, threats of violence or violent language directed against another person. * Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. * Posting or displaying sexually explicit or violent material. * Posting or threatening to post other people's personally identifying information ("doxing"). * Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. * Inappropriate photography or recording. * Inappropriate physical contact. You should have someone's consent before touching them. * Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. * Deliberate intimidation, stalking or following (online or in person). * Advocating for, or encouraging, any of the above behavior. * Sustained disruption of community events, including talks and presentations. ## 5. Weapons Policy No weapons will be allowed at Laundry events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter. ## 6. Consequences of Unacceptable Behavior Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated. Anyone asked to stop unacceptable behavior is expected to comply immediately. If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event). ## 7. Reporting Guidelines If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. andridesmana29@outlook.com. Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress. ## 8. Addressing Grievances If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. ## 9. Scope We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business. This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members. ## 10. Contact info andridesmana29@outlook.com ## 11. License and attribution The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy). _Revision 2.3. Posted 6 March 2017._ _Revision 2.2. Posted 4 February 2016._ _Revision 2.1. Posted 23 June 2014._ _Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._ ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2021 Andri Desmana Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: app/Console/Commands/CreateAdminCommand.php ================================================ ask("Nama untuk Administrator"); $admin['email'] = $this->ask("Email untuk Administrator"); $admin['status'] = 'Active'; $admin['auth'] = 'Admin'; $admin['password'] = $this->secret("Password untuk Administrator"); $admin['password_confirmation'] = $this->secret("Konfirmasi Password untuk Administrator"); $cekUser = User::where('email', $admin['email'])->where('auth','Admin')->first(); if($cekUser) { $this->error("User Administrator sudah dibuat!"); return -1; } $validator = Validator::make($admin,[ 'name' => ['required','string','max:255'], 'email' => ['required','string','email','max:255','unique:'.User::class], 'password' => ['required','confirmed',Password::defaults()] ]); if ($validator->fails()) { foreach ($validator->errors()->all() as $error) { $this->error($error); } return -1; } DB::transaction(function() use($admin, $cekUser){ $role = Role::firstOrNew(['name' => 'Admin']); $role->name = 'Admin'; $role->save(); $admin['password'] = bcrypt($admin['password']); $newAdmin = User::create($admin); $newAdmin->assignRole('Admin'); $getIdAdmin = User::where('auth','Admin')->first(); $setting = new LaundrySetting; $setting->user_id = $getIdAdmin->id; $setting->target_day = 0; $setting->target_month = 0; $setting->target_year = 0; $setting->save(); $notif = new notifications_setting; $notif->user_id = $setting->user_id; $notif->telegram_order_masuk = 0; $notif->telegram_order_selesai = 0; $notif->email = 0; $notif->save(); }); $this->info("User " .$admin['email']. " Berhasil dibuat :)"); } } ================================================ FILE: app/Console/Kernel.php ================================================ command('inspire') // ->hourly(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } } ================================================ FILE: app/Exceptions/Handler.php ================================================ get(); return view( 'karyawan.laporan.excelExport', [ 'data' => $data ] ); } } ================================================ FILE: app/Helpers/Model.php ================================================ first(); $email_customer = !empty($data) ? $data->email : 'Not Found'; return $email_customer; } } // Get Nama Customer by id if (! function_exists('namaCustomer')) { function namaCustomer($id=0) { $model = new User; $data = $model::where('id',$id)->first(); $name = !empty($data) ? $data->name : 'Not Found'; return $name; } } // Setting Email Notifications if (! function_exists('setNotificationEmail')) { function setNotificationEmail($id='') { $model = new notifications_setting; $data = $model::where('email',$id)->first(); $email = $data ? $data->email : 'Email Notification Aktif Tidak'; return $email; } } // Setting Telegram Order Masuk Notifications if (! function_exists('setNotificationTelegramIn')) { function setNotificationTelegramIn($id='') { $model = new notifications_setting; $data = $model::where('telegram_order_masuk',$id)->first(); $teleIn = $data ? $data->telegram_order_masuk : 'Telegram Notification Order Masuk Tidak Aktif'; return $teleIn; } } // Setting Telegram Order Selesai Notifications if (! function_exists('setNotificationTelegramFinish')) { function setNotificationTelegramFinish($id='') { $model = new notifications_setting; $data = $model::where('telegram_order_selesai',$id)->first(); $teleFininsh = $data ? $data->telegram_order_selesai : 'Telegram Notification Order Selesai Tidak Aktif'; return $teleFininsh; } } // Get Telegram Channel untuk order masuk if (! function_exists('telegram_channel_masuk')) { function telegram_channel_masuk() { $model = new notifications_setting; $data = $model::first(); $channel_masuk = $data ? $data->telegram_channel_masuk : NULL; return $channel_masuk; } } // Get Telegram Channel untuk order selesai if (! function_exists('telegram_channel_selesai')) { function telegram_channel_selesai() { $model = new notifications_setting; $data = $model::first(); $channel_selesai = $data ? $data->telegram_channel_selesai : NULL; return $channel_selesai; } } // Setting WhatsApp Notification order selesai if (! function_exists('setNotificationWhatsappOrderSelesai')) { function setNotificationWhatsappOrderSelesai($id='') { $model = new notifications_setting; $data = $model::where('wa_order_selesai',$id)->first(); $whatsappFinish = $data ? $data->wa_order_selesai : 'WhatsApp Notification Order Selesai Tidak Aktif'; return $whatsappFinish; } } // Get WhatsApp Notifikasi order selesai if (! function_exists('wa_order_selesai')) { function wa_order_selesai() { $model = new notifications_setting; $data = $model::first(); $channel_selesai = $data ? $data->wa_order_selesai : NULL; return $channel_selesai; } } // Get Token WhatsApp if (! function_exists('getTokenWhatsapp')) { function getTokenWhatsapp() { $model = new notifications_setting; $data = $model::first(); $channel_selesai = $data ? $data->wa_token : NULL; return $channel_selesai; } } // Notifikasi Whatsapp if (! function_exists('notificationWhatsapp')) { function notificationWhatsapp($token,$waphone,$pesan) { $apiURL = 'https://api.kirimwa.id/v1/messages'; $client = new \GuzzleHttp\Client(); $response = $client->request('POST', $apiURL, [ 'headers'=> [ 'Authorization' => 'Bearer ' . $token, 'Content-Type' => 'application/json' ], 'body' => json_encode([ 'message' => $pesan, 'phone_number' => $waphone, 'message_type' => 'text', 'device_id' => 'iphone' // isi dengan device_id kalian ]), ]); $statusCode = $response->getStatusCode(); $responseBody = json_decode($response->getBody(), true); } } // Get Notifikasi function getNotifikasi($user_id) { $model = new Notification; $data = $model::where('user_id',$user_id)->where('is_read',0)->orderBy('created_at','desc')->get(); return $data; } // Send Notif function sendNotification($id=null, $user_id=null, $kategori=null, $title=null, $body=null) { $notif = new Notification; $notif->transaksi_id = $id ?? null; $notif->user_id = $user_id ?? null; $notif->kategori = $kategori; $notif->title = $title; $notif->body = $body; $notif->save(); return $notif; } ================================================ FILE: app/Http/Controllers/Admin/AdminController.php ================================================ get(); return view('modul_admin.pengguna.admin', compact('adm')); } // Profile public function profile() { $profile = User::where('id',Auth::id())->first(); return view('modul_admin.setting.profile', compact('profile')); } // Proses edit profile public function edit_profile(Request $request) { $profile = User::find($request->id_profile); $profile->update([ 'name' => $request->name, 'email' => $request->email ]); Session::flash('success','Update Profile Berhasil'); return $profile; } } ================================================ FILE: app/Http/Controllers/Admin/CustomerController.php ================================================ get(); return view('modul_admin.customer.index', compact('customer')); } public function show($id) { $customer = User::with('transaksiCustomer')->where('id',$id)->first(); return view('modul_admin.customer.infoCustomer', compact('customer')); } } ================================================ FILE: app/Http/Controllers/Admin/DokumentasiController.php ================================================ select('bulan', DB::raw('sum(harga_akhir) AS jml')) ->whereYear('created_at','=',date("Y", strtotime(now()))) ->whereMonth('created_at','=',date("m", strtotime(now()))) ->groupBy('bulan') ->get(); $bulans = ''; $batas = 12; $chartMonth = ''; for($_i=1; $_i <= $batas; $_i++){ $bulans = $bulans . (string)$_i . ','; $_check = false; foreach($chartMonthSalary as $_data){ if((int)@$_data->bulan === $_i){ $chartMonth = $chartMonth . (string)$_data->jml . ','; $_check = true; } } if(!$_check){ $chartMonth = $chartMonth . '0,'; } } $incomeAll = transaksi::where('status_payment','Success')->sum('harga_akhir'); $incomeY = transaksi::where('status_payment','Success')->where('tahun',date('Y')) ->sum('harga_akhir'); $incomeM = transaksi::where('status_payment','Success')->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->sum('harga_akhir'); $incomeYOld = transaksi::where('status_payment','Success')->where('tahun',date("Y",strtotime("-1 year"))) ->sum('harga_akhir'); $incomeD = transaksi::where('status_payment','Success')->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date('d'),'0'))->sum('harga_akhir'); $incomeDOld = transaksi::where('status_payment','Success')->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date("d",strtotime("-1 day")),'0'))->sum('harga_akhir'); $kgDay = transaksi::where('tahun',date('Y'))->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date('d'),'0'))->sum('kg'); $kgMonth = transaksi::where('tahun',date('Y'))->where('bulan', ltrim(date('m'),'0'))->sum('kg'); $kgYear = transaksi::where('tahun',date('Y'))->sum('kg'); $getCabang = User::whereHas('transaksi', function($a) { $a->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0')); }) ->get(); $target = LaundrySetting::first(); return view('modul_admin.finance.index', \compact( 'chartMonth','incomeY','incomeM','incomeYOld','incomeD','incomeDOld', 'target','incomeAll','getCabang','kgDay','kgMonth','kgYear' )); } // Tambah dan Data Harga public function dataharga() { // Ambil data harga $harga = harga::with('harga_user')->orderBy('id','DESC')->get(); // Cek Apakah sudah ada karyawan atau belum $karyawan = User::where('auth','Karyawan')->first(); // Ambil list cabang $getcabang = User::where('auth','Karyawan')->where('status','Active')->get(); // Get Data Bank $getBank = DataBank::where('user_id',Auth::id())->count(); return view('modul_admin.laundri.harga', compact('harga','karyawan','getcabang','getBank')); } // Proses Simpan Harga public function hargastore(HargaRequest $request) { $addharga = new harga(); $addharga->user_id = $request->user_id; $addharga->jenis = $request->jenis; $addharga->kg = 1000; // satuan gram $addharga->harga = preg_replace('/[^A-Za-z0-9\-]/', '', $request->harga); // Remove special caracter $addharga->hari = $request->hari; $addharga->status = 1; //aktif $addharga->save(); Session::flash('success','Tambah Data Harga Berhasil'); return redirect('data-harga'); } // Proses edit harga public function hargaedit(Request $request) { $editharga = harga::find($request->id_harga); $editharga->update([ 'jenis' => $request->jenis, 'kg' => $request->kg, 'harga' => $request->harga, 'hari' => $request->hari, 'status' => $request->status, ]); Session::flash('success','Edit Data Harga Berhasil'); return $editharga; } } ================================================ FILE: app/Http/Controllers/Admin/KaryawanController.php ================================================ get(); return view('modul_admin.pengguna.kry', compact('kry')); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { return view('modul_admin.pengguna.addkry'); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(AddKaryawanRequest $request) { $phone_number = preg_replace('/^0/','62',$request->no_telp); $adduser = New User(); $adduser->name = $request->name; $adduser->email = $request->email; $adduser->nama_cabang = $request->nama_cabang; $adduser->alamat = $request->alamat; $adduser->alamat_cabang = $request->alamat_cabang; $adduser->no_telp = $phone_number; $adduser->status = 'Active'; $adduser->auth = 'Karyawan'; $adduser->password = Hash::make($request->password); $adduser->save(); $adduser->assignRole($adduser->auth); Session::flash('success','Karyawan Berhasil Dibuat.'); return redirect('karyawan'); } // Update Status Karyawan public function updateKaryawan(Request $request) { $karyawan = User::find($request->id); $karyawan->update([ 'status' => $karyawan->status == 'Active' ? 'Not Active' : 'Active' ]); Session::flash('success','Status Karyawan Berhasil Diupdate.'); } } ================================================ FILE: app/Http/Controllers/Admin/SettingsController.php ================================================ get(); $setnotif = notifications_setting::first(); return view('modul_admin.setting.index', compact('setpage','settarget','databank','setnotif')); } // Proses setting page public function proses_set_page(Request $request, $id) { $request->validate([ 'judul' => 'required|max:15' ]); $img_hero = $request->file('img_hero'); if ($img_hero) { $img_heros = time()."_".$img_hero->getClientoriginalName(); // Folder Penyimpanan $tujuan_upload = 'frontend/img/logo'; $img_hero->move($tujuan_upload, $img_heros); } $setpage = PageSettings::find($id); $setpage->judul = $request->judul; $setpage->img_hero = $img_hero; $setpage->tentang = $request->tentang; $setpage->facebook = $request->facebook; $setpage->instagram = $request->instagram; $setpage->twitter = $request->twitter; $setpage->whatsapp = $request->whatsapp; $setpage->no_telp = $request->no_telp; $setpage->email = $request->email; $setpage->save(); if ($setpage) { Session::flash('success','Setting Berhasil Disimpan !'); return back(); } } // Check Setting Theme public function set_theme(Request $request) { $id = Auth::id(); $user = User::all(); $set_theme = User::findOrFail($id); if ($request->theme == NULL) { $set_theme->theme = '0'; } else { $set_theme->theme = $request->theme; } $set_theme->save(); Session::flash('success','Setting Berhasil Disimpan !'); return back(); } // Setting Laundry Target public function set_target_laundry(Request $request, $id) { $set_target = LaundrySetting::findOrFail($id); $set_target->target_day = $request->target_day; $set_target->target_month = $request->target_month; $set_target->target_year = $request->target_year; $set_target->save(); Session::flash('success','Target Berhasil Diupdate !'); return back(); } // Simpan Bank public function bank(Request $request) { $cek = DataBank::get()->count(); if ($cek >= 3) { Session::flash('error','Maksimal bank hanya 3 !'); return back(); } $request->validate([ 'nama_bank' => 'required|unique:data_banks', 'no_rekening' => 'required|unique:data_banks', 'no_rekening' => 'required', ]); DataBank::create([ 'nama_bank' => $request->nama_bank, 'no_rekening' => $request->no_rekening, 'nama_pemilik' => $request->nama_pemilik, 'user_id' => Auth::id(), ]); Session::flash('success','Bank Berhasil Ditambah !'); return back(); } // Notification public function notif(Request $request,$id) { $notif = notifications_setting::findorFail($id); $notif->telegram_order_masuk = $request->telegram_order_masuk; $notif->telegram_order_selesai = $request->telegram_order_selesai; $notif->email = $request->email; $notif->telegram_channel_masuk = $request->telegram_channel_masuk; $notif->telegram_channel_selesai = $request->telegram_channel_masuk; $notif->wa_order_selesai = $request->wa_order_selesai; $notif->wa_token = $request->wa_token; $notif->save(); Session::flash('success','Notifications Berhasil Diupdate !'); return back(); } } ================================================ FILE: app/Http/Controllers/Admin/TransaksiController.php ================================================ orderBy('created_at','desc')->get(); $filter = User::select('id','name')->where('auth','Karyawan')->get(); return view('modul_admin.transaksi.index', compact('transaksi','filter')); } // Filter Transaksi public function filtertransaksi(Request $request) { if ($request->user_id != 'all') { $transaksi = transaksi::with('price') ->where('user_id', $request->user_id) ->orderBy('created_at','desc') ->get(); }elseif($request->user_id == 'all') { $transaksi = transaksi::with('price') ->orderBy('created_at','desc') ->get(); } $return = ""; $no=1; foreach($transaksi as $item) { $return .=" ".$no." ".$item->tgl_transaksi." ".$item->customer." ".$item->status_order." ".$item->status_payment." ".$item->price->jenis.""; $return .=" ".Rupiah::getRupiah($item->kg * $item->harga).""; $return .="Invoice"; $return .= " "; $no++; } return $return; } // Invoice public function invoice( Request $request) { $invoice = transaksi::with('price') ->where('invoice', $request->invoice) ->orderBy('id','DESC')->get(); $dataInvoice = transaksi::with('customers','user') ->where('invoice', $request->invoice) ->first(); return view('modul_admin.transaksi.invoice', compact('invoice','dataInvoice')); } } ================================================ FILE: app/Http/Controllers/Auth/ForgotPasswordController.php ================================================ middleware('guest'); } } ================================================ FILE: app/Http/Controllers/Auth/LoginController.php ================================================ middleware('guest')->except('logout'); } protected function authenticated() { if(Auth::User()->status == 'Not Active') { Auth::logout(); Session::flash('error', "Akun yang kamu gunakan sudah Tidak Aktif !"); return redirect('login'); } } } ================================================ FILE: app/Http/Controllers/Auth/RegisterController.php ================================================ middleware('guest'); } /** * Get a validator for an incoming registration request. * * @param array $data * @return \Illuminate\Contracts\Validation\Validator */ protected function validator(array $data) { return Validator::make($data, [ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'password' => ['required', 'string', 'min:7', 'confirmed'], ]); } /** * Create a new user instance after a valid registration. * * @param array $data * @return \App\User */ protected function create(array $data) { return User::create([ 'name' => $data['name'], 'email' => $data['email'], 'auth' => $data['auth'], 'status' => $data['status'], 'password' => Hash::make($data['password']), ]); } } ================================================ FILE: app/Http/Controllers/Auth/ResetPasswordController.php ================================================ middleware('guest'); } } ================================================ FILE: app/Http/Controllers/Auth/VerificationController.php ================================================ middleware('auth'); $this->middleware('signed')->only('verify'); $this->middleware('throttle:6,1')->only('verify', 'resend'); } } ================================================ FILE: app/Http/Controllers/Controller.php ================================================ file('foto'); if ($foto) { $nama_foto = time()."_".$foto->getClientOriginalName(); // isi dengan nama folder tempat kemana file diupload $tujuan_upload = 'public/images/foto_profile'; $foto->storeAs($tujuan_upload,$nama_foto); } if ($request->password) { $password = Hash::make($request->password); } $profile = User::findOrFail($id); $profile->name = $request->name; $profile->email = $request->email; $profile->alamat = $request->alamat; $profile->foto = $nama_foto ?? Auth::user()->foto; $profile->password = $password ?? Auth::user()->password; $profile->save(); Session::flash('success','Data profile berhasil diupdate !'); return back(); } } ================================================ FILE: app/Http/Controllers/Customer/SettingController.php ================================================ theme == NULL) { $setting->theme = '0'; } else { $setting->theme = $request->theme; } $setting->save(); Session::flash('success','Setting Berhasil Diupdate !'); return back(); } } ================================================ FILE: app/Http/Controllers/FrontController.php ================================================ search_status); if ($search->count() == 0) { $return = 0; }else{ $return = $search->first(); } return $return; } } ================================================ FILE: app/Http/Controllers/HomeController.php ================================================ middleware('auth'); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { if(Auth::check()){ if (Auth::user()->auth === "Admin") { $masuk = transaksi::whereIN('status_order',['Process','Done','Delivery'])->count(); $selesai = transaksi::where('status_order','Done')->count(); $diambil = transaksi::where('status_order','Delivery')->count(); $customer = User::where('auth','Customer')->get(); $sudahbayar = transaksi::where('status_payment','Success')->count(); $belumbayar = transaksi::where('status_payment','Pending')->count(); $incomeY = transaksi::where('status_payment','Success') ->where('tahun',date('Y'))->sum('harga_akhir'); $incomeM = transaksi::where('status_payment','Success') ->where('tahun',date('Y'))->where('bulan', ltrim(date('m'),'0'))->sum('harga_akhir'); $incomeYOld = transaksi::where('status_payment','Success') ->where('tahun',date("Y",strtotime("-1 month")))->sum('harga_akhir'); $incomeD = transaksi::where('status_payment','Success') ->where('tahun',date('Y'))->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date('d'),'0'))->sum('harga_akhir'); $incomeDOld = transaksi::where('status_payment','Success')->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date("d",strtotime("-1 day")),'0'))->sum('harga_akhir'); $data = DB::table("transaksis") ->select("id" ,DB::raw("(COUNT(*)) as customer")) ->orderBy('created_at') ->groupBy(DB::raw("MONTH(created_at)")) ->count(); // Statistik Harian $hari = DB::table('transaksis') -> select('tgl', DB::raw('count(id) AS jml')) -> whereYear('created_at','=',date("Y", strtotime(now()))) -> whereMonth('created_at','=',date("m", strtotime(now()))) -> groupBy('tgl') -> get(); $tanggal = ''; $batas = 31; $nilai = ''; for($_i=1; $_i <= $batas; $_i++){ $tanggal = $tanggal . (string)$_i . ','; $_check = false; foreach($hari as $_data){ if((int)@$_data->tgl === $_i){ $nilai = $nilai . (string)$_data->jml . ','; $_check = true; } } if(!$_check){ $nilai = $nilai . '0,'; } } // Statistik Bulanan $bln = DB::table('transaksis') -> select('bulan', DB::raw('count(id) AS jml')) -> whereYear('created_at','=',date("Y", strtotime(now()))) -> whereMonth('created_at','=',date("m", strtotime(now()))) -> groupBy('bulan') -> get(); $bulans = ''; $batas = 12; $nilaiB = ''; for($_i=1; $_i <= $batas; $_i++){ $bulans = $bulans . (string)$_i . ','; $_check = false; foreach($bln as $_data){ if((int)@$_data->bulan === $_i){ $nilaiB = $nilaiB . (string)$_data->jml . ','; $_check = true; } } if(!$_check){ $nilaiB = $nilaiB . '0,'; } } return view('modul_admin.index') -> with('data', $data) -> with('masuk',$masuk) -> with('selesai',$selesai) -> with('customer', $customer) -> with('sudahbayar', $sudahbayar) -> with('belumbayar', $belumbayar) -> with('_tanggal', substr($tanggal, 0,-1)) -> with('_nilai', substr($nilai, 0, -1)) -> with('_bulan', substr($bulans, 0,-1)) -> with('_nilaiB', substr($nilaiB, 0, -1)) -> with('diambil',$diambil) -> with('incomeY',$incomeY) -> with('incomeM',$incomeM) -> with('incomeYOld',$incomeYOld) -> with('incomeD',$incomeD) -> with('incomeDOld',$incomeDOld); } elseif(Auth::user()->auth === "Karyawan") { $masuk = transaksi::whereIN('status_order',['Process','Done','Delivery'])->where('user_id',auth::user()->id)->count(); $selesai = transaksi::where('status_order','Done')->where('user_id',auth::user()->id)->count(); $diambil = transaksi::where('status_order','Delivery')->where('user_id',auth::user()->id)->count(); $customer = User::where('karyawan_id',auth::user()->id)->get(); $kgToday = transaksi::where('user_id',Auth::id())->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date('d'),'0'))->sum('kg'); $kgTodayOld = transaksi::where('user_id',Auth::id())->where('tahun',date('Y')) ->where('bulan', ltrim(date('m'),'0'))->where('tgl',ltrim(date("d",strtotime("-1 day")),'0'))->sum('kg'); $incomeM = transaksi::where('user_id',Auth::id())->where('status_payment','Success') ->where('tahun',date('Y'))->where('bulan', ltrim(date('m'),'0'))->sum('harga_akhir'); $incomeMOld = transaksi::where('user_id',Auth::id())->where('status_payment','Success') ->where('tahun',date('Y'))->where('bulan', ltrim(date('m',strtotime("-1 month")),'0'))->sum('harga_akhir'); $persen = 0; if ($incomeMOld != null && $incomeM != null) { $persen = ($incomeM - $incomeMOld) / $incomeM * 100; } // Statistik Bulanan $bln = DB::table('transaksis') -> select('bulan', DB::raw('count(id) AS jml')) -> whereYear('created_at','=',date("Y", strtotime(now()))) -> whereMonth('created_at','=',date("m", strtotime(now()))) -> groupBy('bulan') -> get(); $bulans = ''; $batas = 12; $nilaiB = ''; for($_i=1; $_i <= $batas; $_i++){ $bulans = $bulans . (string)$_i . ','; $_check = false; foreach($bln as $_data){ if((int)@$_data->bulan === $_i){ $nilaiB = $nilaiB . (string)$_data->jml . ','; $_check = true; } } if(!$_check){ $nilaiB = $nilaiB . '0,'; } } return view('karyawan.index') -> with('diambil', $diambil) -> with('masuk',$masuk) -> with('selesai',$selesai) -> with('customer', $customer) -> with('kgToday', $kgToday) -> with('kgTodayOld', $kgTodayOld) -> with('incomeM',$incomeM) -> with('incomeMOld',$incomeMOld) -> with('persen',$persen) -> with('_bulan', substr($bulans, 0,-1)) -> with('_nilaiB', substr($nilaiB, 0, -1)); }elseif(Auth::user()->auth == 'Customer'){ $totalLaundry = transaksi::where('customer_id',Auth::id())->count(); $totalLaundryKg = transaksi::where('customer_id',Auth::id())->sum('kg'); $transaksi = transaksi::with('price')->where('customer_id',Auth::id())->get(); return view('customer.index',\compact('totalLaundry','totalLaundryKg','transaksi')); } } } // Read Notifikasi public function readNotifikasi(Request $request) { $notif = Notification::find($request->id); $notif->update([ 'is_read' => 1 ]); return $notif; } } ================================================ FILE: app/Http/Controllers/Karyawan/CustomerController.php ================================================ id) ->where('auth','Customer') ->orderBy('id','DESC')->get(); return view('karyawan.customer.index', compact('customer')); } // Detail Customer public function detail($id) { $customer = User::with('transaksiCustomer') ->where('karyawan_id',Auth::user()->id) ->where('id',$id)->first(); return view('karyawan.customer.detail', compact('customer')); } // Create public function create() { return view('karyawan.customer.create'); } // Store public function store(AddCustomerRequest $request) { try { DB::beginTransaction(); $phone_number = preg_replace('/^0/','62',$request->no_telp); $password = str::random(8); $addCustomer = User::create([ 'karyawan_id' => Auth::id(), 'name' => $request->name, 'email' => $request->email, 'auth' => 'Customer', 'status' => 'Active', 'no_telp' => $phone_number, 'alamat' => $request->alamat, 'password' => Hash::make($password) ]); $addCustomer->assignRole($addCustomer->auth); if ($addCustomer) { // Menyiapkan data Email $data = array( 'name' => $addCustomer->name, 'email' => $addCustomer->email, 'password' => $password, 'url_login' => url('/login'), 'nama_laundry' => Auth::user()->nama_cabang, 'alamat_laundry' => Auth::user()->alamat_cabang, ); // Kirim email if (setNotificationEmail(1) == 1) { dispatch(new RegisterCustomerJob($data)); } } DB::commit(); Session::flash('success','Customer Berhasil Ditambah !'); return redirect('customers'); } catch (ErrorException $e) { DB::rollback(); throw new ErrorException($e->getMessage()); } } } ================================================ FILE: app/Http/Controllers/Karyawan/InvoiceController.php ================================================ where('user_id',Auth::id()) ->where('id',$request->id) ->get(); $data = transaksi::with('customers','user') ->where('user_id',Auth::id()) ->where('id',$request->id) ->first(); $bank = DataBank::get(); return view('karyawan.laporan.invoice', compact('invoice','data','bank')); } // Cetak invoice public function cetakinvoice(Request $request) { $invoice = transaksi::with('price') ->where('user_id',Auth::id()) ->where('id',$request->id) ->get(); $data = transaksi::with('customers','user') ->where('user_id',Auth::id()) ->where('id',$request->id) ->first(); $bank = DataBank::get(); $pdf = PDF::loadView('karyawan.laporan.cetak', compact('invoice','data','bank'))->setPaper('a4', 'landscape'); return $pdf->stream(); } } ================================================ FILE: app/Http/Controllers/Karyawan/LaporanController.php ================================================ get(); return view('karyawan.laporan.index', compact('laporan')); } // Export Excel public function exportExcel() { return Excel::download(new LaporanExport, 'laporan_laundry.xlsx'); } } ================================================ FILE: app/Http/Controllers/Karyawan/PelayananController.php ================================================ where('user_id',Auth::user()->id) ->orderBy('id','DESC')->get(); return view('karyawan.transaksi.order', compact('order')); } // Proses simpan order public function store(AddOrderRequest $request) { try { DB::beginTransaction(); $order = new transaksi(); $order->invoice = $request->invoice; $order->tgl_transaksi = Carbon::now()->parse($order->tgl_transaksi)->format('d-m-Y'); $order->status_payment = $request->status_payment; $order->harga_id = $request->harga_id; $order->customer_id = $request->customer_id; $order->user_id = Auth::user()->id; $order->customer = namaCustomer($order->customer_id); $order->email_customer = email_customer($order->customer_id); $order->hari = $request->hari; $order->kg = $request->kg; $order->harga = $request->harga; $order->disc = $request->disc; $hitung = $order->kg * $order->harga; if ($request->disc != NULL) { $disc = ($hitung * $order->disc) / 100; $total = $hitung - $disc; $order->harga_akhir = $total; } else { $order->harga_akhir = $hitung; } $order->jenis_pembayaran = $request->jenis_pembayaran; $order->tgl = Carbon::now()->day; $order->bulan = Carbon::now()->month; $order->tahun = Carbon::now()->year; $order->save(); if ($order) { // Notification Telegram if (setNotificationTelegramIn(1) == 1) { $order->notify(new OrderMasuk()); } // Notification email if (setNotificationEmail(1) == 1) { // Menyiapkan data Email $bank = DataBank::get(); $jenisPakaian = harga::where('id', $order->harga_id)->first(); $data = array( 'email' => $order->email_customer, 'invoice' => $order->invoice, 'customer' => $order->customer, 'tgl_transaksi' => $order->tgl_transaksi, 'pakaian' => $jenisPakaian->jenis, 'berat' => $order->kg, 'harga' => $order->harga, 'harga_disc' => ($hitung * $order->disc) / 100, 'disc' => $order->disc, 'total' => $order->kg * $order->harga, 'harga_akhir' => $order->harga_akhir, 'laundry_name' => Auth::user()->nama_cabang, 'bank' => $bank ); // Kirim Email dispatch(new OrderCustomerJob($data)); } DB::commit(); Session::flash('success','Order Berhasil Ditambah !'); return redirect('pelayanan'); } } catch (ErrorException $e) { DB::rollback(); throw new ErrorException($e->getMessage()); } } // Tambah Order public function addorders() { $customer = User::where('karyawan_id',Auth::user()->id)->get(); $jenisPakaian = harga::where('user_id',Auth::id())->where('status','1')->get(); $y = date('Y'); $number = mt_rand(1000, 9999); // Nomor Form otomatis $newID = $number. Auth::user()->id .''.$y; $tgl = date('d-m-Y'); $cek_harga = harga::where('user_id',Auth::user()->id)->where('status',1)->first(); $cek_customer = User::select('id','karyawan_id')->where('karyawan_id',Auth::id())->count(); return view('karyawan.transaksi.addorder', compact('customer','newID','cek_harga','cek_customer','jenisPakaian')); } // Filter List Harga public function listharga(Request $request) { $list_harga = harga::select('id','harga') ->where('user_id',Auth::user()->id) ->where('id',$request->id) ->get(); $select = ''; $select .= '
'; return $select; } // Filter List Jumlah Hari public function listhari(Request $request) { $list_jenis = harga::select('id','hari') ->where('user_id',Auth::user()->id) ->where('id',$request->id) ->get(); $select = ''; $select .= '
'; return $select; } // Update Status Laundry public function updateStatusLaundry(Request $request) { $transaksi = transaksi::find($request->id); if ($transaksi->status_payment == 'Pending') { $transaksi->update([ 'status_payment' => 'Success' ]); } elseif ($transaksi->status_payment == 'Success') { if ($transaksi->status_order == 'Process') { $transaksi->update([ 'status_order' => 'Done' ]); // Tambah point +1 $points = User::where('id',$transaksi->customer_id)->firstOrFail(); $points->point = $points->point + 1; $points->update(); // Create Notifikasi $id = $transaksi->id; $user_id = $transaksi->customer_id; $title = 'Pakaian Selesai'; $body = 'Pakaian Sudah Selesai dan Sudah Bisa Diambil :)'; $kategori = 'info'; sendNotification($id,$user_id,$kategori,$title,$body); // Cek email notif if (setNotificationEmail(1) == 1) { // Menyiapkan data $data = array( 'email' => $transaksi->email_customer, 'invoice' => $transaksi->invoice, 'customer' => $transaksi->customer, 'nama_laundry' => Auth::user()->nama_cabang, 'alamat_laundry' => Auth::user()->alamat_cabang, ); // Kirim Email dispatch(new DoneCustomerJob($data)); } // Cek status notif untuk telegram if (setNotificationTelegramFinish(1) == 1) { $transaksi->notify(new OrderSelesai()); } // Notifikasi WhatsApp if (setNotificationWhatsappOrderSelesai(1) == 1 && getTokenWhatsapp() != null) { $waCustomer = $transaksi->customers->no_telp; // get nomor whatsapp customer $nameCustomer = $transaksi->customers->name; // get name customer notificationWhatsapp( getTokenWhatsapp(), // Token $waCustomer, // nomor whatsapp 'Halo Kak '.$nameCustomer.' Laundry kamu sudah selesai dan sudah bisa diambil nih :) ' // pesan ); } } elseif ($transaksi->status_order == 'Done') { $transaksi->update([ 'status_order' => 'Delivery' ]); } } if ($transaksi->status_payment == 'Success') { Session::flash('success', "Status Pembayaran Berhasil Diubah !"); } if($transaksi->status_order == 'Done' || $transaksi->status_order == 'Delivery') { Session::flash('success', "Status Laundry Berhasil Diubah !"); } } } ================================================ FILE: app/Http/Controllers/Karyawan/ProfileController.php ================================================ file('foto'); if ($foto) { $nama_foto = time()."_".$foto->getClientOriginalName(); // isi dengan nama folder tempat kemana file diupload $tujuan_upload = 'public/images/foto_profile'; $foto->storeAs($tujuan_upload,$nama_foto); } if ($request->password) { $password = Hash::make($request->password); } $profile = User::findOrFail($id); $profile->name = $request->name; $profile->email = $request->email; $profile->alamat = $request->alamat; $profile->nama_cabang = $request->nama_cabang; $profile->alamat_cabang = $request->alamat_cabang; $profile->foto = $nama_foto ?? Auth::user()->foto; $profile->password = $password ?? Auth::user()->password; $profile->save(); Session::flash('success','Data profile berhasil diupdate !'); return back(); } } ================================================ FILE: app/Http/Controllers/Karyawan/SettingsController.php ================================================ theme == NULL) { $setting->theme = '0'; } else { $setting->theme = $request->theme; } $setting->save(); Session::flash('success','Setting Berhasil Diupdate !'); return back(); } } ================================================ FILE: app/Http/Kernel.php ================================================ [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, ], 'api' => [ 'throttle:60,1', 'bindings', ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class, 'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class, 'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class, ]; /** * The priority-sorted list of middleware. * * This forces non-global middleware to always be in the given order. * * @var array */ protected $middlewarePriority = [ \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\Authenticate::class, \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\Auth\Middleware\Authorize::class, ]; } ================================================ FILE: app/Http/Middleware/Authenticate.php ================================================ expectsJson()) { return route('login'); } } } ================================================ FILE: app/Http/Middleware/CheckForMaintenanceMode.php ================================================ check()) { return redirect('/home'); } return $next($request); } } ================================================ FILE: app/Http/Middleware/TrimStrings.php ================================================ 'required|max:25', 'email' => 'required|unique:users', 'alamat' => 'required', 'no_telp' => 'required|unique:users', ]; } public function messages() { return [ 'name.required' => 'Nama tidak boleh kosong.', 'name.unique' => 'Nama sudah digunakan.', 'name.max' => 'Nama tidak boleh lebih dari 50 karakter.', 'email.required' => 'Email tidak boleh kosong.', 'email.unique' => 'Email sudah digunakan.', 'email.max' => 'Email tidak boleh lebih dari 50 karakter.', 'alamat.required' => 'Alamat tidak boleh kosong.', 'alamat.max' => 'Alamat tidak boleh lebih dari 50 karakter.', 'no_telp.required' => 'Nomor Telepon tidak boleh kosong.' ]; } } ================================================ FILE: app/Http/Requests/AddKaryawanRequest.php ================================================ 'required|unique:users|max:50', 'email' => 'required|unique:users|max:50', 'nama_cabang' => 'required|max:50', 'alamat' => 'required|max:50', 'alamat_cabang' => 'required|unique:users', 'no_telp' => 'required', 'password' => 'required|string|min:8|confirmed', 'password_confirmation' => 'required|string|min:8' ]; } public function messages() { return [ 'name.required' => 'Nama tidak boleh kosong.', 'name.unique' => 'Nama sudah digunakan.', 'name.max' => 'Nama tidak boleh lebih dari 50 karakter.', 'email.required' => 'Email tidak boleh kosong.', 'email.unique' => 'Email sudah digunakan.', 'email.max' => 'Email tidak boleh lebih dari 50 karakter.', 'nama_cabang.required' => 'Nama Cabang tidak boleh kosong.', 'nama_cabang.max' => 'Nama Cabang tidak boleh lebih dari 30 karakter.', 'alamat_cabang.required' => 'Alamat Cabang tidak boleh ksosong.', 'alamt_cabang.unique' => 'Alamat Cabang sudah digunakan', 'alamat.required' => 'Alamat tidak boleh kosong.', 'alamat.max' => 'Alamat tidak boleh lebih dari 50 karakter.', 'no_telp.required' => 'Nomor Telepon tidak boleh kosong.', 'password.required' => 'Password tidak boleh kosong.', 'password.min' => 'Password harus lebih dari 8 karakter.', 'password.confirmed' => 'Password tidak sama, mohon ulangi kembali.', 'password_confirmation.required'=> 'Password Konfirmasi tidak boleh kosong.', 'password_confirmation.min' => 'Password Konfirmasi harus lebih dari 8 karakter.' ]; } } ================================================ FILE: app/Http/Requests/AddOrderRequest.php ================================================ 'required', 'kg' => 'required|regex:/^[0-9.]+$/|numeric', 'hari' => 'required', 'harga' => 'required', 'jenis_pembayaran' => 'required', 'disc' => 'nullable|numeric', 'harga_id' => 'required', 'customer_id' => 'required' ]; } public function messages() { return [ 'status_payment.required' => 'Status Pembayaran wajib dipilih.', 'kg.required' => 'Berat Pakaian tidak boleh kosong.', 'kg.numeric' => 'Berat Pakaian hanya mendukung angka.', 'hari.required' => 'Hari tidak boleh kosong.', 'harga.required' => 'Harga tidak boleh kosong.', 'jenis_pembayaran.required' => 'Jenis Pembayaran wajib dipilih.', 'disc.numeric' => 'Diskon hanya mendukung angka.', 'harga_id.required' => 'Jenis Pakaian wajib dipilih.', 'customer_id.required' => 'Customer wajib dipilih.' ]; } } ================================================ FILE: app/Http/Requests/HargaRequest.php ================================================ 'required', 'jenis' => 'required', 'harga' => 'required', 'hari' => 'required' ]; } public function messages() { return [ 'user_id.required' => 'Cabang tidak boleh kosong.', 'jenis.required' => 'Jenis pakaian tidak boleh kosong.', 'harga.required' => 'Harga tidak boleh kosong.', 'hari.required' => 'Jumlah hari tidak boleh kosong.' ]; } } ================================================ FILE: app/Http/Requests/LoginRequest.php ================================================ 'required|email|exists:users,email', 'password' => 'required' ]; } public function messages() { return [ 'email.required' => "Email tidak boleh kosong", "email.email" => "Format email tidak diketahui", "email.exists" => "Email tidak terdaftar pada sistem", "password.required" => "Password tidak boleh kosong", ]; } } ================================================ FILE: app/Http/Requests/UpdateProfilRequest.php ================================================ 'required', 'email' => 'required', 'no_telp' => 'required', 'alamat' => 'required', 'password' => 'confirmed|min:8|nullable' ]; } public function messages() { return [ 'name.required' => 'Nama tidak boleh kosong.', 'email.required' => 'Email tidak boleh kosong.', 'no_telp.required' => 'No WhatsApp tidak boleh kosong.', 'alamat.required' => 'Alamat tidak boleh kosong.', 'password.min' => 'Password minimal berjumlah 8 karakter.', 'password.confirmed' => 'Password Konfirmasi tidak sama.' ]; } } ================================================ FILE: app/Jobs/DoneCustomerJob.php ================================================ data = $data; } /** * Execute the job. * * @return void */ public function handle() { $email = new DoneCustomer($this->data); Mail::to($this->data['email'])->send($email); } } ================================================ FILE: app/Jobs/OrderCustomerJob.php ================================================ data = $data; } /** * Execute the job. * * @return void */ public function handle() { $email = new OrderCustomer($this->data); Mail::to($this->data['email'])->send($email); } } ================================================ FILE: app/Jobs/RegisterCustomerJob.php ================================================ data = $data; } /** * Execute the job. * * @return void */ public function handle() { $email = new RegisterCustomer($this->data); Mail::to($this->data['email'])->send($email); } } ================================================ FILE: app/Mail/DoneCustomer.php ================================================ data = $data; } /** * Build the message. * * @return $this */ public function build() { $address = config("mail.from.address"); $name = 'E-Laundry'; return $this->view('emails.done') ->subject('Laundry Selesai') ->with('data', $this->data) ->from($address, $name); return $this; } } ================================================ FILE: app/Mail/OrderCustomer.php ================================================ data = $data; } /** * Build the message. * * @return $this */ public function build() { $address = config("mail.from.address"); $name = 'E-Laundry'; return $this->view('emails.orders') ->subject('Laundry Order') ->with('data', $this->data) ->from($address, $name); return $this; } } ================================================ FILE: app/Mail/RegisterCustomer.php ================================================ data = $data; } /** * Build the message. * * @return $this */ public function build() { $address = config("mail.from.address"); $name = 'E-Laundry'; return $this->view('emails.register') ->subject('Laundry Registrasi') ->with('data', $this->data) ->from($address, $name); return $this; } } ================================================ FILE: app/Models/Bank.php ================================================ * */ namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Bank Model. */ class Bank extends Model { /** * Table name. * * @var string */ protected $table = 'banks'; } ================================================ FILE: app/Models/DataBank.php ================================================ belongsTo(User::class); } } ================================================ FILE: app/Models/LaundrySetting.php ================================================ 'datetime', ]; function bank() { return $this->hasOne(DataBank::class); } public function transaksi() { return $this->belongsTo(transaksi::class,'id','user_id'); } public function transaksiCustomer() { return $this->hasMany(transaksi::class,'customer_id','id'); } } ================================================ FILE: app/Models/harga.php ================================================ hasMany(transaksi::class); } public function harga_user() { return $this->belongsTo(User::class,'user_id','id'); } } ================================================ FILE: app/Models/notifications_setting.php ================================================ belongsTo(harga::class,'harga_id','id'); } public function customers() { return $this->belongsTo(User::class,'customer_id','id')->where('auth','Customer'); } public function user() { return $this->belongsTo(User::class,'user_id','id'); } } ================================================ FILE: app/Notifications/OrderMasuk.php ================================================ line('The introduction to the notification.') ->action('Notification Action', url('/')) ->line('Thank you for using our application!'); } public function toTelegram($order) { $url = url('/invoice-kar/' .$order->id); return TelegramMessage::create() ->to(telegram_channel_masuk()) ->content("*Order Masuk*\nCustomer {$order->customer} \nBerat Pakaian {$order->kg}kg \nTotal Pembayaran Rp. ".number_format($order->harga_akhir)."") ->button('View Order', $url); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } ================================================ FILE: app/Notifications/OrderSelesai.php ================================================ line('The introduction to the notification.') ->action('Notification Action', url('/')) ->line('Thank you for using our application!'); } public function toTelegram($statusorder) { return TelegramMessage::create() ->to(telegram_channel_selesai()) ->content("*Order Selesai* \nCustomer {$statusorder->customer}\nBerat Pakaian {$statusorder->kg}kg \nTotal Pembayaran Rp. ".number_format($statusorder->harga_akhir).""); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } ================================================ FILE: app/Providers/AppServiceProvider.php ================================================ 'App\Policies\ModelPolicy', ]; /** * Register any authentication / authorization services. * * @return void */ public function boot() { $this->registerPolicies(); // } } ================================================ FILE: app/Providers/BroadcastServiceProvider.php ================================================ [ SendEmailVerificationNotification::class, ], ]; /** * Register any events for your application. * * @return void */ public function boot() { parent::boot(); // } } ================================================ FILE: app/Providers/RouteServiceProvider.php ================================================ mapApiRoutes(); $this->mapWebRoutes(); // } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapWebRoutes() { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapApiRoutes() { Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.php')); } } ================================================ FILE: artisan ================================================ #!/usr/bin/env php make(Illuminate\Contracts\Console\Kernel::class); $status = $kernel->handle( $input = new Symfony\Component\Console\Input\ArgvInput, new Symfony\Component\Console\Output\ConsoleOutput ); /* |-------------------------------------------------------------------------- | Shutdown The Application |-------------------------------------------------------------------------- | | Once Artisan has finished running, we will fire off the shutdown events | so that any final work may be done by the application before we shut | down the process. This is the last thing to happen to the request. | */ $kernel->terminate($input, $status); exit($status); ================================================ FILE: bootstrap/app.php ================================================ singleton( Illuminate\Contracts\Http\Kernel::class, App\Http\Kernel::class ); $app->singleton( Illuminate\Contracts\Console\Kernel::class, App\Console\Kernel::class ); $app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, App\Exceptions\Handler::class ); /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app; ================================================ FILE: bootstrap/cache/.gitignore ================================================ * !.gitignore ================================================ FILE: composer.json ================================================ { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.0.21", "andes2912/indobank": "^0.7.0", "barryvdh/laravel-dompdf": "^2.0.0", "guzzlehttp/guzzle": "^7.4", "laravel-notification-channels/telegram": "^2.1", "laravel/framework": "^9.0", "laravel/tinker": "^2.6.3", "laravel/ui": "^3.0", "laravelcollective/html": "^6.2", "maatwebsite/excel": "^3.1", "realrashid/sweet-alert": "^5.1.0", "spatie/laravel-permission": "^5.5.5" }, "require-dev": { "beyondcode/laravel-dump-server": "^1.8.0", "filp/whoops": "^2.0", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.0" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" }, "files": [ "app/Helpers/Model.php" ], "classmap": [ "database/seeders", "database/factories" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } } ================================================ FILE: config/app.php ================================================ env('APP_NAME', 'Laravel'), /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This may determine how you prefer to configure various | services the application utilizes. Set this in your ".env" file. | */ 'env' => env('APP_ENV', 'production'), /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | */ 'debug' => env('APP_DEBUG', false), 'db' => env('DB_DATABASE','db_laundry'), /* |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | your application so that it is used when running Artisan tasks. | */ 'url' => env('APP_URL', 'http://localhost'), 'asset_url' => env('ASSET_URL', null), /* |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. We have gone | ahead and set this to a sensible default for you out of the box. | */ 'timezone' => 'Asia/Jakarta', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | */ 'locale' => 'en', /* |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | */ 'fallback_locale' => 'en', /* |-------------------------------------------------------------------------- | Faker Locale |-------------------------------------------------------------------------- | | This locale will be used by the Faker PHP library when generating fake | data for your database seeds. For example, this will be used to get | localized telephone numbers, street address information and more. | */ 'faker_locale' => 'en_US', /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | */ 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', /* |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | */ 'providers' => [ /* * Laravel Framework Service Providers... */ Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class, Illuminate\Mail\MailServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, /* * Package Service Providers... */ // RealRashid\SweetAlert\SweetAlertServiceProvider::class, Spatie\Permission\PermissionServiceProvider::class, Maatwebsite\Excel\ExcelServiceProvider::class, /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, App\Providers\AuthServiceProvider::class, // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, ], /* |-------------------------------------------------------------------------- | Class Aliases |-------------------------------------------------------------------------- | | This array of class aliases will be registered when this application | is started. However, feel free to register as many as you wish as | the aliases are "lazy" loaded so they don't hinder performance. | */ 'aliases' => [ 'App' => Illuminate\Support\Facades\App::class, 'Arr' => Illuminate\Support\Arr::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class, 'DB' => Illuminate\Support\Facades\DB::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, 'Notification' => Illuminate\Support\Facades\Notification::class, 'Password' => Illuminate\Support\Facades\Password::class, 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redis' => Illuminate\Support\Facades\Redis::class, 'Request' => Illuminate\Support\Facades\Request::class, 'Response' => Illuminate\Support\Facades\Response::class, 'Route' => Illuminate\Support\Facades\Route::class, 'Schema' => Illuminate\Support\Facades\Schema::class, 'Session' => Illuminate\Support\Facades\Session::class, 'Storage' => Illuminate\Support\Facades\Storage::class, 'Str' => Illuminate\Support\Str::class, 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, 'Rupiah' => App\Helpers\Rupiah::class, 'Excel' => Maatwebsite\Excel\Facades\Excel::class, // 'Alert' => RealRashid\SweetAlert\Facades\Alert::class, ], ]; ================================================ FILE: config/auth.php ================================================ [ 'guard' => 'web', 'passwords' => 'users', ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', 'hash' => false, ], ], /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | If you have multiple user tables or models you may configure multiple | sources which represent each model / table. These sources may then | be assigned to any extra authentication guards you have defined. | | Supported: "database", "eloquent" | */ 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], // 'users' => [ // 'driver' => 'database', // 'table' => 'users', // ], ], /* |-------------------------------------------------------------------------- | Resetting Passwords |-------------------------------------------------------------------------- | | You may specify multiple password reset configurations if you have more | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | | The expire time is the number of minutes that the reset token should be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | */ 'passwords' => [ 'users' => [ 'provider' => 'users', 'table' => 'password_resets', 'expire' => 60, ], ], ]; ================================================ FILE: config/broadcasting.php ================================================ env('BROADCAST_DRIVER', 'null'), /* |-------------------------------------------------------------------------- | Broadcast Connections |-------------------------------------------------------------------------- | | Here you may define all of the broadcast connections that will be used | to broadcast events to other systems or over websockets. Samples of | each available type of connection are provided inside this array. | */ 'connections' => [ 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => true, ], ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', ], 'log' => [ 'driver' => 'log', ], 'null' => [ 'driver' => 'null', ], ], ]; ================================================ FILE: config/cache.php ================================================ env('CACHE_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Cache Stores |-------------------------------------------------------------------------- | | Here you may define all of the cache "stores" for your application as | well as their drivers. You may even define multiple stores for the | same cache driver to group types of items stored in your caches. | */ 'stores' => [ 'apc' => [ 'driver' => 'apc', ], 'array' => [ 'driver' => 'array', ], 'database' => [ 'driver' => 'database', 'table' => 'cache', 'connection' => null, ], 'file' => [ 'driver' => 'file', 'path' => storage_path('framework/cache/data'), ], 'memcached' => [ 'driver' => 'memcached', 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 'sasl' => [ env('MEMCACHED_USERNAME'), env('MEMCACHED_PASSWORD'), ], 'options' => [ // Memcached::OPT_CONNECT_TIMEOUT => 2000, ], 'servers' => [ [ 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 'port' => env('MEMCACHED_PORT', 11211), 'weight' => 100, ], ], ], 'redis' => [ 'driver' => 'redis', 'connection' => 'cache', ], 'dynamodb' => [ 'driver' => 'dynamodb', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), ], ], /* |-------------------------------------------------------------------------- | Cache Key Prefix |-------------------------------------------------------------------------- | | When utilizing a RAM based store such as APC or Memcached, there might | be other applications utilizing the same cache. So, we'll specify a | value to get prefixed to all our keys so we can avoid collisions. | */ 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), ]; ================================================ FILE: config/database.php ================================================ env('DB_CONNECTION', 'mysql'), /* |-------------------------------------------------------------------------- | Database Connections |-------------------------------------------------------------------------- | | Here are each of the database connections setup for your application. | Of course, examples of configuring each database platform that is | supported by Laravel is shown below to make development simple. | | | All database work in Laravel is done through the PHP PDO facilities | so make sure you have the driver for your particular database of | choice installed on your machine before you begin development. | */ 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'url' => env('DATABASE_URL'), 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], 'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => false, 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ], 'pgsql' => [ 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'schema' => 'public', 'sslmode' => 'prefer', ], 'sqlsrv' => [ 'driver' => 'sqlsrv', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '1433'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, ], ], /* |-------------------------------------------------------------------------- | Migration Repository Table |-------------------------------------------------------------------------- | | This table keeps track of all the migrations that have already run for | your application. Using this information, we can determine which of | the migrations on disk haven't actually been run in the database. | */ 'migrations' => 'migrations', /* |-------------------------------------------------------------------------- | Redis Databases |-------------------------------------------------------------------------- | | Redis is an open source, fast, and advanced key-value store that also | provides a richer body of commands than a typical key-value system | such as APC or Memcached. Laravel makes it easy to dig right in. | */ 'redis' => [ 'client' => env('REDIS_CLIENT', 'predis'), 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'predis'), 'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_', ], 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), 'database' => env('REDIS_DB', 0), ], 'cache' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), 'database' => env('REDIS_CACHE_DB', 1), ], ], ]; ================================================ FILE: config/excel.php ================================================ [ /* |-------------------------------------------------------------------------- | Chunk size |-------------------------------------------------------------------------- | | When using FromQuery, the query is automatically chunked. | Here you can specify how big the chunk should be. | */ 'chunk_size' => 1000, /* |-------------------------------------------------------------------------- | Pre-calculate formulas during export |-------------------------------------------------------------------------- */ 'pre_calculate_formulas' => false, /* |-------------------------------------------------------------------------- | Enable strict null comparison |-------------------------------------------------------------------------- | | When enabling strict null comparison empty cells ('') will | be added to the sheet. */ 'strict_null_comparison' => false, /* |-------------------------------------------------------------------------- | CSV Settings |-------------------------------------------------------------------------- | | Configure e.g. delimiter, enclosure and line ending for CSV exports. | */ 'csv' => [ 'delimiter' => ',', 'enclosure' => '"', 'line_ending' => PHP_EOL, 'use_bom' => false, 'include_separator_line' => false, 'excel_compatibility' => false, 'output_encoding' => '', ], /* |-------------------------------------------------------------------------- | Worksheet properties |-------------------------------------------------------------------------- | | Configure e.g. default title, creator, subject,... | */ 'properties' => [ 'creator' => '', 'lastModifiedBy' => '', 'title' => '', 'description' => '', 'subject' => '', 'keywords' => '', 'category' => '', 'manager' => '', 'company' => '', ], ], 'imports' => [ /* |-------------------------------------------------------------------------- | Read Only |-------------------------------------------------------------------------- | | When dealing with imports, you might only be interested in the | data that the sheet exists. By default we ignore all styles, | however if you want to do some logic based on style data | you can enable it by setting read_only to false. | */ 'read_only' => true, /* |-------------------------------------------------------------------------- | Ignore Empty |-------------------------------------------------------------------------- | | When dealing with imports, you might be interested in ignoring | rows that have null values or empty strings. By default rows | containing empty strings or empty values are not ignored but can be | ignored by enabling the setting ignore_empty to true. | */ 'ignore_empty' => false, /* |-------------------------------------------------------------------------- | Heading Row Formatter |-------------------------------------------------------------------------- | | Configure the heading row formatter. | Available options: none|slug|custom | */ 'heading_row' => [ 'formatter' => 'slug', ], /* |-------------------------------------------------------------------------- | CSV Settings |-------------------------------------------------------------------------- | | Configure e.g. delimiter, enclosure and line ending for CSV imports. | */ 'csv' => [ 'delimiter' => null, 'enclosure' => '"', 'escape_character' => '\\', 'contiguous' => false, 'input_encoding' => 'UTF-8', ], /* |-------------------------------------------------------------------------- | Worksheet properties |-------------------------------------------------------------------------- | | Configure e.g. default title, creator, subject,... | */ 'properties' => [ 'creator' => '', 'lastModifiedBy' => '', 'title' => '', 'description' => '', 'subject' => '', 'keywords' => '', 'category' => '', 'manager' => '', 'company' => '', ], ], /* |-------------------------------------------------------------------------- | Extension detector |-------------------------------------------------------------------------- | | Configure here which writer/reader type should be used when the package | needs to guess the correct type based on the extension alone. | */ 'extension_detector' => [ 'xlsx' => Excel::XLSX, 'xlsm' => Excel::XLSX, 'xltx' => Excel::XLSX, 'xltm' => Excel::XLSX, 'xls' => Excel::XLS, 'xlt' => Excel::XLS, 'ods' => Excel::ODS, 'ots' => Excel::ODS, 'slk' => Excel::SLK, 'xml' => Excel::XML, 'gnumeric' => Excel::GNUMERIC, 'htm' => Excel::HTML, 'html' => Excel::HTML, 'csv' => Excel::CSV, 'tsv' => Excel::TSV, /* |-------------------------------------------------------------------------- | PDF Extension |-------------------------------------------------------------------------- | | Configure here which Pdf driver should be used by default. | Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF | */ 'pdf' => Excel::DOMPDF, ], /* |-------------------------------------------------------------------------- | Value Binder |-------------------------------------------------------------------------- | | PhpSpreadsheet offers a way to hook into the process of a value being | written to a cell. In there some assumptions are made on how the | value should be formatted. If you want to change those defaults, | you can implement your own default value binder. | | Possible value binders: | | [x] Maatwebsite\Excel\DefaultValueBinder::class | [x] PhpOffice\PhpSpreadsheet\Cell\StringValueBinder::class | [x] PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder::class | */ 'value_binder' => [ 'default' => Maatwebsite\Excel\DefaultValueBinder::class, ], 'cache' => [ /* |-------------------------------------------------------------------------- | Default cell caching driver |-------------------------------------------------------------------------- | | By default PhpSpreadsheet keeps all cell values in memory, however when | dealing with large files, this might result into memory issues. If you | want to mitigate that, you can configure a cell caching driver here. | When using the illuminate driver, it will store each value in a the | cache store. This can slow down the process, because it needs to | store each value. You can use the "batch" store if you want to | only persist to the store when the memory limit is reached. | | Drivers: memory|illuminate|batch | */ 'driver' => 'memory', /* |-------------------------------------------------------------------------- | Batch memory caching |-------------------------------------------------------------------------- | | When dealing with the "batch" caching driver, it will only | persist to the store when the memory limit is reached. | Here you can tweak the memory limit to your liking. | */ 'batch' => [ 'memory_limit' => 60000, ], /* |-------------------------------------------------------------------------- | Illuminate cache |-------------------------------------------------------------------------- | | When using the "illuminate" caching driver, it will automatically use | your default cache store. However if you prefer to have the cell | cache on a separate store, you can configure the store name here. | You can use any store defined in your cache config. When leaving | at "null" it will use the default store. | */ 'illuminate' => [ 'store' => null, ], ], /* |-------------------------------------------------------------------------- | Transaction Handler |-------------------------------------------------------------------------- | | By default the import is wrapped in a transaction. This is useful | for when an import may fail and you want to retry it. With the | transactions, the previous import gets rolled-back. | | You can disable the transaction handler by setting this to null. | Or you can choose a custom made transaction handler here. | | Supported handlers: null|db | */ 'transactions' => [ 'handler' => 'db', 'db' => [ 'connection' => null, ], ], 'temporary_files' => [ /* |-------------------------------------------------------------------------- | Local Temporary Path |-------------------------------------------------------------------------- | | When exporting and importing files, we use a temporary file, before | storing reading or downloading. Here you can customize that path. | */ 'local_path' => storage_path('framework/cache/laravel-excel'), /* |-------------------------------------------------------------------------- | Remote Temporary Disk |-------------------------------------------------------------------------- | | When dealing with a multi server setup with queues in which you | cannot rely on having a shared local temporary path, you might | want to store the temporary file on a shared disk. During the | queue executing, we'll retrieve the temporary file from that | location instead. When left to null, it will always use | the local path. This setting only has effect when using | in conjunction with queued imports and exports. | */ 'remote_disk' => null, 'remote_prefix' => null, /* |-------------------------------------------------------------------------- | Force Resync |-------------------------------------------------------------------------- | | When dealing with a multi server setup as above, it's possible | for the clean up that occurs after entire queue has been run to only | cleanup the server that the last AfterImportJob runs on. The rest of the server | would still have the local temporary file stored on it. In this case your | local storage limits can be exceeded and future imports won't be processed. | To mitigate this you can set this config value to be true, so that after every | queued chunk is processed the local temporary file is deleted on the server that | processed it. | */ 'force_resync_remote' => null, ], ]; ================================================ FILE: config/filesystems.php ================================================ env('FILESYSTEM_DRIVER', 'local'), /* |-------------------------------------------------------------------------- | Default Cloud Filesystem Disk |-------------------------------------------------------------------------- | | Many applications store files both locally and in the cloud. For this | reason, you may specify a default "cloud" driver here. This driver | will be bound as the Cloud disk implementation in the container. | */ 'cloud' => env('FILESYSTEM_CLOUD', 's3'), /* |-------------------------------------------------------------------------- | Filesystem Disks |-------------------------------------------------------------------------- | | Here you may configure as many filesystem "disks" as you wish, and you | may even configure multiple disks of the same driver. Defaults have | been setup for each driver as an example of the required options. | | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace" | */ 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), ], ], ]; ================================================ FILE: config/hashing.php ================================================ 'bcrypt', /* |-------------------------------------------------------------------------- | Bcrypt Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Bcrypt algorithm. This will allow you | to control the amount of time it takes to hash the given password. | */ 'bcrypt' => [ 'rounds' => env('BCRYPT_ROUNDS', 10), ], /* |-------------------------------------------------------------------------- | Argon Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Argon algorithm. These will allow you | to control the amount of time it takes to hash the given password. | */ 'argon' => [ 'memory' => 1024, 'threads' => 2, 'time' => 2, ], ]; ================================================ FILE: config/logging.php ================================================ env('LOG_CHANNEL', 'stack'), /* |-------------------------------------------------------------------------- | Log Channels |-------------------------------------------------------------------------- | | Here you may configure the log channels for your application. Out of | the box, Laravel uses the Monolog PHP logging library. This gives | you a variety of powerful log handlers / formatters to utilize. | | Available Drivers: "single", "daily", "slack", "syslog", | "errorlog", "monolog", | "custom", "stack" | */ 'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['daily'], 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 14, ], 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', 'level' => 'critical', ], 'papertrail' => [ 'driver' => 'monolog', 'level' => 'debug', 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), ], ], 'stderr' => [ 'driver' => 'monolog', 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], ], 'syslog' => [ 'driver' => 'syslog', 'level' => 'debug', ], 'errorlog' => [ 'driver' => 'errorlog', 'level' => 'debug', ], ], ]; ================================================ FILE: config/mail.php ================================================ env('MAIL_DRIVER', 'smtp'), /* |-------------------------------------------------------------------------- | SMTP Host Address |-------------------------------------------------------------------------- | | Here you may provide the host address of the SMTP server used by your | applications. A default option is provided that is compatible with | the Mailgun mail service which will provide reliable deliveries. | */ 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), /* |-------------------------------------------------------------------------- | SMTP Host Port |-------------------------------------------------------------------------- | | This is the SMTP port used by your application to deliver e-mails to | users of the application. Like the host we have set this value to | stay compatible with the Mailgun e-mail application by default. | */ 'port' => env('MAIL_PORT', 587), /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'name' => env('MAIL_FROM_NAME', 'Example'), ], /* |-------------------------------------------------------------------------- | E-Mail Encryption Protocol |-------------------------------------------------------------------------- | | Here you may specify the encryption protocol that should be used when | the application send e-mail messages. A sensible default using the | transport layer security protocol should provide great security. | */ 'encryption' => env('MAIL_ENCRYPTION', 'tls'), /* |-------------------------------------------------------------------------- | SMTP Server Username |-------------------------------------------------------------------------- | | If your SMTP server requires a username for authentication, you should | set it here. This will get used to authenticate with your server on | connection. You may also set the "password" value below this one. | */ 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), /* |-------------------------------------------------------------------------- | Sendmail System Path |-------------------------------------------------------------------------- | | When using the "sendmail" driver to send e-mails, we will need to know | the path to where Sendmail lives on this server. A default path has | been provided here, which will work well on most of your systems. | */ 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- | Markdown Mail Settings |-------------------------------------------------------------------------- | | If you are using Markdown based email rendering, you may configure your | theme and component paths here, allowing you to customize the design | of the emails. Or, you may simply stick with the Laravel defaults! | */ 'markdown' => [ 'theme' => 'default', 'paths' => [ resource_path('views/vendor/mail'), ], ], /* |-------------------------------------------------------------------------- | Log Channel |-------------------------------------------------------------------------- | | If you are using the "log" driver, you may specify the logging channel | if you prefer to keep mail messages separate from other log entries | for simpler reading. Otherwise, the default channel will be used. | */ 'log_channel' => env('MAIL_LOG_CHANNEL'), ]; ================================================ FILE: config/permission.php ================================================ [ /* * When using the "HasPermissions" trait from this package, we need to know which * Eloquent model should be used to retrieve your permissions. Of course, it * is often just the "Permission" model but you may use whatever you like. * * The model you want to use as a Permission model needs to implement the * `Spatie\Permission\Contracts\Permission` contract. */ 'permission' => Spatie\Permission\Models\Permission::class, /* * When using the "HasRoles" trait from this package, we need to know which * Eloquent model should be used to retrieve your roles. Of course, it * is often just the "Role" model but you may use whatever you like. * * The model you want to use as a Role model needs to implement the * `Spatie\Permission\Contracts\Role` contract. */ 'role' => Spatie\Permission\Models\Role::class, ], 'table_names' => [ /* * When using the "HasRoles" trait from this package, we need to know which * table should be used to retrieve your roles. We have chosen a basic * default value but you may easily change it to any table you like. */ 'roles' => 'roles', /* * When using the "HasPermissions" trait from this package, we need to know which * table should be used to retrieve your permissions. We have chosen a basic * default value but you may easily change it to any table you like. */ 'permissions' => 'permissions', /* * When using the "HasPermissions" trait from this package, we need to know which * table should be used to retrieve your models permissions. We have chosen a * basic default value but you may easily change it to any table you like. */ 'model_has_permissions' => 'model_has_permissions', /* * When using the "HasRoles" trait from this package, we need to know which * table should be used to retrieve your models roles. We have chosen a * basic default value but you may easily change it to any table you like. */ 'model_has_roles' => 'model_has_roles', /* * When using the "HasRoles" trait from this package, we need to know which * table should be used to retrieve your roles permissions. We have chosen a * basic default value but you may easily change it to any table you like. */ 'role_has_permissions' => 'role_has_permissions', ], 'column_names' => [ /* * Change this if you want to name the related model primary key other than * `model_id`. * * For example, this would be nice if your primary keys are all UUIDs. In * that case, name this `model_uuid`. */ 'model_morph_key' => 'model_id', ], /* * When set to true, the required permission names are added to the exception * message. This could be considered an information leak in some contexts, so * the default setting is false here for optimum safety. */ 'display_permission_in_exception' => false, /* * When set to true, the required role names are added to the exception * message. This could be considered an information leak in some contexts, so * the default setting is false here for optimum safety. */ 'display_role_in_exception' => false, /* * By default wildcard permission lookups are disabled. */ 'enable_wildcard_permission' => false, 'cache' => [ /* * By default all permissions are cached for 24 hours to speed up performance. * When permissions or roles are updated the cache is flushed automatically. */ 'expiration_time' => \DateInterval::createFromDateString('24 hours'), /* * The cache key used to store all permissions. */ 'key' => 'spatie.permission.cache', /* * When checking for a permission against a model by passing a Permission * instance to the check, this key determines what attribute on the * Permissions model is used to cache against. * * Ideally, this should match your preferred way of checking permissions, eg: * `$user->can('view-posts')` would be 'name'. */ 'model_key' => 'name', /* * You may optionally indicate a specific cache driver to use for permission and * role caching using any of the `store` drivers listed in the cache.php config * file. Using 'default' here means to use the `default` set in cache.php. */ 'store' => 'default', ], ]; ================================================ FILE: config/queue.php ================================================ env('QUEUE_CONNECTION', 'sync'), /* |-------------------------------------------------------------------------- | Queue Connections |-------------------------------------------------------------------------- | | Here you may configure the connection information for each server that | is used by your application. A default configuration has been added | for each back-end shipped with Laravel. You are free to add more. | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" | */ 'connections' => [ 'sync' => [ 'driver' => 'sync', ], 'database' => [ 'driver' => 'database', 'table' => 'jobs', 'queue' => 'default', 'retry_after' => 90, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', 'host' => 'localhost', 'queue' => 'default', 'retry_after' => 90, 'block_for' => 0, ], 'sqs' => [ 'driver' => 'sqs', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'queue' => env('SQS_QUEUE', 'your-queue-name'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, 'block_for' => null, ], ], /* |-------------------------------------------------------------------------- | Failed Queue Jobs |-------------------------------------------------------------------------- | | These options configure the behavior of failed queue job logging so you | can control which database and table are used to store the jobs that | have failed. You may change them to any database / table you wish. | */ 'failed' => [ 'database' => env('DB_CONNECTION', 'mysql'), 'table' => 'failed_jobs', ], ]; ================================================ FILE: config/services.php ================================================ [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), ], 'postmark' => [ 'token' => env('POSTMARK_TOKEN'), ], 'ses' => [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'sparkpost' => [ 'secret' => env('SPARKPOST_SECRET'), ], 'stripe' => [ 'model' => App\User::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), 'webhook' => [ 'secret' => env('STRIPE_WEBHOOK_SECRET'), 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), ], ], 'telegram-bot-api' => [ 'token' => env('TELEGRAM_BOT_TOKEN', 'YOUR BOT TOKEN HERE') ], ]; ================================================ FILE: config/session.php ================================================ env('SESSION_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Session Lifetime |-------------------------------------------------------------------------- | | Here you may specify the number of minutes that you wish the session | to be allowed to remain idle before it expires. If you want them | to immediately expire on the browser closing, set that option. | */ 'lifetime' => env('SESSION_LIFETIME', 120), 'expire_on_close' => false, /* |-------------------------------------------------------------------------- | Session Encryption |-------------------------------------------------------------------------- | | This option allows you to easily specify that all of your session data | should be encrypted before it is stored. All encryption will be run | automatically by Laravel and you can use the Session like normal. | */ 'encrypt' => false, /* |-------------------------------------------------------------------------- | Session File Location |-------------------------------------------------------------------------- | | When using the native session driver, we need a location where session | files may be stored. A default has been set for you but a different | location may be specified. This is only needed for file sessions. | */ 'files' => storage_path('framework/sessions'), /* |-------------------------------------------------------------------------- | Session Database Connection |-------------------------------------------------------------------------- | | When using the "database" or "redis" session drivers, you may specify a | connection that should be used to manage these sessions. This should | correspond to a connection in your database configuration options. | */ 'connection' => env('SESSION_CONNECTION', null), /* |-------------------------------------------------------------------------- | Session Database Table |-------------------------------------------------------------------------- | | When using the "database" session driver, you may specify the table we | should use to manage the sessions. Of course, a sensible default is | provided for you; however, you are free to change this as needed. | */ 'table' => 'sessions', /* |-------------------------------------------------------------------------- | Session Cache Store |-------------------------------------------------------------------------- | | When using the "apc", "memcached", or "dynamodb" session drivers you may | list a cache store that should be used for these sessions. This value | must match with one of the application's configured cache "stores". | */ 'store' => env('SESSION_STORE', null), /* |-------------------------------------------------------------------------- | Session Sweeping Lottery |-------------------------------------------------------------------------- | | Some session drivers must manually sweep their storage location to get | rid of old sessions from storage. Here are the chances that it will | happen on a given request. By default, the odds are 2 out of 100. | */ 'lottery' => [2, 100], /* |-------------------------------------------------------------------------- | Session Cookie Name |-------------------------------------------------------------------------- | | Here you may change the name of the cookie used to identify a session | instance by ID. The name specified here will get used every time a | new session cookie is created by the framework for every driver. | */ 'cookie' => env( 'SESSION_COOKIE', Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), /* |-------------------------------------------------------------------------- | Session Cookie Path |-------------------------------------------------------------------------- | | The session cookie path determines the path for which the cookie will | be regarded as available. Typically, this will be the root path of | your application but you are free to change this when necessary. | */ 'path' => '/', /* |-------------------------------------------------------------------------- | Session Cookie Domain |-------------------------------------------------------------------------- | | Here you may change the domain of the cookie used to identify a session | in your application. This will determine which domains the cookie is | available to in your application. A sensible default has been set. | */ 'domain' => env('SESSION_DOMAIN', null), /* |-------------------------------------------------------------------------- | HTTPS Only Cookies |-------------------------------------------------------------------------- | | By setting this option to true, session cookies will only be sent back | to the server if the browser has a HTTPS connection. This will keep | the cookie from being sent to you if it can not be done securely. | */ 'secure' => env('SESSION_SECURE_COOKIE', false), /* |-------------------------------------------------------------------------- | HTTP Access Only |-------------------------------------------------------------------------- | | Setting this value to true will prevent JavaScript from accessing the | value of the cookie and the cookie will only be accessible through | the HTTP protocol. You are free to modify this option if needed. | */ 'http_only' => true, /* |-------------------------------------------------------------------------- | Same-Site Cookies |-------------------------------------------------------------------------- | | This option determines how your cookies behave when cross-site requests | take place, and can be used to mitigate CSRF attacks. By default, we | do not enable this as other CSRF protection services are in place. | | Supported: "lax", "strict" | */ 'same_site' => null, ]; ================================================ FILE: config/sweet-alert.php ================================================ autoclose(milliseconds) on the end. */ 'autoclose' => 2500, ]; ================================================ FILE: config/sweetalert.php ================================================ env('SWEET_ALERT_CDN'), /* |-------------------------------------------------------------------------- | AutoClose Timer |-------------------------------------------------------------------------- | | This is for the all Modal windows. | For specific modal just use the autoClose() helper method. | */ 'timer' => env('SWEET_ALERT_TIMER', 5000), /* |-------------------------------------------------------------------------- | Width |-------------------------------------------------------------------------- | | Modal window width, including paddings (box-sizing: border-box). | Can be in px or %. | The default width is 32rem. | This is for the all Modal windows. | for particular modal just use the width() helper method. */ 'width' => env('SWEET_ALERT_WIDTH', '32rem'), /* |-------------------------------------------------------------------------- | Height Auto |-------------------------------------------------------------------------- | By default, SweetAlert2 sets html's and body's CSS height to auto !important. | If this behavior isn't compatible with your project's layout, | set heightAuto to false. | */ 'height_auto' => env('SWEET_ALERT_HEIGHT_AUTO', true), /* |-------------------------------------------------------------------------- | Padding |-------------------------------------------------------------------------- | | Modal window padding. | Can be in px or %. | The default padding is 1.25rem. | This is for the all Modal windows. | for particular modal just use the padding() helper method. */ 'padding' => env('SWEET_ALERT_PADDING', '1.25rem'), /* |-------------------------------------------------------------------------- | Animation |-------------------------------------------------------------------------- | Custom animation with [Animate.css](https://daneden.github.io/animate.css/) | If set to false, modal CSS animation will be use default ones. | For specific modal just use the animation() helper method. | */ 'animation' => [ 'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false), ], 'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdn.jsdelivr.net/npm/animate.css'), /* |-------------------------------------------------------------------------- | ShowConfirmButton |-------------------------------------------------------------------------- | If set to false, a "Confirm"-button will not be shown. | It can be useful when you're using custom HTML description. | This is for the all Modal windows. | For specific modal just use the showConfirmButton() helper method. | */ 'show_confirm_button' => env('SWEET_ALERT_CONFIRM_BUTTON', true), /* |-------------------------------------------------------------------------- | ShowCloseButton |-------------------------------------------------------------------------- | If set to true, a "Close"-button will be shown, | which the user can click on to dismiss the modal. | This is for the all Modal windows. | For specific modal just use the showCloseButton() helper method. | */ 'show_close_button' => env('SWEET_ALERT_CLOSE_BUTTON', false), /* |-------------------------------------------------------------------------- | Toast position |-------------------------------------------------------------------------- | Modal window or toast position, can be 'top', | 'top-start', 'top-end', 'center', 'center-start', | 'center-end', 'bottom', 'bottom-start', or 'bottom-end'. | For specific modal just use the position() helper method. | */ 'toast_position' => env('SWEET_ALERT_TOAST_POSITION', 'top-end'), /* |-------------------------------------------------------------------------- | Middleware |-------------------------------------------------------------------------- | Modal window or toast, config for the Middleware | */ 'middleware' => [ 'toast_position' => env('SWEET_ALERT_MIDDLEWARE_TOAST_POSITION', 'top-end'), 'toast_close_button' => env('SWEET_ALERT_MIDDLEWARE_TOAST_CLOSE_BUTTON', true), 'alert_auto_close' => env('SWEET_ALERT_MIDDLEWARE_ALERT_AUTO_CLOSE', 5000), 'auto_display_error_messages' => env('SWEET_ALERT_AUTO_DISPLAY_ERROR_MESSAGES', false), ], /* |-------------------------------------------------------------------------- | Custom Class |-------------------------------------------------------------------------- | A custom CSS class for the modal: | */ 'customClass' => [ 'container' => env('SWEET_ALERT_CONTAINER_CLASS'), 'popup' => env('SWEET_ALERT_POPUP_CLASS'), 'header' => env('SWEET_ALERT_HEADER_CLASS'), 'title' => env('SWEET_ALERT_TITLE_CLASS'), 'closeButton' => env('SWEET_ALERT_CLOSE_BUTTON_CLASS'), 'icon' => env('SWEET_ALERT_ICON_CLASS'), 'image' => env('SWEET_ALERT_IMAGE_CLASS'), 'content' => env('SWEET_ALERT_CONTENT_CLASS'), 'input' => env('SWEET_ALERT_INPUT_CLASS'), 'actions' => env('SWEET_ALERT_ACTIONS_CLASS'), 'confirmButton' => env('SWEET_ALERT_CONFIRM_BUTTON_CLASS'), 'cancelButton' => env('SWEET_ALERT_CANCEL_BUTTON_CLASS'), 'footer' => env('SWEET_ALERT_FOOTER_CLASS'), ], ]; ================================================ FILE: config/view.php ================================================ [ resource_path('views'), ], /* |-------------------------------------------------------------------------- | Compiled View Path |-------------------------------------------------------------------------- | | This option determines where all the compiled Blade templates will be | stored for your application. Typically, this is within the storage | directory. However, as usual, you are free to change this value. | */ 'compiled' => env( 'VIEW_COMPILED_PATH', realpath(storage_path('framework/views')) ), ]; ================================================ FILE: database/.gitignore ================================================ *.sqlite *.sqlite-journal ================================================ FILE: database/factories/UserFactory.php ================================================ define(User::class, function (Faker $faker) { return [ 'name' => $faker->name, 'email' => $faker->unique()->safeEmail, 'email_verified_at' => now(), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 'remember_token' => Str::random(10), ]; }); ================================================ FILE: database/migrations/2014_10_12_000000_create_users_table.php ================================================ bigIncrements('id'); $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->enum('auth',['Admin','Karyawan']); $table->enum('status',['Active','Not Active'])->default('Active'); $table->string('nama_cabang')->nullable(); $table->string('alamat_cabang')->nullable(); $table->string('alamat')->nullable(); $table->string('no_telp')->nullable(); $table->string('password'); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } } ================================================ FILE: database/migrations/2014_10_12_100000_create_password_resets_table.php ================================================ string('email')->index(); $table->string('token'); $table->timestamp('created_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('password_resets'); } } ================================================ FILE: database/migrations/2019_05_24_091904_create_transaksis_table.php ================================================ id(); $table->string('invoice'); $table->string('customer_id'); $table->string('user_id'); $table->string('tgl_transaksi'); $table->string('customer'); $table->string('email_customer'); $table->enum('status_order',['Process','Done','Delivery'])->default('Process'); $table->enum('status_payment',['Pending','Success']); $table->integer('harga_id'); $table->string('kg'); $table->string('hari'); $table->string('harga'); $table->string('disc')->nullable(); $table->string('harga_akhir')->nullable(); $table->string('tgl'); $table->string('bulan'); $table->string('tahun'); $table->string('tgl_ambil')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transaksis'); } } ================================================ FILE: database/migrations/2019_05_24_094505_create_hargas_table.php ================================================ id(); $table->unsignedBigInteger('user_id'); $table->string('jenis'); $table->string('kg'); $table->string('harga'); $table->string('status'); $table->string('hari'); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('hargas'); } } ================================================ FILE: database/migrations/2021_03_19_231220_create_page_settings_table.php ================================================ id(); $table->string('judul')->nullable(); $table->string('img_hero')->nullable(); $table->string('tentang')->nullable(); $table->string('facebook')->nullable(); $table->string('instagram')->nullable(); $table->string('twitter')->nullable(); $table->string('whatsapp')->nullable(); $table->string('no_telp')->nullable(); $table->string('email')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('page_settings'); } } ================================================ FILE: database/migrations/2021_03_21_124956_add_theme_to_users_table.php ================================================ enum('theme',[0,1])->default(0)->after('no_telp'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { $table->dropColumn('theme'); $table->dropColumn('email_set'); }); } } ================================================ FILE: database/migrations/2021_03_22_001021_create_laundry_settings_table.php ================================================ id(); $table->unsignedBigInteger('user_id'); $table->integer('target_day')->default(0); $table->integer('target_month')->default(0); $table->integer('target_year')->default(0); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('laundry_settings'); } } ================================================ FILE: database/migrations/2021_05_07_100208_create_permission_tables.php ================================================ bigIncrements('id'); $table->string('name'); // For MySQL 8.0 use string('name', 125); $table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125); $table->timestamps(); $table->unique(['name', 'guard_name']); }); Schema::create($tableNames['roles'], function (Blueprint $table) { $table->bigIncrements('id'); $table->string('name'); // For MySQL 8.0 use string('name', 125); $table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125); $table->timestamps(); $table->unique(['name', 'guard_name']); }); Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $columnNames) { $table->unsignedBigInteger('permission_id'); $table->string('model_type'); $table->unsignedBigInteger($columnNames['model_morph_key']); $table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_model_id_model_type_index'); $table->foreign('permission_id') ->references('id') ->on($tableNames['permissions']) ->onDelete('cascade'); $table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_permission_model_type_primary'); }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) { $table->unsignedBigInteger('role_id'); $table->string('model_type'); $table->unsignedBigInteger($columnNames['model_morph_key']); $table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_roles_model_id_model_type_index'); $table->foreign('role_id') ->references('id') ->on($tableNames['roles']) ->onDelete('cascade'); $table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'], 'model_has_roles_role_model_type_primary'); }); Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { $table->unsignedBigInteger('permission_id'); $table->unsignedBigInteger('role_id'); $table->foreign('permission_id') ->references('id') ->on($tableNames['permissions']) ->onDelete('cascade'); $table->foreign('role_id') ->references('id') ->on($tableNames['roles']) ->onDelete('cascade'); $table->primary(['permission_id', 'role_id'], 'role_has_permissions_permission_id_role_id_primary'); }); app('cache') ->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null) ->forget(config('permission.cache.key')); } /** * Reverse the migrations. * * @return void */ public function down() { $tableNames = config('permission.table_names'); if (empty($tableNames)) { throw new \Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.'); } Schema::drop($tableNames['role_has_permissions']); Schema::drop($tableNames['model_has_roles']); Schema::drop($tableNames['model_has_permissions']); Schema::drop($tableNames['roles']); Schema::drop($tableNames['permissions']); } } ================================================ FILE: database/migrations/2021_05_07_135323_create_data_banks_table.php ================================================ id(); $table->unsignedBigInteger('user_id'); $table->string('nama_bank'); $table->integer('no_rekening'); $table->string('nama_pemilik'); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('data_banks'); } } ================================================ FILE: database/migrations/2021_05_07_155403_add_field_in_transaksi.php ================================================ enum('jenis_pembayaran',['Tunai','Transfer'])->after('harga_akhir'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaksis', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2021_05_11_130732_create_notifications_settings_table.php ================================================ id(); $table->unsignedBigInteger('user_id'); $table->boolean('telegram_order_masuk'); $table->boolean('telegram_order_selesai'); $table->boolean('email'); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('notifications_settings'); } } ================================================ FILE: database/migrations/2021_08_08_100000_create_banks_tables.php ================================================ * */ use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBanksTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('banks', function(Blueprint $table){ $table->id(); $table->string('sandi_bank',20); $table->string('nama_bank'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('banks'); } } ================================================ FILE: database/migrations/2021_12_30_231550_add_field_username_telegram_channel_to_notifications_settings_table.php ================================================ string('telegram_channel_masuk')->nullable()->after('email'); $table->string('telegram_channel_selesai')->nullable()->after('telegram_channel_masuk'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('notifications_settings', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2022_01_28_171610_add_field_foto_to_users_table.php ================================================ string('foto')->after('theme')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2022_01_29_185408_add_field_token_wa_to_notifications_settings_table.php ================================================ boolean('wa_order_selesai')->after('telegram_channel_selesai'); $table->string('wa_token')->after('wa_order_selesai')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('notifications_settings', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2022_01_31_105111_update_field_auth_in_users_table.php ================================================ unsignedBigInteger('karyawan_id')->after('id')->nullable(); $table->foreign('karyawan_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2022_02_02_220553_create_jobs_table.php ================================================ bigIncrements('id'); $table->string('queue')->index(); $table->longText('payload'); $table->unsignedTinyInteger('attempts'); $table->unsignedInteger('reserved_at')->nullable(); $table->unsignedInteger('available_at'); $table->unsignedInteger('created_at'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('jobs'); } } ================================================ FILE: database/migrations/2022_02_02_231121_create_failed_jobs_table.php ================================================ id(); $table->string('uuid')->unique(); $table->text('connection'); $table->text('queue'); $table->longText('payload'); $table->longText('exception'); $table->timestamp('failed_at')->useCurrent(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('failed_jobs'); } } ================================================ FILE: database/migrations/2022_02_03_144826_add_field_point_in_users_table.php ================================================ integer('point')->after('foto')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } } ================================================ FILE: database/migrations/2022_09_27_125933_create_notifications_table.php ================================================ id(); $table->integer('transaksi_id')->nullable(); $table->integer('user_id')->nullable(); $table->string('kategori'); $table->string('title'); $table->text('body'); $table->boolean('is_read')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('notifications'); } } ================================================ FILE: database/seeders/DatabaseSeeder.php ================================================ call(SettingPageSeeder::class); $this->call(RoleSeeder::class); $this->call(IndoBankSeeder::class); $this->call(addRoleSeeder::class); } } ================================================ FILE: database/seeders/IndoBankSeeder.php ================================================ * */ namespace Database\Seeders; use Illuminate\Database\Seeder; use Andes2912\IndoBank\RawDataGetter; use Illuminate\Support\Facades\DB; class IndoBankSeeder extends Seeder { /** * Run the database seeds. * * @deprecated * * @return void */ public function run() { // Get Data $banks = RawDataGetter::getBanks(); // Insert Data to Database DB::table('banks')->insert($banks); } } ================================================ FILE: database/seeders/RoleSeeder.php ================================================ 'Karyawan']); } } ================================================ FILE: database/seeders/SettingPageSeeder.php ================================================ 'E-Laundry' ]); } } ================================================ FILE: database/seeders/addRoleSeeder.php ================================================ 'Customer']); } } ================================================ FILE: package.json ================================================ { "private": true, "scripts": { "dev": "npm run development", "development": "mix", "watch": "mix watch", "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", "prod": "npm run production", "production": "mix --production" }, "devDependencies": { "axios": "^0.18", "bootstrap": "^4.1.0", "cross-env": "^5.1", "jquery": "^3.2", "laravel-mix": "^6.0.18", "lodash": "^4.17.5", "popper.js": "^1.12", "postcss-loader": "~3.0.0", "resolve-url-loader": "^2.3.1", "sass": "^1.15.2", "sass-loader": "^7.1.0", "vue": "^2.5.17", "vue-loader": "^15.9.6", "vue-template-compiler": "^2.6.12", "webpack": "^5.36.1", "webpack-cli": "^4.6.0" } } ================================================ FILE: phpunit.xml ================================================ ./tests/Unit ./tests/Feature ./app ================================================ FILE: public/.htaccess ================================================ Options -MultiViews -Indexes RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] ================================================ FILE: public/backend/css/bootstrap-extended.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ a:focus { outline: none; } .font-small-1 { font-size: 0.7rem !important; } .font-small-2 { font-size: 0.8rem !important; } .font-small-3 { font-size: 0.9rem !important; } .font-medium-1 { font-size: 1.1rem !important; } .font-medium-2 { font-size: 1.2rem !important; } .font-medium-3 { font-size: 1.3rem !important; } .font-medium-4 { font-size: 1.4rem !important; } .font-medium-5 { font-size: 1.5rem !important; } .font-large-1 { font-size: 2rem !important; } .font-large-2 { font-size: 3rem !important; } .font-large-3 { font-size: 4rem !important; } .font-large-4 { font-size: 5rem !important; } .font-large-5 { font-size: 6rem !important; } .text-bold-300 { font-weight: 300; } .text-bold-400 { font-weight: 400; } .text-bold-500 { font-weight: 500; } .text-bold-600 { font-weight: 600; } .text-bold-700 { font-weight: 700; } .text-italic { font-style: italic; } .text-highlight { padding: 4px 6px; } code { padding: .1rem .4rem; font-size: 90%; color: #e83e8c; background-color: #eee; border-radius: 0.25rem; } pre { background-color: #f7f7f9; } pre code { background-color: transparent !important; } .bd-example-row .row + .row { margin-top: 1rem; } .bd-example-row .row > .col, .bd-example-row .row > [class^="col-"] { padding-top: .75rem; padding-bottom: .75rem; background-color: rgba(86, 61, 124, 0.15); border: 1px solid rgba(86, 61, 124, 0.2); } .bd-example-row .flex-items-top, .bd-example-row .flex-items-middle, .bd-example-row .flex-items-bottom { min-height: 6rem; background-color: rgba(255, 0, 0, 0.1); } .bd-example-row-flex-cols .row { min-height: 10rem; background-color: rgba(255, 0, 0, 0.1); } .bd-highlight { background-color: rgba(86, 61, 124, 0.15); border: 1px solid rgba(86, 61, 124, 0.15); } .example-container { width: 800px; width: 100%; padding-right: 14px; padding-left: 14px; margin-right: auto; margin-left: auto; } .example-row { display: flex; flex-wrap: wrap; margin-right: -14px; margin-left: -14px; } .example-content-main { position: relative; width: 100%; padding-right: 14px; padding-left: 14px; } @media (min-width: 576px) { .example-content-main { flex: 0 0 50%; max-width: 50%; } } @media (min-width: 992px) { .example-content-main { flex: 0 0 66.66667%; max-width: 66.66667%; } } .example-content-secondary { position: relative; width: 100%; padding-right: 14px; padding-left: 14px; } @media (min-width: 576px) { .example-content-secondary { flex: 0 0 50%; max-width: 50%; } } @media (min-width: 992px) { .example-content-secondary { flex: 0 0 33.33333%; max-width: 33.33333%; } } .table-white-space th, .table-white-space td { white-space: nowrap; } .table thead th { vertical-align: top; } .table th, .table td { padding: 1rem; vertical-align: middle; } .table th { font-size: 0.85rem; } .table-inverse { color: #fff; background-color: #00cfe8; } .table-hover-animation { background-color: #f8f8f8; } .table-hover-animation thead th { border-top: 2px solid #f8f8f8; border-bottom: 0; background-color: #fff; } .table-hover-animation th, .table-hover-animation td { border: 0; } .table-hover-animation tbody tr { transition: all 0.25s ease; background-color: #fff; } .table-hover-animation tbody tr:hover { transform: translateY(-4px); } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .table-hover-animation tr:hover { border-bottom-color: #f8f8f8; } } .form-control::placeholder { font-size: 0.85rem; color: rgba(34, 41, 47, 0.4); transition: all .2s ease; } .form-control:-ms-input-placeholder { color: #c5c5c5; } .form-control:focus::placeholder { transform: translate(5px); transition: all .2s ease; } .form-control:focus ~ .form-control-position i { color: #7367f0; } /* Form specific Scss */ label { color: #464646; font-size: 0.85rem; margin-bottom: 0; padding-left: 0.2rem; } textarea.form-control { line-height: 1.6rem; font-size: 1rem; } .form-group { margin-bottom: 1.5rem; } .form-control { border: 1px solid #d9d9d9; color: #5f5f5f; } .form-section { color: #b8c2cc; line-height: 3rem; margin-bottom: 20px; border-bottom: 1px solid #b8c2cc; } .form-section i { font-size: 20px; margin-left: 5px; margin-right: 10px; } /* .form-body{ overflow: hidden; } */ .form-actions { border-top: 1px solid #dfdfdf; padding: 20px 0; margin-top: 20px; } .form-actions.filled { background-color: #f8f8f8; } .form-actions.center { text-align: center; } .form-actions.right { text-align: right; } .form-actions.top { border-top: 0; border-bottom: 1px solid #dfdfdf; margin-top: 0; margin-bottom: 20px; } @media (max-width: 767.98px) { .form-actions .buttons-group { float: left !important; margin-bottom: 10px; } } @media (min-width: 576px) { .form-horizontal .form-group .label-control { text-align: right; } } .form-control.form-control-lg { padding: 1rem; } .form-control.form-control-lg::placeholder { font-size: 1.25rem; } .form-control.form-control-sm { padding: 0.6rem; } .form-control.form-control-sm::placeholder { font-size: 0.7rem; } .custom-file-label { padding: 0.375rem 0.75rem; } .custom-file-label::after { padding: 0.375rem 0.75rem; height: auto; } select.form-control:not([multiple="multiple"]) { background-image: url("../../app-assets/images/pages/arrow-down.png"); background-position: calc(100% - 12px) 13px, calc(100% - 20px) 13px, 100% 0; background-size: 12px 12px, 10px 10px; background-repeat: no-repeat; -webkit-appearance: none; -moz-appearance: none; padding-right: 1.5rem; } .custom-select { -moz-appearance: none; -webkit-appearance: none; } .input-group-addon { background-color: #ECEFF1; border-color: #BABFC7; } .custom-control-label::before, .custom-control-label::after { width: 1.143rem; height: 1.143rem; top: 0.08rem; } .custom-control-input:not(:disabled):active ~ .custom-control-label::before { background-color: #7367f0; border-color: #7367f0; } /* Floating label Group */ .form-label-group { position: relative; margin-bottom: 1.5rem; } .form-label-group .form-control-lg ~ label { font-size: 1.25rem; padding: 1rem; } .form-label-group .form-control-sm ~ label { font-size: 0.7rem; } .form-label-group > label { position: absolute; top: 0; left: 0; display: block; transition: all .25s ease-in-out; padding: .6rem; pointer-events: none; cursor: text; color: rgba(34, 41, 47, 0.4); font-size: .85rem; opacity: 0; } .form-label-group > input, .form-label-group textarea { padding: .6rem; } .form-label-group > input:focus:not(:placeholder-shown) ~ label, .form-label-group > input:not(:active):not(:placeholder-shown) ~ label, .form-label-group textarea:focus:not(:placeholder-shown) ~ label, .form-label-group textarea:not(:active):not(:placeholder-shown) ~ label { color: #7367f0 !important; transition: all .25s ease-in-out; opacity: 1; } .form-label-group > input:not(:focus):not(:placeholder-shown) ~ label, .form-label-group textarea:not(:focus):not(:placeholder-shown) ~ label { color: rgba(34, 41, 47, 0.4) !important; } .form-label-group > input:not(:placeholder-shown) ~ label, .form-label-group textarea:not(:placeholder-shown) ~ label { padding: .25rem 0; font-size: .7rem; top: -20px; left: 3px; } .form-label-group.has-icon-left > label { left: 36px; } /* Vuexy Custom Checkbox */ .vs-checkbox-con { position: relative; display: flex; align-items: center; justify-content: flex-start; margin: .25rem 0; } .vs-checkbox-con input { position: absolute; width: 100%; height: 100%; opacity: 0; z-index: 200; cursor: pointer; top: 0; } .vs-checkbox-con input:checked ~ .vs-checkbox { transform: rotate(0deg); border-color: #7367f0; } .vs-checkbox-con input:checked ~ .vs-checkbox .vs-checkbox--check { transform: translate(0); background-color: #7367f0; } .vs-checkbox-con input:checked ~ .vs-checkbox .vs-checkbox--check .vs-icon { transform: translate(0); line-height: 1.2; opacity: 1; } .vs-checkbox-con input:checked ~ .vs-checkbox.vs-checkbox-sm .vs-checkbox--check .vs-icon { font-size: 0.75rem; } .vs-checkbox-con input:checked ~ .vs-checkbox.vs-checkbox-lg .vs-checkbox--check .vs-icon { font-size: 1.2rem; } .vs-checkbox-con input:active:checked + .vs-checkbox .vs-checkbox--check { transform: translate(3px); background-color: #7367f0; } .vs-checkbox-con input:active:checked + .vs-checkbox .vs-checkbox--check .vs-icon { opacity: 1; transform: translate(6px); } .vs-checkbox-con input:disabled { cursor: default; pointer-events: none; } .vs-checkbox-con input:disabled + .vs-checkbox { cursor: default; opacity: .5; } .vs-checkbox-con .vs-checkbox { cursor: pointer; position: relative; width: 20px; height: 20px; border-width: 2px; border-style: solid; border-color: #b8c2cc; border-radius: 2px; transform: rotate(-90deg); transition: all .2s ease; overflow: hidden; margin-right: .5rem; } .vs-checkbox-con .vs-checkbox.vs-checkbox-sm { width: 15px; height: 15px; } .vs-checkbox-con .vs-checkbox.vs-checkbox-lg { width: 24px; height: 24px; } .vs-checkbox-con .vs-checkbox .vs-checkbox--check { width: 100%; height: 100%; position: absolute; left: 0; transform: translate(100%); transform-origin: right; transition: all .2s ease; z-index: 10; } .vs-checkbox-con .vs-checkbox .vs-checkbox--check .vs-icon { display: flex; justify-content: center; align-items: center; color: #fff; } /* Vuexy Custom Radio */ .vs-radio-con { position: relative; display: flex; align-items: center; justify-content: flex-start; margin: .25rem 0; } .vs-radio-con input { position: absolute; width: 100%; height: 100%; opacity: 0; z-index: 200; cursor: pointer; } .vs-radio-con input:checked ~ .vs-radio { transform: rotate(0deg); outline: 0; } .vs-radio-con input:checked ~ .vs-radio .vs-radio--circle { background: #7367f0; box-shadow: 0 3px 12px 0 rgba(115, 103, 240, 0.4); opacity: 1; transform: scale(1); } .vs-radio-con input:checked ~ .vs-radio .vs-radio--border { opacity: 0; transform: scale(0.3); } .vs-radio-con input:disabled { cursor: default; pointer-events: none; } .vs-radio-con input:disabled + .vs-radio { cursor: default; opacity: .5; } .vs-radio-con input:active ~ .vs-radio { transform: scale(1.1); } .vs-radio-con .vs-radio { cursor: pointer; position: relative; width: 18px; height: 18px; transition: all .2s ease; margin-right: .5rem; } .vs-radio-con .vs-radio.vs-radio-sm { width: 13px; height: 13px; } .vs-radio-con .vs-radio.vs-radio-lg { width: 22px; height: 22px; } .vs-radio-con .vs-radio .vs-radio--border, .vs-radio-con .vs-radio .vs-radio--circle { width: 100%; height: 100%; position: absolute; left: 0; transition: all .25s ease; top: 0; border-radius: 50%; } .vs-radio-con .vs-radio .vs-radio--border { background: transparent; border: 2px solid #b8c2cc; } .vs-radio-con .vs-radio .vs-radio--circle { opacity: 0; transform: scale(0.1); } /* Switches */ .custom-switch { padding-left: 0; /*For Switch label*/ /*For Switch Handle Animation*/ } .custom-switch .custom-control-label { height: 1.571rem; width: 3.1rem; padding: 0; /* For bg color of switch*/ /*For Switch handle*/ /*For Switch text*/ } .custom-switch .custom-control-label::before { border: none; background-color: #e2e2e2; height: 1.571rem; left: -.2857rem; box-shadow: none !important; transition: all .25s ease; cursor: pointer; user-select: none; top: 0; left: 0; } .custom-switch .custom-control-label:after { position: absolute; top: 2px; left: 2px; box-shadow: none; background-color: #fff; transition: all .25s ease; cursor: pointer; user-select: none; } .custom-switch .custom-control-label .switch-text-left, .custom-switch .custom-control-label .switch-text-right, .custom-switch .custom-control-label .switch-icon-left, .custom-switch .custom-control-label .switch-icon-right { position: absolute; top: 5px; font-size: .7rem; cursor: pointer; user-select: none; } .custom-switch .custom-control-label .switch-text-left, .custom-switch .custom-control-label .switch-icon-left { left: 7px; color: #fff; } .custom-switch .custom-control-label .switch-text-right, .custom-switch .custom-control-label .switch-icon-right { right: 7px; } .custom-switch .custom-control-label:focus { outline: 0; } .custom-switch .switch-label { padding-left: 1rem; } .custom-switch .custom-control-input:checked ~ .custom-control-label::before { box-shadow: none; } .custom-switch .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(1.4rem); } .custom-switch .custom-control-input:not(:checked) ~ .custom-control-label .switch-text-left { opacity: 0; } .custom-switch .custom-control-input:not(:checked) ~ .custom-control-label .switch-text-right { opacity: 1; } .custom-switch .custom-control-input:checked ~ .custom-control-label .switch-text-right { opacity: 0; } .custom-switch .custom-control-input:checked ~ .custom-control-label .switch-text-left { opacity: 1; } .custom-switch .custom-control-input:not(:disabled):active ~ .custom-control-label::before { background-color: #e2e2e2; } .custom-switch.switch-md .custom-control-label { width: 4rem; height: 1.571rem; } .custom-switch.switch-md .custom-control-label::before { width: 4rem; border: none; background-color: #e2e2e2; height: 1.571rem; left: -.2857rem; box-shadow: none !important; transition: all .25s ease; cursor: pointer; user-select: none; } .custom-switch.switch-md .custom-control-label:after { box-shadow: none; background-color: #fff; transition: all .25s ease; cursor: pointer; user-select: none; position: absolute; top: 2px; left: -2px; } .custom-switch.switch-md .custom-control-label .switch-text-right, .custom-switch.switch-md .custom-control-label .switch-icon-right { right: 9px; } .custom-switch.switch-md .custom-control-label .switch-text-left, .custom-switch.switch-md .custom-control-label .switch-icon-left { left: 5px; } .custom-switch.switch-md .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(2.3rem); } .custom-switch.switch-lg .custom-control-label { width: 5.5rem; height: 1.571rem; } .custom-switch.switch-lg .custom-control-label::before { width: 5.5rem; border: none; background-color: #e2e2e2; height: 1.571rem; left: -.2857rem; box-shadow: none !important; transition: all .25s ease; cursor: pointer; user-select: none; } .custom-switch.switch-lg .custom-control-label:after { position: absolute; top: 2px; left: -2px; box-shadow: none; background-color: #fff; transition: all .25s ease; cursor: pointer; user-select: none; } .custom-switch.switch-lg .custom-control-label .switch-text-right, .custom-switch.switch-lg .custom-control-label .switch-icon-right { right: 10px; } .custom-switch.switch-lg .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(3.8rem); } /* Textarea with Counter */ .counter-value { background-color: #7367f0; color: #fff; padding: 1px 6px; font-size: .6rem; border-radius: 0 0 5px 5px; margin-right: 1rem; } /* Input box with icon divider */ .form-group.input-divider-left .form-control-position i { padding: 0.2rem 0.5rem; border-right: 1px solid #d9d9d9; } .form-group.input-divider-right .form-control-position i { padding: 0.2rem 0.5rem; border-left: 1px solid #d9d9d9; } /* input-groups-lg and input-groups-sm */ .input-group-lg .form-control, .input-group-sm .form-control { padding: 0.7rem; } /* Bootstrap touchspin */ .bootstrap-touchspin.input-group { width: 8.4rem; align-items: center; } .bootstrap-touchspin.input-group .form-control { padding: 5px; height: auto; border: 0; background-color: #f8f8f8; border-radius: 5px !important; text-align: center; font-weight: 500; } .bootstrap-touchspin.input-group .form-control:focus { z-index: 1; box-shadow: none; } .bootstrap-touchspin .bootstrap-touchspin-injected { margin: 0 !important; } .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-down, .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-up { padding: 0; min-width: 22px; min-height: 22px; border-radius: 5px !important; position: relative; } .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-down i, .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-up i { font-size: 0.8rem; position: relative; top: -1px; } .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-down { left: 12px; } .bootstrap-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-up { right: 12px; } .bootstrap-touchspin.disabled-touchspin .bootstrap-touchspin-down, .bootstrap-touchspin.disabled-touchspin .bootstrap-touchspin-up { background-color: rgba(0, 0, 0, 0.5) !important; cursor: default; opacity: .5; } .bootstrap-touchspin.input-group-lg { width: 9.375rem; } .bootstrap-touchspin.input-group-lg .touchspin.form-control { height: auto !important; } .bootstrap-touchspin.input-group-lg .bootstrap-touchspin-down i, .bootstrap-touchspin.input-group-lg .bootstrap-touchspin-up i { font-size: 1rem; } .bootstrap-touchspin.input-group-sm { width: 6.25rem; } .bootstrap-touchspin.input-group-sm .touchspin.form-control { height: auto !important; } .bootstrap-touchspin.input-group-sm .bootstrap-touchspin-injected .bootstrap-touchspin-down, .bootstrap-touchspin.input-group-sm .bootstrap-touchspin-injected .bootstrap-touchspin-up { min-width: 16px; min-height: 16px; padding-top: 2.2px; } .bootstrap-touchspin.input-group-sm .bootstrap-touchspin-injected .bootstrap-touchspin-down i, .bootstrap-touchspin.input-group-sm .bootstrap-touchspin-injected .bootstrap-touchspin-up i { font-size: 0.6rem; } .btn.disabled-max-min { background-color: rgba(0, 0, 0, 0.5) !important; cursor: default; } /* Number Type Input Box Scss for - Remove arrow on hover */ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; } /* Number Type Input Box Scss for Touchspin - Remove arrow for firefox */ .bootstrap-touchspin.input-group input[type=number] { -moz-appearance: textfield; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .form-label-group label { display: none; } select.form-control:not([multiple="multiple"]) { background: none; } .custom-file-label::after { padding: 1.34rem 0.7rem 1.25rem; } } .picker__input.form-control { background-color: #fff; } .input-group .form-control { height: auto; } .input-group .input-group-prepend .dropdown-toggle::after, .input-group .input-group-append .dropdown-toggle::after { left: 0; } .input-group .input-group-prepend .vs-checkbox-con, .input-group .input-group-prepend .vs-checkbox, .input-group .input-group-prepend .vs-radio-con, .input-group .input-group-prepend .vs-radio, .input-group .input-group-append .vs-checkbox-con, .input-group .input-group-append .vs-checkbox, .input-group .input-group-append .vs-radio-con, .input-group .input-group-append .vs-radio { margin: 0; } .input-group.input-group-lg .form-control::placeholder { font-size: 1.25rem; } .input-group.input-group-lg .input-group-prepend .btn, .input-group.input-group-lg .input-group-append .btn { line-height: 1.3; font-size: 1.3rem; } .input-group.input-group-sm .form-control::placeholder { font-size: 0.7rem; } .btn:disabled { cursor: default; } .btn.btn-white { color: #626262; } .btn.btn-white:hover, .btn.btn-white:focus, .btn.btn-white:active { color: #626262 !important; } .btn[class*="bg-gradient-"]:hover { box-shadow: 0 8px 25px -8px #aaa; } .btn.btn-secondary { color: #fff; } .btn.btn-secondary:hover { box-shadow: 0 8px 25px -8px #6c757d; } .btn.btn-dark:hover { box-shadow: 0 8px 25px -8px #343a40; } .btn.btn-light:hover { box-shadow: 0 8px 25px -8px #f8f9fa; } .btn.btn-outline-secondary, .btn.btn-outline-dark, .btn.btn-outline-light { border: 1px solid; } .btn.btn-flat-secondary:hover { background-color: rgba(108, 117, 125, 0.1); } .btn.btn-flat-secondary:active, .btn.btn-flat-secondary:focus { background: #6c757d; } .btn.btn-flat-dark:hover { background-color: rgba(52, 58, 64, 0.1); } .btn.btn-flat-dark:active, .btn.btn-flat-dark:focus { background: #343a40; color: #fff; } .btn.btn-flat-light:hover { background-color: rgba(248, 249, 250, 0.1); } .btn.btn-flat-light:active, .btn.btn-flat-light:focus { background: #f8f9fa; } .btn[class*="btn-outline-"] { padding-top: calc(0.9rem - 1px); padding-bottom: calc(0.9rem - 1px); } .btn[class*="btn-outline-"].btn-sm { padding-top: calc(0.5rem - 1px); padding-bottom: calc(0.5rem - 1px); } .btn.btn-relief-secondary { background-color: #6c757d; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn.btn-relief-secondary:hover { color: #fff; } .btn.btn-relief-secondary:active, .btn.btn-relief-secondary:focus { outline: none; transform: translateY(3px); } .btn.btn-relief-light { box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn.btn-relief-light:hover { color: #fff; } .btn.btn-relief-light:active, .btn.btn-relief-light:focus { outline: none; transform: translateY(3px); } .btn.btn-relief-dark { background-color: #343a40; box-shadow: inset 0 -3px 0 0 rgba(255, 255, 255, 0.1); color: #fff; } .btn.btn-relief-dark:hover { color: #fff; } .btn.btn-relief-dark:active, .btn.btn-relief-dark:focus { outline: none; transform: translateY(3px); } .btn.btn-icon { padding: .715rem .736rem; } .btn.btn-sm.btn-icon { padding: .5rem; } .btn.btn-lg.btn-icon { padding: 1rem; } .btn.btn-square { border-radius: 0; } .btn.btn-round { border-radius: 2rem; } .btn:focus, .btn.focus, .btn:active, .btn.active { outline: none; box-shadow: none !important; } .btn.btn-icon i { font-size: 1.1rem; } .btn.btn-outline-white:hover, .btn-white:hover { color: #22292f !important; } button, html [type="button"], [type="reset"], [type="submit"] { cursor: pointer; } .waves-button-input { padding: unset; } .collapse-icon .card-header { position: relative; } .collapse-icon [data-toggle="collapse"]:after { position: absolute; top: 48%; right: 20px; margin-top: -8px; font-family: 'feather'; content: "\e845"; transition: all 300ms linear 0s; font-size: 0.9rem; } .collapse-icon [data-toggle="collapse"]:before { position: absolute; top: 48%; right: 20px; margin-top: -8px; font-family: 'feather'; content: "\e842"; transition: all 300ms linear 0s; font-size: 0.9rem; } .collapse-icon.left a { padding-left: 28px; } .collapse-icon.left a:before, .collapse-icon.left a:after { left: 20px; right: auto; } .collapse-icon [aria-expanded="true"]:before { opacity: 0; } .collapse-icon [aria-expanded="false"]:after { opacity: 0; } .collapse-icon.accordion-icon-rotate [aria-expanded="true"]:before { transform: rotate(180deg); } .collapse-icon.accordion-icon-rotate [aria-expanded="false"]:after { transform: rotate(-180deg); } .dropdown.show .btn-outline-warning.dropdown-toggle, .dropdown.show .btn-outline-light.dropdown-toggle { color: #fff; } .dropdown .btn:not(.btn-sm):not(.btn-lg), .dropdown .btn:not(.btn-sm):not(.btn-lg).dropdown-toggle { padding: 0.85rem 1.5rem; } .dropdown .btn:not(.btn-sm):not(.btn-lg).btn-round, .dropdown .btn:not(.btn-sm):not(.btn-lg).dropdown-toggle.btn-round { border-radius: 2rem; } .dropdown .btn.dropdown-toggle.dropdown-toggle-split { padding: 0.85rem 1rem; border-left-color: rgba(255, 255, 255, 0.2) !important; border-top-left-radius: 0; border-bottom-left-radius: 0; } .dropdown [class*="btn-outline-"].dropdown-toggle.dropdown-toggle-split { border-left: 0 !important; } .dropdown [class*="btn-outline-"].dropdown-toggle.dropdown-toggle-split:active { color: #fff; } .dropdown .dropdown-menu { border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 5px; transform: scale(1, 0); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); min-width: 8rem; } .dropdown .dropdown-menu::before { content: ""; position: absolute; top: -1px; left: 1.2rem; width: 0.75rem; height: 0.75rem; display: block; background: #fff; transform: rotate(45deg) translate(-7px); border-top: 1px solid rgba(0, 0, 0, 0.1); border-left: 1px solid rgba(0, 0, 0, 0.1); z-index: 10; box-sizing: border-box; } .dropdown .dropdown-menu.dropdown-menu-right::before { right: 0.6rem; left: auto; } .dropdown .dropdown-menu .dropdown-header { padding: 0.714rem 1.428rem; margin-top: 0.714rem; } .dropdown .dropdown-menu .dropdown-item { padding: 0.5rem 1rem; color: #626262; width: auto; cursor: pointer; } .dropdown .dropdown-menu .dropdown-item:hover { background-color: #f8f8f8; color: #7367f0; } .dropdown .dropdown-menu .dropdown-item.active { color: #fff; } .dropdown .dropdown-menu .dropdown-item:active { background-color: transparent; color: #212529; } .dropdown i { margin-right: 0.5rem; } .dropdown.no-arrow .dropdown-toggle:after { display: none; } .dropdown.no-arrow .dropdown-toggle i { margin-right: 0; } .dropdown, .dropup, .dropright, .dropleft { position: relative; } .dropdown .dropdown-menu .dropdown-item, .dropup .dropdown-menu .dropdown-item, .dropright .dropdown-menu .dropdown-item, .dropleft .dropdown-menu .dropdown-item { padding: 0.714rem 1.428rem; } .show > .dropdown-menu { transform: scale(1, 1); opacity: 1; display: block; } .dropdown-toggle::after { border: none !important; font-family: "feather"; content: "\e842" !important; position: relative; top: 1px; right: 0px; left: 0.714rem; padding: 0; margin: 0; vertical-align: 0; } .dropdown-toggle.dropdown-toggle-split { border-left: 1px solid rgba(255, 255, 255, 0.2); } .dropdown-toggle.dropdown-toggle-split:after { left: 0; } .dropdown-toggle.nav-hide-arrow::after { display: none; } .dropdown-toggle:focus { outline: 0; } /* .dropdown-menu-right { left: auto !important; // Input group with dropdown issue for dropdown-menu-right right: 0; } */ .btn-secondary ~ .dropdown-menu .dropdown-item.active, .btn-secondary ~ .dropdown-menu .dropdown-item:hover { background-color: #cccccc; } .dropup { position: relative; } .dropup .btn, .dropup .btn.dropdown-toggle { padding: 0.85rem 1.5rem; } .dropup .btn.dropdown-toggle.dropdown-toggle-split { padding: 0.85rem 1rem; border-color: rgba(255, 255, 255, 0.2) !important; } .dropup .dropdown-toggle::after { content: "\e845" !important; vertical-align: 0.05rem; } .dropup .dropdown-menu::before { content: ""; position: absolute; bottom: -0.714rem; left: 1.214rem; width: 0.714rem; height: 0.714rem; display: block; background: #fff; transform: rotate(45deg) translate(-7px); border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.1); z-index: 10; box-sizing: border-box; } .dropup .dropdown-menu.dropdown-menu-right::before { left: auto; right: 0.714rem; } .dropup .dropdown-submenu .dropdown-menu { bottom: auto; top: 0; } .dropleft .btn, .dropleft .btn.dropdown-toggle { padding: 0.85rem 1.5rem; } .dropleft .btn.dropdown-toggle.dropdown-toggle-split { padding: 0.85rem 1rem; } .dropleft .dropdown-toggle::before { border: none !important; font-family: "feather"; content: "\e843" !important; } .dropleft .dropdown-menu::before { content: ""; position: absolute; top: 1.285rem; right: 0; width: 0.714rem; height: 0.714rem; display: block; background: #fff; transform: rotate(130deg) translate(-8px); border-top: 1px solid rgba(0, 0, 0, 0.1); border-left: 1px solid rgba(0, 0, 0, 0.1); z-index: 10; box-sizing: border-box; } .dropright .btn, .dropright .btn.dropdown-toggle { padding: 0.85rem 1.5rem; } .dropright .btn.dropdown-toggle.dropdown-toggle-split { padding: 0.85rem 1rem; } .dropright .dropdown-toggle::after { border: none !important; font-family: "feather"; content: "\e844" !important; } .dropright .dropdown-menu::before { content: ""; position: absolute; top: 1.285rem; left: -0.9rem; width: 0.714rem; height: 0.714rem; display: block; background: #fff; transform: rotate(140deg) translate(-9px); border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.1); z-index: 10; box-sizing: border-box; } .dropdown.dropdown-icon-wrapper .dropdown-toggle:after, .dropup.dropdown-icon-wrapper .dropdown-toggle:after { display: none; } .dropdown.dropdown-icon-wrapper .dropdown-menu, .dropup.dropdown-icon-wrapper .dropdown-menu { min-width: auto; } .dropdown.dropdown-icon-wrapper .dropdown-menu .dropdown-item, .dropup.dropdown-icon-wrapper .dropdown-menu .dropdown-item { padding: 0.5rem 1.1rem; cursor: pointer; } .dropdown.dropdown-icon-wrapper .dropdown-menu .dropdown-item i, .dropup.dropdown-icon-wrapper .dropdown-menu .dropdown-item i { font-size: 1.3rem; color: #626262; } .dropdown.dropdown-icon-wrapper .dropdown-menu .dropdown-item:hover, .dropup.dropdown-icon-wrapper .dropdown-menu .dropdown-item:hover { color: #fff; } .btn.btn-white ~ .dropdown-menu .dropdown-item:not(.acitve):hover { color: #626262 !important; } .btn.btn-white ~ .dropdown-menu .dropdown-item.active { color: #626262; } .horizontal-menu-wrapper .dropdown-menu, .header-navbar .dropdown-menu { animation-duration: 0.3s; animation-fill-mode: both; animation-name: slideIn; } @keyframes slideIn { 0% { transform: translateY(1rem); opacity: 0; } 100% { transform: translateY(0rem); opacity: 1; } 0% { transform: translateY(1rem); opacity: 0; } } /* =============================================================================================== File Name: navbar.scss Description: Contain header navigation bar, vertical main navigation bar and horiznotal main navigation bar related SCSS. ---------------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ================================================================================================*/ .navbar-dark .hamburger-inner, .navbar-dark .hamburger-inner::before, .navbar-dark .hamburger-inner::after { background-color: #fff; } .header-navbar-shadow { display: none; } .navbar-floating .header-navbar-shadow { display: block; background: linear-gradient(180deg, rgba(248, 248, 248, 0.95) 44%, rgba(248, 248, 248, 0.46) 73%, rgba(255, 255, 255, 0)); padding-top: 2.2rem; background-repeat: repeat; width: 100%; height: 102px; position: fixed; top: 0; z-index: 11; } .header-navbar { padding: 0px; min-height: 4.5rem; font-family: "Montserrat", Helvetica, Arial, serif; transition: 300ms ease all; background: linear-gradient(180deg, rgba(248, 248, 248, 0.95) 44%, rgba(248, 248, 248, 0.46) 73%, rgba(255, 255, 255, 0)); z-index: 997; /* For sm screen*/ } .header-navbar.fixed-top { left: 260px; } .header-navbar[class*="bg-"] .navbar-nav .nav-item > a { color: #fff !important; } .header-navbar[class*="bg-"] .navbar-nav .nav-item > a i, .header-navbar[class*="bg-"] .navbar-nav .nav-item > a span { color: #fff !important; } .header-navbar[class*="bg-"] .navbar-nav .nav-item .dropdown-menu i { color: inherit !important; } .header-navbar[class*="bg-"] .navbar-nav .search-input .input, .header-navbar[class*="bg-"] .navbar-nav .search-input .search-list .auto-suggestion span { color: #626262 !important; } .header-navbar.floating-nav { margin: 1.3rem 2.2rem 0; border-radius: 0.5rem; position: fixed; width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2) - 260px); z-index: 12; right: 0; } .header-navbar.navbar-static-top { background: transparent; box-shadow: none !important; top: 0; right: 0; left: 260px; width: calc(100vw - (100vw - 100%) - 260px); } .header-navbar .navbar-wrapper { width: 100%; } .header-navbar.navbar-border { border-bottom: 1px solid #E4E7ED; } .header-navbar.navbar-dark.navbar-border { border-bottom: 1px solid #8596B5; } .header-navbar.navbar-shadow { box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05); } .header-navbar:not(.navbar-horizontal) .nav-link.dropdown-toggle::after { display: none; } .header-navbar .navbar-container ul.nav li.dropdown-language { padding-right: 0; } .header-navbar .navbar-container ul.nav li.dropdown-language .selected-language { font-size: 0.97rem; letter-spacing: -0.25px; font-weight: 500; } .header-navbar .navbar-container { padding-left: 1rem; transition: 300ms ease all; background: inherit; margin-left: 0; } .header-navbar .navbar-container .bookmark-wrapper ul.nav li > a.nav-link { padding: 1.4rem 0.5rem 1.35rem; } .header-navbar .navbar-container .bookmark-wrapper ul.nav li > a.nav-link i:hover { color: #7367f0; } .header-navbar .navbar-container .bookmark-input { z-index: 1; } .header-navbar .navbar-container ul.nav li.dropdown .dropdown-menu { top: 48px; } .header-navbar .navbar-container ul.nav li .badge { padding: 0.42em 0.6em 0.25rem; } .header-navbar .navbar-container ul.nav li .badge.badge-up { position: absolute; top: 12px; right: -2px; } .header-navbar .navbar-container ul.nav li.dropdown-language > a.nav-link { padding: 1.65rem 0.5rem; } .header-navbar .navbar-container ul.nav li > a.nav-link { color: #626262; padding: 1.6rem 0.5rem 1.35rem 1rem; } .header-navbar .navbar-container ul.nav li > a.nav-link i.flag-icon { margin-right: 0.5rem; } .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right { right: 12px; left: auto; padding: 0.5rem; } .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right .dropdown-item { padding: 10px; } .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right .dropdown-item:hover, .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right .dropdown-item:active { background: #7367f0; color: #fff !important; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link { padding: 0.7rem 1rem; display: flex; align-items: center; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link .user-name { display: inline-block; margin-bottom: 0.435rem; margin-left: 0.2rem; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link .user-status { font-size: smaller; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link img { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08); } .header-navbar .navbar-container ul.nav li a.menu-toggle { padding: 1.34rem 0.22rem 1.35rem 0; } .header-navbar .navbar-container ul.nav li a.menu-toggle i { font-size: 1.75rem; } .header-navbar .navbar-container ul.nav li a.nav-link-label { padding: 1.6rem 0rem 1.35rem 0.8rem; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link .user-nav { display: flex; flex-direction: column; align-items: flex-end; float: left; margin-right: 0.8rem; } .header-navbar .navbar-container ul.nav li div.input-group { padding: 0.7rem 1rem; } .header-navbar .navbar-container ul.nav li i.ficon { font-size: 1.5rem; color: #626262; } .header-navbar .navbar-container ul.nav li i.ficon:hover { color: #7367f0; } .header-navbar .navbar-container ul.nav li .media-list { max-height: 18.2rem; } .header-navbar .navbar-container ul.nav li .scrollable-container { position: relative; } .header-navbar .navbar-container .dropdown-menu-media { width: 26rem; } .header-navbar .navbar-container .dropdown-menu-media .media-list .media { padding: 1rem; border: none; border-bottom: 1px solid #dae1e7; } .header-navbar .navbar-container .dropdown-menu-media .media-list .media:hover { background: #f8f8f8; } .header-navbar .navbar-container .dropdown-menu-media .media-list .media .media-meta { color: #626262; } .header-navbar .navbar-container .dropdown-menu-media .media-list a:last-of-type .media { border-bottom: none; } .header-navbar .navbar-container .dropdown-menu-media .dropdown-menu-header { border-bottom: 1px solid #dae1e7; } .header-navbar .navbar-container .dropdown-menu-media .dropdown-menu-footer a { padding: 0.3rem; border-top: 1px solid #dae1e7; } .header-navbar.navbar-without-menu .navbar-container { margin-left: 0; } .header-navbar .nav-item + .nav-item { margin-left: 0rem; } @media (max-width: 767.98px) { .header-navbar .navbar-header { width: 100% !important; padding: 0.5rem 1rem; position: relative; } .header-navbar .navbar-header .menu-toggle { top: 2px; position: relative; } .header-navbar .navbar-header .open-navbar-container i { font-size: 1.8rem; } .header-navbar .navbar-header .navbar-brand { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); } .header-navbar.navbar-with-menu .navbar-container { width: 100%; display: table; margin: 0; height: auto; } } /* Modern menu For md screen*/ @media (max-width: 991.98px) { [data-menu="vertical-menu-modern"] .header-navbar .navbar-header { width: 100% !important; padding: 0.5rem 1rem; position: relative; } [data-menu="vertical-menu-modern"] .header-navbar .navbar-header .menu-toggle { top: 2px; position: relative; } [data-menu="vertical-menu-modern"] .header-navbar .navbar-header .open-navbar-container i { font-size: 1.8rem; } [data-menu="vertical-menu-modern"] .header-navbar .navbar-header .navbar-brand { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); } [data-menu="vertical-menu-modern"] .header-navbar.navbar-with-menu .navbar-container { width: 100%; display: table; margin: 0; height: auto; } [data-menu="vertical-menu-modern"] .navbar-dark .navbar-header .navbar-nav .nav-link, [data-menu="vertical-menu-modern"] .navbar-semi-dark .navbar-header .navbar-nav .nav-link { color: #fff; } [data-menu="vertical-menu-modern"] .navbar-dark .navbar-container .navbar-nav .nav-link, [data-menu="vertical-menu-modern"] .navbar-semi-dark .navbar-container .navbar-nav .nav-link { color: #b8c2cc; } [data-menu="vertical-menu-modern"] .navbar-light .navbar-header .navbar-nav .nav-link { color: #b8c2cc; } } .navbar-light { background: #fff; } .navbar-light.navbar-horizontal { background: #fff; } .navbar-light .navbar-nav li { line-height: 1; } .navbar-light .navbar-nav .active.nav-link { background-color: rgba(0, 0, 0, 0.03); } .navbar-light .navbar-nav .disabled.nav-link { color: #6c757d; } .navbar-dark { background: #b8c2cc; } .navbar-dark .navbar-brand { color: #fff !important; } .navbar-dark.navbar-horizontal { background: #b8c2cc; } .navbar-dark .nav-search .form-control, .navbar-dark .nav-search .btn-secondary { color: #fff; background: #b8c2cc; } .navbar-dark .navbar-nav li { line-height: 1; } .navbar-dark .navbar-nav .active.nav-link { background-color: rgba(255, 255, 255, 0.05); } .navbar-dark .navbar-nav .disabled.nav-link { color: #dae1e7; } .navbar-semi-dark { background: #fff; } .navbar-semi-dark .navbar-header { background: #b8c2cc; } .navbar-semi-dark .navbar-header .brand-text { color: #fff; } .navbar-semi-dark .navbar-nav li { line-height: 1; } .navbar-semi-dark .navbar-nav .nav-link { color: #b8c2cc; } .navbar-semi-dark .navbar-nav .active.nav-link { background-color: rgba(0, 0, 0, 0.03); } .navbar-semi-dark .navbar-nav .disabled.nav-link { color: #6c757d; } .navbar-semi-light { background: #b8c2cc; } .navbar-semi-light .navbar-header { background: #fff; } .navbar-semi-light .navbar-header .brand-text { color: #b8c2cc; } .navbar-semi-light .navbar-nav li { line-height: 1; } .navbar-semi-light .navbar-nav .nav-link { color: #fff; } .navbar-semi-light .navbar-nav .active.nav-link { background-color: rgba(0, 0, 0, 0.03); } .navbar-semi-light .navbar-nav .disabled.nav-link { color: #6c757d; } @-moz-document url-prefix() { ul li a .children-in { position: relative; right: 3px; top: -14px; } } .navbar-menu-icon span { display: block; position: absolute; height: 2px; width: 100%; background: #b8c2cc; border-radius: 9px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; } .navbar-menu-icon span:nth-child(1) { top: 0px; } .navbar-menu-icon span:nth-child(2) { top: 10px; } .navbar-menu-icon span:nth-child(3) { top: 20px; } .navbar-menu-icon.show span:nth-child(1) { top: 10px; transform: rotate(135deg); } .navbar-menu-icon.show span:nth-child(2) { opacity: 0; left: -60px; } .navbar-menu-icon.show span:nth-child(3) { top: 10px; transform: rotate(-135deg); } @media (max-width: 767.98px) { .header-navbar .navbar-nav .show { position: static; } .header-navbar .navbar-nav .open-navbar-container { padding-top: 0.625rem; } .header-navbar .navbar-container .show .dropdown-menu { right: 0; left: 0 !important; float: none; width: auto; margin-top: 0; max-height: 400px; overflow-x: hidden; } .header-navbar .navbar-container .dropdown-user .dropdown-menu-right { right: 0 !important; } .header-navbar .navbar-container ul.nav li.nav-item i { margin-right: 0.2rem; } .header-navbar .navbar-container ul.nav li a.dropdown-user-link { padding: 0.8rem 0.6rem; } .header-navbar .navbar-container ul.nav li .dropdown-toggle::after { margin-right: 0; margin-left: -2px; } .navbar-dark .hamburger-inner, .navbar-dark .hamburger-inner::before, .navbar-dark .hamburger-inner::after, .navbar-semi-dark .hamburger-inner, .navbar-semi-dark .hamburger-inner::before, .navbar-semi-dark .hamburger-inner::after { background-color: #fff; } .navbar-dark .navbar-header .navbar-nav .nav-link, .navbar-semi-dark .navbar-header .navbar-nav .nav-link { color: #fff; } .navbar-dark .navbar-container .navbar-nav .nav-link, .navbar-semi-dark .navbar-container .navbar-nav .nav-link { color: #b8c2cc; } .navbar-light .navbar-header .navbar-nav .nav-link, .navbar-semi-light .navbar-header .navbar-nav .nav-link { color: #b8c2cc; } .navbar-light .navbar-container .navbar-nav .nav-link, .navbar-semi-light .navbar-container .navbar-nav .nav-link { color: #b8c2cc; } } .headroom { will-change: transform; transition: transform 200ms linear; } .headroom--pinned-top { transform: translateY(0%); } .headroom--unpinned-top { transform: translateY(-100%); } .headroom--pinned-bottom { transform: translateY(0%); } .headroom--unpinned-bottom { transform: translateY(100%); } @media (max-width: 575.98px) { .header-navbar .navbar-container ul.nav li .selected-language { display: none; } } body[data-col="1-column"] .header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2)); } @media (min-width: 1200px) and (-ms-high-contrast: active), (-ms-high-contrast: none) { body:not([data-col="1-columns"]) .header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - 60px - 260px); } } @media (max-width: 1199.98px) { .header-navbar .navbar-container ul.nav li a.dropdown-user-link { padding: 0.7rem 1.23rem; } .header-navbar .navbar-container ul.nav li .dropdown-toggle::after { margin-right: 0; margin-left: -2px; } .header-navbar.navbar-static-top { left: 0; width: 100%; } } @media (max-width: 767px) { #navbar-mobile.navbar-collapse .navbar-nav { margin: 0; flex-flow: row wrap; } #navbar-mobile.navbar-collapse .navbar-nav .dropdown-menu { position: absolute; } #navbar-mobile.navbar-collapse .navbar-nav .nav-item { float: left; } } @media (max-width: 991.98px) { #navbar-mobile.navbar-collapse .navbar-nav { margin: 0; flex-flow: row wrap; } #navbar-mobile.navbar-collapse .navbar-nav .dropdown-menu { position: absolute; } #navbar-mobile.navbar-collapse .navbar-nav .nav-item { float: left; } } /* ----------- iPhone 5, 5S iPhone 6----------- */ /* Landscape */ @media only screen and (min-device-width: 26.78em) and (max-device-width: 47.64em) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) { .header-navbar .navbar-container .show .dropdown-menu { max-height: 180px; } } /* ----------- iPhone 6+ ----------- */ /* Landscape */ @media only screen and (min-device-width: 29.57em) and (max-device-width: 52.57em) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) { .header-navbar .navbar-container .show .dropdown-menu { max-height: 280px; } } /*----------------------------- For Navbar Component -------------------------*/ #navbar-component .navbar { z-index: auto !important; } #navbar-component .navbar.floating-nav { border-radius: .5rem; } #navbar-component .navbar .navbar-nav .nav-item a { color: inherit; } #navbar-component .navbar.header-navbar.navbar-dark .navbar-nav .nav-link { color: #fff; } #navbar-component .navbar.header-navbar.navbar-dark .navbar-nav .nav-link i { color: #fff; } #navbar-component .navbar .navbar-nav .dropdown-language.show, #navbar-component .navbar .navbar-nav .dropdown-notification.show, #navbar-component .navbar .navbar-nav .dropdown-user.show { position: relative; } #navbar-component .navbar .navbar-nav .dropdown-language .dropdown-menu.show, #navbar-component .navbar .navbar-nav .dropdown-notification .dropdown-menu.show, #navbar-component .navbar .navbar-nav .dropdown-user .dropdown-menu.show { position: absolute; right: 0; left: auto !important; } #navbar-component .navbar.navbar-dark .navbar-toggler, #navbar-component .navbar.navbar-light .navbar-toggler { font-size: 1.2rem; } #navbar-component .navbar.navbar-dark .navbar-toggler:focus, #navbar-component .navbar.navbar-light .navbar-toggler:focus { outline: 0; } #navbar-component #navbar-collapsed .navbar { border-radius: 0; } @media (min-width: 992px) { #navbar-component .navbar .navbar-container { background: inherit; } #navbar-component .nav .dropdown-language { float: right; } } @media (max-width: 992px) { #navbar-component .navbar .navbar-container { background: inherit; } #navbar-component .navbar .navbar-container .navbar-nav { flex-direction: row; } } @media (max-width: 1201px) { .header-navbar.fixed-top { left: 0; } .horizontal-layout .header-navbar .navbar-container { padding-left: 1.5rem; padding-right: 1.2rem; } } @media (max-width: 1199px) { .header-navbar .navbar-container ul.nav li a.dropdown-user-link .user-name { margin-bottom: 0; } } @media (max-width: 768px) { #navbar-component .navbar .navbar-nav .dropdown-notification.show { position: static; } } @media (max-width: 575.98px) { .header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - 3.5rem) !important; margin-left: 1.2rem; margin-right: 1.2rem; } .content.app-content .content-area-wrapper { margin-left: 1.2rem !important; margin-right: 1.2rem !important; } .header-navbar .navbar-container { padding-left: 1rem !important; padding-right: 0 !important; } } @media (max-width: 992px) { .navbar-container #navbar-mobile .nav-back { margin-top: 5px; } } .card-group, .card-deck { margin-bottom: 0.75rem; } .card { margin-bottom: 2.2rem; border: none; border-radius: 0.5rem; box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.1); transition: all .3s ease-in-out; } .card .card { box-shadow: none !important; } .card .card-subtitle { margin-top: .5rem; } .card .card-title { font-weight: 500; letter-spacing: 0.05rem; font-size: 1.32rem; margin-bottom: 0.5rem; } .card .card-bordered { border: 1px solid rgba(0, 0, 0, 0.125); } .card .card-img { object-fit: cover; } .card .card-img-overlay { border-radius: 0.25rem; } .card.card-fullscreen { display: block; z-index: 9999; position: fixed; width: 100% !important; height: 100% !important; top: 0; right: 0; left: 0; bottom: 0; overflow: auto; } .card .card-body[class*='border-bottom-'] { border-bottom-width: 2px !important; } .card .card-img-overlay.bg-overlay { background: rgba(0, 0, 0, 0.45); } .card .card-img-overlay .text-muted { color: #1e1e1e !important; } .card.card-minimal { border: none; box-shadow: none; } .card .card-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; border-bottom: none; padding: 1.5rem 1.5rem 0; background-color: transparent; } .card .card-header .card-title { margin-bottom: 0; } .card .card-header .heading-elements, .card .card-header .heading-elements-toggle { background-color: inherit; position: absolute; top: 17px; right: 21px; cursor: pointer; } .card .card-header .heading-elements.heading-top-elements .page-item, .card .card-header .heading-elements-toggle.heading-top-elements .page-item { display: inline-block; } .card .card-header .heading-elements a, .card .card-header .heading-elements-toggle a { padding: 0; padding-left: 8px; } .card .card-header .heading-elements a.btn, .card .card-header .heading-elements-toggle a.btn { padding-top: 6px; padding-bottom: 6px; } .card .card-header .heading-elements a[data-action="collapse"] i, .card .card-header .heading-elements-toggle a[data-action="collapse"] i { transition: all .25s ease-out; display: inline-block; } .card .card-header .heading-elements a[data-action="collapse"].rotate i, .card .card-header .heading-elements-toggle a[data-action="collapse"].rotate i { transform: rotate(-180deg); } .card .card-footer { border-top: 1px solid #dae1e7; } .card-columns .card { margin-bottom: 2.2rem; } .text-white .card-text { color: white; } .text-white .card-img-overlay .text-muted { color: #fff !important; } .text-white code { background-color: white; } .text-white .heading-elements i { color: #fff; } .card-head-inverse { color: #fff; } .card-head-inverse .heading-elements i { color: #fff; } .card-transparent { background-color: transparent; } @media (max-width: 991.98px) { .heading-elements { text-align: center; } .heading-elements .list-inline { display: none; } .heading-elements.visible { top: 22px !important; display: block; margin-top: 0; top: 100%; top: 50px; height: auto; left: 0px; z-index: 997; position: absolute; width: 100%; } .heading-elements.visible .list-inline { background-color: #fff; display: block; position: absolute; top: 12px; right: 15px; } } @media (min-width: 992px) { .heading-elements-toggle { display: none; } } .overlay-img-card .card-img-overlay, .overlay-img-card img { max-height: 34.64rem; } .activity-timeline.timeline-left { border-left: 2px solid #dae1e7; padding-left: 40px; margin-left: 1.5rem; } .activity-timeline.timeline-left li { position: relative; margin-bottom: 20px; } .activity-timeline.timeline-left li p { margin-bottom: 0; } .activity-timeline.timeline-left li .timeline-icon { position: absolute; top: 0; left: -4.3rem; padding: .7rem; display: flex; align-items: center; border-radius: 50%; color: #fff; } .activity-timeline.timeline-left li .timeline-icon i { vertical-align: sub; } .activity-timeline.timeline-right { border-right: 2px solid #dae1e7; padding-right: 40px; margin-right: 1.5rem; } .activity-timeline.timeline-right li { position: relative; margin-bottom: 20px; text-align: right; } .activity-timeline.timeline-right li p { margin-bottom: 0; } .activity-timeline.timeline-right li .timeline-icon { position: absolute; top: 0; right: -4.3rem; padding: .6rem .7rem; border-radius: 50%; color: #fff; } .activity-timeline.timeline-right li .timeline-icon i { vertical-align: sub; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .card-body, .card-content { min-height: 1px; } .profile-card-2 .card .card-header { display: block; } .profile-card-1 .card .avatar, .profile-card-3 .card .avatar { margin-left: auto; margin-right: auto; } } .breadcrumb { font-size: 1rem; font-family: "Montserrat", Helvetica, Arial, serif; background-color: transparent; padding: 0.5rem 0 0.5rem 1rem !important; border-left: 1px solid #d6dce1; border-radius: 0; /* .breadcrumb-item:first-child{ a{ &:after{ content: "\e965"; font-family: 'feather'; } } } */ } .breadcrumb > li + li::before { padding-right: .6rem; padding-left: .6rem; } .breadcrumb .breadcrumb-item + .breadcrumb-item { padding-left: 0; } .breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "\e847"; font-family: 'feather'; color: #626262; } .breadcrumb .breadcrumb-item.active { color: #626262; } /* Custom scss for page headers style */ .breadcrumbs-right .breadcrumb { float: right; } .breadcrumbs-top .breadcrumb { margin: 0; padding: 0; } /* Component Specific */ #component-breadcrumbs .breadcrumb { border: none; } #component-breadcrumbs .breadcrumb .breadcrumb-item + .breadcrumb-item:before { font-family: none; padding: 0 1rem; } #component-breadcrumbs .default-breadcrumb.breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "/"; } #component-breadcrumbs .breadcrumb-dots.breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "."; position: relative; top: -4px; } #component-breadcrumbs .breadcrumb-dashes.breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "-"; } #component-breadcrumbs .breadcrumb-pipes.breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "|"; } #component-breadcrumbs .breadcrumb-chevron.breadcrumb .breadcrumb-item + .breadcrumb-item:before { content: "\e844"; font-family: 'feather'; position: relative; top: 1px; } #breadcrumb-alignment .breadcrumb-wrapper { box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1); padding: 1px; border-radius: 10px; } #breadcrumb-alignment .breadcrumb-wrapper .breadcrumb { margin-top: .8rem; } .badge { color: #fff; background-color: #7367f0; font-weight: 400; } .badge[class*='badge-'] [class*='icon-'] { line-height: 1; } .badge[class*='badge-'] a { color: #fff; } .badge[class*='badge-'] i { vertical-align: middle; } .badge[class*='badge-'] .dropdown-toggle span, .badge[class*='badge-'] .dropdown-toggle i, .badge[class*='badge-'].dropdown-toggle span, .badge[class*='badge-'].dropdown-toggle i { vertical-align: text-top; } .badge[class*='badge-'] .dropdown-toggle i, .badge[class*='badge-'].dropdown-toggle i { padding-left: .2rem; } .badge[class*='badge-'] .dropdown-toggle::after, .badge[class*='badge-'].dropdown-toggle::after { position: relative; top: 0; left: 0; font-size: 1rem; } .badge[class*='badge-'] .dropdown-menu a { color: #212529; } .badge.badge-square { border-radius: 0; } .badge.badge-up { position: absolute; top: -1rem; right: -1rem; } .badge.badge-up.badge-sm { top: -.5rem; right: -.5rem; } .badge-xl { font-size: 1.8rem; } .badge-lg { font-size: 1.2rem; } .badge-md { font-size: 1rem; } .badge-sm { font-size: 0.7rem; } .badge-icon i { font-size: 100%; margin-right: 5px; } .dropup .badge { cursor: pointer; } .nav { border-radius: 0.25rem; } .nav.wrap-border { border: 1px solid #ddd; } .nav.wrap-border li.nav-header { margin: 0 0.5rem; } .nav.wrap-border li.nav-item, .nav.wrap-border div { padding: 2px .714rem; } .nav.square-border { border-radius: 0; } .nav.square-border .nav-item .nav-link.active { border-radius: 0; } .nav .modern-nav-toggle { padding: 1.571rem 0; } .nav.nav-pills { margin-bottom: 1rem; } .nav.nav-pills .nav-item .nav-link { border-radius: .357rem; padding: .2rem 1rem; padding-top: .3rem; font-size: 0.98rem; margin-right: 0.5rem; color: #000; } .nav.nav-pills .nav-item .nav-link.active { color: #fff; } .nav.nav-pills .nav-item .nav-link.disabled { color: #b8c2cc; } .nav.nav-pills .nav-item .nav-link.dropdown-toggle::after { top: 1px; left: 1px; } .nav.nav-pills .nav-item.dropdown.show .nav-link { color: #fff; } .nav.nav-pills .nav-item.dropdown.show .dropdown-item.active:hover { color: #7367f0; } .nav.nav-pills.nav-justified { width: 100%; } .nav.nav-pills.nav-justified .nav-item { float: none; } .nav.nav-pills.nav-justified .nav-link { text-align: center; margin-bottom: 5px; } .nav.nav-pills.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 576px) { .nav.nav-pills.nav-justified .nav-item { display: block; width: 1%; } .nav.nav-pills.nav-justified .nav-link { margin-bottom: 0; } } .nav.nav-pills.nav-justified .nav-link { margin-right: 0; border-radius: 0.5rem; } @media (min-width: 576px) { .nav.nav-pills.nav-justified .nav-link.active, .nav.nav-pills.nav-justified .nav-link.active:hover, .nav.nav-pills.nav-justified .nav-link.active:focus { border-bottom-color: transparent; } } .nav.nav-pills.nav-justified .nav-link { display: block; } .nav.nav-pills.nav-justified .nav-link.active { border: none; } .nav.nav-pills.nav-justified .nav-link.active:hover, .nav.nav-pills.nav-justified .nav-link.active:focus { border: none; } .nav.nav-pills.nav-active-bordered-pill .nav-item a.nav-link.active { border: 1px solid #7367f0; border-radius: 0.25rem; color: #7367f0; background-color: #fff; } .nav.nav-tabs { border: none; margin-bottom: 1rem; position: relative; border-radius: 0; } .nav.nav-tabs .nav-item { position: relative; } .nav.nav-tabs .nav-item .nav-link { color: #626262; font-size: 0.95rem; border: none; min-width: auto; font-weight: 450; padding: .61rem .635rem; border-radius: 0; } .nav.nav-tabs .nav-item .nav-link.active { border: none; position: relative; color: #7367f0; transition: all .2s ease; background-color: transparent; } .nav.nav-tabs .nav-item .nav-link.active:after { content: attr(data-before); height: 2px; width: 100%; left: 0; position: absolute; bottom: 0; top: 100%; background: linear-gradient(30deg, #7367f0, rgba(115, 103, 240, 0.5)) !important; box-shadow: 0 0 8px 0 rgba(115, 103, 240, 0.5) !important; transform: translateY(0px); transition: all .2s linear; } .nav.nav-tabs .nav-item .nav-link.dropdown-toggle::after { top: 1px; left: 1px; } .nav.nav-tabs .nav-item .nav-link.disabled { color: #adb5bd; } .nav.nav-tabs.nav-justified { width: 100%; } .nav.nav-tabs.nav-justified .nav-item { float: none; } .nav.nav-tabs.nav-justified .nav-link { text-align: center; margin-bottom: 5px; } .nav.nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 576px) { .nav.nav-tabs.nav-justified .nav-item { display: block; width: 1%; } .nav.nav-tabs.nav-justified .nav-link { margin-bottom: 0; } } .nav.nav-tabs.nav-justified .nav-link { margin-right: 0; border-radius: 0.5rem; } @media (min-width: 576px) { .nav.nav-tabs.nav-justified .nav-link.active, .nav.nav-tabs.nav-justified .nav-link.active:hover, .nav.nav-tabs.nav-justified .nav-link.active:focus { border-bottom-color: transparent; } } .nav.nav-tabs.nav-justified .nav-item a.nav-link { display: block; border-radius: 0; } .nav.nav-tabs.nav-justified .nav-item a.nav-link.active { border: none; background-color: #fff; } .nav.nav-tabs.nav-justified .nav-item a.nav-link:hover { border-color: transparent; } .nav-vertical { overflow: hidden; } .nav-vertical .nav.nav-tabs .nav-item .nav-link { border: none; margin-bottom: 0; } .nav-vertical .nav.nav-tabs .nav-item .nav-link.active { border: none; border-radius: 0; } .nav-vertical .nav.nav-tabs .nav-item .nav-link.active:after { transform: rotate(90deg); left: auto; right: -1.5rem; bottom: 100%; top: 1.25rem; width: 2.14rem; } .nav-vertical .nav.nav-tabs .nav-item .nav-link:hover { border-right: none; } .nav-vertical .nav.nav-tabs.nav-left { float: left; display: table; margin-right: 1rem; } .nav-vertical .nav.nav-tabs.nav-left ~ .tab-content .tab-pane { display: none; background-color: #fff; overflow-y: auto; } .nav-vertical .nav.nav-tabs.nav-left ~ .tab-content .tab-pane.active { display: block; } .nav-vertical .nav.nav-tabs.nav-right { float: right; display: table; margin-left: 1rem; } .nav-vertical .nav.nav-tabs.nav-right .nav-item .nav-link.active:after { left: -1.5rem; } .nav-vertical .nav.nav-tabs.nav-right ~ .tab-content .tab-pane { display: none; background-color: #fff; overflow-y: auto; padding-right: 1rem; } .nav-vertical .nav.nav-tabs.nav-right ~ .tab-content .tab-pane.active { display: block; } @media (max-width: 576px) { .nav-vertical .nav.nav-tabs .nav-item .nav-link.active:after { height: 0; } } .alert { font-weight: 500; border: none; } .alert .close:focus { outline: 0; } .alert p { font-weight: 500; padding: 2px 0; margin-bottom: 0; vertical-align: middle; } .alert span { vertical-align: middle; } .alert .alert-heading { font-weight: 700; font-size: 0.9rem; padding: 0; padding-bottom: 8px; } .alert.alert-dark .alert-heading { box-shadow: rgba(52, 58, 64, 0.4) 0px 6px 15px -7px; } .alert.alert-light .alert-heading { box-shadow: rgba(248, 249, 250, 0.4) 0px 6px 15px -7px; } .media-list .media { padding: 1.25rem; width: 100%; margin-top: 0; } .media-list .media .media-left { padding-right: 1rem; } .media-list .media .media-right { padding-left: 1rem; } .media-list a.media { color: #b8c2cc !important; } .media-bordered .media { border-top: 1px solid #E4E7ED; } .media-bordered .media:first-child { border-top: 0; } /*========================================================================================= File Name: progress.scss Description: Extended bootstrap progress bar scss. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ---------------------------------------------------------------------------------------- Modifiers: `progress-lg` `progress-md` `progress-sm` `progress-xs` ==========================================================================================*/ .progress { margin-bottom: 3rem; } .progress:last-child { margin-bottom: 1rem; } .progress.progress-xl { height: 1.14rem; } .progress.progress-lg { height: 0.857rem; } .progress.progress-md { height: 0.57rem; } .progress.progress-sm { height: 0.143rem; } .progress .progress-bar { border-radius: 1.28rem; } /* =============================================================================================== File Name: list-group.scss Description: Contain list item, list group related extended SCSS. ---------------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ================================================================================================*/ ul.list-inline li { display: inline-block; } ul.list-inline.list-inline-pipe > li + li:before { content: ' | '; padding-right: 2px; } .list-group .list-group-item { line-height: 1.5; } .list-group .list-group-item.active:hover { background-color: #7367f0; } .list-group .list-group-item.active:focus { outline: 0; } .list-group .list-group-item.active:focus:hover { color: #fff; } .list-group .list-group-item:hover { background-color: #f8f8f8; } .list-group .list-group-item i { font-size: 1.2rem; font-weight: 100; position: relative; } .list-group .list-group-item:not(.active):focus:active { color: inherit; } .list-group .list-group-item-action:focus { outline: 0; } .list-group-item.gu-mirror { border-radius: 0; } .users-list li + li { margin-left: -.785rem; } .users-list li img { border: 2px solid #fff; box-shadow: 0px 2px 10px 0px rgba(184, 194, 204, 0.3); } .users-list li .badge { color: #22292f; } .toast-bs-container { z-index: 1040; position: fixed; top: 0; left: 0; width: 100%; } .toast-bs-container .toast-position { position: relative; top: 0; right: 0; display: flex; flex-direction: column; flex-wrap: wrap-reverse; } .toast-bs-container .toast-position .toast.show { opacity: 1; z-index: 1030; } .toast-placement { position: static; top: 0; } .toast-placement .toast { position: fixed; top: 0; z-index: 1030; } .toast { display: none; background-color: white; margin-top: .75rem; } .toast .toast-header .close:focus, .toast .toast-header .close:active { outline: none; } .toast.show.toast-wrapper { position: static; } .toast.toast-translucent { opacity: 1; display: block; } .toast-header img { width: 35px; height: 24px; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .toast-bs-container { position: fixed !important; left: 74% !important; } } _:-ms-lang(x), .toast-bs-container { position: fixed !important; left: 74% !important; } .accordion .collapse-title, .collapse-bordered .collapse-title { font-weight: 400; font-size: 1.2rem; } .accordion .card-header, .collapse-bordered .card-header { cursor: pointer; } .collapse-title { color: inherit; } .collapse-title:hover { color: inherit; } .collapse-bordered .card:first-child { border-top: 0; } .collapse-bordered .card:last-child { border-bottom: 0; } .collapse-bordered .card { margin-bottom: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.04); border-radius: 0; } .collapse-bordered .card .card-header { padding: 1rem; } .collapse-bordered .card .card-body { padding: 1rem; line-height: 1.5; } .accordion .collapse-border-item.card { border: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: 0; } .accordion .collapse-border-item.card:first-child { border-bottom: 0; } .accordion .collapse-border-item.card .card-header { padding: 1rem; } .accordion .collapse-border-item.card .card-body { padding: 1rem; line-height: 1.5; } .accordion-shadow { box-shadow: 0 0px 4px 0 rgba(0, 0, 0, 0.1); padding: .15rem .75rem; border-radius: 0.5rem; } .accordion-shadow .card.open { border-radius: 0.571rem; margin: 10px 0; border: 0; box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1) !important; } .accordion-shadow .card:first-child { border-top-left-radius: 0.571rem; border-top-right-radius: 0.571rem; } .accordion-shadow .card:last-child { border-bottom-left-radius: 0.571rem; border-bottom-right-radius: 0.571rem; } .collapse-border { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0.5rem; } .collapse-border + .collapse.show { border: 1px solid rgba(0, 0, 0, 0.1); } .collapse-margin { margin-top: .71rem; margin-bottom: .71rem !important; box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.05); border-radius: 5px; border-bottom: 0 solid transparent !important; } .collapse-margin .card-header { padding: 1rem; border-radius: 5px; } .collapse-margin .card-body { padding: 1rem; line-height: 1.5rem; } .pagination .page-item { border-radius: 5rem; } .pagination .page-item.prev-item .page-link, .pagination .page-item.next-item .page-link, .pagination .page-item.first .page-link, .pagination .page-item.last .page-link { color: #7367f0; } .pagination .page-item.prev-item.disabled .page-link, .pagination .page-item.next-item.disabled .page-link, .pagination .page-item.first.disabled .page-link, .pagination .page-item.last.disabled .page-link { color: #6c757d; } .pagination .page-item:not(.prev-item) .page-link, .pagination .page-item:not(.next-item) .page-link, .pagination .page-item:not(.first) .page-link, .pagination .page-item:not(.last) .page-link, .pagination .page-item:not(.active) .page-link { line-height: 1.3; } .pagination .page-item.prev-item { margin-right: .3571rem; } .pagination .page-item.prev-item .page-link { background-color: #f0f0f0; padding: 0.572rem 0.651rem; border-radius: 50%; } .pagination .page-item.prev-item .page-link:before { content: "\e843"; font-family: 'feather'; } .pagination .page-item.prev-item .page-link:hover { background: #7367f0; color: #fff; } .pagination .page-item.prev-item ~ .page-item:nth-child(2) { border-top-left-radius: 5rem; border-bottom-left-radius: 5rem; } .pagination .page-item.prev-item ~ .page-item:nth-child(2) .page-link { border-top-left-radius: 5rem !important; border-bottom-left-radius: 5rem !important; } .pagination .page-item.prev-item ~ .page-item:nth-last-child(2) { border-top-right-radius: 5rem; border-bottom-right-radius: 5rem; } .pagination .page-item.prev-item ~ .page-item:nth-last-child(2) .page-link { border-top-right-radius: 5rem !important; border-bottom-right-radius: 5rem !important; } .pagination .page-item.next-item { margin-left: .3571rem; } .pagination .page-item.next-item .page-link { background-color: #f0f0f0; padding: 0.572rem 0.651rem; border-radius: 50%; } .pagination .page-item.next-item .page-link:after { content: "\e844"; font-family: 'feather'; } .pagination .page-item.next-item .page-link:hover { background: #7367f0; color: #fff; } .pagination .page-item.prev .page-link:before, .pagination .page-item.previous .page-link:before { content: "\e843"; font-family: 'feather'; } .pagination .page-item.next .page-link:after { content: "\e844"; font-family: 'feather'; } .pagination .page-item .page-link { border: none; margin: 0; color: rgba(0, 0, 0, 0.6); background-color: #f0f0f0; margin-left: 0; font-size: 1rem; font-weight: 700; } .pagination .page-item .page-link i { position: relative; top: 1px; } .pagination .page-item .page-link:focus { box-shadow: none; } .pagination .page-item .page-link:hover { color: #7367f0; } .pagination .page-item.active { background-color: #f0f0f0; border-radius: 0; } .pagination .page-item.active .page-link { z-index: 3; border-radius: 5rem; background-color: #7367f0; color: #fff; transform: scale(1.05); } .pagination .page-item:first-child:not(.prev-item).active { border-top-left-radius: 1.428rem; border-bottom-left-radius: 1.428rem; } .pagination .page-item:first-child:not(.prev-item).active .page-link { border-radius: 5rem; } .pagination .page-item:first-child:not(.prev-item) .page-link { border-top-left-radius: 1.428rem; border-bottom-left-radius: 1.428rem; } .pagination .page-item:last-child:not(.next-item).active { border-top-right-radius: 1.428rem; border-bottom-right-radius: 1.428rem; } .pagination .page-item:last-child:not(.next-item).active .page-link { border-radius: 5rem; } .pagination .page-item:last-child:not(.next-item) .page-link { border-top-right-radius: 1.428rem; border-bottom-right-radius: 1.428rem; } .pagination.pagination-lg .page-item .page-link { font-size: 1.5rem; transform: scale(1); } .modal .modal-header { background-color: #f8f8f8; border-radius: .42rem; padding: .8rem; border-bottom: none; } .modal .modal-header .close { padding: .2rem .62rem; box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1); border-radius: .357rem; background: #fff; opacity: 1; transition: all .23s ease .1s; position: relative; transform: translate(8px, -2px); } .modal .modal-header .close span { font-weight: 400; font-size: 2rem; color: #7367f0; } .modal .modal-header .close:hover, .modal .modal-header .close:focus, .modal .modal-header .close:active { opacity: 1; outline: none; transform: translate(5px, 3px); box-shadow: none; } .modal .modal-header[class*="bg-"] { color: #fff; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } .modal .modal-header[class*="bg-"] .modal-title { color: #fff; } .modal .modal-header.bg-primary .close span { color: #7367f0; } .modal .modal-header.bg-success .close span { color: #28a745; } .modal .modal-header.bg-info .close span { color: #00cfe8; } .modal .modal-header.bg-danger .close span { color: #dc3545; } .modal .modal-header.bg-warning .close span { color: #ff9f43; } .modal .modal-header.bg-dark .close span { color: #343a40; } .modal .modal-content { border: none; overflow: visible; box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1); } .modal .modal-footer { border-color: rgba(0, 0, 0, 0.05); } .modal-sm { max-width: 400px; } .modal-xs { max-width: 300px; } .modal-xl { max-width: 94%; margin-left: 3%; margin-right: 3%; } @media (max-width: 576px) { .modal { padding-right: 1rem; padding-left: 1rem; } .modal .modal-xs, .modal .modal-sm { max-width: unset; } } .popover { z-index: 10; } .popover .popover-header { color: #fff; border: none; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; } .popover.bs-popover-bottom .arrow:after { border-bottom-color: #7367f0; } .icon-bg-circle { color: #fff; padding: 0.5rem; border-radius: 50%; } .icon-left { margin-right: 0.5rem; } .icon-right { margin-right: 0.5rem; } .icon-spin { display: inline-block; animation: spin 1s infinite linear; } .blockOverlay { z-index: 1050 !important; } .blockElement, .blockPage { z-index: 1051 !important; } @-moz-keyframes spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .hidden { display: none; visibility: hidden; } a:hover { cursor: pointer; } .round { border-radius: 1.5rem; } .square { border-radius: 0; } .icon-line-height { line-height: 1.5rem !important; } .table-middle td { vertical-align: middle; } .spinner { display: inline-block; -webkit-animation: spin 1s linear infinite; -o-animation: spin 1s linear infinite; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } button:focus { outline: none; } ================================================ FILE: public/backend/css/bootstrap.css ================================================ /*! * Bootstrap v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! * Bootstrap v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ :root { --blue: #00cfe8; --indigo: #6610f2; --purple: #6f42c1; --pink: #e83e8c; --red: #ea5455; --orange: #ff9f43; --yellow: #ffc107; --green: #28c76f; --teal: #20c997; --cyan: #7367f0; --white: #fff; --gray: #b8c2cc; --gray-dark: #1e1e1e; --primary: #7367f0; --secondary: #b8c2cc; --success: #28c76f; --info: #00cfe8; --warning: #ff9f43; --danger: #ea5455; --light: #babfc7; --dark: #1e1e1e; --breakpoint-xs: 0; --breakpoint-sm: 576px; --breakpoint-md: 768px; --breakpoint-lg: 992px; --breakpoint-xl: 1200px; --font-family-sans-serif: "Montserrat", Helvetica, Arial, serif; --font-family-monospace: "Montserrat", Helvetica, Arial, serif; } *, *::before, *::after { box-sizing: border-box; } html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(34, 41, 47, 0); } article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } body { margin: 0; font-family: "Montserrat", Helvetica, Arial, serif; font-size: 1rem; font-weight: 400; line-height: 1.45; color: #626262; text-align: left; background-color: #f8f8f8; } [tabindex="-1"]:focus { outline: 0 !important; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; } p { margin-top: 0; margin-bottom: 1rem; } abbr[title], abbr[data-original-title] { text-decoration: underline; text-decoration: underline dotted; cursor: help; border-bottom: 0; text-decoration-skip-ink: none; } address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: .5rem; margin-left: 0; } blockquote { margin: 0 0 1rem; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -.25em; } sup { top: -.5em; } a { color: #7367f0; text-decoration: none; background-color: transparent; } a:hover { color: #5e50ee; text-decoration: none; } a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):focus { outline: 0; } pre, code, kbd, samp { font-family: "Montserrat", Helvetica, Arial, serif; font-size: 1em; } pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; } figure { margin: 0 0 1rem; } img { vertical-align: middle; border-style: none; } svg { overflow: hidden; vertical-align: middle; } table { border-collapse: collapse; } caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #b8c2cc; text-align: left; caption-side: bottom; } th { text-align: inherit; } label { display: inline-block; margin-bottom: 0.5rem; } button { border-radius: 0; } button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } select { word-wrap: normal; } button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { padding: 0; border-style: none; } input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; } input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { -webkit-appearance: listbox; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; } progress { vertical-align: baseline; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { outline-offset: -2px; -webkit-appearance: none; } [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; cursor: pointer; } template { display: none; } [hidden] { display: none !important; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 0.5rem; font-family: inherit; font-weight: 500; line-height: 1.2; color: #2c2c2c; } h1, .h1 { font-size: 2rem; } h2, .h2 { font-size: 1.74rem; } h3, .h3 { font-size: 1.51rem; } h4, .h4 { font-size: 1.32rem; } h5, .h5 { font-size: 1.14rem; } h6, .h6 { font-size: 1rem; } .lead { font-size: 1.25rem; font-weight: 300; } .display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; } .display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; } .display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; } .display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; } hr { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid rgba(34, 41, 47, 0.1); } small, .small { font-size: smaller; font-weight: 400; } mark, .mark { padding: 0.2em; background-color: #fcf8e3; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline-item { display: inline-block; } .list-inline-item:not(:last-child) { margin-right: 0.5rem; } .initialism { font-size: 90%; text-transform: uppercase; } .blockquote { margin-bottom: 1rem; font-size: 1.25rem; } .blockquote-footer { display: block; font-size: smaller; color: #b8c2cc; } .blockquote-footer::before { content: "\2014\00A0"; } .img-fluid { max-width: 100%; height: auto; } .img-thumbnail { padding: 0.25rem; background-color: #f8f8f8; border: 1px solid #dae1e7; border-radius: 0.5rem; max-width: 100%; height: auto; } .figure { display: inline-block; } .figure-img { margin-bottom: 0.5rem; line-height: 1; } .figure-caption { font-size: 90%; color: #b8c2cc; } code { font-size: 90%; color: #e83e8c; word-break: break-word; } a > code { color: inherit; } kbd { padding: 0.2rem 0.4rem; font-size: 90%; color: #fff; background-color: #eee; border-radius: 0.25rem; } kbd kbd { padding: 0; font-size: 100%; font-weight: 700; } pre { display: block; font-size: 90%; color: #2a2e30; } pre code { font-size: inherit; color: inherit; word-break: normal; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { width: 100%; padding-right: 14px; padding-left: 14px; margin-right: auto; margin-left: auto; } @media (min-width: 576px) { .container { max-width: 540px; } } @media (min-width: 768px) { .container { max-width: 720px; } } @media (min-width: 992px) { .container { max-width: 960px; } } @media (min-width: 1200px) { .container { max-width: 1140px; } } .container-fluid { width: 100%; padding-right: 14px; padding-left: 14px; margin-right: auto; margin-left: auto; } .row { display: flex; flex-wrap: wrap; margin-right: -14px; margin-left: -14px; } .no-gutters { margin-right: 0; margin-left: 0; } .no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto { position: relative; width: 100%; padding-right: 14px; padding-left: 14px; } .col { flex-basis: 0; flex-grow: 1; max-width: 100%; } .col-auto { flex: 0 0 auto; width: auto; max-width: 100%; } .col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; } .col-3 { flex: 0 0 25%; max-width: 25%; } .col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-5 { flex: 0 0 41.66667%; max-width: 41.66667%; } .col-6 { flex: 0 0 50%; max-width: 50%; } .col-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; } .col-9 { flex: 0 0 75%; max-width: 75%; } .col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; } .col-12 { flex: 0 0 100%; max-width: 100%; } .order-first { order: -1; } .order-last { order: 13; } .order-0 { order: 0; } .order-1 { order: 1; } .order-2 { order: 2; } .order-3 { order: 3; } .order-4 { order: 4; } .order-5 { order: 5; } .order-6 { order: 6; } .order-7 { order: 7; } .order-8 { order: 8; } .order-9 { order: 9; } .order-10 { order: 10; } .order-11 { order: 11; } .order-12 { order: 12; } .offset-1 { margin-left: 8.33333%; } .offset-2 { margin-left: 16.66667%; } .offset-3 { margin-left: 25%; } .offset-4 { margin-left: 33.33333%; } .offset-5 { margin-left: 41.66667%; } .offset-6 { margin-left: 50%; } .offset-7 { margin-left: 58.33333%; } .offset-8 { margin-left: 66.66667%; } .offset-9 { margin-left: 75%; } .offset-10 { margin-left: 83.33333%; } .offset-11 { margin-left: 91.66667%; } @media (min-width: 576px) { .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; } .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; } .col-sm-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-sm-2 { flex: 0 0 16.66667%; max-width: 16.66667%; } .col-sm-3 { flex: 0 0 25%; max-width: 25%; } .col-sm-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-sm-5 { flex: 0 0 41.66667%; max-width: 41.66667%; } .col-sm-6 { flex: 0 0 50%; max-width: 50%; } .col-sm-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-sm-8 { flex: 0 0 66.66667%; max-width: 66.66667%; } .col-sm-9 { flex: 0 0 75%; max-width: 75%; } .col-sm-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-sm-11 { flex: 0 0 91.66667%; max-width: 91.66667%; } .col-sm-12 { flex: 0 0 100%; max-width: 100%; } .order-sm-first { order: -1; } .order-sm-last { order: 13; } .order-sm-0 { order: 0; } .order-sm-1 { order: 1; } .order-sm-2 { order: 2; } .order-sm-3 { order: 3; } .order-sm-4 { order: 4; } .order-sm-5 { order: 5; } .order-sm-6 { order: 6; } .order-sm-7 { order: 7; } .order-sm-8 { order: 8; } .order-sm-9 { order: 9; } .order-sm-10 { order: 10; } .order-sm-11 { order: 11; } .order-sm-12 { order: 12; } .offset-sm-0 { margin-left: 0; } .offset-sm-1 { margin-left: 8.33333%; } .offset-sm-2 { margin-left: 16.66667%; } .offset-sm-3 { margin-left: 25%; } .offset-sm-4 { margin-left: 33.33333%; } .offset-sm-5 { margin-left: 41.66667%; } .offset-sm-6 { margin-left: 50%; } .offset-sm-7 { margin-left: 58.33333%; } .offset-sm-8 { margin-left: 66.66667%; } .offset-sm-9 { margin-left: 75%; } .offset-sm-10 { margin-left: 83.33333%; } .offset-sm-11 { margin-left: 91.66667%; } } @media (min-width: 768px) { .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; } .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; } .col-md-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-md-2 { flex: 0 0 16.66667%; max-width: 16.66667%; } .col-md-3 { flex: 0 0 25%; max-width: 25%; } .col-md-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-md-5 { flex: 0 0 41.66667%; max-width: 41.66667%; } .col-md-6 { flex: 0 0 50%; max-width: 50%; } .col-md-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-md-8 { flex: 0 0 66.66667%; max-width: 66.66667%; } .col-md-9 { flex: 0 0 75%; max-width: 75%; } .col-md-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-md-11 { flex: 0 0 91.66667%; max-width: 91.66667%; } .col-md-12 { flex: 0 0 100%; max-width: 100%; } .order-md-first { order: -1; } .order-md-last { order: 13; } .order-md-0 { order: 0; } .order-md-1 { order: 1; } .order-md-2 { order: 2; } .order-md-3 { order: 3; } .order-md-4 { order: 4; } .order-md-5 { order: 5; } .order-md-6 { order: 6; } .order-md-7 { order: 7; } .order-md-8 { order: 8; } .order-md-9 { order: 9; } .order-md-10 { order: 10; } .order-md-11 { order: 11; } .order-md-12 { order: 12; } .offset-md-0 { margin-left: 0; } .offset-md-1 { margin-left: 8.33333%; } .offset-md-2 { margin-left: 16.66667%; } .offset-md-3 { margin-left: 25%; } .offset-md-4 { margin-left: 33.33333%; } .offset-md-5 { margin-left: 41.66667%; } .offset-md-6 { margin-left: 50%; } .offset-md-7 { margin-left: 58.33333%; } .offset-md-8 { margin-left: 66.66667%; } .offset-md-9 { margin-left: 75%; } .offset-md-10 { margin-left: 83.33333%; } .offset-md-11 { margin-left: 91.66667%; } } @media (min-width: 992px) { .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; } .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; } .col-lg-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-lg-2 { flex: 0 0 16.66667%; max-width: 16.66667%; } .col-lg-3 { flex: 0 0 25%; max-width: 25%; } .col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-lg-5 { flex: 0 0 41.66667%; max-width: 41.66667%; } .col-lg-6 { flex: 0 0 50%; max-width: 50%; } .col-lg-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; } .col-lg-9 { flex: 0 0 75%; max-width: 75%; } .col-lg-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-lg-11 { flex: 0 0 91.66667%; max-width: 91.66667%; } .col-lg-12 { flex: 0 0 100%; max-width: 100%; } .order-lg-first { order: -1; } .order-lg-last { order: 13; } .order-lg-0 { order: 0; } .order-lg-1 { order: 1; } .order-lg-2 { order: 2; } .order-lg-3 { order: 3; } .order-lg-4 { order: 4; } .order-lg-5 { order: 5; } .order-lg-6 { order: 6; } .order-lg-7 { order: 7; } .order-lg-8 { order: 8; } .order-lg-9 { order: 9; } .order-lg-10 { order: 10; } .order-lg-11 { order: 11; } .order-lg-12 { order: 12; } .offset-lg-0 { margin-left: 0; } .offset-lg-1 { margin-left: 8.33333%; } .offset-lg-2 { margin-left: 16.66667%; } .offset-lg-3 { margin-left: 25%; } .offset-lg-4 { margin-left: 33.33333%; } .offset-lg-5 { margin-left: 41.66667%; } .offset-lg-6 { margin-left: 50%; } .offset-lg-7 { margin-left: 58.33333%; } .offset-lg-8 { margin-left: 66.66667%; } .offset-lg-9 { margin-left: 75%; } .offset-lg-10 { margin-left: 83.33333%; } .offset-lg-11 { margin-left: 91.66667%; } } @media (min-width: 1200px) { .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; } .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; } .col-xl-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-xl-2 { flex: 0 0 16.66667%; max-width: 16.66667%; } .col-xl-3 { flex: 0 0 25%; max-width: 25%; } .col-xl-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-xl-5 { flex: 0 0 41.66667%; max-width: 41.66667%; } .col-xl-6 { flex: 0 0 50%; max-width: 50%; } .col-xl-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-xl-8 { flex: 0 0 66.66667%; max-width: 66.66667%; } .col-xl-9 { flex: 0 0 75%; max-width: 75%; } .col-xl-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-xl-11 { flex: 0 0 91.66667%; max-width: 91.66667%; } .col-xl-12 { flex: 0 0 100%; max-width: 100%; } .order-xl-first { order: -1; } .order-xl-last { order: 13; } .order-xl-0 { order: 0; } .order-xl-1 { order: 1; } .order-xl-2 { order: 2; } .order-xl-3 { order: 3; } .order-xl-4 { order: 4; } .order-xl-5 { order: 5; } .order-xl-6 { order: 6; } .order-xl-7 { order: 7; } .order-xl-8 { order: 8; } .order-xl-9 { order: 9; } .order-xl-10 { order: 10; } .order-xl-11 { order: 11; } .order-xl-12 { order: 12; } .offset-xl-0 { margin-left: 0; } .offset-xl-1 { margin-left: 8.33333%; } .offset-xl-2 { margin-left: 16.66667%; } .offset-xl-3 { margin-left: 25%; } .offset-xl-4 { margin-left: 33.33333%; } .offset-xl-5 { margin-left: 41.66667%; } .offset-xl-6 { margin-left: 50%; } .offset-xl-7 { margin-left: 58.33333%; } .offset-xl-8 { margin-left: 66.66667%; } .offset-xl-9 { margin-left: 75%; } .offset-xl-10 { margin-left: 83.33333%; } .offset-xl-11 { margin-left: 91.66667%; } } .table { width: 100%; margin-bottom: 1rem; color: #626262; } .table th, .table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #f8f8f8; } .table thead th { vertical-align: bottom; border-bottom: 2px solid #f8f8f8; } .table tbody + tbody { border-top: 2px solid #f8f8f8; } .table-sm th, .table-sm td { padding: 0.3rem; } .table-bordered { border: 1px solid #f8f8f8; } .table-bordered th, .table-bordered td { border: 1px solid #f8f8f8; } .table-bordered thead th, .table-bordered thead td { border-bottom-width: 2px; } .table-borderless th, .table-borderless td, .table-borderless thead th, .table-borderless tbody + tbody { border: 0; } .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(34, 41, 47, 0.05); } .table-hover tbody tr:hover { color: #626262; background-color: rgba(34, 41, 47, 0.075); } .table-primary, .table-primary > th, .table-primary > td { background-color: #d8d4fb; } .table-primary th, .table-primary td, .table-primary thead th, .table-primary tbody + tbody { border-color: #b6b0f7; } .table-hover .table-primary:hover { background-color: #c3bdf9; } .table-hover .table-primary:hover > td, .table-hover .table-primary:hover > th { background-color: #c3bdf9; } .table-secondary, .table-secondary > th, .table-secondary > td { background-color: #ebeef1; } .table-secondary th, .table-secondary td, .table-secondary thead th, .table-secondary tbody + tbody { border-color: #dadfe4; } .table-hover .table-secondary:hover { background-color: #dce1e7; } .table-hover .table-secondary:hover > td, .table-hover .table-secondary:hover > th { background-color: #dce1e7; } .table-success, .table-success > th, .table-success > td { background-color: #c3efd7; } .table-success th, .table-success td, .table-success thead th, .table-success tbody + tbody { border-color: #8fe2b4; } .table-hover .table-success:hover { background-color: #afeaca; } .table-hover .table-success:hover > td, .table-hover .table-success:hover > th { background-color: #afeaca; } .table-info, .table-info > th, .table-info > td { background-color: #b8f2f9; } .table-info th, .table-info td, .table-info thead th, .table-info tbody + tbody { border-color: #7ae6f3; } .table-hover .table-info:hover { background-color: #a0eef7; } .table-hover .table-info:hover > td, .table-hover .table-info:hover > th { background-color: #a0eef7; } .table-warning, .table-warning > th, .table-warning > td { background-color: #ffe4ca; } .table-warning th, .table-warning td, .table-warning thead th, .table-warning tbody + tbody { border-color: #ffcd9d; } .table-hover .table-warning:hover { background-color: #ffd7b1; } .table-hover .table-warning:hover > td, .table-hover .table-warning:hover > th { background-color: #ffd7b1; } .table-danger, .table-danger > th, .table-danger > td { background-color: #f9cfcf; } .table-danger th, .table-danger td, .table-danger thead th, .table-danger tbody + tbody { border-color: #f4a6a7; } .table-hover .table-danger:hover { background-color: #f6b8b8; } .table-hover .table-danger:hover > td, .table-hover .table-danger:hover > th { background-color: #f6b8b8; } .table-light, .table-light > th, .table-light > td { background-color: #ecedef; } .table-light th, .table-light td, .table-light thead th, .table-light tbody + tbody { border-color: #dbdee2; } .table-hover .table-light:hover { background-color: #dee0e3; } .table-hover .table-light:hover > td, .table-hover .table-light:hover > th { background-color: #dee0e3; } .table-dark, .table-dark > th, .table-dark > td { background-color: silver; } .table-dark th, .table-dark td, .table-dark thead th, .table-dark tbody + tbody { border-color: #8a8a8a; } .table-hover .table-dark:hover { background-color: #b3b3b3; } .table-hover .table-dark:hover > td, .table-hover .table-dark:hover > th { background-color: #b3b3b3; } .table-active, .table-active > th, .table-active > td { background-color: rgba(34, 41, 47, 0.075); } .table-hover .table-active:hover { background-color: rgba(23, 28, 32, 0.075); } .table-hover .table-active:hover > td, .table-hover .table-active:hover > th { background-color: rgba(23, 28, 32, 0.075); } .table .thead-dark th { color: #fff; background-color: #1e1e1e; border-color: #313131; } .table .thead-light th { color: #4e5154; background-color: #ededed; border-color: #f8f8f8; } .table-dark { color: #fff; background-color: #1e1e1e; } .table-dark th, .table-dark td, .table-dark thead th { border-color: #313131; } .table-dark.table-bordered { border: 0; } .table-dark.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.05); } .table-dark.table-hover tbody tr:hover { color: #fff; background-color: rgba(255, 255, 255, 0.075); } @media (max-width: 575.98px) { .table-responsive-sm { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive-sm > .table-bordered { border: 0; } } @media (max-width: 767.98px) { .table-responsive-md { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive-md > .table-bordered { border: 0; } } @media (max-width: 991.98px) { .table-responsive-lg { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive-lg > .table-bordered { border: 0; } } @media (max-width: 1199.98px) { .table-responsive-xl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive-xl > .table-bordered { border: 0; } } .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-responsive > .table-bordered { border: 0; } .form-control { display: block; width: 100%; height: calc( 1.25em + 1.4rem + 1px); padding: 0.7rem 0.7rem; font-size: 0.96rem; font-weight: 400; line-height: 1.25; color: #4e5154; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .form-control { transition: none; } } .form-control::-ms-expand { background-color: transparent; border: 0; } .form-control:focus { color: #4e5154; background-color: #fff; border-color: #7367f0; outline: 0; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .form-control::placeholder { color: rgba(0, 0, 0, 0.5); opacity: 1; } .form-control:disabled, .form-control[readonly] { background-color: #f5f5f1; opacity: 1; } select.form-control:focus::-ms-value { color: #4e5154; background-color: #fff; } .form-control-file, .form-control-range { display: block; width: 100%; } .col-form-label { padding-top: calc(0.7rem + 1px); padding-bottom: calc(0.7rem + 1px); margin-bottom: 0; font-size: inherit; line-height: 1.25; } .col-form-label-lg { padding-top: calc(1rem + 1px); padding-bottom: calc(1rem + 1px); font-size: 1.25rem; line-height: 1.25; } .col-form-label-sm { padding-top: calc(0.5rem + 1px); padding-bottom: calc(0.5rem + 1px); font-size: 0.7rem; line-height: 1; } .form-control-plaintext { display: block; width: 100%; padding-top: 0.7rem; padding-bottom: 0.7rem; margin-bottom: 0; line-height: 1.25; color: #adb5bd; background-color: transparent; border: solid transparent; border-width: 1px 0; } .form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg { padding-right: 0; padding-left: 0; } .form-control-sm { height: calc(1em + 1rem + 2px); padding: 0.5rem 1.5rem; font-size: 0.7rem; line-height: 1; border-radius: 4px; } .form-control-lg { height: calc(1.25em + 2rem + 2px); padding: 1rem 2.5rem; font-size: 1.25rem; line-height: 1.25; border-radius: 6px; } select.form-control[size], select.form-control[multiple] { height: auto; } textarea.form-control { height: auto; } .form-group { margin-bottom: 1rem; } .form-text { display: block; margin-top: 0.25rem; } .form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; } .form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; } .form-check { position: relative; display: block; padding-left: 1.25rem; } .form-check-input { position: absolute; margin-top: 0.3rem; margin-left: -1.25rem; } .form-check-input:disabled ~ .form-check-label { color: #b8c2cc; } .form-check-label { margin-bottom: 0; } .form-check-inline { display: inline-flex; align-items: center; padding-left: 0; margin-right: 0.75rem; } .form-check-inline .form-check-input { position: static; margin-top: 0; margin-right: 0.3125rem; margin-left: 0; } .valid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: smaller; color: #28c76f; } .valid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; max-width: 100%; padding: 0.4rem 0.775rem; margin-top: .1rem; font-size: 0.857rem; line-height: 1.45; color: #fff; background-color: #28c76f; border-radius: 0.428rem; } .was-validated .form-control:valid, .form-control.is-valid { border-color: #28c76f; padding-right: calc(1.25em + 1.4rem); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328c76f' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: center right calc(0.3125em + 0.35rem); background-size: calc(0.625em + 0.7rem) calc(0.625em + 0.7rem); } .was-validated .form-control:valid:focus, .form-control.is-valid:focus { border-color: #28c76f; box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25); } .was-validated .form-control:valid ~ .valid-feedback, .was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, .form-control.is-valid ~ .valid-tooltip { display: block; } .was-validated textarea.form-control:valid, textarea.form-control.is-valid { padding-right: calc(1.25em + 1.4rem); background-position: top calc(0.3125em + 0.35rem) right calc(0.3125em + 0.35rem); } .was-validated .custom-select:valid, .custom-select.is-valid { border-color: #28c76f; padding-right: calc((1em + 1.4rem) * 3 / 4 + 1.7rem); background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%231e1e1e' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.7rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328c76f' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.7rem/calc(0.625em + 0.7rem) calc(0.625em + 0.7rem); } .was-validated .custom-select:valid:focus, .custom-select.is-valid:focus { border-color: #28c76f; box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25); } .was-validated .custom-select:valid ~ .valid-feedback, .was-validated .custom-select:valid ~ .valid-tooltip, .custom-select.is-valid ~ .valid-feedback, .custom-select.is-valid ~ .valid-tooltip { display: block; } .was-validated .form-control-file:valid ~ .valid-feedback, .was-validated .form-control-file:valid ~ .valid-tooltip, .form-control-file.is-valid ~ .valid-feedback, .form-control-file.is-valid ~ .valid-tooltip { display: block; } .was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { color: #28c76f; } .was-validated .form-check-input:valid ~ .valid-feedback, .was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, .form-check-input.is-valid ~ .valid-tooltip { display: block; } .was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { color: #28c76f; } .was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { border-color: #28c76f; } .was-validated .custom-control-input:valid ~ .valid-feedback, .was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, .custom-control-input.is-valid ~ .valid-tooltip { display: block; } .was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { border-color: #48da89; background-color: #48da89; } .was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25); } .was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before { border-color: #28c76f; } .was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { border-color: #28c76f; } .was-validated .custom-file-input:valid ~ .valid-feedback, .was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, .custom-file-input.is-valid ~ .valid-tooltip { display: block; } .was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { border-color: #28c76f; box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25); } .invalid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: smaller; color: #ea5455; } .invalid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; max-width: 100%; padding: 0.4rem 0.775rem; margin-top: .1rem; font-size: 0.857rem; line-height: 1.45; color: #fff; background-color: #ea5455; border-radius: 0.428rem; } .was-validated .form-control:invalid, .form-control.is-invalid { border-color: #ea5455; padding-right: calc(1.25em + 1.4rem); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ea5455' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23ea5455' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E"); background-repeat: no-repeat; background-position: center right calc(0.3125em + 0.35rem); background-size: calc(0.625em + 0.7rem) calc(0.625em + 0.7rem); } .was-validated .form-control:invalid:focus, .form-control.is-invalid:focus { border-color: #ea5455; box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.25); } .was-validated .form-control:invalid ~ .invalid-feedback, .was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, .form-control.is-invalid ~ .invalid-tooltip { display: block; } .was-validated textarea.form-control:invalid, textarea.form-control.is-invalid { padding-right: calc(1.25em + 1.4rem); background-position: top calc(0.3125em + 0.35rem) right calc(0.3125em + 0.35rem); } .was-validated .custom-select:invalid, .custom-select.is-invalid { border-color: #ea5455; padding-right: calc((1em + 1.4rem) * 3 / 4 + 1.7rem); background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%231e1e1e' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.7rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ea5455' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23ea5455' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.7rem/calc(0.625em + 0.7rem) calc(0.625em + 0.7rem); } .was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus { border-color: #ea5455; box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.25); } .was-validated .custom-select:invalid ~ .invalid-feedback, .was-validated .custom-select:invalid ~ .invalid-tooltip, .custom-select.is-invalid ~ .invalid-feedback, .custom-select.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .form-control-file:invalid ~ .invalid-feedback, .was-validated .form-control-file:invalid ~ .invalid-tooltip, .form-control-file.is-invalid ~ .invalid-feedback, .form-control-file.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { color: #ea5455; } .was-validated .form-check-input:invalid ~ .invalid-feedback, .was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, .form-check-input.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { color: #ea5455; } .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { border-color: #ea5455; } .was-validated .custom-control-input:invalid ~ .invalid-feedback, .was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, .custom-control-input.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { border-color: #f08182; background-color: #f08182; } .was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.25); } .was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before { border-color: #ea5455; } .was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { border-color: #ea5455; } .was-validated .custom-file-input:invalid ~ .invalid-feedback, .was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, .custom-file-input.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { border-color: #ea5455; box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.25); } .form-inline { display: flex; flex-flow: row wrap; align-items: center; } .form-inline .form-check { width: 100%; } @media (min-width: 576px) { .form-inline label { display: flex; align-items: center; justify-content: center; margin-bottom: 0; } .form-inline .form-group { display: flex; flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-plaintext { display: inline-block; } .form-inline .input-group, .form-inline .custom-select { width: auto; } .form-inline .form-check { display: flex; align-items: center; justify-content: center; width: auto; padding-left: 0; } .form-inline .form-check-input { position: relative; flex-shrink: 0; margin-top: 0; margin-right: 0.25rem; margin-left: 0; } .form-inline .custom-control { align-items: center; justify-content: center; } .form-inline .custom-control-label { margin-bottom: 0; } } .btn { display: inline-block; font-weight: 400; color: #626262; text-align: center; vertical-align: middle; user-select: none; background-color: transparent; border: 0 solid transparent; padding: 0.9rem 2rem; font-size: 1rem; line-height: 1; border-radius: 0.4285rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .btn { transition: none; } } .btn:hover { color: #626262; text-decoration: none; } .btn:focus, .btn.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.25); } .btn.disabled, .btn:disabled { opacity: 0.65; } a.btn.disabled, fieldset:disabled a.btn { pointer-events: none; } .btn-primary { color: #fff; background-color: #7367f0; border-color: #7367f0; } .btn-primary:hover { color: #fff; background-color: #5344ed; border-color: #4839eb; } .btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 0.2rem rgba(136, 126, 242, 0.5); } .btn-primary.disabled, .btn-primary:disabled { color: #fff; background-color: #7367f0; border-color: #7367f0; } .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle { color: #fff; background-color: #4839eb; border-color: #3e2dea; } .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(136, 126, 242, 0.5); } .btn-secondary { color: #2a2e30; background-color: #b8c2cc; border-color: #b8c2cc; } .btn-secondary:hover { color: #2a2e30; background-color: #a2afbc; border-color: #9aa9b7; } .btn-secondary:focus, .btn-secondary.focus { box-shadow: 0 0 0 0.2rem rgba(163, 172, 181, 0.5); } .btn-secondary.disabled, .btn-secondary:disabled { color: #2a2e30; background-color: #b8c2cc; border-color: #b8c2cc; } .btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, .show > .btn-secondary.dropdown-toggle { color: #2a2e30; background-color: #9aa9b7; border-color: #93a2b1; } .btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(163, 172, 181, 0.5); } .btn-success { color: #fff; background-color: #28c76f; border-color: #28c76f; } .btn-success:hover { color: #fff; background-color: #22a75d; border-color: #1f9d57; } .btn-success:focus, .btn-success.focus { box-shadow: 0 0 0 0.2rem rgba(72, 207, 133, 0.5); } .btn-success.disabled, .btn-success:disabled { color: #fff; background-color: #28c76f; border-color: #28c76f; } .btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, .show > .btn-success.dropdown-toggle { color: #fff; background-color: #1f9d57; border-color: #1d9251; } .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, .show > .btn-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(72, 207, 133, 0.5); } .btn-info { color: #fff; background-color: #00cfe8; border-color: #00cfe8; } .btn-info:hover { color: #fff; background-color: #00adc2; border-color: #00a1b5; } .btn-info:focus, .btn-info.focus { box-shadow: 0 0 0 0.2rem rgba(38, 214, 235, 0.5); } .btn-info.disabled, .btn-info:disabled { color: #fff; background-color: #00cfe8; border-color: #00cfe8; } .btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, .show > .btn-info.dropdown-toggle { color: #fff; background-color: #00a1b5; border-color: #0096a8; } .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, .show > .btn-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(38, 214, 235, 0.5); } .btn-warning { color: #2a2e30; background-color: #ff9f43; border-color: #ff9f43; } .btn-warning:hover { color: #2a2e30; background-color: #ff8b1d; border-color: #ff8510; } .btn-warning:focus, .btn-warning.focus { box-shadow: 0 0 0 0.2rem rgba(223, 142, 64, 0.5); } .btn-warning.disabled, .btn-warning:disabled { color: #2a2e30; background-color: #ff9f43; border-color: #ff9f43; } .btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, .show > .btn-warning.dropdown-toggle { color: #2a2e30; background-color: #ff8510; border-color: #ff7e03; } .btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(223, 142, 64, 0.5); } .btn-danger { color: #fff; background-color: #ea5455; border-color: #ea5455; } .btn-danger:hover { color: #fff; background-color: #e63233; border-color: #e42728; } .btn-danger:focus, .btn-danger.focus { box-shadow: 0 0 0 0.2rem rgba(237, 110, 111, 0.5); } .btn-danger.disabled, .btn-danger:disabled { color: #fff; background-color: #ea5455; border-color: #ea5455; } .btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, .show > .btn-danger.dropdown-toggle { color: #fff; background-color: #e42728; border-color: #e21c1d; } .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(237, 110, 111, 0.5); } .btn-light { color: #2a2e30; background-color: #babfc7; border-color: #babfc7; } .btn-light:hover { color: #2a2e30; background-color: #a5abb6; border-color: #9ea5b0; } .btn-light:focus, .btn-light.focus { box-shadow: 0 0 0 0.2rem rgba(164, 169, 176, 0.5); } .btn-light.disabled, .btn-light:disabled { color: #2a2e30; background-color: #babfc7; border-color: #babfc7; } .btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, .show > .btn-light.dropdown-toggle { color: #2a2e30; background-color: #9ea5b0; border-color: #979eaa; } .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, .show > .btn-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(164, 169, 176, 0.5); } .btn-dark { color: #fff; background-color: #1e1e1e; border-color: #1e1e1e; } .btn-dark:hover { color: #fff; background-color: #0b0b0b; border-color: #050505; } .btn-dark:focus, .btn-dark.focus { box-shadow: 0 0 0 0.2rem rgba(64, 64, 64, 0.5); } .btn-dark.disabled, .btn-dark:disabled { color: #fff; background-color: #1e1e1e; border-color: #1e1e1e; } .btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, .show > .btn-dark.dropdown-toggle { color: #fff; background-color: #050505; border-color: black; } .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(64, 64, 64, 0.5); } .btn-outline-primary { color: #7367f0; border-color: #7367f0; } .btn-outline-primary:hover { color: #fff; background-color: #7367f0; border-color: #7367f0; } .btn-outline-primary:focus, .btn-outline-primary.focus { box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.5); } .btn-outline-primary.disabled, .btn-outline-primary:disabled { color: #7367f0; background-color: transparent; } .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle { color: #fff; background-color: #7367f0; border-color: #7367f0; } .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.5); } .btn-outline-secondary { color: #b8c2cc; border-color: #b8c2cc; } .btn-outline-secondary:hover { color: #2a2e30; background-color: #b8c2cc; border-color: #b8c2cc; } .btn-outline-secondary:focus, .btn-outline-secondary.focus { box-shadow: 0 0 0 0.2rem rgba(184, 194, 204, 0.5); } .btn-outline-secondary.disabled, .btn-outline-secondary:disabled { color: #b8c2cc; background-color: transparent; } .btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, .show > .btn-outline-secondary.dropdown-toggle { color: #2a2e30; background-color: #b8c2cc; border-color: #b8c2cc; } .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(184, 194, 204, 0.5); } .btn-outline-success { color: #28c76f; border-color: #28c76f; } .btn-outline-success:hover { color: #fff; background-color: #28c76f; border-color: #28c76f; } .btn-outline-success:focus, .btn-outline-success.focus { box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.5); } .btn-outline-success.disabled, .btn-outline-success:disabled { color: #28c76f; background-color: transparent; } .btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, .show > .btn-outline-success.dropdown-toggle { color: #fff; background-color: #28c76f; border-color: #28c76f; } .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.5); } .btn-outline-info { color: #00cfe8; border-color: #00cfe8; } .btn-outline-info:hover { color: #fff; background-color: #00cfe8; border-color: #00cfe8; } .btn-outline-info:focus, .btn-outline-info.focus { box-shadow: 0 0 0 0.2rem rgba(0, 207, 232, 0.5); } .btn-outline-info.disabled, .btn-outline-info:disabled { color: #00cfe8; background-color: transparent; } .btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, .show > .btn-outline-info.dropdown-toggle { color: #fff; background-color: #00cfe8; border-color: #00cfe8; } .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(0, 207, 232, 0.5); } .btn-outline-warning { color: #ff9f43; border-color: #ff9f43; } .btn-outline-warning:hover { color: #2a2e30; background-color: #ff9f43; border-color: #ff9f43; } .btn-outline-warning:focus, .btn-outline-warning.focus { box-shadow: 0 0 0 0.2rem rgba(255, 159, 67, 0.5); } .btn-outline-warning.disabled, .btn-outline-warning:disabled { color: #ff9f43; background-color: transparent; } .btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, .show > .btn-outline-warning.dropdown-toggle { color: #2a2e30; background-color: #ff9f43; border-color: #ff9f43; } .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 159, 67, 0.5); } .btn-outline-danger { color: #ea5455; border-color: #ea5455; } .btn-outline-danger:hover { color: #fff; background-color: #ea5455; border-color: #ea5455; } .btn-outline-danger:focus, .btn-outline-danger.focus { box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.5); } .btn-outline-danger.disabled, .btn-outline-danger:disabled { color: #ea5455; background-color: transparent; } .btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, .show > .btn-outline-danger.dropdown-toggle { color: #fff; background-color: #ea5455; border-color: #ea5455; } .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.5); } .btn-outline-light { color: #babfc7; border-color: #babfc7; } .btn-outline-light:hover { color: #2a2e30; background-color: #babfc7; border-color: #babfc7; } .btn-outline-light:focus, .btn-outline-light.focus { box-shadow: 0 0 0 0.2rem rgba(186, 191, 199, 0.5); } .btn-outline-light.disabled, .btn-outline-light:disabled { color: #babfc7; background-color: transparent; } .btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, .show > .btn-outline-light.dropdown-toggle { color: #2a2e30; background-color: #babfc7; border-color: #babfc7; } .btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(186, 191, 199, 0.5); } .btn-outline-dark { color: #1e1e1e; border-color: #1e1e1e; } .btn-outline-dark:hover { color: #fff; background-color: #1e1e1e; border-color: #1e1e1e; } .btn-outline-dark:focus, .btn-outline-dark.focus { box-shadow: 0 0 0 0.2rem rgba(30, 30, 30, 0.5); } .btn-outline-dark.disabled, .btn-outline-dark:disabled { color: #1e1e1e; background-color: transparent; } .btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, .show > .btn-outline-dark.dropdown-toggle { color: #fff; background-color: #1e1e1e; border-color: #1e1e1e; } .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(30, 30, 30, 0.5); } .btn-link { font-weight: 400; color: #7367f0; text-decoration: none; } .btn-link:hover { color: #5e50ee; text-decoration: none; } .btn-link:focus, .btn-link.focus { text-decoration: none; box-shadow: none; } .btn-link:disabled, .btn-link.disabled { color: #b8c2cc; pointer-events: none; } .btn-lg, .btn-group-lg > .btn { padding: 1rem 2.5rem; font-size: 1.25rem; line-height: 1.25; border-radius: 0.4285rem; } .btn-sm, .btn-group-sm > .btn { padding: 0.5rem 1.5rem; font-size: 0.7rem; line-height: 1; border-radius: 0.4285rem; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 0.5rem; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { transition: opacity 0.15s linear; } @media (prefers-reduced-motion: reduce) { .fade { transition: none; } } .fade:not(.show) { opacity: 0; } .collapse:not(.show) { display: none; } .collapsing { position: relative; height: 0; overflow: hidden; transition: height 0.35s ease; } @media (prefers-reduced-motion: reduce) { .collapsing { transition: none; } } .dropup, .dropright, .dropdown, .dropleft { position: relative; } .dropdown-toggle { white-space: nowrap; } .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-bottom: 0; border-left: 0.3em solid transparent; } .dropdown-toggle:empty::after { margin-left: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 10; display: none; float: left; min-width: 10rem; padding: 0.5rem 0; margin: 0.5rem 0 0; font-size: 0.9375rem; color: #626262; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(34, 41, 47, 0.15); border-radius: 5px; } .dropdown-menu-left { right: auto; left: 0; } .dropdown-menu-right { right: 0; left: auto; } @media (min-width: 576px) { .dropdown-menu-sm-left { right: auto; left: 0; } .dropdown-menu-sm-right { right: 0; left: auto; } } @media (min-width: 768px) { .dropdown-menu-md-left { right: auto; left: 0; } .dropdown-menu-md-right { right: 0; left: auto; } } @media (min-width: 992px) { .dropdown-menu-lg-left { right: auto; left: 0; } .dropdown-menu-lg-right { right: 0; left: auto; } } @media (min-width: 1200px) { .dropdown-menu-xl-left { right: auto; left: 0; } .dropdown-menu-xl-right { right: 0; left: auto; } } .dropup .dropdown-menu { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 0.5rem; } .dropup .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0; border-right: 0.3em solid transparent; border-bottom: 0.3em solid; border-left: 0.3em solid transparent; } .dropup .dropdown-toggle:empty::after { margin-left: 0; } .dropright .dropdown-menu { top: 0; right: auto; left: 100%; margin-top: 0; margin-left: 0.5rem; } .dropright .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid transparent; border-right: 0; border-bottom: 0.3em solid transparent; border-left: 0.3em solid; } .dropright .dropdown-toggle:empty::after { margin-left: 0; } .dropright .dropdown-toggle::after { vertical-align: 0; } .dropleft .dropdown-menu { top: 0; right: 100%; left: auto; margin-top: 0; margin-right: 0.5rem; } .dropleft .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; } .dropleft .dropdown-toggle::after { display: none; } .dropleft .dropdown-toggle::before { display: inline-block; margin-right: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid transparent; border-right: 0.3em solid; border-bottom: 0.3em solid transparent; } .dropleft .dropdown-toggle:empty::after { margin-left: 0; } .dropleft .dropdown-toggle::before { vertical-align: 0; } .dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] { right: auto; bottom: auto; } .dropdown-divider { height: 0; margin: 0.5rem 0; overflow: hidden; border-top: 1px solid rgba(0, 0, 0, 0.08); } .dropdown-item { display: block; width: 100%; padding: 0.25rem 1.5rem; clear: both; font-weight: 400; color: #2a2e30; text-align: inherit; white-space: nowrap; background-color: transparent; border: 0; } .dropdown-item:hover, .dropdown-item:focus { color: #1e2122; text-decoration: none; background-color: #f8f8f8; } .dropdown-item.active, .dropdown-item:active { color: #fff; text-decoration: none; background-color: #7367f0; } .dropdown-item.disabled, .dropdown-item:disabled { color: #b8c2cc; pointer-events: none; background-color: transparent; } .dropdown-menu.show { display: block; } .dropdown-header { display: block; padding: 0.5rem 1.5rem; margin-bottom: 0; font-size: 1rem; color: #b8c2cc; white-space: nowrap; } .dropdown-item-text { display: block; padding: 0.25rem 1.5rem; color: #2a2e30; } .btn-group, .btn-group-vertical { position: relative; display: inline-flex; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; flex: 1 1 auto; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover { z-index: 1; } .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn:focus, .btn-group-vertical > .btn:active, .btn-group-vertical > .btn.active { z-index: 1; } .btn-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-start; } .btn-toolbar .input-group { width: auto; } .btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) { margin-left: 0; } .btn-group > .btn:not(:last-child):not(.dropdown-toggle), .btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; } .dropdown-toggle-split { padding-right: 1.5rem; padding-left: 1.5rem; } .dropdown-toggle-split::after, .dropup .dropdown-toggle-split::after, .dropright .dropdown-toggle-split::after { margin-left: 0; } .dropleft .dropdown-toggle-split::before { margin-right: 0; } .btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { padding-right: 1.125rem; padding-left: 1.125rem; } .btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { padding-right: 1.875rem; padding-left: 1.875rem; } .btn-group-vertical { flex-direction: column; align-items: flex-start; justify-content: center; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group { width: 100%; } .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .btn-group:not(:first-child) { margin-top: 0; } .btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), .btn-group-vertical > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-top-right-radius: 0; } .btn-group-toggle > .btn, .btn-group-toggle > .btn-group > .btn { margin-bottom: 0; } .btn-group-toggle > .btn input[type="radio"], .btn-group-toggle > .btn input[type="checkbox"], .btn-group-toggle > .btn-group > .btn input[type="radio"], .btn-group-toggle > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; } .input-group > .form-control, .input-group > .form-control-plaintext, .input-group > .custom-select, .input-group > .custom-file { position: relative; flex: 1 1 auto; width: 1%; margin-bottom: 0; } .input-group > .form-control + .form-control, .input-group > .form-control + .custom-select, .input-group > .form-control + .custom-file, .input-group > .form-control-plaintext + .form-control, .input-group > .form-control-plaintext + .custom-select, .input-group > .form-control-plaintext + .custom-file, .input-group > .custom-select + .form-control, .input-group > .custom-select + .custom-select, .input-group > .custom-select + .custom-file, .input-group > .custom-file + .form-control, .input-group > .custom-file + .custom-select, .input-group > .custom-file + .custom-file { margin-left: -1px; } .input-group > .form-control:focus, .input-group > .custom-select:focus, .input-group > .custom-file .custom-file-input:focus ~ .custom-file-label { z-index: 3; } .input-group > .custom-file .custom-file-input:focus { z-index: 4; } .input-group > .form-control:not(:last-child), .input-group > .custom-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group > .form-control:not(:first-child), .input-group > .custom-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .input-group > .custom-file { display: flex; align-items: center; } .input-group > .custom-file:not(:last-child) .custom-file-label, .input-group > .custom-file:not(:last-child) .custom-file-label::after { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group > .custom-file:not(:first-child) .custom-file-label { border-top-left-radius: 0; border-bottom-left-radius: 0; } .input-group-prepend, .input-group-append { display: flex; } .input-group-prepend .btn, .input-group-append .btn { position: relative; z-index: 2; } .input-group-prepend .btn:focus, .input-group-append .btn:focus { z-index: 3; } .input-group-prepend .btn + .btn, .input-group-prepend .btn + .input-group-text, .input-group-prepend .input-group-text + .input-group-text, .input-group-prepend .input-group-text + .btn, .input-group-append .btn + .btn, .input-group-append .btn + .input-group-text, .input-group-append .input-group-text + .input-group-text, .input-group-append .input-group-text + .btn { margin-left: -1px; } .input-group-prepend { margin-right: -1px; } .input-group-append { margin-left: -1px; } .input-group-text { display: flex; align-items: center; padding: 0.7rem 0.7rem; margin-bottom: 0; font-size: 0.96rem; font-weight: 400; line-height: 1.25; color: #4e5154; text-align: center; white-space: nowrap; background-color: #ededed; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; } .input-group-text input[type="radio"], .input-group-text input[type="checkbox"] { margin-top: 0; } .input-group-lg > .form-control:not(textarea), .input-group-lg > .custom-select { height: calc(1.25em + 2rem + 2px); } .input-group-lg > .form-control, .input-group-lg > .custom-select, .input-group-lg > .input-group-prepend > .input-group-text, .input-group-lg > .input-group-append > .input-group-text, .input-group-lg > .input-group-prepend > .btn, .input-group-lg > .input-group-append > .btn { padding: 1rem 2.5rem; font-size: 1.25rem; line-height: 1.25; border-radius: 6px; } .input-group-sm > .form-control:not(textarea), .input-group-sm > .custom-select { height: calc(1em + 1rem + 2px); } .input-group-sm > .form-control, .input-group-sm > .custom-select, .input-group-sm > .input-group-prepend > .input-group-text, .input-group-sm > .input-group-append > .input-group-text, .input-group-sm > .input-group-prepend > .btn, .input-group-sm > .input-group-append > .btn { padding: 0.5rem 1.5rem; font-size: 0.7rem; line-height: 1; border-radius: 4px; } .input-group-lg > .custom-select, .input-group-sm > .custom-select { padding-right: 1.7rem; } .input-group > .input-group-prepend > .btn, .input-group > .input-group-prepend > .input-group-text, .input-group > .input-group-append:not(:last-child) > .btn, .input-group > .input-group-append:not(:last-child) > .input-group-text, .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group > .input-group-append > .btn, .input-group > .input-group-append > .input-group-text, .input-group > .input-group-prepend:not(:first-child) > .btn, .input-group > .input-group-prepend:not(:first-child) > .input-group-text, .input-group > .input-group-prepend:first-child > .btn:not(:first-child), .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .custom-control { position: relative; display: block; min-height: 1.45rem; padding-left: 1.5rem; } .custom-control-inline { display: inline-flex; margin-right: 1rem; } .custom-control-input { position: absolute; z-index: -1; opacity: 0; } .custom-control-input:checked ~ .custom-control-label::before { color: #fff; border-color: #7367f0; background-color: #7367f0; } .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #7367f0; } .custom-control-input:not(:disabled):active ~ .custom-control-label::before { color: #fff; background-color: white; border-color: white; } .custom-control-input:disabled ~ .custom-control-label { color: #b8c2cc; } .custom-control-input:disabled ~ .custom-control-label::before { background-color: #f5f5f1; } .custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; } .custom-control-label::before { position: absolute; top: 0.225rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; pointer-events: none; content: ""; background-color: #fff; border: #adb5bd solid 1px; } .custom-control-label::after { position: absolute; top: 0.225rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; content: ""; background: no-repeat 50% / 50% 50%; } .custom-checkbox .custom-control-label::before { border-radius: 0.25rem; } .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e"); } .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { border-color: #7367f0; background-color: #7367f0; } .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e"); } .custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(115, 103, 240, 0.5); } .custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { background-color: rgba(115, 103, 240, 0.5); } .custom-radio .custom-control-label::before { border-radius: 50%; } .custom-radio .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); } .custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(115, 103, 240, 0.5); } .custom-switch { padding-left: 3.5rem; } .custom-switch .custom-control-label::before { left: -3.5rem; width: 3rem; pointer-events: all; border-radius: 0.857rem; } .custom-switch .custom-control-label::after { top: calc(0.225rem + 2px); left: calc(-3.5rem + 2px); width: 1.286rem; height: 1.286rem; background-color: #adb5bd; border-radius: 0.857rem; transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .custom-switch .custom-control-label::after { transition: none; } } .custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; transform: translateX(2rem); } .custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(115, 103, 240, 0.5); } .custom-select { display: inline-block; width: 100%; height: calc( 1.25em + 1.4rem + 1px); padding: 0.7rem 1.7rem 0.7rem 0.7rem; font-size: 0.96rem; font-weight: 400; line-height: 1.25; color: #4e5154; vertical-align: middle; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%231e1e1e' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.7rem center/8px 10px; background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; appearance: none; } .custom-select:focus { border-color: #7367f0; outline: 0; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-select:focus::-ms-value { color: #4e5154; background-color: #fff; } .custom-select[multiple], .custom-select[size]:not([size="1"]) { height: auto; padding-right: 0.7rem; background-image: none; } .custom-select:disabled { color: #b8c2cc; background-color: #ededed; } .custom-select::-ms-expand { display: none; } .custom-select-sm { height: calc(1em + 1rem + 2px); padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1.5rem; font-size: 0.7rem; } .custom-select-lg { height: calc(1.25em + 2rem + 2px); padding-top: 1rem; padding-bottom: 1rem; padding-left: 2.5rem; font-size: 1.25rem; } .custom-file { position: relative; display: inline-block; width: 100%; height: calc( 1.25em + 1.4rem + 1px); margin-bottom: 0; } .custom-file-input { position: relative; z-index: 2; width: 100%; height: calc( 1.25em + 1.4rem + 1px); margin: 0; opacity: 0; } .custom-file-input:focus ~ .custom-file-label { border-color: #7367f0; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-file-input:disabled ~ .custom-file-label { background-color: #f5f5f1; } .custom-file-input:lang(en) ~ .custom-file-label::after { content: "Browse"; } .custom-file-input ~ .custom-file-label[data-browse]::after { content: attr(data-browse); } .custom-file-label { position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: calc( 1.25em + 1.4rem + 1px); padding: 0.7rem 0.7rem; font-weight: 400; line-height: 1.5rem; color: #4e5154; background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; } .custom-file-label::after { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; display: block; height: calc(1.25em + 1.4rem); padding: 0.7rem 0.7rem; line-height: 1.5rem; color: #4e5154; content: "Browse"; background-color: #ededed; border-left: inherit; border-radius: 0 5px 5px 0; } .custom-range { width: 100%; height: calc(1rem + 0.4rem); padding: 0; background-color: transparent; appearance: none; } .custom-range:focus { outline: none; } .custom-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #f8f8f8, 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #f8f8f8, 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-range:focus::-ms-thumb { box-shadow: 0 0 0 1px #f8f8f8, 0 3px 10px 0 rgba(0, 0, 0, 0.15); } .custom-range::-moz-focus-outer { border: 0; } .custom-range::-webkit-slider-thumb { width: 1rem; height: 1rem; margin-top: -0.25rem; background-color: #7367f0; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @media (prefers-reduced-motion: reduce) { .custom-range::-webkit-slider-thumb { transition: none; } } .custom-range::-webkit-slider-thumb:active { background-color: white; } .custom-range::-webkit-slider-runnable-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: #dae1e7; border-color: transparent; border-radius: 1rem; } .custom-range::-moz-range-thumb { width: 1rem; height: 1rem; background-color: #7367f0; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @media (prefers-reduced-motion: reduce) { .custom-range::-moz-range-thumb { transition: none; } } .custom-range::-moz-range-thumb:active { background-color: white; } .custom-range::-moz-range-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: #dae1e7; border-color: transparent; border-radius: 1rem; } .custom-range::-ms-thumb { width: 1rem; height: 1rem; margin-top: 0; margin-right: 0.2rem; margin-left: 0.2rem; background-color: #7367f0; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @media (prefers-reduced-motion: reduce) { .custom-range::-ms-thumb { transition: none; } } .custom-range::-ms-thumb:active { background-color: white; } .custom-range::-ms-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: transparent; border-color: transparent; border-width: 0.5rem; } .custom-range::-ms-fill-lower { background-color: #dae1e7; border-radius: 1rem; } .custom-range::-ms-fill-upper { margin-right: 15px; background-color: #dae1e7; border-radius: 1rem; } .custom-range:disabled::-webkit-slider-thumb { background-color: #adb5bd; } .custom-range:disabled::-webkit-slider-runnable-track { cursor: default; } .custom-range:disabled::-moz-range-thumb { background-color: #adb5bd; } .custom-range:disabled::-moz-range-track { cursor: default; } .custom-range:disabled::-ms-thumb { background-color: #adb5bd; } .custom-control-label::before, .custom-file-label, .custom-select { transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .custom-control-label::before, .custom-file-label, .custom-select { transition: none; } } .nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; } .nav-link { display: block; padding: 0.357rem 0.5rem; } .nav-link:hover, .nav-link:focus { text-decoration: none; } .nav-link.disabled { color: #b8c2cc; pointer-events: none; cursor: default; } .nav-tabs { border-bottom: 1px solid #dae1e7; } .nav-tabs .nav-item { margin-bottom: -1px; } .nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; } .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { border-color: #ededed #ededed #dae1e7; } .nav-tabs .nav-link.disabled { color: #b8c2cc; background-color: transparent; border-color: transparent; } .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: #4e5154; background-color: #f8f8f8; border-color: #dae1e7 #dae1e7 #f8f8f8; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; } .nav-pills .nav-link { border-radius: 0.5rem; } .nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; background-color: #7367f0; } .nav-fill .nav-item { flex: 1 1 auto; text-align: center; } .nav-justified .nav-item { flex-basis: 0; flex-grow: 1; text-align: center; } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; } .navbar > .container, .navbar > .container-fluid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; } .navbar-brand { display: inline-block; padding-top: -0.368rem; padding-bottom: -0.368rem; margin-right: 1rem; font-size: 2rem; line-height: inherit; white-space: nowrap; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; } .navbar-nav .nav-link { padding-right: 0; padding-left: 0; } .navbar-nav .dropdown-menu { position: static; float: none; } .navbar-text { display: inline-block; padding-top: 0.357rem; padding-bottom: 0.357rem; } .navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; } .navbar-toggler { padding: 0.25rem 0.75rem; font-size: 2rem; line-height: 1; background-color: transparent; border: 1px solid transparent; border-radius: 0.4285rem; } .navbar-toggler:hover, .navbar-toggler:focus { text-decoration: none; } .navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; content: ""; background: no-repeat center center; background-size: 100% 100%; } @media (max-width: 575.98px) { .navbar-expand-sm > .container, .navbar-expand-sm > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 576px) { .navbar-expand-sm { flex-flow: row nowrap; justify-content: flex-start; } .navbar-expand-sm .navbar-nav { flex-direction: row; } .navbar-expand-sm .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-sm .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; } .navbar-expand-sm > .container, .navbar-expand-sm > .container-fluid { flex-wrap: nowrap; } .navbar-expand-sm .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand-sm .navbar-toggler { display: none; } } @media (max-width: 767.98px) { .navbar-expand-md > .container, .navbar-expand-md > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 768px) { .navbar-expand-md { flex-flow: row nowrap; justify-content: flex-start; } .navbar-expand-md .navbar-nav { flex-direction: row; } .navbar-expand-md .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-md .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; } .navbar-expand-md > .container, .navbar-expand-md > .container-fluid { flex-wrap: nowrap; } .navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand-md .navbar-toggler { display: none; } } @media (max-width: 991.98px) { .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 992px) { .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; } .navbar-expand-lg .navbar-nav { flex-direction: row; } .navbar-expand-lg .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-lg .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; } .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { flex-wrap: nowrap; } .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand-lg .navbar-toggler { display: none; } } @media (max-width: 1199.98px) { .navbar-expand-xl > .container, .navbar-expand-xl > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 1200px) { .navbar-expand-xl { flex-flow: row nowrap; justify-content: flex-start; } .navbar-expand-xl .navbar-nav { flex-direction: row; } .navbar-expand-xl .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-xl .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; } .navbar-expand-xl > .container, .navbar-expand-xl > .container-fluid { flex-wrap: nowrap; } .navbar-expand-xl .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand-xl .navbar-toggler { display: none; } } .navbar-expand { flex-flow: row nowrap; justify-content: flex-start; } .navbar-expand > .container, .navbar-expand > .container-fluid { padding-right: 0; padding-left: 0; } .navbar-expand .navbar-nav { flex-direction: row; } .navbar-expand .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; } .navbar-expand > .container, .navbar-expand > .container-fluid { flex-wrap: nowrap; } .navbar-expand .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand .navbar-toggler { display: none; } .navbar-light .navbar-brand { color: rgba(34, 41, 47, 0.9); } .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { color: rgba(34, 41, 47, 0.9); } .navbar-light .navbar-nav .nav-link { color: rgba(34, 41, 47, 0.5); } .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { color: rgba(34, 41, 47, 0.7); } .navbar-light .navbar-nav .nav-link.disabled { color: rgba(34, 41, 47, 0.3); } .navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .nav-link.active { color: rgba(34, 41, 47, 0.9); } .navbar-light .navbar-toggler { color: rgba(34, 41, 47, 0.5); border-color: rgba(34, 41, 47, 0.1); } .navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(34, 41, 47, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); } .navbar-light .navbar-text { color: rgba(34, 41, 47, 0.5); } .navbar-light .navbar-text a { color: rgba(34, 41, 47, 0.9); } .navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { color: rgba(34, 41, 47, 0.9); } .navbar-dark .navbar-brand { color: #fff; } .navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { color: #fff; } .navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.5); } .navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { color: rgba(255, 255, 255, 0.75); } .navbar-dark .navbar-nav .nav-link.disabled { color: rgba(255, 255, 255, 0.25); } .navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active { color: #fff; } .navbar-dark .navbar-toggler { color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.1); } .navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); } .navbar-dark .navbar-text { color: rgba(255, 255, 255, 0.5); } .navbar-dark .navbar-text a { color: #fff; } .navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { color: #fff; } .card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(34, 41, 47, 0.125); border-radius: 0.5rem; } .card > hr { margin-right: 0; margin-left: 0; } .card > .list-group:first-child .list-group-item:first-child { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; } .card > .list-group:last-child .list-group-item:last-child { border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0.5rem; } .card-body { flex: 1 1 auto; padding: 1.5rem; } .card-title { margin-bottom: 1.5rem; } .card-subtitle { margin-top: -0.75rem; margin-bottom: 0; } .card-text:last-child { margin-bottom: 0; } .card-link:hover { text-decoration: none; } .card-link + .card-link { margin-left: 1.5rem; } .card-header { padding: 1.5rem 1.5rem; margin-bottom: 0; background-color: rgba(34, 41, 47, 0.03); border-bottom: 1px solid rgba(34, 41, 47, 0.125); } .card-header:first-child { border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0; } .card-header + .list-group .list-group-item:first-child { border-top: 0; } .card-footer { padding: 1.5rem 1.5rem; background-color: rgba(34, 41, 47, 0.03); border-top: 1px solid rgba(34, 41, 47, 0.125); } .card-footer:last-child { border-radius: 0 0 calc(0.5rem - 1px) calc(0.5rem - 1px); } .card-header-tabs { margin-right: -0.75rem; margin-bottom: -1.5rem; margin-left: -0.75rem; border-bottom: 0; } .card-header-pills { margin-right: -0.75rem; margin-left: -0.75rem; } .card-img-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 1.25rem; } .card-img { width: 100%; border-radius: calc(0.5rem - 1px); } .card-img-top { width: 100%; border-top-left-radius: calc(0.5rem - 1px); border-top-right-radius: calc(0.5rem - 1px); } .card-img-bottom { width: 100%; border-bottom-right-radius: calc(0.5rem - 1px); border-bottom-left-radius: calc(0.5rem - 1px); } .card-deck { display: flex; flex-direction: column; } .card-deck .card { margin-bottom: 14px; } @media (min-width: 576px) { .card-deck { flex-flow: row wrap; margin-right: -14px; margin-left: -14px; } .card-deck .card { display: flex; flex: 1 0 0%; flex-direction: column; margin-right: 14px; margin-bottom: 0; margin-left: 14px; } } .card-group { display: flex; flex-direction: column; } .card-group > .card { margin-bottom: 14px; } @media (min-width: 576px) { .card-group { flex-flow: row wrap; } .card-group > .card { flex: 1 0 0%; margin-bottom: 0; } .card-group > .card + .card { margin-left: 0; border-left: 0; } .card-group > .card:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .card-group > .card:not(:last-child) .card-img-top, .card-group > .card:not(:last-child) .card-header { border-top-right-radius: 0; } .card-group > .card:not(:last-child) .card-img-bottom, .card-group > .card:not(:last-child) .card-footer { border-bottom-right-radius: 0; } .card-group > .card:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .card-group > .card:not(:first-child) .card-img-top, .card-group > .card:not(:first-child) .card-header { border-top-left-radius: 0; } .card-group > .card:not(:first-child) .card-img-bottom, .card-group > .card:not(:first-child) .card-footer { border-bottom-left-radius: 0; } } .card-columns .card { margin-bottom: 1.5rem; } @media (min-width: 576px) { .card-columns { column-count: 3; column-gap: 1.25rem; orphans: 1; widows: 1; } .card-columns .card { display: inline-block; width: 100%; } } .accordion > .card { overflow: hidden; } .accordion > .card:not(:first-of-type) .card-header:first-child { border-radius: 0; } .accordion > .card:not(:first-of-type):not(:last-of-type) { border-bottom: 0; border-radius: 0; } .accordion > .card:first-of-type { border-bottom: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .accordion > .card:last-of-type { border-top-left-radius: 0; border-top-right-radius: 0; } .accordion > .card .card-header { margin-bottom: -1px; } .breadcrumb { display: flex; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #ededed; border-radius: 0.5rem; } .breadcrumb-item + .breadcrumb-item { padding-left: 0.5rem; } .breadcrumb-item + .breadcrumb-item::before { display: inline-block; padding-right: 0.5rem; color: #b8c2cc; content: "/"; } .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: underline; } .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: none; } .breadcrumb-item.active { color: #b8c2cc; } .pagination { display: flex; padding-left: 0; list-style: none; border-radius: 0.5rem; } .page-link { position: relative; display: block; padding: 0.65rem 0.911rem; margin-left: -1px; line-height: 1.25; color: #7367f0; background-color: #fff; border: 1px solid #dae1e7; } .page-link:hover { z-index: 2; color: #5e50ee; text-decoration: none; background-color: #ededed; border-color: #dae1e7; } .page-link:focus { z-index: 2; outline: 0; box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.25); } .page-item:first-child .page-link { margin-left: 0; border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; } .page-item:last-child .page-link { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; } .page-item.active .page-link { z-index: 1; color: #fff; background-color: #7367f0; border-color: #7367f0; } .page-item.disabled .page-link { color: #b8c2cc; pointer-events: none; cursor: auto; background-color: #fff; border-color: #dae1e7; } .pagination-lg .page-link { padding: 0.5rem 1rem; font-size: 2rem; line-height: 1.25; } .pagination-lg .page-item:first-child .page-link { border-top-left-radius: 0.6rem; border-bottom-left-radius: 0.6rem; } .pagination-lg .page-item:last-child .page-link { border-top-right-radius: 0.6rem; border-bottom-right-radius: 0.6rem; } .pagination-sm .page-link { padding: 0.5rem 0.75rem; font-size: 1rem; line-height: 1; } .pagination-sm .page-item:first-child .page-link { border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .pagination-sm .page-item:last-child .page-link { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; } .badge { display: inline-block; padding: 0.35em 0.4em; font-size: 80%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .badge { transition: none; } } a.badge:hover, a.badge:focus { text-decoration: none; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .badge-pill { padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; } .badge-primary { color: #fff; background-color: #7367f0; } a.badge-primary:hover, a.badge-primary:focus { color: #fff; background-color: #4839eb; } a.badge-primary:focus, a.badge-primary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.5); } .badge-secondary { color: #2a2e30; background-color: #b8c2cc; } a.badge-secondary:hover, a.badge-secondary:focus { color: #2a2e30; background-color: #9aa9b7; } a.badge-secondary:focus, a.badge-secondary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(184, 194, 204, 0.5); } .badge-success { color: #fff; background-color: #28c76f; } a.badge-success:hover, a.badge-success:focus { color: #fff; background-color: #1f9d57; } a.badge-success:focus, a.badge-success.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.5); } .badge-info { color: #fff; background-color: #00cfe8; } a.badge-info:hover, a.badge-info:focus { color: #fff; background-color: #00a1b5; } a.badge-info:focus, a.badge-info.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 207, 232, 0.5); } .badge-warning { color: #2a2e30; background-color: #ff9f43; } a.badge-warning:hover, a.badge-warning:focus { color: #2a2e30; background-color: #ff8510; } a.badge-warning:focus, a.badge-warning.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(255, 159, 67, 0.5); } .badge-danger { color: #fff; background-color: #ea5455; } a.badge-danger:hover, a.badge-danger:focus { color: #fff; background-color: #e42728; } a.badge-danger:focus, a.badge-danger.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(234, 84, 85, 0.5); } .badge-light { color: #2a2e30; background-color: #babfc7; } a.badge-light:hover, a.badge-light:focus { color: #2a2e30; background-color: #9ea5b0; } a.badge-light:focus, a.badge-light.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(186, 191, 199, 0.5); } .badge-dark { color: #fff; background-color: #1e1e1e; } a.badge-dark:hover, a.badge-dark:focus { color: #fff; background-color: #050505; } a.badge-dark:focus, a.badge-dark.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(30, 30, 30, 0.5); } .jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #ededed; border-radius: 0.6rem; } @media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } } .jumbotron-fluid { padding-right: 0; padding-left: 0; border-radius: 0; } .alert { position: relative; padding: 0.71rem 0.71rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.5rem; } .alert-heading { color: inherit; } .alert-link { font-weight: 700; } .alert-dismissible { padding-right: 2.92rem; } .alert-dismissible .close { position: absolute; top: 0; right: 0; padding: 0.71rem 0.71rem; color: inherit; } .alert-primary { color: #4c4993; background-color: #e3e1fc; border-color: #d8d4fb; } .alert-primary hr { border-top-color: #c3bdf9; } .alert-primary .alert-link { color: #3a3871; } .alert-secondary { color: #707981; background-color: #f1f3f5; border-color: #ebeef1; } .alert-secondary hr { border-top-color: #dce1e7; } .alert-secondary .alert-link { color: #585f66; } .alert-success { color: #257b50; background-color: #d4f4e2; border-color: #c3efd7; } .alert-success hr { border-top-color: #afeaca; } .alert-success .alert-link { color: #195437; } .alert-info { color: #107f8f; background-color: #ccf5fa; border-color: #b8f2f9; } .alert-info hr { border-top-color: #a0eef7; } .alert-info .alert-link { color: #0b5661; } .alert-warning { color: #956639; background-color: #ffecd9; border-color: #ffe4ca; } .alert-warning hr { border-top-color: #ffd7b1; } .alert-warning .alert-link { color: #704d2b; } .alert-danger { color: #8a3f43; background-color: #fbdddd; border-color: #f9cfcf; } .alert-danger hr { border-top-color: #f6b8b8; } .alert-danger .alert-link { color: #672f32; } .alert-light { color: #71777e; background-color: #f1f2f4; border-color: #ecedef; } .alert-light hr { border-top-color: #dee0e3; } .alert-light .alert-link { color: #595e63; } .alert-dark { color: #202326; background-color: #d2d2d2; border-color: silver; } .alert-dark hr { border-top-color: #b3b3b3; } .alert-dark .alert-link { color: #090a0a; } @keyframes progress-bar-stripes { from { background-position: 0.357rem 0; } to { background-position: 0 0; } } .progress { display: flex; height: 0.357rem; overflow: hidden; font-size: 0.75rem; background-color: #ededed; border-radius: 1.28rem; } .progress-bar { display: flex; flex-direction: column; justify-content: center; color: #fff; text-align: center; white-space: nowrap; background-color: #7367f0; transition: width 0.6s ease; } @media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } } .progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 0.357rem 0.357rem; } .progress-bar-animated { animation: progress-bar-stripes 1s linear infinite; } @media (prefers-reduced-motion: reduce) { .progress-bar-animated { animation: none; } } .media { display: flex; align-items: flex-start; } .media-body { flex: 1; } .list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; } .list-group-item-action { width: 100%; color: #4e5154; text-align: inherit; } .list-group-item-action:hover, .list-group-item-action:focus { z-index: 1; color: #4e5154; text-decoration: none; background-color: #babfc7; } .list-group-item-action:active { color: #626262; background-color: #ededed; } .list-group-item { position: relative; display: block; padding: 0.75rem 1.25rem; margin-bottom: -1px; background-color: #fff; border: 1px solid rgba(34, 41, 47, 0.125); } .list-group-item:first-child { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0.5rem; } .list-group-item.disabled, .list-group-item:disabled { color: #b8c2cc; pointer-events: none; background-color: #fff; } .list-group-item.active { z-index: 2; color: #fff; background-color: #7367f0; border-color: #7367f0; } .list-group-horizontal { flex-direction: row; } .list-group-horizontal .list-group-item { margin-right: -1px; margin-bottom: 0; } .list-group-horizontal .list-group-item:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; } .list-group-horizontal .list-group-item:last-child { margin-right: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0; } @media (min-width: 576px) { .list-group-horizontal-sm { flex-direction: row; } .list-group-horizontal-sm .list-group-item { margin-right: -1px; margin-bottom: 0; } .list-group-horizontal-sm .list-group-item:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; } .list-group-horizontal-sm .list-group-item:last-child { margin-right: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0; } } @media (min-width: 768px) { .list-group-horizontal-md { flex-direction: row; } .list-group-horizontal-md .list-group-item { margin-right: -1px; margin-bottom: 0; } .list-group-horizontal-md .list-group-item:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; } .list-group-horizontal-md .list-group-item:last-child { margin-right: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0; } } @media (min-width: 992px) { .list-group-horizontal-lg { flex-direction: row; } .list-group-horizontal-lg .list-group-item { margin-right: -1px; margin-bottom: 0; } .list-group-horizontal-lg .list-group-item:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; } .list-group-horizontal-lg .list-group-item:last-child { margin-right: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0; } } @media (min-width: 1200px) { .list-group-horizontal-xl { flex-direction: row; } .list-group-horizontal-xl .list-group-item { margin-right: -1px; margin-bottom: 0; } .list-group-horizontal-xl .list-group-item:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; } .list-group-horizontal-xl .list-group-item:last-child { margin-right: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0; } } .list-group-flush .list-group-item { border-right: 0; border-left: 0; border-radius: 0; } .list-group-flush .list-group-item:last-child { margin-bottom: -1px; } .list-group-flush:first-child .list-group-item:first-child { border-top: 0; } .list-group-flush:last-child .list-group-item:last-child { margin-bottom: 0; border-bottom: 0; } .list-group-item-primary { color: #4c4993; background-color: #d8d4fb; } .list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { color: #4c4993; background-color: #c3bdf9; } .list-group-item-primary.list-group-item-action.active { color: #fff; background-color: #4c4993; border-color: #4c4993; } .list-group-item-secondary { color: #707981; background-color: #ebeef1; } .list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus { color: #707981; background-color: #dce1e7; } .list-group-item-secondary.list-group-item-action.active { color: #fff; background-color: #707981; border-color: #707981; } .list-group-item-success { color: #257b50; background-color: #c3efd7; } .list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus { color: #257b50; background-color: #afeaca; } .list-group-item-success.list-group-item-action.active { color: #fff; background-color: #257b50; border-color: #257b50; } .list-group-item-info { color: #107f8f; background-color: #b8f2f9; } .list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus { color: #107f8f; background-color: #a0eef7; } .list-group-item-info.list-group-item-action.active { color: #fff; background-color: #107f8f; border-color: #107f8f; } .list-group-item-warning { color: #956639; background-color: #ffe4ca; } .list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus { color: #956639; background-color: #ffd7b1; } .list-group-item-warning.list-group-item-action.active { color: #fff; background-color: #956639; border-color: #956639; } .list-group-item-danger { color: #8a3f43; background-color: #f9cfcf; } .list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { color: #8a3f43; background-color: #f6b8b8; } .list-group-item-danger.list-group-item-action.active { color: #fff; background-color: #8a3f43; border-color: #8a3f43; } .list-group-item-light { color: #71777e; background-color: #ecedef; } .list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus { color: #71777e; background-color: #dee0e3; } .list-group-item-light.list-group-item-action.active { color: #fff; background-color: #71777e; border-color: #71777e; } .list-group-item-dark { color: #202326; background-color: silver; } .list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus { color: #202326; background-color: #b3b3b3; } .list-group-item-dark.list-group-item-action.active { color: #fff; background-color: #202326; border-color: #202326; } .close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #22292f; text-shadow: 0 1px 0 #fff; opacity: .5; } .close:hover { color: #22292f; text-decoration: none; } .close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus { opacity: .75; } button.close { padding: 0; background-color: transparent; border: 0; appearance: none; } a.close.disabled { pointer-events: none; } .toast { max-width: 350px; overflow: hidden; font-size: 0.875rem; background-color: rgba(255, 255, 255, 0.85); background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 0.25rem 0.75rem rgba(34, 41, 47, 0.1); backdrop-filter: blur(10px); opacity: 0; border-radius: 0.25rem; } .toast:not(:last-child) { margin-bottom: 0.75rem; } .toast.showing { opacity: 1; } .toast.show { display: block; opacity: 1; } .toast.hide { display: none; } .toast-header { display: flex; align-items: center; padding: 0.25rem 0.75rem; color: #b8c2cc; background-color: rgba(255, 255, 255, 0.85); background-clip: padding-box; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .toast-body { padding: 0.75rem; } .modal-open { overflow: hidden; } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal { position: fixed; top: 0; left: 0; z-index: 1050; display: none; width: 100%; height: 100%; overflow: hidden; outline: 0; } .modal-dialog { position: relative; width: auto; margin: 0.5rem; pointer-events: none; } .modal.fade .modal-dialog { transition: transform 0.3s ease-out; transform: translate(0, -50px); } @media (prefers-reduced-motion: reduce) { .modal.fade .modal-dialog { transition: none; } } .modal.show .modal-dialog { transform: none; } .modal-dialog-scrollable { display: flex; max-height: calc(100% - 1rem); } .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 1rem); overflow: hidden; } .modal-dialog-scrollable .modal-header, .modal-dialog-scrollable .modal-footer { flex-shrink: 0; } .modal-dialog-scrollable .modal-body { overflow-y: auto; } .modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); } .modal-dialog-centered::before { display: block; height: calc(100vh - 1rem); content: ""; } .modal-dialog-centered.modal-dialog-scrollable { flex-direction: column; justify-content: center; height: 100%; } .modal-dialog-centered.modal-dialog-scrollable .modal-content { max-height: none; } .modal-dialog-centered.modal-dialog-scrollable::before { content: none; } .modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(34, 41, 47, 0.2); border-radius: 0.6rem; outline: 0; } .modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1040; width: 100vw; height: 100vh; background-color: #22292f; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop.show { opacity: 0.5; } .modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1rem; border-bottom: 1px solid #ededed; border-top-left-radius: 0.6rem; border-top-right-radius: 0.6rem; } .modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem auto; } .modal-title { margin-bottom: 0; line-height: 1.45; } .modal-body { position: relative; flex: 1 1 auto; padding: 1rem; } .modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 1rem; border-top: 1px solid #ededed; border-bottom-right-radius: 0.6rem; border-bottom-left-radius: 0.6rem; } .modal-footer > :not(:first-child) { margin-left: .25rem; } .modal-footer > :not(:last-child) { margin-right: .25rem; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto; } .modal-dialog-scrollable { max-height: calc(100% - 3.5rem); } .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); } .modal-dialog-centered { min-height: calc(100% - 3.5rem); } .modal-dialog-centered::before { height: calc(100vh - 3.5rem); } .modal-sm { max-width: 300px; } } @media (min-width: 992px) { .modal-lg, .modal-xl { max-width: 800px; } } @media (min-width: 1200px) { .modal-xl { max-width: 1140px; } } .tooltip { position: absolute; z-index: 1070; display: block; margin: 0; font-family: "Montserrat", Helvetica, Arial, serif; font-style: normal; font-weight: 400; line-height: 1.45; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.857rem; word-wrap: break-word; opacity: 0; } .tooltip.show { opacity: 1; } .tooltip .arrow { position: absolute; display: block; width: 0.8rem; height: 0.4rem; } .tooltip .arrow::before { position: absolute; content: ""; border-color: transparent; border-style: solid; } .bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] { padding: 0.4rem 0; } .bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow { bottom: 0; } .bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { top: 0; border-width: 0.4rem 0.4rem 0; border-top-color: #323232; } .bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] { padding: 0 0.4rem; } .bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow { left: 0; width: 0.4rem; height: 0.8rem; } .bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { right: 0; border-width: 0.4rem 0.4rem 0.4rem 0; border-right-color: #323232; } .bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] { padding: 0.4rem 0; } .bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow { top: 0; } .bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { bottom: 0; border-width: 0 0.4rem 0.4rem; border-bottom-color: #323232; } .bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] { padding: 0 0.4rem; } .bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow { right: 0; width: 0.4rem; height: 0.8rem; } .bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { left: 0; border-width: 0.4rem 0 0.4rem 0.4rem; border-left-color: #323232; } .tooltip-inner { max-width: 220px; padding: 0.4rem 0.775rem; color: #fff; text-align: center; background-color: #323232; border-radius: 0.428rem; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: block; max-width: 276px; font-family: "Montserrat", Helvetica, Arial, serif; font-style: normal; font-weight: 400; line-height: 1.45; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.857rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(34, 41, 47, 0.2); border-radius: 0.428rem; } .popover .arrow { position: absolute; display: block; width: 1rem; height: 0.5rem; margin: 0 0.6rem; } .popover .arrow::before, .popover .arrow::after { position: absolute; display: block; content: ""; border-color: transparent; border-style: solid; } .bs-popover-top, .bs-popover-auto[x-placement^="top"] { margin-bottom: 0.5rem; } .bs-popover-top > .arrow, .bs-popover-auto[x-placement^="top"] > .arrow { bottom: calc((0.5rem + 1px) * -1); } .bs-popover-top > .arrow::before, .bs-popover-auto[x-placement^="top"] > .arrow::before { bottom: 0; border-width: 0.5rem 0.5rem 0; border-top-color: rgba(34, 41, 47, 0.25); } .bs-popover-top > .arrow::after, .bs-popover-auto[x-placement^="top"] > .arrow::after { bottom: 1px; border-width: 0.5rem 0.5rem 0; border-top-color: #fff; } .bs-popover-right, .bs-popover-auto[x-placement^="right"] { margin-left: 0.5rem; } .bs-popover-right > .arrow, .bs-popover-auto[x-placement^="right"] > .arrow { left: calc((0.5rem + 1px) * -1); width: 0.5rem; height: 1rem; margin: 0.6rem 0; } .bs-popover-right > .arrow::before, .bs-popover-auto[x-placement^="right"] > .arrow::before { left: 0; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: rgba(34, 41, 47, 0.25); } .bs-popover-right > .arrow::after, .bs-popover-auto[x-placement^="right"] > .arrow::after { left: 1px; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: #fff; } .bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] { margin-top: 0.5rem; } .bs-popover-bottom > .arrow, .bs-popover-auto[x-placement^="bottom"] > .arrow { top: calc((0.5rem + 1px) * -1); } .bs-popover-bottom > .arrow::before, .bs-popover-auto[x-placement^="bottom"] > .arrow::before { top: 0; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: rgba(34, 41, 47, 0.25); } .bs-popover-bottom > .arrow::after, .bs-popover-auto[x-placement^="bottom"] > .arrow::after { top: 1px; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: #fff; } .bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before { position: absolute; top: 0; left: 50%; display: block; width: 1rem; margin-left: -0.5rem; content: ""; border-bottom: 1px solid #7367f0; } .bs-popover-left, .bs-popover-auto[x-placement^="left"] { margin-right: 0.5rem; } .bs-popover-left > .arrow, .bs-popover-auto[x-placement^="left"] > .arrow { right: calc((0.5rem + 1px) * -1); width: 0.5rem; height: 1rem; margin: 0.6rem 0; } .bs-popover-left > .arrow::before, .bs-popover-auto[x-placement^="left"] > .arrow::before { right: 0; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: rgba(34, 41, 47, 0.25); } .bs-popover-left > .arrow::after, .bs-popover-auto[x-placement^="left"] > .arrow::after { right: 1px; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: #fff; } .popover-header { padding: 0.5rem 0.75rem; margin-bottom: 0; font-size: 1rem; color: #2c2c2c; background-color: #7367f0; border-bottom: 1px solid #5e50ee; border-top-left-radius: calc(0.6rem - 1px); border-top-right-radius: calc(0.6rem - 1px); } .popover-header:empty { display: none; } .popover-body { padding: 0.5rem 0.75rem; color: #626262; } .carousel { position: relative; } .carousel.pointer-event { touch-action: pan-y; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner::after { display: block; clear: both; content: ""; } .carousel-item { position: relative; display: none; float: left; width: 100%; margin-right: -100%; backface-visibility: hidden; transition: transform 0.6s ease-in-out; } @media (prefers-reduced-motion: reduce) { .carousel-item { transition: none; } } .carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; } .carousel-item-next:not(.carousel-item-left), .active.carousel-item-right { transform: translateX(100%); } .carousel-item-prev:not(.carousel-item-right), .active.carousel-item-left { transform: translateX(-100%); } .carousel-fade .carousel-item { opacity: 0; transition-property: opacity; transform: none; } .carousel-fade .carousel-item.active, .carousel-fade .carousel-item-next.carousel-item-left, .carousel-fade .carousel-item-prev.carousel-item-right { z-index: 1; opacity: 1; } .carousel-fade .active.carousel-item-left, .carousel-fade .active.carousel-item-right { z-index: 0; opacity: 0; transition: 0s 0.6s opacity; } @media (prefers-reduced-motion: reduce) { .carousel-fade .active.carousel-item-left, .carousel-fade .active.carousel-item-right { transition: none; } } .carousel-control-prev, .carousel-control-next { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 15%; color: #fff; text-align: center; opacity: 0.5; transition: opacity 0.15s ease; } @media (prefers-reduced-motion: reduce) { .carousel-control-prev, .carousel-control-next { transition: none; } } .carousel-control-prev:hover, .carousel-control-prev:focus, .carousel-control-next:hover, .carousel-control-next:focus { color: #fff; text-decoration: none; outline: 0; opacity: 0.9; } .carousel-control-prev { left: 0; } .carousel-control-next { right: 0; } .carousel-control-prev-icon, .carousel-control-next-icon { display: inline-block; width: 20px; height: 20px; background: no-repeat 50% / 100% 100%; } .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e"); } .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e"); } .carousel-indicators { position: absolute; right: 0; bottom: 0; left: 0; z-index: 15; display: flex; justify-content: center; padding-left: 0; margin-right: 15%; margin-left: 15%; list-style: none; } .carousel-indicators li { box-sizing: content-box; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: #fff; background-clip: padding-box; border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .5; transition: opacity 0.6s ease; } @media (prefers-reduced-motion: reduce) { .carousel-indicators li { transition: none; } } .carousel-indicators .active { opacity: 1; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; } @keyframes spinner-border { to { transform: rotate(360deg); } } .spinner-border { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; border: 0.25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-border .75s linear infinite; } .spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.2em; } @keyframes spinner-grow { 0% { transform: scale(0); } 50% { opacity: 1; } } .spinner-grow { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; background-color: currentColor; border-radius: 50%; opacity: 0; animation: spinner-grow .75s linear infinite; } .spinner-grow-sm { width: 1rem; height: 1rem; } .align-baseline { vertical-align: baseline !important; } .align-top { vertical-align: top !important; } .align-middle { vertical-align: middle !important; } .align-bottom { vertical-align: bottom !important; } .align-text-bottom { vertical-align: text-bottom !important; } .align-text-top { vertical-align: text-top !important; } .bg-primary { background-color: #7367f0 !important; } a.bg-primary:hover, a.bg-primary:focus, button.bg-primary:hover, button.bg-primary:focus { background-color: #4839eb !important; } .bg-secondary { background-color: #b8c2cc !important; } a.bg-secondary:hover, a.bg-secondary:focus, button.bg-secondary:hover, button.bg-secondary:focus { background-color: #9aa9b7 !important; } .bg-success { background-color: #28c76f !important; } a.bg-success:hover, a.bg-success:focus, button.bg-success:hover, button.bg-success:focus { background-color: #1f9d57 !important; } .bg-info { background-color: #00cfe8 !important; } a.bg-info:hover, a.bg-info:focus, button.bg-info:hover, button.bg-info:focus { background-color: #00a1b5 !important; } .bg-warning { background-color: #ff9f43 !important; } a.bg-warning:hover, a.bg-warning:focus, button.bg-warning:hover, button.bg-warning:focus { background-color: #ff8510 !important; } .bg-danger { background-color: #ea5455 !important; } a.bg-danger:hover, a.bg-danger:focus, button.bg-danger:hover, button.bg-danger:focus { background-color: #e42728 !important; } .bg-light { background-color: #babfc7 !important; } a.bg-light:hover, a.bg-light:focus, button.bg-light:hover, button.bg-light:focus { background-color: #9ea5b0 !important; } .bg-dark { background-color: #1e1e1e !important; } a.bg-dark:hover, a.bg-dark:focus, button.bg-dark:hover, button.bg-dark:focus { background-color: #050505 !important; } .bg-white { background-color: #fff !important; } .bg-transparent { background-color: transparent !important; } .border { border: 1px solid #ededed !important; } .border-top { border-top: 1px solid #ededed !important; } .border-right { border-right: 1px solid #ededed !important; } .border-bottom { border-bottom: 1px solid #ededed !important; } .border-left { border-left: 1px solid #ededed !important; } .border-0 { border: 0 !important; } .border-top-0 { border-top: 0 !important; } .border-right-0 { border-right: 0 !important; } .border-bottom-0 { border-bottom: 0 !important; } .border-left-0 { border-left: 0 !important; } .border-primary { border-color: #7367f0 !important; } .border-secondary { border-color: #b8c2cc !important; } .border-success { border-color: #28c76f !important; } .border-info { border-color: #00cfe8 !important; } .border-warning { border-color: #ff9f43 !important; } .border-danger { border-color: #ea5455 !important; } .border-light { border-color: #babfc7 !important; } .border-dark { border-color: #1e1e1e !important; } .border-white { border-color: #fff !important; } .rounded-sm { border-radius: 0.25rem !important; } .rounded { border-radius: 0.5rem !important; } .rounded-top { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; } .rounded-right { border-top-right-radius: 0.5rem !important; border-bottom-right-radius: 0.5rem !important; } .rounded-bottom { border-bottom-right-radius: 0.5rem !important; border-bottom-left-radius: 0.5rem !important; } .rounded-left { border-top-left-radius: 0.5rem !important; border-bottom-left-radius: 0.5rem !important; } .rounded-lg { border-radius: 0.6rem !important; } .rounded-circle { border-radius: 50% !important; } .rounded-pill { border-radius: 50rem !important; } .rounded-0 { border-radius: 0 !important; } .clearfix::after { display: block; clear: both; content: ""; } .d-none { display: none !important; } .d-inline { display: inline !important; } .d-inline-block { display: inline-block !important; } .d-block { display: block !important; } .d-table { display: table !important; } .d-table-row { display: table-row !important; } .d-table-cell { display: table-cell !important; } .d-flex { display: flex !important; } .d-inline-flex { display: inline-flex !important; } @media (min-width: 576px) { .d-sm-none { display: none !important; } .d-sm-inline { display: inline !important; } .d-sm-inline-block { display: inline-block !important; } .d-sm-block { display: block !important; } .d-sm-table { display: table !important; } .d-sm-table-row { display: table-row !important; } .d-sm-table-cell { display: table-cell !important; } .d-sm-flex { display: flex !important; } .d-sm-inline-flex { display: inline-flex !important; } } @media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-inline { display: inline !important; } .d-md-inline-block { display: inline-block !important; } .d-md-block { display: block !important; } .d-md-table { display: table !important; } .d-md-table-row { display: table-row !important; } .d-md-table-cell { display: table-cell !important; } .d-md-flex { display: flex !important; } .d-md-inline-flex { display: inline-flex !important; } } @media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-inline { display: inline !important; } .d-lg-inline-block { display: inline-block !important; } .d-lg-block { display: block !important; } .d-lg-table { display: table !important; } .d-lg-table-row { display: table-row !important; } .d-lg-table-cell { display: table-cell !important; } .d-lg-flex { display: flex !important; } .d-lg-inline-flex { display: inline-flex !important; } } @media (min-width: 1200px) { .d-xl-none { display: none !important; } .d-xl-inline { display: inline !important; } .d-xl-inline-block { display: inline-block !important; } .d-xl-block { display: block !important; } .d-xl-table { display: table !important; } .d-xl-table-row { display: table-row !important; } .d-xl-table-cell { display: table-cell !important; } .d-xl-flex { display: flex !important; } .d-xl-inline-flex { display: inline-flex !important; } } @media print { .d-print-none { display: none !important; } .d-print-inline { display: inline !important; } .d-print-inline-block { display: inline-block !important; } .d-print-block { display: block !important; } .d-print-table { display: table !important; } .d-print-table-row { display: table-row !important; } .d-print-table-cell { display: table-cell !important; } .d-print-flex { display: flex !important; } .d-print-inline-flex { display: inline-flex !important; } } .embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .embed-responsive::before { display: block; content: ""; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; } .embed-responsive-21by9::before { padding-top: 42.85714%; } .embed-responsive-16by9::before { padding-top: 56.25%; } .embed-responsive-4by3::before { padding-top: 75%; } .embed-responsive-1by1::before { padding-top: 100%; } .embed-responsive-21by9::before { padding-top: 42.85714%; } .embed-responsive-16by9::before { padding-top: 56.25%; } .embed-responsive-4by3::before { padding-top: 75%; } .embed-responsive-1by1::before { padding-top: 100%; } .flex-row { flex-direction: row !important; } .flex-column { flex-direction: column !important; } .flex-row-reverse { flex-direction: row-reverse !important; } .flex-column-reverse { flex-direction: column-reverse !important; } .flex-wrap { flex-wrap: wrap !important; } .flex-nowrap { flex-wrap: nowrap !important; } .flex-wrap-reverse { flex-wrap: wrap-reverse !important; } .flex-fill { flex: 1 1 auto !important; } .flex-grow-0 { flex-grow: 0 !important; } .flex-grow-1 { flex-grow: 1 !important; } .flex-shrink-0 { flex-shrink: 0 !important; } .flex-shrink-1 { flex-shrink: 1 !important; } .justify-content-start { justify-content: flex-start !important; } .justify-content-end { justify-content: flex-end !important; } .justify-content-center { justify-content: center !important; } .justify-content-between { justify-content: space-between !important; } .justify-content-around { justify-content: space-around !important; } .align-items-start { align-items: flex-start !important; } .align-items-end { align-items: flex-end !important; } .align-items-center { align-items: center !important; } .align-items-baseline { align-items: baseline !important; } .align-items-stretch { align-items: stretch !important; } .align-content-start { align-content: flex-start !important; } .align-content-end { align-content: flex-end !important; } .align-content-center { align-content: center !important; } .align-content-between { align-content: space-between !important; } .align-content-around { align-content: space-around !important; } .align-content-stretch { align-content: stretch !important; } .align-self-auto { align-self: auto !important; } .align-self-start { align-self: flex-start !important; } .align-self-end { align-self: flex-end !important; } .align-self-center { align-self: center !important; } .align-self-baseline { align-self: baseline !important; } .align-self-stretch { align-self: stretch !important; } @media (min-width: 576px) { .flex-sm-row { flex-direction: row !important; } .flex-sm-column { flex-direction: column !important; } .flex-sm-row-reverse { flex-direction: row-reverse !important; } .flex-sm-column-reverse { flex-direction: column-reverse !important; } .flex-sm-wrap { flex-wrap: wrap !important; } .flex-sm-nowrap { flex-wrap: nowrap !important; } .flex-sm-wrap-reverse { flex-wrap: wrap-reverse !important; } .flex-sm-fill { flex: 1 1 auto !important; } .flex-sm-grow-0 { flex-grow: 0 !important; } .flex-sm-grow-1 { flex-grow: 1 !important; } .flex-sm-shrink-0 { flex-shrink: 0 !important; } .flex-sm-shrink-1 { flex-shrink: 1 !important; } .justify-content-sm-start { justify-content: flex-start !important; } .justify-content-sm-end { justify-content: flex-end !important; } .justify-content-sm-center { justify-content: center !important; } .justify-content-sm-between { justify-content: space-between !important; } .justify-content-sm-around { justify-content: space-around !important; } .align-items-sm-start { align-items: flex-start !important; } .align-items-sm-end { align-items: flex-end !important; } .align-items-sm-center { align-items: center !important; } .align-items-sm-baseline { align-items: baseline !important; } .align-items-sm-stretch { align-items: stretch !important; } .align-content-sm-start { align-content: flex-start !important; } .align-content-sm-end { align-content: flex-end !important; } .align-content-sm-center { align-content: center !important; } .align-content-sm-between { align-content: space-between !important; } .align-content-sm-around { align-content: space-around !important; } .align-content-sm-stretch { align-content: stretch !important; } .align-self-sm-auto { align-self: auto !important; } .align-self-sm-start { align-self: flex-start !important; } .align-self-sm-end { align-self: flex-end !important; } .align-self-sm-center { align-self: center !important; } .align-self-sm-baseline { align-self: baseline !important; } .align-self-sm-stretch { align-self: stretch !important; } } @media (min-width: 768px) { .flex-md-row { flex-direction: row !important; } .flex-md-column { flex-direction: column !important; } .flex-md-row-reverse { flex-direction: row-reverse !important; } .flex-md-column-reverse { flex-direction: column-reverse !important; } .flex-md-wrap { flex-wrap: wrap !important; } .flex-md-nowrap { flex-wrap: nowrap !important; } .flex-md-wrap-reverse { flex-wrap: wrap-reverse !important; } .flex-md-fill { flex: 1 1 auto !important; } .flex-md-grow-0 { flex-grow: 0 !important; } .flex-md-grow-1 { flex-grow: 1 !important; } .flex-md-shrink-0 { flex-shrink: 0 !important; } .flex-md-shrink-1 { flex-shrink: 1 !important; } .justify-content-md-start { justify-content: flex-start !important; } .justify-content-md-end { justify-content: flex-end !important; } .justify-content-md-center { justify-content: center !important; } .justify-content-md-between { justify-content: space-between !important; } .justify-content-md-around { justify-content: space-around !important; } .align-items-md-start { align-items: flex-start !important; } .align-items-md-end { align-items: flex-end !important; } .align-items-md-center { align-items: center !important; } .align-items-md-baseline { align-items: baseline !important; } .align-items-md-stretch { align-items: stretch !important; } .align-content-md-start { align-content: flex-start !important; } .align-content-md-end { align-content: flex-end !important; } .align-content-md-center { align-content: center !important; } .align-content-md-between { align-content: space-between !important; } .align-content-md-around { align-content: space-around !important; } .align-content-md-stretch { align-content: stretch !important; } .align-self-md-auto { align-self: auto !important; } .align-self-md-start { align-self: flex-start !important; } .align-self-md-end { align-self: flex-end !important; } .align-self-md-center { align-self: center !important; } .align-self-md-baseline { align-self: baseline !important; } .align-self-md-stretch { align-self: stretch !important; } } @media (min-width: 992px) { .flex-lg-row { flex-direction: row !important; } .flex-lg-column { flex-direction: column !important; } .flex-lg-row-reverse { flex-direction: row-reverse !important; } .flex-lg-column-reverse { flex-direction: column-reverse !important; } .flex-lg-wrap { flex-wrap: wrap !important; } .flex-lg-nowrap { flex-wrap: nowrap !important; } .flex-lg-wrap-reverse { flex-wrap: wrap-reverse !important; } .flex-lg-fill { flex: 1 1 auto !important; } .flex-lg-grow-0 { flex-grow: 0 !important; } .flex-lg-grow-1 { flex-grow: 1 !important; } .flex-lg-shrink-0 { flex-shrink: 0 !important; } .flex-lg-shrink-1 { flex-shrink: 1 !important; } .justify-content-lg-start { justify-content: flex-start !important; } .justify-content-lg-end { justify-content: flex-end !important; } .justify-content-lg-center { justify-content: center !important; } .justify-content-lg-between { justify-content: space-between !important; } .justify-content-lg-around { justify-content: space-around !important; } .align-items-lg-start { align-items: flex-start !important; } .align-items-lg-end { align-items: flex-end !important; } .align-items-lg-center { align-items: center !important; } .align-items-lg-baseline { align-items: baseline !important; } .align-items-lg-stretch { align-items: stretch !important; } .align-content-lg-start { align-content: flex-start !important; } .align-content-lg-end { align-content: flex-end !important; } .align-content-lg-center { align-content: center !important; } .align-content-lg-between { align-content: space-between !important; } .align-content-lg-around { align-content: space-around !important; } .align-content-lg-stretch { align-content: stretch !important; } .align-self-lg-auto { align-self: auto !important; } .align-self-lg-start { align-self: flex-start !important; } .align-self-lg-end { align-self: flex-end !important; } .align-self-lg-center { align-self: center !important; } .align-self-lg-baseline { align-self: baseline !important; } .align-self-lg-stretch { align-self: stretch !important; } } @media (min-width: 1200px) { .flex-xl-row { flex-direction: row !important; } .flex-xl-column { flex-direction: column !important; } .flex-xl-row-reverse { flex-direction: row-reverse !important; } .flex-xl-column-reverse { flex-direction: column-reverse !important; } .flex-xl-wrap { flex-wrap: wrap !important; } .flex-xl-nowrap { flex-wrap: nowrap !important; } .flex-xl-wrap-reverse { flex-wrap: wrap-reverse !important; } .flex-xl-fill { flex: 1 1 auto !important; } .flex-xl-grow-0 { flex-grow: 0 !important; } .flex-xl-grow-1 { flex-grow: 1 !important; } .flex-xl-shrink-0 { flex-shrink: 0 !important; } .flex-xl-shrink-1 { flex-shrink: 1 !important; } .justify-content-xl-start { justify-content: flex-start !important; } .justify-content-xl-end { justify-content: flex-end !important; } .justify-content-xl-center { justify-content: center !important; } .justify-content-xl-between { justify-content: space-between !important; } .justify-content-xl-around { justify-content: space-around !important; } .align-items-xl-start { align-items: flex-start !important; } .align-items-xl-end { align-items: flex-end !important; } .align-items-xl-center { align-items: center !important; } .align-items-xl-baseline { align-items: baseline !important; } .align-items-xl-stretch { align-items: stretch !important; } .align-content-xl-start { align-content: flex-start !important; } .align-content-xl-end { align-content: flex-end !important; } .align-content-xl-center { align-content: center !important; } .align-content-xl-between { align-content: space-between !important; } .align-content-xl-around { align-content: space-around !important; } .align-content-xl-stretch { align-content: stretch !important; } .align-self-xl-auto { align-self: auto !important; } .align-self-xl-start { align-self: flex-start !important; } .align-self-xl-end { align-self: flex-end !important; } .align-self-xl-center { align-self: center !important; } .align-self-xl-baseline { align-self: baseline !important; } .align-self-xl-stretch { align-self: stretch !important; } } .float-left { float: left !important; } .float-right { float: right !important; } .float-none { float: none !important; } @media (min-width: 576px) { .float-sm-left { float: left !important; } .float-sm-right { float: right !important; } .float-sm-none { float: none !important; } } @media (min-width: 768px) { .float-md-left { float: left !important; } .float-md-right { float: right !important; } .float-md-none { float: none !important; } } @media (min-width: 992px) { .float-lg-left { float: left !important; } .float-lg-right { float: right !important; } .float-lg-none { float: none !important; } } @media (min-width: 1200px) { .float-xl-left { float: left !important; } .float-xl-right { float: right !important; } .float-xl-none { float: none !important; } } .overflow-auto { overflow: auto !important; } .overflow-hidden { overflow: hidden !important; } .position-static { position: static !important; } .position-relative { position: relative !important; } .position-absolute { position: absolute !important; } .position-fixed { position: fixed !important; } .position-sticky { position: sticky !important; } .fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } .fixed-footer .footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; } @supports (position: sticky) { .sticky-top { position: sticky; top: 0; z-index: 1020; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; } .shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(34, 41, 47, 0.075) !important; } .shadow { box-shadow: 0 0.5rem 1rem rgba(34, 41, 47, 0.15) !important; } .shadow-lg { box-shadow: 0 1rem 3rem rgba(34, 41, 47, 0.175) !important; } .shadow-none { box-shadow: none !important; } .w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; } .w-100 { width: 100% !important; } .w-auto { width: auto !important; } .h-25 { height: 25% !important; } .h-50 { height: 50% !important; } .h-75 { height: 75% !important; } .h-100 { height: 100% !important; } .h-auto { height: auto !important; } .mw-100 { max-width: 100% !important; } .mh-100 { max-height: 100% !important; } .min-vw-100 { min-width: 100vw !important; } .min-vh-100 { min-height: 100vh !important; } .vw-100 { width: 100vw !important; } .vh-100 { height: 100vh !important; } .stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: auto; content: ""; background-color: rgba(0, 0, 0, 0); } .m-0 { margin: 0 !important; } .mt-0, .my-0 { margin-top: 0 !important; } .mr-0, .mx-0 { margin-right: 0 !important; } .mb-0, .my-0 { margin-bottom: 0 !important; } .ml-0, .mx-0 { margin-left: 0 !important; } .m-1 { margin: 1rem !important; } .mt-1, .my-1 { margin-top: 1rem !important; } .mr-1, .mx-1 { margin-right: 1rem !important; } .mb-1, .my-1 { margin-bottom: 1rem !important; } .ml-1, .mx-1 { margin-left: 1rem !important; } .m-2 { margin: 1.5rem !important; } .mt-2, .my-2 { margin-top: 1.5rem !important; } .mr-2, .mx-2 { margin-right: 1.5rem !important; } .mb-2, .my-2 { margin-bottom: 1.5rem !important; } .ml-2, .mx-2 { margin-left: 1.5rem !important; } .m-3 { margin: 3rem !important; } .mt-3, .my-3 { margin-top: 3rem !important; } .mr-3, .mx-3 { margin-right: 3rem !important; } .mb-3, .my-3 { margin-bottom: 3rem !important; } .ml-3, .mx-3 { margin-left: 3rem !important; } .m-4 { margin: 3.5rem !important; } .mt-4, .my-4 { margin-top: 3.5rem !important; } .mr-4, .mx-4 { margin-right: 3.5rem !important; } .mb-4, .my-4 { margin-bottom: 3.5rem !important; } .ml-4, .mx-4 { margin-left: 3.5rem !important; } .m-5 { margin: 4rem !important; } .mt-5, .my-5 { margin-top: 4rem !important; } .mr-5, .mx-5 { margin-right: 4rem !important; } .mb-5, .my-5 { margin-bottom: 4rem !important; } .ml-5, .mx-5 { margin-left: 4rem !important; } .m-25 { margin: 0.25rem !important; } .mt-25, .my-25 { margin-top: 0.25rem !important; } .mr-25, .mx-25 { margin-right: 0.25rem !important; } .mb-25, .my-25 { margin-bottom: 0.25rem !important; } .ml-25, .mx-25 { margin-left: 0.25rem !important; } .m-50 { margin: 0.5rem !important; } .mt-50, .my-50 { margin-top: 0.5rem !important; } .mr-50, .mx-50 { margin-right: 0.5rem !important; } .mb-50, .my-50 { margin-bottom: 0.5rem !important; } .ml-50, .mx-50 { margin-left: 0.5rem !important; } .m-75 { margin: 0.75rem !important; } .mt-75, .my-75 { margin-top: 0.75rem !important; } .mr-75, .mx-75 { margin-right: 0.75rem !important; } .mb-75, .my-75 { margin-bottom: 0.75rem !important; } .ml-75, .mx-75 { margin-left: 0.75rem !important; } .p-0 { padding: 0 !important; } .pt-0, .py-0 { padding-top: 0 !important; } .pr-0, .px-0 { padding-right: 0 !important; } .pb-0, .py-0 { padding-bottom: 0 !important; } .pl-0, .px-0 { padding-left: 0 !important; } .p-1 { padding: 1rem !important; } .pt-1, .py-1 { padding-top: 1rem !important; } .pr-1, .px-1 { padding-right: 1rem !important; } .pb-1, .py-1 { padding-bottom: 1rem !important; } .pl-1, .px-1 { padding-left: 1rem !important; } .p-2 { padding: 1.5rem !important; } .pt-2, .py-2 { padding-top: 1.5rem !important; } .pr-2, .px-2 { padding-right: 1.5rem !important; } .pb-2, .py-2 { padding-bottom: 1.5rem !important; } .pl-2, .px-2 { padding-left: 1.5rem !important; } .p-3 { padding: 3rem !important; } .pt-3, .py-3 { padding-top: 3rem !important; } .pr-3, .px-3 { padding-right: 3rem !important; } .pb-3, .py-3 { padding-bottom: 3rem !important; } .pl-3, .px-3 { padding-left: 3rem !important; } .p-4 { padding: 3.5rem !important; } .pt-4, .py-4 { padding-top: 3.5rem !important; } .pr-4, .px-4 { padding-right: 3.5rem !important; } .pb-4, .py-4 { padding-bottom: 3.5rem !important; } .pl-4, .px-4 { padding-left: 3.5rem !important; } .p-5 { padding: 4rem !important; } .pt-5, .py-5 { padding-top: 4rem !important; } .pr-5, .px-5 { padding-right: 4rem !important; } .pb-5, .py-5 { padding-bottom: 4rem !important; } .pl-5, .px-5 { padding-left: 4rem !important; } .p-25 { padding: 0.25rem !important; } .pt-25, .py-25 { padding-top: 0.25rem !important; } .pr-25, .px-25 { padding-right: 0.25rem !important; } .pb-25, .py-25 { padding-bottom: 0.25rem !important; } .pl-25, .px-25 { padding-left: 0.25rem !important; } .p-50 { padding: 0.5rem !important; } .pt-50, .py-50 { padding-top: 0.5rem !important; } .pr-50, .px-50 { padding-right: 0.5rem !important; } .pb-50, .py-50 { padding-bottom: 0.5rem !important; } .pl-50, .px-50 { padding-left: 0.5rem !important; } .p-75 { padding: 0.75rem !important; } .pt-75, .py-75 { padding-top: 0.75rem !important; } .pr-75, .px-75 { padding-right: 0.75rem !important; } .pb-75, .py-75 { padding-bottom: 0.75rem !important; } .pl-75, .px-75 { padding-left: 0.75rem !important; } .m-n1 { margin: -1rem !important; } .mt-n1, .my-n1 { margin-top: -1rem !important; } .mr-n1, .mx-n1 { margin-right: -1rem !important; } .mb-n1, .my-n1 { margin-bottom: -1rem !important; } .ml-n1, .mx-n1 { margin-left: -1rem !important; } .m-n2 { margin: -1.5rem !important; } .mt-n2, .my-n2 { margin-top: -1.5rem !important; } .mr-n2, .mx-n2 { margin-right: -1.5rem !important; } .mb-n2, .my-n2 { margin-bottom: -1.5rem !important; } .ml-n2, .mx-n2 { margin-left: -1.5rem !important; } .m-n3 { margin: -3rem !important; } .mt-n3, .my-n3 { margin-top: -3rem !important; } .mr-n3, .mx-n3 { margin-right: -3rem !important; } .mb-n3, .my-n3 { margin-bottom: -3rem !important; } .ml-n3, .mx-n3 { margin-left: -3rem !important; } .m-n4 { margin: -3.5rem !important; } .mt-n4, .my-n4 { margin-top: -3.5rem !important; } .mr-n4, .mx-n4 { margin-right: -3.5rem !important; } .mb-n4, .my-n4 { margin-bottom: -3.5rem !important; } .ml-n4, .mx-n4 { margin-left: -3.5rem !important; } .m-n5 { margin: -4rem !important; } .mt-n5, .my-n5 { margin-top: -4rem !important; } .mr-n5, .mx-n5 { margin-right: -4rem !important; } .mb-n5, .my-n5 { margin-bottom: -4rem !important; } .ml-n5, .mx-n5 { margin-left: -4rem !important; } .m-n25 { margin: -0.25rem !important; } .mt-n25, .my-n25 { margin-top: -0.25rem !important; } .mr-n25, .mx-n25 { margin-right: -0.25rem !important; } .mb-n25, .my-n25 { margin-bottom: -0.25rem !important; } .ml-n25, .mx-n25 { margin-left: -0.25rem !important; } .m-n50 { margin: -0.5rem !important; } .mt-n50, .my-n50 { margin-top: -0.5rem !important; } .mr-n50, .mx-n50 { margin-right: -0.5rem !important; } .mb-n50, .my-n50 { margin-bottom: -0.5rem !important; } .ml-n50, .mx-n50 { margin-left: -0.5rem !important; } .m-n75 { margin: -0.75rem !important; } .mt-n75, .my-n75 { margin-top: -0.75rem !important; } .mr-n75, .mx-n75 { margin-right: -0.75rem !important; } .mb-n75, .my-n75 { margin-bottom: -0.75rem !important; } .ml-n75, .mx-n75 { margin-left: -0.75rem !important; } .m-auto { margin: auto !important; } .mt-auto, .my-auto { margin-top: auto !important; } .mr-auto, .mx-auto { margin-right: auto !important; } .mb-auto, .my-auto { margin-bottom: auto !important; } .ml-auto, .mx-auto { margin-left: auto !important; } @media (min-width: 576px) { .m-sm-0 { margin: 0 !important; } .mt-sm-0, .my-sm-0 { margin-top: 0 !important; } .mr-sm-0, .mx-sm-0 { margin-right: 0 !important; } .mb-sm-0, .my-sm-0 { margin-bottom: 0 !important; } .ml-sm-0, .mx-sm-0 { margin-left: 0 !important; } .m-sm-1 { margin: 1rem !important; } .mt-sm-1, .my-sm-1 { margin-top: 1rem !important; } .mr-sm-1, .mx-sm-1 { margin-right: 1rem !important; } .mb-sm-1, .my-sm-1 { margin-bottom: 1rem !important; } .ml-sm-1, .mx-sm-1 { margin-left: 1rem !important; } .m-sm-2 { margin: 1.5rem !important; } .mt-sm-2, .my-sm-2 { margin-top: 1.5rem !important; } .mr-sm-2, .mx-sm-2 { margin-right: 1.5rem !important; } .mb-sm-2, .my-sm-2 { margin-bottom: 1.5rem !important; } .ml-sm-2, .mx-sm-2 { margin-left: 1.5rem !important; } .m-sm-3 { margin: 3rem !important; } .mt-sm-3, .my-sm-3 { margin-top: 3rem !important; } .mr-sm-3, .mx-sm-3 { margin-right: 3rem !important; } .mb-sm-3, .my-sm-3 { margin-bottom: 3rem !important; } .ml-sm-3, .mx-sm-3 { margin-left: 3rem !important; } .m-sm-4 { margin: 3.5rem !important; } .mt-sm-4, .my-sm-4 { margin-top: 3.5rem !important; } .mr-sm-4, .mx-sm-4 { margin-right: 3.5rem !important; } .mb-sm-4, .my-sm-4 { margin-bottom: 3.5rem !important; } .ml-sm-4, .mx-sm-4 { margin-left: 3.5rem !important; } .m-sm-5 { margin: 4rem !important; } .mt-sm-5, .my-sm-5 { margin-top: 4rem !important; } .mr-sm-5, .mx-sm-5 { margin-right: 4rem !important; } .mb-sm-5, .my-sm-5 { margin-bottom: 4rem !important; } .ml-sm-5, .mx-sm-5 { margin-left: 4rem !important; } .m-sm-25 { margin: 0.25rem !important; } .mt-sm-25, .my-sm-25 { margin-top: 0.25rem !important; } .mr-sm-25, .mx-sm-25 { margin-right: 0.25rem !important; } .mb-sm-25, .my-sm-25 { margin-bottom: 0.25rem !important; } .ml-sm-25, .mx-sm-25 { margin-left: 0.25rem !important; } .m-sm-50 { margin: 0.5rem !important; } .mt-sm-50, .my-sm-50 { margin-top: 0.5rem !important; } .mr-sm-50, .mx-sm-50 { margin-right: 0.5rem !important; } .mb-sm-50, .my-sm-50 { margin-bottom: 0.5rem !important; } .ml-sm-50, .mx-sm-50 { margin-left: 0.5rem !important; } .m-sm-75 { margin: 0.75rem !important; } .mt-sm-75, .my-sm-75 { margin-top: 0.75rem !important; } .mr-sm-75, .mx-sm-75 { margin-right: 0.75rem !important; } .mb-sm-75, .my-sm-75 { margin-bottom: 0.75rem !important; } .ml-sm-75, .mx-sm-75 { margin-left: 0.75rem !important; } .p-sm-0 { padding: 0 !important; } .pt-sm-0, .py-sm-0 { padding-top: 0 !important; } .pr-sm-0, .px-sm-0 { padding-right: 0 !important; } .pb-sm-0, .py-sm-0 { padding-bottom: 0 !important; } .pl-sm-0, .px-sm-0 { padding-left: 0 !important; } .p-sm-1 { padding: 1rem !important; } .pt-sm-1, .py-sm-1 { padding-top: 1rem !important; } .pr-sm-1, .px-sm-1 { padding-right: 1rem !important; } .pb-sm-1, .py-sm-1 { padding-bottom: 1rem !important; } .pl-sm-1, .px-sm-1 { padding-left: 1rem !important; } .p-sm-2 { padding: 1.5rem !important; } .pt-sm-2, .py-sm-2 { padding-top: 1.5rem !important; } .pr-sm-2, .px-sm-2 { padding-right: 1.5rem !important; } .pb-sm-2, .py-sm-2 { padding-bottom: 1.5rem !important; } .pl-sm-2, .px-sm-2 { padding-left: 1.5rem !important; } .p-sm-3 { padding: 3rem !important; } .pt-sm-3, .py-sm-3 { padding-top: 3rem !important; } .pr-sm-3, .px-sm-3 { padding-right: 3rem !important; } .pb-sm-3, .py-sm-3 { padding-bottom: 3rem !important; } .pl-sm-3, .px-sm-3 { padding-left: 3rem !important; } .p-sm-4 { padding: 3.5rem !important; } .pt-sm-4, .py-sm-4 { padding-top: 3.5rem !important; } .pr-sm-4, .px-sm-4 { padding-right: 3.5rem !important; } .pb-sm-4, .py-sm-4 { padding-bottom: 3.5rem !important; } .pl-sm-4, .px-sm-4 { padding-left: 3.5rem !important; } .p-sm-5 { padding: 4rem !important; } .pt-sm-5, .py-sm-5 { padding-top: 4rem !important; } .pr-sm-5, .px-sm-5 { padding-right: 4rem !important; } .pb-sm-5, .py-sm-5 { padding-bottom: 4rem !important; } .pl-sm-5, .px-sm-5 { padding-left: 4rem !important; } .p-sm-25 { padding: 0.25rem !important; } .pt-sm-25, .py-sm-25 { padding-top: 0.25rem !important; } .pr-sm-25, .px-sm-25 { padding-right: 0.25rem !important; } .pb-sm-25, .py-sm-25 { padding-bottom: 0.25rem !important; } .pl-sm-25, .px-sm-25 { padding-left: 0.25rem !important; } .p-sm-50 { padding: 0.5rem !important; } .pt-sm-50, .py-sm-50 { padding-top: 0.5rem !important; } .pr-sm-50, .px-sm-50 { padding-right: 0.5rem !important; } .pb-sm-50, .py-sm-50 { padding-bottom: 0.5rem !important; } .pl-sm-50, .px-sm-50 { padding-left: 0.5rem !important; } .p-sm-75 { padding: 0.75rem !important; } .pt-sm-75, .py-sm-75 { padding-top: 0.75rem !important; } .pr-sm-75, .px-sm-75 { padding-right: 0.75rem !important; } .pb-sm-75, .py-sm-75 { padding-bottom: 0.75rem !important; } .pl-sm-75, .px-sm-75 { padding-left: 0.75rem !important; } .m-sm-n1 { margin: -1rem !important; } .mt-sm-n1, .my-sm-n1 { margin-top: -1rem !important; } .mr-sm-n1, .mx-sm-n1 { margin-right: -1rem !important; } .mb-sm-n1, .my-sm-n1 { margin-bottom: -1rem !important; } .ml-sm-n1, .mx-sm-n1 { margin-left: -1rem !important; } .m-sm-n2 { margin: -1.5rem !important; } .mt-sm-n2, .my-sm-n2 { margin-top: -1.5rem !important; } .mr-sm-n2, .mx-sm-n2 { margin-right: -1.5rem !important; } .mb-sm-n2, .my-sm-n2 { margin-bottom: -1.5rem !important; } .ml-sm-n2, .mx-sm-n2 { margin-left: -1.5rem !important; } .m-sm-n3 { margin: -3rem !important; } .mt-sm-n3, .my-sm-n3 { margin-top: -3rem !important; } .mr-sm-n3, .mx-sm-n3 { margin-right: -3rem !important; } .mb-sm-n3, .my-sm-n3 { margin-bottom: -3rem !important; } .ml-sm-n3, .mx-sm-n3 { margin-left: -3rem !important; } .m-sm-n4 { margin: -3.5rem !important; } .mt-sm-n4, .my-sm-n4 { margin-top: -3.5rem !important; } .mr-sm-n4, .mx-sm-n4 { margin-right: -3.5rem !important; } .mb-sm-n4, .my-sm-n4 { margin-bottom: -3.5rem !important; } .ml-sm-n4, .mx-sm-n4 { margin-left: -3.5rem !important; } .m-sm-n5 { margin: -4rem !important; } .mt-sm-n5, .my-sm-n5 { margin-top: -4rem !important; } .mr-sm-n5, .mx-sm-n5 { margin-right: -4rem !important; } .mb-sm-n5, .my-sm-n5 { margin-bottom: -4rem !important; } .ml-sm-n5, .mx-sm-n5 { margin-left: -4rem !important; } .m-sm-n25 { margin: -0.25rem !important; } .mt-sm-n25, .my-sm-n25 { margin-top: -0.25rem !important; } .mr-sm-n25, .mx-sm-n25 { margin-right: -0.25rem !important; } .mb-sm-n25, .my-sm-n25 { margin-bottom: -0.25rem !important; } .ml-sm-n25, .mx-sm-n25 { margin-left: -0.25rem !important; } .m-sm-n50 { margin: -0.5rem !important; } .mt-sm-n50, .my-sm-n50 { margin-top: -0.5rem !important; } .mr-sm-n50, .mx-sm-n50 { margin-right: -0.5rem !important; } .mb-sm-n50, .my-sm-n50 { margin-bottom: -0.5rem !important; } .ml-sm-n50, .mx-sm-n50 { margin-left: -0.5rem !important; } .m-sm-n75 { margin: -0.75rem !important; } .mt-sm-n75, .my-sm-n75 { margin-top: -0.75rem !important; } .mr-sm-n75, .mx-sm-n75 { margin-right: -0.75rem !important; } .mb-sm-n75, .my-sm-n75 { margin-bottom: -0.75rem !important; } .ml-sm-n75, .mx-sm-n75 { margin-left: -0.75rem !important; } .m-sm-auto { margin: auto !important; } .mt-sm-auto, .my-sm-auto { margin-top: auto !important; } .mr-sm-auto, .mx-sm-auto { margin-right: auto !important; } .mb-sm-auto, .my-sm-auto { margin-bottom: auto !important; } .ml-sm-auto, .mx-sm-auto { margin-left: auto !important; } } @media (min-width: 768px) { .m-md-0 { margin: 0 !important; } .mt-md-0, .my-md-0 { margin-top: 0 !important; } .mr-md-0, .mx-md-0 { margin-right: 0 !important; } .mb-md-0, .my-md-0 { margin-bottom: 0 !important; } .ml-md-0, .mx-md-0 { margin-left: 0 !important; } .m-md-1 { margin: 1rem !important; } .mt-md-1, .my-md-1 { margin-top: 1rem !important; } .mr-md-1, .mx-md-1 { margin-right: 1rem !important; } .mb-md-1, .my-md-1 { margin-bottom: 1rem !important; } .ml-md-1, .mx-md-1 { margin-left: 1rem !important; } .m-md-2 { margin: 1.5rem !important; } .mt-md-2, .my-md-2 { margin-top: 1.5rem !important; } .mr-md-2, .mx-md-2 { margin-right: 1.5rem !important; } .mb-md-2, .my-md-2 { margin-bottom: 1.5rem !important; } .ml-md-2, .mx-md-2 { margin-left: 1.5rem !important; } .m-md-3 { margin: 3rem !important; } .mt-md-3, .my-md-3 { margin-top: 3rem !important; } .mr-md-3, .mx-md-3 { margin-right: 3rem !important; } .mb-md-3, .my-md-3 { margin-bottom: 3rem !important; } .ml-md-3, .mx-md-3 { margin-left: 3rem !important; } .m-md-4 { margin: 3.5rem !important; } .mt-md-4, .my-md-4 { margin-top: 3.5rem !important; } .mr-md-4, .mx-md-4 { margin-right: 3.5rem !important; } .mb-md-4, .my-md-4 { margin-bottom: 3.5rem !important; } .ml-md-4, .mx-md-4 { margin-left: 3.5rem !important; } .m-md-5 { margin: 4rem !important; } .mt-md-5, .my-md-5 { margin-top: 4rem !important; } .mr-md-5, .mx-md-5 { margin-right: 4rem !important; } .mb-md-5, .my-md-5 { margin-bottom: 4rem !important; } .ml-md-5, .mx-md-5 { margin-left: 4rem !important; } .m-md-25 { margin: 0.25rem !important; } .mt-md-25, .my-md-25 { margin-top: 0.25rem !important; } .mr-md-25, .mx-md-25 { margin-right: 0.25rem !important; } .mb-md-25, .my-md-25 { margin-bottom: 0.25rem !important; } .ml-md-25, .mx-md-25 { margin-left: 0.25rem !important; } .m-md-50 { margin: 0.5rem !important; } .mt-md-50, .my-md-50 { margin-top: 0.5rem !important; } .mr-md-50, .mx-md-50 { margin-right: 0.5rem !important; } .mb-md-50, .my-md-50 { margin-bottom: 0.5rem !important; } .ml-md-50, .mx-md-50 { margin-left: 0.5rem !important; } .m-md-75 { margin: 0.75rem !important; } .mt-md-75, .my-md-75 { margin-top: 0.75rem !important; } .mr-md-75, .mx-md-75 { margin-right: 0.75rem !important; } .mb-md-75, .my-md-75 { margin-bottom: 0.75rem !important; } .ml-md-75, .mx-md-75 { margin-left: 0.75rem !important; } .p-md-0 { padding: 0 !important; } .pt-md-0, .py-md-0 { padding-top: 0 !important; } .pr-md-0, .px-md-0 { padding-right: 0 !important; } .pb-md-0, .py-md-0 { padding-bottom: 0 !important; } .pl-md-0, .px-md-0 { padding-left: 0 !important; } .p-md-1 { padding: 1rem !important; } .pt-md-1, .py-md-1 { padding-top: 1rem !important; } .pr-md-1, .px-md-1 { padding-right: 1rem !important; } .pb-md-1, .py-md-1 { padding-bottom: 1rem !important; } .pl-md-1, .px-md-1 { padding-left: 1rem !important; } .p-md-2 { padding: 1.5rem !important; } .pt-md-2, .py-md-2 { padding-top: 1.5rem !important; } .pr-md-2, .px-md-2 { padding-right: 1.5rem !important; } .pb-md-2, .py-md-2 { padding-bottom: 1.5rem !important; } .pl-md-2, .px-md-2 { padding-left: 1.5rem !important; } .p-md-3 { padding: 3rem !important; } .pt-md-3, .py-md-3 { padding-top: 3rem !important; } .pr-md-3, .px-md-3 { padding-right: 3rem !important; } .pb-md-3, .py-md-3 { padding-bottom: 3rem !important; } .pl-md-3, .px-md-3 { padding-left: 3rem !important; } .p-md-4 { padding: 3.5rem !important; } .pt-md-4, .py-md-4 { padding-top: 3.5rem !important; } .pr-md-4, .px-md-4 { padding-right: 3.5rem !important; } .pb-md-4, .py-md-4 { padding-bottom: 3.5rem !important; } .pl-md-4, .px-md-4 { padding-left: 3.5rem !important; } .p-md-5 { padding: 4rem !important; } .pt-md-5, .py-md-5 { padding-top: 4rem !important; } .pr-md-5, .px-md-5 { padding-right: 4rem !important; } .pb-md-5, .py-md-5 { padding-bottom: 4rem !important; } .pl-md-5, .px-md-5 { padding-left: 4rem !important; } .p-md-25 { padding: 0.25rem !important; } .pt-md-25, .py-md-25 { padding-top: 0.25rem !important; } .pr-md-25, .px-md-25 { padding-right: 0.25rem !important; } .pb-md-25, .py-md-25 { padding-bottom: 0.25rem !important; } .pl-md-25, .px-md-25 { padding-left: 0.25rem !important; } .p-md-50 { padding: 0.5rem !important; } .pt-md-50, .py-md-50 { padding-top: 0.5rem !important; } .pr-md-50, .px-md-50 { padding-right: 0.5rem !important; } .pb-md-50, .py-md-50 { padding-bottom: 0.5rem !important; } .pl-md-50, .px-md-50 { padding-left: 0.5rem !important; } .p-md-75 { padding: 0.75rem !important; } .pt-md-75, .py-md-75 { padding-top: 0.75rem !important; } .pr-md-75, .px-md-75 { padding-right: 0.75rem !important; } .pb-md-75, .py-md-75 { padding-bottom: 0.75rem !important; } .pl-md-75, .px-md-75 { padding-left: 0.75rem !important; } .m-md-n1 { margin: -1rem !important; } .mt-md-n1, .my-md-n1 { margin-top: -1rem !important; } .mr-md-n1, .mx-md-n1 { margin-right: -1rem !important; } .mb-md-n1, .my-md-n1 { margin-bottom: -1rem !important; } .ml-md-n1, .mx-md-n1 { margin-left: -1rem !important; } .m-md-n2 { margin: -1.5rem !important; } .mt-md-n2, .my-md-n2 { margin-top: -1.5rem !important; } .mr-md-n2, .mx-md-n2 { margin-right: -1.5rem !important; } .mb-md-n2, .my-md-n2 { margin-bottom: -1.5rem !important; } .ml-md-n2, .mx-md-n2 { margin-left: -1.5rem !important; } .m-md-n3 { margin: -3rem !important; } .mt-md-n3, .my-md-n3 { margin-top: -3rem !important; } .mr-md-n3, .mx-md-n3 { margin-right: -3rem !important; } .mb-md-n3, .my-md-n3 { margin-bottom: -3rem !important; } .ml-md-n3, .mx-md-n3 { margin-left: -3rem !important; } .m-md-n4 { margin: -3.5rem !important; } .mt-md-n4, .my-md-n4 { margin-top: -3.5rem !important; } .mr-md-n4, .mx-md-n4 { margin-right: -3.5rem !important; } .mb-md-n4, .my-md-n4 { margin-bottom: -3.5rem !important; } .ml-md-n4, .mx-md-n4 { margin-left: -3.5rem !important; } .m-md-n5 { margin: -4rem !important; } .mt-md-n5, .my-md-n5 { margin-top: -4rem !important; } .mr-md-n5, .mx-md-n5 { margin-right: -4rem !important; } .mb-md-n5, .my-md-n5 { margin-bottom: -4rem !important; } .ml-md-n5, .mx-md-n5 { margin-left: -4rem !important; } .m-md-n25 { margin: -0.25rem !important; } .mt-md-n25, .my-md-n25 { margin-top: -0.25rem !important; } .mr-md-n25, .mx-md-n25 { margin-right: -0.25rem !important; } .mb-md-n25, .my-md-n25 { margin-bottom: -0.25rem !important; } .ml-md-n25, .mx-md-n25 { margin-left: -0.25rem !important; } .m-md-n50 { margin: -0.5rem !important; } .mt-md-n50, .my-md-n50 { margin-top: -0.5rem !important; } .mr-md-n50, .mx-md-n50 { margin-right: -0.5rem !important; } .mb-md-n50, .my-md-n50 { margin-bottom: -0.5rem !important; } .ml-md-n50, .mx-md-n50 { margin-left: -0.5rem !important; } .m-md-n75 { margin: -0.75rem !important; } .mt-md-n75, .my-md-n75 { margin-top: -0.75rem !important; } .mr-md-n75, .mx-md-n75 { margin-right: -0.75rem !important; } .mb-md-n75, .my-md-n75 { margin-bottom: -0.75rem !important; } .ml-md-n75, .mx-md-n75 { margin-left: -0.75rem !important; } .m-md-auto { margin: auto !important; } .mt-md-auto, .my-md-auto { margin-top: auto !important; } .mr-md-auto, .mx-md-auto { margin-right: auto !important; } .mb-md-auto, .my-md-auto { margin-bottom: auto !important; } .ml-md-auto, .mx-md-auto { margin-left: auto !important; } } @media (min-width: 992px) { .m-lg-0 { margin: 0 !important; } .mt-lg-0, .my-lg-0 { margin-top: 0 !important; } .mr-lg-0, .mx-lg-0 { margin-right: 0 !important; } .mb-lg-0, .my-lg-0 { margin-bottom: 0 !important; } .ml-lg-0, .mx-lg-0 { margin-left: 0 !important; } .m-lg-1 { margin: 1rem !important; } .mt-lg-1, .my-lg-1 { margin-top: 1rem !important; } .mr-lg-1, .mx-lg-1 { margin-right: 1rem !important; } .mb-lg-1, .my-lg-1 { margin-bottom: 1rem !important; } .ml-lg-1, .mx-lg-1 { margin-left: 1rem !important; } .m-lg-2 { margin: 1.5rem !important; } .mt-lg-2, .my-lg-2 { margin-top: 1.5rem !important; } .mr-lg-2, .mx-lg-2 { margin-right: 1.5rem !important; } .mb-lg-2, .my-lg-2 { margin-bottom: 1.5rem !important; } .ml-lg-2, .mx-lg-2 { margin-left: 1.5rem !important; } .m-lg-3 { margin: 3rem !important; } .mt-lg-3, .my-lg-3 { margin-top: 3rem !important; } .mr-lg-3, .mx-lg-3 { margin-right: 3rem !important; } .mb-lg-3, .my-lg-3 { margin-bottom: 3rem !important; } .ml-lg-3, .mx-lg-3 { margin-left: 3rem !important; } .m-lg-4 { margin: 3.5rem !important; } .mt-lg-4, .my-lg-4 { margin-top: 3.5rem !important; } .mr-lg-4, .mx-lg-4 { margin-right: 3.5rem !important; } .mb-lg-4, .my-lg-4 { margin-bottom: 3.5rem !important; } .ml-lg-4, .mx-lg-4 { margin-left: 3.5rem !important; } .m-lg-5 { margin: 4rem !important; } .mt-lg-5, .my-lg-5 { margin-top: 4rem !important; } .mr-lg-5, .mx-lg-5 { margin-right: 4rem !important; } .mb-lg-5, .my-lg-5 { margin-bottom: 4rem !important; } .ml-lg-5, .mx-lg-5 { margin-left: 4rem !important; } .m-lg-25 { margin: 0.25rem !important; } .mt-lg-25, .my-lg-25 { margin-top: 0.25rem !important; } .mr-lg-25, .mx-lg-25 { margin-right: 0.25rem !important; } .mb-lg-25, .my-lg-25 { margin-bottom: 0.25rem !important; } .ml-lg-25, .mx-lg-25 { margin-left: 0.25rem !important; } .m-lg-50 { margin: 0.5rem !important; } .mt-lg-50, .my-lg-50 { margin-top: 0.5rem !important; } .mr-lg-50, .mx-lg-50 { margin-right: 0.5rem !important; } .mb-lg-50, .my-lg-50 { margin-bottom: 0.5rem !important; } .ml-lg-50, .mx-lg-50 { margin-left: 0.5rem !important; } .m-lg-75 { margin: 0.75rem !important; } .mt-lg-75, .my-lg-75 { margin-top: 0.75rem !important; } .mr-lg-75, .mx-lg-75 { margin-right: 0.75rem !important; } .mb-lg-75, .my-lg-75 { margin-bottom: 0.75rem !important; } .ml-lg-75, .mx-lg-75 { margin-left: 0.75rem !important; } .p-lg-0 { padding: 0 !important; } .pt-lg-0, .py-lg-0 { padding-top: 0 !important; } .pr-lg-0, .px-lg-0 { padding-right: 0 !important; } .pb-lg-0, .py-lg-0 { padding-bottom: 0 !important; } .pl-lg-0, .px-lg-0 { padding-left: 0 !important; } .p-lg-1 { padding: 1rem !important; } .pt-lg-1, .py-lg-1 { padding-top: 1rem !important; } .pr-lg-1, .px-lg-1 { padding-right: 1rem !important; } .pb-lg-1, .py-lg-1 { padding-bottom: 1rem !important; } .pl-lg-1, .px-lg-1 { padding-left: 1rem !important; } .p-lg-2 { padding: 1.5rem !important; } .pt-lg-2, .py-lg-2 { padding-top: 1.5rem !important; } .pr-lg-2, .px-lg-2 { padding-right: 1.5rem !important; } .pb-lg-2, .py-lg-2 { padding-bottom: 1.5rem !important; } .pl-lg-2, .px-lg-2 { padding-left: 1.5rem !important; } .p-lg-3 { padding: 3rem !important; } .pt-lg-3, .py-lg-3 { padding-top: 3rem !important; } .pr-lg-3, .px-lg-3 { padding-right: 3rem !important; } .pb-lg-3, .py-lg-3 { padding-bottom: 3rem !important; } .pl-lg-3, .px-lg-3 { padding-left: 3rem !important; } .p-lg-4 { padding: 3.5rem !important; } .pt-lg-4, .py-lg-4 { padding-top: 3.5rem !important; } .pr-lg-4, .px-lg-4 { padding-right: 3.5rem !important; } .pb-lg-4, .py-lg-4 { padding-bottom: 3.5rem !important; } .pl-lg-4, .px-lg-4 { padding-left: 3.5rem !important; } .p-lg-5 { padding: 4rem !important; } .pt-lg-5, .py-lg-5 { padding-top: 4rem !important; } .pr-lg-5, .px-lg-5 { padding-right: 4rem !important; } .pb-lg-5, .py-lg-5 { padding-bottom: 4rem !important; } .pl-lg-5, .px-lg-5 { padding-left: 4rem !important; } .p-lg-25 { padding: 0.25rem !important; } .pt-lg-25, .py-lg-25 { padding-top: 0.25rem !important; } .pr-lg-25, .px-lg-25 { padding-right: 0.25rem !important; } .pb-lg-25, .py-lg-25 { padding-bottom: 0.25rem !important; } .pl-lg-25, .px-lg-25 { padding-left: 0.25rem !important; } .p-lg-50 { padding: 0.5rem !important; } .pt-lg-50, .py-lg-50 { padding-top: 0.5rem !important; } .pr-lg-50, .px-lg-50 { padding-right: 0.5rem !important; } .pb-lg-50, .py-lg-50 { padding-bottom: 0.5rem !important; } .pl-lg-50, .px-lg-50 { padding-left: 0.5rem !important; } .p-lg-75 { padding: 0.75rem !important; } .pt-lg-75, .py-lg-75 { padding-top: 0.75rem !important; } .pr-lg-75, .px-lg-75 { padding-right: 0.75rem !important; } .pb-lg-75, .py-lg-75 { padding-bottom: 0.75rem !important; } .pl-lg-75, .px-lg-75 { padding-left: 0.75rem !important; } .m-lg-n1 { margin: -1rem !important; } .mt-lg-n1, .my-lg-n1 { margin-top: -1rem !important; } .mr-lg-n1, .mx-lg-n1 { margin-right: -1rem !important; } .mb-lg-n1, .my-lg-n1 { margin-bottom: -1rem !important; } .ml-lg-n1, .mx-lg-n1 { margin-left: -1rem !important; } .m-lg-n2 { margin: -1.5rem !important; } .mt-lg-n2, .my-lg-n2 { margin-top: -1.5rem !important; } .mr-lg-n2, .mx-lg-n2 { margin-right: -1.5rem !important; } .mb-lg-n2, .my-lg-n2 { margin-bottom: -1.5rem !important; } .ml-lg-n2, .mx-lg-n2 { margin-left: -1.5rem !important; } .m-lg-n3 { margin: -3rem !important; } .mt-lg-n3, .my-lg-n3 { margin-top: -3rem !important; } .mr-lg-n3, .mx-lg-n3 { margin-right: -3rem !important; } .mb-lg-n3, .my-lg-n3 { margin-bottom: -3rem !important; } .ml-lg-n3, .mx-lg-n3 { margin-left: -3rem !important; } .m-lg-n4 { margin: -3.5rem !important; } .mt-lg-n4, .my-lg-n4 { margin-top: -3.5rem !important; } .mr-lg-n4, .mx-lg-n4 { margin-right: -3.5rem !important; } .mb-lg-n4, .my-lg-n4 { margin-bottom: -3.5rem !important; } .ml-lg-n4, .mx-lg-n4 { margin-left: -3.5rem !important; } .m-lg-n5 { margin: -4rem !important; } .mt-lg-n5, .my-lg-n5 { margin-top: -4rem !important; } .mr-lg-n5, .mx-lg-n5 { margin-right: -4rem !important; } .mb-lg-n5, .my-lg-n5 { margin-bottom: -4rem !important; } .ml-lg-n5, .mx-lg-n5 { margin-left: -4rem !important; } .m-lg-n25 { margin: -0.25rem !important; } .mt-lg-n25, .my-lg-n25 { margin-top: -0.25rem !important; } .mr-lg-n25, .mx-lg-n25 { margin-right: -0.25rem !important; } .mb-lg-n25, .my-lg-n25 { margin-bottom: -0.25rem !important; } .ml-lg-n25, .mx-lg-n25 { margin-left: -0.25rem !important; } .m-lg-n50 { margin: -0.5rem !important; } .mt-lg-n50, .my-lg-n50 { margin-top: -0.5rem !important; } .mr-lg-n50, .mx-lg-n50 { margin-right: -0.5rem !important; } .mb-lg-n50, .my-lg-n50 { margin-bottom: -0.5rem !important; } .ml-lg-n50, .mx-lg-n50 { margin-left: -0.5rem !important; } .m-lg-n75 { margin: -0.75rem !important; } .mt-lg-n75, .my-lg-n75 { margin-top: -0.75rem !important; } .mr-lg-n75, .mx-lg-n75 { margin-right: -0.75rem !important; } .mb-lg-n75, .my-lg-n75 { margin-bottom: -0.75rem !important; } .ml-lg-n75, .mx-lg-n75 { margin-left: -0.75rem !important; } .m-lg-auto { margin: auto !important; } .mt-lg-auto, .my-lg-auto { margin-top: auto !important; } .mr-lg-auto, .mx-lg-auto { margin-right: auto !important; } .mb-lg-auto, .my-lg-auto { margin-bottom: auto !important; } .ml-lg-auto, .mx-lg-auto { margin-left: auto !important; } } @media (min-width: 1200px) { .m-xl-0 { margin: 0 !important; } .mt-xl-0, .my-xl-0 { margin-top: 0 !important; } .mr-xl-0, .mx-xl-0 { margin-right: 0 !important; } .mb-xl-0, .my-xl-0 { margin-bottom: 0 !important; } .ml-xl-0, .mx-xl-0 { margin-left: 0 !important; } .m-xl-1 { margin: 1rem !important; } .mt-xl-1, .my-xl-1 { margin-top: 1rem !important; } .mr-xl-1, .mx-xl-1 { margin-right: 1rem !important; } .mb-xl-1, .my-xl-1 { margin-bottom: 1rem !important; } .ml-xl-1, .mx-xl-1 { margin-left: 1rem !important; } .m-xl-2 { margin: 1.5rem !important; } .mt-xl-2, .my-xl-2 { margin-top: 1.5rem !important; } .mr-xl-2, .mx-xl-2 { margin-right: 1.5rem !important; } .mb-xl-2, .my-xl-2 { margin-bottom: 1.5rem !important; } .ml-xl-2, .mx-xl-2 { margin-left: 1.5rem !important; } .m-xl-3 { margin: 3rem !important; } .mt-xl-3, .my-xl-3 { margin-top: 3rem !important; } .mr-xl-3, .mx-xl-3 { margin-right: 3rem !important; } .mb-xl-3, .my-xl-3 { margin-bottom: 3rem !important; } .ml-xl-3, .mx-xl-3 { margin-left: 3rem !important; } .m-xl-4 { margin: 3.5rem !important; } .mt-xl-4, .my-xl-4 { margin-top: 3.5rem !important; } .mr-xl-4, .mx-xl-4 { margin-right: 3.5rem !important; } .mb-xl-4, .my-xl-4 { margin-bottom: 3.5rem !important; } .ml-xl-4, .mx-xl-4 { margin-left: 3.5rem !important; } .m-xl-5 { margin: 4rem !important; } .mt-xl-5, .my-xl-5 { margin-top: 4rem !important; } .mr-xl-5, .mx-xl-5 { margin-right: 4rem !important; } .mb-xl-5, .my-xl-5 { margin-bottom: 4rem !important; } .ml-xl-5, .mx-xl-5 { margin-left: 4rem !important; } .m-xl-25 { margin: 0.25rem !important; } .mt-xl-25, .my-xl-25 { margin-top: 0.25rem !important; } .mr-xl-25, .mx-xl-25 { margin-right: 0.25rem !important; } .mb-xl-25, .my-xl-25 { margin-bottom: 0.25rem !important; } .ml-xl-25, .mx-xl-25 { margin-left: 0.25rem !important; } .m-xl-50 { margin: 0.5rem !important; } .mt-xl-50, .my-xl-50 { margin-top: 0.5rem !important; } .mr-xl-50, .mx-xl-50 { margin-right: 0.5rem !important; } .mb-xl-50, .my-xl-50 { margin-bottom: 0.5rem !important; } .ml-xl-50, .mx-xl-50 { margin-left: 0.5rem !important; } .m-xl-75 { margin: 0.75rem !important; } .mt-xl-75, .my-xl-75 { margin-top: 0.75rem !important; } .mr-xl-75, .mx-xl-75 { margin-right: 0.75rem !important; } .mb-xl-75, .my-xl-75 { margin-bottom: 0.75rem !important; } .ml-xl-75, .mx-xl-75 { margin-left: 0.75rem !important; } .p-xl-0 { padding: 0 !important; } .pt-xl-0, .py-xl-0 { padding-top: 0 !important; } .pr-xl-0, .px-xl-0 { padding-right: 0 !important; } .pb-xl-0, .py-xl-0 { padding-bottom: 0 !important; } .pl-xl-0, .px-xl-0 { padding-left: 0 !important; } .p-xl-1 { padding: 1rem !important; } .pt-xl-1, .py-xl-1 { padding-top: 1rem !important; } .pr-xl-1, .px-xl-1 { padding-right: 1rem !important; } .pb-xl-1, .py-xl-1 { padding-bottom: 1rem !important; } .pl-xl-1, .px-xl-1 { padding-left: 1rem !important; } .p-xl-2 { padding: 1.5rem !important; } .pt-xl-2, .py-xl-2 { padding-top: 1.5rem !important; } .pr-xl-2, .px-xl-2 { padding-right: 1.5rem !important; } .pb-xl-2, .py-xl-2 { padding-bottom: 1.5rem !important; } .pl-xl-2, .px-xl-2 { padding-left: 1.5rem !important; } .p-xl-3 { padding: 3rem !important; } .pt-xl-3, .py-xl-3 { padding-top: 3rem !important; } .pr-xl-3, .px-xl-3 { padding-right: 3rem !important; } .pb-xl-3, .py-xl-3 { padding-bottom: 3rem !important; } .pl-xl-3, .px-xl-3 { padding-left: 3rem !important; } .p-xl-4 { padding: 3.5rem !important; } .pt-xl-4, .py-xl-4 { padding-top: 3.5rem !important; } .pr-xl-4, .px-xl-4 { padding-right: 3.5rem !important; } .pb-xl-4, .py-xl-4 { padding-bottom: 3.5rem !important; } .pl-xl-4, .px-xl-4 { padding-left: 3.5rem !important; } .p-xl-5 { padding: 4rem !important; } .pt-xl-5, .py-xl-5 { padding-top: 4rem !important; } .pr-xl-5, .px-xl-5 { padding-right: 4rem !important; } .pb-xl-5, .py-xl-5 { padding-bottom: 4rem !important; } .pl-xl-5, .px-xl-5 { padding-left: 4rem !important; } .p-xl-25 { padding: 0.25rem !important; } .pt-xl-25, .py-xl-25 { padding-top: 0.25rem !important; } .pr-xl-25, .px-xl-25 { padding-right: 0.25rem !important; } .pb-xl-25, .py-xl-25 { padding-bottom: 0.25rem !important; } .pl-xl-25, .px-xl-25 { padding-left: 0.25rem !important; } .p-xl-50 { padding: 0.5rem !important; } .pt-xl-50, .py-xl-50 { padding-top: 0.5rem !important; } .pr-xl-50, .px-xl-50 { padding-right: 0.5rem !important; } .pb-xl-50, .py-xl-50 { padding-bottom: 0.5rem !important; } .pl-xl-50, .px-xl-50 { padding-left: 0.5rem !important; } .p-xl-75 { padding: 0.75rem !important; } .pt-xl-75, .py-xl-75 { padding-top: 0.75rem !important; } .pr-xl-75, .px-xl-75 { padding-right: 0.75rem !important; } .pb-xl-75, .py-xl-75 { padding-bottom: 0.75rem !important; } .pl-xl-75, .px-xl-75 { padding-left: 0.75rem !important; } .m-xl-n1 { margin: -1rem !important; } .mt-xl-n1, .my-xl-n1 { margin-top: -1rem !important; } .mr-xl-n1, .mx-xl-n1 { margin-right: -1rem !important; } .mb-xl-n1, .my-xl-n1 { margin-bottom: -1rem !important; } .ml-xl-n1, .mx-xl-n1 { margin-left: -1rem !important; } .m-xl-n2 { margin: -1.5rem !important; } .mt-xl-n2, .my-xl-n2 { margin-top: -1.5rem !important; } .mr-xl-n2, .mx-xl-n2 { margin-right: -1.5rem !important; } .mb-xl-n2, .my-xl-n2 { margin-bottom: -1.5rem !important; } .ml-xl-n2, .mx-xl-n2 { margin-left: -1.5rem !important; } .m-xl-n3 { margin: -3rem !important; } .mt-xl-n3, .my-xl-n3 { margin-top: -3rem !important; } .mr-xl-n3, .mx-xl-n3 { margin-right: -3rem !important; } .mb-xl-n3, .my-xl-n3 { margin-bottom: -3rem !important; } .ml-xl-n3, .mx-xl-n3 { margin-left: -3rem !important; } .m-xl-n4 { margin: -3.5rem !important; } .mt-xl-n4, .my-xl-n4 { margin-top: -3.5rem !important; } .mr-xl-n4, .mx-xl-n4 { margin-right: -3.5rem !important; } .mb-xl-n4, .my-xl-n4 { margin-bottom: -3.5rem !important; } .ml-xl-n4, .mx-xl-n4 { margin-left: -3.5rem !important; } .m-xl-n5 { margin: -4rem !important; } .mt-xl-n5, .my-xl-n5 { margin-top: -4rem !important; } .mr-xl-n5, .mx-xl-n5 { margin-right: -4rem !important; } .mb-xl-n5, .my-xl-n5 { margin-bottom: -4rem !important; } .ml-xl-n5, .mx-xl-n5 { margin-left: -4rem !important; } .m-xl-n25 { margin: -0.25rem !important; } .mt-xl-n25, .my-xl-n25 { margin-top: -0.25rem !important; } .mr-xl-n25, .mx-xl-n25 { margin-right: -0.25rem !important; } .mb-xl-n25, .my-xl-n25 { margin-bottom: -0.25rem !important; } .ml-xl-n25, .mx-xl-n25 { margin-left: -0.25rem !important; } .m-xl-n50 { margin: -0.5rem !important; } .mt-xl-n50, .my-xl-n50 { margin-top: -0.5rem !important; } .mr-xl-n50, .mx-xl-n50 { margin-right: -0.5rem !important; } .mb-xl-n50, .my-xl-n50 { margin-bottom: -0.5rem !important; } .ml-xl-n50, .mx-xl-n50 { margin-left: -0.5rem !important; } .m-xl-n75 { margin: -0.75rem !important; } .mt-xl-n75, .my-xl-n75 { margin-top: -0.75rem !important; } .mr-xl-n75, .mx-xl-n75 { margin-right: -0.75rem !important; } .mb-xl-n75, .my-xl-n75 { margin-bottom: -0.75rem !important; } .ml-xl-n75, .mx-xl-n75 { margin-left: -0.75rem !important; } .m-xl-auto { margin: auto !important; } .mt-xl-auto, .my-xl-auto { margin-top: auto !important; } .mr-xl-auto, .mx-xl-auto { margin-right: auto !important; } .mb-xl-auto, .my-xl-auto { margin-bottom: auto !important; } .ml-xl-auto, .mx-xl-auto { margin-left: auto !important; } } .text-monospace { font-family: "Montserrat", Helvetica, Arial, serif !important; } .text-justify { text-align: justify !important; } .text-wrap { white-space: normal !important; } .text-nowrap { white-space: nowrap !important; } .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .text-left { text-align: left !important; } .text-right { text-align: right !important; } .text-center { text-align: center !important; } @media (min-width: 576px) { .text-sm-left { text-align: left !important; } .text-sm-right { text-align: right !important; } .text-sm-center { text-align: center !important; } } @media (min-width: 768px) { .text-md-left { text-align: left !important; } .text-md-right { text-align: right !important; } .text-md-center { text-align: center !important; } } @media (min-width: 992px) { .text-lg-left { text-align: left !important; } .text-lg-right { text-align: right !important; } .text-lg-center { text-align: center !important; } } @media (min-width: 1200px) { .text-xl-left { text-align: left !important; } .text-xl-right { text-align: right !important; } .text-xl-center { text-align: center !important; } } .text-lowercase { text-transform: lowercase !important; } .text-uppercase { text-transform: uppercase !important; } .text-capitalize { text-transform: capitalize !important; } .font-weight-light { font-weight: 300 !important; } .font-weight-lighter { font-weight: lighter !important; } .font-weight-normal { font-weight: 400 !important; } .font-weight-bold { font-weight: 700 !important; } .font-weight-bolder { font-weight: bolder !important; } .font-italic { font-style: italic !important; } .text-white { color: #fff !important; } .text-primary { color: #7367f0 !important; } a.text-primary:hover, a.text-primary:focus { color: #3321e9 !important; } .text-secondary { color: #b8c2cc !important; } a.text-secondary:hover, a.text-secondary:focus { color: #8b9cac !important; } .text-success { color: #28c76f !important; } a.text-success:hover, a.text-success:focus { color: #1b874b !important; } .text-info { color: #00cfe8 !important; } a.text-info:hover, a.text-info:focus { color: #008b9c !important; } .text-warning { color: #ff9f43 !important; } a.text-warning:hover, a.text-warning:focus { color: #f67800 !important; } .text-danger { color: #ea5455 !important; } a.text-danger:hover, a.text-danger:focus { color: #d71a1c !important; } .text-light { color: #babfc7 !important; } a.text-light:hover, a.text-light:focus { color: #9098a5 !important; } .text-dark { color: #1e1e1e !important; } a.text-dark:hover, a.text-dark:focus { color: black !important; } .text-body { color: #626262 !important; } .text-muted { color: #b8c2cc !important; } .text-black-50 { color: rgba(34, 41, 47, 0.5) !important; } .text-white-50 { color: rgba(255, 255, 255, 0.5) !important; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .text-decoration-none { text-decoration: none !important; } .text-break { word-break: break-word !important; overflow-wrap: break-word !important; } .text-reset { color: inherit !important; } .visible { visibility: visible !important; } .invisible { visibility: hidden !important; } @media print { *, *::before, *::after { text-shadow: none !important; box-shadow: none !important; } a:not(.btn) { text-decoration: underline; } abbr[title]::after { content: " (" attr(title) ")"; } pre { white-space: pre-wrap !important; } pre, blockquote { border: 1px solid #adb5bd; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } @page { size: a3; } body { min-width: 992px !important; } .container { min-width: 992px !important; } .navbar { display: none; } .badge { border: 1px solid #22292f; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #dae1e7 !important; } .table-dark { color: inherit; } .table-dark th, .table-dark td, .table-dark thead th, .table-dark tbody + tbody { border-color: #f8f8f8; } .table .thead-dark th { color: inherit; border-color: #f8f8f8; } } ================================================ FILE: public/backend/css/colors.css ================================================ .white { color: #FFFFFF !important; } .bg-white { background-color: #FFFFFF !important; } .bg-white .card-header, .bg-white .card-footer { background-color: transparent; } .alert-white { background: rgba(255, 255, 255, 0.2) !important; color: #FFFFFF !important; } .alert-white .alert-heading { box-shadow: rgba(255, 255, 255, 0.4) 0px 6px 15px -7px; } .alert-white .alert-link { color: #f2f2f2 !important; } .bg-rgba-white { background: rgba(255, 255, 255, 0.15) !important; } .border-white { border: 1px solid #FFFFFF !important; } .border-top-white { border-top: 1px solid #FFFFFF; } .border-bottom-white { border-bottom: 1px solid #FFFFFF; } .border-left-white { border-left: 1px solid #FFFFFF; } .border-right-white { border-right: 1px solid #FFFFFF; } .bg-white.badge-glow, .border-white.badge-glow, .badge-white.badge-glow { box-shadow: 0px 0px 10px #FFFFFF; } .badge.badge-white { background-color: #FFFFFF; } .badge.badge-light-white { color: #FFFFFF !important; font-weight: 500; } .overlay-white { background: #FFFFFF; /* The Fallback */ background: rgba(255, 255, 255, 0.6); } .btn-white { border-color: !important; background-color: #FFFFFF !important; color: #fff; } .btn-white:hover { border-color: !important; color: #fff !important; box-shadow: 0 8px 25px -8px white; } .btn-white:focus, .btn-white:active { color: #fff !important; } .btn-flat-white { background-color: transparent; color: #FFFFFF; } .btn-flat-white:hover { color: #FFFFFF; background-color: rgba(255, 255, 255, 0.1); } .btn-flat-white:active, .btn-flat-white:focus { background-color: #FFFFFF; color: #fff !important; } .btn-relief-white { background-color: #FFFFFF; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-white:hover { color: #fff; } .btn-relief-white:active, .btn-relief-white:focus { outline: none; transform: translateY(3px); } .btn-outline-white { border: 1px solid #FFFFFF; background-color: transparent; color: #FFFFFF; } .btn-outline-white:hover { background-color: rgba(255, 255, 255, 0.08); color: #FFFFFF; } .btn-outline-white:active { color: #fff !important; } .btn-white ~ .dropdown-menu .dropdown-item.active, .btn-outline-white ~ .dropdown-menu .dropdown-item.active, .btn-flat-white ~ .dropdown-menu .dropdown-item.active { background-color: #FFFFFF; color: #fff; } .btn-white ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-white ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-white ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-white ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-white ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-white ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #FFFFFF; } .dropdown.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:hover i { color: #FFFFFF; } .dropdown.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-white ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-white ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-white ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-white { background-color: #FFFFFF; } .pagination-white .page-item.active .page-link { background: #FFFFFF; color: #fff; } .pagination-white .page-item.active .page-link:hover { color: #fff; } .pagination-white .page-item .page-link:hover { color: #FFFFFF; } .pagination-white .page-item.prev-item .page-link:hover, .pagination-white .page-item.next-item .page-link:hover { background: #FFFFFF; color: #fff; } .nav-pill-white .nav-item .nav-link.active { color: #fff; background-color: #FFFFFF !important; } .progress-bar-white { background-color: rgba(255, 255, 255, 0.1); } .progress-bar-white .progress-bar { background-color: #FFFFFF; } .chip-white { background-color: #FFFFFF !important; } .chip-white .chip-body { color: #fff !important; } .divider.divider-white .divider-text:before, .divider.divider-white .divider-text:after { border-color: #FFFFFF !important; } input[type="checkbox"].bg-white + .custom-control-label:before, input[type="radio"].bg-white + .custom-control-label:before { background-color: #FFFFFF !important; } input:focus ~ .bg-white { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFFFFF !important; } .vs-checkbox-white input:checked ~ .vs-checkbox { border-color: #FFFFFF !important; } .vs-checkbox-white input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #FFFFFF !important; } .vs-checkbox-white input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #FFFFFF !important; } .custom-switch-white .custom-control-input:checked ~ .custom-control-label::before { background-color: #FFFFFF !important; color: #fff; transition: all .2s ease-out; } .vs-radio-white input:checked ~ .vs-radio .vs-radio--circle { background: white !important; box-shadow: 0 3px 12px 0 rgba(255, 255, 255, 0.4) !important; } .black { color: #000000 !important; } .bg-black { background-color: #000000 !important; } .bg-black .card-header, .bg-black .card-footer { background-color: transparent; } .alert-black { background: rgba(0, 0, 0, 0.2) !important; color: #000000 !important; } .alert-black .alert-heading { box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 15px -7px; } .alert-black .alert-link { color: black !important; } .bg-rgba-black { background: rgba(0, 0, 0, 0.15) !important; } .border-black { border: 1px solid #000000 !important; } .border-top-black { border-top: 1px solid #000000; } .border-bottom-black { border-bottom: 1px solid #000000; } .border-left-black { border-left: 1px solid #000000; } .border-right-black { border-right: 1px solid #000000; } .bg-black.badge-glow, .border-black.badge-glow, .badge-black.badge-glow { box-shadow: 0px 0px 10px #000000; } .badge.badge-black { background-color: #000000; } .badge.badge-light-black { color: #000000 !important; font-weight: 500; } .overlay-black { background: #000000; /* The Fallback */ background: rgba(0, 0, 0, 0.6); } .btn-black { border-color: !important; background-color: #000000 !important; color: #fff; } .btn-black:hover { border-color: !important; color: #fff !important; box-shadow: 0 8px 25px -8px black; } .btn-black:focus, .btn-black:active { color: #fff !important; } .btn-flat-black { background-color: transparent; color: #000000; } .btn-flat-black:hover { color: #000000; background-color: rgba(0, 0, 0, 0.1); } .btn-flat-black:active, .btn-flat-black:focus { background-color: #000000; color: #fff !important; } .btn-relief-black { background-color: #000000; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-black:hover { color: #fff; } .btn-relief-black:active, .btn-relief-black:focus { outline: none; transform: translateY(3px); } .btn-outline-black { border: 1px solid #000000; background-color: transparent; color: #000000; } .btn-outline-black:hover { background-color: rgba(0, 0, 0, 0.08); color: #000000; } .btn-outline-black:active { color: #fff !important; } .btn-black ~ .dropdown-menu .dropdown-item.active, .btn-outline-black ~ .dropdown-menu .dropdown-item.active, .btn-flat-black ~ .dropdown-menu .dropdown-item.active { background-color: #000000; color: #fff; } .btn-black ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-black ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-black ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-black ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-black ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-black ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #000000; } .dropdown.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:hover i { color: #000000; } .dropdown.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-black ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-black ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-black ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-black { background-color: #000000; } .pagination-black .page-item.active .page-link { background: #000000; color: #fff; } .pagination-black .page-item.active .page-link:hover { color: #fff; } .pagination-black .page-item .page-link:hover { color: #000000; } .pagination-black .page-item.prev-item .page-link:hover, .pagination-black .page-item.next-item .page-link:hover { background: #000000; color: #fff; } .nav-pill-black .nav-item .nav-link.active { color: #fff; background-color: #000000 !important; } .progress-bar-black { background-color: rgba(0, 0, 0, 0.1); } .progress-bar-black .progress-bar { background-color: #000000; } .chip-black { background-color: #000000 !important; } .chip-black .chip-body { color: #fff !important; } .divider.divider-black .divider-text:before, .divider.divider-black .divider-text:after { border-color: #000000 !important; } input[type="checkbox"].bg-black + .custom-control-label:before, input[type="radio"].bg-black + .custom-control-label:before { background-color: #000000 !important; } input:focus ~ .bg-black { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #000000 !important; } .vs-checkbox-black input:checked ~ .vs-checkbox { border-color: #000000 !important; } .vs-checkbox-black input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #000000 !important; } .vs-checkbox-black input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #000000 !important; } .custom-switch-black .custom-control-input:checked ~ .custom-control-label::before { background-color: #000000 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-black input:checked ~ .vs-radio .vs-radio--circle { background: black !important; box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.4) !important; } .dark { color: #1e1e1e !important; } .bg-dark { background-color: #1e1e1e !important; } .bg-dark .card-header, .bg-dark .card-footer { background-color: transparent; } .alert-dark { background: rgba(30, 30, 30, 0.2) !important; color: #1e1e1e !important; } .alert-dark .alert-heading { box-shadow: rgba(30, 30, 30, 0.4) 0px 6px 15px -7px; } .alert-dark .alert-link { color: #111111 !important; } .bg-rgba-dark { background: rgba(30, 30, 30, 0.15) !important; } .border-dark { border: 1px solid #1e1e1e !important; } .border-top-dark { border-top: 1px solid #1e1e1e; } .border-bottom-dark { border-bottom: 1px solid #1e1e1e; } .border-left-dark { border-left: 1px solid #1e1e1e; } .border-right-dark { border-right: 1px solid #1e1e1e; } .bg-dark.badge-glow, .border-dark.badge-glow, .badge-dark.badge-glow { box-shadow: 0px 0px 10px #1e1e1e; } .badge.badge-dark { background-color: #1e1e1e; } .badge.badge-light-dark { color: #1e1e1e !important; font-weight: 500; } .overlay-dark { background: #1e1e1e; /* The Fallback */ background: rgba(30, 30, 30, 0.6); } .btn-dark { border-color: !important; background-color: #1e1e1e !important; color: #fff; } .btn-dark:hover { border-color: !important; color: #fff !important; box-shadow: 0 8px 25px -8px #1e1e1e; } .btn-dark:focus, .btn-dark:active { color: #fff !important; } .btn-flat-dark { background-color: transparent; color: #1e1e1e; } .btn-flat-dark:hover { color: #1e1e1e; background-color: rgba(30, 30, 30, 0.1); } .btn-flat-dark:active, .btn-flat-dark:focus { background-color: #1e1e1e; color: #fff !important; } .btn-relief-dark { background-color: #1e1e1e; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-dark:hover { color: #fff; } .btn-relief-dark:active, .btn-relief-dark:focus { outline: none; transform: translateY(3px); } .btn-outline-dark { border: 1px solid #1e1e1e; background-color: transparent; color: #1e1e1e; } .btn-outline-dark:hover { background-color: rgba(30, 30, 30, 0.08); color: #1e1e1e; } .btn-outline-dark:active { color: #fff !important; } .btn-dark ~ .dropdown-menu .dropdown-item.active, .btn-outline-dark ~ .dropdown-menu .dropdown-item.active, .btn-flat-dark ~ .dropdown-menu .dropdown-item.active { background-color: #1e1e1e; color: #fff; } .btn-dark ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-dark ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-dark ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-dark ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-dark ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-dark ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #1e1e1e; } .dropdown.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:hover i { color: #1e1e1e; } .dropdown.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-dark ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-dark ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-dark ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-dark { background-color: #1e1e1e; } .pagination-dark .page-item.active .page-link { background: #1e1e1e; color: #fff; } .pagination-dark .page-item.active .page-link:hover { color: #fff; } .pagination-dark .page-item .page-link:hover { color: #1e1e1e; } .pagination-dark .page-item.prev-item .page-link:hover, .pagination-dark .page-item.next-item .page-link:hover { background: #1e1e1e; color: #fff; } .nav-pill-dark .nav-item .nav-link.active { color: #fff; background-color: #1e1e1e !important; } .progress-bar-dark { background-color: rgba(30, 30, 30, 0.1); } .progress-bar-dark .progress-bar { background-color: #1e1e1e; } .chip-dark { background-color: #1e1e1e !important; } .chip-dark .chip-body { color: #fff !important; } .divider.divider-dark .divider-text:before, .divider.divider-dark .divider-text:after { border-color: #1e1e1e !important; } input[type="checkbox"].bg-dark + .custom-control-label:before, input[type="radio"].bg-dark + .custom-control-label:before { background-color: #1e1e1e !important; } input:focus ~ .bg-dark { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #1e1e1e !important; } .vs-checkbox-dark input:checked ~ .vs-checkbox { border-color: #1e1e1e !important; } .vs-checkbox-dark input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #1e1e1e !important; } .vs-checkbox-dark input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #1e1e1e !important; } .custom-switch-dark .custom-control-input:checked ~ .custom-control-label::before { background-color: #1e1e1e !important; color: #fff; transition: all .2s ease-out; } .vs-radio-dark input:checked ~ .vs-radio .vs-radio--circle { background: #1e1e1e !important; box-shadow: 0 3px 12px 0 rgba(30, 30, 30, 0.4) !important; } .dark.gradient-bg { color: #640064 !important; } .bg-dark.bg-gradient-bg { background-color: #640064 !important; } .btn-dark.btn-gradient-bg { border-color: !important; background-color: #640064 !important; } .btn-dark.btn-gradient-bg:hover { border-color: !important; background-color: !important; } .btn-dark.btn-gradient-bg:focus, .btn-dark.btn-gradient-bg:active { border-color: !important; background-color: !important; } .btn-outline-dark.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-dark.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-dark { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-dark.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-dark.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-dark.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-dark.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-dark.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-dark.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } .light { color: #babfc7 !important; } .bg-light { background-color: #babfc7 !important; } .bg-light .card-header, .bg-light .card-footer { background-color: transparent; } .alert-light { background: rgba(186, 191, 199, 0.2) !important; color: #babfc7 !important; } .alert-light .alert-heading { box-shadow: rgba(186, 191, 199, 0.4) 0px 6px 15px -7px; } .alert-light .alert-link { color: #acb2bc !important; } .bg-rgba-light { background: rgba(186, 191, 199, 0.15) !important; } .border-light { border: 1px solid #babfc7 !important; } .border-top-light { border-top: 1px solid #babfc7; } .border-bottom-light { border-bottom: 1px solid #babfc7; } .border-left-light { border-left: 1px solid #babfc7; } .border-right-light { border-right: 1px solid #babfc7; } .bg-light.badge-glow, .border-light.badge-glow, .badge-light.badge-glow { box-shadow: 0px 0px 10px #babfc7; } .badge.badge-light { background-color: #babfc7; } .badge.badge-light-light { color: #babfc7 !important; font-weight: 500; } .overlay-light { background: #babfc7; /* The Fallback */ background: rgba(186, 191, 199, 0.6); } .btn-light { border-color: !important; background-color: #babfc7 !important; color: #fff; } .btn-light:hover { border-color: !important; color: #fff !important; box-shadow: 0 8px 25px -8px #babfc7; } .btn-light:focus, .btn-light:active { color: #fff !important; } .btn-flat-light { background-color: transparent; color: #babfc7; } .btn-flat-light:hover { color: #babfc7; background-color: rgba(186, 191, 199, 0.1); } .btn-flat-light:active, .btn-flat-light:focus { background-color: #babfc7; color: #fff !important; } .btn-relief-light { background-color: #babfc7; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-light:hover { color: #fff; } .btn-relief-light:active, .btn-relief-light:focus { outline: none; transform: translateY(3px); } .btn-outline-light { border: 1px solid #babfc7; background-color: transparent; color: #babfc7; } .btn-outline-light:hover { background-color: rgba(186, 191, 199, 0.08); color: #babfc7; } .btn-outline-light:active { color: #fff !important; } .btn-light ~ .dropdown-menu .dropdown-item.active, .btn-outline-light ~ .dropdown-menu .dropdown-item.active, .btn-flat-light ~ .dropdown-menu .dropdown-item.active { background-color: #babfc7; color: #fff; } .btn-light ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-light ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-light ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-light ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-light ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-light ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #babfc7; } .dropdown.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:hover i { color: #babfc7; } .dropdown.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-light ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-light ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-light ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-light { background-color: #babfc7; } .pagination-light .page-item.active .page-link { background: #babfc7; color: #fff; } .pagination-light .page-item.active .page-link:hover { color: #fff; } .pagination-light .page-item .page-link:hover { color: #babfc7; } .pagination-light .page-item.prev-item .page-link:hover, .pagination-light .page-item.next-item .page-link:hover { background: #babfc7; color: #fff; } .nav-pill-light .nav-item .nav-link.active { color: #fff; background-color: #babfc7 !important; } .progress-bar-light { background-color: rgba(186, 191, 199, 0.1); } .progress-bar-light .progress-bar { background-color: #babfc7; } .chip-light { background-color: #babfc7 !important; } .chip-light .chip-body { color: #fff !important; } .divider.divider-light .divider-text:before, .divider.divider-light .divider-text:after { border-color: #babfc7 !important; } input[type="checkbox"].bg-light + .custom-control-label:before, input[type="radio"].bg-light + .custom-control-label:before { background-color: #babfc7 !important; } input:focus ~ .bg-light { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #babfc7 !important; } .vs-checkbox-light input:checked ~ .vs-checkbox { border-color: #babfc7 !important; } .vs-checkbox-light input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #babfc7 !important; } .vs-checkbox-light input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #babfc7 !important; } .custom-switch-light .custom-control-input:checked ~ .custom-control-label::before { background-color: #babfc7 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-light input:checked ~ .vs-radio .vs-radio--circle { background: #babfc7 !important; box-shadow: 0 3px 12px 0 rgba(186, 191, 199, 0.4) !important; } .light.gradient-bg { color: #640064 !important; } .bg-light.bg-gradient-bg { background-color: #640064 !important; } .btn-light.btn-gradient-bg { border-color: !important; background-color: #640064 !important; } .btn-light.btn-gradient-bg:hover { border-color: !important; background-color: !important; } .btn-light.btn-gradient-bg:focus, .btn-light.btn-gradient-bg:active { border-color: !important; background-color: !important; } .btn-outline-light.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-light.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-light { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-light.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-light.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-light.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-light.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-light.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-light.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } .primary.gradient-light { color: #ce9ffc !important; } .bg-primary.bg-gradient-light { background-color: #ce9ffc !important; } .btn-primary.btn-gradient-light { border-color: #4839eb !important; background-color: #ce9ffc !important; } .btn-primary.btn-gradient-light:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-gradient-light:focus, .btn-primary.btn-gradient-light:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-gradient-light { border-color: #ce9ffc !important; color: #ce9ffc !important; } .btn-outline-primary.btn-outline-gradient-light:hover { background-color: #ce9ffc !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ce9ffc !important; } .border-primary.border-gradient-light { border: 1px solid #ce9ffc !important; } .border-top-primary.border-top-gradient-light { border-top: 1px solid #ce9ffc !important; } .border-bottom-primary.border-bottom-gradient-light { border-bottom: 1px solid #ce9ffc !important; } .border-left-primary.border-left-gradient-light { border-left: 1px solid #ce9ffc !important; } .border-right-primary.border-right-gradient-light { border-right: 1px solid #ce9ffc !important; } .overlay-primary.overlay-gradient-light { background: #ce9ffc; /* The Fallback */ background: rgba(206, 159, 252, 0.6); } .primary.light-badge { color: #dedbfb !important; } .bg-primary.bg-light-badge { background-color: #dedbfb !important; } .btn-primary.btn-light-badge { border-color: #4839eb !important; background-color: #dedbfb !important; } .btn-primary.btn-light-badge:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-light-badge:focus, .btn-primary.btn-light-badge:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-light-badge { border-color: #dedbfb !important; color: #dedbfb !important; } .btn-outline-primary.btn-outline-light-badge:hover { background-color: #dedbfb !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #dedbfb !important; } .border-primary.border-light-badge { border: 1px solid #dedbfb !important; } .border-top-primary.border-top-light-badge { border-top: 1px solid #dedbfb !important; } .border-bottom-primary.border-bottom-light-badge { border-bottom: 1px solid #dedbfb !important; } .border-left-primary.border-left-light-badge { border-left: 1px solid #dedbfb !important; } .border-right-primary.border-right-light-badge { border-right: 1px solid #dedbfb !important; } .overlay-primary.overlay-light-badge { background: #dedbfb; /* The Fallback */ background: rgba(222, 219, 251, 0.6); } .primary.lighten-5 { color: #dedbfb !important; } .bg-primary.bg-lighten-5 { background-color: #dedbfb !important; } .btn-primary.btn-lighten-5 { border-color: #4839eb !important; background-color: #dedbfb !important; } .btn-primary.btn-lighten-5:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-lighten-5:focus, .btn-primary.btn-lighten-5:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-lighten-5 { border-color: #dedbfb !important; color: #dedbfb !important; } .btn-outline-primary.btn-outline-lighten-5:hover { background-color: #dedbfb !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #dedbfb !important; } .border-primary.border-lighten-5 { border: 1px solid #dedbfb !important; } .border-top-primary.border-top-lighten-5 { border-top: 1px solid #dedbfb !important; } .border-bottom-primary.border-bottom-lighten-5 { border-bottom: 1px solid #dedbfb !important; } .border-left-primary.border-left-lighten-5 { border-left: 1px solid #dedbfb !important; } .border-right-primary.border-right-lighten-5 { border-right: 1px solid #dedbfb !important; } .overlay-primary.overlay-lighten-5 { background: #dedbfb; /* The Fallback */ background: rgba(222, 219, 251, 0.6); } .primary.lighten-4 { color: #c9c4f9 !important; } .bg-primary.bg-lighten-4 { background-color: #c9c4f9 !important; } .btn-primary.btn-lighten-4 { border-color: #4839eb !important; background-color: #c9c4f9 !important; } .btn-primary.btn-lighten-4:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-lighten-4:focus, .btn-primary.btn-lighten-4:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-lighten-4 { border-color: #c9c4f9 !important; color: #c9c4f9 !important; } .btn-outline-primary.btn-outline-lighten-4:hover { background-color: #c9c4f9 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #c9c4f9 !important; } .border-primary.border-lighten-4 { border: 1px solid #c9c4f9 !important; } .border-top-primary.border-top-lighten-4 { border-top: 1px solid #c9c4f9 !important; } .border-bottom-primary.border-bottom-lighten-4 { border-bottom: 1px solid #c9c4f9 !important; } .border-left-primary.border-left-lighten-4 { border-left: 1px solid #c9c4f9 !important; } .border-right-primary.border-right-lighten-4 { border-right: 1px solid #c9c4f9 !important; } .overlay-primary.overlay-lighten-4 { background: #c9c4f9; /* The Fallback */ background: rgba(201, 196, 249, 0.6); } .primary.lighten-3 { color: #b3adf7 !important; } .bg-primary.bg-lighten-3 { background-color: #b3adf7 !important; } .btn-primary.btn-lighten-3 { border-color: #4839eb !important; background-color: #b3adf7 !important; } .btn-primary.btn-lighten-3:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-lighten-3:focus, .btn-primary.btn-lighten-3:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-lighten-3 { border-color: #b3adf7 !important; color: #b3adf7 !important; } .btn-outline-primary.btn-outline-lighten-3:hover { background-color: #b3adf7 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #b3adf7 !important; } .border-primary.border-lighten-3 { border: 1px solid #b3adf7 !important; } .border-top-primary.border-top-lighten-3 { border-top: 1px solid #b3adf7 !important; } .border-bottom-primary.border-bottom-lighten-3 { border-bottom: 1px solid #b3adf7 !important; } .border-left-primary.border-left-lighten-3 { border-left: 1px solid #b3adf7 !important; } .border-right-primary.border-right-lighten-3 { border-right: 1px solid #b3adf7 !important; } .overlay-primary.overlay-lighten-3 { background: #b3adf7; /* The Fallback */ background: rgba(179, 173, 247, 0.6); } .primary.lighten-2 { color: #9e95f5 !important; } .bg-primary.bg-lighten-2 { background-color: #9e95f5 !important; } .btn-primary.btn-lighten-2 { border-color: #4839eb !important; background-color: #9e95f5 !important; } .btn-primary.btn-lighten-2:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-lighten-2:focus, .btn-primary.btn-lighten-2:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-lighten-2 { border-color: #9e95f5 !important; color: #9e95f5 !important; } .btn-outline-primary.btn-outline-lighten-2:hover { background-color: #9e95f5 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #9e95f5 !important; } .border-primary.border-lighten-2 { border: 1px solid #9e95f5 !important; } .border-top-primary.border-top-lighten-2 { border-top: 1px solid #9e95f5 !important; } .border-bottom-primary.border-bottom-lighten-2 { border-bottom: 1px solid #9e95f5 !important; } .border-left-primary.border-left-lighten-2 { border-left: 1px solid #9e95f5 !important; } .border-right-primary.border-right-lighten-2 { border-right: 1px solid #9e95f5 !important; } .overlay-primary.overlay-lighten-2 { background: #9e95f5; /* The Fallback */ background: rgba(158, 149, 245, 0.6); } .primary.lighten-1 { color: #887ef2 !important; } .bg-primary.bg-lighten-1 { background-color: #887ef2 !important; } .btn-primary.btn-lighten-1 { border-color: #4839eb !important; background-color: #887ef2 !important; } .btn-primary.btn-lighten-1:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-lighten-1:focus, .btn-primary.btn-lighten-1:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-lighten-1 { border-color: #887ef2 !important; color: #887ef2 !important; } .btn-outline-primary.btn-outline-lighten-1:hover { background-color: #887ef2 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #887ef2 !important; } .border-primary.border-lighten-1 { border: 1px solid #887ef2 !important; } .border-top-primary.border-top-lighten-1 { border-top: 1px solid #887ef2 !important; } .border-bottom-primary.border-bottom-lighten-1 { border-bottom: 1px solid #887ef2 !important; } .border-left-primary.border-left-lighten-1 { border-left: 1px solid #887ef2 !important; } .border-right-primary.border-right-lighten-1 { border-right: 1px solid #887ef2 !important; } .overlay-primary.overlay-lighten-1 { background: #887ef2; /* The Fallback */ background: rgba(136, 126, 242, 0.6); } .primary { color: #7367f0 !important; } .bg-primary { background-color: #7367f0 !important; } .bg-primary .card-header, .bg-primary .card-footer { background-color: transparent; } .alert-primary { background: rgba(115, 103, 240, 0.2) !important; color: #7367f0 !important; } .alert-primary .alert-heading { box-shadow: rgba(115, 103, 240, 0.4) 0px 6px 15px -7px; } .alert-primary .alert-link { color: #5e50ee !important; } .bg-rgba-primary { background: rgba(115, 103, 240, 0.15) !important; } .border-primary { border: 1px solid #7367f0 !important; } .border-top-primary { border-top: 1px solid #7367f0; } .border-bottom-primary { border-bottom: 1px solid #7367f0; } .border-left-primary { border-left: 1px solid #7367f0; } .border-right-primary { border-right: 1px solid #7367f0; } .bg-primary.badge-glow, .border-primary.badge-glow, .badge-primary.badge-glow { box-shadow: 0px 0px 10px #7367f0; } .badge.badge-primary { background-color: #7367f0; } .badge.badge-light-primary { background-color: #dedbfb; color: #7367f0 !important; font-weight: 500; } .overlay-primary { background: #7367f0; /* The Fallback */ background: rgba(115, 103, 240, 0.6); } .btn-primary { border-color: #4839eb !important; background-color: #7367f0 !important; color: #fff; } .btn-primary:hover { border-color: #5e50ee !important; color: #fff !important; box-shadow: 0 8px 25px -8px #7367f0; } .btn-primary:focus, .btn-primary:active { color: #fff !important; } .btn-flat-primary { background-color: transparent; color: #7367f0; } .btn-flat-primary:hover { color: #7367f0; background-color: rgba(115, 103, 240, 0.1); } .btn-flat-primary:active, .btn-flat-primary:focus { background-color: #7367f0; color: #fff !important; } .btn-relief-primary { background-color: #7367f0; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-primary:hover { color: #fff; } .btn-relief-primary:active, .btn-relief-primary:focus { outline: none; transform: translateY(3px); } .btn-outline-primary { border: 1px solid #7367f0; background-color: transparent; color: #7367f0; } .btn-outline-primary:hover { background-color: rgba(115, 103, 240, 0.08); color: #7367f0; } .btn-outline-primary:active { color: #fff !important; } .btn-primary ~ .dropdown-menu .dropdown-item.active, .btn-outline-primary ~ .dropdown-menu .dropdown-item.active, .btn-flat-primary ~ .dropdown-menu .dropdown-item.active { background-color: #7367f0; color: #fff; } .btn-primary ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-primary ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-primary ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-primary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-primary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-primary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #7367f0; } .dropdown.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:hover i { color: #7367f0; } .dropdown.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-primary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-primary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-primary ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-primary { background-color: #7367f0; } .pagination-primary .page-item.active .page-link { background: #7367f0; color: #fff; } .pagination-primary .page-item.active .page-link:hover { color: #fff; } .pagination-primary .page-item .page-link:hover { color: #7367f0; } .pagination-primary .page-item.prev-item .page-link:hover, .pagination-primary .page-item.next-item .page-link:hover { background: #7367f0; color: #fff; } .nav-pill-primary .nav-item .nav-link.active { color: #fff; background-color: #7367f0 !important; } .progress-bar-primary { background-color: rgba(115, 103, 240, 0.1); } .progress-bar-primary .progress-bar { background-color: #7367f0; } .chip-primary { background-color: #7367f0 !important; } .chip-primary .chip-body { color: #fff !important; } .divider.divider-primary .divider-text:before, .divider.divider-primary .divider-text:after { border-color: #7367f0 !important; } input[type="checkbox"].bg-primary + .custom-control-label:before, input[type="radio"].bg-primary + .custom-control-label:before { background-color: #7367f0 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #7367f0 !important; } .vs-checkbox-primary input:checked ~ .vs-checkbox { border-color: #7367f0 !important; } .vs-checkbox-primary input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #7367f0 !important; } .vs-checkbox-primary input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #7367f0 !important; } .custom-switch-primary .custom-control-input:checked ~ .custom-control-label::before { background-color: #7367f0 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-primary input:checked ~ .vs-radio .vs-radio--circle { background: #7367f0 !important; box-shadow: 0 3px 12px 0 rgba(115, 103, 240, 0.4) !important; } .primary.darken-1 { color: #5e50ee !important; } .bg-primary.bg-darken-1 { background-color: #5e50ee !important; } .btn-primary.btn-darken-1 { border-color: #4839eb !important; background-color: #5e50ee !important; } .btn-primary.btn-darken-1:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-darken-1:focus, .btn-primary.btn-darken-1:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-darken-1 { border-color: #5e50ee !important; color: #5e50ee !important; } .btn-outline-primary.btn-outline-darken-1:hover { background-color: #5e50ee !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #5e50ee !important; } .border-primary.border-darken-1 { border: 1px solid #5e50ee !important; } .border-top-primary.border-top-darken-1 { border-top: 1px solid #5e50ee !important; } .border-bottom-primary.border-bottom-darken-1 { border-bottom: 1px solid #5e50ee !important; } .border-left-primary.border-left-darken-1 { border-left: 1px solid #5e50ee !important; } .border-right-primary.border-right-darken-1 { border-right: 1px solid #5e50ee !important; } .overlay-primary.overlay-darken-1 { background: #5e50ee; /* The Fallback */ background: rgba(94, 80, 238, 0.6); } .primary.darken-2 { color: #4839eb !important; } .bg-primary.bg-darken-2 { background-color: #4839eb !important; } .btn-primary.btn-darken-2 { border-color: #4839eb !important; background-color: #4839eb !important; } .btn-primary.btn-darken-2:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-darken-2:focus, .btn-primary.btn-darken-2:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-darken-2 { border-color: #4839eb !important; color: #4839eb !important; } .btn-outline-primary.btn-outline-darken-2:hover { background-color: #4839eb !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #4839eb !important; } .border-primary.border-darken-2 { border: 1px solid #4839eb !important; } .border-top-primary.border-top-darken-2 { border-top: 1px solid #4839eb !important; } .border-bottom-primary.border-bottom-darken-2 { border-bottom: 1px solid #4839eb !important; } .border-left-primary.border-left-darken-2 { border-left: 1px solid #4839eb !important; } .border-right-primary.border-right-darken-2 { border-right: 1px solid #4839eb !important; } .overlay-primary.overlay-darken-2 { background: #4839eb; /* The Fallback */ background: rgba(72, 57, 235, 0.6); } .primary.darken-3 { color: #3321e9 !important; } .bg-primary.bg-darken-3 { background-color: #3321e9 !important; } .btn-primary.btn-darken-3 { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-darken-3:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-darken-3:focus, .btn-primary.btn-darken-3:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-darken-3 { border-color: #3321e9 !important; color: #3321e9 !important; } .btn-outline-primary.btn-outline-darken-3:hover { background-color: #3321e9 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #3321e9 !important; } .border-primary.border-darken-3 { border: 1px solid #3321e9 !important; } .border-top-primary.border-top-darken-3 { border-top: 1px solid #3321e9 !important; } .border-bottom-primary.border-bottom-darken-3 { border-bottom: 1px solid #3321e9 !important; } .border-left-primary.border-left-darken-3 { border-left: 1px solid #3321e9 !important; } .border-right-primary.border-right-darken-3 { border-right: 1px solid #3321e9 !important; } .overlay-primary.overlay-darken-3 { background: #3321e9; /* The Fallback */ background: rgba(51, 33, 233, 0.6); } .primary.darken-4 { color: #2716db !important; } .bg-primary.bg-darken-4 { background-color: #2716db !important; } .btn-primary.btn-darken-4 { border-color: #4839eb !important; background-color: #2716db !important; } .btn-primary.btn-darken-4:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-darken-4:focus, .btn-primary.btn-darken-4:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-darken-4 { border-color: #2716db !important; color: #2716db !important; } .btn-outline-primary.btn-outline-darken-4:hover { background-color: #2716db !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #2716db !important; } .border-primary.border-darken-4 { border: 1px solid #2716db !important; } .border-top-primary.border-top-darken-4 { border-top: 1px solid #2716db !important; } .border-bottom-primary.border-bottom-darken-4 { border-bottom: 1px solid #2716db !important; } .border-left-primary.border-left-darken-4 { border-left: 1px solid #2716db !important; } .border-right-primary.border-right-darken-4 { border-right: 1px solid #2716db !important; } .overlay-primary.overlay-darken-4 { background: #2716db; /* The Fallback */ background: rgba(39, 22, 219, 0.6); } .primary.accent-1 { color: #BDFDFF !important; } .bg-primary.bg-accent-1 { background-color: #BDFDFF !important; } .btn-primary.btn-accent-1 { border-color: #4839eb !important; background-color: #BDFDFF !important; } .btn-primary.btn-accent-1:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-accent-1:focus, .btn-primary.btn-accent-1:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-accent-1 { border-color: #BDFDFF !important; color: #BDFDFF !important; } .btn-outline-primary.btn-outline-accent-1:hover { background-color: #BDFDFF !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #BDFDFF !important; } .border-primary.border-accent-1 { border: 1px solid #BDFDFF !important; } .border-top-primary.border-top-accent-1 { border-top: 1px solid #BDFDFF !important; } .border-bottom-primary.border-bottom-accent-1 { border-bottom: 1px solid #BDFDFF !important; } .border-left-primary.border-left-accent-1 { border-left: 1px solid #BDFDFF !important; } .border-right-primary.border-right-accent-1 { border-right: 1px solid #BDFDFF !important; } .overlay-primary.overlay-accent-1 { background: #BDFDFF; /* The Fallback */ background: rgba(189, 253, 255, 0.6); } .primary.accent-2 { color: #8AFBFF !important; } .bg-primary.bg-accent-2 { background-color: #8AFBFF !important; } .btn-primary.btn-accent-2 { border-color: #4839eb !important; background-color: #8AFBFF !important; } .btn-primary.btn-accent-2:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-accent-2:focus, .btn-primary.btn-accent-2:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-accent-2 { border-color: #8AFBFF !important; color: #8AFBFF !important; } .btn-outline-primary.btn-outline-accent-2:hover { background-color: #8AFBFF !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #8AFBFF !important; } .border-primary.border-accent-2 { border: 1px solid #8AFBFF !important; } .border-top-primary.border-top-accent-2 { border-top: 1px solid #8AFBFF !important; } .border-bottom-primary.border-bottom-accent-2 { border-bottom: 1px solid #8AFBFF !important; } .border-left-primary.border-left-accent-2 { border-left: 1px solid #8AFBFF !important; } .border-right-primary.border-right-accent-2 { border-right: 1px solid #8AFBFF !important; } .overlay-primary.overlay-accent-2 { background: #8AFBFF; /* The Fallback */ background: rgba(138, 251, 255, 0.6); } .primary.accent-3 { color: #57FAFF !important; } .bg-primary.bg-accent-3 { background-color: #57FAFF !important; } .btn-primary.btn-accent-3 { border-color: #4839eb !important; background-color: #57FAFF !important; } .btn-primary.btn-accent-3:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-accent-3:focus, .btn-primary.btn-accent-3:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-accent-3 { border-color: #57FAFF !important; color: #57FAFF !important; } .btn-outline-primary.btn-outline-accent-3:hover { background-color: #57FAFF !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #57FAFF !important; } .border-primary.border-accent-3 { border: 1px solid #57FAFF !important; } .border-top-primary.border-top-accent-3 { border-top: 1px solid #57FAFF !important; } .border-bottom-primary.border-bottom-accent-3 { border-bottom: 1px solid #57FAFF !important; } .border-left-primary.border-left-accent-3 { border-left: 1px solid #57FAFF !important; } .border-right-primary.border-right-accent-3 { border-right: 1px solid #57FAFF !important; } .overlay-primary.overlay-accent-3 { background: #57FAFF; /* The Fallback */ background: rgba(87, 250, 255, 0.6); } .primary.accent-4 { color: #3DF9FF !important; } .bg-primary.bg-accent-4 { background-color: #3DF9FF !important; } .btn-primary.btn-accent-4 { border-color: #4839eb !important; background-color: #3DF9FF !important; } .btn-primary.btn-accent-4:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-accent-4:focus, .btn-primary.btn-accent-4:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-accent-4 { border-color: #3DF9FF !important; color: #3DF9FF !important; } .btn-outline-primary.btn-outline-accent-4:hover { background-color: #3DF9FF !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #3DF9FF !important; } .border-primary.border-accent-4 { border: 1px solid #3DF9FF !important; } .border-top-primary.border-top-accent-4 { border-top: 1px solid #3DF9FF !important; } .border-bottom-primary.border-bottom-accent-4 { border-bottom: 1px solid #3DF9FF !important; } .border-left-primary.border-left-accent-4 { border-left: 1px solid #3DF9FF !important; } .border-right-primary.border-right-accent-4 { border-right: 1px solid #3DF9FF !important; } .overlay-primary.overlay-accent-4 { background: #3DF9FF; /* The Fallback */ background: rgba(61, 249, 255, 0.6); } .primary.gradient-bg { color: #640064 !important; } .bg-primary.bg-gradient-bg { background-color: #640064 !important; } .btn-primary.btn-gradient-bg { border-color: #4839eb !important; background-color: #640064 !important; } .btn-primary.btn-gradient-bg:hover { border-color: #4839eb !important; background-color: #3321e9 !important; } .btn-primary.btn-gradient-bg:focus, .btn-primary.btn-gradient-bg:active { border-color: #3321e9 !important; background-color: #2716db !important; } .btn-outline-primary.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-primary.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-primary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-primary.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-primary.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-primary.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-primary.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-primary.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-primary.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } .secondary.gradient-light { color: #dcdeec !important; } .bg-secondary.bg-gradient-light { background-color: #dcdeec !important; } .btn-secondary.btn-gradient-light { border-color: #9aa9b7 !important; background-color: #dcdeec !important; } .btn-secondary.btn-gradient-light:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-gradient-light:focus, .btn-secondary.btn-gradient-light:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-gradient-light { border-color: #dcdeec !important; color: #dcdeec !important; } .btn-outline-secondary.btn-outline-gradient-light:hover { background-color: #dcdeec !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #dcdeec !important; } .border-secondary.border-gradient-light { border: 1px solid #dcdeec !important; } .border-top-secondary.border-top-gradient-light { border-top: 1px solid #dcdeec !important; } .border-bottom-secondary.border-bottom-gradient-light { border-bottom: 1px solid #dcdeec !important; } .border-left-secondary.border-left-gradient-light { border-left: 1px solid #dcdeec !important; } .border-right-secondary.border-right-gradient-light { border-right: 1px solid #dcdeec !important; } .overlay-secondary.overlay-gradient-light { background: #dcdeec; /* The Fallback */ background: rgba(220, 222, 236, 0.6); } .secondary.light-badge { color: white !important; } .bg-secondary.bg-light-badge { background-color: white !important; } .btn-secondary.btn-light-badge { border-color: #9aa9b7 !important; background-color: white !important; } .btn-secondary.btn-light-badge:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-light-badge:focus, .btn-secondary.btn-light-badge:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-light-badge { border-color: white !important; color: white !important; } .btn-outline-secondary.btn-outline-light-badge:hover { background-color: white !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem white !important; } .border-secondary.border-light-badge { border: 1px solid white !important; } .border-top-secondary.border-top-light-badge { border-top: 1px solid white !important; } .border-bottom-secondary.border-bottom-light-badge { border-bottom: 1px solid white !important; } .border-left-secondary.border-left-light-badge { border-left: 1px solid white !important; } .border-right-secondary.border-right-light-badge { border-right: 1px solid white !important; } .overlay-secondary.overlay-light-badge { background: white; /* The Fallback */ background: rgba(255, 255, 255, 0.6); } .secondary.lighten-5 { color: white !important; } .bg-secondary.bg-lighten-5 { background-color: white !important; } .btn-secondary.btn-lighten-5 { border-color: #9aa9b7 !important; background-color: white !important; } .btn-secondary.btn-lighten-5:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-lighten-5:focus, .btn-secondary.btn-lighten-5:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-lighten-5 { border-color: white !important; color: white !important; } .btn-outline-secondary.btn-outline-lighten-5:hover { background-color: white !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem white !important; } .border-secondary.border-lighten-5 { border: 1px solid white !important; } .border-top-secondary.border-top-lighten-5 { border-top: 1px solid white !important; } .border-bottom-secondary.border-bottom-lighten-5 { border-bottom: 1px solid white !important; } .border-left-secondary.border-left-lighten-5 { border-left: 1px solid white !important; } .border-right-secondary.border-right-lighten-5 { border-right: 1px solid white !important; } .overlay-secondary.overlay-lighten-5 { background: white; /* The Fallback */ background: rgba(255, 255, 255, 0.6); } .secondary.lighten-4 { color: #f3f5f7 !important; } .bg-secondary.bg-lighten-4 { background-color: #f3f5f7 !important; } .btn-secondary.btn-lighten-4 { border-color: #9aa9b7 !important; background-color: #f3f5f7 !important; } .btn-secondary.btn-lighten-4:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-lighten-4:focus, .btn-secondary.btn-lighten-4:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-lighten-4 { border-color: #f3f5f7 !important; color: #f3f5f7 !important; } .btn-outline-secondary.btn-outline-lighten-4:hover { background-color: #f3f5f7 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f3f5f7 !important; } .border-secondary.border-lighten-4 { border: 1px solid #f3f5f7 !important; } .border-top-secondary.border-top-lighten-4 { border-top: 1px solid #f3f5f7 !important; } .border-bottom-secondary.border-bottom-lighten-4 { border-bottom: 1px solid #f3f5f7 !important; } .border-left-secondary.border-left-lighten-4 { border-left: 1px solid #f3f5f7 !important; } .border-right-secondary.border-right-lighten-4 { border-right: 1px solid #f3f5f7 !important; } .overlay-secondary.overlay-lighten-4 { background: #f3f5f7; /* The Fallback */ background: rgba(243, 245, 247, 0.6); } .secondary.lighten-3 { color: #e5e8ec !important; } .bg-secondary.bg-lighten-3 { background-color: #e5e8ec !important; } .btn-secondary.btn-lighten-3 { border-color: #9aa9b7 !important; background-color: #e5e8ec !important; } .btn-secondary.btn-lighten-3:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-lighten-3:focus, .btn-secondary.btn-lighten-3:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-lighten-3 { border-color: #e5e8ec !important; color: #e5e8ec !important; } .btn-outline-secondary.btn-outline-lighten-3:hover { background-color: #e5e8ec !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #e5e8ec !important; } .border-secondary.border-lighten-3 { border: 1px solid #e5e8ec !important; } .border-top-secondary.border-top-lighten-3 { border-top: 1px solid #e5e8ec !important; } .border-bottom-secondary.border-bottom-lighten-3 { border-bottom: 1px solid #e5e8ec !important; } .border-left-secondary.border-left-lighten-3 { border-left: 1px solid #e5e8ec !important; } .border-right-secondary.border-right-lighten-3 { border-right: 1px solid #e5e8ec !important; } .overlay-secondary.overlay-lighten-3 { background: #e5e8ec; /* The Fallback */ background: rgba(229, 232, 236, 0.6); } .secondary.lighten-2 { color: #d6dce1 !important; } .bg-secondary.bg-lighten-2 { background-color: #d6dce1 !important; } .btn-secondary.btn-lighten-2 { border-color: #9aa9b7 !important; background-color: #d6dce1 !important; } .btn-secondary.btn-lighten-2:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-lighten-2:focus, .btn-secondary.btn-lighten-2:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-lighten-2 { border-color: #d6dce1 !important; color: #d6dce1 !important; } .btn-outline-secondary.btn-outline-lighten-2:hover { background-color: #d6dce1 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #d6dce1 !important; } .border-secondary.border-lighten-2 { border: 1px solid #d6dce1 !important; } .border-top-secondary.border-top-lighten-2 { border-top: 1px solid #d6dce1 !important; } .border-bottom-secondary.border-bottom-lighten-2 { border-bottom: 1px solid #d6dce1 !important; } .border-left-secondary.border-left-lighten-2 { border-left: 1px solid #d6dce1 !important; } .border-right-secondary.border-right-lighten-2 { border-right: 1px solid #d6dce1 !important; } .overlay-secondary.overlay-lighten-2 { background: #d6dce1; /* The Fallback */ background: rgba(214, 220, 225, 0.6); } .secondary.lighten-1 { color: #c7cfd7 !important; } .bg-secondary.bg-lighten-1 { background-color: #c7cfd7 !important; } .btn-secondary.btn-lighten-1 { border-color: #9aa9b7 !important; background-color: #c7cfd7 !important; } .btn-secondary.btn-lighten-1:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-lighten-1:focus, .btn-secondary.btn-lighten-1:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-lighten-1 { border-color: #c7cfd7 !important; color: #c7cfd7 !important; } .btn-outline-secondary.btn-outline-lighten-1:hover { background-color: #c7cfd7 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #c7cfd7 !important; } .border-secondary.border-lighten-1 { border: 1px solid #c7cfd7 !important; } .border-top-secondary.border-top-lighten-1 { border-top: 1px solid #c7cfd7 !important; } .border-bottom-secondary.border-bottom-lighten-1 { border-bottom: 1px solid #c7cfd7 !important; } .border-left-secondary.border-left-lighten-1 { border-left: 1px solid #c7cfd7 !important; } .border-right-secondary.border-right-lighten-1 { border-right: 1px solid #c7cfd7 !important; } .overlay-secondary.overlay-lighten-1 { background: #c7cfd7; /* The Fallback */ background: rgba(199, 207, 215, 0.6); } .secondary { color: #b8c2cc !important; } .bg-secondary { background-color: #b8c2cc !important; } .bg-secondary .card-header, .bg-secondary .card-footer { background-color: transparent; } .alert-secondary { background: rgba(184, 194, 204, 0.2) !important; color: #b8c2cc !important; } .alert-secondary .alert-heading { box-shadow: rgba(184, 194, 204, 0.4) 0px 6px 15px -7px; } .alert-secondary .alert-link { color: #a9b5c1 !important; } .bg-rgba-secondary { background: rgba(184, 194, 204, 0.15) !important; } .border-secondary { border: 1px solid #b8c2cc !important; } .border-top-secondary { border-top: 1px solid #b8c2cc; } .border-bottom-secondary { border-bottom: 1px solid #b8c2cc; } .border-left-secondary { border-left: 1px solid #b8c2cc; } .border-right-secondary { border-right: 1px solid #b8c2cc; } .bg-secondary.badge-glow, .border-secondary.badge-glow, .badge-secondary.badge-glow { box-shadow: 0px 0px 10px #b8c2cc; } .badge.badge-secondary { background-color: #b8c2cc; } .badge.badge-light-secondary { background-color: white; color: #b8c2cc !important; font-weight: 500; } .overlay-secondary { background: #b8c2cc; /* The Fallback */ background: rgba(184, 194, 204, 0.6); } .btn-secondary { border-color: #9aa9b7 !important; background-color: #b8c2cc !important; color: #fff; } .btn-secondary:hover { border-color: #a9b5c1 !important; color: #fff !important; box-shadow: 0 8px 25px -8px #b8c2cc; } .btn-secondary:focus, .btn-secondary:active { color: #fff !important; } .btn-flat-secondary { background-color: transparent; color: #b8c2cc; } .btn-flat-secondary:hover { color: #b8c2cc; background-color: rgba(184, 194, 204, 0.1); } .btn-flat-secondary:active, .btn-flat-secondary:focus { background-color: #b8c2cc; color: #fff !important; } .btn-relief-secondary { background-color: #b8c2cc; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-secondary:hover { color: #fff; } .btn-relief-secondary:active, .btn-relief-secondary:focus { outline: none; transform: translateY(3px); } .btn-outline-secondary { border: 1px solid #b8c2cc; background-color: transparent; color: #b8c2cc; } .btn-outline-secondary:hover { background-color: rgba(184, 194, 204, 0.08); color: #b8c2cc; } .btn-outline-secondary:active { color: #fff !important; } .btn-secondary ~ .dropdown-menu .dropdown-item.active, .btn-outline-secondary ~ .dropdown-menu .dropdown-item.active, .btn-flat-secondary ~ .dropdown-menu .dropdown-item.active { background-color: #b8c2cc; color: #fff; } .btn-secondary ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-secondary ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-secondary ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-secondary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-secondary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-secondary ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #b8c2cc; } .dropdown.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:hover i { color: #b8c2cc; } .dropdown.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-secondary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-secondary ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-secondary ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-secondary { background-color: #b8c2cc; } .pagination-secondary .page-item.active .page-link { background: #b8c2cc; color: #fff; } .pagination-secondary .page-item.active .page-link:hover { color: #fff; } .pagination-secondary .page-item .page-link:hover { color: #b8c2cc; } .pagination-secondary .page-item.prev-item .page-link:hover, .pagination-secondary .page-item.next-item .page-link:hover { background: #b8c2cc; color: #fff; } .nav-pill-secondary .nav-item .nav-link.active { color: #fff; background-color: #b8c2cc !important; } .progress-bar-secondary { background-color: rgba(184, 194, 204, 0.1); } .progress-bar-secondary .progress-bar { background-color: #b8c2cc; } .chip-secondary { background-color: #b8c2cc !important; } .chip-secondary .chip-body { color: #fff !important; } .divider.divider-secondary .divider-text:before, .divider.divider-secondary .divider-text:after { border-color: #b8c2cc !important; } input[type="checkbox"].bg-secondary + .custom-control-label:before, input[type="radio"].bg-secondary + .custom-control-label:before { background-color: #b8c2cc !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #b8c2cc !important; } .vs-checkbox-secondary input:checked ~ .vs-checkbox { border-color: #b8c2cc !important; } .vs-checkbox-secondary input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #b8c2cc !important; } .vs-checkbox-secondary input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #b8c2cc !important; } .custom-switch-secondary .custom-control-input:checked ~ .custom-control-label::before { background-color: #b8c2cc !important; color: #fff; transition: all .2s ease-out; } .vs-radio-secondary input:checked ~ .vs-radio .vs-radio--circle { background: #b8c2cc !important; box-shadow: 0 3px 12px 0 rgba(184, 194, 204, 0.4) !important; } .secondary.darken-1 { color: #a9b5c1 !important; } .bg-secondary.bg-darken-1 { background-color: #a9b5c1 !important; } .btn-secondary.btn-darken-1 { border-color: #9aa9b7 !important; background-color: #a9b5c1 !important; } .btn-secondary.btn-darken-1:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-darken-1:focus, .btn-secondary.btn-darken-1:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-darken-1 { border-color: #a9b5c1 !important; color: #a9b5c1 !important; } .btn-outline-secondary.btn-outline-darken-1:hover { background-color: #a9b5c1 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #a9b5c1 !important; } .border-secondary.border-darken-1 { border: 1px solid #a9b5c1 !important; } .border-top-secondary.border-top-darken-1 { border-top: 1px solid #a9b5c1 !important; } .border-bottom-secondary.border-bottom-darken-1 { border-bottom: 1px solid #a9b5c1 !important; } .border-left-secondary.border-left-darken-1 { border-left: 1px solid #a9b5c1 !important; } .border-right-secondary.border-right-darken-1 { border-right: 1px solid #a9b5c1 !important; } .overlay-secondary.overlay-darken-1 { background: #a9b5c1; /* The Fallback */ background: rgba(169, 181, 193, 0.6); } .secondary.darken-2 { color: #9aa9b7 !important; } .bg-secondary.bg-darken-2 { background-color: #9aa9b7 !important; } .btn-secondary.btn-darken-2 { border-color: #9aa9b7 !important; background-color: #9aa9b7 !important; } .btn-secondary.btn-darken-2:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-darken-2:focus, .btn-secondary.btn-darken-2:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-darken-2 { border-color: #9aa9b7 !important; color: #9aa9b7 !important; } .btn-outline-secondary.btn-outline-darken-2:hover { background-color: #9aa9b7 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #9aa9b7 !important; } .border-secondary.border-darken-2 { border: 1px solid #9aa9b7 !important; } .border-top-secondary.border-top-darken-2 { border-top: 1px solid #9aa9b7 !important; } .border-bottom-secondary.border-bottom-darken-2 { border-bottom: 1px solid #9aa9b7 !important; } .border-left-secondary.border-left-darken-2 { border-left: 1px solid #9aa9b7 !important; } .border-right-secondary.border-right-darken-2 { border-right: 1px solid #9aa9b7 !important; } .overlay-secondary.overlay-darken-2 { background: #9aa9b7; /* The Fallback */ background: rgba(154, 169, 183, 0.6); } .secondary.darken-3 { color: #8b9cac !important; } .bg-secondary.bg-darken-3 { background-color: #8b9cac !important; } .btn-secondary.btn-darken-3 { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-darken-3:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-darken-3:focus, .btn-secondary.btn-darken-3:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-darken-3 { border-color: #8b9cac !important; color: #8b9cac !important; } .btn-outline-secondary.btn-outline-darken-3:hover { background-color: #8b9cac !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #8b9cac !important; } .border-secondary.border-darken-3 { border: 1px solid #8b9cac !important; } .border-top-secondary.border-top-darken-3 { border-top: 1px solid #8b9cac !important; } .border-bottom-secondary.border-bottom-darken-3 { border-bottom: 1px solid #8b9cac !important; } .border-left-secondary.border-left-darken-3 { border-left: 1px solid #8b9cac !important; } .border-right-secondary.border-right-darken-3 { border-right: 1px solid #8b9cac !important; } .overlay-secondary.overlay-darken-3 { background: #8b9cac; /* The Fallback */ background: rgba(139, 156, 172, 0.6); } .secondary.darken-4 { color: #7d8fa1 !important; } .bg-secondary.bg-darken-4 { background-color: #7d8fa1 !important; } .btn-secondary.btn-darken-4 { border-color: #9aa9b7 !important; background-color: #7d8fa1 !important; } .btn-secondary.btn-darken-4:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-darken-4:focus, .btn-secondary.btn-darken-4:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-darken-4 { border-color: #7d8fa1 !important; color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-darken-4:hover { background-color: #7d8fa1 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #7d8fa1 !important; } .border-secondary.border-darken-4 { border: 1px solid #7d8fa1 !important; } .border-top-secondary.border-top-darken-4 { border-top: 1px solid #7d8fa1 !important; } .border-bottom-secondary.border-bottom-darken-4 { border-bottom: 1px solid #7d8fa1 !important; } .border-left-secondary.border-left-darken-4 { border-left: 1px solid #7d8fa1 !important; } .border-right-secondary.border-right-darken-4 { border-right: 1px solid #7d8fa1 !important; } .overlay-secondary.overlay-darken-4 { background: #7d8fa1; /* The Fallback */ background: rgba(125, 143, 161, 0.6); } .secondary.gradient-bg { color: #640064 !important; } .bg-secondary.bg-gradient-bg { background-color: #640064 !important; } .btn-secondary.btn-gradient-bg { border-color: #9aa9b7 !important; background-color: #640064 !important; } .btn-secondary.btn-gradient-bg:hover { border-color: #9aa9b7 !important; background-color: #8b9cac !important; } .btn-secondary.btn-gradient-bg:focus, .btn-secondary.btn-gradient-bg:active { border-color: #8b9cac !important; background-color: #7d8fa1 !important; } .btn-outline-secondary.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-secondary.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-secondary { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-secondary.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-secondary.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-secondary.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-secondary.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-secondary.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-secondary.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } .success.gradient-light { color: #4ae9d3 !important; } .bg-success.bg-gradient-light { background-color: #4ae9d3 !important; } .btn-success.btn-gradient-light { border-color: #1f9d57 !important; background-color: #4ae9d3 !important; } .btn-success.btn-gradient-light:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-gradient-light:focus, .btn-success.btn-gradient-light:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-gradient-light { border-color: #4ae9d3 !important; color: #4ae9d3 !important; } .btn-outline-success.btn-outline-gradient-light:hover { background-color: #4ae9d3 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #4ae9d3 !important; } .border-success.border-gradient-light { border: 1px solid #4ae9d3 !important; } .border-top-success.border-top-gradient-light { border-top: 1px solid #4ae9d3 !important; } .border-bottom-success.border-bottom-gradient-light { border-bottom: 1px solid #4ae9d3 !important; } .border-left-success.border-left-gradient-light { border-left: 1px solid #4ae9d3 !important; } .border-right-success.border-right-gradient-light { border-right: 1px solid #4ae9d3 !important; } .overlay-success.overlay-gradient-light { background: #4ae9d3; /* The Fallback */ background: rgba(74, 233, 211, 0.6); } .success.light-badge { color: #c7f4db !important; } .bg-success.bg-light-badge { background-color: #c7f4db !important; } .btn-success.btn-light-badge { border-color: #1f9d57 !important; background-color: #c7f4db !important; } .btn-success.btn-light-badge:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-light-badge:focus, .btn-success.btn-light-badge:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-light-badge { border-color: #c7f4db !important; color: #c7f4db !important; } .btn-outline-success.btn-outline-light-badge:hover { background-color: #c7f4db !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #c7f4db !important; } .border-success.border-light-badge { border: 1px solid #c7f4db !important; } .border-top-success.border-top-light-badge { border-top: 1px solid #c7f4db !important; } .border-bottom-success.border-bottom-light-badge { border-bottom: 1px solid #c7f4db !important; } .border-left-success.border-left-light-badge { border-left: 1px solid #c7f4db !important; } .border-right-success.border-right-light-badge { border-right: 1px solid #c7f4db !important; } .overlay-success.overlay-light-badge { background: #c7f4db; /* The Fallback */ background: rgba(199, 244, 219, 0.6); } .success.lighten-5 { color: #88e7b2 !important; } .bg-success.bg-lighten-5 { background-color: #88e7b2 !important; } .btn-success.btn-lighten-5 { border-color: #1f9d57 !important; background-color: #88e7b2 !important; } .btn-success.btn-lighten-5:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-lighten-5:focus, .btn-success.btn-lighten-5:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-lighten-5 { border-color: #88e7b2 !important; color: #88e7b2 !important; } .btn-outline-success.btn-outline-lighten-5:hover { background-color: #88e7b2 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #88e7b2 !important; } .border-success.border-lighten-5 { border: 1px solid #88e7b2 !important; } .border-top-success.border-top-lighten-5 { border-top: 1px solid #88e7b2 !important; } .border-bottom-success.border-bottom-lighten-5 { border-bottom: 1px solid #88e7b2 !important; } .border-left-success.border-left-lighten-5 { border-left: 1px solid #88e7b2 !important; } .border-right-success.border-right-lighten-5 { border-right: 1px solid #88e7b2 !important; } .overlay-success.overlay-lighten-5 { background: #88e7b2; /* The Fallback */ background: rgba(136, 231, 178, 0.6); } .success.lighten-4 { color: #72e3a4 !important; } .bg-success.bg-lighten-4 { background-color: #72e3a4 !important; } .btn-success.btn-lighten-4 { border-color: #1f9d57 !important; background-color: #72e3a4 !important; } .btn-success.btn-lighten-4:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-lighten-4:focus, .btn-success.btn-lighten-4:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-lighten-4 { border-color: #72e3a4 !important; color: #72e3a4 !important; } .btn-outline-success.btn-outline-lighten-4:hover { background-color: #72e3a4 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #72e3a4 !important; } .border-success.border-lighten-4 { border: 1px solid #72e3a4 !important; } .border-top-success.border-top-lighten-4 { border-top: 1px solid #72e3a4 !important; } .border-bottom-success.border-bottom-lighten-4 { border-bottom: 1px solid #72e3a4 !important; } .border-left-success.border-left-lighten-4 { border-left: 1px solid #72e3a4 !important; } .border-right-success.border-right-lighten-4 { border-right: 1px solid #72e3a4 !important; } .overlay-success.overlay-lighten-4 { background: #72e3a4; /* The Fallback */ background: rgba(114, 227, 164, 0.6); } .success.lighten-3 { color: #5dde97 !important; } .bg-success.bg-lighten-3 { background-color: #5dde97 !important; } .btn-success.btn-lighten-3 { border-color: #1f9d57 !important; background-color: #5dde97 !important; } .btn-success.btn-lighten-3:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-lighten-3:focus, .btn-success.btn-lighten-3:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-lighten-3 { border-color: #5dde97 !important; color: #5dde97 !important; } .btn-outline-success.btn-outline-lighten-3:hover { background-color: #5dde97 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #5dde97 !important; } .border-success.border-lighten-3 { border: 1px solid #5dde97 !important; } .border-top-success.border-top-lighten-3 { border-top: 1px solid #5dde97 !important; } .border-bottom-success.border-bottom-lighten-3 { border-bottom: 1px solid #5dde97 !important; } .border-left-success.border-left-lighten-3 { border-left: 1px solid #5dde97 !important; } .border-right-success.border-right-lighten-3 { border-right: 1px solid #5dde97 !important; } .overlay-success.overlay-lighten-3 { background: #5dde97; /* The Fallback */ background: rgba(93, 222, 151, 0.6); } .success.lighten-2 { color: #48da89 !important; } .bg-success.bg-lighten-2 { background-color: #48da89 !important; } .btn-success.btn-lighten-2 { border-color: #1f9d57 !important; background-color: #48da89 !important; } .btn-success.btn-lighten-2:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-lighten-2:focus, .btn-success.btn-lighten-2:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-lighten-2 { border-color: #48da89 !important; color: #48da89 !important; } .btn-outline-success.btn-outline-lighten-2:hover { background-color: #48da89 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #48da89 !important; } .border-success.border-lighten-2 { border: 1px solid #48da89 !important; } .border-top-success.border-top-lighten-2 { border-top: 1px solid #48da89 !important; } .border-bottom-success.border-bottom-lighten-2 { border-bottom: 1px solid #48da89 !important; } .border-left-success.border-left-lighten-2 { border-left: 1px solid #48da89 !important; } .border-right-success.border-right-lighten-2 { border-right: 1px solid #48da89 !important; } .overlay-success.overlay-lighten-2 { background: #48da89; /* The Fallback */ background: rgba(72, 218, 137, 0.6); } .success.lighten-1 { color: #33d67c !important; } .bg-success.bg-lighten-1 { background-color: #33d67c !important; } .btn-success.btn-lighten-1 { border-color: #1f9d57 !important; background-color: #33d67c !important; } .btn-success.btn-lighten-1:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-lighten-1:focus, .btn-success.btn-lighten-1:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-lighten-1 { border-color: #33d67c !important; color: #33d67c !important; } .btn-outline-success.btn-outline-lighten-1:hover { background-color: #33d67c !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #33d67c !important; } .border-success.border-lighten-1 { border: 1px solid #33d67c !important; } .border-top-success.border-top-lighten-1 { border-top: 1px solid #33d67c !important; } .border-bottom-success.border-bottom-lighten-1 { border-bottom: 1px solid #33d67c !important; } .border-left-success.border-left-lighten-1 { border-left: 1px solid #33d67c !important; } .border-right-success.border-right-lighten-1 { border-right: 1px solid #33d67c !important; } .overlay-success.overlay-lighten-1 { background: #33d67c; /* The Fallback */ background: rgba(51, 214, 124, 0.6); } .success { color: #28c76f !important; } .bg-success { background-color: #28c76f !important; } .bg-success .card-header, .bg-success .card-footer { background-color: transparent; } .alert-success { background: rgba(40, 199, 111, 0.2) !important; color: #28c76f !important; } .alert-success .alert-heading { box-shadow: rgba(40, 199, 111, 0.4) 0px 6px 15px -7px; } .alert-success .alert-link { color: #24b263 !important; } .bg-rgba-success { background: rgba(40, 199, 111, 0.15) !important; } .border-success { border: 1px solid #28c76f !important; } .border-top-success { border-top: 1px solid #28c76f; } .border-bottom-success { border-bottom: 1px solid #28c76f; } .border-left-success { border-left: 1px solid #28c76f; } .border-right-success { border-right: 1px solid #28c76f; } .bg-success.badge-glow, .border-success.badge-glow, .badge-success.badge-glow { box-shadow: 0px 0px 10px #28c76f; } .badge.badge-success { background-color: #28c76f; } .badge.badge-light-success { background-color: #c7f4db; color: #28c76f !important; font-weight: 500; } .overlay-success { background: #28c76f; /* The Fallback */ background: rgba(40, 199, 111, 0.6); } .btn-success { border-color: #1f9d57 !important; background-color: #28c76f !important; color: #fff; } .btn-success:hover { border-color: #24b263 !important; color: #fff !important; box-shadow: 0 8px 25px -8px #28c76f; } .btn-success:focus, .btn-success:active { color: #fff !important; } .btn-flat-success { background-color: transparent; color: #28c76f; } .btn-flat-success:hover { color: #28c76f; background-color: rgba(40, 199, 111, 0.1); } .btn-flat-success:active, .btn-flat-success:focus { background-color: #28c76f; color: #fff !important; } .btn-relief-success { background-color: #28c76f; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-success:hover { color: #fff; } .btn-relief-success:active, .btn-relief-success:focus { outline: none; transform: translateY(3px); } .btn-outline-success { border: 1px solid #28c76f; background-color: transparent; color: #28c76f; } .btn-outline-success:hover { background-color: rgba(40, 199, 111, 0.08); color: #28c76f; } .btn-outline-success:active { color: #fff !important; } .btn-success ~ .dropdown-menu .dropdown-item.active, .btn-outline-success ~ .dropdown-menu .dropdown-item.active, .btn-flat-success ~ .dropdown-menu .dropdown-item.active { background-color: #28c76f; color: #fff; } .btn-success ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-success ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-success ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-success ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-success ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-success ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #28c76f; } .dropdown.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:hover i { color: #28c76f; } .dropdown.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-success ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-success ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-success ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-success { background-color: #28c76f; } .pagination-success .page-item.active .page-link { background: #28c76f; color: #fff; } .pagination-success .page-item.active .page-link:hover { color: #fff; } .pagination-success .page-item .page-link:hover { color: #28c76f; } .pagination-success .page-item.prev-item .page-link:hover, .pagination-success .page-item.next-item .page-link:hover { background: #28c76f; color: #fff; } .nav-pill-success .nav-item .nav-link.active { color: #fff; background-color: #28c76f !important; } .progress-bar-success { background-color: rgba(40, 199, 111, 0.1); } .progress-bar-success .progress-bar { background-color: #28c76f; } .chip-success { background-color: #28c76f !important; } .chip-success .chip-body { color: #fff !important; } .divider.divider-success .divider-text:before, .divider.divider-success .divider-text:after { border-color: #28c76f !important; } input[type="checkbox"].bg-success + .custom-control-label:before, input[type="radio"].bg-success + .custom-control-label:before { background-color: #28c76f !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #28c76f !important; } .vs-checkbox-success input:checked ~ .vs-checkbox { border-color: #28c76f !important; } .vs-checkbox-success input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #28c76f !important; } .vs-checkbox-success input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #28c76f !important; } .custom-switch-success .custom-control-input:checked ~ .custom-control-label::before { background-color: #28c76f !important; color: #fff; transition: all .2s ease-out; } .vs-radio-success input:checked ~ .vs-radio .vs-radio--circle { background: #28c76f !important; box-shadow: 0 3px 12px 0 rgba(40, 199, 111, 0.4) !important; } .success.darken-1 { color: #24b263 !important; } .bg-success.bg-darken-1 { background-color: #24b263 !important; } .btn-success.btn-darken-1 { border-color: #1f9d57 !important; background-color: #24b263 !important; } .btn-success.btn-darken-1:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-darken-1:focus, .btn-success.btn-darken-1:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-darken-1 { border-color: #24b263 !important; color: #24b263 !important; } .btn-outline-success.btn-outline-darken-1:hover { background-color: #24b263 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #24b263 !important; } .border-success.border-darken-1 { border: 1px solid #24b263 !important; } .border-top-success.border-top-darken-1 { border-top: 1px solid #24b263 !important; } .border-bottom-success.border-bottom-darken-1 { border-bottom: 1px solid #24b263 !important; } .border-left-success.border-left-darken-1 { border-left: 1px solid #24b263 !important; } .border-right-success.border-right-darken-1 { border-right: 1px solid #24b263 !important; } .overlay-success.overlay-darken-1 { background: #24b263; /* The Fallback */ background: rgba(36, 178, 99, 0.6); } .success.darken-2 { color: #1f9d57 !important; } .bg-success.bg-darken-2 { background-color: #1f9d57 !important; } .btn-success.btn-darken-2 { border-color: #1f9d57 !important; background-color: #1f9d57 !important; } .btn-success.btn-darken-2:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-darken-2:focus, .btn-success.btn-darken-2:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-darken-2 { border-color: #1f9d57 !important; color: #1f9d57 !important; } .btn-outline-success.btn-outline-darken-2:hover { background-color: #1f9d57 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #1f9d57 !important; } .border-success.border-darken-2 { border: 1px solid #1f9d57 !important; } .border-top-success.border-top-darken-2 { border-top: 1px solid #1f9d57 !important; } .border-bottom-success.border-bottom-darken-2 { border-bottom: 1px solid #1f9d57 !important; } .border-left-success.border-left-darken-2 { border-left: 1px solid #1f9d57 !important; } .border-right-success.border-right-darken-2 { border-right: 1px solid #1f9d57 !important; } .overlay-success.overlay-darken-2 { background: #1f9d57; /* The Fallback */ background: rgba(31, 157, 87, 0.6); } .success.darken-3 { color: #1b874b !important; } .bg-success.bg-darken-3 { background-color: #1b874b !important; } .btn-success.btn-darken-3 { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-darken-3:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-darken-3:focus, .btn-success.btn-darken-3:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-darken-3 { border-color: #1b874b !important; color: #1b874b !important; } .btn-outline-success.btn-outline-darken-3:hover { background-color: #1b874b !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #1b874b !important; } .border-success.border-darken-3 { border: 1px solid #1b874b !important; } .border-top-success.border-top-darken-3 { border-top: 1px solid #1b874b !important; } .border-bottom-success.border-bottom-darken-3 { border-bottom: 1px solid #1b874b !important; } .border-left-success.border-left-darken-3 { border-left: 1px solid #1b874b !important; } .border-right-success.border-right-darken-3 { border-right: 1px solid #1b874b !important; } .overlay-success.overlay-darken-3 { background: #1b874b; /* The Fallback */ background: rgba(27, 135, 75, 0.6); } .success.darken-4 { color: #177240 !important; } .bg-success.bg-darken-4 { background-color: #177240 !important; } .btn-success.btn-darken-4 { border-color: #1f9d57 !important; background-color: #177240 !important; } .btn-success.btn-darken-4:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-darken-4:focus, .btn-success.btn-darken-4:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-darken-4 { border-color: #177240 !important; color: #177240 !important; } .btn-outline-success.btn-outline-darken-4:hover { background-color: #177240 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #177240 !important; } .border-success.border-darken-4 { border: 1px solid #177240 !important; } .border-top-success.border-top-darken-4 { border-top: 1px solid #177240 !important; } .border-bottom-success.border-bottom-darken-4 { border-bottom: 1px solid #177240 !important; } .border-left-success.border-left-darken-4 { border-left: 1px solid #177240 !important; } .border-right-success.border-right-darken-4 { border-right: 1px solid #177240 !important; } .overlay-success.overlay-darken-4 { background: #177240; /* The Fallback */ background: rgba(23, 114, 64, 0.6); } .success.accent-1 { color: #E1FFF1 !important; } .bg-success.bg-accent-1 { background-color: #E1FFF1 !important; } .btn-success.btn-accent-1 { border-color: #1f9d57 !important; background-color: #E1FFF1 !important; } .btn-success.btn-accent-1:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-accent-1:focus, .btn-success.btn-accent-1:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-accent-1 { border-color: #E1FFF1 !important; color: #E1FFF1 !important; } .btn-outline-success.btn-outline-accent-1:hover { background-color: #E1FFF1 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #E1FFF1 !important; } .border-success.border-accent-1 { border: 1px solid #E1FFF1 !important; } .border-top-success.border-top-accent-1 { border-top: 1px solid #E1FFF1 !important; } .border-bottom-success.border-bottom-accent-1 { border-bottom: 1px solid #E1FFF1 !important; } .border-left-success.border-left-accent-1 { border-left: 1px solid #E1FFF1 !important; } .border-right-success.border-right-accent-1 { border-right: 1px solid #E1FFF1 !important; } .overlay-success.overlay-accent-1 { background: #E1FFF1; /* The Fallback */ background: rgba(225, 255, 241, 0.6); } .success.accent-2 { color: #AEFFD9 !important; } .bg-success.bg-accent-2 { background-color: #AEFFD9 !important; } .btn-success.btn-accent-2 { border-color: #1f9d57 !important; background-color: #AEFFD9 !important; } .btn-success.btn-accent-2:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-accent-2:focus, .btn-success.btn-accent-2:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-accent-2 { border-color: #AEFFD9 !important; color: #AEFFD9 !important; } .btn-outline-success.btn-outline-accent-2:hover { background-color: #AEFFD9 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #AEFFD9 !important; } .border-success.border-accent-2 { border: 1px solid #AEFFD9 !important; } .border-top-success.border-top-accent-2 { border-top: 1px solid #AEFFD9 !important; } .border-bottom-success.border-bottom-accent-2 { border-bottom: 1px solid #AEFFD9 !important; } .border-left-success.border-left-accent-2 { border-left: 1px solid #AEFFD9 !important; } .border-right-success.border-right-accent-2 { border-right: 1px solid #AEFFD9 !important; } .overlay-success.overlay-accent-2 { background: #AEFFD9; /* The Fallback */ background: rgba(174, 255, 217, 0.6); } .success.accent-3 { color: #7BFFC1 !important; } .bg-success.bg-accent-3 { background-color: #7BFFC1 !important; } .btn-success.btn-accent-3 { border-color: #1f9d57 !important; background-color: #7BFFC1 !important; } .btn-success.btn-accent-3:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-accent-3:focus, .btn-success.btn-accent-3:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-accent-3 { border-color: #7BFFC1 !important; color: #7BFFC1 !important; } .btn-outline-success.btn-outline-accent-3:hover { background-color: #7BFFC1 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #7BFFC1 !important; } .border-success.border-accent-3 { border: 1px solid #7BFFC1 !important; } .border-top-success.border-top-accent-3 { border-top: 1px solid #7BFFC1 !important; } .border-bottom-success.border-bottom-accent-3 { border-bottom: 1px solid #7BFFC1 !important; } .border-left-success.border-left-accent-3 { border-left: 1px solid #7BFFC1 !important; } .border-right-success.border-right-accent-3 { border-right: 1px solid #7BFFC1 !important; } .overlay-success.overlay-accent-3 { background: #7BFFC1; /* The Fallback */ background: rgba(123, 255, 193, 0.6); } .success.accent-4 { color: #62FFB5 !important; } .bg-success.bg-accent-4 { background-color: #62FFB5 !important; } .btn-success.btn-accent-4 { border-color: #1f9d57 !important; background-color: #62FFB5 !important; } .btn-success.btn-accent-4:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-accent-4:focus, .btn-success.btn-accent-4:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-accent-4 { border-color: #62FFB5 !important; color: #62FFB5 !important; } .btn-outline-success.btn-outline-accent-4:hover { background-color: #62FFB5 !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #62FFB5 !important; } .border-success.border-accent-4 { border: 1px solid #62FFB5 !important; } .border-top-success.border-top-accent-4 { border-top: 1px solid #62FFB5 !important; } .border-bottom-success.border-bottom-accent-4 { border-bottom: 1px solid #62FFB5 !important; } .border-left-success.border-left-accent-4 { border-left: 1px solid #62FFB5 !important; } .border-right-success.border-right-accent-4 { border-right: 1px solid #62FFB5 !important; } .overlay-success.overlay-accent-4 { background: #62FFB5; /* The Fallback */ background: rgba(98, 255, 181, 0.6); } .success.gradient-bg { color: #0064fa !important; } .bg-success.bg-gradient-bg { background-color: #0064fa !important; } .btn-success.btn-gradient-bg { border-color: #1f9d57 !important; background-color: #0064fa !important; } .btn-success.btn-gradient-bg:hover { border-color: #1f9d57 !important; background-color: #1b874b !important; } .btn-success.btn-gradient-bg:focus, .btn-success.btn-gradient-bg:active { border-color: #1b874b !important; background-color: #177240 !important; } .btn-outline-success.btn-outline-gradient-bg { border-color: #0064fa !important; color: #0064fa !important; } .btn-outline-success.btn-outline-gradient-bg:hover { background-color: #0064fa !important; } input:focus ~ .bg-success { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #0064fa !important; } .border-success.border-gradient-bg { border: 1px solid #0064fa !important; } .border-top-success.border-top-gradient-bg { border-top: 1px solid #0064fa !important; } .border-bottom-success.border-bottom-gradient-bg { border-bottom: 1px solid #0064fa !important; } .border-left-success.border-left-gradient-bg { border-left: 1px solid #0064fa !important; } .border-right-success.border-right-gradient-bg { border-right: 1px solid #0064fa !important; } .overlay-success.overlay-gradient-bg { background: #0064fa; /* The Fallback */ background: rgba(0, 100, 250, 0.6); } .info.gradient-light { color: #2d91ff !important; } .bg-info.bg-gradient-light { background-color: #2d91ff !important; } .btn-info.btn-gradient-light { border-color: #00a1b5 !important; background-color: #2d91ff !important; } .btn-info.btn-gradient-light:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-gradient-light:focus, .btn-info.btn-gradient-light:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-gradient-light { border-color: #2d91ff !important; color: #2d91ff !important; } .btn-outline-info.btn-outline-gradient-light:hover { background-color: #2d91ff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #2d91ff !important; } .border-info.border-gradient-light { border: 1px solid #2d91ff !important; } .border-top-info.border-top-gradient-light { border-top: 1px solid #2d91ff !important; } .border-bottom-info.border-bottom-gradient-light { border-bottom: 1px solid #2d91ff !important; } .border-left-info.border-left-gradient-light { border-left: 1px solid #2d91ff !important; } .border-right-info.border-right-gradient-light { border-right: 1px solid #2d91ff !important; } .overlay-info.overlay-gradient-light { background: #2d91ff; /* The Fallback */ background: rgba(45, 145, 255, 0.6); } .info.light-badge { color: #b5f7ff !important; } .bg-info.bg-light-badge { background-color: #b5f7ff !important; } .btn-info.btn-light-badge { border-color: #00a1b5 !important; background-color: #b5f7ff !important; } .btn-info.btn-light-badge:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-light-badge:focus, .btn-info.btn-light-badge:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-light-badge { border-color: #b5f7ff !important; color: #b5f7ff !important; } .btn-outline-info.btn-outline-light-badge:hover { background-color: #b5f7ff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #b5f7ff !important; } .border-info.border-light-badge { border: 1px solid #b5f7ff !important; } .border-top-info.border-top-light-badge { border-top: 1px solid #b5f7ff !important; } .border-bottom-info.border-bottom-light-badge { border-bottom: 1px solid #b5f7ff !important; } .border-left-info.border-left-light-badge { border-left: 1px solid #b5f7ff !important; } .border-right-info.border-right-light-badge { border-right: 1px solid #b5f7ff !important; } .overlay-info.overlay-light-badge { background: #b5f7ff; /* The Fallback */ background: rgba(181, 247, 255, 0.6); } .info.lighten-5 { color: #69efff !important; } .bg-info.bg-lighten-5 { background-color: #69efff !important; } .btn-info.btn-lighten-5 { border-color: #00a1b5 !important; background-color: #69efff !important; } .btn-info.btn-lighten-5:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-lighten-5:focus, .btn-info.btn-lighten-5:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-lighten-5 { border-color: #69efff !important; color: #69efff !important; } .btn-outline-info.btn-outline-lighten-5:hover { background-color: #69efff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #69efff !important; } .border-info.border-lighten-5 { border: 1px solid #69efff !important; } .border-top-info.border-top-lighten-5 { border-top: 1px solid #69efff !important; } .border-bottom-info.border-bottom-lighten-5 { border-bottom: 1px solid #69efff !important; } .border-left-info.border-left-lighten-5 { border-left: 1px solid #69efff !important; } .border-right-info.border-right-lighten-5 { border-right: 1px solid #69efff !important; } .overlay-info.overlay-lighten-5 { background: #69efff; /* The Fallback */ background: rgba(105, 239, 255, 0.6); } .info.lighten-4 { color: #4fecff !important; } .bg-info.bg-lighten-4 { background-color: #4fecff !important; } .btn-info.btn-lighten-4 { border-color: #00a1b5 !important; background-color: #4fecff !important; } .btn-info.btn-lighten-4:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-lighten-4:focus, .btn-info.btn-lighten-4:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-lighten-4 { border-color: #4fecff !important; color: #4fecff !important; } .btn-outline-info.btn-outline-lighten-4:hover { background-color: #4fecff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #4fecff !important; } .border-info.border-lighten-4 { border: 1px solid #4fecff !important; } .border-top-info.border-top-lighten-4 { border-top: 1px solid #4fecff !important; } .border-bottom-info.border-bottom-lighten-4 { border-bottom: 1px solid #4fecff !important; } .border-left-info.border-left-lighten-4 { border-left: 1px solid #4fecff !important; } .border-right-info.border-right-lighten-4 { border-right: 1px solid #4fecff !important; } .overlay-info.overlay-lighten-4 { background: #4fecff; /* The Fallback */ background: rgba(79, 236, 255, 0.6); } .info.lighten-3 { color: #36e9ff !important; } .bg-info.bg-lighten-3 { background-color: #36e9ff !important; } .btn-info.btn-lighten-3 { border-color: #00a1b5 !important; background-color: #36e9ff !important; } .btn-info.btn-lighten-3:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-lighten-3:focus, .btn-info.btn-lighten-3:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-lighten-3 { border-color: #36e9ff !important; color: #36e9ff !important; } .btn-outline-info.btn-outline-lighten-3:hover { background-color: #36e9ff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #36e9ff !important; } .border-info.border-lighten-3 { border: 1px solid #36e9ff !important; } .border-top-info.border-top-lighten-3 { border-top: 1px solid #36e9ff !important; } .border-bottom-info.border-bottom-lighten-3 { border-bottom: 1px solid #36e9ff !important; } .border-left-info.border-left-lighten-3 { border-left: 1px solid #36e9ff !important; } .border-right-info.border-right-lighten-3 { border-right: 1px solid #36e9ff !important; } .overlay-info.overlay-lighten-3 { background: #36e9ff; /* The Fallback */ background: rgba(54, 233, 255, 0.6); } .info.lighten-2 { color: #1ce7ff !important; } .bg-info.bg-lighten-2 { background-color: #1ce7ff !important; } .btn-info.btn-lighten-2 { border-color: #00a1b5 !important; background-color: #1ce7ff !important; } .btn-info.btn-lighten-2:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-lighten-2:focus, .btn-info.btn-lighten-2:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-lighten-2 { border-color: #1ce7ff !important; color: #1ce7ff !important; } .btn-outline-info.btn-outline-lighten-2:hover { background-color: #1ce7ff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #1ce7ff !important; } .border-info.border-lighten-2 { border: 1px solid #1ce7ff !important; } .border-top-info.border-top-lighten-2 { border-top: 1px solid #1ce7ff !important; } .border-bottom-info.border-bottom-lighten-2 { border-bottom: 1px solid #1ce7ff !important; } .border-left-info.border-left-lighten-2 { border-left: 1px solid #1ce7ff !important; } .border-right-info.border-right-lighten-2 { border-right: 1px solid #1ce7ff !important; } .overlay-info.overlay-lighten-2 { background: #1ce7ff; /* The Fallback */ background: rgba(28, 231, 255, 0.6); } .info.lighten-1 { color: #03e4ff !important; } .bg-info.bg-lighten-1 { background-color: #03e4ff !important; } .btn-info.btn-lighten-1 { border-color: #00a1b5 !important; background-color: #03e4ff !important; } .btn-info.btn-lighten-1:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-lighten-1:focus, .btn-info.btn-lighten-1:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-lighten-1 { border-color: #03e4ff !important; color: #03e4ff !important; } .btn-outline-info.btn-outline-lighten-1:hover { background-color: #03e4ff !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #03e4ff !important; } .border-info.border-lighten-1 { border: 1px solid #03e4ff !important; } .border-top-info.border-top-lighten-1 { border-top: 1px solid #03e4ff !important; } .border-bottom-info.border-bottom-lighten-1 { border-bottom: 1px solid #03e4ff !important; } .border-left-info.border-left-lighten-1 { border-left: 1px solid #03e4ff !important; } .border-right-info.border-right-lighten-1 { border-right: 1px solid #03e4ff !important; } .overlay-info.overlay-lighten-1 { background: #03e4ff; /* The Fallback */ background: rgba(3, 228, 255, 0.6); } .info { color: #00cfe8 !important; } .bg-info { background-color: #00cfe8 !important; } .bg-info .card-header, .bg-info .card-footer { background-color: transparent; } .alert-info { background: rgba(0, 207, 232, 0.2) !important; color: #00cfe8 !important; } .alert-info .alert-heading { box-shadow: rgba(0, 207, 232, 0.4) 0px 6px 15px -7px; } .alert-info .alert-link { color: #00b8cf !important; } .bg-rgba-info { background: rgba(0, 207, 232, 0.15) !important; } .border-info { border: 1px solid #00cfe8 !important; } .border-top-info { border-top: 1px solid #00cfe8; } .border-bottom-info { border-bottom: 1px solid #00cfe8; } .border-left-info { border-left: 1px solid #00cfe8; } .border-right-info { border-right: 1px solid #00cfe8; } .bg-info.badge-glow, .border-info.badge-glow, .badge-info.badge-glow { box-shadow: 0px 0px 10px #00cfe8; } .badge.badge-info { background-color: #00cfe8; } .badge.badge-light-info { background-color: #b5f7ff; color: #00cfe8 !important; font-weight: 500; } .overlay-info { background: #00cfe8; /* The Fallback */ background: rgba(0, 207, 232, 0.6); } .btn-info { border-color: #00a1b5 !important; background-color: #00cfe8 !important; color: #fff; } .btn-info:hover { border-color: #00b8cf !important; color: #fff !important; box-shadow: 0 8px 25px -8px #00cfe8; } .btn-info:focus, .btn-info:active { color: #fff !important; } .btn-flat-info { background-color: transparent; color: #00cfe8; } .btn-flat-info:hover { color: #00cfe8; background-color: rgba(0, 207, 232, 0.1); } .btn-flat-info:active, .btn-flat-info:focus { background-color: #00cfe8; color: #fff !important; } .btn-relief-info { background-color: #00cfe8; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-info:hover { color: #fff; } .btn-relief-info:active, .btn-relief-info:focus { outline: none; transform: translateY(3px); } .btn-outline-info { border: 1px solid #00cfe8; background-color: transparent; color: #00cfe8; } .btn-outline-info:hover { background-color: rgba(0, 207, 232, 0.08); color: #00cfe8; } .btn-outline-info:active { color: #fff !important; } .btn-info ~ .dropdown-menu .dropdown-item.active, .btn-outline-info ~ .dropdown-menu .dropdown-item.active, .btn-flat-info ~ .dropdown-menu .dropdown-item.active { background-color: #00cfe8; color: #fff; } .btn-info ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-info ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-info ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-info ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-info ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-info ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #00cfe8; } .dropdown.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:hover i { color: #00cfe8; } .dropdown.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-info ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-info ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-info ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-info { background-color: #00cfe8; } .pagination-info .page-item.active .page-link { background: #00cfe8; color: #fff; } .pagination-info .page-item.active .page-link:hover { color: #fff; } .pagination-info .page-item .page-link:hover { color: #00cfe8; } .pagination-info .page-item.prev-item .page-link:hover, .pagination-info .page-item.next-item .page-link:hover { background: #00cfe8; color: #fff; } .nav-pill-info .nav-item .nav-link.active { color: #fff; background-color: #00cfe8 !important; } .progress-bar-info { background-color: rgba(0, 207, 232, 0.1); } .progress-bar-info .progress-bar { background-color: #00cfe8; } .chip-info { background-color: #00cfe8 !important; } .chip-info .chip-body { color: #fff !important; } .divider.divider-info .divider-text:before, .divider.divider-info .divider-text:after { border-color: #00cfe8 !important; } input[type="checkbox"].bg-info + .custom-control-label:before, input[type="radio"].bg-info + .custom-control-label:before { background-color: #00cfe8 !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #00cfe8 !important; } .vs-checkbox-info input:checked ~ .vs-checkbox { border-color: #00cfe8 !important; } .vs-checkbox-info input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #00cfe8 !important; } .vs-checkbox-info input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #00cfe8 !important; } .custom-switch-info .custom-control-input:checked ~ .custom-control-label::before { background-color: #00cfe8 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-info input:checked ~ .vs-radio .vs-radio--circle { background: #00cfe8 !important; box-shadow: 0 3px 12px 0 rgba(0, 207, 232, 0.4) !important; } .info.darken-1 { color: #00b8cf !important; } .bg-info.bg-darken-1 { background-color: #00b8cf !important; } .btn-info.btn-darken-1 { border-color: #00a1b5 !important; background-color: #00b8cf !important; } .btn-info.btn-darken-1:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-darken-1:focus, .btn-info.btn-darken-1:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-darken-1 { border-color: #00b8cf !important; color: #00b8cf !important; } .btn-outline-info.btn-outline-darken-1:hover { background-color: #00b8cf !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #00b8cf !important; } .border-info.border-darken-1 { border: 1px solid #00b8cf !important; } .border-top-info.border-top-darken-1 { border-top: 1px solid #00b8cf !important; } .border-bottom-info.border-bottom-darken-1 { border-bottom: 1px solid #00b8cf !important; } .border-left-info.border-left-darken-1 { border-left: 1px solid #00b8cf !important; } .border-right-info.border-right-darken-1 { border-right: 1px solid #00b8cf !important; } .overlay-info.overlay-darken-1 { background: #00b8cf; /* The Fallback */ background: rgba(0, 184, 207, 0.6); } .info.darken-2 { color: #00a1b5 !important; } .bg-info.bg-darken-2 { background-color: #00a1b5 !important; } .btn-info.btn-darken-2 { border-color: #00a1b5 !important; background-color: #00a1b5 !important; } .btn-info.btn-darken-2:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-darken-2:focus, .btn-info.btn-darken-2:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-darken-2 { border-color: #00a1b5 !important; color: #00a1b5 !important; } .btn-outline-info.btn-outline-darken-2:hover { background-color: #00a1b5 !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #00a1b5 !important; } .border-info.border-darken-2 { border: 1px solid #00a1b5 !important; } .border-top-info.border-top-darken-2 { border-top: 1px solid #00a1b5 !important; } .border-bottom-info.border-bottom-darken-2 { border-bottom: 1px solid #00a1b5 !important; } .border-left-info.border-left-darken-2 { border-left: 1px solid #00a1b5 !important; } .border-right-info.border-right-darken-2 { border-right: 1px solid #00a1b5 !important; } .overlay-info.overlay-darken-2 { background: #00a1b5; /* The Fallback */ background: rgba(0, 161, 181, 0.6); } .info.darken-3 { color: #008b9c !important; } .bg-info.bg-darken-3 { background-color: #008b9c !important; } .btn-info.btn-darken-3 { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-darken-3:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-darken-3:focus, .btn-info.btn-darken-3:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-darken-3 { border-color: #008b9c !important; color: #008b9c !important; } .btn-outline-info.btn-outline-darken-3:hover { background-color: #008b9c !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #008b9c !important; } .border-info.border-darken-3 { border: 1px solid #008b9c !important; } .border-top-info.border-top-darken-3 { border-top: 1px solid #008b9c !important; } .border-bottom-info.border-bottom-darken-3 { border-bottom: 1px solid #008b9c !important; } .border-left-info.border-left-darken-3 { border-left: 1px solid #008b9c !important; } .border-right-info.border-right-darken-3 { border-right: 1px solid #008b9c !important; } .overlay-info.overlay-darken-3 { background: #008b9c; /* The Fallback */ background: rgba(0, 139, 156, 0.6); } .info.darken-4 { color: #007482 !important; } .bg-info.bg-darken-4 { background-color: #007482 !important; } .btn-info.btn-darken-4 { border-color: #00a1b5 !important; background-color: #007482 !important; } .btn-info.btn-darken-4:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-darken-4:focus, .btn-info.btn-darken-4:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-darken-4 { border-color: #007482 !important; color: #007482 !important; } .btn-outline-info.btn-outline-darken-4:hover { background-color: #007482 !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #007482 !important; } .border-info.border-darken-4 { border: 1px solid #007482 !important; } .border-top-info.border-top-darken-4 { border-top: 1px solid #007482 !important; } .border-bottom-info.border-bottom-darken-4 { border-bottom: 1px solid #007482 !important; } .border-left-info.border-left-darken-4 { border-left: 1px solid #007482 !important; } .border-right-info.border-right-darken-4 { border-right: 1px solid #007482 !important; } .overlay-info.overlay-darken-4 { background: #007482; /* The Fallback */ background: rgba(0, 116, 130, 0.6); } .info.accent-1 { color: #FEFFFF !important; } .bg-info.bg-accent-1 { background-color: #FEFFFF !important; } .btn-info.btn-accent-1 { border-color: #00a1b5 !important; background-color: #FEFFFF !important; } .btn-info.btn-accent-1:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-accent-1:focus, .btn-info.btn-accent-1:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-accent-1 { border-color: #FEFFFF !important; color: #FEFFFF !important; } .btn-outline-info.btn-outline-accent-1:hover { background-color: #FEFFFF !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FEFFFF !important; } .border-info.border-accent-1 { border: 1px solid #FEFFFF !important; } .border-top-info.border-top-accent-1 { border-top: 1px solid #FEFFFF !important; } .border-bottom-info.border-bottom-accent-1 { border-bottom: 1px solid #FEFFFF !important; } .border-left-info.border-left-accent-1 { border-left: 1px solid #FEFFFF !important; } .border-right-info.border-right-accent-1 { border-right: 1px solid #FEFFFF !important; } .overlay-info.overlay-accent-1 { background: #FEFFFF; /* The Fallback */ background: rgba(254, 255, 255, 0.6); } .info.accent-2 { color: #CBF5FF !important; } .bg-info.bg-accent-2 { background-color: #CBF5FF !important; } .btn-info.btn-accent-2 { border-color: #00a1b5 !important; background-color: #CBF5FF !important; } .btn-info.btn-accent-2:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-accent-2:focus, .btn-info.btn-accent-2:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-accent-2 { border-color: #CBF5FF !important; color: #CBF5FF !important; } .btn-outline-info.btn-outline-accent-2:hover { background-color: #CBF5FF !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #CBF5FF !important; } .border-info.border-accent-2 { border: 1px solid #CBF5FF !important; } .border-top-info.border-top-accent-2 { border-top: 1px solid #CBF5FF !important; } .border-bottom-info.border-bottom-accent-2 { border-bottom: 1px solid #CBF5FF !important; } .border-left-info.border-left-accent-2 { border-left: 1px solid #CBF5FF !important; } .border-right-info.border-right-accent-2 { border-right: 1px solid #CBF5FF !important; } .overlay-info.overlay-accent-2 { background: #CBF5FF; /* The Fallback */ background: rgba(203, 245, 255, 0.6); } .info.accent-3 { color: #98ECFF !important; } .bg-info.bg-accent-3 { background-color: #98ECFF !important; } .btn-info.btn-accent-3 { border-color: #00a1b5 !important; background-color: #98ECFF !important; } .btn-info.btn-accent-3:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-accent-3:focus, .btn-info.btn-accent-3:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-accent-3 { border-color: #98ECFF !important; color: #98ECFF !important; } .btn-outline-info.btn-outline-accent-3:hover { background-color: #98ECFF !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #98ECFF !important; } .border-info.border-accent-3 { border: 1px solid #98ECFF !important; } .border-top-info.border-top-accent-3 { border-top: 1px solid #98ECFF !important; } .border-bottom-info.border-bottom-accent-3 { border-bottom: 1px solid #98ECFF !important; } .border-left-info.border-left-accent-3 { border-left: 1px solid #98ECFF !important; } .border-right-info.border-right-accent-3 { border-right: 1px solid #98ECFF !important; } .overlay-info.overlay-accent-3 { background: #98ECFF; /* The Fallback */ background: rgba(152, 236, 255, 0.6); } .info.accent-4 { color: #7FE7FF !important; } .bg-info.bg-accent-4 { background-color: #7FE7FF !important; } .btn-info.btn-accent-4 { border-color: #00a1b5 !important; background-color: #7FE7FF !important; } .btn-info.btn-accent-4:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-accent-4:focus, .btn-info.btn-accent-4:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-accent-4 { border-color: #7FE7FF !important; color: #7FE7FF !important; } .btn-outline-info.btn-outline-accent-4:hover { background-color: #7FE7FF !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #7FE7FF !important; } .border-info.border-accent-4 { border: 1px solid #7FE7FF !important; } .border-top-info.border-top-accent-4 { border-top: 1px solid #7FE7FF !important; } .border-bottom-info.border-bottom-accent-4 { border-bottom: 1px solid #7FE7FF !important; } .border-left-info.border-left-accent-4 { border-left: 1px solid #7FE7FF !important; } .border-right-info.border-right-accent-4 { border-right: 1px solid #7FE7FF !important; } .overlay-info.overlay-accent-4 { background: #7FE7FF; /* The Fallback */ background: rgba(127, 231, 255, 0.6); } .info.gradient-bg { color: #640064 !important; } .bg-info.bg-gradient-bg { background-color: #640064 !important; } .btn-info.btn-gradient-bg { border-color: #00a1b5 !important; background-color: #640064 !important; } .btn-info.btn-gradient-bg:hover { border-color: #00a1b5 !important; background-color: #008b9c !important; } .btn-info.btn-gradient-bg:focus, .btn-info.btn-gradient-bg:active { border-color: #008b9c !important; background-color: #007482 !important; } .btn-outline-info.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-info.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-info { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-info.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-info.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-info.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-info.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-info.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-info.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } .warning.gradient-light { color: #fff487 !important; } .bg-warning.bg-gradient-light { background-color: #fff487 !important; } .btn-warning.btn-gradient-light { border-color: #ff8510 !important; background-color: #fff487 !important; } .btn-warning.btn-gradient-light:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-gradient-light:focus, .btn-warning.btn-gradient-light:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-gradient-light { border-color: #fff487 !important; color: #fff487 !important; } .btn-outline-warning.btn-outline-gradient-light:hover { background-color: #fff487 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #fff487 !important; } .border-warning.border-gradient-light { border: 1px solid #fff487 !important; } .border-top-warning.border-top-gradient-light { border-top: 1px solid #fff487 !important; } .border-bottom-warning.border-bottom-gradient-light { border-bottom: 1px solid #fff487 !important; } .border-left-warning.border-left-gradient-light { border-left: 1px solid #fff487 !important; } .border-right-warning.border-right-gradient-light { border-right: 1px solid #fff487 !important; } .overlay-warning.overlay-gradient-light { background: #fff487; /* The Fallback */ background: rgba(255, 244, 135, 0.6); } .warning.light-badge { color: #ffe0c3 !important; } .bg-warning.bg-light-badge { background-color: #ffe0c3 !important; } .btn-warning.btn-light-badge { border-color: #ff8510 !important; background-color: #ffe0c3 !important; } .btn-warning.btn-light-badge:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-light-badge:focus, .btn-warning.btn-light-badge:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-light-badge { border-color: #ffe0c3 !important; color: #ffe0c3 !important; } .btn-outline-warning.btn-outline-light-badge:hover { background-color: #ffe0c3 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffe0c3 !important; } .border-warning.border-light-badge { border: 1px solid #ffe0c3 !important; } .border-top-warning.border-top-light-badge { border-top: 1px solid #ffe0c3 !important; } .border-bottom-warning.border-bottom-light-badge { border-bottom: 1px solid #ffe0c3 !important; } .border-left-warning.border-left-light-badge { border-left: 1px solid #ffe0c3 !important; } .border-right-warning.border-right-light-badge { border-right: 1px solid #ffe0c3 !important; } .overlay-warning.overlay-light-badge { background: #ffe0c3; /* The Fallback */ background: rgba(255, 224, 195, 0.6); } .warning.lighten-5 { color: #ffe0c3 !important; } .bg-warning.bg-lighten-5 { background-color: #ffe0c3 !important; } .btn-warning.btn-lighten-5 { border-color: #ff8510 !important; background-color: #ffe0c3 !important; } .btn-warning.btn-lighten-5:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-lighten-5:focus, .btn-warning.btn-lighten-5:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-lighten-5 { border-color: #ffe0c3 !important; color: #ffe0c3 !important; } .btn-outline-warning.btn-outline-lighten-5:hover { background-color: #ffe0c3 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffe0c3 !important; } .border-warning.border-lighten-5 { border: 1px solid #ffe0c3 !important; } .border-top-warning.border-top-lighten-5 { border-top: 1px solid #ffe0c3 !important; } .border-bottom-warning.border-bottom-lighten-5 { border-bottom: 1px solid #ffe0c3 !important; } .border-left-warning.border-left-lighten-5 { border-left: 1px solid #ffe0c3 !important; } .border-right-warning.border-right-lighten-5 { border-right: 1px solid #ffe0c3 !important; } .overlay-warning.overlay-lighten-5 { background: #ffe0c3; /* The Fallback */ background: rgba(255, 224, 195, 0.6); } .warning.lighten-4 { color: #ffd3a9 !important; } .bg-warning.bg-lighten-4 { background-color: #ffd3a9 !important; } .btn-warning.btn-lighten-4 { border-color: #ff8510 !important; background-color: #ffd3a9 !important; } .btn-warning.btn-lighten-4:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-lighten-4:focus, .btn-warning.btn-lighten-4:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-lighten-4 { border-color: #ffd3a9 !important; color: #ffd3a9 !important; } .btn-outline-warning.btn-outline-lighten-4:hover { background-color: #ffd3a9 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffd3a9 !important; } .border-warning.border-lighten-4 { border: 1px solid #ffd3a9 !important; } .border-top-warning.border-top-lighten-4 { border-top: 1px solid #ffd3a9 !important; } .border-bottom-warning.border-bottom-lighten-4 { border-bottom: 1px solid #ffd3a9 !important; } .border-left-warning.border-left-lighten-4 { border-left: 1px solid #ffd3a9 !important; } .border-right-warning.border-right-lighten-4 { border-right: 1px solid #ffd3a9 !important; } .overlay-warning.overlay-lighten-4 { background: #ffd3a9; /* The Fallback */ background: rgba(255, 211, 169, 0.6); } .warning.lighten-3 { color: #ffc690 !important; } .bg-warning.bg-lighten-3 { background-color: #ffc690 !important; } .btn-warning.btn-lighten-3 { border-color: #ff8510 !important; background-color: #ffc690 !important; } .btn-warning.btn-lighten-3:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-lighten-3:focus, .btn-warning.btn-lighten-3:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-lighten-3 { border-color: #ffc690 !important; color: #ffc690 !important; } .btn-outline-warning.btn-outline-lighten-3:hover { background-color: #ffc690 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffc690 !important; } .border-warning.border-lighten-3 { border: 1px solid #ffc690 !important; } .border-top-warning.border-top-lighten-3 { border-top: 1px solid #ffc690 !important; } .border-bottom-warning.border-bottom-lighten-3 { border-bottom: 1px solid #ffc690 !important; } .border-left-warning.border-left-lighten-3 { border-left: 1px solid #ffc690 !important; } .border-right-warning.border-right-lighten-3 { border-right: 1px solid #ffc690 !important; } .overlay-warning.overlay-lighten-3 { background: #ffc690; /* The Fallback */ background: rgba(255, 198, 144, 0.6); } .warning.lighten-2 { color: #ffb976 !important; } .bg-warning.bg-lighten-2 { background-color: #ffb976 !important; } .btn-warning.btn-lighten-2 { border-color: #ff8510 !important; background-color: #ffb976 !important; } .btn-warning.btn-lighten-2:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-lighten-2:focus, .btn-warning.btn-lighten-2:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-lighten-2 { border-color: #ffb976 !important; color: #ffb976 !important; } .btn-outline-warning.btn-outline-lighten-2:hover { background-color: #ffb976 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffb976 !important; } .border-warning.border-lighten-2 { border: 1px solid #ffb976 !important; } .border-top-warning.border-top-lighten-2 { border-top: 1px solid #ffb976 !important; } .border-bottom-warning.border-bottom-lighten-2 { border-bottom: 1px solid #ffb976 !important; } .border-left-warning.border-left-lighten-2 { border-left: 1px solid #ffb976 !important; } .border-right-warning.border-right-lighten-2 { border-right: 1px solid #ffb976 !important; } .overlay-warning.overlay-lighten-2 { background: #ffb976; /* The Fallback */ background: rgba(255, 185, 118, 0.6); } .warning.lighten-1 { color: #ffac5d !important; } .bg-warning.bg-lighten-1 { background-color: #ffac5d !important; } .btn-warning.btn-lighten-1 { border-color: #ff8510 !important; background-color: #ffac5d !important; } .btn-warning.btn-lighten-1:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-lighten-1:focus, .btn-warning.btn-lighten-1:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-lighten-1 { border-color: #ffac5d !important; color: #ffac5d !important; } .btn-outline-warning.btn-outline-lighten-1:hover { background-color: #ffac5d !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ffac5d !important; } .border-warning.border-lighten-1 { border: 1px solid #ffac5d !important; } .border-top-warning.border-top-lighten-1 { border-top: 1px solid #ffac5d !important; } .border-bottom-warning.border-bottom-lighten-1 { border-bottom: 1px solid #ffac5d !important; } .border-left-warning.border-left-lighten-1 { border-left: 1px solid #ffac5d !important; } .border-right-warning.border-right-lighten-1 { border-right: 1px solid #ffac5d !important; } .overlay-warning.overlay-lighten-1 { background: #ffac5d; /* The Fallback */ background: rgba(255, 172, 93, 0.6); } .warning { color: #ff9f43 !important; } .bg-warning { background-color: #ff9f43 !important; } .bg-warning .card-header, .bg-warning .card-footer { background-color: transparent; } .alert-warning { background: rgba(255, 159, 67, 0.2) !important; color: #ff9f43 !important; } .alert-warning .alert-heading { box-shadow: rgba(255, 159, 67, 0.4) 0px 6px 15px -7px; } .alert-warning .alert-link { color: #ff922a !important; } .bg-rgba-warning { background: rgba(255, 159, 67, 0.15) !important; } .border-warning { border: 1px solid #ff9f43 !important; } .border-top-warning { border-top: 1px solid #ff9f43; } .border-bottom-warning { border-bottom: 1px solid #ff9f43; } .border-left-warning { border-left: 1px solid #ff9f43; } .border-right-warning { border-right: 1px solid #ff9f43; } .bg-warning.badge-glow, .border-warning.badge-glow, .badge-warning.badge-glow { box-shadow: 0px 0px 10px #ff9f43; } .badge.badge-warning { background-color: #ff9f43; } .badge.badge-light-warning { background-color: #ffe0c3; color: #ff9f43 !important; font-weight: 500; } .overlay-warning { background: #ff9f43; /* The Fallback */ background: rgba(255, 159, 67, 0.6); } .btn-warning { border-color: #ff8510 !important; background-color: #ff9f43 !important; color: #fff; } .btn-warning:hover { border-color: #ff922a !important; color: #fff !important; box-shadow: 0 8px 25px -8px #ff9f43; } .btn-warning:focus, .btn-warning:active { color: #fff !important; } .btn-flat-warning { background-color: transparent; color: #ff9f43; } .btn-flat-warning:hover { color: #ff9f43; background-color: rgba(255, 159, 67, 0.1); } .btn-flat-warning:active, .btn-flat-warning:focus { background-color: #ff9f43; color: #fff !important; } .btn-relief-warning { background-color: #ff9f43; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-warning:hover { color: #fff; } .btn-relief-warning:active, .btn-relief-warning:focus { outline: none; transform: translateY(3px); } .btn-outline-warning { border: 1px solid #ff9f43; background-color: transparent; color: #ff9f43; } .btn-outline-warning:hover { background-color: rgba(255, 159, 67, 0.08); color: #ff9f43; } .btn-outline-warning:active { color: #fff !important; } .btn-warning ~ .dropdown-menu .dropdown-item.active, .btn-outline-warning ~ .dropdown-menu .dropdown-item.active, .btn-flat-warning ~ .dropdown-menu .dropdown-item.active { background-color: #ff9f43; color: #fff; } .btn-warning ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-warning ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-warning ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-warning ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-warning ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-warning ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #ff9f43; } .dropdown.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:hover i { color: #ff9f43; } .dropdown.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-warning ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-warning ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-warning ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-warning { background-color: #ff9f43; } .pagination-warning .page-item.active .page-link { background: #ff9f43; color: #fff; } .pagination-warning .page-item.active .page-link:hover { color: #fff; } .pagination-warning .page-item .page-link:hover { color: #ff9f43; } .pagination-warning .page-item.prev-item .page-link:hover, .pagination-warning .page-item.next-item .page-link:hover { background: #ff9f43; color: #fff; } .nav-pill-warning .nav-item .nav-link.active { color: #fff; background-color: #ff9f43 !important; } .progress-bar-warning { background-color: rgba(255, 159, 67, 0.1); } .progress-bar-warning .progress-bar { background-color: #ff9f43; } .chip-warning { background-color: #ff9f43 !important; } .chip-warning .chip-body { color: #fff !important; } .divider.divider-warning .divider-text:before, .divider.divider-warning .divider-text:after { border-color: #ff9f43 !important; } input[type="checkbox"].bg-warning + .custom-control-label:before, input[type="radio"].bg-warning + .custom-control-label:before { background-color: #ff9f43 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ff9f43 !important; } .vs-checkbox-warning input:checked ~ .vs-checkbox { border-color: #ff9f43 !important; } .vs-checkbox-warning input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #ff9f43 !important; } .vs-checkbox-warning input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #ff9f43 !important; } .custom-switch-warning .custom-control-input:checked ~ .custom-control-label::before { background-color: #ff9f43 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-warning input:checked ~ .vs-radio .vs-radio--circle { background: #ff9f43 !important; box-shadow: 0 3px 12px 0 rgba(255, 159, 67, 0.4) !important; } .warning.darken-1 { color: #ff922a !important; } .bg-warning.bg-darken-1 { background-color: #ff922a !important; } .btn-warning.btn-darken-1 { border-color: #ff8510 !important; background-color: #ff922a !important; } .btn-warning.btn-darken-1:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-darken-1:focus, .btn-warning.btn-darken-1:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-darken-1 { border-color: #ff922a !important; color: #ff922a !important; } .btn-outline-warning.btn-outline-darken-1:hover { background-color: #ff922a !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ff922a !important; } .border-warning.border-darken-1 { border: 1px solid #ff922a !important; } .border-top-warning.border-top-darken-1 { border-top: 1px solid #ff922a !important; } .border-bottom-warning.border-bottom-darken-1 { border-bottom: 1px solid #ff922a !important; } .border-left-warning.border-left-darken-1 { border-left: 1px solid #ff922a !important; } .border-right-warning.border-right-darken-1 { border-right: 1px solid #ff922a !important; } .overlay-warning.overlay-darken-1 { background: #ff922a; /* The Fallback */ background: rgba(255, 146, 42, 0.6); } .warning.darken-2 { color: #ff8510 !important; } .bg-warning.bg-darken-2 { background-color: #ff8510 !important; } .btn-warning.btn-darken-2 { border-color: #ff8510 !important; background-color: #ff8510 !important; } .btn-warning.btn-darken-2:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-darken-2:focus, .btn-warning.btn-darken-2:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-darken-2 { border-color: #ff8510 !important; color: #ff8510 !important; } .btn-outline-warning.btn-outline-darken-2:hover { background-color: #ff8510 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ff8510 !important; } .border-warning.border-darken-2 { border: 1px solid #ff8510 !important; } .border-top-warning.border-top-darken-2 { border-top: 1px solid #ff8510 !important; } .border-bottom-warning.border-bottom-darken-2 { border-bottom: 1px solid #ff8510 !important; } .border-left-warning.border-left-darken-2 { border-left: 1px solid #ff8510 !important; } .border-right-warning.border-right-darken-2 { border-right: 1px solid #ff8510 !important; } .overlay-warning.overlay-darken-2 { background: #ff8510; /* The Fallback */ background: rgba(255, 133, 16, 0.6); } .warning.darken-3 { color: #f67800 !important; } .bg-warning.bg-darken-3 { background-color: #f67800 !important; } .btn-warning.btn-darken-3 { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-darken-3:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-darken-3:focus, .btn-warning.btn-darken-3:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-darken-3 { border-color: #f67800 !important; color: #f67800 !important; } .btn-outline-warning.btn-outline-darken-3:hover { background-color: #f67800 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f67800 !important; } .border-warning.border-darken-3 { border: 1px solid #f67800 !important; } .border-top-warning.border-top-darken-3 { border-top: 1px solid #f67800 !important; } .border-bottom-warning.border-bottom-darken-3 { border-bottom: 1px solid #f67800 !important; } .border-left-warning.border-left-darken-3 { border-left: 1px solid #f67800 !important; } .border-right-warning.border-right-darken-3 { border-right: 1px solid #f67800 !important; } .overlay-warning.overlay-darken-3 { background: #f67800; /* The Fallback */ background: rgba(246, 120, 0, 0.6); } .warning.darken-4 { color: #dc6c00 !important; } .bg-warning.bg-darken-4 { background-color: #dc6c00 !important; } .btn-warning.btn-darken-4 { border-color: #ff8510 !important; background-color: #dc6c00 !important; } .btn-warning.btn-darken-4:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-darken-4:focus, .btn-warning.btn-darken-4:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-darken-4 { border-color: #dc6c00 !important; color: #dc6c00 !important; } .btn-outline-warning.btn-outline-darken-4:hover { background-color: #dc6c00 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #dc6c00 !important; } .border-warning.border-darken-4 { border: 1px solid #dc6c00 !important; } .border-top-warning.border-top-darken-4 { border-top: 1px solid #dc6c00 !important; } .border-bottom-warning.border-bottom-darken-4 { border-bottom: 1px solid #dc6c00 !important; } .border-left-warning.border-left-darken-4 { border-left: 1px solid #dc6c00 !important; } .border-right-warning.border-right-darken-4 { border-right: 1px solid #dc6c00 !important; } .overlay-warning.overlay-darken-4 { background: #dc6c00; /* The Fallback */ background: rgba(220, 108, 0, 0.6); } .warning.accent-1 { color: #FFF5EF !important; } .bg-warning.bg-accent-1 { background-color: #FFF5EF !important; } .btn-warning.btn-accent-1 { border-color: #ff8510 !important; background-color: #FFF5EF !important; } .btn-warning.btn-accent-1:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-accent-1:focus, .btn-warning.btn-accent-1:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-accent-1 { border-color: #FFF5EF !important; color: #FFF5EF !important; } .btn-outline-warning.btn-outline-accent-1:hover { background-color: #FFF5EF !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFF5EF !important; } .border-warning.border-accent-1 { border: 1px solid #FFF5EF !important; } .border-top-warning.border-top-accent-1 { border-top: 1px solid #FFF5EF !important; } .border-bottom-warning.border-bottom-accent-1 { border-bottom: 1px solid #FFF5EF !important; } .border-left-warning.border-left-accent-1 { border-left: 1px solid #FFF5EF !important; } .border-right-warning.border-right-accent-1 { border-right: 1px solid #FFF5EF !important; } .overlay-warning.overlay-accent-1 { background: #FFF5EF; /* The Fallback */ background: rgba(255, 245, 239, 0.6); } .warning.accent-2 { color: #FFE5D8 !important; } .bg-warning.bg-accent-2 { background-color: #FFE5D8 !important; } .btn-warning.btn-accent-2 { border-color: #ff8510 !important; background-color: #FFE5D8 !important; } .btn-warning.btn-accent-2:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-accent-2:focus, .btn-warning.btn-accent-2:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-accent-2 { border-color: #FFE5D8 !important; color: #FFE5D8 !important; } .btn-outline-warning.btn-outline-accent-2:hover { background-color: #FFE5D8 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFE5D8 !important; } .border-warning.border-accent-2 { border: 1px solid #FFE5D8 !important; } .border-top-warning.border-top-accent-2 { border-top: 1px solid #FFE5D8 !important; } .border-bottom-warning.border-bottom-accent-2 { border-bottom: 1px solid #FFE5D8 !important; } .border-left-warning.border-left-accent-2 { border-left: 1px solid #FFE5D8 !important; } .border-right-warning.border-right-accent-2 { border-right: 1px solid #FFE5D8 !important; } .overlay-warning.overlay-accent-2 { background: #FFE5D8; /* The Fallback */ background: rgba(255, 229, 216, 0.6); } .warning.accent-3 { color: #FFF6F3 !important; } .bg-warning.bg-accent-3 { background-color: #FFF6F3 !important; } .btn-warning.btn-accent-3 { border-color: #ff8510 !important; background-color: #FFF6F3 !important; } .btn-warning.btn-accent-3:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-accent-3:focus, .btn-warning.btn-accent-3:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-accent-3 { border-color: #FFF6F3 !important; color: #FFF6F3 !important; } .btn-outline-warning.btn-outline-accent-3:hover { background-color: #FFF6F3 !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFF6F3 !important; } .border-warning.border-accent-3 { border: 1px solid #FFF6F3 !important; } .border-top-warning.border-top-accent-3 { border-top: 1px solid #FFF6F3 !important; } .border-bottom-warning.border-bottom-accent-3 { border-bottom: 1px solid #FFF6F3 !important; } .border-left-warning.border-left-accent-3 { border-left: 1px solid #FFF6F3 !important; } .border-right-warning.border-right-accent-3 { border-right: 1px solid #FFF6F3 !important; } .overlay-warning.overlay-accent-3 { background: #FFF6F3; /* The Fallback */ background: rgba(255, 246, 243, 0.6); } .warning.accent-4 { color: #FFE3DA !important; } .bg-warning.bg-accent-4 { background-color: #FFE3DA !important; } .btn-warning.btn-accent-4 { border-color: #ff8510 !important; background-color: #FFE3DA !important; } .btn-warning.btn-accent-4:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-accent-4:focus, .btn-warning.btn-accent-4:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-accent-4 { border-color: #FFE3DA !important; color: #FFE3DA !important; } .btn-outline-warning.btn-outline-accent-4:hover { background-color: #FFE3DA !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFE3DA !important; } .border-warning.border-accent-4 { border: 1px solid #FFE3DA !important; } .border-top-warning.border-top-accent-4 { border-top: 1px solid #FFE3DA !important; } .border-bottom-warning.border-bottom-accent-4 { border-bottom: 1px solid #FFE3DA !important; } .border-left-warning.border-left-accent-4 { border-left: 1px solid #FFE3DA !important; } .border-right-warning.border-right-accent-4 { border-right: 1px solid #FFE3DA !important; } .overlay-warning.overlay-accent-4 { background: #FFE3DA; /* The Fallback */ background: rgba(255, 227, 218, 0.6); } .warning.gradient-bg { color: #fafafa !important; } .bg-warning.bg-gradient-bg { background-color: #fafafa !important; } .btn-warning.btn-gradient-bg { border-color: #ff8510 !important; background-color: #fafafa !important; } .btn-warning.btn-gradient-bg:hover { border-color: #ff8510 !important; background-color: #f67800 !important; } .btn-warning.btn-gradient-bg:focus, .btn-warning.btn-gradient-bg:active { border-color: #f67800 !important; background-color: #dc6c00 !important; } .btn-outline-warning.btn-outline-gradient-bg { border-color: #fafafa !important; color: #fafafa !important; } .btn-outline-warning.btn-outline-gradient-bg:hover { background-color: #fafafa !important; } input:focus ~ .bg-warning { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #fafafa !important; } .border-warning.border-gradient-bg { border: 1px solid #fafafa !important; } .border-top-warning.border-top-gradient-bg { border-top: 1px solid #fafafa !important; } .border-bottom-warning.border-bottom-gradient-bg { border-bottom: 1px solid #fafafa !important; } .border-left-warning.border-left-gradient-bg { border-left: 1px solid #fafafa !important; } .border-right-warning.border-right-gradient-bg { border-right: 1px solid #fafafa !important; } .overlay-warning.overlay-gradient-bg { background: #fafafa; /* The Fallback */ background: rgba(250, 250, 250, 0.6); } .danger.gradient-light { color: #f9b789 !important; } .bg-danger.bg-gradient-light { background-color: #f9b789 !important; } .btn-danger.btn-gradient-light { border-color: #e42728 !important; background-color: #f9b789 !important; } .btn-danger.btn-gradient-light:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-gradient-light:focus, .btn-danger.btn-gradient-light:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-gradient-light { border-color: #f9b789 !important; color: #f9b789 !important; } .btn-outline-danger.btn-outline-gradient-light:hover { background-color: #f9b789 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f9b789 !important; } .border-danger.border-gradient-light { border: 1px solid #f9b789 !important; } .border-top-danger.border-top-gradient-light { border-top: 1px solid #f9b789 !important; } .border-bottom-danger.border-bottom-gradient-light { border-bottom: 1px solid #f9b789 !important; } .border-left-danger.border-left-gradient-light { border-left: 1px solid #f9b789 !important; } .border-right-danger.border-right-gradient-light { border-right: 1px solid #f9b789 !important; } .overlay-danger.overlay-gradient-light { background: #f9b789; /* The Fallback */ background: rgba(249, 183, 137, 0.6); } .danger.light-badge { color: #fbdcdc !important; } .bg-danger.bg-light-badge { background-color: #fbdcdc !important; } .btn-danger.btn-light-badge { border-color: #e42728 !important; background-color: #fbdcdc !important; } .btn-danger.btn-light-badge:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-light-badge:focus, .btn-danger.btn-light-badge:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-light-badge { border-color: #fbdcdc !important; color: #fbdcdc !important; } .btn-outline-danger.btn-outline-light-badge:hover { background-color: #fbdcdc !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #fbdcdc !important; } .border-danger.border-light-badge { border: 1px solid #fbdcdc !important; } .border-top-danger.border-top-light-badge { border-top: 1px solid #fbdcdc !important; } .border-bottom-danger.border-bottom-light-badge { border-bottom: 1px solid #fbdcdc !important; } .border-left-danger.border-left-light-badge { border-left: 1px solid #fbdcdc !important; } .border-right-danger.border-right-light-badge { border-right: 1px solid #fbdcdc !important; } .overlay-danger.overlay-light-badge { background: #fbdcdc; /* The Fallback */ background: rgba(251, 220, 220, 0.6); } .danger.lighten-5 { color: #f8c6c6 !important; } .bg-danger.bg-lighten-5 { background-color: #f8c6c6 !important; } .btn-danger.btn-lighten-5 { border-color: #e42728 !important; background-color: #f8c6c6 !important; } .btn-danger.btn-lighten-5:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-lighten-5:focus, .btn-danger.btn-lighten-5:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-lighten-5 { border-color: #f8c6c6 !important; color: #f8c6c6 !important; } .btn-outline-danger.btn-outline-lighten-5:hover { background-color: #f8c6c6 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f8c6c6 !important; } .border-danger.border-lighten-5 { border: 1px solid #f8c6c6 !important; } .border-top-danger.border-top-lighten-5 { border-top: 1px solid #f8c6c6 !important; } .border-bottom-danger.border-bottom-lighten-5 { border-bottom: 1px solid #f8c6c6 !important; } .border-left-danger.border-left-lighten-5 { border-left: 1px solid #f8c6c6 !important; } .border-right-danger.border-right-lighten-5 { border-right: 1px solid #f8c6c6 !important; } .overlay-danger.overlay-lighten-5 { background: #f8c6c6; /* The Fallback */ background: rgba(248, 198, 198, 0.6); } .danger.lighten-4 { color: #f5afaf !important; } .bg-danger.bg-lighten-4 { background-color: #f5afaf !important; } .btn-danger.btn-lighten-4 { border-color: #e42728 !important; background-color: #f5afaf !important; } .btn-danger.btn-lighten-4:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-lighten-4:focus, .btn-danger.btn-lighten-4:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-lighten-4 { border-color: #f5afaf !important; color: #f5afaf !important; } .btn-outline-danger.btn-outline-lighten-4:hover { background-color: #f5afaf !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f5afaf !important; } .border-danger.border-lighten-4 { border: 1px solid #f5afaf !important; } .border-top-danger.border-top-lighten-4 { border-top: 1px solid #f5afaf !important; } .border-bottom-danger.border-bottom-lighten-4 { border-bottom: 1px solid #f5afaf !important; } .border-left-danger.border-left-lighten-4 { border-left: 1px solid #f5afaf !important; } .border-right-danger.border-right-lighten-4 { border-right: 1px solid #f5afaf !important; } .overlay-danger.overlay-lighten-4 { background: #f5afaf; /* The Fallback */ background: rgba(245, 175, 175, 0.6); } .danger.lighten-3 { color: #f29899 !important; } .bg-danger.bg-lighten-3 { background-color: #f29899 !important; } .btn-danger.btn-lighten-3 { border-color: #e42728 !important; background-color: #f29899 !important; } .btn-danger.btn-lighten-3:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-lighten-3:focus, .btn-danger.btn-lighten-3:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-lighten-3 { border-color: #f29899 !important; color: #f29899 !important; } .btn-outline-danger.btn-outline-lighten-3:hover { background-color: #f29899 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f29899 !important; } .border-danger.border-lighten-3 { border: 1px solid #f29899 !important; } .border-top-danger.border-top-lighten-3 { border-top: 1px solid #f29899 !important; } .border-bottom-danger.border-bottom-lighten-3 { border-bottom: 1px solid #f29899 !important; } .border-left-danger.border-left-lighten-3 { border-left: 1px solid #f29899 !important; } .border-right-danger.border-right-lighten-3 { border-right: 1px solid #f29899 !important; } .overlay-danger.overlay-lighten-3 { background: #f29899; /* The Fallback */ background: rgba(242, 152, 153, 0.6); } .danger.lighten-2 { color: #f08182 !important; } .bg-danger.bg-lighten-2 { background-color: #f08182 !important; } .btn-danger.btn-lighten-2 { border-color: #e42728 !important; background-color: #f08182 !important; } .btn-danger.btn-lighten-2:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-lighten-2:focus, .btn-danger.btn-lighten-2:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-lighten-2 { border-color: #f08182 !important; color: #f08182 !important; } .btn-outline-danger.btn-outline-lighten-2:hover { background-color: #f08182 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #f08182 !important; } .border-danger.border-lighten-2 { border: 1px solid #f08182 !important; } .border-top-danger.border-top-lighten-2 { border-top: 1px solid #f08182 !important; } .border-bottom-danger.border-bottom-lighten-2 { border-bottom: 1px solid #f08182 !important; } .border-left-danger.border-left-lighten-2 { border-left: 1px solid #f08182 !important; } .border-right-danger.border-right-lighten-2 { border-right: 1px solid #f08182 !important; } .overlay-danger.overlay-lighten-2 { background: #f08182; /* The Fallback */ background: rgba(240, 129, 130, 0.6); } .danger.lighten-1 { color: #ed6b6c !important; } .bg-danger.bg-lighten-1 { background-color: #ed6b6c !important; } .btn-danger.btn-lighten-1 { border-color: #e42728 !important; background-color: #ed6b6c !important; } .btn-danger.btn-lighten-1:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-lighten-1:focus, .btn-danger.btn-lighten-1:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-lighten-1 { border-color: #ed6b6c !important; color: #ed6b6c !important; } .btn-outline-danger.btn-outline-lighten-1:hover { background-color: #ed6b6c !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ed6b6c !important; } .border-danger.border-lighten-1 { border: 1px solid #ed6b6c !important; } .border-top-danger.border-top-lighten-1 { border-top: 1px solid #ed6b6c !important; } .border-bottom-danger.border-bottom-lighten-1 { border-bottom: 1px solid #ed6b6c !important; } .border-left-danger.border-left-lighten-1 { border-left: 1px solid #ed6b6c !important; } .border-right-danger.border-right-lighten-1 { border-right: 1px solid #ed6b6c !important; } .overlay-danger.overlay-lighten-1 { background: #ed6b6c; /* The Fallback */ background: rgba(237, 107, 108, 0.6); } .danger { color: #ea5455 !important; } .bg-danger { background-color: #ea5455 !important; } .bg-danger .card-header, .bg-danger .card-footer { background-color: transparent; } .alert-danger { background: rgba(234, 84, 85, 0.2) !important; color: #ea5455 !important; } .alert-danger .alert-heading { box-shadow: rgba(234, 84, 85, 0.4) 0px 6px 15px -7px; } .alert-danger .alert-link { color: #e73d3e !important; } .bg-rgba-danger { background: rgba(234, 84, 85, 0.15) !important; } .border-danger { border: 1px solid #ea5455 !important; } .border-top-danger { border-top: 1px solid #ea5455; } .border-bottom-danger { border-bottom: 1px solid #ea5455; } .border-left-danger { border-left: 1px solid #ea5455; } .border-right-danger { border-right: 1px solid #ea5455; } .bg-danger.badge-glow, .border-danger.badge-glow, .badge-danger.badge-glow { box-shadow: 0px 0px 10px #ea5455; } .badge.badge-danger { background-color: #ea5455; } .badge.badge-light-danger { background-color: #fbdcdc; color: #ea5455 !important; font-weight: 500; } .overlay-danger { background: #ea5455; /* The Fallback */ background: rgba(234, 84, 85, 0.6); } .btn-danger { border-color: #e42728 !important; background-color: #ea5455 !important; color: #fff; } .btn-danger:hover { border-color: #e73d3e !important; color: #fff !important; box-shadow: 0 8px 25px -8px #ea5455; } .btn-danger:focus, .btn-danger:active { color: #fff !important; } .btn-flat-danger { background-color: transparent; color: #ea5455; } .btn-flat-danger:hover { color: #ea5455; background-color: rgba(234, 84, 85, 0.1); } .btn-flat-danger:active, .btn-flat-danger:focus { background-color: #ea5455; color: #fff !important; } .btn-relief-danger { background-color: #ea5455; box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.2); color: #fff; } .btn-relief-danger:hover { color: #fff; } .btn-relief-danger:active, .btn-relief-danger:focus { outline: none; transform: translateY(3px); } .btn-outline-danger { border: 1px solid #ea5455; background-color: transparent; color: #ea5455; } .btn-outline-danger:hover { background-color: rgba(234, 84, 85, 0.08); color: #ea5455; } .btn-outline-danger:active { color: #fff !important; } .btn-danger ~ .dropdown-menu .dropdown-item.active, .btn-outline-danger ~ .dropdown-menu .dropdown-item.active, .btn-flat-danger ~ .dropdown-menu .dropdown-item.active { background-color: #ea5455; color: #fff; } .btn-danger ~ .dropdown-menu .dropdown-item.active:hover, .btn-outline-danger ~ .dropdown-menu .dropdown-item.active:hover, .btn-flat-danger ~ .dropdown-menu .dropdown-item.active:hover { color: #fff; } .btn-danger ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-outline-danger ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover, .btn-flat-danger ~ .dropdown-menu .dropdown-item:not(.active):not(:active):hover { color: #ea5455; } .dropdown.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:hover i, .dropdown.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:hover i, .dropup.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:hover i, .dropright.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:hover i, .dropleft.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:hover i { color: #ea5455; } .dropdown.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:active i, .dropdown.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:active i, .dropup.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:active i, .dropright.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-danger ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-outline-danger ~ .dropdown-menu .dropdown-item:active i, .dropleft.dropdown-icon-wrapper .btn-flat-danger ~ .dropdown-menu .dropdown-item:active i { color: #fff; } .bullet.bullet-danger { background-color: #ea5455; } .pagination-danger .page-item.active .page-link { background: #ea5455; color: #fff; } .pagination-danger .page-item.active .page-link:hover { color: #fff; } .pagination-danger .page-item .page-link:hover { color: #ea5455; } .pagination-danger .page-item.prev-item .page-link:hover, .pagination-danger .page-item.next-item .page-link:hover { background: #ea5455; color: #fff; } .nav-pill-danger .nav-item .nav-link.active { color: #fff; background-color: #ea5455 !important; } .progress-bar-danger { background-color: rgba(234, 84, 85, 0.1); } .progress-bar-danger .progress-bar { background-color: #ea5455; } .chip-danger { background-color: #ea5455 !important; } .chip-danger .chip-body { color: #fff !important; } .divider.divider-danger .divider-text:before, .divider.divider-danger .divider-text:after { border-color: #ea5455 !important; } input[type="checkbox"].bg-danger + .custom-control-label:before, input[type="radio"].bg-danger + .custom-control-label:before { background-color: #ea5455 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #ea5455 !important; } .vs-checkbox-danger input:checked ~ .vs-checkbox { border-color: #ea5455 !important; } .vs-checkbox-danger input:checked ~ .vs-checkbox .vs-checkbox--check { background-color: #ea5455 !important; } .vs-checkbox-danger input:active:checked + .vs-checkbox .vs-checkbox--check { background-color: #ea5455 !important; } .custom-switch-danger .custom-control-input:checked ~ .custom-control-label::before { background-color: #ea5455 !important; color: #fff; transition: all .2s ease-out; } .vs-radio-danger input:checked ~ .vs-radio .vs-radio--circle { background: #ea5455 !important; box-shadow: 0 3px 12px 0 rgba(234, 84, 85, 0.4) !important; } .danger.darken-1 { color: #e73d3e !important; } .bg-danger.bg-darken-1 { background-color: #e73d3e !important; } .btn-danger.btn-darken-1 { border-color: #e42728 !important; background-color: #e73d3e !important; } .btn-danger.btn-darken-1:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-darken-1:focus, .btn-danger.btn-darken-1:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-darken-1 { border-color: #e73d3e !important; color: #e73d3e !important; } .btn-outline-danger.btn-outline-darken-1:hover { background-color: #e73d3e !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #e73d3e !important; } .border-danger.border-darken-1 { border: 1px solid #e73d3e !important; } .border-top-danger.border-top-darken-1 { border-top: 1px solid #e73d3e !important; } .border-bottom-danger.border-bottom-darken-1 { border-bottom: 1px solid #e73d3e !important; } .border-left-danger.border-left-darken-1 { border-left: 1px solid #e73d3e !important; } .border-right-danger.border-right-darken-1 { border-right: 1px solid #e73d3e !important; } .overlay-danger.overlay-darken-1 { background: #e73d3e; /* The Fallback */ background: rgba(231, 61, 62, 0.6); } .danger.darken-2 { color: #e42728 !important; } .bg-danger.bg-darken-2 { background-color: #e42728 !important; } .btn-danger.btn-darken-2 { border-color: #e42728 !important; background-color: #e42728 !important; } .btn-danger.btn-darken-2:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-darken-2:focus, .btn-danger.btn-darken-2:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-darken-2 { border-color: #e42728 !important; color: #e42728 !important; } .btn-outline-danger.btn-outline-darken-2:hover { background-color: #e42728 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #e42728 !important; } .border-danger.border-darken-2 { border: 1px solid #e42728 !important; } .border-top-danger.border-top-darken-2 { border-top: 1px solid #e42728 !important; } .border-bottom-danger.border-bottom-darken-2 { border-bottom: 1px solid #e42728 !important; } .border-left-danger.border-left-darken-2 { border-left: 1px solid #e42728 !important; } .border-right-danger.border-right-darken-2 { border-right: 1px solid #e42728 !important; } .overlay-danger.overlay-darken-2 { background: #e42728; /* The Fallback */ background: rgba(228, 39, 40, 0.6); } .danger.darken-3 { color: #d71a1c !important; } .bg-danger.bg-darken-3 { background-color: #d71a1c !important; } .btn-danger.btn-darken-3 { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-darken-3:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-darken-3:focus, .btn-danger.btn-darken-3:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-darken-3 { border-color: #d71a1c !important; color: #d71a1c !important; } .btn-outline-danger.btn-outline-darken-3:hover { background-color: #d71a1c !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #d71a1c !important; } .border-danger.border-darken-3 { border: 1px solid #d71a1c !important; } .border-top-danger.border-top-darken-3 { border-top: 1px solid #d71a1c !important; } .border-bottom-danger.border-bottom-darken-3 { border-bottom: 1px solid #d71a1c !important; } .border-left-danger.border-left-darken-3 { border-left: 1px solid #d71a1c !important; } .border-right-danger.border-right-darken-3 { border-right: 1px solid #d71a1c !important; } .overlay-danger.overlay-darken-3 { background: #d71a1c; /* The Fallback */ background: rgba(215, 26, 28, 0.6); } .danger.darken-4 { color: #c01819 !important; } .bg-danger.bg-darken-4 { background-color: #c01819 !important; } .btn-danger.btn-darken-4 { border-color: #e42728 !important; background-color: #c01819 !important; } .btn-danger.btn-darken-4:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-darken-4:focus, .btn-danger.btn-darken-4:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-darken-4 { border-color: #c01819 !important; color: #c01819 !important; } .btn-outline-danger.btn-outline-darken-4:hover { background-color: #c01819 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #c01819 !important; } .border-danger.border-darken-4 { border: 1px solid #c01819 !important; } .border-top-danger.border-top-darken-4 { border-top: 1px solid #c01819 !important; } .border-bottom-danger.border-bottom-darken-4 { border-bottom: 1px solid #c01819 !important; } .border-left-danger.border-left-darken-4 { border-left: 1px solid #c01819 !important; } .border-right-danger.border-right-darken-4 { border-right: 1px solid #c01819 !important; } .overlay-danger.overlay-darken-4 { background: #c01819; /* The Fallback */ background: rgba(192, 24, 25, 0.6); } .danger.accent-1 { color: #FFEEF1 !important; } .bg-danger.bg-accent-1 { background-color: #FFEEF1 !important; } .btn-danger.btn-accent-1 { border-color: #e42728 !important; background-color: #FFEEF1 !important; } .btn-danger.btn-accent-1:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-accent-1:focus, .btn-danger.btn-accent-1:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-accent-1 { border-color: #FFEEF1 !important; color: #FFEEF1 !important; } .btn-outline-danger.btn-outline-accent-1:hover { background-color: #FFEEF1 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFEEF1 !important; } .border-danger.border-accent-1 { border: 1px solid #FFEEF1 !important; } .border-top-danger.border-top-accent-1 { border-top: 1px solid #FFEEF1 !important; } .border-bottom-danger.border-bottom-accent-1 { border-bottom: 1px solid #FFEEF1 !important; } .border-left-danger.border-left-accent-1 { border-left: 1px solid #FFEEF1 !important; } .border-right-danger.border-right-accent-1 { border-right: 1px solid #FFEEF1 !important; } .overlay-danger.overlay-accent-1 { background: #FFEEF1; /* The Fallback */ background: rgba(255, 238, 241, 0.6); } .danger.accent-2 { color: #FFD6DB !important; } .bg-danger.bg-accent-2 { background-color: #FFD6DB !important; } .btn-danger.btn-accent-2 { border-color: #e42728 !important; background-color: #FFD6DB !important; } .btn-danger.btn-accent-2:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-accent-2:focus, .btn-danger.btn-accent-2:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-accent-2 { border-color: #FFD6DB !important; color: #FFD6DB !important; } .btn-outline-danger.btn-outline-accent-2:hover { background-color: #FFD6DB !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFD6DB !important; } .border-danger.border-accent-2 { border: 1px solid #FFD6DB !important; } .border-top-danger.border-top-accent-2 { border-top: 1px solid #FFD6DB !important; } .border-bottom-danger.border-bottom-accent-2 { border-bottom: 1px solid #FFD6DB !important; } .border-left-danger.border-left-accent-2 { border-left: 1px solid #FFD6DB !important; } .border-right-danger.border-right-accent-2 { border-right: 1px solid #FFD6DB !important; } .overlay-danger.overlay-accent-2 { background: #FFD6DB; /* The Fallback */ background: rgba(255, 214, 219, 0.6); } .danger.accent-3 { color: #FFECEE !important; } .bg-danger.bg-accent-3 { background-color: #FFECEE !important; } .btn-danger.btn-accent-3 { border-color: #e42728 !important; background-color: #FFECEE !important; } .btn-danger.btn-accent-3:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-accent-3:focus, .btn-danger.btn-accent-3:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-accent-3 { border-color: #FFECEE !important; color: #FFECEE !important; } .btn-outline-danger.btn-outline-accent-3:hover { background-color: #FFECEE !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFECEE !important; } .border-danger.border-accent-3 { border: 1px solid #FFECEE !important; } .border-top-danger.border-top-accent-3 { border-top: 1px solid #FFECEE !important; } .border-bottom-danger.border-bottom-accent-3 { border-bottom: 1px solid #FFECEE !important; } .border-left-danger.border-left-accent-3 { border-left: 1px solid #FFECEE !important; } .border-right-danger.border-right-accent-3 { border-right: 1px solid #FFECEE !important; } .overlay-danger.overlay-accent-3 { background: #FFECEE; /* The Fallback */ background: rgba(255, 236, 238, 0.6); } .danger.accent-4 { color: #FFD3D7 !important; } .bg-danger.bg-accent-4 { background-color: #FFD3D7 !important; } .btn-danger.btn-accent-4 { border-color: #e42728 !important; background-color: #FFD3D7 !important; } .btn-danger.btn-accent-4:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-accent-4:focus, .btn-danger.btn-accent-4:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-accent-4 { border-color: #FFD3D7 !important; color: #FFD3D7 !important; } .btn-outline-danger.btn-outline-accent-4:hover { background-color: #FFD3D7 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #FFD3D7 !important; } .border-danger.border-accent-4 { border: 1px solid #FFD3D7 !important; } .border-top-danger.border-top-accent-4 { border-top: 1px solid #FFD3D7 !important; } .border-bottom-danger.border-bottom-accent-4 { border-bottom: 1px solid #FFD3D7 !important; } .border-left-danger.border-left-accent-4 { border-left: 1px solid #FFD3D7 !important; } .border-right-danger.border-right-accent-4 { border-right: 1px solid #FFD3D7 !important; } .overlay-danger.overlay-accent-4 { background: #FFD3D7; /* The Fallback */ background: rgba(255, 211, 215, 0.6); } .danger.gradient-bg { color: #640064 !important; } .bg-danger.bg-gradient-bg { background-color: #640064 !important; } .btn-danger.btn-gradient-bg { border-color: #e42728 !important; background-color: #640064 !important; } .btn-danger.btn-gradient-bg:hover { border-color: #e42728 !important; background-color: #d71a1c !important; } .btn-danger.btn-gradient-bg:focus, .btn-danger.btn-gradient-bg:active { border-color: #d71a1c !important; background-color: #c01819 !important; } .btn-outline-danger.btn-outline-gradient-bg { border-color: #640064 !important; color: #640064 !important; } .btn-outline-danger.btn-outline-gradient-bg:hover { background-color: #640064 !important; } input:focus ~ .bg-danger { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.21rem #640064 !important; } .border-danger.border-gradient-bg { border: 1px solid #640064 !important; } .border-top-danger.border-top-gradient-bg { border-top: 1px solid #640064 !important; } .border-bottom-danger.border-bottom-gradient-bg { border-bottom: 1px solid #640064 !important; } .border-left-danger.border-left-gradient-bg { border-left: 1px solid #640064 !important; } .border-right-danger.border-right-gradient-bg { border-right: 1px solid #640064 !important; } .overlay-danger.overlay-gradient-bg { background: #640064; /* The Fallback */ background: rgba(100, 0, 100, 0.6); } ================================================ FILE: public/backend/css/components.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ html { font-size: 14px; height: 100%; letter-spacing: .01rem; } html body { height: 100%; background-color: #f8f8f8; direction: ltr; /* * Blank page */ } html body .content { padding: 0; position: relative; transition: 300ms ease all; backface-visibility: hidden; min-height: calc(100% - 4rem); margin-left: 260px; } html body .content.app-content { overflow: hidden; } html body .content.app-content.show-overlay .content-overlay { z-index: 10; opacity: 1; } html body .content.app-content.show-overlay .content-overlay ~ .header-navbar-shadow { background: linear-gradient(180deg, rgba(44, 48, 60, 0.9) 44%, rgba(44, 48, 60, 0.43) 73%, rgba(44, 48, 60, 0)); } html body .content.app-content .content-overlay { position: fixed; opacity: 0; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); cursor: pointer; transition: all .7s; z-index: -1; } html body .content.app-content .content-area-wrapper { height: calc(100% - 5rem); margin: calc(5rem + 2.7rem) 2.2rem 0; display: flex; position: relative; } html body .content.app-content .content-area-wrapper .content-wrapper { margin-top: 0; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); } html body .content .content-wrapper { padding: calc(2.2rem - 0.4rem) 2.2rem 0; margin-top: 6rem; } html body .content .content-wrapper .content-header-title { font-weight: 500; color: #636363; margin-right: 1rem; } html body .content .content-wrapper .content-header-right .dropdown-toggle::after { display: none; } html body .content .content-wrapper .content-header-right .dropdown-toggle i { margin-right: 0; } html body .content .content-wrapper .content-header-right .btn-icon { padding: .8rem; } html body .content .content-wrapper .content-header-right .btn-icon i { font-size: 1rem; } html body.navbar-hidden .app-content .content-wrapper { padding: 2.2rem; margin-top: 0; } html body.navbar-hidden .app-content .content-area-wrapper { padding: 0; margin-top: 2.5rem; } html body.navbar-static .main-menu { top: 0; } html body.navbar-static .app-content .navbar-container { padding-left: 2.2rem; padding-right: 1.2rem; } html body.navbar-static .app-content .content-wrapper { padding: 2.2rem; margin-top: 0; padding-top: 1rem; } html body.navbar-static .app-content .content-area-wrapper { margin-top: 1rem; } html body.navbar-sticky .app-content .navbar-container { padding-left: 2.2rem; padding-right: 1rem; } html body.navbar-sticky .app-content .navbar-container .search-input .search-list.show { width: 98%; left: 1%; } html body.navbar-sticky .app-content .content-wrapper { padding: 2.2rem; margin-top: 4.65rem; } html body.navbar-static .navbar-container, html body.navbar-sticky .navbar-container { padding-left: 2.2rem; padding-right: 1rem; } html body.navbar-static .navbar-container .search-input .search-list.show, html body.navbar-sticky .navbar-container .search-input .search-list.show { width: 98%; left: 1%; } html body.fixed-footer .content.app-content { margin-bottom: 3rem; } html body p { line-height: 1.5rem; } html body.bg-full-screen-image { background: url('../images/pages/vuexy-login-bg.jpg') no-repeat center center; background-size: cover; } html body.blank-page .content { margin-left: 0; } html body.blank-page .content.app-content { overflow: overlay; overflow-x: hidden; } html body.blank-page .content.app-content .header-navbar-shadow { display: none; } html body.blank-page .content-wrapper { padding: 0 !important; margin-top: 0; } html body.blank-page .content-wrapper .flexbox-container { display: flex; align-items: center; height: 100vh; height: calc(var(--vh, 1vh) * 100); justify-content: center; } html body[data-col="1-column"] .content, html body[data-col="1-column"] .footer { margin-left: 0px !important; } html .pace .pace-progress { background: #7367f0; } .app-content.center-layout { overflow: hidden; } /* * Col 3 layout for detached and general type */ @media (min-width: 992px) { body .content-right { width: calc(100vw - (100vw - 100%) - 260px); float: right; } body .content-left { width: calc(100vw - (100vw - 100%) - 260px); float: left; } body .content-detached { width: 100%; } body .content-detached.content-right { float: right; margin-left: -260px; } body .content-detached.content-right .content-body { margin-left: calc(260px + 2.2rem); } body .content-detached.content-left { float: left; margin-right: -260px; } body .content-detached.content-left .content-body { margin-right: calc(260px + 2.2rem); } .sidebar-right.sidebar-sticky { float: right !important; margin-left: -260px; width: 260px !important; margin-top: 6rem; } } .truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; } @media (max-width: 575.98px) { html body .content .content-wrapper { padding: calc(2.2rem - 0.4rem) calc(2.2rem - 1rem) 0; } } @media (max-width: 575.98px) { body.navbar-static .app-content .header-navbar .navbar-container, body.navbar-sticky .app-content .header-navbar .navbar-container { padding-left: 1rem; padding-right: .5rem; } } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { html.full-screen { width: 100%; } html.full-screen .content.app-content { height: 100%; overflow: scroll; overflow-x: hidden; } } /*========================================================================================= File Name: sidebar.scss Description: content sidebar specific scss. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ .sidebar { position: relative; width: 100%; } @media (min-width: 992px) { .sidebar { vertical-align: top; } } .sidebar-fixed { position: fixed; height: 100%; overflow: scroll; } .sidenav-overlay { position: fixed; top: 0; left: 0; right: 0; height: 120vh; background-color: rgba(0, 0, 0, 0.5); z-index: 997; display: none; } .drag-target { height: 100%; width: 40px; position: fixed; top: 0; left: -10px; z-index: 1036; } @media (min-width: 992px) { .sidebar-left { float: left; } .sidebar-right { float: right; } } footer.footer { padding: 1rem 2.2rem; } footer.footer a { margin: 0 0.3rem; } footer.footer span i { margin-left: 0.5rem; font-size: 1.51rem; color: #ea5455; position: relative; top: 2px; } footer.footer .scroll-top { padding: .81rem .83rem; } footer.navbar-shadow { box-shadow: 0px -1px 4px 0px rgba(0, 0, 0, 0.15); } footer.navbar-border { border-top: 1px solid #E4E7ED; } body.fixed-footer footer.footer-light { background: #fff; box-shadow: 0px -1px 4px 0px rgba(0, 0, 0, 0.15); } body.fixed-footer footer.footer-dark { background: #b8c2cc; color: #fff; } .scroll-top { position: fixed; bottom: 5%; right: 30px; display: none; z-index: 99; } /*========================================================================================= File Name: navigations.scss Description: Common mixin for menus, contain dark and light version scss. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ .main-menu { z-index: 1031; position: absolute; display: table-cell; height: 100%; overflow: hidden; } .main-menu.menu-light { color: #626262; background: #fff; } .main-menu.menu-light .main-menu-header { padding: 20px; } .main-menu.menu-light .main-menu-header .menu-search { background: #e6e6e6; padding: 0.5rem 1rem; color: #494949; } .main-menu.menu-light .main-menu-header .menu-search:focus { border-color: #d9d9d9; } .main-menu.menu-light .navigation { background: #fff; } .main-menu.menu-light .navigation .navigation-header { color: #999999; margin: calc(2.2rem - 0.2rem) 0 0.8rem 2.2rem; padding: 0; line-height: 1.5; letter-spacing: .01rem; } .main-menu.menu-light .navigation .navigation-header span { font-weight: 500; } .main-menu.menu-light .navigation li.has-sub ul.menu-content { padding: 7px; margin: -7px -7px 0 -7px; } .main-menu.menu-light .navigation li a { color: #565656; padding: 10px 15px 10px 15px; line-height: 1.45; transition: padding 0.35s ease 0s !important; } .main-menu.menu-light .navigation li a span.menu-sub-title { color: #afafaf; } .main-menu.menu-light .navigation li.hover > a { padding-left: 25px; transition: padding 0.35s ease 0s !important; } .main-menu.menu-light .navigation > li { padding: 0 15px; } .main-menu.menu-light .navigation > li > a .label { margin-top: 4px; margin-right: 5px; } .main-menu.menu-light .navigation > li > a i { position: relative; top: 1px; } .main-menu.menu-light .navigation > li.open > a, .main-menu.menu-light .navigation > li.sidebar-group-active > a { color: #494949; background: whitesmoke; transition: transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s; border-radius: 6px; margin-bottom: 7px; } .main-menu.menu-light .navigation > li:not(.open) > ul { display: none; } .main-menu.menu-light .navigation > li.active > a { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0 0 10px 1px rgba(115, 103, 240, 0.7); color: #fff; font-weight: 400; border-radius: 4px; } .main-menu.menu-light .navigation > li .active { background: #f0f0f0; } .main-menu.menu-light .navigation > li .active > a { color: #7367f0; margin-bottom: 0; } .main-menu.menu-light .navigation > li .active .hover > a { background: whitesmoke; } .main-menu.menu-light .navigation > li ul { padding: 0; margin: 0; } .main-menu.menu-light .navigation > li ul li { color: #626262; background: transparent; } .main-menu.menu-light .navigation > li ul li > a { padding: 10px 15px 10px 20px; } .main-menu.menu-light .navigation > li ul .has-sub:not(.open) > ul { display: none; } .main-menu.menu-light .navigation > li ul .open > a, .main-menu.menu-light .navigation > li ul .sidebar-group-active > a { color: #626262; } .main-menu.menu-light .navigation > li ul .open > ul, .main-menu.menu-light .navigation > li ul .sidebar-group-active > ul { display: block; } .main-menu.menu-light .navigation > li ul .open > ul .open > ul, .main-menu.menu-light .navigation > li ul .sidebar-group-active > ul .open > ul { display: block; } .main-menu.menu-light .navigation > li ul .hover > a, .main-menu.menu-light .navigation > li ul:hover > a { color: #6c6c6c; } .main-menu.menu-light .navigation > li ul .active { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0 0 10px 1px rgba(115, 103, 240, 0.7); border-radius: 4px; } .main-menu.menu-light .navigation > li ul .active > a { color: #fff; } .main-menu.menu-light .navigation > li > ul { background: #fff; } .main-menu.menu-light ul.menu-popout { background: #fff; } .main-menu.menu-light ul.menu-popout li a { color: #626262; } .main-menu.menu-light ul.menu-popout li a span.menu-sub-title { color: #afafaf; } .main-menu.menu-light ul.menu-popout li.hover > a, .main-menu.menu-light ul.menu-popout li:hover > a, .main-menu.menu-light ul.menu-popout li.open > a { background: #f0f0f0; } .main-menu.menu-light ul.menu-popout .has-sub:not(.open) > ul { display: none; } .main-menu.menu-light ul.menu-popout .open > a { color: #626262; } .main-menu.menu-light ul.menu-popout .open > ul { display: block; } .main-menu.menu-light ul.menu-popout .open > ul .open { background: #e8e8e8; } .main-menu.menu-light ul.menu-popout .open > ul .open > ul { display: block; background: #e8e8e8; } .main-menu.menu-light ul.menu-popout .hover > a, .main-menu.menu-light ul.menu-popout:hover > a { color: #6c6c6c; background-color: whitesmoke; } .main-menu.menu-light ul.menu-popout .active { background: rgba(0, 0, 0, 0.06); } .main-menu.menu-light ul.menu-popout .active > a { color: #7c7c7c; background-color: whitesmoke; } .main-menu.menu-light ul.menu-popout .active .hover > a, .main-menu.menu-light ul.menu-popout .active :hover > a { background-color: transparent; } .main-menu.menu-dark { color: #dcdcdc; background: #10163a; } .main-menu.menu-dark .main-menu-header { padding: 20px; } .main-menu.menu-dark .main-menu-header .menu-search { background: #050712; padding: 0.5rem 1rem; color: #c3c3c3; } .main-menu.menu-dark .main-menu-header .menu-search:focus { border-color: black; } .main-menu.menu-dark .navigation { background: #10163a; } .main-menu.menu-dark .navigation .navigation-header { color: white; margin: calc(2.2rem - 0.2rem) 0 0.8rem 2.2rem; padding: 0; line-height: 1.5; letter-spacing: .01rem; } .main-menu.menu-dark .navigation .navigation-header span { font-weight: 500; } .main-menu.menu-dark .navigation li.has-sub ul.menu-content { padding: 7px; margin: -7px -7px 0 -7px; } .main-menu.menu-dark .navigation li a { color: #d0d0d0; padding: 10px 15px 10px 15px; line-height: 1.45; transition: padding 0.35s ease 0s !important; } .main-menu.menu-dark .navigation li a span.menu-sub-title { color: white; } .main-menu.menu-dark .navigation li.hover > a { padding-left: 25px; transition: padding 0.35s ease 0s !important; } .main-menu.menu-dark .navigation > li { padding: 0 15px; } .main-menu.menu-dark .navigation > li > a .label { margin-top: 4px; margin-right: 5px; } .main-menu.menu-dark .navigation > li > a i { position: relative; top: 1px; } .main-menu.menu-dark .navigation > li.open > a, .main-menu.menu-dark .navigation > li.sidebar-group-active > a { color: #c3c3c3; background: #0c102a; transition: transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s; border-radius: 6px; margin-bottom: 7px; } .main-menu.menu-dark .navigation > li:not(.open) > ul { display: none; } .main-menu.menu-dark .navigation > li.active > a { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0 0 10px 1px rgba(115, 103, 240, 0.7); color: #fff; font-weight: 400; border-radius: 4px; } .main-menu.menu-dark .navigation > li .active { background: #090d22; } .main-menu.menu-dark .navigation > li .active > a { color: #7367f0; margin-bottom: 0; } .main-menu.menu-dark .navigation > li .active .hover > a { background: #0c102a; } .main-menu.menu-dark .navigation > li ul { padding: 0; margin: 0; } .main-menu.menu-dark .navigation > li ul li { color: #dcdcdc; background: transparent; } .main-menu.menu-dark .navigation > li ul li > a { padding: 10px 15px 10px 20px; } .main-menu.menu-dark .navigation > li ul .has-sub:not(.open) > ul { display: none; } .main-menu.menu-dark .navigation > li ul .open > a, .main-menu.menu-dark .navigation > li ul .sidebar-group-active > a { color: #dcdcdc; } .main-menu.menu-dark .navigation > li ul .open > ul, .main-menu.menu-dark .navigation > li ul .sidebar-group-active > ul { display: block; } .main-menu.menu-dark .navigation > li ul .open > ul .open > ul, .main-menu.menu-dark .navigation > li ul .sidebar-group-active > ul .open > ul { display: block; } .main-menu.menu-dark .navigation > li ul .hover > a, .main-menu.menu-dark .navigation > li ul:hover > a { color: #e6e6e6; } .main-menu.menu-dark .navigation > li ul .active { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0 0 10px 1px rgba(115, 103, 240, 0.7); border-radius: 4px; } .main-menu.menu-dark .navigation > li ul .active > a { color: #fff; } .main-menu.menu-dark .navigation > li > ul { background: #10163a; } .main-menu.menu-dark ul.menu-popout { background: #10163a; } .main-menu.menu-dark ul.menu-popout li a { color: #dcdcdc; } .main-menu.menu-dark ul.menu-popout li a span.menu-sub-title { color: white; } .main-menu.menu-dark ul.menu-popout li.hover > a, .main-menu.menu-dark ul.menu-popout li:hover > a, .main-menu.menu-dark ul.menu-popout li.open > a { background: #090d22; } .main-menu.menu-dark ul.menu-popout .has-sub:not(.open) > ul { display: none; } .main-menu.menu-dark ul.menu-popout .open > a { color: #dcdcdc; } .main-menu.menu-dark ul.menu-popout .open > ul { display: block; } .main-menu.menu-dark ul.menu-popout .open > ul .open { background: #060816; } .main-menu.menu-dark ul.menu-popout .open > ul .open > ul { display: block; background: #060816; } .main-menu.menu-dark ul.menu-popout .hover > a, .main-menu.menu-dark ul.menu-popout:hover > a { color: #e6e6e6; background-color: #0c102a; } .main-menu.menu-dark ul.menu-popout .active { background: rgba(0, 0, 0, 0.06); } .main-menu.menu-dark ul.menu-popout .active > a { color: #f6f6f6; background-color: #0c102a; } .main-menu.menu-dark ul.menu-popout .active .hover > a, .main-menu.menu-dark ul.menu-popout .active :hover > a { background-color: transparent; } .main-menu.menu-fixed { position: fixed; /* fallback if needed */ } .main-menu.menu-fixed .main-menu-footer { position: fixed; } .main-menu.menu-static { height: 100%; padding-bottom: calc(100% - 20rem); } .main-menu.menu-static .main-menu-content { height: unset !important; } .main-menu.menu-shadow { box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); } .main-menu.menu-border { border-right: 1px solid #E4E7ED; } .main-menu .shadow-bottom { display: none; position: absolute; z-index: 2; height: 60px; width: 100%; pointer-events: none; margin-top: -1.3rem; filter: blur(5px); background: linear-gradient(#fff 41%, rgba(255, 255, 255, 0.11) 95%, rgba(255, 255, 255, 0)); } .main-menu.menu-native-scroll .main-menu-content { overflow-y: scroll; } .main-menu .navbar-header { height: 100%; width: 260px; height: 5rem; position: relative; padding: 0.35rem 1rem 0.3rem 1.64rem; transition: 300ms ease all; } .main-menu .navbar-header .navbar-brand { display: flex; align-items: center; margin-top: 1.35rem; } .main-menu .navbar-header .navbar-brand .brand-logo { /* background: url("../../app-assets/images/logo/vuexy-logo.png") no-repeat; */ background-position: -65px -54px; height: 24px; width: 35px; } .main-menu .navbar-header .navbar-brand .brand-text { color: #7367f0; padding-left: 1rem; font-weight: 600; letter-spacing: 0.01rem; font-size: 1.57rem; animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } .main-menu .navbar-header .modern-nav-toggle { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } .main-menu .main-menu-content { height: calc(100% - 6rem) !important; position: relative; } .main-menu ul { list-style: none; margin: 0; padding: 0; } .main-menu ul.navigation-main { overflow-x: hidden; } .main-menu ul.navigation-main > li:first-child { margin-top: .5rem; } .main-menu a { outline: none; } .main-menu a:hover, .main-menu a:focus { text-decoration: none; } .navigation { font-size: 1.1rem; font-family: "Montserrat", Helvetica, Arial, serif; font-weight: 400; overflow-y: hidden; padding-bottom: 20px; } .navigation .navigation-header { font-family: "Montserrat", Helvetica, Arial, serif; font-weight: 500; line-height: 1.2; padding: 12px 22px; font-size: .9rem; text-transform: uppercase; } .navigation li { position: relative; white-space: nowrap; } .navigation li a { display: block; text-overflow: ellipsis; overflow: hidden; } .navigation li a i { font-size: 0.8rem; margin-right: 1.38rem; } .navigation li.disabled a { cursor: not-allowed; } .menu-popout li.disabled a { cursor: not-allowed; } .dropdown-notification .nav-link-label { position: relative; } .dropdown-notification .notification-text { margin-bottom: 0.5rem; font-size: smaller; color: #626262; } .dropdown-notification .notification-title { color: rgba(255, 255, 255, 0.75); } .dropdown-notification .notification-tag { position: relative; top: -4px; } .dropdown-notification .dropdown-menu.dropdown-menu-right { right: -2px; padding: 0; } .dropdown-notification .dropdown-menu.dropdown-menu-right::before { background: #7367f0; border-color: #7367f0; } .dropdown-notification .dropdown-menu-header { border-top-left-radius: 5px; border-top-right-radius: 5px; background: #7367f0; color: #fff; text-align: center; } .dropdown-notification .dropdown-menu-header .dropdown-header h3 { margin-bottom: 0.25rem; } .main-menu-header .user-content { padding: 20px; } .main-menu-header .user-content .media { overflow: inherit; } .main-menu-header .user-content .media-body { vertical-align: bottom; opacity: 1; width: 150px; white-space: nowrap; transition: all .3s ease .15s; } .main-menu-footer { position: relative; overflow: hidden; bottom: 0; display: block; z-index: 1000; color: white; background-color: #9aa9b7; } .main-menu-footer.footer-open { max-height: 500px; transition: max-height 0.2s ease-in-out; } .main-menu-footer a { color: white; } .main-menu-footer a:hover, .main-menu-footer a:focus { color: #fff; } .main-menu-footer .header { height: 19px; border-bottom: 1px solid #a9b5c1; } .main-menu-footer .toggle { transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } .main-menu-footer .content { padding: 0; } .main-menu-footer .content .actions > a { display: block; float: left; width: 33.33333%; padding: 1rem 0; color: white; text-align: center; border-top: 1px solid #a9b5c1; border-left: 1px solid #a9b5c1; } .main-menu-footer .content .actions > a > span { font-size: 1.35rem; } .main-menu-footer .content .actions > a:hover, .main-menu-footer .content .actions > a:focus { color: #fff; } body.vertical-layout.vertical-menu.menu-expanded .main-menu-footer .content { margin-left: 0; } body.menu-collapsed .menu-static { padding-bottom: calc(100% - 14rem); } @media (max-width: 767.98px) { .menu-hide .main-menu, .menu-open .main-menu { transition: transform .25s, top .35s, height .35s; } .main-menu { transform: translate3d(-240px, 0, 0); backface-visibility: hidden; perspective: 1000; } .menu-open .main-menu { transform: translate3d(0, 0, 0); } } @media (min-width: 768px) { .drag-target { z-index: 0; } } body.fixed-footer .main-menu.menu-fixed { height: 100%; } @media (max-width: 1200px) { body .main-menu.menu-static { padding-bottom: 100%; } } .display-inline { display: inline !important; } .display-block { display: block !important; } .display-inline-block { display: inline-block !important; } .display-hidden { display: none !important; } .display-table-cell { display: table-cell !important; } .position-top-0 { top: 0; } .position-right-0 { right: 0; } .position-bottom-0 { bottom: 0; } .position-left-0 { left: 0; } .zindex-1 { z-index: 1 !important; } .zindex-2 { z-index: 2 !important; } .zindex-3 { z-index: 3 !important; } .zindex-4 { z-index: 4 !important; } .zindex-0 { z-index: 0 !important; } .zindex-minus-1 { z-index: -1 !important; } .zindex-minus-2 { z-index: -2 !important; } .zindex-minus-3 { z-index: -3 !important; } .zindex-minus-4 { z-index: -4 !important; } .no-edge-top { top: 0 !important; } .no-edge-bottom { bottom: 0 !important; } .no-edge-left { left: 0 !important; } .no-edge-right { right: 0 !important; } .cursor-pointer { cursor: pointer; } .cursor-move { cursor: move; } .cursor-default { cursor: default; } .cursor-progress { cursor: progress; } .cursor-not-allowed { cursor: not-allowed; } .overflow-hidden { overflow: hidden; } .overflow-visible { overflow: visible; } .overflow-auto { overflow: auto; } .overflow-scroll { overflow: scroll; } .overflow-x-scroll { overflow: scroll; } .overflow-y-scroll { overflow: scroll; } .bullets-inside { list-style: inside; } .list-style-circle { list-style: circle; } .list-style-square { list-style: square; } .list-style-icons { padding-left: 10px; margin-left: 0; list-style: none; } .list-style-icons > li i { float: left; width: 1em; margin: 0 6px 0 0; } .border { border: 1px solid; } .border-top { border-top: 1px solid; } .border-bottom { border-bottom: 1px solid; } .border-left { border-left: 1px solid; } .border-right { border-right: 1px solid; } .border-2 { border-width: 2px !important; } .border-top-2 { border-top-width: 2px !important; } .border-bottom-2 { border-bottom-width: 2px !important; } .border-left-2 { border-left-width: 2px !important; } .border-right-2 { border-right-width: 2px !important; } .border-3 { border-width: 3px !important; } .border-top-3 { border-top-width: 3px !important; } .border-bottom-3 { border-bottom-width: 3px !important; } .border-left-3 { border-left-width: 3px !important; } .border-right-3 { border-right-width: 3px !important; } .no-border-top-radius { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; } .no-border-bottom-radius { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; } .no-border-top-left-radius { border-top-left-radius: 0 !important; } .no-border-top-right-radius { border-top-right-radius: 0 !important; } .no-border-bottom-left-radius { border-bottom-left-radius: 0 !important; } .no-border-bottom-right-radius { border-bottom-right-radius: 0 !important; } .box-shadow-0 { box-shadow: none !important; } .box-shadow-1 { box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } .box-shadow-2 { box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } .box-shadow-3 { box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); } .box-shadow-4 { box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21); } .box-shadow-5 { box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22); } .box-shadow-6 { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08); } .fit { max-width: 100% !important; } .half-width { width: 50% !important; } .full-width { width: 100% !important; } .full-height { height: 100% !important; } .width-50 { width: 50px !important; } .width-100 { width: 100px !important; } .width-150 { width: 150px !important; } .width-200 { width: 200px !important; } .width-250 { width: 250px !important; } .width-300 { width: 300px !important; } .width-350 { width: 350px !important; } .width-400 { width: 400px !important; } .width-450 { width: 450px !important; } .width-500 { width: 500px !important; } .width-550 { width: 550px !important; } .width-600 { width: 600px !important; } .width-650 { width: 650px !important; } .width-700 { width: 700px !important; } .width-750 { width: 750px !important; } .width-800 { width: 800px !important; } .width-5-per { width: 5% !important; } .width-10-per { width: 10% !important; } .width-15-per { width: 15% !important; } .width-20-per { width: 20% !important; } .width-25-per { width: 25% !important; } .width-30-per { width: 30% !important; } .width-35-per { width: 35% !important; } .width-40-per { width: 40% !important; } .width-45-per { width: 45% !important; } .width-50-per { width: 50% !important; } .width-55-per { width: 55% !important; } .width-60-per { width: 60% !important; } .width-65-per { width: 65% !important; } .width-70-per { width: 70% !important; } .width-75-per { width: 75% !important; } .width-80-per { width: 80% !important; } .width-90-per { width: 90% !important; } .width-95-per { width: 95% !important; } .height-50 { height: 50px !important; } .height-75 { height: 75px !important; } .height-100 { height: 100px !important; } .height-150 { height: 150px !important; } .height-200 { height: 200px !important; } .height-250 { height: 250px !important; } .height-300 { height: 300px !important; } .height-350 { height: 350px !important; } .height-400 { height: 400px !important; } .height-450 { height: 450px !important; } .height-500 { height: 500px !important; } .height-550 { height: 550px !important; } .height-600 { height: 600px !important; } .height-650 { height: 650px !important; } .height-700 { height: 700px !important; } .height-750 { height: 750px !important; } .height-800 { height: 800px !important; } .height-5-per { height: 5% !important; } .height-10-per { height: 10% !important; } .height-15-per { height: 15% !important; } .height-20-per { height: 20% !important; } .height-25-per { height: 25% !important; } .height-30-per { height: 30% !important; } .height-35-per { height: 35% !important; } .height-40-per { height: 40% !important; } .height-45-per { height: 45% !important; } .height-50-per { height: 50% !important; } .height-55-per { height: 55% !important; } .height-60-per { height: 60% !important; } .height-65-per { height: 65% !important; } .height-70-per { height: 70% !important; } .height-75-per { height: 75% !important; } .height-80-per { height: 80% !important; } .full-height-vh-with-nav { height: calc(100vh - 5rem - 4rem); height: calc(var(--vh, 1vh) * 100 - 5rem - 4rem); } .full-height-vh { height: 100vh; height: calc(var(--vh, 1vh) * 100); } .line-height-1 { line-height: 1 !important; } .line-height-2 { line-height: 2 !important; } .rotate-45 { transform: rotate(45deg); } .rotate-45-inverse { transform: rotate(-45deg); } .rotate-90 { transform: rotate(45deg); } .rotate-90-inverse { transform: rotate(-45deg); } .rotate-180 { transform: rotate(45deg); } .rotate-180-inverse { transform: rotate(-45deg); } .pull-up { transition: all 0.25s ease; } .pull-up:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0px 14px 24px rgba(62, 57, 107, 0.2); z-index: 30; } .spinner { display: inline-block; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .spinner-reverse { display: inline-block; animation: spin-reverse 1s linear infinite; } @keyframes spin-reverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } } .bg-cover { background-size: cover !important; } .background-repeat { background-repeat: repeat !important; } .background-no-repeat { background-repeat: no-repeat !important; } .img-xl { width: 64px !important; height: 64px !important; } .img-lg { width: 44px !important; height: 44px !important; } .img-sm { width: 36px !important; height: 36px !important; } .img-xs { width: 32px !important; height: 32px !important; } .bullet { width: 1rem; height: 1rem; border-radius: 50%; display: inline-block; } .bullet.bullet-xs { width: 0.5rem; height: 0.5rem; } .bullet.bullet-sm { width: 0.714rem; height: 0.714rem; } .bullet.bullet-lg { width: 1.25rem; height: 1.25rem; } .avatar { white-space: nowrap; background-color: #c3c3c3; border-radius: 50%; position: relative; cursor: pointer; color: #fff; display: inline-flex; font-size: .75rem; text-align: center; vertical-align: middle; margin: 5px; } .avatar .avatar-content { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; } .avatar .avatar-content .avatar-icon { font-size: 1.2rem; } .avatar [class*="avatar-status-"] { border-radius: 50%; width: 11px; height: 11px; position: absolute; right: 0; bottom: 0; border: 1px solid #fff; } .avatar [class*="avatar-status-"].avatar-status-lg { width: 17px; height: 17px; border-width: 2px; } .avatar .avatar-status-online { background-color: #28c76f; } .avatar .avatar-status-busy { background-color: #ea5455; } .avatar .avatar-status-away { background-color: #ff9f43; } .avatar .avatar-status-offline { background-color: #b8c2cc; } .avatar img { border-radius: 50%; } .avatar.avatar-xl { font-size: 1.5rem; } .avatar.avatar-xl img { width: 70px; height: 70px; } .avatar.avatar-xl .avatar-content { height: 70px; width: 70px; } .avatar.avatar-xl .avatar-content .avatar-icon { font-size: 3rem; } .avatar.avatar-lg { font-size: 1.2rem; } .avatar.avatar-lg img { width: 50px; height: 50px; } .avatar.avatar-lg .avatar-content { width: 50px; height: 50px; } .avatar.avatar-lg .avatar-content .avatar-icon { font-size: 2rem; } .avatar.avatar-sm .avatar-content { width: 24px; height: 24px; } .avatar.avatar-sm .avatar-content .avatar-icon { font-size: 1rem; } .avatar.avatar-sm img { width: 24px; height: 24px; } /*========================================================================================= File Name: search.scss Description: Search functionality. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ .navbar-container a.nav-link-search { float: left; } .navbar-container .search-input { float: left; width: 0; } .navbar-container .search-input input { width: 0; border: none; background: none; transition: all 0.2s ease-out; line-height: 16px; padding: 1.6rem 3.6rem; } .navbar-container .search-input.open { position: absolute; left: 0; background: #fff; right: 0; width: 100%; z-index: 1000; border-radius: 0.5rem; } .navbar-container .search-input.open .search-input-close, .navbar-container .search-input.open .search-input-icon { display: block; } .navbar-container .search-input.open input { width: 100%; outline: none; background: none; transition: all 0.3s ease-out; } .navbar-container .search-input .search-list { max-height: 450px; height: calc(100vh - 11rem); position: absolute; top: 100%; left: 0; background: #fff; width: 100%; margin-top: .5rem; padding-left: 0; border-radius: 0.5rem; display: none; } .navbar-container .search-input .search-list.search-list-bookmark { height: auto !important; } .navbar-container .search-input .search-list.show { display: block; } .navbar-container .search-input .search-list li a { padding: .9rem 1rem; color: #626262; } .navbar-container .search-input .search-list li a span[class*="feather icon-"] { font-size: 1.25rem; } .navbar-container .search-input .search-list li:first-child { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; } .navbar-container .search-input .search-list li:last-child { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; } .navbar-container .search-input .search-list li.auto-suggestion:hover, .navbar-container .search-input .search-list li.auto-suggestion.current_item { background-color: #f1f1f1; } .navbar-container .search-input .search-input-icon { z-index: 2; display: none; position: absolute; left: 1.5rem; top: 37%; cursor: pointer; } .navbar-container .search-input .search-input-icon i { font-size: 1.25rem; } .navbar-container .search-input .search-input-close { z-index: 1; display: none; position: absolute; right: 2rem; top: 32%; cursor: pointer; } .navbar-container .search-input .search-input-close i { font-size: 1.75rem; } .navbar-container .bookmark-input { position: absolute; top: 102%; width: 25%; display: none; } .navbar-container .bookmark-input.show { display: block; } .navbar-container .bookmark-input .bookmark-input-icon { position: absolute; z-index: 1; top: .85rem; left: 1rem; } .navbar-container .bookmark-input input { padding: .7rem .7rem .7rem 2.5rem; width: 100%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.2); } .navbar-container .bookmark-input input:focus { border: 1px solid #7367f0; } .navbar-container .bookmark-input .search-list { box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.11), 0 5px 15px 0 rgba(0, 0, 0, 0.08); } .navbar-container .bookmark-icon { cursor: pointer; } .navbar-container .dropdown.bookmark-dropdown { padding: 1.4rem 0.5rem 1.35rem; } .navbar-container .dropdown.bookmark-dropdown .dropdown-toggle:after { display: none; } .navbar-container .search-data-title { line-height: 1.25rem; } .navbar-dark .search-input .input, .navbar-semi-light .search-input .input { color: #F5F7FA; border-radius: .5rem; } .navbar-dark .search-input.open .input, .navbar-semi-light .search-input.open .input { color: #F5F7FA; border: 1px solid #F5F7FA; } body.navbar-static .navbar-container .search-input.open { border-radius: 0; } .apexcharts-canvas .apexcharts-tooltip { color: #626262 !important; } .apexcharts-canvas .apexcharts-tooltip.dark { color: #fff !important; } .apexcharts-canvas .apexcharts-toolbar .apexcharts-menu .apexcharts-menu-item { color: #626262; } .apexcharts-xaxistooltip { color: #626262 !important; } #client-retention-chart .apexcharts-canvas .apexcharts-legend { left: -14px !important; } .apexcharts-toolbar { z-index: 10; } .btn-social, .btn-social-icon { position: relative; padding-left: 4.95rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .btn-social > :first-child, .btn-social-icon > :first-child { position: absolute; left: 0; top: 2px; bottom: 0; width: 2.95rem; line-height: 2.7rem; font-size: 1rem; text-align: center; border-right: 1px solid rgba(0, 0, 0, 0.2); } .btn-social-icon { height: 2.95rem; width: 2.95rem; padding: 0; } .btn-social-icon > :first-child { border: none; text-align: center; width: 100% !important; } .btn-adn { background-color: #d87a68; color: #fff; background-color: #d87a68; border-color: #fff; } .btn-adn:hover { color: #fff; background-color: #d87a68; border-color: #d87a68; } .btn-adn:focus, .btn-adn.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-adn.disabled, .btn-adn:disabled { color: #fff; background-color: #d87a68; border-color: #fff; } .btn-adn:not(:disabled):not(.disabled):active, .btn-adn:not(:disabled):not(.disabled).active, .show > .btn-adn.dropdown-toggle { color: #fff; background-color: #ce563f; border-color: #dfdfdf; } .btn-adn:not(:disabled):not(.disabled):active:focus, .btn-adn:not(:disabled):not(.disabled).active:focus, .show > .btn-adn.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-bitbucket { background-color: #205081; color: #fff; background-color: #205081; border-color: #fff; } .btn-bitbucket:hover { color: #fff; background-color: #205081; border-color: #205081; } .btn-bitbucket:focus, .btn-bitbucket.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-bitbucket.disabled, .btn-bitbucket:disabled { color: #fff; background-color: #205081; border-color: #fff; } .btn-bitbucket:not(:disabled):not(.disabled):active, .btn-bitbucket:not(:disabled):not(.disabled).active, .show > .btn-bitbucket.dropdown-toggle { color: #fff; background-color: #163758; border-color: #dfdfdf; } .btn-bitbucket:not(:disabled):not(.disabled):active:focus, .btn-bitbucket:not(:disabled):not(.disabled).active:focus, .show > .btn-bitbucket.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-dropbox { background-color: #1087dd; color: #fff; background-color: #1087dd; border-color: #fff; } .btn-dropbox:hover { color: #fff; background-color: #1087dd; border-color: #1087dd; } .btn-dropbox:focus, .btn-dropbox.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-dropbox.disabled, .btn-dropbox:disabled { color: #fff; background-color: #1087dd; border-color: #fff; } .btn-dropbox:not(:disabled):not(.disabled):active, .btn-dropbox:not(:disabled):not(.disabled).active, .show > .btn-dropbox.dropdown-toggle { color: #fff; background-color: #0d6aad; border-color: #dfdfdf; } .btn-dropbox:not(:disabled):not(.disabled):active:focus, .btn-dropbox:not(:disabled):not(.disabled).active:focus, .show > .btn-dropbox.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-facebook { background-color: #3b5998; color: #fff; background-color: #3b5998; border-color: #fff; } .btn-facebook:hover { color: #fff; background-color: #3b5998; border-color: #3b5998; } .btn-facebook:focus, .btn-facebook.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-facebook.disabled, .btn-facebook:disabled { color: #fff; background-color: #3b5998; border-color: #fff; } .btn-facebook:not(:disabled):not(.disabled):active, .btn-facebook:not(:disabled):not(.disabled).active, .show > .btn-facebook.dropdown-toggle { color: #fff; background-color: #2d4373; border-color: #dfdfdf; } .btn-facebook:not(:disabled):not(.disabled):active:focus, .btn-facebook:not(:disabled):not(.disabled).active:focus, .show > .btn-facebook.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-flickr { background-color: #ff0084; color: #fff; background-color: #ff0084; border-color: #fff; } .btn-flickr:hover { color: #fff; background-color: #ff0084; border-color: #ff0084; } .btn-flickr:focus, .btn-flickr.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-flickr.disabled, .btn-flickr:disabled { color: #fff; background-color: #ff0084; border-color: #fff; } .btn-flickr:not(:disabled):not(.disabled):active, .btn-flickr:not(:disabled):not(.disabled).active, .show > .btn-flickr.dropdown-toggle { color: #fff; background-color: #cc006a; border-color: #dfdfdf; } .btn-flickr:not(:disabled):not(.disabled):active:focus, .btn-flickr:not(:disabled):not(.disabled).active:focus, .show > .btn-flickr.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-foursquare { background-color: #f94877; color: #fff; background-color: #f94877; border-color: #fff; } .btn-foursquare:hover { color: #fff; background-color: #f94877; border-color: #f94877; } .btn-foursquare:focus, .btn-foursquare.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-foursquare.disabled, .btn-foursquare:disabled { color: #fff; background-color: #f94877; border-color: #fff; } .btn-foursquare:not(:disabled):not(.disabled):active, .btn-foursquare:not(:disabled):not(.disabled).active, .show > .btn-foursquare.dropdown-toggle { color: #fff; background-color: #f71752; border-color: #dfdfdf; } .btn-foursquare:not(:disabled):not(.disabled):active:focus, .btn-foursquare:not(:disabled):not(.disabled).active:focus, .show > .btn-foursquare.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-github { background-color: #444444; color: #fff; background-color: #444444; border-color: #fff; } .btn-github:hover { color: #fff; background-color: #444444; border-color: #444444; } .btn-github:focus, .btn-github.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-github.disabled, .btn-github:disabled { color: #fff; background-color: #444444; border-color: #fff; } .btn-github:not(:disabled):not(.disabled):active, .btn-github:not(:disabled):not(.disabled).active, .show > .btn-github.dropdown-toggle { color: #fff; background-color: #2b2b2b; border-color: #dfdfdf; } .btn-github:not(:disabled):not(.disabled):active:focus, .btn-github:not(:disabled):not(.disabled).active:focus, .show > .btn-github.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-google { background-color: #dd4b39; color: #fff; background-color: #dd4b39; border-color: #fff; } .btn-google:hover { color: #fff; background-color: #dd4b39; border-color: #dd4b39; } .btn-google:focus, .btn-google.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-google.disabled, .btn-google:disabled { color: #fff; background-color: #dd4b39; border-color: #fff; } .btn-google:not(:disabled):not(.disabled):active, .btn-google:not(:disabled):not(.disabled).active, .show > .btn-google.dropdown-toggle { color: #fff; background-color: #c23321; border-color: #dfdfdf; } .btn-google:not(:disabled):not(.disabled):active:focus, .btn-google:not(:disabled):not(.disabled).active:focus, .show > .btn-google.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-instagram { background-color: #3f729b; color: #fff; background-color: #3f729b; border-color: #fff; } .btn-instagram:hover { color: #fff; background-color: #3f729b; border-color: #3f729b; } .btn-instagram:focus, .btn-instagram.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-instagram.disabled, .btn-instagram:disabled { color: #fff; background-color: #3f729b; border-color: #fff; } .btn-instagram:not(:disabled):not(.disabled):active, .btn-instagram:not(:disabled):not(.disabled).active, .show > .btn-instagram.dropdown-toggle { color: #fff; background-color: #305777; border-color: #dfdfdf; } .btn-instagram:not(:disabled):not(.disabled):active:focus, .btn-instagram:not(:disabled):not(.disabled).active:focus, .show > .btn-instagram.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-linkedin { background-color: #007bb6; color: #fff; background-color: #007bb6; border-color: #fff; } .btn-linkedin:hover { color: #fff; background-color: #007bb6; border-color: #007bb6; } .btn-linkedin:focus, .btn-linkedin.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-linkedin.disabled, .btn-linkedin:disabled { color: #fff; background-color: #007bb6; border-color: #fff; } .btn-linkedin:not(:disabled):not(.disabled):active, .btn-linkedin:not(:disabled):not(.disabled).active, .show > .btn-linkedin.dropdown-toggle { color: #fff; background-color: #005983; border-color: #dfdfdf; } .btn-linkedin:not(:disabled):not(.disabled):active:focus, .btn-linkedin:not(:disabled):not(.disabled).active:focus, .show > .btn-linkedin.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-microsoft { background-color: #2672ec; color: #fff; background-color: #2672ec; border-color: #fff; } .btn-microsoft:hover { color: #fff; background-color: #2672ec; border-color: #2672ec; } .btn-microsoft:focus, .btn-microsoft.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-microsoft.disabled, .btn-microsoft:disabled { color: #fff; background-color: #2672ec; border-color: #fff; } .btn-microsoft:not(:disabled):not(.disabled):active, .btn-microsoft:not(:disabled):not(.disabled).active, .show > .btn-microsoft.dropdown-toggle { color: #fff; background-color: #125acd; border-color: #dfdfdf; } .btn-microsoft:not(:disabled):not(.disabled):active:focus, .btn-microsoft:not(:disabled):not(.disabled).active:focus, .show > .btn-microsoft.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-odnoklassniki { background-color: #f4731c; color: #fff; background-color: #f4731c; border-color: #fff; } .btn-odnoklassniki:hover { color: #fff; background-color: #f4731c; border-color: #f4731c; } .btn-odnoklassniki:focus, .btn-odnoklassniki.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-odnoklassniki.disabled, .btn-odnoklassniki:disabled { color: #fff; background-color: #f4731c; border-color: #fff; } .btn-odnoklassniki:not(:disabled):not(.disabled):active, .btn-odnoklassniki:not(:disabled):not(.disabled).active, .show > .btn-odnoklassniki.dropdown-toggle { color: #fff; background-color: #d35b0a; border-color: #dfdfdf; } .btn-odnoklassniki:not(:disabled):not(.disabled):active:focus, .btn-odnoklassniki:not(:disabled):not(.disabled).active:focus, .show > .btn-odnoklassniki.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-openid { background-color: #f7931e; color: #2a2e30; background-color: #f7931e; border-color: #fff; } .btn-openid:hover { color: #2a2e30; background-color: #f7931e; border-color: #f7931e; } .btn-openid:focus, .btn-openid.focus { box-shadow: 0 0 0 0.2rem rgba(223, 224, 224, 0.5); } .btn-openid.disabled, .btn-openid:disabled { color: #2a2e30; background-color: #f7931e; border-color: #fff; } .btn-openid:not(:disabled):not(.disabled):active, .btn-openid:not(:disabled):not(.disabled).active, .show > .btn-openid.dropdown-toggle { color: #fff; background-color: #da7908; border-color: #dfdfdf; } .btn-openid:not(:disabled):not(.disabled):active:focus, .btn-openid:not(:disabled):not(.disabled).active:focus, .show > .btn-openid.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(223, 224, 224, 0.5); } .btn-pinterest { background-color: #cb2027; color: #fff; background-color: #cb2027; border-color: #fff; } .btn-pinterest:hover { color: #fff; background-color: #cb2027; border-color: #cb2027; } .btn-pinterest:focus, .btn-pinterest.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-pinterest.disabled, .btn-pinterest:disabled { color: #fff; background-color: #cb2027; border-color: #fff; } .btn-pinterest:not(:disabled):not(.disabled):active, .btn-pinterest:not(:disabled):not(.disabled).active, .show > .btn-pinterest.dropdown-toggle { color: #fff; background-color: #9f191f; border-color: #dfdfdf; } .btn-pinterest:not(:disabled):not(.disabled):active:focus, .btn-pinterest:not(:disabled):not(.disabled).active:focus, .show > .btn-pinterest.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-reddit { background-color: #eff7ff; color: #2a2e30; background-color: #eff7ff; border-color: #000; } .btn-reddit:hover { color: #fff; background-color: #000; border-color: #000; } .btn-reddit:focus, .btn-reddit.focus { box-shadow: 0 0 0 0.2rem rgba(6, 7, 7, 0.5); } .btn-reddit.disabled, .btn-reddit:disabled { color: #2a2e30; background-color: #eff7ff; border-color: #000; } .btn-reddit:not(:disabled):not(.disabled):active, .btn-reddit:not(:disabled):not(.disabled).active, .show > .btn-reddit.dropdown-toggle { color: #2a2e30; background-color: #bcdeff; border-color: black; } .btn-reddit:not(:disabled):not(.disabled):active:focus, .btn-reddit:not(:disabled):not(.disabled).active:focus, .show > .btn-reddit.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(6, 7, 7, 0.5); } .btn-soundcloud { background-color: #ff5500; color: #fff; background-color: #ff5500; border-color: #fff; } .btn-soundcloud:hover { color: #fff; background-color: #ff5500; border-color: #ff5500; } .btn-soundcloud:focus, .btn-soundcloud.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-soundcloud.disabled, .btn-soundcloud:disabled { color: #fff; background-color: #ff5500; border-color: #fff; } .btn-soundcloud:not(:disabled):not(.disabled):active, .btn-soundcloud:not(:disabled):not(.disabled).active, .show > .btn-soundcloud.dropdown-toggle { color: #fff; background-color: #cc4400; border-color: #dfdfdf; } .btn-soundcloud:not(:disabled):not(.disabled):active:focus, .btn-soundcloud:not(:disabled):not(.disabled).active:focus, .show > .btn-soundcloud.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-tumblr { background-color: #2c4762; color: #fff; background-color: #2c4762; border-color: #fff; } .btn-tumblr:hover { color: #fff; background-color: #2c4762; border-color: #2c4762; } .btn-tumblr:focus, .btn-tumblr.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-tumblr.disabled, .btn-tumblr:disabled { color: #fff; background-color: #2c4762; border-color: #fff; } .btn-tumblr:not(:disabled):not(.disabled):active, .btn-tumblr:not(:disabled):not(.disabled).active, .show > .btn-tumblr.dropdown-toggle { color: #fff; background-color: #1c2e3f; border-color: #dfdfdf; } .btn-tumblr:not(:disabled):not(.disabled):active:focus, .btn-tumblr:not(:disabled):not(.disabled).active:focus, .show > .btn-tumblr.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-twitter { background-color: #55acee; color: #2a2e30; background-color: #55acee; border-color: #fff; } .btn-twitter:hover { color: #2a2e30; background-color: #55acee; border-color: #55acee; } .btn-twitter:focus, .btn-twitter.focus { box-shadow: 0 0 0 0.2rem rgba(223, 224, 224, 0.5); } .btn-twitter.disabled, .btn-twitter:disabled { color: #2a2e30; background-color: #55acee; border-color: #fff; } .btn-twitter:not(:disabled):not(.disabled):active, .btn-twitter:not(:disabled):not(.disabled).active, .show > .btn-twitter.dropdown-toggle { color: #fff; background-color: #2795e9; border-color: #dfdfdf; } .btn-twitter:not(:disabled):not(.disabled):active:focus, .btn-twitter:not(:disabled):not(.disabled).active:focus, .show > .btn-twitter.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(223, 224, 224, 0.5); } .btn-vimeo { background-color: #1ab7ea; color: #fff; background-color: #1ab7ea; border-color: #fff; } .btn-vimeo:hover { color: #fff; background-color: #1ab7ea; border-color: #1ab7ea; } .btn-vimeo:focus, .btn-vimeo.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-vimeo.disabled, .btn-vimeo:disabled { color: #fff; background-color: #1ab7ea; border-color: #fff; } .btn-vimeo:not(:disabled):not(.disabled):active, .btn-vimeo:not(:disabled):not(.disabled).active, .show > .btn-vimeo.dropdown-toggle { color: #fff; background-color: #1295bf; border-color: #dfdfdf; } .btn-vimeo:not(:disabled):not(.disabled):active:focus, .btn-vimeo:not(:disabled):not(.disabled).active:focus, .show > .btn-vimeo.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-vk { background-color: #587ea3; color: #fff; background-color: #587ea3; border-color: #fff; } .btn-vk:hover { color: #fff; background-color: #587ea3; border-color: #587ea3; } .btn-vk:focus, .btn-vk.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-vk.disabled, .btn-vk:disabled { color: #fff; background-color: #587ea3; border-color: #fff; } .btn-vk:not(:disabled):not(.disabled):active, .btn-vk:not(:disabled):not(.disabled).active, .show > .btn-vk.dropdown-toggle { color: #fff; background-color: #466482; border-color: #dfdfdf; } .btn-vk:not(:disabled):not(.disabled):active:focus, .btn-vk:not(:disabled):not(.disabled).active:focus, .show > .btn-vk.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-yahoo { background-color: #720e9e; color: #fff; background-color: #720e9e; border-color: #fff; } .btn-yahoo:hover { color: #fff; background-color: #720e9e; border-color: #720e9e; } .btn-yahoo:focus, .btn-yahoo.focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-yahoo.disabled, .btn-yahoo:disabled { color: #fff; background-color: #720e9e; border-color: #fff; } .btn-yahoo:not(:disabled):not(.disabled):active, .btn-yahoo:not(:disabled):not(.disabled).active, .show > .btn-yahoo.dropdown-toggle { color: #fff; background-color: #500a6f; border-color: #dfdfdf; } .btn-yahoo:not(:disabled):not(.disabled):active:focus, .btn-yahoo:not(:disabled):not(.disabled).active:focus, .show > .btn-yahoo.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); } .btn-outline-adn { border: 1px solid #d87a68 !important; color: #d87a68; } .btn-outline-bitbucket { border: 1px solid #205081 !important; color: #205081; } .btn-outline-dropbox { border: 1px solid #1087dd !important; color: #1087dd; } .btn-outline-facebook { border: 1px solid #3b5998 !important; color: #3b5998; } .btn-outline-flickr { border: 1px solid #ff0084 !important; color: #ff0084; } .btn-outline-foursquare { border: 1px solid #f94877 !important; color: #f94877; } .btn-outline-github { border: 1px solid #444444 !important; color: #444444; } .btn-outline-google { border: 1px solid #dd4b39 !important; color: #dd4b39; } .btn-outline-instagram { border: 1px solid #3f729b !important; color: #3f729b; } .btn-outline-linkedin { border: 1px solid #007bb6 !important; color: #007bb6; } .btn-outline-microsoft { border: 1px solid #2672ec !important; color: #2672ec; } .btn-outline-odnoklassniki { border: 1px solid #f4731c !important; color: #f4731c; } .btn-outline-openid { border: 1px solid #f7931e !important; color: #f7931e; } .btn-outline-pinterest { border: 1px solid #cb2027 !important; color: #cb2027; } .btn-outline-reddit { border: 1px solid #ff4500 !important; color: #ff4500; } .btn-outline-soundcloud { border: 1px solid #ff5500 !important; color: #ff5500; } .btn-outline-tumblr { border: 1px solid #2c4762 !important; color: #2c4762; } .btn-outline-twitter { border: 1px solid #55acee !important; color: #55acee; } .btn-outline-vimeo { border: 1px solid #1ab7ea !important; color: #1ab7ea; } .btn-outline-vk { border: 1px solid #587ea3 !important; color: #587ea3; } .btn-outline-yahoo { border: 1px solid #720e9e !important; color: #720e9e; } .btn-outline-adn:hover { color: #ad412d; border: 1px solid #ad412d !important; } .btn-outline-bitbucket:hover { color: #0c1d2f; border: 1px solid #0c1d2f !important; } .btn-outline-dropbox:hover { color: #094d7e; border: 1px solid #094d7e !important; } .btn-outline-facebook:hover { color: #1e2e4f; border: 1px solid #1e2e4f !important; } .btn-outline-flickr:hover { color: #99004f; border: 1px solid #99004f !important; } .btn-outline-foursquare:hover { color: #d4073d; border: 1px solid #d4073d !important; } .btn-outline-github:hover { color: #111111; border: 1px solid #111111 !important; } .btn-outline-google:hover { color: #96271a; border: 1px solid #96271a !important; } .btn-outline-instagram:hover { color: #223d52; border: 1px solid #223d52 !important; } .btn-outline-linkedin:hover { color: #003650; border: 1px solid #003650 !important; } .btn-outline-microsoft:hover { color: #0e459e; border: 1px solid #0e459e !important; } .btn-outline-odnoklassniki:hover { color: #a24608; border: 1px solid #a24608 !important; } .btn-outline-openid:hover { color: #a95e06; border: 1px solid #a95e06 !important; } .btn-outline-pinterest:hover { color: #731216; border: 1px solid #731216 !important; } .btn-outline-reddit:hover { color: #992900; border: 1px solid #992900 !important; } .btn-outline-soundcloud:hover { color: #993300; border: 1px solid #993300 !important; } .btn-outline-tumblr:hover { color: #0c141c; border: 1px solid #0c141c !important; } .btn-outline-twitter:hover { color: #147bc9; border: 1px solid #147bc9 !important; } .btn-outline-vimeo:hover { color: #0d7091; border: 1px solid #0d7091 !important; } .btn-outline-vk:hover { color: #344b61; border: 1px solid #344b61 !important; } .btn-outline-yahoo:hover { color: #2e0640; border: 1px solid #2e0640 !important; } .bg-adn { background-color: #d87a68; } .bg-bitbucket { background-color: #205081; } .bg-dropbox { background-color: #1087dd; } .bg-facebook { background-color: #3b5998; } .bg-flickr { background-color: #ff0084; } .bg-foursquare { background-color: #f94877; } .bg-github { background-color: #444444; } .bg-google { background-color: #dd4b39; } .bg-instagram { background-color: #3f729b; } .bg-linkedin { background-color: #007bb6; } .bg-microsoft { background-color: #2672ec; } .bg-odnoklassniki { background-color: #f4731c; } .bg-openid { background-color: #f7931e; } .bg-pinterest { background-color: #cb2027; } .bg-reddit { background-color: #ff4500; } .bg-soundcloud { background-color: #ff5500; } .bg-tumblr { background-color: #2c4762; } .bg-twitter { background-color: #55acee; } .bg-vimeo { background-color: #1ab7ea; } .bg-vk { background-color: #587ea3; } .bg-yahoo { background-color: #720e9e; } /*========================================================================================= File Name: demo.scss Description: CSS used for demo purpose only. Remove this css from your project. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ .fonticon-container > .fonticon-wrap { float: left; width: 60px; height: 60px; line-height: 4.8rem; text-align: center; border-radius: 0.1875rem; margin-right: 1rem; margin-bottom: 1.5rem; } .fonticon-container > .fonticon-wrap > i { font-size: 2.28rem; transition: all .2s ease-in-out; } .fonticon-container > .fonticon-wrap.youtube { width: 100px; } .fonticon-container:hover i { color: #7367f0; font-size: 2.9rem; transform: scale(1.3); } .fonticon-container > .fonticon-classname, .fonticon-container > .fonticon-unit { display: block; font-size: 1.5rem; line-height: 1.2; } .fonticon-container > .fonticon-unit { font-size: 1rem; font-style: italic; } .scroll-example { padding: 0.5rem; position: relative; border: 2px solid #dfdfdf; overflow: auto; } .scroll-example .horz-scroll-content { width: 1200px; } .browser { background: #e0e0e0; border: 4px solid #e0e0e0; width: 100%; height: 12rem; padding-top: 20px; margin: 0 0 10px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .browser iframe { border: 0; background: #fff; height: 100%; width: 100%; } .loader-wrapper { height: 8em; } .maintenance-icon { font-size: 4rem; } .animationIcon { right: 30px; bottom: 10px; } /*========================================================================================= File Name: customizer.scss Description: CSS used for demo purpose only. Remove this css from your project. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ .customizer { width: 400px; right: -400px; padding: 0; background-color: #fff; z-index: 1051; position: fixed; top: 0; bottom: 0; height: 100vh; height: calc(var(--vh, 1vh) * 100); transition: right 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99); backface-visibility: hidden; border-left: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.11), 0 5px 15px 0 rgba(0, 0, 0, 0.08); } .customizer.open { right: 0; } .customizer .customizer-content { position: relative; height: 100%; } .customizer .customizer-close { position: absolute; right: 30px; top: 20px; padding: 7px; width: auto; z-index: 10; color: #626262; } .customizer .customizer-close i { font-size: 1.71rem; } .customizer .customizer-toggle { background: #7367f0; color: #fff; display: block; box-shadow: -3px 0px 8px rgba(0, 0, 0, 0.1); border-top-left-radius: 6px; border-bottom-left-radius: 6px; position: absolute; top: 50%; width: 38px; height: 38px; left: -39px; text-align: center; line-height: 40px; cursor: pointer; } .customizer .color-box { height: 35px; width: 35px; margin: .5rem; border-radius: .5rem; cursor: pointer; } .customizer .color-box.selected { box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.5); } body.dark-layout .hide-scroll-top-switch .custom-switch .custom-control-label:before, body.dark-layout .collapse-sidebar .custom-switch .custom-control-label:before { background-color: #10163a; } .buy-now { position: fixed; bottom: 5%; right: 79px; z-index: 1031; } .buy-now .btn { box-shadow: 0 1px 20px 1px #ea5455 !important; } .buy-now .btn:hover { box-shadow: none !important; } .chip { background-color: #f0f0f0; font-size: 0.8rem; border-radius: 1.428rem; display: inline-flex; padding: 0 10px; margin-bottom: 5px; vertical-align: middle; justify-content: center; } .chip .chip-body { color: rgba(0, 0, 0, 0.7); display: flex; justify-content: space-between; min-height: 1.857rem; min-width: 1.857rem; } .chip .chip-body .avatar { background-color: #c3c3c3; display: flex; width: 24px; height: 24px; margin: 2px 0; border-radius: 50%; justify-content: center; align-items: center; color: #fff; transform: translate(-8px); } .chip .chip-body .avatar .avatar-content { top: 0; } .chip .chip-body .avatar img { border-radius: 50%; height: 24px; width: 24px; } .chip .chip-body .chip-text { vertical-align: middle; align-self: center; } .chip .chip-body .chip-closeable { min-height: 1.428rem; min-width: 1.428rem; margin: 0 4px; display: flex; justify-content: center; align-items: center; align-self: center; border-radius: 50%; background: rgba(0, 0, 0, 0.15); color: #fff; transform: translate(10px); cursor: pointer; } .chip .chip-body .chip-closeable i { margin-left: 1px; margin-top: 1px; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .chip .chip-closeable i { position: relative; top: 3px; } } .divider { display: block; text-align: center; overflow: hidden; white-space: nowrap; margin: 1rem 0; } .divider .divider-text { position: relative; display: inline-block; font-size: .9375rem; padding: 0 1rem; background-color: #fff; } .divider .divider-text i { font-size: 1rem; } .divider .divider-text:before, .divider .divider-text:after { content: ""; position: absolute; top: 50%; width: 9999px; border-top: 1px solid rgba(0, 0, 0, 0.1); } .divider .divider-text:before { right: 100%; } .divider .divider-text:after { left: 100%; } .divider.divider-left .divider-text { float: left; padding-left: 0; } .divider.divider-left .divider-text:before { display: none; } .divider.divider-left-center .divider-text { left: -25%; } .divider.divider-right .divider-text { float: right; padding-right: 0; } .divider.divider-right .divider-text:after { display: none; } .divider.divider-right-center .divider-text { right: -25%; } .divider.divider-dotted .divider-text:before, .divider.divider-dotted .divider-text:after { border-style: dotted; border-width: 1px; border-top-width: 0; border-color: black; } .divider.divider-dashed .divider-text:before, .divider.divider-dashed .divider-text:after { border-style: dashed; border-width: 1px; border-top-width: 0; border-color: black; } @media screen and (min-width: 0px) { head { font-family: "xs 0px"; } body:after { content: "xs - min-width: 0px"; } } @media screen and (min-width: 544px) { head { font-family: "sm 544px"; } body:after { content: "sm - min-width: 544px"; } } @media screen and (min-width: 768px) { head { font-family: "md 768px"; } body:after { content: "md - min-width: 768px"; } } @media screen and (min-width: 992px) { head { font-family: "lg 992px"; } body:after { content: "lg - min-width: 992px"; } } @media screen and (min-width: 1200px) { head { font-family: "xl 1200px"; } body:after { content: "xl - min-width: 1200px"; } } head { clear: both; } head title { font-family: "xs 0px, sm 544px, md 768px, lg 992px, xl 1200px"; } body:after { display: none; } *[data-usn-if] { display: none; } .group-area { margin-bottom: 3rem; } .block { display: block; width: 100%; } /* Input with icon */ .form-control-position { position: absolute; top: 2px; right: 0; z-index: 2; display: block; width: 2.5rem; height: 2.5rem; line-height: 2.5rem; text-align: center; } /*--------------------------------- Input Icon ---------------------------------*/ .position-relative .form-control { padding-right: calc( 1.25em + 1.4rem + 1px); } .position-relative .form-control.form-control-lg ~ .form-control-position { top: 10px; } .position-relative .form-control.form-control-sm ~ .form-control-position { top: -3px; } /* Input Icon left */ .has-icon-left .form-control { padding-right: 2rem; padding-left: 3rem; } .has-icon-left .form-control-position { right: auto; left: inherit; } .has-icon-left .form-control-position i { position: relative; left: 5px; color: rgba(34, 41, 47, 0.4); } input[type="color"] { height: calc( 1.25em + 1.4rem + 1px); } input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 1.45; } .font-size-large { font-size: 2rem; } .font-size-base { font-size: 1rem; } .font-size-small { font-size: 1rem; } .font-size-xsmall { font-size: 0.75rem; } .input-group-xs .form-control, .input-group-xs .input-group-addon, .input-group-xs .input-group-btn > button { padding: 0.175rem 0.5rem; font-size: 0.725rem; line-height: 1.677777; border-bottom-left-radius: 0.175rem; border-top-left-radius: 0.175rem; } .input-group-xs .input-group-btn > button { border-radius: 0.175rem; } .input-group-addon { padding-top: 0.2rem; padding-bottom: 0.2rem; } .floating-label-form-group-with-focus label, .floating-label-form-group-with-value label { color: #7367f0 !important; text-transform: uppercase; font-weight: 400; } .select2-container--classic .select2-selection--single { min-height: 40px !important; } .select2-container--classic:focus, .select2-container--default:focus { outline: none; } .select2-container--classic .select2-selection--single, .select2-container--default .select2-selection--single { min-height: 38px; padding: 5px; border: 1px solid rgba(0, 0, 0, 0.2); } .select2-container--classic .select2-selection--single:focus, .select2-container--default .select2-selection--single:focus { outline: 0; border-color: #7367f0 !important; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15) !important; } .select2-container--classic .select2-selection--single .select2-selection__rendered i, .select2-container--default .select2-selection--single .select2-selection__rendered i { margin-right: 0.5rem; } .select2-container--classic .select2-selection--single .select2-selection__arrow, .select2-container--default .select2-selection--single .select2-selection__arrow { min-height: 38px !important; } .select2-container--classic.select2-container--open .select2-selection--single, .select2-container--default.select2-container--open .select2-selection--single { border-color: #7367f0 !important; outline: 0; } .select2-container--classic.select2-container--focus, .select2-container--default.select2-container--focus { outline: 0; } .select2-container--classic.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: #7367f0 !important; outline: 0; } .select2-container--classic .select2-selection--multiple, .select2-container--default .select2-selection--multiple { min-height: 38px !important; border: 1px solid rgba(0, 0, 0, 0.2); } .select2-container--classic .select2-selection--multiple:focus, .select2-container--default .select2-selection--multiple:focus { outline: 0; border-color: #7367f0 !important; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15) !important; } .select2-container--classic .select2-selection--multiple .select2-selection__choice, .select2-container--default .select2-selection--multiple .select2-selection__choice { background-color: #7367f0 !important; border-color: #4839eb !important; color: #fff; padding: 5px; } .select2-container--classic .select2-selection--multiple .select2-selection__rendered li .select2-search__field, .select2-container--default .select2-selection--multiple .select2-selection__rendered li .select2-search__field { margin-top: 10px; } .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #fff !important; float: right; margin-left: 0.5rem; } .select2-container--classic .select2-selection--multiple i, .select2-container--default .select2-selection--multiple i { position: relative; top: 1px; margin-right: 0.5rem; padding-left: 1px; } .select2-container--classic .select2-selection--multiple[class*=bg-] .select2-selection__choice, .select2-container--default .select2-selection--multiple[class*=bg-] .select2-selection__choice { background-color: rgba(0, 0, 0, 0.15) !important; border-color: rgba(0, 0, 0, 0.2) !important; } .select2-container--classic .select2-results__options .select2-results__option i, .select2-container--default .select2-results__options .select2-results__option i { margin-right: 0.5rem; } .select2-container--classic .select2-result-repository__avatar img, .select2-container--default .select2-result-repository__avatar img { width: 50px; } .select2-container--classic [class*="icon-"], .select2-container--default [class*="icon-"] { font-family: 'feather'; } .select2-container--classic .select-lg, .select2-container--default .select-lg { min-height: calc( 1.25em + 1.4rem + 1px) !important; font-size: 1.2rem; margin-bottom: 0 !important; padding: 0.3rem 0.7rem; } .select2-container--classic .select-lg.select2-selection--single .select2-selection__rendered, .select2-container--default .select-lg.select2-selection--single .select2-selection__rendered { padding-top: 0.1rem; } .select2-container--classic .select-lg.select2-selection--single .select2-selection__arrow, .select2-container--default .select-lg.select2-selection--single .select2-selection__arrow { top: 0.2rem !important; } .select2-container--classic .select-lg.select2-selection--multiple, .select2-container--default .select-lg.select2-selection--multiple { padding: 0 0.2rem; } .select2-container--classic .select-lg.select2-selection--multiple .select2-selection__rendered, .select2-container--default .select-lg.select2-selection--multiple .select2-selection__rendered { padding-top: 0 !important; } .select2-container--classic .select-lg.select2-selection--multiple .select2-selection__rendered li, .select2-container--default .select-lg.select2-selection--multiple .select2-selection__rendered li { font-size: 1.2rem; } .select2-container--classic .select-lg.select2-selection--multiple .select2-selection__rendered .select2-selection__choice, .select2-container--default .select-lg.select2-selection--multiple .select2-selection__rendered .select2-selection__choice { padding: 5px; } .select2-container--classic .select-sm, .select2-container--default .select-sm { min-height: calc(1em + 1rem + 2px) !important; padding: 0 0.2rem; font-size: 0.75rem; margin-bottom: 0 !important; line-height: 1.5; } .select2-container--classic .select-sm.select2-selection--single .select2-selection__arrow, .select2-container--default .select-sm.select2-selection--single .select2-selection__arrow { top: -0.3rem !important; } .select2-container--classic .select-sm.select2-selection--multiple, .select2-container--default .select-sm.select2-selection--multiple { line-height: 1.3; } .select2-container--classic .select-sm.select2-selection--multiple .select2-selection__rendered, .select2-container--default .select-sm.select2-selection--multiple .select2-selection__rendered { padding: 3px; } .select2-container--classic .select-sm.select2-selection--multiple .select2-selection__rendered li, .select2-container--default .select-sm.select2-selection--multiple .select2-selection__rendered li { font-size: 0.75rem; margin-top: 2px; } .select2-container--classic .select-sm.select2-selection--multiple .select2-selection__choice, .select2-container--default .select-sm.select2-selection--multiple .select2-selection__choice { padding: 0 0.2rem; } .select2-container--classic .select-sm.select2-selection--multiple .select2-search--inline .select2-search__field, .select2-container--default .select-sm.select2-selection--multiple .select2-search--inline .select2-search__field { margin-top: 0; } .select2 .form-control::focus { border-color: #7367f0 !important; } table.dataTable { border: 2px solid #f8f8f8; } table.dataTable th, table.dataTable td { border-bottom: 1px solid #f8f8f8; border-top: 0; } table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td { font-size: 0.85rem; border: 0; } table.dataTable thead tr { background-color: #f8f8f8; } table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { padding-right: inherit; } table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before { font-family: 'feather'; content: "\e845"; padding-right: 0.3rem; font-size: .7rem; left: 0; top: .9rem; } table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after { font-family: 'feather'; content: "\e842"; font-size: .7rem; left: 0; top: 1.3rem; } table.dataTable.table-striped tbody tr:nth-of-type(even) { background-color: #f8f8f8; } table.dataTable.table-striped tbody tr:nth-of-type(odd) { background-color: #fff; } table.dataTable.complex-headers { border: 1px solid #dae1e7; } table.dataTable.complex-headers thead th, table.dataTable.complex-headers thead td, table.dataTable.complex-headers tfoot th, table.dataTable.complex-headers tfoot td { border-bottom: 1px solid #dae1e7; border-right: 1px solid #dae1e7; } table.dataTable tbody tr.selected { background-color: rgba(115, 103, 240, 0.05) !important; color: #7367f0 !important; box-shadow: 0 0 1px 0 #7367f0 !important; border-radius: 5px; } table.dataTable tbody tr.selected td, table.dataTable tbody tr.selected th { border-bottom: 0; } div.dataTables_wrapper div.dataTables_filter label, div.dataTables_wrapper div.dataTables_length label { margin-top: 1rem; } div.dataTables_wrapper div.dataTables_filter select, div.dataTables_wrapper div.dataTables_length select { background-position: calc(100% - 3px) 5px, calc(100% - 20px) 13px, 100% 0; padding: 0 0.8rem; } div.dataTables_wrapper div.dataTables_paginate ul.pagination { margin-top: 1rem; padding-bottom: 7px; } div.dataTables_wrapper div.dataTables_paginate ul.pagination li a { font-size: 0.8rem; } tr.group { background-color: #ededed; } @media only screen and (max-width: 768px) { div.dataTables_wrapper div.dataTables_paginate ul.pagination { justify-content: center; } } ================================================ FILE: public/backend/css/core/colors/palette-gradient.css ================================================ .bg-gradient-white { color: #fff; background-image: linear-gradient(30deg, #FFFFFF, rgba(255, 255, 255, 0.5)); background-repeat: repeat-x; } .bg-gradient-white:hover, .bg-gradient-white:active { color: #fff; } .gradient-light-white { background: linear-gradient(30deg, #FFFFFF 0%, 100%); color: #fff; } .gradient-light-white:hover, .gradient-light-white:active { color: #fff; } .bg-gradient-black { color: #fff; background-image: linear-gradient(30deg, #000000, rgba(0, 0, 0, 0.5)); background-repeat: repeat-x; } .bg-gradient-black:hover, .bg-gradient-black:active { color: #fff; } .gradient-light-black { background: linear-gradient(30deg, #000000 0%, 100%); color: #fff; } .gradient-light-black:hover, .gradient-light-black:active { color: #fff; } .bg-gradient-dark { background: #640064; color: #fff; background-image: linear-gradient(30deg, #1e1e1e, rgba(30, 30, 30, 0.5)); background-repeat: repeat-x; } .bg-gradient-dark:hover, .bg-gradient-dark:active { color: #fff; } .gradient-light-dark { background: linear-gradient(30deg, #1e1e1e 0%, 100%); color: #fff; } .gradient-light-dark:hover, .gradient-light-dark:active { color: #fff; } .bg-gradient-light { background: #640064; color: #fff; background-image: linear-gradient(30deg, #babfc7, rgba(186, 191, 199, 0.5)); background-repeat: repeat-x; } .bg-gradient-light:hover, .bg-gradient-light:active { color: #fff; } .gradient-light-light { background: linear-gradient(30deg, #babfc7 0%, 100%); color: #fff; } .gradient-light-light:hover, .gradient-light-light:active { color: #fff; } .bg-gradient-primary { background: #640064; color: #fff; background-image: linear-gradient(30deg, #7367f0, rgba(115, 103, 240, 0.5)); background-repeat: repeat-x; } .bg-gradient-primary:hover, .bg-gradient-primary:active { color: #fff; } .gradient-light-primary { background: linear-gradient(30deg, #7367f0 0%, #ce9ffc 100%); color: #fff; } .gradient-light-primary:hover, .gradient-light-primary:active { color: #fff; } .bg-gradient-secondary { background: #640064; color: #fff; background-image: linear-gradient(30deg, #b8c2cc, rgba(184, 194, 204, 0.5)); background-repeat: repeat-x; } .bg-gradient-secondary:hover, .bg-gradient-secondary:active { color: #fff; } .gradient-light-secondary { background: linear-gradient(30deg, #b8c2cc 0%, #dcdeec 100%); color: #fff; } .gradient-light-secondary:hover, .gradient-light-secondary:active { color: #fff; } .bg-gradient-success { background: #0064fa; color: #fff; background-image: linear-gradient(30deg, #28c76f, rgba(40, 199, 111, 0.5)); background-repeat: repeat-x; } .bg-gradient-success:hover, .bg-gradient-success:active { color: #fff; } .gradient-light-success { background: linear-gradient(30deg, #28c76f 0%, #4ae9d3 100%); color: #fff; } .gradient-light-success:hover, .gradient-light-success:active { color: #fff; } .bg-gradient-info { background: #640064; color: #fff; background-image: linear-gradient(30deg, #00cfe8, rgba(0, 207, 232, 0.5)); background-repeat: repeat-x; } .bg-gradient-info:hover, .bg-gradient-info:active { color: #fff; } .gradient-light-info { background: linear-gradient(30deg, #00cfe8 0%, #2d91ff 100%); color: #fff; } .gradient-light-info:hover, .gradient-light-info:active { color: #fff; } .bg-gradient-warning { background: #fafafa; color: #fff; background-image: linear-gradient(30deg, #ff9f43, rgba(255, 159, 67, 0.5)); background-repeat: repeat-x; } .bg-gradient-warning:hover, .bg-gradient-warning:active { color: #fff; } .gradient-light-warning { background: linear-gradient(30deg, #ff9f43 0%, #fff487 100%); color: #fff; } .gradient-light-warning:hover, .gradient-light-warning:active { color: #fff; } .bg-gradient-danger { background: #640064; color: #fff; background-image: linear-gradient(30deg, #ea5455, rgba(234, 84, 85, 0.5)); background-repeat: repeat-x; } .bg-gradient-danger:hover, .bg-gradient-danger:active { color: #fff; } .gradient-light-danger { background: linear-gradient(30deg, #ea5455 0%, #f9b789 100%); color: #fff; } .gradient-light-danger:hover, .gradient-light-danger:active { color: #fff; } ================================================ FILE: public/backend/css/core/colors/palette-noui.css ================================================ .slider-white .noUi-connect { background: #FFFFFF !important; } .slider-white.noUi-connect { background: #FFFFFF !important; } .slider-white .noUi-handle { border-color: #FFFFFF !important; } .slider-white.circle-filled .noUi-handle, .slider-white.square .noUi-handle { background: #FFFFFF !important; } .slider-black .noUi-connect { background: #000000 !important; } .slider-black.noUi-connect { background: #000000 !important; } .slider-black .noUi-handle { border-color: #000000 !important; } .slider-black.circle-filled .noUi-handle, .slider-black.square .noUi-handle { background: #000000 !important; } .slider-dark .noUi-connect { background: #1e1e1e !important; } .slider-dark.noUi-connect { background: #1e1e1e !important; } .slider-dark .noUi-handle { border-color: #1e1e1e !important; } .slider-dark.circle-filled .noUi-handle, .slider-dark.square .noUi-handle { background: #1e1e1e !important; } .slider-light .noUi-connect { background: #babfc7 !important; } .slider-light.noUi-connect { background: #babfc7 !important; } .slider-light .noUi-handle { border-color: #babfc7 !important; } .slider-light.circle-filled .noUi-handle, .slider-light.square .noUi-handle { background: #babfc7 !important; } .slider-primary .noUi-connect { background: #7367f0 !important; } .slider-primary.noUi-connect { background: #7367f0 !important; } .slider-primary .noUi-handle { border-color: #7367f0 !important; } .slider-primary.circle-filled .noUi-handle, .slider-primary.square .noUi-handle { background: #7367f0 !important; } .slider-secondary .noUi-connect { background: #b8c2cc !important; } .slider-secondary.noUi-connect { background: #b8c2cc !important; } .slider-secondary .noUi-handle { border-color: #b8c2cc !important; } .slider-secondary.circle-filled .noUi-handle, .slider-secondary.square .noUi-handle { background: #b8c2cc !important; } .slider-success .noUi-connect { background: #28c76f !important; } .slider-success.noUi-connect { background: #28c76f !important; } .slider-success .noUi-handle { border-color: #28c76f !important; } .slider-success.circle-filled .noUi-handle, .slider-success.square .noUi-handle { background: #28c76f !important; } .slider-info .noUi-connect { background: #00cfe8 !important; } .slider-info.noUi-connect { background: #00cfe8 !important; } .slider-info .noUi-handle { border-color: #00cfe8 !important; } .slider-info.circle-filled .noUi-handle, .slider-info.square .noUi-handle { background: #00cfe8 !important; } .slider-warning .noUi-connect { background: #ff9f43 !important; } .slider-warning.noUi-connect { background: #ff9f43 !important; } .slider-warning .noUi-handle { border-color: #ff9f43 !important; } .slider-warning.circle-filled .noUi-handle, .slider-warning.square .noUi-handle { background: #ff9f43 !important; } .slider-danger .noUi-connect { background: #ea5455 !important; } .slider-danger.noUi-connect { background: #ea5455 !important; } .slider-danger .noUi-handle { border-color: #ea5455 !important; } .slider-danger.circle-filled .noUi-handle, .slider-danger.square .noUi-handle { background: #ea5455 !important; } ================================================ FILE: public/backend/css/core/colors/palette-variables.css ================================================ ================================================ FILE: public/backend/css/core/menu/menu-types/horizontal-menu.css ================================================ /*========================================================================================= File Name: horizontal-menu.scss Description: A classic horizontal menu for easy navingation & support all devices. It support light & dark version, filpped layout, right side icons, borders menu for item seperation. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard TemplateTheme Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ .horizontal-menu .content { margin-left: 0; } .horizontal-menu .content .content-wrapper { margin-top: 0 !important; } .horizontal-menu footer { position: static; } .horizontal-menu.navbar-floating:not(.blank-page) .app-content { padding-top: 9.75rem; } .horizontal-menu.navbar-floating .horizontal-menu-wrapper { background: linear-gradient(to bottom, rgba(248, 248, 248, 0.95) 44%, rgba(248, 248, 248, 0.46) 73%, rgba(255, 255, 255, 0) 100%); background-repeat: repeat-x; } .horizontal-menu.navbar-floating .horizontal-menu-wrapper .navbar-horizontal.floating-nav { margin: 1.3rem 2.2rem 0; } .horizontal-menu.dark-layout .header-navbar { background: inherit !important; } .horizontal-menu.dark-layout .horizontal-menu-wrapper { background: linear-gradient(to bottom, rgba(37, 43, 71, 0.76) 44%, rgba(56, 53, 53, 0.46) 73%, rgba(255, 255, 255, 0) 100%); } .horizontal-menu.dark-layout .horizontal-menu-wrapper .header-navbar { background: #10163a !important; } .horizontal-menu.dark-layout .horizontal-menu-wrapper .header-navbar.navbar-horizontal ul#main-menu-navigation > li:hover:not(.active) > a { background: #262c49; } .horizontal-menu.semi-dark-layout .header-navbar { background: linear-gradient(to bottom, rgba(37, 43, 71, 0.76) 44%, rgba(56, 53, 53, 0.46) 73%, rgba(255, 255, 255, 0) 100%); } .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .header-navbar { background: #10163a !important; } .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .header-navbar.navbar-horizontal ul#main-menu-navigation > li:hover > a { background: #262c49; } .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .header-navbar i, .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .header-navbar span, .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .header-navbar .nav-link { color: #c2c6dc; } .horizontal-menu.semi-dark-layout .horizontal-menu-wrapper .dropdown-menu { background-color: #262c49; } .horizontal-menu.navbar-sticky .app-content { padding-top: 8.5rem; } .horizontal-menu.navbar-sticky .header-navbar { background-color: #f8f8f8; } .horizontal-menu.navbar-sticky .horizontal-menu-wrapper .navbar-horizontal.header-navbar.fixed-top { left: 0; top: 62px; background-color: #fff; } .horizontal-menu.navbar-static .app-content { padding-top: 2.5rem; } .horizontal-menu.navbar-static .header-navbar { background-color: #f8f8f8; } .horizontal-menu.navbar-static .header-navbar .navbar-wrapper { width: 100%; } .horizontal-menu.navbar-static .horizontal-menu-wrapper { position: relative; } .horizontal-menu.navbar-static .horizontal-menu-wrapper .navbar-horizontal.header-navbar { background: #fff; } .horizontal-menu.navbar-static .horizontal-menu-wrapper .navbar-horizontal.header-navbar.navbar-static-top { position: static; background: #fff; left: 0; } .horizontal-menu .horizontal-menu-wrapper { position: fixed; top: 62px; z-index: 990; width: 100%; height: 99px; } .horizontal-menu .horizontal-menu-wrapper .header-navbar .navbar-container { padding-left: 1rem; padding-right: 1rem; width: 100%; } .horizontal-menu .horizontal-menu-wrapper .header-navbar .navbar-header { display: none; } .horizontal-menu .header-navbar { background: #fff; z-index: 999 !important; line-height: 1; min-height: auto; } .horizontal-menu .header-navbar.navbar-horizontal.floating-nav { width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2)); background: #fff; } .horizontal-menu .header-navbar .navbar-container { padding-left: 2.2rem; padding-right: calc(2.2rem - 1rem); border-radius: 0.5rem; } .horizontal-menu .header-navbar.navbar-fixed { position: fixed; width: 100%; } .horizontal-menu .header-navbar.navbar-brand-center .navbar-header { position: absolute; left: 50%; margin-left: -65px; padding: 0; z-index: 1000; } .horizontal-menu .header-navbar.navbar-brand-center .navbar-header .navbar-brand { display: flex; align-items: center; margin-right: 0; } .horizontal-menu .header-navbar.navbar-brand-center .navbar-header .navbar-brand .brand-logo { background: url("../../../../../app-assets/images/logo/vuexy-logo.png") no-repeat; background-position: -65px -54px; height: 24px; width: 35px; } .horizontal-menu .header-navbar.navbar-brand-center .navbar-header .navbar-brand .brand-text { color: #fff; padding-left: 1rem; letter-spacing: 0.01rem; font-size: 1.57rem; } .horizontal-menu .header-navbar.navbar-horizontal .nav-link.dropdown-toggle::after { left: 0.4rem; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu::before { display: none; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu { min-width: 215px; border: none; margin-top: 0; min-height: 52px; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .disabled { pointer-events: none !important; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .disabled a { color: #b8c2cc; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-toggle::after { left: auto; position: absolute; top: 50%; margin-top: -7px; right: 1rem; content: "\e844" !important; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-item { font-size: 1rem; padding: 0.965rem 1.428rem; display: flex; align-items: center; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-submenu { position: relative; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-submenu.openLeft .dropdown-menu { left: auto; right: 100%; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-submenu.show { background: #f8f8f8; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-submenu > .dropdown-menu { position: absolute; top: 0 !important; left: 100% !important; } .horizontal-menu .header-navbar.navbar-horizontal .dropdown-menu .dropdown-submenu > .dropdown-menu i { font-size: 0.75rem !important; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li { padding-top: 0.965rem; padding-bottom: 0.965rem; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu { margin-top: 0.75rem; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu a { transition: padding 0.35s ease 0s !important; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu a:hover { padding-left: 25px; transition: padding 0.35s ease 0s !important; background-color: transparent; color: #626262; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu .active > a { background: #f8f8f8; color: #7367f0; font-weight: 500; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu .open.active > a { color: #626262; font-weight: normal; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li i { font-size: 1.11rem; margin-right: 0.75rem; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > a { padding: 0.75rem 1.25rem 0.75rem 1.25rem; display: flex; margin-right: 0.5rem; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li:hover > a { background: #f8f8f8; border-radius: 4px; } .horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li.active > a { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0px 0px 6px 1px rgba(115, 103, 240, 0.6); color: #fff; border-radius: 4px; } .horizontal-menu.menu-collapsed #main-menu-navigation .nav-item > a span { display: none; } .horizontal-menu .navigation-header { font-family: inherit; color: #929292; padding: 8px 20px; font-size: 1rem; text-transform: uppercase; } .horizontal-menu .navbar-dark .nav-item.active > a { border-bottom: 2px solid #7367f0; background-color: #313c50; } .horizontal-menu .content.app-content .content-area-wrapper { margin-top: 2.2rem; } .horizontal-menu .content.app-content .content-area-wrapper .content-wrapper { height: calc(100vh - 16rem); height: calc(var(--vh, 1vh) * 100 - 16rem); } .horizontal-menu.chat-application .sidebar-content, .horizontal-menu.email-application .content-area-wrapper .sidebar .email-app-sidebar, .horizontal-menu.todo-application .content-area-wrapper .sidebar .todo-sidebar { height: calc(100vh - 16rem); height: calc(var(--vh, 1vh) * 100 - 16rem); } .horizontal-menu.todo-application .content-area-wrapper .content-right .todo-task-list { height: calc(100vh - 19.5rem); height: calc(var(--vh, 1vh) * 100 - 19.5rem); } .horizontal-menu.email-application .app-content .content-area-wrapper .email-user-list { height: calc(100vh - 23.3rem); height: calc(var(--vh, 1vh) * 100 - 23.3rem); } .horizontal-menu.chat-application .user-profile-sidebar { height: calc(100vh - 16.1rem); height: calc(var(--vh, 1vh) * 100 - 16.1rem); bottom: 4.1rem; } .horizontal-menu.chat-application .chat-profile-sidebar { height: calc(100vh - 16rem); height: calc(var(--vh, 1vh) * 100 - 16rem); } .horizontal-menu.chat-application .chat-app-window .user-chats { height: calc(100vh - 26.5rem); height: calc(var(--vh, 1vh) * 100 - 26.5rem); } @media (max-width: 1199.98px) { body.horizontal-layout.horizontal-menu .horizontal-menu-wrapper .header-navbar { display: none; } body.horizontal-layout .header-navbar { background: #fff; } body.horizontal-layout .content .content-wrapper { margin-top: 5rem; } } /*========================================================================================= File Name: vertical-overlay-menu.scss Description: A overlay style vertical menu with show and hide support. It support light & dark version, filpped layout, right side icons, native scroll and borders menu item seperation. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ .vertical-overlay-menu .content { margin-left: 0; } .vertical-overlay-menu .navbar .navbar-header { float: left; width: 260px; } .vertical-overlay-menu .navbar.header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2)); } .vertical-overlay-menu .main-menu, .vertical-overlay-menu.menu-hide .main-menu { opacity: 0; transform: translate3d(0, 0, 0); transition: width .25s,opacity .25s,transform .25s; width: 260px; left: -260px; } .vertical-overlay-menu .main-menu .navigation .navigation-header .icon-minus { display: none; } .vertical-overlay-menu .main-menu .navigation > li > a > i { margin-right: 14px; float: left; } .vertical-overlay-menu .main-menu .navigation > li > a > i:before { transition: 200ms ease all; font-size: 1.429rem; } .vertical-overlay-menu .main-menu .navigation li.has-sub > a:not(.mm-next):after { content: "\f105"; font-family: 'FontAwesome'; font-size: 1rem; display: inline-block; position: absolute; right: 25px; top: 10px; transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } .vertical-overlay-menu .main-menu .navigation li.open > a:not(.mm-next):after { transform: rotate(90deg); } .vertical-overlay-menu .main-menu .navigation li a i { font-size: 1.1rem; } .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 55px; } .vertical-overlay-menu .main-menu .main-menu-footer { width: 260px; } .vertical-overlay-menu.menu-open .main-menu { opacity: 1; transform: translate3d(260px, 0, 0); transition: width .25s,opacity .25s,transform .25s; } .vertical-overlay-menu.menu-flipped .main-menu { right: -260px; left: inherit; } .vertical-overlay-menu.menu-flipped .navbar .navbar-container { margin: 0; margin-right: 260px; } .vertical-overlay-menu.menu-flipped .navbar .navbar-header { float: right; } .vertical-overlay-menu.menu-flipped.menu-open .main-menu { transform: translate3d(-260px, 0, 0); } @media (max-width: 991.98px) { .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 0px; } } ================================================ FILE: public/backend/css/core/menu/menu-types/vertical-menu.css ================================================ /*========================================================================================= File Name: vertical-menu.scss Description: A calssic vertical modern style menu with expand and collops support. It support light & dark version, filpped layout, right side icons, native scroll and borders menu item seperation. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ body.vertical-layout.vertical-menu-modern .main-menu .navigation > li > a > i { font-size: 1.2rem; margin-right: 1rem; float: left; } body.vertical-layout.vertical-menu-modern .main-menu .navigation .menu-content > li > a > i { margin-right: 1.38rem; font-size: 0.8rem; } body.vertical-layout.vertical-menu-modern .toggle-icon { margin-right: 0.425rem; } body.vertical-layout.vertical-menu-modern .toggle-icon:focus { outline: none; } @media (min-width: 576px) { body.vertical-layout.vertical-menu-modern.menu-flipped .main-menu { right: 0; } } body.vertical-layout.vertical-menu-modern .navbar .navbar-brand { white-space: nowrap; } body.vertical-layout.vertical-menu-modern .navbar .navbar-header .nav-toggle { position: absolute; right: 0; } body.vertical-layout.vertical-menu-modern .main-menu { transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); transform: translate3d(0, 0, 0); backface-visibility: hidden; } body.vertical-layout.vertical-menu-modern.menu-expanded .navbar .navbar-header { float: left; width: 260px; } body.vertical-layout.vertical-menu-modern.menu-expanded .navbar .navbar-brand .brand-text { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu { width: 260px; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation .navigation-header .icon-minus { display: none; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation > li > a > i { margin-right: 1rem; float: left; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation > li > a > i:before { font-size: 1.429rem; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation > li > a > span { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation > li > a > span.badge { position: absolute; right: 20px; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation li.has-sub > a:not(.mm-next):after { content: "\f105"; font-family: 'FontAwesome'; font-size: 1.1rem; display: inline-block; position: absolute; right: 25px; top: 10px; transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation li.open > a:not(.mm-next):after { transform: rotate(90deg); } body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .main-menu-footer { width: 260px; } body.vertical-layout.vertical-menu-modern.menu-expanded .footer { margin-left: 260px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header { float: left; width: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header .modern-nav-toggle { display: none; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header.expanded { width: 260px; z-index: 1000; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header.expanded .modern-nav-toggle { display: block; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header.expanded .navbar-brand .brand-text { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-header .navbar-brand .brand-text { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadeout; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar .navbar-brand { padding: 15px 0px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .navbar.fixed-top { left: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu { width: 80px; transition: 300ms ease all; backface-visibility: hidden; transform: translate3d(0, 0, 0); } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-footer { width: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-footer, body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-header .media-body .media-heading, body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-header .media-body .text-muted, body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-header .media-right { display: none; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .main-menu-header .media-body { opacity: 0; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navbar-header .brand-text, body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .modern-nav-toggle { display: none; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .user-content { padding: 20px 10px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation-header { margin: 0; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation li a { line-height: 1; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation li:last-child { margin-bottom: 1.25rem !important; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation li.active a { background: whitesmoke; box-shadow: none; color: #565656; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation { overflow: visible; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li.navigation-header .icon-minus { display: block; font-size: 1.2rem; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li.navigation-header span { display: none; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li > a { text-overflow: inherit; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li > a > span { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadeout; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li > a > span.badge { float: none !important; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li > a i { margin-right: 1rem; float: left; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .navigation > li > a i:before { font-size: 1.429rem; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu .mTSWrapper { overflow: visible; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded { width: 260px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation > li.navigation-header .icon-minus { display: none; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation > li.navigation-header span { display: block; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation > li > a > span { animation: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation > li > a > span.badge { position: absolute; right: 20px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation li.has-sub > a:not(.mm-next):after { content: "\f105"; font-family: 'FontAwesome'; font-size: 1rem; display: inline-block; position: absolute; right: 25px; top: 10px; transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navigation li.open > a:not(.mm-next):after { transform: rotate(90deg); } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .navbar-header .brand-text { display: inline; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.expanded .modern-nav-toggle { display: block; } body.vertical-layout.vertical-menu-modern.menu-collapsed .app-content, body.vertical-layout.vertical-menu-modern.menu-collapsed .footer { margin-left: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed .header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - 4.4rem - 80px); } body.vertical-layout.vertical-menu-modern.menu-collapsed .header-navbar.navbar-static-top { width: calc(100vw - (100vw - 100%) - 80px); left: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .content { margin: 0; margin-right: 80px; } @media (min-width: 576px) { body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .main-menu { right: 0; } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .main-menu span.menu-title { right: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .main-menu ul.menu-content { right: 80px; left: inherit; } } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .navbar .navbar-header { float: right; } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .navbar .navbar-container { margin: 0; margin-right: 80px; } body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-flipped .footer { margin: 0; margin-right: 80px; } @media (min-width: 992px) { body.vertical-layout.vertical-menu-modern .main-menu { width: 260px; } body.vertical-layout.vertical-menu-modern .main-menu .navigation li.navigation-header .icon-minus { display: none; } body.vertical-layout.vertical-menu-modern .navbar .navbar-header { width: 260px; } body.vertical-layout.vertical-menu-modern .footer { margin-left: 260px; } body.vertical-layout.vertical-menu-modern.menu-flipped .content { margin: 0; margin-right: 260px; } body.vertical-layout.vertical-menu-modern.menu-flipped .navbar .navbar-header { float: right; } body.vertical-layout.vertical-menu-modern.menu-flipped .navbar .navbar-container { margin: 0; margin-right: 260px; } body.vertical-layout.vertical-menu-modern.menu-flipped .footer { margin: 0; margin-right: 260px; } } @media (max-width: 1199.98px) { body.vertical-layout.vertical-menu-modern .main-menu { width: 0; opacity: 0; left: -260px; } body.vertical-layout.vertical-menu-modern .main-menu .navigation > li > a > span { animation: 0.1s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadeout; } body.vertical-layout.vertical-menu-modern .main-menu .navigation li.navigation-header span { display: none; } body.vertical-layout.vertical-menu-modern .navbar .navbar-header { width: 0; } body.vertical-layout.vertical-menu-modern .content, body.vertical-layout.vertical-menu-modern .footer { margin-left: 0; } body.vertical-layout.vertical-menu-modern.menu-collapsed .app-content, body.vertical-layout.vertical-menu-modern.menu-collapsed .footer { margin-left: 0; } body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu { width: 0; } } @media (max-width: 767.98px) { body.vertical-layout.vertical-menu-modern .main-menu { width: 0; } body.vertical-layout.vertical-menu-modern .navbar .navbar-header { width: 0; } body.vertical-layout.vertical-menu-modern .content, body.vertical-layout.vertical-menu-modern .footer { margin-left: 0; } } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { body.vertical-menu-modern.vertical-layout .main-menu .navigation > li > a > span { animation: none; } } /*========================================================================================= File Name: vertical-overlay-menu.scss Description: A overlay style vertical menu with show and hide support. It support light & dark version, filpped layout, right side icons, native scroll and borders menu item seperation. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ .vertical-overlay-menu .content { margin-left: 0; } .vertical-overlay-menu .navbar .navbar-header { float: left; width: 260px; } .vertical-overlay-menu .navbar.header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2)); } .vertical-overlay-menu .main-menu, .vertical-overlay-menu.menu-hide .main-menu { opacity: 0; transform: translate3d(0, 0, 0); transition: width .25s,opacity .25s,transform .25s; width: 260px; left: -260px; } .vertical-overlay-menu .main-menu .navigation .navigation-header .icon-minus { display: none; } .vertical-overlay-menu .main-menu .navigation > li > a > i { margin-right: 14px; float: left; } .vertical-overlay-menu .main-menu .navigation > li > a > i:before { transition: 200ms ease all; font-size: 1.429rem; } .vertical-overlay-menu .main-menu .navigation li.has-sub > a:not(.mm-next):after { content: "\f105"; font-family: 'FontAwesome'; font-size: 1rem; display: inline-block; position: absolute; right: 25px; top: 10px; transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } .vertical-overlay-menu .main-menu .navigation li.open > a:not(.mm-next):after { transform: rotate(90deg); } .vertical-overlay-menu .main-menu .navigation li a i { font-size: 1.1rem; } .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 55px; } .vertical-overlay-menu .main-menu .main-menu-footer { width: 260px; } .vertical-overlay-menu.menu-open .main-menu { opacity: 1; transform: translate3d(260px, 0, 0); transition: width .25s,opacity .25s,transform .25s; } .vertical-overlay-menu.menu-flipped .main-menu { right: -260px; left: inherit; } .vertical-overlay-menu.menu-flipped .navbar .navbar-container { margin: 0; margin-right: 260px; } .vertical-overlay-menu.menu-flipped .navbar .navbar-header { float: right; } .vertical-overlay-menu.menu-flipped.menu-open .main-menu { transform: translate3d(-260px, 0, 0); } @media (max-width: 991.98px) { .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 0px; } } ================================================ FILE: public/backend/css/core/menu/menu-types/vertical-overlay-menu.css ================================================ /*========================================================================================= File Name: vertical-overlay-menu.scss Description: A overlay style vertical menu with show and hide support. It support light & dark version, filpped layout, right side icons, native scroll and borders menu item seperation. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ .vertical-overlay-menu .content { margin-left: 0; } .vertical-overlay-menu .navbar .navbar-header { float: left; width: 260px; } .vertical-overlay-menu .navbar.header-navbar.floating-nav { width: calc(100vw - (100vw - 100%) - calc(2.2rem * 2)); } .vertical-overlay-menu .main-menu, .vertical-overlay-menu.menu-hide .main-menu { opacity: 0; transform: translate3d(0, 0, 0); transition: width .25s,opacity .25s,transform .25s; width: 260px; left: -260px; } .vertical-overlay-menu .main-menu .navigation .navigation-header .icon-minus { display: none; } .vertical-overlay-menu .main-menu .navigation > li > a > i { margin-right: 14px; float: left; } .vertical-overlay-menu .main-menu .navigation > li > a > i:before { transition: 200ms ease all; font-size: 1.429rem; } .vertical-overlay-menu .main-menu .navigation li.has-sub > a:not(.mm-next):after { content: "\f105"; font-family: 'FontAwesome'; font-size: 1rem; display: inline-block; position: absolute; right: 25px; top: 10px; transform: rotate(0deg); transition: -webkit-transform 0.2s ease-in-out; } .vertical-overlay-menu .main-menu .navigation li.open > a:not(.mm-next):after { transform: rotate(90deg); } .vertical-overlay-menu .main-menu .navigation li a i { font-size: 1.1rem; } .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 55px; } .vertical-overlay-menu .main-menu .main-menu-footer { width: 260px; } .vertical-overlay-menu.menu-open .main-menu { opacity: 1; transform: translate3d(260px, 0, 0); transition: width .25s,opacity .25s,transform .25s; } .vertical-overlay-menu.menu-flipped .main-menu { right: -260px; left: inherit; } .vertical-overlay-menu.menu-flipped .navbar .navbar-container { margin: 0; margin-right: 260px; } .vertical-overlay-menu.menu-flipped .navbar .navbar-header { float: right; } .vertical-overlay-menu.menu-flipped.menu-open .main-menu { transform: translate3d(-260px, 0, 0); } @media (max-width: 991.98px) { .vertical-overlay-menu .main-menu .main-menu-footer { bottom: 0px; } } ================================================ FILE: public/backend/css/core/mixins/alert.css ================================================ ================================================ FILE: public/backend/css/core/mixins/hex2rgb.css ================================================ ================================================ FILE: public/backend/css/core/mixins/main-menu-mixin.css ================================================ ================================================ FILE: public/backend/css/core/mixins/transitions.css ================================================ ================================================ FILE: public/backend/css/pages/aggrid.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .aggrid { height: 600px; font-size: 1rem; color: #626262; /*** TABLE BODY HEIGHT - FOOTER HEIGHT ***/ /*** HEADER TEXT ***/ /*** PAGINATION STYLING ***/ /*** TABLE SCROLLBAR ***/ } .aggrid .ag-icon-checkbox-checked, .aggrid .ag-icon-checkbox-indeterminate { color: #7367f0 !important; } .aggrid .ag-root-wrapper-body { min-height: calc(100% - 56px); } .aggrid .ag-header-cell-text { font-size: 1rem; font-family: "Montserrat", Helvetica, Arial, serif; } .aggrid .ag-paging-panel { display: block !important; align-items: center; height: 98px; } .aggrid .ag-paging-panel .ag-paging-row-summary-panel { display: none; } .aggrid .ag-paging-panel .ag-paging-page-summary-panel { justify-content: center; margin-left: 0; margin-top: 18px; } .aggrid .ag-paging-panel .ag-paging-page-summary-panel [ref="lbCurrent"], .aggrid .ag-paging-panel .ag-paging-page-summary-panel [ref="lbTotal"] { color: #fff; padding: 0.7rem 0.95rem; border-radius: 0.5rem; } .aggrid .ag-paging-panel .ag-paging-button { background-color: #dae1e7; border-radius: 50%; padding: 0.5rem 0rem; margin: 0 0.5rem; color: #626262 !important; } .aggrid .ag-paging-panel .ag-paging-button .ag-icon { color: #626262 !important; opacity: 1 !important; } .aggrid .ag-paging-panel .ag-paging-button.ag-disabled { opacity: 0.5 !important; } .aggrid .ag-paging-panel span[ref="lbCurrent"] { background-color: #7367f0; } .aggrid .ag-paging-panel span[ref="lbTotal"] { background-color: #dae1e7; color: #626262 !important; } .aggrid ::-webkit-scrollbar { width: 10px; height: 10px; } .aggrid ::-webkit-scrollbar-thumb { background: #dae1e7; border-radius: 20px; } .aggrid ::-webkit-scrollbar-track { background: #f8f8f8; border-radius: 20px; } /*** PAGE FILTER DROPDOWN ***/ .filter-btn { padding: 1.2rem !important; border-radius: 5rem; font-size: 0.95rem; } .filter-btn:after { left: 5px; } /*** SORTING DROPDOWN WIDTH ***/ .sort-dropdown .dropdown-menu { min-width: 4rem; } ================================================ FILE: public/backend/css/pages/app-chat.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .chat-application .content-area-wrapper .content-right .content-wrapper { padding: 0; } .chat-application .content-area-wrapper { border: 1px solid #dae1e7; border-radius: 0.25rem; } .chat-application .chat-profile-sidebar { border-right: 1px solid #E4E7ED; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); width: 400px; border-radius: .25rem; border-top-right-radius: 0; border-bottom-right-radius: 0; margin: 0; background-color: #fff; position: fixed; transform: translateX(-110%); transition: all .3s ease; z-index: 6; } .chat-application .chat-profile-sidebar.show { transform: translateX(0); transition: all .3s ease; } .chat-application .chat-profile-sidebar .chat-profile-header { display: flex; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .chat-application .chat-profile-sidebar .chat-profile-header .header-profile-sidebar { margin: 2rem auto .5rem; } .chat-application .chat-profile-sidebar .chat-profile-header .avatar { margin-bottom: 1.25rem; } .chat-application .chat-profile-sidebar .chat-profile-header .close-icon { position: absolute; top: 14px; right: 13px; font-size: 1.75rem; cursor: pointer; } .chat-application .chat-profile-sidebar .profile-sidebar-area .scroll-area { padding: 2rem; height: calc(100vh - 24.25rem); height: calc(var(--vh, 1vh) * 100 - 24.25rem); position: relative; } .chat-application .sidebar-content { border-right: 1px solid #E4E7ED; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); width: 400px; border-radius: .25rem; border-top-right-radius: 0; border-bottom-right-radius: 0; margin: 0; box-shadow: none; } .chat-application .sidebar-content .sidebar-close-icon { position: absolute; right: .25rem; top: .25rem; font-size: 1.25rem; z-index: 1; cursor: pointer; visibility: hidden; } .chat-application .sidebar-content .chat-fixed-search { position: fixed; width: 400px; border-bottom: 1px solid #E4E7ED; padding: .65rem; } .chat-application .sidebar-content .chat-fixed-search .sidebar-profile-toggle .avatar { display: inline-table; width: calc(32px + 8px); } .chat-application .sidebar-content .chat-fixed-search input.form-control { padding: .9rem 1rem .9rem 3rem; height: calc(1.25em + 1.4rem + 4px); } .chat-application .sidebar-content .chat-fixed-search .form-control-position { top: 5px; } .chat-application .sidebar-content .chat-fixed-search .form-control-position i { left: 9px; } .chat-application .sidebar-content .chat-user-list { height: calc(100% - 5rem); margin-top: 5rem; width: 400px; } .chat-application .sidebar-content .chat-user-list ul { padding-left: 0; margin-bottom: 0; } .chat-application .sidebar-content .chat-user-list li { display: flex; justify-content: space-between; align-items: center; padding: 1.322rem .85rem; margin-right: 1px; } .chat-application .sidebar-content .chat-user-list li:not(:first-child) { border-top: 1px solid #E4E7ED; } .chat-application .sidebar-content .chat-user-list li .user-chat-info { width: 100%; display: flex; justify-content: space-between; overflow: hidden; } .chat-application .sidebar-content .chat-user-list li .contact-info { width: calc(100vw - (100vw - 100%) - 1rem - 50px); margin-top: .3rem; } .chat-application .sidebar-content .chat-user-list li .contact-info .truncate { margin: 0; } .chat-application .sidebar-content .chat-user-list li:hover { cursor: pointer; background: #eee; } .chat-application .sidebar-content .chat-user-list li.active { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.11), 0 5px 15px 0 rgba(0, 0, 0, 0.08); color: #fff; } .chat-application .sidebar-content .chat-user-list li.active h1, .chat-application .sidebar-content .chat-user-list li.active h2, .chat-application .sidebar-content .chat-user-list li.active h3, .chat-application .sidebar-content .chat-user-list li.active h4, .chat-application .sidebar-content .chat-user-list li.active h5, .chat-application .sidebar-content .chat-user-list li.active h6 { color: #fff; } .chat-application .sidebar-content .chat-user-list li img { border: 2px solid #fff; } .chat-application .sidebar-content .card { margin-bottom: 0; } .chat-application .chat-overlay { top: 0; left: 0; right: 0; bottom: 0; position: absolute; display: block; z-index: 2; visibility: hidden; border-radius: 0.25rem; } .chat-application .chat-overlay.show { visibility: visible; background-color: rgba(0, 0, 0, 0.2); } .chat-application .chat-app-window .favorite, .chat-application .chat-app-window .sidebar-toggle { cursor: pointer; } .chat-application .chat-app-window .user-chats { padding: 20px 30px; position: relative; text-align: center; height: calc(100vh - 23.5rem); height: calc(var(--vh, 1vh) * 100 - 23.5rem); } .chat-application .chat-app-window .start-chat-area, .chat-application .chat-app-window .user-chats { background-image: url("../../images/backgrounds/chat-bg.svg"); background-color: #dfdbe5; } .chat-application .chat-app-window .start-chat-area { height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); display: flex; justify-content: center; align-items: center; flex-direction: column; } .chat-application .chat-app-window .start-chat-area .start-chat-icon, .chat-application .chat-app-window .start-chat-area .start-chat-text { background: white; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08) !important; } .chat-application .chat-app-window .start-chat-area .start-chat-text { border-radius: calc(0.5rem * 4); cursor: pointer; } .chat-application .chat-app-window .start-chat-area .start-chat-icon { border-radius: 50%; font-size: 4rem; padding: 2rem; } .chat-application .chat-app-form { padding: 20px 10px; background-color: white; } .chat-application .chats { padding: 0; } .chat-application .chats .chat-body { display: block; margin: 10px 30px 0 0; overflow: hidden; } .chat-application .chats .chat-body .chat-content { text-align: right; display: block; float: right; padding: .75rem 1rem; margin: 0 20px 10px 0; clear: both; color: #fff; background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); border-radius: .5rem; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08); } .chat-application .chats .chat-body .chat-content p { margin: 0; } .chat-application .chats .chat-avatar { float: right; } .chat-application .chats .chat-left .chat-avatar { float: left; } .chat-application .chats .chat-left .chat-body { margin-right: 0; margin-left: 30px; } .chat-application .chats .chat-left .chat-content { text-align: left; float: left; margin: 0 0 10px 20px; color: #626262; background: none; background-color: white; } .chat-application .user-profile-sidebar { border-right: 1px solid #E4E7ED; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); width: 400px; border-radius: .25rem; border-top-left-radius: 0; border-bottom-left-radius: 0; margin: 0; background-color: #fff; position: fixed; transform: translateX(110%); transition: all .3s ease; z-index: 6; right: 4.2rem; bottom: 5.25rem; opacity: 0; } .chat-application .user-profile-sidebar.show { opacity: 1; transform: translateX(7%); transition: all .3s ease; } .chat-application .user-profile-sidebar .user-profile-header { display: flex; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .chat-application .user-profile-sidebar .user-profile-header .header-profile-sidebar { margin: 2rem auto .5rem; } .chat-application .user-profile-sidebar .user-profile-header .avatar { margin-bottom: 1.25rem; } .chat-application .user-profile-sidebar .user-profile-header .close-icon { position: absolute; top: 14px; right: 13px; font-size: 1.75rem; cursor: pointer; } .chat-application .user-profile-sidebar .user-profile-sidebar-area { height: calc(100vh - 24.25rem); height: calc(var(--vh, 1vh) * 100 - 24.25rem); position: relative; } @media (max-width: 767.98px) { .chat-application .chat-app-window { height: calc(100% - 132px); } .chat-application .sidebar-content .sidebar-close-icon { visibility: visible; } } @media (max-width: 575.98px) { .chat-application .sidebar-content { width: 260px; left: -4px !important; } .chat-application .sidebar-content .chat-fixed-search, .chat-application .sidebar-content .chat-user-list { width: 260px; } .chat-application .chat-profile-sidebar { width: 260px; } .chat-application .user-profile-sidebar { width: 260px; right: 2.35rem; } } @media (max-width: 991.98px) { .content-right { width: 100%; } .chat-application .sidebar-content { transform: translateX(-110%); transition: all .3s ease-in-out; left: 0; position: fixed; z-index: 5; left: -2px; } .chat-application .sidebar-content.show { transform: translateX(8.5%); transition: all .3s ease; display: block; } } @media (max-width: 349.98px) { .chat-application .sidebar-content { width: 230px; left: -2px !important; } .chat-application .sidebar-content .chat-fixed-search, .chat-application .sidebar-content .chat-user-list { width: 230px; } .chat-application .chat-profile-sidebar { width: 230px; } .chat-application .user-profile-sidebar { width: 230px; } } ================================================ FILE: public/backend/css/pages/app-ecommerce-details.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ /* app ecommerce details css */ /*---------------*/ .app-ecommerce-details .item-features { background-color: #f7f7f7; } /* swiper slide shadow */ .swiper-container .swiper-shadow { box-shadow: 2px 8px 10px 0 rgba(25, 42, 70, 0.13) !important; } .swiper-responsive-breakpoints.swiper-container .swiper-slide { text-align: center; font-weight: 500; background-color: #f7f7f7; padding: 1.5rem; cursor: pointer; } .swiper-button-prev, .swiper-button-next, .swiper-container-rtl .swiper-button-prev, .swiper-container-rtl .swiper-button-next { background-image: none; width: 35px; font-size: 2rem; } .swiper-button-prev:focus, .swiper-button-next:focus, .swiper-container-rtl .swiper-button-prev:focus, .swiper-container-rtl .swiper-button-next:focus { outline: none; } .swiper-button-prev:after, .swiper-button-next:after, .swiper-container-rtl .swiper-button-prev:after, .swiper-container-rtl .swiper-button-next:after { font-family: 'feather'; } .swiper-button-prev { left: 0; } .swiper-button-prev:after { content: "\e843"; } .swiper-button-next { right: 0; } .swiper-button-next:after { content: "\e844"; } .swiper-container-rtl .swiper-button-prev:after { content: "\e844"; } .swiper-container-rtl .swiper-button-next:after { content: "\e843"; } .product-color-options .color-option { border: 2px solid transparent; border-radius: 50%; position: relative; cursor: pointer; padding: .3rem; } .product-color-options .color-option .filloption { height: 21px; width: 21px; border-radius: 50%; } .product-color-options .selected .b-primary { border-color: #7367f0; } .product-color-options .selected .b-success { border-color: #28c76f; } .product-color-options .selected .b-danger { border-color: #ea5455; } .product-color-options .selected .b-warning { border-color: #ff9f43; } .product-color-options .selected .b-black { border-color: #22292f; } ================================================ FILE: public/backend/css/pages/app-ecommerce-shop.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .ecommerce-application .content-body { position: relative; } .ecommerce-application .shop-content-overlay { position: absolute; top: 4.2rem; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.2); z-index: 0; opacity: 0; } .ecommerce-application .shop-content-overlay.show { opacity: 1; z-index: 1; } .ecommerce-application .sidebar-shop .sidebar-close-icon { position: absolute; top: 0.25rem; right: 0.25rem; font-size: 1.25rem; z-index: 5; cursor: pointer; } .ecommerce-application .sidebar-shop .filter-heading { font-weight: 700; color: #626262; position: relative; top: -7px; } .ecommerce-application .sidebar-shop .vs-radio-con input:checked ~ span { color: #7367f0; } .ecommerce-application .sidebar-shop .filter-title { font-weight: 700; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal { height: .285rem; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-base { height: .285rem; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle { right: -1.071rem !important; top: -.428rem; width: 16px; height: 16px; border-width: .142rem; line-height: 1.15; cursor: pointer; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle .noUi-tooltip { opacity: 0; font-size: .75rem; background-color: #7367f0; color: #fff; border-radius: .357rem; border: none; padding: .142rem .357rem; transform: translate(-50%, -50%); } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle .noUi-tooltip:before { content: "$ "; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle:hover { transform: scale(1.2); } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle:active { transform: scale(1); border-width: .5rem; transition: .25s ease; } .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle:active .noUi-tooltip { opacity: 1; } .ecommerce-application .sidebar-shop .ratings-list .ratings-list-item { font-size: 1.5rem; cursor: pointer; } .ecommerce-application .sidebar-shop .ratings-list ~ .stars-received { margin-top: .35rem; } .ecommerce-application .sidebar-shop { margin-top: 2rem; width: 260px; z-index: 4; } .ecommerce-application .ecommerce-header-items { display: flex; justify-content: space-between; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option { display: inline-block; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn { margin-right: 10px; background-color: #fff; padding: .5rem; color: #626262; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.14) !important; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn i { font-size: 1.7rem; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn.active { color: #7367f0 !important; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn.active:hover, .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn.active:active { color: #7367f0 !important; } .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn:hover, .ecommerce-application .ecommerce-header-items .view-options .view-btn-option .btn.view-btn:active { color: #626262; } .ecommerce-application .ecommerce-header-items .view-options .select2 { margin-right: 10px; width: auto !important; } .ecommerce-application .ecommerce-header-items .view-options .select2 .select2-selection--single { border: none !important; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.14); border-radius: 5px; } .ecommerce-application .ecommerce-header-items .result-toggler { display: flex; align-items: flex-end; } .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler { font-size: 1.7rem; padding-left: 0; margin-left: -6px; } .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler:active, .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler:focus { outline: 0; } .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler .navbar-toggler-icon i { color: #626262; vertical-align: middle; } .ecommerce-application .ecommerce-header-items .result-toggler .search-results { font-weight: 700; color: #626262; display: inline-block; } .ecommerce-application .search-product { height: 48px; border: none; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.14); font-size: 1.2rem; padding-left: 1rem; } .ecommerce-application .search-product ~ .form-control-position { top: 10px; right: 10px; } .ecommerce-application .search-product ~ .form-control-position i { font-size: 1.5rem; } .ecommerce-application .search-product::placeholder { font-size: .95rem; } .ecommerce-application .ecommerce-card:hover { transform: translateY(-5px); box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.25); } .ecommerce-application .ecommerce-card .item-price { font-weight: 700; } .ecommerce-application .ecommerce-card .item-rating i { margin-left: .25rem; vertical-align: top; } .ecommerce-application .ecommerce-card .item-name { font-weight: 600; color: #2c2c2c; } .ecommerce-application .ecommerce-card .item-name a { color: #626262; } .ecommerce-application .ecommerce-card .item-name a:hover { color: #7367f0; } .ecommerce-application .ecommerce-card .item-description { font-size: .875rem; } .ecommerce-application .ecommerce-card .wishlist, .ecommerce-application .ecommerce-card .cart { padding: .8rem 1rem; cursor: pointer; font-weight: 600; font-size: .875rem; text-transform: uppercase; } .ecommerce-application .ecommerce-card .wishlist i, .ecommerce-application .ecommerce-card .cart i { font-size: 1rem; margin-right: .25rem; } .ecommerce-application .ecommerce-card .wishlist { background-color: #f6f6f6; color: #2c2c2c; user-select: none; } .ecommerce-application .ecommerce-card .wishlist.added i { color: #ea5455; } .ecommerce-application .ecommerce-card .cart { background-color: #7367f0; color: #fff; } .ecommerce-application .ecommerce-card .cart .view-in-cart { color: #fff; } .ecommerce-application .grid-view, .ecommerce-application .list-view { margin-top: .7rem; } .ecommerce-application .grid-view { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 28px; } .ecommerce-application .grid-view .ecommerce-card { overflow: hidden; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-img { padding-top: .5rem; min-height: 15.85rem; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-wrapper { display: flex; justify-content: space-between; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-wrapper .item-price { position: relative; top: 5px; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-wrapper .shipping { display: none; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-company { display: none; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-options { display: flex; flex-wrap: wrap; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-options .cart, .ecommerce-application .grid-view .ecommerce-card .card-content .item-options .wishlist { flex-grow: 1; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-options .wishlist { padding: .8rem 2rem; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-options .item-wrapper .item-rating { display: none; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-options .item-wrapper .item-price { display: none; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-name { margin-top: 1rem; } .ecommerce-application .grid-view .ecommerce-card .card-content .item-name, .ecommerce-application .grid-view .ecommerce-card .card-content .item-description { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .ecommerce-application .grid-view .ecommerce-card .card-body { padding: 1rem; padding-bottom: 0; } .ecommerce-application .list-view { display: grid; grid-template-columns: 1fr; } .ecommerce-application .list-view .ecommerce-card { overflow: hidden; } .ecommerce-application .list-view .ecommerce-card .card-content { display: grid; grid-template-columns: 1fr 2fr 1fr; } .ecommerce-application .list-view .ecommerce-card .card-content .item-img { align-self: center; padding-left: 1rem; padding-right: 1rem; display: flex; justify-content: center; align-items: center; height: 100%; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body { padding: 1rem; padding-bottom: .5rem; border-right: 1px solid #dae1e7; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body .item-rating { display: none; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body .item-price { display: none; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body .item-name { margin-bottom: .25rem; font-size: .95rem; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body .item-company { display: block; cursor: pointer; font-size: .875rem; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body .item-company .company-name { color: #7367f0; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options { padding: 1rem; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .item-wrapper { position: relative; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .item-wrapper .item-rating { position: absolute; right: 0; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .item-wrapper .item-cost .item-price { position: relative; top: 55px; font-size: 16px; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .shipping { position: relative; top: 50px; color: #b8c2cc; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .wishlist { margin-top: 84px; margin-bottom: 10px; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .wishlist, .ecommerce-application .list-view .ecommerce-card .card-content .item-options .cart { border-radius: 6px; } .ecommerce-application .checkout-items .ecommerce-card .card-content .item-company { margin-bottom: 0; } .ecommerce-application .checkout-items .ecommerce-card .card-content .stock-status-in { color: #28c76f; font-weight: 400; font-size: .875rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .stock-status-out { color: #ea5455; font-weight: 400; font-size: .875rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .item-quantity { font-weight: 700; font-size: .875rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .item-quantity .quantity-title { margin-bottom: 0.5rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .item-quantity .quantity-counter-wrapper { margin-left: -10px; } .ecommerce-application .checkout-items .ecommerce-card .card-content .delivery-date, .ecommerce-application .checkout-items .ecommerce-card .card-content .offers { font-weight: 500; margin-bottom: 0; font-size: 1rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .delivery-date { color: #b8c2cc; margin-top: 1.8rem; } .ecommerce-application .checkout-items .ecommerce-card .card-content .offers { color: #28c76f; } .ecommerce-application .checkout-options .options-title { color: #b8c2cc; } .ecommerce-application .checkout-options .coupons { display: flex; justify-content: space-between; } .ecommerce-application .checkout-options .coupons .coupons-title { font-weight: 600; } .ecommerce-application .checkout-options .coupons .coupons-title p { margin-bottom: .5rem; } .ecommerce-application .checkout-options .coupons .apply-coupon { color: #7367f0; font-weight: 500; cursor: pointer; } .ecommerce-application .checkout-options .coupons .apply-coupon p { margin-bottom: .5rem; } .ecommerce-application .checkout-options .price-details { font-weight: 600; margin-bottom: .75rem; } .ecommerce-application .checkout-options .detail { display: flex; justify-content: space-between; margin-bottom: .75rem; } .ecommerce-application .checkout-options .detail .detail-title { color: #b8c2cc; } .ecommerce-application .checkout-options .detail .detail-title.detail-total { color: #626262; font-weight: 600; } .ecommerce-application .checkout-options .detail .detail-amt.discount-amt { color: #28c76f; } .ecommerce-application .checkout-options .detail .detail-amt.emi-details { color: #7367f0; cursor: pointer; } .ecommerce-application .checkout-options .detail .detail-amt.total-amt { font-weight: 600; } .ecommerce-application .payment-type .gift-card { cursor: pointer; } .ecommerce-application .payment-type .gift-card i { position: relative; top: 3px; } .ecommerce-application .wizard.checkout-tab-steps .steps ul li.error > a { color: #7367f0; } .ecommerce-application .wizard.checkout-tab-steps .steps ul li.error > a .step { border-color: #7367f0; background-color: #7367f0; } .ecommerce-application .wizard.checkout-tab-steps #checkout-address .form-group .error { color: #ea5455; } @media (max-width: 1200px) { .ecommerce-application .app-content { overflow: scroll; } } @media (max-width: 991.98px) { .ecommerce-application .sidebar-left .sidebar { position: absolute; top: 14rem; } .ecommerce-application .sidebar-left .sidebar .card { border-radius: 0; padding-bottom: 100vh; padding-bottom: calc(var(--vh, 1vh) * 100); } .ecommerce-application .sidebar-left .sidebar .card .card-body { padding-bottom: 100%; } .ecommerce-application .sidebar-left .sidebar .sidebar-shop { transform: translateX(-112%); transition: all .25s ease; position: absolute; } .ecommerce-application .sidebar-left .sidebar .sidebar-shop.show { transition: all .25s ease; transform: translateX(0); } .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler { position: relative; top: 1.2rem; } .ecommerce-application .grid-view { grid-template-columns: 1fr 1fr; } } @media (max-width: 991.98px) { .ecommerce-application .ecommerce-header-items .result-toggler .search-results { display: none; } .ecommerce-application .ecommerce-header-items .result-toggler .shop-sidebar-toggler { top: .5rem; } .ecommerce-application .ecommerce-header-items .sidebar-shop { transform: translateX(-123%); transition: all .2s ease; z-index: 5; } .ecommerce-application .ecommerce-header-items .sidebar-shop.show { position: absolute; transform: translateX(0); transition: all .2s ease; } .ecommerce-application .list-view .ecommerce-card .card-content { grid-template-columns: 1fr; } .ecommerce-application .list-view .ecommerce-card .card-content .item-img { padding-top: 2rem; padding-bottom: 2rem; } .ecommerce-application .list-view .ecommerce-card .card-content .card-body { border: none; } } @media (max-width: 576px) { .ecommerce-application .sidebar-shop { top: 0; } .ecommerce-application .grid-view { grid-template-columns: 1fr; } } @media (min-width: 992px) { .ecommerce-application .ecommerce-header-items .shop-sidebar-toggler { display: none; } .ecommerce-application .wishlist-items.grid-view { grid-template-columns: 1fr 1fr 1fr 1fr; } .ecommerce-application .product-checkout.list-view { grid-template-columns: 2fr 1fr; column-gap: 20px; } } @media (max-width: 360px) { .ecommerce-application .sidebar-shop { top: 1.5rem; } } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .ecommerce-application .grid-view { display: block; } .ecommerce-application .grid-view .ecommerce-card { float: left; width: 31%; margin-left: 1%; margin-right: 1%; } .ecommerce-application .list-view { display: block; } .ecommerce-application .list-view .ecommerce-card .card-content { display: flex; } .ecommerce-application .list-view .ecommerce-card .card-content .item-options .wishlist, .ecommerce-application .list-view .ecommerce-card .card-content .item-options .cart { padding: .8rem 3rem; display: flex; justify-content: center; } .ecommerce-application #ecommerce-pagination .row { clear: both; } } ================================================ FILE: public/backend/css/pages/app-email.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .email-application .content-area-wrapper { border: 1px solid #dae1e7; border-radius: 0.25rem; } .email-application .content-area-wrapper .sidebar .email-app-sidebar { width: 260px; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); background-color: #fff; border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; transition: all .3s ease; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .sidebar-close-icon { position: absolute; right: .25rem; top: .25rem; cursor: pointer; font-size: 1.25rem; z-index: 5; visibility: hidden; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu { width: 100%; padding-bottom: .5rem; box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); z-index: 3; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu .compose-btn { padding: 1px 1.5rem; margin-bottom: 0.25rem; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu .badge { padding: 0.5rem 0.68rem; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu .sidebar-menu-list { padding: 0 1.5rem; position: relative; height: calc(100% - 6.4rem); } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu .list-group .list-group-item i { top: 3px; } .email-application .content-area-wrapper .sidebar .email-app-sidebar .email-app-menu hr { margin-left: -1.5rem; margin-right: -1.5rem; } .email-application .content-area-wrapper .sidebar .list-group .list-group-item { padding-left: 0; padding-right: 0; } .email-application .content-area-wrapper .sidebar .list-group .list-group-item:hover, .email-application .content-area-wrapper .sidebar .list-group .list-group-item:focus { background-color: transparent; color: #626262; } .email-application .content-area-wrapper .sidebar .list-group .list-group-item.active { background: transparent; color: #7367f0; } .email-application .content-area-wrapper .content-right { width: calc(100% - 260px); } .email-application .content-area-wrapper .content-right .content-wrapper { padding: 0; } .email-application .content-area-wrapper .content-right .email-app-list-wrapper { border-left: 1px solid #dae1e7; } .email-application .content-area-wrapper .content-right .app-fixed-search { padding: .35rem .1rem; border-bottom: 1px solid #dae1e7; background-color: #fff; border-top-right-radius: 0.5rem; } .email-application .content-area-wrapper .content-right .app-fixed-search .form-control-position { font-size: calc(1rem * 1.1); } .email-application .content-area-wrapper .content-right .app-fixed-search input { border: 0; background-color: transparent; } .email-application .content-area-wrapper .content-right .app-fixed-search input:focus { border-color: transparent; box-shadow: none; } .email-application .content-area-wrapper .content-right .action-icon { cursor: pointer; } .email-application .app-content .content-area-wrapper { position: relative; } .email-application .app-content .content-area-wrapper .sidebar-toggle { cursor: pointer; margin: 0.5rem 0.99rem; float: left; line-height: 1; } .email-application .app-content .content-area-wrapper .sidebar-toggle i { font-size: 1.75rem; } .email-application .app-content .content-area-wrapper .go-back { cursor: pointer; } .email-application .app-content .content-area-wrapper .app-content-overlay { top: 0; left: 0; right: 0; bottom: 0; position: absolute; display: block; z-index: 2; visibility: hidden; opacity: 0; transition: all .3s ease; } .email-application .app-content .content-area-wrapper .app-content-overlay.show { visibility: visible; transition: all .3s ease; opacity: 1; background-color: rgba(0, 0, 0, 0.2); border-radius: 0.5rem; } .email-application .app-content .content-area-wrapper .email-user-list { position: relative; height: calc(100vh - 20.3rem); height: calc(var(--vh, 1vh) * 100 - 20.3rem); } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper { padding: 0; margin: 0; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1) { animation-delay: 0.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2) { animation-delay: 0.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3) { animation-delay: 0.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4) { animation-delay: 0.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(5) { animation-delay: 0.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(6) { animation-delay: 0.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(7) { animation-delay: 0.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(8) { animation-delay: 0.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(9) { animation-delay: 0.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(10) { animation-delay: 1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(11) { animation-delay: 1.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(12) { animation-delay: 1.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(13) { animation-delay: 1.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(14) { animation-delay: 1.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(15) { animation-delay: 1.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(16) { animation-delay: 1.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(17) { animation-delay: 1.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(18) { animation-delay: 1.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(19) { animation-delay: 1.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(20) { animation-delay: 2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(21) { animation-delay: 2.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(22) { animation-delay: 2.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(23) { animation-delay: 2.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(24) { animation-delay: 2.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(25) { animation-delay: 2.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(26) { animation-delay: 2.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(27) { animation-delay: 2.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(28) { animation-delay: 2.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(29) { animation-delay: 2.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(30) { animation-delay: 3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(31) { animation-delay: 3.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(32) { animation-delay: 3.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(33) { animation-delay: 3.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(34) { animation-delay: 3.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(35) { animation-delay: 3.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(36) { animation-delay: 3.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(37) { animation-delay: 3.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(38) { animation-delay: 3.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(39) { animation-delay: 3.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(40) { animation-delay: 4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(41) { animation-delay: 4.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(42) { animation-delay: 4.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(43) { animation-delay: 4.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(44) { animation-delay: 4.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(45) { animation-delay: 4.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(46) { animation-delay: 4.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(47) { animation-delay: 4.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(48) { animation-delay: 4.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(49) { animation-delay: 4.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(50) { animation-delay: 5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(51) { animation-delay: 5.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(52) { animation-delay: 5.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(53) { animation-delay: 5.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(54) { animation-delay: 5.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(55) { animation-delay: 5.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(56) { animation-delay: 5.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(57) { animation-delay: 5.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(58) { animation-delay: 5.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(59) { animation-delay: 5.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(60) { animation-delay: 6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(61) { animation-delay: 6.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(62) { animation-delay: 6.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(63) { animation-delay: 6.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(64) { animation-delay: 6.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(65) { animation-delay: 6.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(66) { animation-delay: 6.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(67) { animation-delay: 6.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(68) { animation-delay: 6.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(69) { animation-delay: 6.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(70) { animation-delay: 7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(71) { animation-delay: 7.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(72) { animation-delay: 7.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(73) { animation-delay: 7.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(74) { animation-delay: 7.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(75) { animation-delay: 7.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(76) { animation-delay: 7.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(77) { animation-delay: 7.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(78) { animation-delay: 7.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(79) { animation-delay: 7.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(80) { animation-delay: 8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(81) { animation-delay: 8.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(82) { animation-delay: 8.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(83) { animation-delay: 8.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(84) { animation-delay: 8.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(85) { animation-delay: 8.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(86) { animation-delay: 8.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(87) { animation-delay: 8.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(88) { animation-delay: 8.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(89) { animation-delay: 8.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(90) { animation-delay: 9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(91) { animation-delay: 9.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(92) { animation-delay: 9.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(93) { animation-delay: 9.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(94) { animation-delay: 9.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(95) { animation-delay: 9.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(96) { animation-delay: 9.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(97) { animation-delay: 9.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(98) { animation-delay: 9.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(99) { animation-delay: 9.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(100) { animation-delay: 10s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(101) { animation-delay: 10.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(102) { animation-delay: 10.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(103) { animation-delay: 10.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(104) { animation-delay: 10.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(105) { animation-delay: 10.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(106) { animation-delay: 10.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(107) { animation-delay: 10.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(108) { animation-delay: 10.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(109) { animation-delay: 10.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(110) { animation-delay: 11s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(111) { animation-delay: 11.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(112) { animation-delay: 11.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(113) { animation-delay: 11.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(114) { animation-delay: 11.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(115) { animation-delay: 11.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(116) { animation-delay: 11.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(117) { animation-delay: 11.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(118) { animation-delay: 11.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(119) { animation-delay: 11.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(120) { animation-delay: 12s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(121) { animation-delay: 12.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(122) { animation-delay: 12.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(123) { animation-delay: 12.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(124) { animation-delay: 12.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(125) { animation-delay: 12.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(126) { animation-delay: 12.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(127) { animation-delay: 12.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(128) { animation-delay: 12.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(129) { animation-delay: 12.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(130) { animation-delay: 13s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(131) { animation-delay: 13.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(132) { animation-delay: 13.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(133) { animation-delay: 13.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(134) { animation-delay: 13.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(135) { animation-delay: 13.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(136) { animation-delay: 13.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(137) { animation-delay: 13.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(138) { animation-delay: 13.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(139) { animation-delay: 13.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(140) { animation-delay: 14s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(141) { animation-delay: 14.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(142) { animation-delay: 14.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(143) { animation-delay: 14.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(144) { animation-delay: 14.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(145) { animation-delay: 14.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(146) { animation-delay: 14.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(147) { animation-delay: 14.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(148) { animation-delay: 14.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(149) { animation-delay: 14.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(150) { animation-delay: 15s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(151) { animation-delay: 15.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(152) { animation-delay: 15.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(153) { animation-delay: 15.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(154) { animation-delay: 15.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(155) { animation-delay: 15.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(156) { animation-delay: 15.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(157) { animation-delay: 15.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(158) { animation-delay: 15.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(159) { animation-delay: 15.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(160) { animation-delay: 16s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(161) { animation-delay: 16.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(162) { animation-delay: 16.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(163) { animation-delay: 16.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(164) { animation-delay: 16.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(165) { animation-delay: 16.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(166) { animation-delay: 16.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(167) { animation-delay: 16.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(168) { animation-delay: 16.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(169) { animation-delay: 16.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(170) { animation-delay: 17s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(171) { animation-delay: 17.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(172) { animation-delay: 17.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(173) { animation-delay: 17.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(174) { animation-delay: 17.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(175) { animation-delay: 17.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(176) { animation-delay: 17.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(177) { animation-delay: 17.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(178) { animation-delay: 17.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(179) { animation-delay: 17.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(180) { animation-delay: 18s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(181) { animation-delay: 18.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(182) { animation-delay: 18.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(183) { animation-delay: 18.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(184) { animation-delay: 18.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(185) { animation-delay: 18.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(186) { animation-delay: 18.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(187) { animation-delay: 18.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(188) { animation-delay: 18.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(189) { animation-delay: 18.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(190) { animation-delay: 19s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(191) { animation-delay: 19.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(192) { animation-delay: 19.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(193) { animation-delay: 19.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(194) { animation-delay: 19.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(195) { animation-delay: 19.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(196) { animation-delay: 19.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(197) { animation-delay: 19.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(198) { animation-delay: 19.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(199) { animation-delay: 19.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(200) { animation-delay: 20s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(201) { animation-delay: 20.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(202) { animation-delay: 20.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(203) { animation-delay: 20.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(204) { animation-delay: 20.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(205) { animation-delay: 20.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(206) { animation-delay: 20.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(207) { animation-delay: 20.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(208) { animation-delay: 20.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(209) { animation-delay: 20.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(210) { animation-delay: 21s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(211) { animation-delay: 21.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(212) { animation-delay: 21.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(213) { animation-delay: 21.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(214) { animation-delay: 21.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(215) { animation-delay: 21.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(216) { animation-delay: 21.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(217) { animation-delay: 21.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(218) { animation-delay: 21.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(219) { animation-delay: 21.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(220) { animation-delay: 22s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(221) { animation-delay: 22.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(222) { animation-delay: 22.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(223) { animation-delay: 22.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(224) { animation-delay: 22.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(225) { animation-delay: 22.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(226) { animation-delay: 22.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(227) { animation-delay: 22.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(228) { animation-delay: 22.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(229) { animation-delay: 22.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(230) { animation-delay: 23s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(231) { animation-delay: 23.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(232) { animation-delay: 23.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(233) { animation-delay: 23.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(234) { animation-delay: 23.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(235) { animation-delay: 23.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(236) { animation-delay: 23.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(237) { animation-delay: 23.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(238) { animation-delay: 23.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(239) { animation-delay: 23.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(240) { animation-delay: 24s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(241) { animation-delay: 24.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(242) { animation-delay: 24.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(243) { animation-delay: 24.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(244) { animation-delay: 24.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(245) { animation-delay: 24.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(246) { animation-delay: 24.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(247) { animation-delay: 24.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(248) { animation-delay: 24.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(249) { animation-delay: 24.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(250) { animation-delay: 25s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(251) { animation-delay: 25.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(252) { animation-delay: 25.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(253) { animation-delay: 25.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(254) { animation-delay: 25.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(255) { animation-delay: 25.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(256) { animation-delay: 25.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(257) { animation-delay: 25.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(258) { animation-delay: 25.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(259) { animation-delay: 25.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(260) { animation-delay: 26s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(261) { animation-delay: 26.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(262) { animation-delay: 26.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(263) { animation-delay: 26.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(264) { animation-delay: 26.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(265) { animation-delay: 26.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(266) { animation-delay: 26.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(267) { animation-delay: 26.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(268) { animation-delay: 26.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(269) { animation-delay: 26.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(270) { animation-delay: 27s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(271) { animation-delay: 27.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(272) { animation-delay: 27.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(273) { animation-delay: 27.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(274) { animation-delay: 27.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(275) { animation-delay: 27.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(276) { animation-delay: 27.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(277) { animation-delay: 27.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(278) { animation-delay: 27.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(279) { animation-delay: 27.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(280) { animation-delay: 28s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(281) { animation-delay: 28.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(282) { animation-delay: 28.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(283) { animation-delay: 28.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(284) { animation-delay: 28.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(285) { animation-delay: 28.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(286) { animation-delay: 28.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(287) { animation-delay: 28.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(288) { animation-delay: 28.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(289) { animation-delay: 28.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(290) { animation-delay: 29s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(291) { animation-delay: 29.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(292) { animation-delay: 29.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(293) { animation-delay: 29.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(294) { animation-delay: 29.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(295) { animation-delay: 29.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(296) { animation-delay: 29.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(297) { animation-delay: 29.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(298) { animation-delay: 29.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(299) { animation-delay: 29.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(300) { animation-delay: 30s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(301) { animation-delay: 30.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(302) { animation-delay: 30.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(303) { animation-delay: 30.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(304) { animation-delay: 30.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(305) { animation-delay: 30.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(306) { animation-delay: 30.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(307) { animation-delay: 30.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(308) { animation-delay: 30.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(309) { animation-delay: 30.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(310) { animation-delay: 31s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(311) { animation-delay: 31.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(312) { animation-delay: 31.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(313) { animation-delay: 31.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(314) { animation-delay: 31.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(315) { animation-delay: 31.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(316) { animation-delay: 31.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(317) { animation-delay: 31.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(318) { animation-delay: 31.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(319) { animation-delay: 31.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(320) { animation-delay: 32s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(321) { animation-delay: 32.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(322) { animation-delay: 32.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(323) { animation-delay: 32.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(324) { animation-delay: 32.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(325) { animation-delay: 32.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(326) { animation-delay: 32.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(327) { animation-delay: 32.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(328) { animation-delay: 32.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(329) { animation-delay: 32.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(330) { animation-delay: 33s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(331) { animation-delay: 33.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(332) { animation-delay: 33.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(333) { animation-delay: 33.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(334) { animation-delay: 33.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(335) { animation-delay: 33.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(336) { animation-delay: 33.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(337) { animation-delay: 33.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(338) { animation-delay: 33.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(339) { animation-delay: 33.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(340) { animation-delay: 34s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(341) { animation-delay: 34.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(342) { animation-delay: 34.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(343) { animation-delay: 34.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(344) { animation-delay: 34.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(345) { animation-delay: 34.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(346) { animation-delay: 34.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(347) { animation-delay: 34.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(348) { animation-delay: 34.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(349) { animation-delay: 34.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(350) { animation-delay: 35s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(351) { animation-delay: 35.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(352) { animation-delay: 35.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(353) { animation-delay: 35.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(354) { animation-delay: 35.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(355) { animation-delay: 35.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(356) { animation-delay: 35.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(357) { animation-delay: 35.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(358) { animation-delay: 35.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(359) { animation-delay: 35.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(360) { animation-delay: 36s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(361) { animation-delay: 36.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(362) { animation-delay: 36.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(363) { animation-delay: 36.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(364) { animation-delay: 36.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(365) { animation-delay: 36.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(366) { animation-delay: 36.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(367) { animation-delay: 36.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(368) { animation-delay: 36.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(369) { animation-delay: 36.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(370) { animation-delay: 37s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(371) { animation-delay: 37.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(372) { animation-delay: 37.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(373) { animation-delay: 37.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(374) { animation-delay: 37.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(375) { animation-delay: 37.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(376) { animation-delay: 37.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(377) { animation-delay: 37.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(378) { animation-delay: 37.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(379) { animation-delay: 37.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(380) { animation-delay: 38s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(381) { animation-delay: 38.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(382) { animation-delay: 38.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(383) { animation-delay: 38.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(384) { animation-delay: 38.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(385) { animation-delay: 38.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(386) { animation-delay: 38.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(387) { animation-delay: 38.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(388) { animation-delay: 38.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(389) { animation-delay: 38.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(390) { animation-delay: 39s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(391) { animation-delay: 39.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(392) { animation-delay: 39.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(393) { animation-delay: 39.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(394) { animation-delay: 39.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(395) { animation-delay: 39.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(396) { animation-delay: 39.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(397) { animation-delay: 39.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(398) { animation-delay: 39.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(399) { animation-delay: 39.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(400) { animation-delay: 40s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(401) { animation-delay: 40.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(402) { animation-delay: 40.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(403) { animation-delay: 40.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(404) { animation-delay: 40.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(405) { animation-delay: 40.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(406) { animation-delay: 40.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(407) { animation-delay: 40.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(408) { animation-delay: 40.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(409) { animation-delay: 40.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(410) { animation-delay: 41s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(411) { animation-delay: 41.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(412) { animation-delay: 41.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(413) { animation-delay: 41.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(414) { animation-delay: 41.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(415) { animation-delay: 41.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(416) { animation-delay: 41.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(417) { animation-delay: 41.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(418) { animation-delay: 41.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(419) { animation-delay: 41.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(420) { animation-delay: 42s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(421) { animation-delay: 42.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(422) { animation-delay: 42.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(423) { animation-delay: 42.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(424) { animation-delay: 42.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(425) { animation-delay: 42.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(426) { animation-delay: 42.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(427) { animation-delay: 42.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(428) { animation-delay: 42.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(429) { animation-delay: 42.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(430) { animation-delay: 43s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(431) { animation-delay: 43.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(432) { animation-delay: 43.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(433) { animation-delay: 43.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(434) { animation-delay: 43.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(435) { animation-delay: 43.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(436) { animation-delay: 43.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(437) { animation-delay: 43.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(438) { animation-delay: 43.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(439) { animation-delay: 43.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(440) { animation-delay: 44s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(441) { animation-delay: 44.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(442) { animation-delay: 44.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(443) { animation-delay: 44.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(444) { animation-delay: 44.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(445) { animation-delay: 44.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(446) { animation-delay: 44.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(447) { animation-delay: 44.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(448) { animation-delay: 44.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(449) { animation-delay: 44.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(450) { animation-delay: 45s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(451) { animation-delay: 45.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(452) { animation-delay: 45.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(453) { animation-delay: 45.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(454) { animation-delay: 45.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(455) { animation-delay: 45.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(456) { animation-delay: 45.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(457) { animation-delay: 45.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(458) { animation-delay: 45.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(459) { animation-delay: 45.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(460) { animation-delay: 46s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(461) { animation-delay: 46.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(462) { animation-delay: 46.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(463) { animation-delay: 46.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(464) { animation-delay: 46.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(465) { animation-delay: 46.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(466) { animation-delay: 46.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(467) { animation-delay: 46.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(468) { animation-delay: 46.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(469) { animation-delay: 46.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(470) { animation-delay: 47s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(471) { animation-delay: 47.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(472) { animation-delay: 47.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(473) { animation-delay: 47.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(474) { animation-delay: 47.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(475) { animation-delay: 47.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(476) { animation-delay: 47.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(477) { animation-delay: 47.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(478) { animation-delay: 47.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(479) { animation-delay: 47.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(480) { animation-delay: 48s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(481) { animation-delay: 48.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(482) { animation-delay: 48.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(483) { animation-delay: 48.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(484) { animation-delay: 48.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(485) { animation-delay: 48.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(486) { animation-delay: 48.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(487) { animation-delay: 48.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(488) { animation-delay: 48.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(489) { animation-delay: 48.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(490) { animation-delay: 49s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(491) { animation-delay: 49.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(492) { animation-delay: 49.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(493) { animation-delay: 49.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(494) { animation-delay: 49.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(495) { animation-delay: 49.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(496) { animation-delay: 49.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(497) { animation-delay: 49.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(498) { animation-delay: 49.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(499) { animation-delay: 49.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(500) { animation-delay: 50s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(501) { animation-delay: 50.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(502) { animation-delay: 50.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(503) { animation-delay: 50.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(504) { animation-delay: 50.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(505) { animation-delay: 50.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(506) { animation-delay: 50.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(507) { animation-delay: 50.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(508) { animation-delay: 50.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(509) { animation-delay: 50.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(510) { animation-delay: 51s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(511) { animation-delay: 51.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(512) { animation-delay: 51.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(513) { animation-delay: 51.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(514) { animation-delay: 51.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(515) { animation-delay: 51.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(516) { animation-delay: 51.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(517) { animation-delay: 51.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(518) { animation-delay: 51.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(519) { animation-delay: 51.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(520) { animation-delay: 52s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(521) { animation-delay: 52.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(522) { animation-delay: 52.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(523) { animation-delay: 52.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(524) { animation-delay: 52.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(525) { animation-delay: 52.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(526) { animation-delay: 52.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(527) { animation-delay: 52.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(528) { animation-delay: 52.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(529) { animation-delay: 52.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(530) { animation-delay: 53s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(531) { animation-delay: 53.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(532) { animation-delay: 53.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(533) { animation-delay: 53.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(534) { animation-delay: 53.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(535) { animation-delay: 53.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(536) { animation-delay: 53.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(537) { animation-delay: 53.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(538) { animation-delay: 53.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(539) { animation-delay: 53.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(540) { animation-delay: 54s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(541) { animation-delay: 54.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(542) { animation-delay: 54.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(543) { animation-delay: 54.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(544) { animation-delay: 54.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(545) { animation-delay: 54.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(546) { animation-delay: 54.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(547) { animation-delay: 54.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(548) { animation-delay: 54.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(549) { animation-delay: 54.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(550) { animation-delay: 55s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(551) { animation-delay: 55.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(552) { animation-delay: 55.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(553) { animation-delay: 55.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(554) { animation-delay: 55.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(555) { animation-delay: 55.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(556) { animation-delay: 55.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(557) { animation-delay: 55.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(558) { animation-delay: 55.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(559) { animation-delay: 55.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(560) { animation-delay: 56s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(561) { animation-delay: 56.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(562) { animation-delay: 56.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(563) { animation-delay: 56.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(564) { animation-delay: 56.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(565) { animation-delay: 56.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(566) { animation-delay: 56.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(567) { animation-delay: 56.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(568) { animation-delay: 56.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(569) { animation-delay: 56.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(570) { animation-delay: 57s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(571) { animation-delay: 57.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(572) { animation-delay: 57.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(573) { animation-delay: 57.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(574) { animation-delay: 57.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(575) { animation-delay: 57.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(576) { animation-delay: 57.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(577) { animation-delay: 57.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(578) { animation-delay: 57.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(579) { animation-delay: 57.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(580) { animation-delay: 58s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(581) { animation-delay: 58.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(582) { animation-delay: 58.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(583) { animation-delay: 58.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(584) { animation-delay: 58.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(585) { animation-delay: 58.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(586) { animation-delay: 58.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(587) { animation-delay: 58.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(588) { animation-delay: 58.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(589) { animation-delay: 58.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(590) { animation-delay: 59s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(591) { animation-delay: 59.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(592) { animation-delay: 59.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(593) { animation-delay: 59.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(594) { animation-delay: 59.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(595) { animation-delay: 59.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(596) { animation-delay: 59.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(597) { animation-delay: 59.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(598) { animation-delay: 59.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(599) { animation-delay: 59.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(600) { animation-delay: 60s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(601) { animation-delay: 60.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(602) { animation-delay: 60.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(603) { animation-delay: 60.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(604) { animation-delay: 60.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(605) { animation-delay: 60.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(606) { animation-delay: 60.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(607) { animation-delay: 60.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(608) { animation-delay: 60.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(609) { animation-delay: 60.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(610) { animation-delay: 61s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(611) { animation-delay: 61.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(612) { animation-delay: 61.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(613) { animation-delay: 61.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(614) { animation-delay: 61.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(615) { animation-delay: 61.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(616) { animation-delay: 61.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(617) { animation-delay: 61.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(618) { animation-delay: 61.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(619) { animation-delay: 61.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(620) { animation-delay: 62s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(621) { animation-delay: 62.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(622) { animation-delay: 62.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(623) { animation-delay: 62.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(624) { animation-delay: 62.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(625) { animation-delay: 62.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(626) { animation-delay: 62.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(627) { animation-delay: 62.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(628) { animation-delay: 62.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(629) { animation-delay: 62.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(630) { animation-delay: 63s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(631) { animation-delay: 63.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(632) { animation-delay: 63.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(633) { animation-delay: 63.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(634) { animation-delay: 63.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(635) { animation-delay: 63.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(636) { animation-delay: 63.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(637) { animation-delay: 63.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(638) { animation-delay: 63.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(639) { animation-delay: 63.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(640) { animation-delay: 64s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(641) { animation-delay: 64.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(642) { animation-delay: 64.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(643) { animation-delay: 64.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(644) { animation-delay: 64.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(645) { animation-delay: 64.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(646) { animation-delay: 64.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(647) { animation-delay: 64.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(648) { animation-delay: 64.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(649) { animation-delay: 64.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(650) { animation-delay: 65s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(651) { animation-delay: 65.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(652) { animation-delay: 65.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(653) { animation-delay: 65.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(654) { animation-delay: 65.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(655) { animation-delay: 65.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(656) { animation-delay: 65.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(657) { animation-delay: 65.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(658) { animation-delay: 65.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(659) { animation-delay: 65.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(660) { animation-delay: 66s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(661) { animation-delay: 66.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(662) { animation-delay: 66.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(663) { animation-delay: 66.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(664) { animation-delay: 66.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(665) { animation-delay: 66.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(666) { animation-delay: 66.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(667) { animation-delay: 66.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(668) { animation-delay: 66.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(669) { animation-delay: 66.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(670) { animation-delay: 67s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(671) { animation-delay: 67.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(672) { animation-delay: 67.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(673) { animation-delay: 67.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(674) { animation-delay: 67.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(675) { animation-delay: 67.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(676) { animation-delay: 67.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(677) { animation-delay: 67.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(678) { animation-delay: 67.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(679) { animation-delay: 67.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(680) { animation-delay: 68s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(681) { animation-delay: 68.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(682) { animation-delay: 68.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(683) { animation-delay: 68.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(684) { animation-delay: 68.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(685) { animation-delay: 68.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(686) { animation-delay: 68.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(687) { animation-delay: 68.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(688) { animation-delay: 68.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(689) { animation-delay: 68.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(690) { animation-delay: 69s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(691) { animation-delay: 69.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(692) { animation-delay: 69.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(693) { animation-delay: 69.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(694) { animation-delay: 69.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(695) { animation-delay: 69.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(696) { animation-delay: 69.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(697) { animation-delay: 69.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(698) { animation-delay: 69.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(699) { animation-delay: 69.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(700) { animation-delay: 70s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(701) { animation-delay: 70.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(702) { animation-delay: 70.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(703) { animation-delay: 70.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(704) { animation-delay: 70.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(705) { animation-delay: 70.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(706) { animation-delay: 70.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(707) { animation-delay: 70.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(708) { animation-delay: 70.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(709) { animation-delay: 70.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(710) { animation-delay: 71s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(711) { animation-delay: 71.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(712) { animation-delay: 71.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(713) { animation-delay: 71.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(714) { animation-delay: 71.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(715) { animation-delay: 71.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(716) { animation-delay: 71.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(717) { animation-delay: 71.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(718) { animation-delay: 71.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(719) { animation-delay: 71.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(720) { animation-delay: 72s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(721) { animation-delay: 72.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(722) { animation-delay: 72.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(723) { animation-delay: 72.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(724) { animation-delay: 72.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(725) { animation-delay: 72.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(726) { animation-delay: 72.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(727) { animation-delay: 72.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(728) { animation-delay: 72.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(729) { animation-delay: 72.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(730) { animation-delay: 73s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(731) { animation-delay: 73.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(732) { animation-delay: 73.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(733) { animation-delay: 73.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(734) { animation-delay: 73.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(735) { animation-delay: 73.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(736) { animation-delay: 73.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(737) { animation-delay: 73.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(738) { animation-delay: 73.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(739) { animation-delay: 73.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(740) { animation-delay: 74s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(741) { animation-delay: 74.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(742) { animation-delay: 74.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(743) { animation-delay: 74.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(744) { animation-delay: 74.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(745) { animation-delay: 74.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(746) { animation-delay: 74.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(747) { animation-delay: 74.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(748) { animation-delay: 74.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(749) { animation-delay: 74.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(750) { animation-delay: 75s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(751) { animation-delay: 75.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(752) { animation-delay: 75.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(753) { animation-delay: 75.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(754) { animation-delay: 75.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(755) { animation-delay: 75.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(756) { animation-delay: 75.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(757) { animation-delay: 75.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(758) { animation-delay: 75.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(759) { animation-delay: 75.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(760) { animation-delay: 76s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(761) { animation-delay: 76.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(762) { animation-delay: 76.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(763) { animation-delay: 76.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(764) { animation-delay: 76.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(765) { animation-delay: 76.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(766) { animation-delay: 76.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(767) { animation-delay: 76.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(768) { animation-delay: 76.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(769) { animation-delay: 76.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(770) { animation-delay: 77s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(771) { animation-delay: 77.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(772) { animation-delay: 77.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(773) { animation-delay: 77.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(774) { animation-delay: 77.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(775) { animation-delay: 77.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(776) { animation-delay: 77.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(777) { animation-delay: 77.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(778) { animation-delay: 77.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(779) { animation-delay: 77.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(780) { animation-delay: 78s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(781) { animation-delay: 78.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(782) { animation-delay: 78.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(783) { animation-delay: 78.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(784) { animation-delay: 78.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(785) { animation-delay: 78.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(786) { animation-delay: 78.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(787) { animation-delay: 78.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(788) { animation-delay: 78.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(789) { animation-delay: 78.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(790) { animation-delay: 79s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(791) { animation-delay: 79.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(792) { animation-delay: 79.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(793) { animation-delay: 79.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(794) { animation-delay: 79.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(795) { animation-delay: 79.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(796) { animation-delay: 79.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(797) { animation-delay: 79.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(798) { animation-delay: 79.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(799) { animation-delay: 79.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(800) { animation-delay: 80s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(801) { animation-delay: 80.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(802) { animation-delay: 80.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(803) { animation-delay: 80.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(804) { animation-delay: 80.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(805) { animation-delay: 80.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(806) { animation-delay: 80.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(807) { animation-delay: 80.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(808) { animation-delay: 80.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(809) { animation-delay: 80.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(810) { animation-delay: 81s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(811) { animation-delay: 81.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(812) { animation-delay: 81.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(813) { animation-delay: 81.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(814) { animation-delay: 81.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(815) { animation-delay: 81.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(816) { animation-delay: 81.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(817) { animation-delay: 81.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(818) { animation-delay: 81.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(819) { animation-delay: 81.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(820) { animation-delay: 82s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(821) { animation-delay: 82.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(822) { animation-delay: 82.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(823) { animation-delay: 82.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(824) { animation-delay: 82.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(825) { animation-delay: 82.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(826) { animation-delay: 82.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(827) { animation-delay: 82.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(828) { animation-delay: 82.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(829) { animation-delay: 82.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(830) { animation-delay: 83s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(831) { animation-delay: 83.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(832) { animation-delay: 83.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(833) { animation-delay: 83.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(834) { animation-delay: 83.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(835) { animation-delay: 83.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(836) { animation-delay: 83.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(837) { animation-delay: 83.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(838) { animation-delay: 83.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(839) { animation-delay: 83.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(840) { animation-delay: 84s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(841) { animation-delay: 84.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(842) { animation-delay: 84.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(843) { animation-delay: 84.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(844) { animation-delay: 84.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(845) { animation-delay: 84.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(846) { animation-delay: 84.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(847) { animation-delay: 84.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(848) { animation-delay: 84.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(849) { animation-delay: 84.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(850) { animation-delay: 85s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(851) { animation-delay: 85.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(852) { animation-delay: 85.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(853) { animation-delay: 85.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(854) { animation-delay: 85.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(855) { animation-delay: 85.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(856) { animation-delay: 85.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(857) { animation-delay: 85.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(858) { animation-delay: 85.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(859) { animation-delay: 85.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(860) { animation-delay: 86s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(861) { animation-delay: 86.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(862) { animation-delay: 86.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(863) { animation-delay: 86.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(864) { animation-delay: 86.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(865) { animation-delay: 86.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(866) { animation-delay: 86.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(867) { animation-delay: 86.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(868) { animation-delay: 86.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(869) { animation-delay: 86.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(870) { animation-delay: 87s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(871) { animation-delay: 87.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(872) { animation-delay: 87.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(873) { animation-delay: 87.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(874) { animation-delay: 87.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(875) { animation-delay: 87.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(876) { animation-delay: 87.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(877) { animation-delay: 87.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(878) { animation-delay: 87.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(879) { animation-delay: 87.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(880) { animation-delay: 88s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(881) { animation-delay: 88.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(882) { animation-delay: 88.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(883) { animation-delay: 88.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(884) { animation-delay: 88.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(885) { animation-delay: 88.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(886) { animation-delay: 88.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(887) { animation-delay: 88.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(888) { animation-delay: 88.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(889) { animation-delay: 88.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(890) { animation-delay: 89s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(891) { animation-delay: 89.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(892) { animation-delay: 89.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(893) { animation-delay: 89.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(894) { animation-delay: 89.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(895) { animation-delay: 89.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(896) { animation-delay: 89.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(897) { animation-delay: 89.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(898) { animation-delay: 89.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(899) { animation-delay: 89.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(900) { animation-delay: 90s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(901) { animation-delay: 90.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(902) { animation-delay: 90.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(903) { animation-delay: 90.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(904) { animation-delay: 90.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(905) { animation-delay: 90.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(906) { animation-delay: 90.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(907) { animation-delay: 90.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(908) { animation-delay: 90.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(909) { animation-delay: 90.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(910) { animation-delay: 91s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(911) { animation-delay: 91.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(912) { animation-delay: 91.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(913) { animation-delay: 91.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(914) { animation-delay: 91.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(915) { animation-delay: 91.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(916) { animation-delay: 91.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(917) { animation-delay: 91.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(918) { animation-delay: 91.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(919) { animation-delay: 91.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(920) { animation-delay: 92s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(921) { animation-delay: 92.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(922) { animation-delay: 92.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(923) { animation-delay: 92.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(924) { animation-delay: 92.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(925) { animation-delay: 92.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(926) { animation-delay: 92.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(927) { animation-delay: 92.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(928) { animation-delay: 92.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(929) { animation-delay: 92.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(930) { animation-delay: 93s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(931) { animation-delay: 93.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(932) { animation-delay: 93.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(933) { animation-delay: 93.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(934) { animation-delay: 93.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(935) { animation-delay: 93.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(936) { animation-delay: 93.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(937) { animation-delay: 93.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(938) { animation-delay: 93.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(939) { animation-delay: 93.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(940) { animation-delay: 94s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(941) { animation-delay: 94.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(942) { animation-delay: 94.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(943) { animation-delay: 94.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(944) { animation-delay: 94.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(945) { animation-delay: 94.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(946) { animation-delay: 94.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(947) { animation-delay: 94.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(948) { animation-delay: 94.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(949) { animation-delay: 94.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(950) { animation-delay: 95s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(951) { animation-delay: 95.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(952) { animation-delay: 95.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(953) { animation-delay: 95.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(954) { animation-delay: 95.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(955) { animation-delay: 95.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(956) { animation-delay: 95.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(957) { animation-delay: 95.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(958) { animation-delay: 95.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(959) { animation-delay: 95.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(960) { animation-delay: 96s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(961) { animation-delay: 96.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(962) { animation-delay: 96.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(963) { animation-delay: 96.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(964) { animation-delay: 96.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(965) { animation-delay: 96.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(966) { animation-delay: 96.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(967) { animation-delay: 96.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(968) { animation-delay: 96.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(969) { animation-delay: 96.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(970) { animation-delay: 97s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(971) { animation-delay: 97.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(972) { animation-delay: 97.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(973) { animation-delay: 97.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(974) { animation-delay: 97.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(975) { animation-delay: 97.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(976) { animation-delay: 97.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(977) { animation-delay: 97.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(978) { animation-delay: 97.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(979) { animation-delay: 97.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(980) { animation-delay: 98s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(981) { animation-delay: 98.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(982) { animation-delay: 98.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(983) { animation-delay: 98.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(984) { animation-delay: 98.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(985) { animation-delay: 98.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(986) { animation-delay: 98.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(987) { animation-delay: 98.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(988) { animation-delay: 98.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(989) { animation-delay: 98.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(990) { animation-delay: 99s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(991) { animation-delay: 99.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(992) { animation-delay: 99.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(993) { animation-delay: 99.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(994) { animation-delay: 99.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(995) { animation-delay: 99.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(996) { animation-delay: 99.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(997) { animation-delay: 99.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(998) { animation-delay: 99.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(999) { animation-delay: 99.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1000) { animation-delay: 100s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1001) { animation-delay: 100.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1002) { animation-delay: 100.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1003) { animation-delay: 100.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1004) { animation-delay: 100.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1005) { animation-delay: 100.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1006) { animation-delay: 100.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1007) { animation-delay: 100.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1008) { animation-delay: 100.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1009) { animation-delay: 100.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1010) { animation-delay: 101s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1011) { animation-delay: 101.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1012) { animation-delay: 101.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1013) { animation-delay: 101.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1014) { animation-delay: 101.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1015) { animation-delay: 101.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1016) { animation-delay: 101.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1017) { animation-delay: 101.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1018) { animation-delay: 101.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1019) { animation-delay: 101.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1020) { animation-delay: 102s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1021) { animation-delay: 102.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1022) { animation-delay: 102.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1023) { animation-delay: 102.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1024) { animation-delay: 102.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1025) { animation-delay: 102.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1026) { animation-delay: 102.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1027) { animation-delay: 102.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1028) { animation-delay: 102.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1029) { animation-delay: 102.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1030) { animation-delay: 103s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1031) { animation-delay: 103.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1032) { animation-delay: 103.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1033) { animation-delay: 103.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1034) { animation-delay: 103.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1035) { animation-delay: 103.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1036) { animation-delay: 103.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1037) { animation-delay: 103.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1038) { animation-delay: 103.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1039) { animation-delay: 103.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1040) { animation-delay: 104s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1041) { animation-delay: 104.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1042) { animation-delay: 104.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1043) { animation-delay: 104.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1044) { animation-delay: 104.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1045) { animation-delay: 104.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1046) { animation-delay: 104.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1047) { animation-delay: 104.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1048) { animation-delay: 104.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1049) { animation-delay: 104.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1050) { animation-delay: 105s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1051) { animation-delay: 105.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1052) { animation-delay: 105.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1053) { animation-delay: 105.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1054) { animation-delay: 105.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1055) { animation-delay: 105.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1056) { animation-delay: 105.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1057) { animation-delay: 105.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1058) { animation-delay: 105.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1059) { animation-delay: 105.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1060) { animation-delay: 106s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1061) { animation-delay: 106.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1062) { animation-delay: 106.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1063) { animation-delay: 106.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1064) { animation-delay: 106.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1065) { animation-delay: 106.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1066) { animation-delay: 106.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1067) { animation-delay: 106.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1068) { animation-delay: 106.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1069) { animation-delay: 106.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1070) { animation-delay: 107s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1071) { animation-delay: 107.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1072) { animation-delay: 107.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1073) { animation-delay: 107.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1074) { animation-delay: 107.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1075) { animation-delay: 107.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1076) { animation-delay: 107.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1077) { animation-delay: 107.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1078) { animation-delay: 107.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1079) { animation-delay: 107.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1080) { animation-delay: 108s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1081) { animation-delay: 108.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1082) { animation-delay: 108.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1083) { animation-delay: 108.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1084) { animation-delay: 108.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1085) { animation-delay: 108.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1086) { animation-delay: 108.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1087) { animation-delay: 108.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1088) { animation-delay: 108.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1089) { animation-delay: 108.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1090) { animation-delay: 109s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1091) { animation-delay: 109.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1092) { animation-delay: 109.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1093) { animation-delay: 109.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1094) { animation-delay: 109.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1095) { animation-delay: 109.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1096) { animation-delay: 109.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1097) { animation-delay: 109.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1098) { animation-delay: 109.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1099) { animation-delay: 109.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1100) { animation-delay: 110s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1101) { animation-delay: 110.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1102) { animation-delay: 110.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1103) { animation-delay: 110.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1104) { animation-delay: 110.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1105) { animation-delay: 110.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1106) { animation-delay: 110.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1107) { animation-delay: 110.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1108) { animation-delay: 110.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1109) { animation-delay: 110.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1110) { animation-delay: 111s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1111) { animation-delay: 111.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1112) { animation-delay: 111.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1113) { animation-delay: 111.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1114) { animation-delay: 111.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1115) { animation-delay: 111.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1116) { animation-delay: 111.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1117) { animation-delay: 111.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1118) { animation-delay: 111.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1119) { animation-delay: 111.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1120) { animation-delay: 112s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1121) { animation-delay: 112.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1122) { animation-delay: 112.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1123) { animation-delay: 112.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1124) { animation-delay: 112.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1125) { animation-delay: 112.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1126) { animation-delay: 112.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1127) { animation-delay: 112.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1128) { animation-delay: 112.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1129) { animation-delay: 112.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1130) { animation-delay: 113s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1131) { animation-delay: 113.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1132) { animation-delay: 113.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1133) { animation-delay: 113.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1134) { animation-delay: 113.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1135) { animation-delay: 113.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1136) { animation-delay: 113.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1137) { animation-delay: 113.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1138) { animation-delay: 113.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1139) { animation-delay: 113.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1140) { animation-delay: 114s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1141) { animation-delay: 114.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1142) { animation-delay: 114.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1143) { animation-delay: 114.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1144) { animation-delay: 114.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1145) { animation-delay: 114.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1146) { animation-delay: 114.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1147) { animation-delay: 114.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1148) { animation-delay: 114.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1149) { animation-delay: 114.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1150) { animation-delay: 115s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1151) { animation-delay: 115.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1152) { animation-delay: 115.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1153) { animation-delay: 115.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1154) { animation-delay: 115.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1155) { animation-delay: 115.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1156) { animation-delay: 115.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1157) { animation-delay: 115.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1158) { animation-delay: 115.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1159) { animation-delay: 115.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1160) { animation-delay: 116s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1161) { animation-delay: 116.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1162) { animation-delay: 116.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1163) { animation-delay: 116.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1164) { animation-delay: 116.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1165) { animation-delay: 116.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1166) { animation-delay: 116.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1167) { animation-delay: 116.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1168) { animation-delay: 116.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1169) { animation-delay: 116.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1170) { animation-delay: 117s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1171) { animation-delay: 117.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1172) { animation-delay: 117.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1173) { animation-delay: 117.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1174) { animation-delay: 117.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1175) { animation-delay: 117.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1176) { animation-delay: 117.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1177) { animation-delay: 117.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1178) { animation-delay: 117.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1179) { animation-delay: 117.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1180) { animation-delay: 118s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1181) { animation-delay: 118.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1182) { animation-delay: 118.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1183) { animation-delay: 118.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1184) { animation-delay: 118.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1185) { animation-delay: 118.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1186) { animation-delay: 118.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1187) { animation-delay: 118.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1188) { animation-delay: 118.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1189) { animation-delay: 118.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1190) { animation-delay: 119s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1191) { animation-delay: 119.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1192) { animation-delay: 119.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1193) { animation-delay: 119.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1194) { animation-delay: 119.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1195) { animation-delay: 119.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1196) { animation-delay: 119.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1197) { animation-delay: 119.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1198) { animation-delay: 119.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1199) { animation-delay: 119.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1200) { animation-delay: 120s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1201) { animation-delay: 120.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1202) { animation-delay: 120.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1203) { animation-delay: 120.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1204) { animation-delay: 120.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1205) { animation-delay: 120.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1206) { animation-delay: 120.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1207) { animation-delay: 120.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1208) { animation-delay: 120.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1209) { animation-delay: 120.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1210) { animation-delay: 121s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1211) { animation-delay: 121.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1212) { animation-delay: 121.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1213) { animation-delay: 121.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1214) { animation-delay: 121.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1215) { animation-delay: 121.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1216) { animation-delay: 121.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1217) { animation-delay: 121.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1218) { animation-delay: 121.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1219) { animation-delay: 121.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1220) { animation-delay: 122s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1221) { animation-delay: 122.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1222) { animation-delay: 122.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1223) { animation-delay: 122.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1224) { animation-delay: 122.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1225) { animation-delay: 122.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1226) { animation-delay: 122.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1227) { animation-delay: 122.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1228) { animation-delay: 122.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1229) { animation-delay: 122.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1230) { animation-delay: 123s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1231) { animation-delay: 123.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1232) { animation-delay: 123.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1233) { animation-delay: 123.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1234) { animation-delay: 123.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1235) { animation-delay: 123.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1236) { animation-delay: 123.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1237) { animation-delay: 123.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1238) { animation-delay: 123.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1239) { animation-delay: 123.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1240) { animation-delay: 124s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1241) { animation-delay: 124.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1242) { animation-delay: 124.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1243) { animation-delay: 124.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1244) { animation-delay: 124.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1245) { animation-delay: 124.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1246) { animation-delay: 124.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1247) { animation-delay: 124.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1248) { animation-delay: 124.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1249) { animation-delay: 124.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1250) { animation-delay: 125s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1251) { animation-delay: 125.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1252) { animation-delay: 125.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1253) { animation-delay: 125.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1254) { animation-delay: 125.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1255) { animation-delay: 125.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1256) { animation-delay: 125.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1257) { animation-delay: 125.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1258) { animation-delay: 125.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1259) { animation-delay: 125.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1260) { animation-delay: 126s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1261) { animation-delay: 126.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1262) { animation-delay: 126.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1263) { animation-delay: 126.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1264) { animation-delay: 126.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1265) { animation-delay: 126.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1266) { animation-delay: 126.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1267) { animation-delay: 126.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1268) { animation-delay: 126.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1269) { animation-delay: 126.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1270) { animation-delay: 127s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1271) { animation-delay: 127.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1272) { animation-delay: 127.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1273) { animation-delay: 127.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1274) { animation-delay: 127.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1275) { animation-delay: 127.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1276) { animation-delay: 127.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1277) { animation-delay: 127.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1278) { animation-delay: 127.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1279) { animation-delay: 127.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1280) { animation-delay: 128s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1281) { animation-delay: 128.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1282) { animation-delay: 128.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1283) { animation-delay: 128.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1284) { animation-delay: 128.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1285) { animation-delay: 128.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1286) { animation-delay: 128.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1287) { animation-delay: 128.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1288) { animation-delay: 128.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1289) { animation-delay: 128.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1290) { animation-delay: 129s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1291) { animation-delay: 129.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1292) { animation-delay: 129.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1293) { animation-delay: 129.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1294) { animation-delay: 129.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1295) { animation-delay: 129.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1296) { animation-delay: 129.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1297) { animation-delay: 129.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1298) { animation-delay: 129.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1299) { animation-delay: 129.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1300) { animation-delay: 130s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1301) { animation-delay: 130.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1302) { animation-delay: 130.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1303) { animation-delay: 130.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1304) { animation-delay: 130.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1305) { animation-delay: 130.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1306) { animation-delay: 130.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1307) { animation-delay: 130.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1308) { animation-delay: 130.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1309) { animation-delay: 130.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1310) { animation-delay: 131s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1311) { animation-delay: 131.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1312) { animation-delay: 131.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1313) { animation-delay: 131.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1314) { animation-delay: 131.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1315) { animation-delay: 131.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1316) { animation-delay: 131.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1317) { animation-delay: 131.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1318) { animation-delay: 131.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1319) { animation-delay: 131.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1320) { animation-delay: 132s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1321) { animation-delay: 132.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1322) { animation-delay: 132.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1323) { animation-delay: 132.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1324) { animation-delay: 132.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1325) { animation-delay: 132.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1326) { animation-delay: 132.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1327) { animation-delay: 132.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1328) { animation-delay: 132.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1329) { animation-delay: 132.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1330) { animation-delay: 133s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1331) { animation-delay: 133.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1332) { animation-delay: 133.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1333) { animation-delay: 133.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1334) { animation-delay: 133.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1335) { animation-delay: 133.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1336) { animation-delay: 133.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1337) { animation-delay: 133.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1338) { animation-delay: 133.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1339) { animation-delay: 133.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1340) { animation-delay: 134s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1341) { animation-delay: 134.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1342) { animation-delay: 134.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1343) { animation-delay: 134.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1344) { animation-delay: 134.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1345) { animation-delay: 134.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1346) { animation-delay: 134.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1347) { animation-delay: 134.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1348) { animation-delay: 134.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1349) { animation-delay: 134.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1350) { animation-delay: 135s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1351) { animation-delay: 135.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1352) { animation-delay: 135.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1353) { animation-delay: 135.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1354) { animation-delay: 135.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1355) { animation-delay: 135.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1356) { animation-delay: 135.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1357) { animation-delay: 135.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1358) { animation-delay: 135.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1359) { animation-delay: 135.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1360) { animation-delay: 136s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1361) { animation-delay: 136.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1362) { animation-delay: 136.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1363) { animation-delay: 136.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1364) { animation-delay: 136.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1365) { animation-delay: 136.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1366) { animation-delay: 136.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1367) { animation-delay: 136.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1368) { animation-delay: 136.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1369) { animation-delay: 136.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1370) { animation-delay: 137s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1371) { animation-delay: 137.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1372) { animation-delay: 137.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1373) { animation-delay: 137.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1374) { animation-delay: 137.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1375) { animation-delay: 137.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1376) { animation-delay: 137.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1377) { animation-delay: 137.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1378) { animation-delay: 137.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1379) { animation-delay: 137.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1380) { animation-delay: 138s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1381) { animation-delay: 138.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1382) { animation-delay: 138.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1383) { animation-delay: 138.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1384) { animation-delay: 138.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1385) { animation-delay: 138.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1386) { animation-delay: 138.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1387) { animation-delay: 138.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1388) { animation-delay: 138.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1389) { animation-delay: 138.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1390) { animation-delay: 139s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1391) { animation-delay: 139.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1392) { animation-delay: 139.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1393) { animation-delay: 139.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1394) { animation-delay: 139.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1395) { animation-delay: 139.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1396) { animation-delay: 139.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1397) { animation-delay: 139.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1398) { animation-delay: 139.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1399) { animation-delay: 139.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1400) { animation-delay: 140s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1401) { animation-delay: 140.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1402) { animation-delay: 140.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1403) { animation-delay: 140.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1404) { animation-delay: 140.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1405) { animation-delay: 140.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1406) { animation-delay: 140.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1407) { animation-delay: 140.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1408) { animation-delay: 140.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1409) { animation-delay: 140.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1410) { animation-delay: 141s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1411) { animation-delay: 141.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1412) { animation-delay: 141.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1413) { animation-delay: 141.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1414) { animation-delay: 141.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1415) { animation-delay: 141.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1416) { animation-delay: 141.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1417) { animation-delay: 141.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1418) { animation-delay: 141.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1419) { animation-delay: 141.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1420) { animation-delay: 142s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1421) { animation-delay: 142.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1422) { animation-delay: 142.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1423) { animation-delay: 142.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1424) { animation-delay: 142.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1425) { animation-delay: 142.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1426) { animation-delay: 142.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1427) { animation-delay: 142.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1428) { animation-delay: 142.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1429) { animation-delay: 142.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1430) { animation-delay: 143s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1431) { animation-delay: 143.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1432) { animation-delay: 143.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1433) { animation-delay: 143.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1434) { animation-delay: 143.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1435) { animation-delay: 143.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1436) { animation-delay: 143.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1437) { animation-delay: 143.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1438) { animation-delay: 143.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1439) { animation-delay: 143.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1440) { animation-delay: 144s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1441) { animation-delay: 144.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1442) { animation-delay: 144.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1443) { animation-delay: 144.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1444) { animation-delay: 144.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1445) { animation-delay: 144.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1446) { animation-delay: 144.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1447) { animation-delay: 144.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1448) { animation-delay: 144.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1449) { animation-delay: 144.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1450) { animation-delay: 145s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1451) { animation-delay: 145.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1452) { animation-delay: 145.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1453) { animation-delay: 145.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1454) { animation-delay: 145.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1455) { animation-delay: 145.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1456) { animation-delay: 145.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1457) { animation-delay: 145.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1458) { animation-delay: 145.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1459) { animation-delay: 145.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1460) { animation-delay: 146s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1461) { animation-delay: 146.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1462) { animation-delay: 146.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1463) { animation-delay: 146.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1464) { animation-delay: 146.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1465) { animation-delay: 146.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1466) { animation-delay: 146.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1467) { animation-delay: 146.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1468) { animation-delay: 146.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1469) { animation-delay: 146.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1470) { animation-delay: 147s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1471) { animation-delay: 147.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1472) { animation-delay: 147.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1473) { animation-delay: 147.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1474) { animation-delay: 147.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1475) { animation-delay: 147.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1476) { animation-delay: 147.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1477) { animation-delay: 147.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1478) { animation-delay: 147.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1479) { animation-delay: 147.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1480) { animation-delay: 148s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1481) { animation-delay: 148.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1482) { animation-delay: 148.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1483) { animation-delay: 148.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1484) { animation-delay: 148.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1485) { animation-delay: 148.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1486) { animation-delay: 148.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1487) { animation-delay: 148.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1488) { animation-delay: 148.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1489) { animation-delay: 148.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1490) { animation-delay: 149s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1491) { animation-delay: 149.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1492) { animation-delay: 149.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1493) { animation-delay: 149.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1494) { animation-delay: 149.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1495) { animation-delay: 149.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1496) { animation-delay: 149.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1497) { animation-delay: 149.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1498) { animation-delay: 149.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1499) { animation-delay: 149.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1500) { animation-delay: 150s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1501) { animation-delay: 150.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1502) { animation-delay: 150.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1503) { animation-delay: 150.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1504) { animation-delay: 150.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1505) { animation-delay: 150.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1506) { animation-delay: 150.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1507) { animation-delay: 150.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1508) { animation-delay: 150.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1509) { animation-delay: 150.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1510) { animation-delay: 151s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1511) { animation-delay: 151.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1512) { animation-delay: 151.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1513) { animation-delay: 151.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1514) { animation-delay: 151.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1515) { animation-delay: 151.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1516) { animation-delay: 151.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1517) { animation-delay: 151.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1518) { animation-delay: 151.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1519) { animation-delay: 151.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1520) { animation-delay: 152s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1521) { animation-delay: 152.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1522) { animation-delay: 152.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1523) { animation-delay: 152.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1524) { animation-delay: 152.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1525) { animation-delay: 152.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1526) { animation-delay: 152.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1527) { animation-delay: 152.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1528) { animation-delay: 152.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1529) { animation-delay: 152.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1530) { animation-delay: 153s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1531) { animation-delay: 153.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1532) { animation-delay: 153.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1533) { animation-delay: 153.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1534) { animation-delay: 153.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1535) { animation-delay: 153.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1536) { animation-delay: 153.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1537) { animation-delay: 153.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1538) { animation-delay: 153.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1539) { animation-delay: 153.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1540) { animation-delay: 154s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1541) { animation-delay: 154.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1542) { animation-delay: 154.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1543) { animation-delay: 154.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1544) { animation-delay: 154.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1545) { animation-delay: 154.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1546) { animation-delay: 154.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1547) { animation-delay: 154.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1548) { animation-delay: 154.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1549) { animation-delay: 154.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1550) { animation-delay: 155s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1551) { animation-delay: 155.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1552) { animation-delay: 155.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1553) { animation-delay: 155.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1554) { animation-delay: 155.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1555) { animation-delay: 155.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1556) { animation-delay: 155.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1557) { animation-delay: 155.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1558) { animation-delay: 155.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1559) { animation-delay: 155.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1560) { animation-delay: 156s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1561) { animation-delay: 156.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1562) { animation-delay: 156.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1563) { animation-delay: 156.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1564) { animation-delay: 156.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1565) { animation-delay: 156.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1566) { animation-delay: 156.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1567) { animation-delay: 156.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1568) { animation-delay: 156.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1569) { animation-delay: 156.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1570) { animation-delay: 157s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1571) { animation-delay: 157.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1572) { animation-delay: 157.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1573) { animation-delay: 157.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1574) { animation-delay: 157.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1575) { animation-delay: 157.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1576) { animation-delay: 157.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1577) { animation-delay: 157.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1578) { animation-delay: 157.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1579) { animation-delay: 157.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1580) { animation-delay: 158s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1581) { animation-delay: 158.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1582) { animation-delay: 158.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1583) { animation-delay: 158.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1584) { animation-delay: 158.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1585) { animation-delay: 158.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1586) { animation-delay: 158.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1587) { animation-delay: 158.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1588) { animation-delay: 158.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1589) { animation-delay: 158.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1590) { animation-delay: 159s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1591) { animation-delay: 159.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1592) { animation-delay: 159.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1593) { animation-delay: 159.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1594) { animation-delay: 159.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1595) { animation-delay: 159.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1596) { animation-delay: 159.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1597) { animation-delay: 159.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1598) { animation-delay: 159.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1599) { animation-delay: 159.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1600) { animation-delay: 160s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1601) { animation-delay: 160.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1602) { animation-delay: 160.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1603) { animation-delay: 160.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1604) { animation-delay: 160.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1605) { animation-delay: 160.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1606) { animation-delay: 160.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1607) { animation-delay: 160.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1608) { animation-delay: 160.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1609) { animation-delay: 160.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1610) { animation-delay: 161s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1611) { animation-delay: 161.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1612) { animation-delay: 161.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1613) { animation-delay: 161.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1614) { animation-delay: 161.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1615) { animation-delay: 161.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1616) { animation-delay: 161.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1617) { animation-delay: 161.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1618) { animation-delay: 161.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1619) { animation-delay: 161.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1620) { animation-delay: 162s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1621) { animation-delay: 162.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1622) { animation-delay: 162.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1623) { animation-delay: 162.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1624) { animation-delay: 162.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1625) { animation-delay: 162.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1626) { animation-delay: 162.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1627) { animation-delay: 162.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1628) { animation-delay: 162.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1629) { animation-delay: 162.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1630) { animation-delay: 163s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1631) { animation-delay: 163.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1632) { animation-delay: 163.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1633) { animation-delay: 163.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1634) { animation-delay: 163.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1635) { animation-delay: 163.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1636) { animation-delay: 163.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1637) { animation-delay: 163.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1638) { animation-delay: 163.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1639) { animation-delay: 163.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1640) { animation-delay: 164s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1641) { animation-delay: 164.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1642) { animation-delay: 164.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1643) { animation-delay: 164.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1644) { animation-delay: 164.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1645) { animation-delay: 164.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1646) { animation-delay: 164.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1647) { animation-delay: 164.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1648) { animation-delay: 164.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1649) { animation-delay: 164.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1650) { animation-delay: 165s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1651) { animation-delay: 165.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1652) { animation-delay: 165.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1653) { animation-delay: 165.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1654) { animation-delay: 165.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1655) { animation-delay: 165.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1656) { animation-delay: 165.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1657) { animation-delay: 165.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1658) { animation-delay: 165.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1659) { animation-delay: 165.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1660) { animation-delay: 166s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1661) { animation-delay: 166.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1662) { animation-delay: 166.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1663) { animation-delay: 166.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1664) { animation-delay: 166.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1665) { animation-delay: 166.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1666) { animation-delay: 166.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1667) { animation-delay: 166.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1668) { animation-delay: 166.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1669) { animation-delay: 166.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1670) { animation-delay: 167s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1671) { animation-delay: 167.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1672) { animation-delay: 167.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1673) { animation-delay: 167.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1674) { animation-delay: 167.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1675) { animation-delay: 167.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1676) { animation-delay: 167.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1677) { animation-delay: 167.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1678) { animation-delay: 167.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1679) { animation-delay: 167.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1680) { animation-delay: 168s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1681) { animation-delay: 168.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1682) { animation-delay: 168.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1683) { animation-delay: 168.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1684) { animation-delay: 168.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1685) { animation-delay: 168.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1686) { animation-delay: 168.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1687) { animation-delay: 168.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1688) { animation-delay: 168.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1689) { animation-delay: 168.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1690) { animation-delay: 169s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1691) { animation-delay: 169.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1692) { animation-delay: 169.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1693) { animation-delay: 169.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1694) { animation-delay: 169.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1695) { animation-delay: 169.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1696) { animation-delay: 169.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1697) { animation-delay: 169.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1698) { animation-delay: 169.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1699) { animation-delay: 169.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1700) { animation-delay: 170s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1701) { animation-delay: 170.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1702) { animation-delay: 170.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1703) { animation-delay: 170.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1704) { animation-delay: 170.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1705) { animation-delay: 170.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1706) { animation-delay: 170.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1707) { animation-delay: 170.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1708) { animation-delay: 170.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1709) { animation-delay: 170.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1710) { animation-delay: 171s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1711) { animation-delay: 171.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1712) { animation-delay: 171.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1713) { animation-delay: 171.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1714) { animation-delay: 171.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1715) { animation-delay: 171.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1716) { animation-delay: 171.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1717) { animation-delay: 171.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1718) { animation-delay: 171.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1719) { animation-delay: 171.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1720) { animation-delay: 172s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1721) { animation-delay: 172.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1722) { animation-delay: 172.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1723) { animation-delay: 172.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1724) { animation-delay: 172.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1725) { animation-delay: 172.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1726) { animation-delay: 172.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1727) { animation-delay: 172.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1728) { animation-delay: 172.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1729) { animation-delay: 172.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1730) { animation-delay: 173s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1731) { animation-delay: 173.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1732) { animation-delay: 173.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1733) { animation-delay: 173.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1734) { animation-delay: 173.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1735) { animation-delay: 173.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1736) { animation-delay: 173.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1737) { animation-delay: 173.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1738) { animation-delay: 173.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1739) { animation-delay: 173.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1740) { animation-delay: 174s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1741) { animation-delay: 174.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1742) { animation-delay: 174.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1743) { animation-delay: 174.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1744) { animation-delay: 174.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1745) { animation-delay: 174.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1746) { animation-delay: 174.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1747) { animation-delay: 174.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1748) { animation-delay: 174.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1749) { animation-delay: 174.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1750) { animation-delay: 175s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1751) { animation-delay: 175.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1752) { animation-delay: 175.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1753) { animation-delay: 175.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1754) { animation-delay: 175.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1755) { animation-delay: 175.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1756) { animation-delay: 175.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1757) { animation-delay: 175.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1758) { animation-delay: 175.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1759) { animation-delay: 175.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1760) { animation-delay: 176s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1761) { animation-delay: 176.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1762) { animation-delay: 176.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1763) { animation-delay: 176.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1764) { animation-delay: 176.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1765) { animation-delay: 176.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1766) { animation-delay: 176.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1767) { animation-delay: 176.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1768) { animation-delay: 176.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1769) { animation-delay: 176.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1770) { animation-delay: 177s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1771) { animation-delay: 177.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1772) { animation-delay: 177.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1773) { animation-delay: 177.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1774) { animation-delay: 177.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1775) { animation-delay: 177.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1776) { animation-delay: 177.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1777) { animation-delay: 177.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1778) { animation-delay: 177.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1779) { animation-delay: 177.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1780) { animation-delay: 178s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1781) { animation-delay: 178.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1782) { animation-delay: 178.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1783) { animation-delay: 178.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1784) { animation-delay: 178.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1785) { animation-delay: 178.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1786) { animation-delay: 178.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1787) { animation-delay: 178.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1788) { animation-delay: 178.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1789) { animation-delay: 178.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1790) { animation-delay: 179s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1791) { animation-delay: 179.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1792) { animation-delay: 179.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1793) { animation-delay: 179.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1794) { animation-delay: 179.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1795) { animation-delay: 179.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1796) { animation-delay: 179.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1797) { animation-delay: 179.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1798) { animation-delay: 179.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1799) { animation-delay: 179.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1800) { animation-delay: 180s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1801) { animation-delay: 180.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1802) { animation-delay: 180.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1803) { animation-delay: 180.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1804) { animation-delay: 180.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1805) { animation-delay: 180.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1806) { animation-delay: 180.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1807) { animation-delay: 180.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1808) { animation-delay: 180.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1809) { animation-delay: 180.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1810) { animation-delay: 181s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1811) { animation-delay: 181.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1812) { animation-delay: 181.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1813) { animation-delay: 181.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1814) { animation-delay: 181.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1815) { animation-delay: 181.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1816) { animation-delay: 181.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1817) { animation-delay: 181.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1818) { animation-delay: 181.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1819) { animation-delay: 181.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1820) { animation-delay: 182s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1821) { animation-delay: 182.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1822) { animation-delay: 182.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1823) { animation-delay: 182.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1824) { animation-delay: 182.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1825) { animation-delay: 182.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1826) { animation-delay: 182.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1827) { animation-delay: 182.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1828) { animation-delay: 182.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1829) { animation-delay: 182.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1830) { animation-delay: 183s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1831) { animation-delay: 183.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1832) { animation-delay: 183.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1833) { animation-delay: 183.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1834) { animation-delay: 183.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1835) { animation-delay: 183.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1836) { animation-delay: 183.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1837) { animation-delay: 183.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1838) { animation-delay: 183.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1839) { animation-delay: 183.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1840) { animation-delay: 184s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1841) { animation-delay: 184.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1842) { animation-delay: 184.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1843) { animation-delay: 184.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1844) { animation-delay: 184.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1845) { animation-delay: 184.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1846) { animation-delay: 184.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1847) { animation-delay: 184.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1848) { animation-delay: 184.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1849) { animation-delay: 184.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1850) { animation-delay: 185s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1851) { animation-delay: 185.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1852) { animation-delay: 185.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1853) { animation-delay: 185.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1854) { animation-delay: 185.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1855) { animation-delay: 185.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1856) { animation-delay: 185.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1857) { animation-delay: 185.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1858) { animation-delay: 185.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1859) { animation-delay: 185.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1860) { animation-delay: 186s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1861) { animation-delay: 186.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1862) { animation-delay: 186.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1863) { animation-delay: 186.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1864) { animation-delay: 186.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1865) { animation-delay: 186.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1866) { animation-delay: 186.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1867) { animation-delay: 186.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1868) { animation-delay: 186.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1869) { animation-delay: 186.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1870) { animation-delay: 187s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1871) { animation-delay: 187.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1872) { animation-delay: 187.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1873) { animation-delay: 187.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1874) { animation-delay: 187.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1875) { animation-delay: 187.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1876) { animation-delay: 187.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1877) { animation-delay: 187.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1878) { animation-delay: 187.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1879) { animation-delay: 187.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1880) { animation-delay: 188s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1881) { animation-delay: 188.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1882) { animation-delay: 188.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1883) { animation-delay: 188.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1884) { animation-delay: 188.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1885) { animation-delay: 188.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1886) { animation-delay: 188.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1887) { animation-delay: 188.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1888) { animation-delay: 188.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1889) { animation-delay: 188.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1890) { animation-delay: 189s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1891) { animation-delay: 189.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1892) { animation-delay: 189.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1893) { animation-delay: 189.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1894) { animation-delay: 189.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1895) { animation-delay: 189.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1896) { animation-delay: 189.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1897) { animation-delay: 189.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1898) { animation-delay: 189.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1899) { animation-delay: 189.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1900) { animation-delay: 190s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1901) { animation-delay: 190.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1902) { animation-delay: 190.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1903) { animation-delay: 190.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1904) { animation-delay: 190.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1905) { animation-delay: 190.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1906) { animation-delay: 190.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1907) { animation-delay: 190.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1908) { animation-delay: 190.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1909) { animation-delay: 190.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1910) { animation-delay: 191s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1911) { animation-delay: 191.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1912) { animation-delay: 191.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1913) { animation-delay: 191.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1914) { animation-delay: 191.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1915) { animation-delay: 191.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1916) { animation-delay: 191.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1917) { animation-delay: 191.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1918) { animation-delay: 191.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1919) { animation-delay: 191.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1920) { animation-delay: 192s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1921) { animation-delay: 192.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1922) { animation-delay: 192.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1923) { animation-delay: 192.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1924) { animation-delay: 192.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1925) { animation-delay: 192.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1926) { animation-delay: 192.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1927) { animation-delay: 192.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1928) { animation-delay: 192.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1929) { animation-delay: 192.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1930) { animation-delay: 193s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1931) { animation-delay: 193.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1932) { animation-delay: 193.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1933) { animation-delay: 193.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1934) { animation-delay: 193.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1935) { animation-delay: 193.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1936) { animation-delay: 193.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1937) { animation-delay: 193.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1938) { animation-delay: 193.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1939) { animation-delay: 193.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1940) { animation-delay: 194s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1941) { animation-delay: 194.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1942) { animation-delay: 194.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1943) { animation-delay: 194.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1944) { animation-delay: 194.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1945) { animation-delay: 194.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1946) { animation-delay: 194.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1947) { animation-delay: 194.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1948) { animation-delay: 194.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1949) { animation-delay: 194.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1950) { animation-delay: 195s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1951) { animation-delay: 195.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1952) { animation-delay: 195.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1953) { animation-delay: 195.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1954) { animation-delay: 195.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1955) { animation-delay: 195.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1956) { animation-delay: 195.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1957) { animation-delay: 195.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1958) { animation-delay: 195.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1959) { animation-delay: 195.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1960) { animation-delay: 196s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1961) { animation-delay: 196.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1962) { animation-delay: 196.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1963) { animation-delay: 196.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1964) { animation-delay: 196.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1965) { animation-delay: 196.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1966) { animation-delay: 196.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1967) { animation-delay: 196.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1968) { animation-delay: 196.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1969) { animation-delay: 196.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1970) { animation-delay: 197s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1971) { animation-delay: 197.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1972) { animation-delay: 197.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1973) { animation-delay: 197.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1974) { animation-delay: 197.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1975) { animation-delay: 197.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1976) { animation-delay: 197.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1977) { animation-delay: 197.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1978) { animation-delay: 197.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1979) { animation-delay: 197.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1980) { animation-delay: 198s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1981) { animation-delay: 198.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1982) { animation-delay: 198.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1983) { animation-delay: 198.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1984) { animation-delay: 198.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1985) { animation-delay: 198.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1986) { animation-delay: 198.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1987) { animation-delay: 198.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1988) { animation-delay: 198.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1989) { animation-delay: 198.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1990) { animation-delay: 199s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1991) { animation-delay: 199.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1992) { animation-delay: 199.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1993) { animation-delay: 199.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1994) { animation-delay: 199.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1995) { animation-delay: 199.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1996) { animation-delay: 199.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1997) { animation-delay: 199.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1998) { animation-delay: 199.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(1999) { animation-delay: 199.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2000) { animation-delay: 200s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2001) { animation-delay: 200.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2002) { animation-delay: 200.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2003) { animation-delay: 200.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2004) { animation-delay: 200.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2005) { animation-delay: 200.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2006) { animation-delay: 200.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2007) { animation-delay: 200.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2008) { animation-delay: 200.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2009) { animation-delay: 200.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2010) { animation-delay: 201s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2011) { animation-delay: 201.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2012) { animation-delay: 201.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2013) { animation-delay: 201.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2014) { animation-delay: 201.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2015) { animation-delay: 201.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2016) { animation-delay: 201.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2017) { animation-delay: 201.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2018) { animation-delay: 201.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2019) { animation-delay: 201.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2020) { animation-delay: 202s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2021) { animation-delay: 202.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2022) { animation-delay: 202.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2023) { animation-delay: 202.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2024) { animation-delay: 202.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2025) { animation-delay: 202.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2026) { animation-delay: 202.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2027) { animation-delay: 202.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2028) { animation-delay: 202.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2029) { animation-delay: 202.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2030) { animation-delay: 203s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2031) { animation-delay: 203.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2032) { animation-delay: 203.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2033) { animation-delay: 203.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2034) { animation-delay: 203.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2035) { animation-delay: 203.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2036) { animation-delay: 203.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2037) { animation-delay: 203.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2038) { animation-delay: 203.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2039) { animation-delay: 203.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2040) { animation-delay: 204s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2041) { animation-delay: 204.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2042) { animation-delay: 204.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2043) { animation-delay: 204.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2044) { animation-delay: 204.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2045) { animation-delay: 204.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2046) { animation-delay: 204.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2047) { animation-delay: 204.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2048) { animation-delay: 204.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2049) { animation-delay: 204.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2050) { animation-delay: 205s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2051) { animation-delay: 205.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2052) { animation-delay: 205.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2053) { animation-delay: 205.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2054) { animation-delay: 205.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2055) { animation-delay: 205.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2056) { animation-delay: 205.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2057) { animation-delay: 205.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2058) { animation-delay: 205.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2059) { animation-delay: 205.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2060) { animation-delay: 206s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2061) { animation-delay: 206.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2062) { animation-delay: 206.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2063) { animation-delay: 206.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2064) { animation-delay: 206.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2065) { animation-delay: 206.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2066) { animation-delay: 206.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2067) { animation-delay: 206.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2068) { animation-delay: 206.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2069) { animation-delay: 206.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2070) { animation-delay: 207s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2071) { animation-delay: 207.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2072) { animation-delay: 207.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2073) { animation-delay: 207.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2074) { animation-delay: 207.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2075) { animation-delay: 207.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2076) { animation-delay: 207.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2077) { animation-delay: 207.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2078) { animation-delay: 207.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2079) { animation-delay: 207.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2080) { animation-delay: 208s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2081) { animation-delay: 208.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2082) { animation-delay: 208.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2083) { animation-delay: 208.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2084) { animation-delay: 208.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2085) { animation-delay: 208.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2086) { animation-delay: 208.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2087) { animation-delay: 208.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2088) { animation-delay: 208.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2089) { animation-delay: 208.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2090) { animation-delay: 209s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2091) { animation-delay: 209.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2092) { animation-delay: 209.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2093) { animation-delay: 209.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2094) { animation-delay: 209.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2095) { animation-delay: 209.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2096) { animation-delay: 209.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2097) { animation-delay: 209.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2098) { animation-delay: 209.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2099) { animation-delay: 209.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2100) { animation-delay: 210s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2101) { animation-delay: 210.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2102) { animation-delay: 210.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2103) { animation-delay: 210.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2104) { animation-delay: 210.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2105) { animation-delay: 210.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2106) { animation-delay: 210.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2107) { animation-delay: 210.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2108) { animation-delay: 210.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2109) { animation-delay: 210.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2110) { animation-delay: 211s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2111) { animation-delay: 211.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2112) { animation-delay: 211.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2113) { animation-delay: 211.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2114) { animation-delay: 211.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2115) { animation-delay: 211.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2116) { animation-delay: 211.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2117) { animation-delay: 211.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2118) { animation-delay: 211.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2119) { animation-delay: 211.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2120) { animation-delay: 212s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2121) { animation-delay: 212.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2122) { animation-delay: 212.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2123) { animation-delay: 212.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2124) { animation-delay: 212.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2125) { animation-delay: 212.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2126) { animation-delay: 212.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2127) { animation-delay: 212.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2128) { animation-delay: 212.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2129) { animation-delay: 212.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2130) { animation-delay: 213s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2131) { animation-delay: 213.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2132) { animation-delay: 213.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2133) { animation-delay: 213.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2134) { animation-delay: 213.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2135) { animation-delay: 213.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2136) { animation-delay: 213.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2137) { animation-delay: 213.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2138) { animation-delay: 213.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2139) { animation-delay: 213.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2140) { animation-delay: 214s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2141) { animation-delay: 214.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2142) { animation-delay: 214.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2143) { animation-delay: 214.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2144) { animation-delay: 214.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2145) { animation-delay: 214.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2146) { animation-delay: 214.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2147) { animation-delay: 214.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2148) { animation-delay: 214.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2149) { animation-delay: 214.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2150) { animation-delay: 215s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2151) { animation-delay: 215.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2152) { animation-delay: 215.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2153) { animation-delay: 215.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2154) { animation-delay: 215.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2155) { animation-delay: 215.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2156) { animation-delay: 215.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2157) { animation-delay: 215.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2158) { animation-delay: 215.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2159) { animation-delay: 215.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2160) { animation-delay: 216s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2161) { animation-delay: 216.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2162) { animation-delay: 216.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2163) { animation-delay: 216.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2164) { animation-delay: 216.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2165) { animation-delay: 216.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2166) { animation-delay: 216.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2167) { animation-delay: 216.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2168) { animation-delay: 216.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2169) { animation-delay: 216.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2170) { animation-delay: 217s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2171) { animation-delay: 217.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2172) { animation-delay: 217.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2173) { animation-delay: 217.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2174) { animation-delay: 217.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2175) { animation-delay: 217.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2176) { animation-delay: 217.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2177) { animation-delay: 217.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2178) { animation-delay: 217.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2179) { animation-delay: 217.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2180) { animation-delay: 218s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2181) { animation-delay: 218.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2182) { animation-delay: 218.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2183) { animation-delay: 218.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2184) { animation-delay: 218.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2185) { animation-delay: 218.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2186) { animation-delay: 218.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2187) { animation-delay: 218.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2188) { animation-delay: 218.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2189) { animation-delay: 218.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2190) { animation-delay: 219s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2191) { animation-delay: 219.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2192) { animation-delay: 219.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2193) { animation-delay: 219.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2194) { animation-delay: 219.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2195) { animation-delay: 219.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2196) { animation-delay: 219.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2197) { animation-delay: 219.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2198) { animation-delay: 219.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2199) { animation-delay: 219.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2200) { animation-delay: 220s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2201) { animation-delay: 220.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2202) { animation-delay: 220.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2203) { animation-delay: 220.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2204) { animation-delay: 220.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2205) { animation-delay: 220.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2206) { animation-delay: 220.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2207) { animation-delay: 220.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2208) { animation-delay: 220.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2209) { animation-delay: 220.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2210) { animation-delay: 221s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2211) { animation-delay: 221.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2212) { animation-delay: 221.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2213) { animation-delay: 221.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2214) { animation-delay: 221.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2215) { animation-delay: 221.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2216) { animation-delay: 221.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2217) { animation-delay: 221.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2218) { animation-delay: 221.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2219) { animation-delay: 221.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2220) { animation-delay: 222s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2221) { animation-delay: 222.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2222) { animation-delay: 222.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2223) { animation-delay: 222.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2224) { animation-delay: 222.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2225) { animation-delay: 222.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2226) { animation-delay: 222.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2227) { animation-delay: 222.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2228) { animation-delay: 222.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2229) { animation-delay: 222.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2230) { animation-delay: 223s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2231) { animation-delay: 223.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2232) { animation-delay: 223.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2233) { animation-delay: 223.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2234) { animation-delay: 223.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2235) { animation-delay: 223.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2236) { animation-delay: 223.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2237) { animation-delay: 223.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2238) { animation-delay: 223.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2239) { animation-delay: 223.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2240) { animation-delay: 224s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2241) { animation-delay: 224.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2242) { animation-delay: 224.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2243) { animation-delay: 224.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2244) { animation-delay: 224.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2245) { animation-delay: 224.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2246) { animation-delay: 224.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2247) { animation-delay: 224.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2248) { animation-delay: 224.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2249) { animation-delay: 224.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2250) { animation-delay: 225s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2251) { animation-delay: 225.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2252) { animation-delay: 225.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2253) { animation-delay: 225.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2254) { animation-delay: 225.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2255) { animation-delay: 225.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2256) { animation-delay: 225.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2257) { animation-delay: 225.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2258) { animation-delay: 225.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2259) { animation-delay: 225.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2260) { animation-delay: 226s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2261) { animation-delay: 226.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2262) { animation-delay: 226.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2263) { animation-delay: 226.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2264) { animation-delay: 226.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2265) { animation-delay: 226.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2266) { animation-delay: 226.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2267) { animation-delay: 226.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2268) { animation-delay: 226.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2269) { animation-delay: 226.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2270) { animation-delay: 227s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2271) { animation-delay: 227.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2272) { animation-delay: 227.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2273) { animation-delay: 227.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2274) { animation-delay: 227.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2275) { animation-delay: 227.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2276) { animation-delay: 227.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2277) { animation-delay: 227.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2278) { animation-delay: 227.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2279) { animation-delay: 227.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2280) { animation-delay: 228s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2281) { animation-delay: 228.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2282) { animation-delay: 228.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2283) { animation-delay: 228.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2284) { animation-delay: 228.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2285) { animation-delay: 228.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2286) { animation-delay: 228.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2287) { animation-delay: 228.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2288) { animation-delay: 228.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2289) { animation-delay: 228.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2290) { animation-delay: 229s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2291) { animation-delay: 229.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2292) { animation-delay: 229.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2293) { animation-delay: 229.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2294) { animation-delay: 229.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2295) { animation-delay: 229.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2296) { animation-delay: 229.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2297) { animation-delay: 229.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2298) { animation-delay: 229.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2299) { animation-delay: 229.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2300) { animation-delay: 230s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2301) { animation-delay: 230.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2302) { animation-delay: 230.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2303) { animation-delay: 230.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2304) { animation-delay: 230.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2305) { animation-delay: 230.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2306) { animation-delay: 230.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2307) { animation-delay: 230.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2308) { animation-delay: 230.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2309) { animation-delay: 230.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2310) { animation-delay: 231s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2311) { animation-delay: 231.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2312) { animation-delay: 231.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2313) { animation-delay: 231.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2314) { animation-delay: 231.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2315) { animation-delay: 231.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2316) { animation-delay: 231.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2317) { animation-delay: 231.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2318) { animation-delay: 231.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2319) { animation-delay: 231.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2320) { animation-delay: 232s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2321) { animation-delay: 232.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2322) { animation-delay: 232.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2323) { animation-delay: 232.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2324) { animation-delay: 232.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2325) { animation-delay: 232.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2326) { animation-delay: 232.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2327) { animation-delay: 232.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2328) { animation-delay: 232.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2329) { animation-delay: 232.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2330) { animation-delay: 233s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2331) { animation-delay: 233.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2332) { animation-delay: 233.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2333) { animation-delay: 233.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2334) { animation-delay: 233.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2335) { animation-delay: 233.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2336) { animation-delay: 233.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2337) { animation-delay: 233.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2338) { animation-delay: 233.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2339) { animation-delay: 233.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2340) { animation-delay: 234s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2341) { animation-delay: 234.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2342) { animation-delay: 234.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2343) { animation-delay: 234.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2344) { animation-delay: 234.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2345) { animation-delay: 234.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2346) { animation-delay: 234.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2347) { animation-delay: 234.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2348) { animation-delay: 234.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2349) { animation-delay: 234.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2350) { animation-delay: 235s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2351) { animation-delay: 235.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2352) { animation-delay: 235.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2353) { animation-delay: 235.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2354) { animation-delay: 235.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2355) { animation-delay: 235.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2356) { animation-delay: 235.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2357) { animation-delay: 235.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2358) { animation-delay: 235.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2359) { animation-delay: 235.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2360) { animation-delay: 236s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2361) { animation-delay: 236.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2362) { animation-delay: 236.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2363) { animation-delay: 236.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2364) { animation-delay: 236.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2365) { animation-delay: 236.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2366) { animation-delay: 236.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2367) { animation-delay: 236.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2368) { animation-delay: 236.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2369) { animation-delay: 236.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2370) { animation-delay: 237s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2371) { animation-delay: 237.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2372) { animation-delay: 237.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2373) { animation-delay: 237.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2374) { animation-delay: 237.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2375) { animation-delay: 237.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2376) { animation-delay: 237.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2377) { animation-delay: 237.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2378) { animation-delay: 237.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2379) { animation-delay: 237.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2380) { animation-delay: 238s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2381) { animation-delay: 238.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2382) { animation-delay: 238.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2383) { animation-delay: 238.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2384) { animation-delay: 238.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2385) { animation-delay: 238.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2386) { animation-delay: 238.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2387) { animation-delay: 238.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2388) { animation-delay: 238.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2389) { animation-delay: 238.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2390) { animation-delay: 239s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2391) { animation-delay: 239.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2392) { animation-delay: 239.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2393) { animation-delay: 239.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2394) { animation-delay: 239.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2395) { animation-delay: 239.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2396) { animation-delay: 239.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2397) { animation-delay: 239.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2398) { animation-delay: 239.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2399) { animation-delay: 239.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2400) { animation-delay: 240s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2401) { animation-delay: 240.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2402) { animation-delay: 240.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2403) { animation-delay: 240.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2404) { animation-delay: 240.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2405) { animation-delay: 240.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2406) { animation-delay: 240.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2407) { animation-delay: 240.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2408) { animation-delay: 240.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2409) { animation-delay: 240.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2410) { animation-delay: 241s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2411) { animation-delay: 241.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2412) { animation-delay: 241.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2413) { animation-delay: 241.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2414) { animation-delay: 241.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2415) { animation-delay: 241.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2416) { animation-delay: 241.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2417) { animation-delay: 241.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2418) { animation-delay: 241.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2419) { animation-delay: 241.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2420) { animation-delay: 242s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2421) { animation-delay: 242.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2422) { animation-delay: 242.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2423) { animation-delay: 242.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2424) { animation-delay: 242.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2425) { animation-delay: 242.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2426) { animation-delay: 242.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2427) { animation-delay: 242.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2428) { animation-delay: 242.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2429) { animation-delay: 242.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2430) { animation-delay: 243s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2431) { animation-delay: 243.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2432) { animation-delay: 243.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2433) { animation-delay: 243.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2434) { animation-delay: 243.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2435) { animation-delay: 243.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2436) { animation-delay: 243.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2437) { animation-delay: 243.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2438) { animation-delay: 243.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2439) { animation-delay: 243.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2440) { animation-delay: 244s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2441) { animation-delay: 244.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2442) { animation-delay: 244.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2443) { animation-delay: 244.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2444) { animation-delay: 244.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2445) { animation-delay: 244.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2446) { animation-delay: 244.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2447) { animation-delay: 244.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2448) { animation-delay: 244.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2449) { animation-delay: 244.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2450) { animation-delay: 245s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2451) { animation-delay: 245.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2452) { animation-delay: 245.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2453) { animation-delay: 245.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2454) { animation-delay: 245.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2455) { animation-delay: 245.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2456) { animation-delay: 245.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2457) { animation-delay: 245.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2458) { animation-delay: 245.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2459) { animation-delay: 245.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2460) { animation-delay: 246s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2461) { animation-delay: 246.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2462) { animation-delay: 246.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2463) { animation-delay: 246.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2464) { animation-delay: 246.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2465) { animation-delay: 246.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2466) { animation-delay: 246.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2467) { animation-delay: 246.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2468) { animation-delay: 246.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2469) { animation-delay: 246.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2470) { animation-delay: 247s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2471) { animation-delay: 247.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2472) { animation-delay: 247.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2473) { animation-delay: 247.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2474) { animation-delay: 247.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2475) { animation-delay: 247.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2476) { animation-delay: 247.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2477) { animation-delay: 247.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2478) { animation-delay: 247.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2479) { animation-delay: 247.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2480) { animation-delay: 248s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2481) { animation-delay: 248.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2482) { animation-delay: 248.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2483) { animation-delay: 248.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2484) { animation-delay: 248.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2485) { animation-delay: 248.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2486) { animation-delay: 248.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2487) { animation-delay: 248.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2488) { animation-delay: 248.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2489) { animation-delay: 248.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2490) { animation-delay: 249s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2491) { animation-delay: 249.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2492) { animation-delay: 249.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2493) { animation-delay: 249.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2494) { animation-delay: 249.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2495) { animation-delay: 249.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2496) { animation-delay: 249.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2497) { animation-delay: 249.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2498) { animation-delay: 249.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2499) { animation-delay: 249.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2500) { animation-delay: 250s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2501) { animation-delay: 250.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2502) { animation-delay: 250.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2503) { animation-delay: 250.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2504) { animation-delay: 250.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2505) { animation-delay: 250.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2506) { animation-delay: 250.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2507) { animation-delay: 250.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2508) { animation-delay: 250.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2509) { animation-delay: 250.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2510) { animation-delay: 251s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2511) { animation-delay: 251.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2512) { animation-delay: 251.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2513) { animation-delay: 251.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2514) { animation-delay: 251.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2515) { animation-delay: 251.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2516) { animation-delay: 251.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2517) { animation-delay: 251.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2518) { animation-delay: 251.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2519) { animation-delay: 251.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2520) { animation-delay: 252s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2521) { animation-delay: 252.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2522) { animation-delay: 252.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2523) { animation-delay: 252.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2524) { animation-delay: 252.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2525) { animation-delay: 252.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2526) { animation-delay: 252.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2527) { animation-delay: 252.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2528) { animation-delay: 252.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2529) { animation-delay: 252.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2530) { animation-delay: 253s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2531) { animation-delay: 253.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2532) { animation-delay: 253.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2533) { animation-delay: 253.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2534) { animation-delay: 253.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2535) { animation-delay: 253.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2536) { animation-delay: 253.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2537) { animation-delay: 253.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2538) { animation-delay: 253.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2539) { animation-delay: 253.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2540) { animation-delay: 254s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2541) { animation-delay: 254.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2542) { animation-delay: 254.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2543) { animation-delay: 254.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2544) { animation-delay: 254.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2545) { animation-delay: 254.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2546) { animation-delay: 254.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2547) { animation-delay: 254.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2548) { animation-delay: 254.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2549) { animation-delay: 254.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2550) { animation-delay: 255s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2551) { animation-delay: 255.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2552) { animation-delay: 255.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2553) { animation-delay: 255.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2554) { animation-delay: 255.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2555) { animation-delay: 255.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2556) { animation-delay: 255.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2557) { animation-delay: 255.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2558) { animation-delay: 255.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2559) { animation-delay: 255.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2560) { animation-delay: 256s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2561) { animation-delay: 256.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2562) { animation-delay: 256.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2563) { animation-delay: 256.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2564) { animation-delay: 256.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2565) { animation-delay: 256.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2566) { animation-delay: 256.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2567) { animation-delay: 256.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2568) { animation-delay: 256.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2569) { animation-delay: 256.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2570) { animation-delay: 257s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2571) { animation-delay: 257.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2572) { animation-delay: 257.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2573) { animation-delay: 257.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2574) { animation-delay: 257.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2575) { animation-delay: 257.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2576) { animation-delay: 257.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2577) { animation-delay: 257.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2578) { animation-delay: 257.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2579) { animation-delay: 257.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2580) { animation-delay: 258s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2581) { animation-delay: 258.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2582) { animation-delay: 258.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2583) { animation-delay: 258.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2584) { animation-delay: 258.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2585) { animation-delay: 258.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2586) { animation-delay: 258.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2587) { animation-delay: 258.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2588) { animation-delay: 258.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2589) { animation-delay: 258.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2590) { animation-delay: 259s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2591) { animation-delay: 259.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2592) { animation-delay: 259.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2593) { animation-delay: 259.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2594) { animation-delay: 259.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2595) { animation-delay: 259.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2596) { animation-delay: 259.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2597) { animation-delay: 259.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2598) { animation-delay: 259.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2599) { animation-delay: 259.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2600) { animation-delay: 260s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2601) { animation-delay: 260.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2602) { animation-delay: 260.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2603) { animation-delay: 260.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2604) { animation-delay: 260.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2605) { animation-delay: 260.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2606) { animation-delay: 260.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2607) { animation-delay: 260.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2608) { animation-delay: 260.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2609) { animation-delay: 260.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2610) { animation-delay: 261s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2611) { animation-delay: 261.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2612) { animation-delay: 261.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2613) { animation-delay: 261.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2614) { animation-delay: 261.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2615) { animation-delay: 261.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2616) { animation-delay: 261.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2617) { animation-delay: 261.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2618) { animation-delay: 261.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2619) { animation-delay: 261.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2620) { animation-delay: 262s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2621) { animation-delay: 262.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2622) { animation-delay: 262.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2623) { animation-delay: 262.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2624) { animation-delay: 262.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2625) { animation-delay: 262.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2626) { animation-delay: 262.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2627) { animation-delay: 262.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2628) { animation-delay: 262.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2629) { animation-delay: 262.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2630) { animation-delay: 263s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2631) { animation-delay: 263.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2632) { animation-delay: 263.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2633) { animation-delay: 263.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2634) { animation-delay: 263.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2635) { animation-delay: 263.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2636) { animation-delay: 263.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2637) { animation-delay: 263.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2638) { animation-delay: 263.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2639) { animation-delay: 263.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2640) { animation-delay: 264s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2641) { animation-delay: 264.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2642) { animation-delay: 264.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2643) { animation-delay: 264.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2644) { animation-delay: 264.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2645) { animation-delay: 264.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2646) { animation-delay: 264.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2647) { animation-delay: 264.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2648) { animation-delay: 264.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2649) { animation-delay: 264.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2650) { animation-delay: 265s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2651) { animation-delay: 265.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2652) { animation-delay: 265.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2653) { animation-delay: 265.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2654) { animation-delay: 265.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2655) { animation-delay: 265.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2656) { animation-delay: 265.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2657) { animation-delay: 265.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2658) { animation-delay: 265.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2659) { animation-delay: 265.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2660) { animation-delay: 266s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2661) { animation-delay: 266.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2662) { animation-delay: 266.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2663) { animation-delay: 266.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2664) { animation-delay: 266.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2665) { animation-delay: 266.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2666) { animation-delay: 266.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2667) { animation-delay: 266.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2668) { animation-delay: 266.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2669) { animation-delay: 266.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2670) { animation-delay: 267s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2671) { animation-delay: 267.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2672) { animation-delay: 267.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2673) { animation-delay: 267.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2674) { animation-delay: 267.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2675) { animation-delay: 267.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2676) { animation-delay: 267.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2677) { animation-delay: 267.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2678) { animation-delay: 267.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2679) { animation-delay: 267.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2680) { animation-delay: 268s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2681) { animation-delay: 268.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2682) { animation-delay: 268.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2683) { animation-delay: 268.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2684) { animation-delay: 268.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2685) { animation-delay: 268.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2686) { animation-delay: 268.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2687) { animation-delay: 268.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2688) { animation-delay: 268.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2689) { animation-delay: 268.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2690) { animation-delay: 269s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2691) { animation-delay: 269.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2692) { animation-delay: 269.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2693) { animation-delay: 269.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2694) { animation-delay: 269.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2695) { animation-delay: 269.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2696) { animation-delay: 269.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2697) { animation-delay: 269.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2698) { animation-delay: 269.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2699) { animation-delay: 269.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2700) { animation-delay: 270s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2701) { animation-delay: 270.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2702) { animation-delay: 270.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2703) { animation-delay: 270.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2704) { animation-delay: 270.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2705) { animation-delay: 270.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2706) { animation-delay: 270.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2707) { animation-delay: 270.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2708) { animation-delay: 270.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2709) { animation-delay: 270.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2710) { animation-delay: 271s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2711) { animation-delay: 271.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2712) { animation-delay: 271.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2713) { animation-delay: 271.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2714) { animation-delay: 271.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2715) { animation-delay: 271.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2716) { animation-delay: 271.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2717) { animation-delay: 271.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2718) { animation-delay: 271.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2719) { animation-delay: 271.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2720) { animation-delay: 272s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2721) { animation-delay: 272.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2722) { animation-delay: 272.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2723) { animation-delay: 272.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2724) { animation-delay: 272.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2725) { animation-delay: 272.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2726) { animation-delay: 272.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2727) { animation-delay: 272.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2728) { animation-delay: 272.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2729) { animation-delay: 272.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2730) { animation-delay: 273s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2731) { animation-delay: 273.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2732) { animation-delay: 273.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2733) { animation-delay: 273.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2734) { animation-delay: 273.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2735) { animation-delay: 273.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2736) { animation-delay: 273.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2737) { animation-delay: 273.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2738) { animation-delay: 273.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2739) { animation-delay: 273.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2740) { animation-delay: 274s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2741) { animation-delay: 274.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2742) { animation-delay: 274.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2743) { animation-delay: 274.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2744) { animation-delay: 274.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2745) { animation-delay: 274.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2746) { animation-delay: 274.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2747) { animation-delay: 274.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2748) { animation-delay: 274.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2749) { animation-delay: 274.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2750) { animation-delay: 275s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2751) { animation-delay: 275.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2752) { animation-delay: 275.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2753) { animation-delay: 275.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2754) { animation-delay: 275.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2755) { animation-delay: 275.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2756) { animation-delay: 275.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2757) { animation-delay: 275.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2758) { animation-delay: 275.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2759) { animation-delay: 275.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2760) { animation-delay: 276s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2761) { animation-delay: 276.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2762) { animation-delay: 276.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2763) { animation-delay: 276.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2764) { animation-delay: 276.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2765) { animation-delay: 276.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2766) { animation-delay: 276.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2767) { animation-delay: 276.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2768) { animation-delay: 276.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2769) { animation-delay: 276.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2770) { animation-delay: 277s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2771) { animation-delay: 277.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2772) { animation-delay: 277.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2773) { animation-delay: 277.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2774) { animation-delay: 277.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2775) { animation-delay: 277.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2776) { animation-delay: 277.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2777) { animation-delay: 277.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2778) { animation-delay: 277.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2779) { animation-delay: 277.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2780) { animation-delay: 278s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2781) { animation-delay: 278.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2782) { animation-delay: 278.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2783) { animation-delay: 278.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2784) { animation-delay: 278.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2785) { animation-delay: 278.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2786) { animation-delay: 278.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2787) { animation-delay: 278.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2788) { animation-delay: 278.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2789) { animation-delay: 278.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2790) { animation-delay: 279s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2791) { animation-delay: 279.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2792) { animation-delay: 279.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2793) { animation-delay: 279.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2794) { animation-delay: 279.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2795) { animation-delay: 279.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2796) { animation-delay: 279.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2797) { animation-delay: 279.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2798) { animation-delay: 279.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2799) { animation-delay: 279.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2800) { animation-delay: 280s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2801) { animation-delay: 280.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2802) { animation-delay: 280.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2803) { animation-delay: 280.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2804) { animation-delay: 280.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2805) { animation-delay: 280.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2806) { animation-delay: 280.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2807) { animation-delay: 280.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2808) { animation-delay: 280.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2809) { animation-delay: 280.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2810) { animation-delay: 281s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2811) { animation-delay: 281.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2812) { animation-delay: 281.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2813) { animation-delay: 281.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2814) { animation-delay: 281.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2815) { animation-delay: 281.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2816) { animation-delay: 281.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2817) { animation-delay: 281.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2818) { animation-delay: 281.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2819) { animation-delay: 281.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2820) { animation-delay: 282s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2821) { animation-delay: 282.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2822) { animation-delay: 282.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2823) { animation-delay: 282.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2824) { animation-delay: 282.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2825) { animation-delay: 282.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2826) { animation-delay: 282.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2827) { animation-delay: 282.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2828) { animation-delay: 282.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2829) { animation-delay: 282.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2830) { animation-delay: 283s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2831) { animation-delay: 283.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2832) { animation-delay: 283.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2833) { animation-delay: 283.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2834) { animation-delay: 283.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2835) { animation-delay: 283.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2836) { animation-delay: 283.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2837) { animation-delay: 283.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2838) { animation-delay: 283.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2839) { animation-delay: 283.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2840) { animation-delay: 284s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2841) { animation-delay: 284.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2842) { animation-delay: 284.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2843) { animation-delay: 284.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2844) { animation-delay: 284.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2845) { animation-delay: 284.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2846) { animation-delay: 284.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2847) { animation-delay: 284.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2848) { animation-delay: 284.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2849) { animation-delay: 284.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2850) { animation-delay: 285s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2851) { animation-delay: 285.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2852) { animation-delay: 285.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2853) { animation-delay: 285.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2854) { animation-delay: 285.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2855) { animation-delay: 285.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2856) { animation-delay: 285.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2857) { animation-delay: 285.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2858) { animation-delay: 285.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2859) { animation-delay: 285.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2860) { animation-delay: 286s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2861) { animation-delay: 286.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2862) { animation-delay: 286.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2863) { animation-delay: 286.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2864) { animation-delay: 286.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2865) { animation-delay: 286.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2866) { animation-delay: 286.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2867) { animation-delay: 286.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2868) { animation-delay: 286.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2869) { animation-delay: 286.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2870) { animation-delay: 287s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2871) { animation-delay: 287.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2872) { animation-delay: 287.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2873) { animation-delay: 287.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2874) { animation-delay: 287.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2875) { animation-delay: 287.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2876) { animation-delay: 287.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2877) { animation-delay: 287.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2878) { animation-delay: 287.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2879) { animation-delay: 287.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2880) { animation-delay: 288s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2881) { animation-delay: 288.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2882) { animation-delay: 288.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2883) { animation-delay: 288.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2884) { animation-delay: 288.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2885) { animation-delay: 288.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2886) { animation-delay: 288.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2887) { animation-delay: 288.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2888) { animation-delay: 288.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2889) { animation-delay: 288.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2890) { animation-delay: 289s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2891) { animation-delay: 289.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2892) { animation-delay: 289.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2893) { animation-delay: 289.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2894) { animation-delay: 289.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2895) { animation-delay: 289.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2896) { animation-delay: 289.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2897) { animation-delay: 289.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2898) { animation-delay: 289.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2899) { animation-delay: 289.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2900) { animation-delay: 290s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2901) { animation-delay: 290.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2902) { animation-delay: 290.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2903) { animation-delay: 290.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2904) { animation-delay: 290.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2905) { animation-delay: 290.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2906) { animation-delay: 290.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2907) { animation-delay: 290.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2908) { animation-delay: 290.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2909) { animation-delay: 290.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2910) { animation-delay: 291s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2911) { animation-delay: 291.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2912) { animation-delay: 291.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2913) { animation-delay: 291.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2914) { animation-delay: 291.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2915) { animation-delay: 291.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2916) { animation-delay: 291.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2917) { animation-delay: 291.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2918) { animation-delay: 291.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2919) { animation-delay: 291.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2920) { animation-delay: 292s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2921) { animation-delay: 292.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2922) { animation-delay: 292.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2923) { animation-delay: 292.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2924) { animation-delay: 292.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2925) { animation-delay: 292.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2926) { animation-delay: 292.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2927) { animation-delay: 292.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2928) { animation-delay: 292.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2929) { animation-delay: 292.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2930) { animation-delay: 293s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2931) { animation-delay: 293.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2932) { animation-delay: 293.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2933) { animation-delay: 293.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2934) { animation-delay: 293.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2935) { animation-delay: 293.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2936) { animation-delay: 293.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2937) { animation-delay: 293.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2938) { animation-delay: 293.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2939) { animation-delay: 293.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2940) { animation-delay: 294s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2941) { animation-delay: 294.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2942) { animation-delay: 294.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2943) { animation-delay: 294.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2944) { animation-delay: 294.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2945) { animation-delay: 294.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2946) { animation-delay: 294.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2947) { animation-delay: 294.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2948) { animation-delay: 294.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2949) { animation-delay: 294.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2950) { animation-delay: 295s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2951) { animation-delay: 295.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2952) { animation-delay: 295.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2953) { animation-delay: 295.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2954) { animation-delay: 295.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2955) { animation-delay: 295.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2956) { animation-delay: 295.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2957) { animation-delay: 295.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2958) { animation-delay: 295.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2959) { animation-delay: 295.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2960) { animation-delay: 296s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2961) { animation-delay: 296.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2962) { animation-delay: 296.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2963) { animation-delay: 296.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2964) { animation-delay: 296.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2965) { animation-delay: 296.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2966) { animation-delay: 296.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2967) { animation-delay: 296.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2968) { animation-delay: 296.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2969) { animation-delay: 296.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2970) { animation-delay: 297s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2971) { animation-delay: 297.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2972) { animation-delay: 297.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2973) { animation-delay: 297.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2974) { animation-delay: 297.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2975) { animation-delay: 297.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2976) { animation-delay: 297.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2977) { animation-delay: 297.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2978) { animation-delay: 297.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2979) { animation-delay: 297.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2980) { animation-delay: 298s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2981) { animation-delay: 298.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2982) { animation-delay: 298.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2983) { animation-delay: 298.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2984) { animation-delay: 298.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2985) { animation-delay: 298.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2986) { animation-delay: 298.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2987) { animation-delay: 298.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2988) { animation-delay: 298.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2989) { animation-delay: 298.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2990) { animation-delay: 299s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2991) { animation-delay: 299.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2992) { animation-delay: 299.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2993) { animation-delay: 299.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2994) { animation-delay: 299.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2995) { animation-delay: 299.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2996) { animation-delay: 299.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2997) { animation-delay: 299.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2998) { animation-delay: 299.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(2999) { animation-delay: 299.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3000) { animation-delay: 300s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3001) { animation-delay: 300.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3002) { animation-delay: 300.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3003) { animation-delay: 300.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3004) { animation-delay: 300.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3005) { animation-delay: 300.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3006) { animation-delay: 300.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3007) { animation-delay: 300.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3008) { animation-delay: 300.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3009) { animation-delay: 300.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3010) { animation-delay: 301s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3011) { animation-delay: 301.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3012) { animation-delay: 301.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3013) { animation-delay: 301.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3014) { animation-delay: 301.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3015) { animation-delay: 301.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3016) { animation-delay: 301.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3017) { animation-delay: 301.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3018) { animation-delay: 301.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3019) { animation-delay: 301.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3020) { animation-delay: 302s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3021) { animation-delay: 302.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3022) { animation-delay: 302.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3023) { animation-delay: 302.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3024) { animation-delay: 302.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3025) { animation-delay: 302.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3026) { animation-delay: 302.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3027) { animation-delay: 302.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3028) { animation-delay: 302.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3029) { animation-delay: 302.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3030) { animation-delay: 303s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3031) { animation-delay: 303.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3032) { animation-delay: 303.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3033) { animation-delay: 303.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3034) { animation-delay: 303.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3035) { animation-delay: 303.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3036) { animation-delay: 303.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3037) { animation-delay: 303.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3038) { animation-delay: 303.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3039) { animation-delay: 303.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3040) { animation-delay: 304s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3041) { animation-delay: 304.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3042) { animation-delay: 304.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3043) { animation-delay: 304.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3044) { animation-delay: 304.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3045) { animation-delay: 304.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3046) { animation-delay: 304.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3047) { animation-delay: 304.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3048) { animation-delay: 304.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3049) { animation-delay: 304.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3050) { animation-delay: 305s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3051) { animation-delay: 305.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3052) { animation-delay: 305.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3053) { animation-delay: 305.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3054) { animation-delay: 305.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3055) { animation-delay: 305.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3056) { animation-delay: 305.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3057) { animation-delay: 305.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3058) { animation-delay: 305.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3059) { animation-delay: 305.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3060) { animation-delay: 306s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3061) { animation-delay: 306.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3062) { animation-delay: 306.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3063) { animation-delay: 306.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3064) { animation-delay: 306.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3065) { animation-delay: 306.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3066) { animation-delay: 306.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3067) { animation-delay: 306.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3068) { animation-delay: 306.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3069) { animation-delay: 306.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3070) { animation-delay: 307s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3071) { animation-delay: 307.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3072) { animation-delay: 307.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3073) { animation-delay: 307.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3074) { animation-delay: 307.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3075) { animation-delay: 307.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3076) { animation-delay: 307.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3077) { animation-delay: 307.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3078) { animation-delay: 307.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3079) { animation-delay: 307.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3080) { animation-delay: 308s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3081) { animation-delay: 308.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3082) { animation-delay: 308.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3083) { animation-delay: 308.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3084) { animation-delay: 308.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3085) { animation-delay: 308.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3086) { animation-delay: 308.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3087) { animation-delay: 308.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3088) { animation-delay: 308.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3089) { animation-delay: 308.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3090) { animation-delay: 309s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3091) { animation-delay: 309.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3092) { animation-delay: 309.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3093) { animation-delay: 309.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3094) { animation-delay: 309.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3095) { animation-delay: 309.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3096) { animation-delay: 309.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3097) { animation-delay: 309.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3098) { animation-delay: 309.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3099) { animation-delay: 309.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3100) { animation-delay: 310s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3101) { animation-delay: 310.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3102) { animation-delay: 310.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3103) { animation-delay: 310.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3104) { animation-delay: 310.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3105) { animation-delay: 310.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3106) { animation-delay: 310.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3107) { animation-delay: 310.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3108) { animation-delay: 310.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3109) { animation-delay: 310.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3110) { animation-delay: 311s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3111) { animation-delay: 311.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3112) { animation-delay: 311.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3113) { animation-delay: 311.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3114) { animation-delay: 311.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3115) { animation-delay: 311.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3116) { animation-delay: 311.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3117) { animation-delay: 311.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3118) { animation-delay: 311.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3119) { animation-delay: 311.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3120) { animation-delay: 312s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3121) { animation-delay: 312.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3122) { animation-delay: 312.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3123) { animation-delay: 312.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3124) { animation-delay: 312.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3125) { animation-delay: 312.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3126) { animation-delay: 312.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3127) { animation-delay: 312.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3128) { animation-delay: 312.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3129) { animation-delay: 312.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3130) { animation-delay: 313s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3131) { animation-delay: 313.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3132) { animation-delay: 313.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3133) { animation-delay: 313.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3134) { animation-delay: 313.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3135) { animation-delay: 313.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3136) { animation-delay: 313.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3137) { animation-delay: 313.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3138) { animation-delay: 313.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3139) { animation-delay: 313.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3140) { animation-delay: 314s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3141) { animation-delay: 314.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3142) { animation-delay: 314.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3143) { animation-delay: 314.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3144) { animation-delay: 314.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3145) { animation-delay: 314.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3146) { animation-delay: 314.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3147) { animation-delay: 314.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3148) { animation-delay: 314.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3149) { animation-delay: 314.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3150) { animation-delay: 315s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3151) { animation-delay: 315.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3152) { animation-delay: 315.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3153) { animation-delay: 315.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3154) { animation-delay: 315.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3155) { animation-delay: 315.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3156) { animation-delay: 315.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3157) { animation-delay: 315.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3158) { animation-delay: 315.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3159) { animation-delay: 315.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3160) { animation-delay: 316s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3161) { animation-delay: 316.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3162) { animation-delay: 316.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3163) { animation-delay: 316.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3164) { animation-delay: 316.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3165) { animation-delay: 316.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3166) { animation-delay: 316.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3167) { animation-delay: 316.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3168) { animation-delay: 316.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3169) { animation-delay: 316.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3170) { animation-delay: 317s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3171) { animation-delay: 317.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3172) { animation-delay: 317.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3173) { animation-delay: 317.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3174) { animation-delay: 317.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3175) { animation-delay: 317.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3176) { animation-delay: 317.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3177) { animation-delay: 317.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3178) { animation-delay: 317.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3179) { animation-delay: 317.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3180) { animation-delay: 318s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3181) { animation-delay: 318.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3182) { animation-delay: 318.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3183) { animation-delay: 318.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3184) { animation-delay: 318.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3185) { animation-delay: 318.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3186) { animation-delay: 318.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3187) { animation-delay: 318.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3188) { animation-delay: 318.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3189) { animation-delay: 318.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3190) { animation-delay: 319s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3191) { animation-delay: 319.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3192) { animation-delay: 319.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3193) { animation-delay: 319.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3194) { animation-delay: 319.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3195) { animation-delay: 319.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3196) { animation-delay: 319.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3197) { animation-delay: 319.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3198) { animation-delay: 319.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3199) { animation-delay: 319.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3200) { animation-delay: 320s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3201) { animation-delay: 320.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3202) { animation-delay: 320.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3203) { animation-delay: 320.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3204) { animation-delay: 320.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3205) { animation-delay: 320.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3206) { animation-delay: 320.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3207) { animation-delay: 320.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3208) { animation-delay: 320.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3209) { animation-delay: 320.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3210) { animation-delay: 321s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3211) { animation-delay: 321.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3212) { animation-delay: 321.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3213) { animation-delay: 321.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3214) { animation-delay: 321.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3215) { animation-delay: 321.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3216) { animation-delay: 321.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3217) { animation-delay: 321.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3218) { animation-delay: 321.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3219) { animation-delay: 321.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3220) { animation-delay: 322s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3221) { animation-delay: 322.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3222) { animation-delay: 322.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3223) { animation-delay: 322.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3224) { animation-delay: 322.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3225) { animation-delay: 322.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3226) { animation-delay: 322.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3227) { animation-delay: 322.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3228) { animation-delay: 322.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3229) { animation-delay: 322.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3230) { animation-delay: 323s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3231) { animation-delay: 323.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3232) { animation-delay: 323.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3233) { animation-delay: 323.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3234) { animation-delay: 323.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3235) { animation-delay: 323.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3236) { animation-delay: 323.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3237) { animation-delay: 323.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3238) { animation-delay: 323.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3239) { animation-delay: 323.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3240) { animation-delay: 324s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3241) { animation-delay: 324.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3242) { animation-delay: 324.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3243) { animation-delay: 324.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3244) { animation-delay: 324.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3245) { animation-delay: 324.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3246) { animation-delay: 324.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3247) { animation-delay: 324.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3248) { animation-delay: 324.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3249) { animation-delay: 324.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3250) { animation-delay: 325s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3251) { animation-delay: 325.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3252) { animation-delay: 325.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3253) { animation-delay: 325.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3254) { animation-delay: 325.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3255) { animation-delay: 325.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3256) { animation-delay: 325.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3257) { animation-delay: 325.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3258) { animation-delay: 325.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3259) { animation-delay: 325.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3260) { animation-delay: 326s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3261) { animation-delay: 326.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3262) { animation-delay: 326.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3263) { animation-delay: 326.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3264) { animation-delay: 326.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3265) { animation-delay: 326.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3266) { animation-delay: 326.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3267) { animation-delay: 326.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3268) { animation-delay: 326.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3269) { animation-delay: 326.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3270) { animation-delay: 327s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3271) { animation-delay: 327.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3272) { animation-delay: 327.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3273) { animation-delay: 327.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3274) { animation-delay: 327.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3275) { animation-delay: 327.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3276) { animation-delay: 327.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3277) { animation-delay: 327.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3278) { animation-delay: 327.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3279) { animation-delay: 327.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3280) { animation-delay: 328s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3281) { animation-delay: 328.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3282) { animation-delay: 328.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3283) { animation-delay: 328.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3284) { animation-delay: 328.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3285) { animation-delay: 328.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3286) { animation-delay: 328.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3287) { animation-delay: 328.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3288) { animation-delay: 328.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3289) { animation-delay: 328.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3290) { animation-delay: 329s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3291) { animation-delay: 329.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3292) { animation-delay: 329.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3293) { animation-delay: 329.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3294) { animation-delay: 329.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3295) { animation-delay: 329.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3296) { animation-delay: 329.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3297) { animation-delay: 329.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3298) { animation-delay: 329.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3299) { animation-delay: 329.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3300) { animation-delay: 330s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3301) { animation-delay: 330.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3302) { animation-delay: 330.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3303) { animation-delay: 330.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3304) { animation-delay: 330.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3305) { animation-delay: 330.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3306) { animation-delay: 330.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3307) { animation-delay: 330.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3308) { animation-delay: 330.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3309) { animation-delay: 330.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3310) { animation-delay: 331s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3311) { animation-delay: 331.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3312) { animation-delay: 331.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3313) { animation-delay: 331.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3314) { animation-delay: 331.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3315) { animation-delay: 331.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3316) { animation-delay: 331.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3317) { animation-delay: 331.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3318) { animation-delay: 331.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3319) { animation-delay: 331.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3320) { animation-delay: 332s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3321) { animation-delay: 332.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3322) { animation-delay: 332.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3323) { animation-delay: 332.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3324) { animation-delay: 332.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3325) { animation-delay: 332.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3326) { animation-delay: 332.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3327) { animation-delay: 332.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3328) { animation-delay: 332.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3329) { animation-delay: 332.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3330) { animation-delay: 333s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3331) { animation-delay: 333.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3332) { animation-delay: 333.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3333) { animation-delay: 333.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3334) { animation-delay: 333.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3335) { animation-delay: 333.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3336) { animation-delay: 333.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3337) { animation-delay: 333.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3338) { animation-delay: 333.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3339) { animation-delay: 333.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3340) { animation-delay: 334s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3341) { animation-delay: 334.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3342) { animation-delay: 334.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3343) { animation-delay: 334.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3344) { animation-delay: 334.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3345) { animation-delay: 334.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3346) { animation-delay: 334.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3347) { animation-delay: 334.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3348) { animation-delay: 334.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3349) { animation-delay: 334.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3350) { animation-delay: 335s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3351) { animation-delay: 335.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3352) { animation-delay: 335.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3353) { animation-delay: 335.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3354) { animation-delay: 335.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3355) { animation-delay: 335.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3356) { animation-delay: 335.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3357) { animation-delay: 335.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3358) { animation-delay: 335.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3359) { animation-delay: 335.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3360) { animation-delay: 336s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3361) { animation-delay: 336.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3362) { animation-delay: 336.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3363) { animation-delay: 336.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3364) { animation-delay: 336.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3365) { animation-delay: 336.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3366) { animation-delay: 336.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3367) { animation-delay: 336.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3368) { animation-delay: 336.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3369) { animation-delay: 336.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3370) { animation-delay: 337s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3371) { animation-delay: 337.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3372) { animation-delay: 337.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3373) { animation-delay: 337.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3374) { animation-delay: 337.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3375) { animation-delay: 337.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3376) { animation-delay: 337.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3377) { animation-delay: 337.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3378) { animation-delay: 337.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3379) { animation-delay: 337.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3380) { animation-delay: 338s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3381) { animation-delay: 338.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3382) { animation-delay: 338.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3383) { animation-delay: 338.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3384) { animation-delay: 338.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3385) { animation-delay: 338.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3386) { animation-delay: 338.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3387) { animation-delay: 338.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3388) { animation-delay: 338.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3389) { animation-delay: 338.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3390) { animation-delay: 339s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3391) { animation-delay: 339.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3392) { animation-delay: 339.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3393) { animation-delay: 339.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3394) { animation-delay: 339.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3395) { animation-delay: 339.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3396) { animation-delay: 339.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3397) { animation-delay: 339.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3398) { animation-delay: 339.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3399) { animation-delay: 339.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3400) { animation-delay: 340s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3401) { animation-delay: 340.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3402) { animation-delay: 340.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3403) { animation-delay: 340.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3404) { animation-delay: 340.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3405) { animation-delay: 340.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3406) { animation-delay: 340.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3407) { animation-delay: 340.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3408) { animation-delay: 340.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3409) { animation-delay: 340.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3410) { animation-delay: 341s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3411) { animation-delay: 341.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3412) { animation-delay: 341.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3413) { animation-delay: 341.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3414) { animation-delay: 341.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3415) { animation-delay: 341.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3416) { animation-delay: 341.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3417) { animation-delay: 341.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3418) { animation-delay: 341.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3419) { animation-delay: 341.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3420) { animation-delay: 342s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3421) { animation-delay: 342.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3422) { animation-delay: 342.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3423) { animation-delay: 342.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3424) { animation-delay: 342.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3425) { animation-delay: 342.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3426) { animation-delay: 342.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3427) { animation-delay: 342.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3428) { animation-delay: 342.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3429) { animation-delay: 342.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3430) { animation-delay: 343s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3431) { animation-delay: 343.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3432) { animation-delay: 343.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3433) { animation-delay: 343.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3434) { animation-delay: 343.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3435) { animation-delay: 343.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3436) { animation-delay: 343.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3437) { animation-delay: 343.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3438) { animation-delay: 343.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3439) { animation-delay: 343.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3440) { animation-delay: 344s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3441) { animation-delay: 344.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3442) { animation-delay: 344.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3443) { animation-delay: 344.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3444) { animation-delay: 344.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3445) { animation-delay: 344.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3446) { animation-delay: 344.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3447) { animation-delay: 344.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3448) { animation-delay: 344.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3449) { animation-delay: 344.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3450) { animation-delay: 345s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3451) { animation-delay: 345.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3452) { animation-delay: 345.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3453) { animation-delay: 345.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3454) { animation-delay: 345.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3455) { animation-delay: 345.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3456) { animation-delay: 345.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3457) { animation-delay: 345.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3458) { animation-delay: 345.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3459) { animation-delay: 345.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3460) { animation-delay: 346s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3461) { animation-delay: 346.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3462) { animation-delay: 346.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3463) { animation-delay: 346.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3464) { animation-delay: 346.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3465) { animation-delay: 346.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3466) { animation-delay: 346.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3467) { animation-delay: 346.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3468) { animation-delay: 346.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3469) { animation-delay: 346.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3470) { animation-delay: 347s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3471) { animation-delay: 347.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3472) { animation-delay: 347.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3473) { animation-delay: 347.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3474) { animation-delay: 347.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3475) { animation-delay: 347.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3476) { animation-delay: 347.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3477) { animation-delay: 347.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3478) { animation-delay: 347.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3479) { animation-delay: 347.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3480) { animation-delay: 348s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3481) { animation-delay: 348.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3482) { animation-delay: 348.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3483) { animation-delay: 348.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3484) { animation-delay: 348.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3485) { animation-delay: 348.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3486) { animation-delay: 348.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3487) { animation-delay: 348.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3488) { animation-delay: 348.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3489) { animation-delay: 348.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3490) { animation-delay: 349s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3491) { animation-delay: 349.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3492) { animation-delay: 349.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3493) { animation-delay: 349.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3494) { animation-delay: 349.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3495) { animation-delay: 349.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3496) { animation-delay: 349.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3497) { animation-delay: 349.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3498) { animation-delay: 349.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3499) { animation-delay: 349.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3500) { animation-delay: 350s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3501) { animation-delay: 350.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3502) { animation-delay: 350.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3503) { animation-delay: 350.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3504) { animation-delay: 350.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3505) { animation-delay: 350.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3506) { animation-delay: 350.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3507) { animation-delay: 350.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3508) { animation-delay: 350.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3509) { animation-delay: 350.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3510) { animation-delay: 351s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3511) { animation-delay: 351.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3512) { animation-delay: 351.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3513) { animation-delay: 351.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3514) { animation-delay: 351.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3515) { animation-delay: 351.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3516) { animation-delay: 351.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3517) { animation-delay: 351.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3518) { animation-delay: 351.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3519) { animation-delay: 351.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3520) { animation-delay: 352s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3521) { animation-delay: 352.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3522) { animation-delay: 352.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3523) { animation-delay: 352.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3524) { animation-delay: 352.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3525) { animation-delay: 352.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3526) { animation-delay: 352.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3527) { animation-delay: 352.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3528) { animation-delay: 352.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3529) { animation-delay: 352.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3530) { animation-delay: 353s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3531) { animation-delay: 353.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3532) { animation-delay: 353.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3533) { animation-delay: 353.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3534) { animation-delay: 353.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3535) { animation-delay: 353.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3536) { animation-delay: 353.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3537) { animation-delay: 353.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3538) { animation-delay: 353.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3539) { animation-delay: 353.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3540) { animation-delay: 354s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3541) { animation-delay: 354.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3542) { animation-delay: 354.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3543) { animation-delay: 354.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3544) { animation-delay: 354.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3545) { animation-delay: 354.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3546) { animation-delay: 354.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3547) { animation-delay: 354.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3548) { animation-delay: 354.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3549) { animation-delay: 354.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3550) { animation-delay: 355s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3551) { animation-delay: 355.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3552) { animation-delay: 355.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3553) { animation-delay: 355.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3554) { animation-delay: 355.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3555) { animation-delay: 355.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3556) { animation-delay: 355.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3557) { animation-delay: 355.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3558) { animation-delay: 355.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3559) { animation-delay: 355.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3560) { animation-delay: 356s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3561) { animation-delay: 356.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3562) { animation-delay: 356.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3563) { animation-delay: 356.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3564) { animation-delay: 356.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3565) { animation-delay: 356.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3566) { animation-delay: 356.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3567) { animation-delay: 356.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3568) { animation-delay: 356.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3569) { animation-delay: 356.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3570) { animation-delay: 357s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3571) { animation-delay: 357.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3572) { animation-delay: 357.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3573) { animation-delay: 357.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3574) { animation-delay: 357.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3575) { animation-delay: 357.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3576) { animation-delay: 357.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3577) { animation-delay: 357.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3578) { animation-delay: 357.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3579) { animation-delay: 357.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3580) { animation-delay: 358s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3581) { animation-delay: 358.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3582) { animation-delay: 358.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3583) { animation-delay: 358.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3584) { animation-delay: 358.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3585) { animation-delay: 358.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3586) { animation-delay: 358.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3587) { animation-delay: 358.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3588) { animation-delay: 358.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3589) { animation-delay: 358.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3590) { animation-delay: 359s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3591) { animation-delay: 359.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3592) { animation-delay: 359.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3593) { animation-delay: 359.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3594) { animation-delay: 359.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3595) { animation-delay: 359.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3596) { animation-delay: 359.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3597) { animation-delay: 359.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3598) { animation-delay: 359.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3599) { animation-delay: 359.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3600) { animation-delay: 360s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3601) { animation-delay: 360.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3602) { animation-delay: 360.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3603) { animation-delay: 360.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3604) { animation-delay: 360.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3605) { animation-delay: 360.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3606) { animation-delay: 360.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3607) { animation-delay: 360.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3608) { animation-delay: 360.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3609) { animation-delay: 360.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3610) { animation-delay: 361s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3611) { animation-delay: 361.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3612) { animation-delay: 361.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3613) { animation-delay: 361.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3614) { animation-delay: 361.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3615) { animation-delay: 361.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3616) { animation-delay: 361.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3617) { animation-delay: 361.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3618) { animation-delay: 361.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3619) { animation-delay: 361.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3620) { animation-delay: 362s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3621) { animation-delay: 362.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3622) { animation-delay: 362.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3623) { animation-delay: 362.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3624) { animation-delay: 362.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3625) { animation-delay: 362.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3626) { animation-delay: 362.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3627) { animation-delay: 362.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3628) { animation-delay: 362.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3629) { animation-delay: 362.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3630) { animation-delay: 363s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3631) { animation-delay: 363.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3632) { animation-delay: 363.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3633) { animation-delay: 363.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3634) { animation-delay: 363.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3635) { animation-delay: 363.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3636) { animation-delay: 363.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3637) { animation-delay: 363.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3638) { animation-delay: 363.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3639) { animation-delay: 363.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3640) { animation-delay: 364s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3641) { animation-delay: 364.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3642) { animation-delay: 364.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3643) { animation-delay: 364.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3644) { animation-delay: 364.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3645) { animation-delay: 364.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3646) { animation-delay: 364.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3647) { animation-delay: 364.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3648) { animation-delay: 364.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3649) { animation-delay: 364.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3650) { animation-delay: 365s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3651) { animation-delay: 365.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3652) { animation-delay: 365.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3653) { animation-delay: 365.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3654) { animation-delay: 365.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3655) { animation-delay: 365.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3656) { animation-delay: 365.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3657) { animation-delay: 365.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3658) { animation-delay: 365.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3659) { animation-delay: 365.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3660) { animation-delay: 366s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3661) { animation-delay: 366.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3662) { animation-delay: 366.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3663) { animation-delay: 366.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3664) { animation-delay: 366.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3665) { animation-delay: 366.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3666) { animation-delay: 366.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3667) { animation-delay: 366.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3668) { animation-delay: 366.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3669) { animation-delay: 366.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3670) { animation-delay: 367s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3671) { animation-delay: 367.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3672) { animation-delay: 367.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3673) { animation-delay: 367.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3674) { animation-delay: 367.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3675) { animation-delay: 367.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3676) { animation-delay: 367.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3677) { animation-delay: 367.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3678) { animation-delay: 367.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3679) { animation-delay: 367.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3680) { animation-delay: 368s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3681) { animation-delay: 368.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3682) { animation-delay: 368.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3683) { animation-delay: 368.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3684) { animation-delay: 368.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3685) { animation-delay: 368.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3686) { animation-delay: 368.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3687) { animation-delay: 368.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3688) { animation-delay: 368.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3689) { animation-delay: 368.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3690) { animation-delay: 369s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3691) { animation-delay: 369.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3692) { animation-delay: 369.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3693) { animation-delay: 369.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3694) { animation-delay: 369.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3695) { animation-delay: 369.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3696) { animation-delay: 369.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3697) { animation-delay: 369.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3698) { animation-delay: 369.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3699) { animation-delay: 369.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3700) { animation-delay: 370s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3701) { animation-delay: 370.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3702) { animation-delay: 370.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3703) { animation-delay: 370.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3704) { animation-delay: 370.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3705) { animation-delay: 370.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3706) { animation-delay: 370.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3707) { animation-delay: 370.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3708) { animation-delay: 370.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3709) { animation-delay: 370.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3710) { animation-delay: 371s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3711) { animation-delay: 371.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3712) { animation-delay: 371.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3713) { animation-delay: 371.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3714) { animation-delay: 371.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3715) { animation-delay: 371.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3716) { animation-delay: 371.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3717) { animation-delay: 371.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3718) { animation-delay: 371.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3719) { animation-delay: 371.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3720) { animation-delay: 372s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3721) { animation-delay: 372.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3722) { animation-delay: 372.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3723) { animation-delay: 372.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3724) { animation-delay: 372.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3725) { animation-delay: 372.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3726) { animation-delay: 372.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3727) { animation-delay: 372.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3728) { animation-delay: 372.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3729) { animation-delay: 372.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3730) { animation-delay: 373s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3731) { animation-delay: 373.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3732) { animation-delay: 373.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3733) { animation-delay: 373.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3734) { animation-delay: 373.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3735) { animation-delay: 373.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3736) { animation-delay: 373.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3737) { animation-delay: 373.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3738) { animation-delay: 373.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3739) { animation-delay: 373.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3740) { animation-delay: 374s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3741) { animation-delay: 374.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3742) { animation-delay: 374.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3743) { animation-delay: 374.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3744) { animation-delay: 374.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3745) { animation-delay: 374.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3746) { animation-delay: 374.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3747) { animation-delay: 374.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3748) { animation-delay: 374.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3749) { animation-delay: 374.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3750) { animation-delay: 375s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3751) { animation-delay: 375.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3752) { animation-delay: 375.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3753) { animation-delay: 375.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3754) { animation-delay: 375.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3755) { animation-delay: 375.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3756) { animation-delay: 375.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3757) { animation-delay: 375.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3758) { animation-delay: 375.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3759) { animation-delay: 375.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3760) { animation-delay: 376s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3761) { animation-delay: 376.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3762) { animation-delay: 376.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3763) { animation-delay: 376.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3764) { animation-delay: 376.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3765) { animation-delay: 376.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3766) { animation-delay: 376.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3767) { animation-delay: 376.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3768) { animation-delay: 376.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3769) { animation-delay: 376.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3770) { animation-delay: 377s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3771) { animation-delay: 377.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3772) { animation-delay: 377.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3773) { animation-delay: 377.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3774) { animation-delay: 377.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3775) { animation-delay: 377.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3776) { animation-delay: 377.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3777) { animation-delay: 377.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3778) { animation-delay: 377.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3779) { animation-delay: 377.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3780) { animation-delay: 378s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3781) { animation-delay: 378.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3782) { animation-delay: 378.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3783) { animation-delay: 378.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3784) { animation-delay: 378.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3785) { animation-delay: 378.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3786) { animation-delay: 378.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3787) { animation-delay: 378.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3788) { animation-delay: 378.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3789) { animation-delay: 378.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3790) { animation-delay: 379s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3791) { animation-delay: 379.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3792) { animation-delay: 379.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3793) { animation-delay: 379.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3794) { animation-delay: 379.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3795) { animation-delay: 379.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3796) { animation-delay: 379.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3797) { animation-delay: 379.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3798) { animation-delay: 379.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3799) { animation-delay: 379.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3800) { animation-delay: 380s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3801) { animation-delay: 380.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3802) { animation-delay: 380.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3803) { animation-delay: 380.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3804) { animation-delay: 380.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3805) { animation-delay: 380.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3806) { animation-delay: 380.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3807) { animation-delay: 380.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3808) { animation-delay: 380.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3809) { animation-delay: 380.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3810) { animation-delay: 381s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3811) { animation-delay: 381.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3812) { animation-delay: 381.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3813) { animation-delay: 381.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3814) { animation-delay: 381.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3815) { animation-delay: 381.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3816) { animation-delay: 381.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3817) { animation-delay: 381.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3818) { animation-delay: 381.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3819) { animation-delay: 381.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3820) { animation-delay: 382s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3821) { animation-delay: 382.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3822) { animation-delay: 382.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3823) { animation-delay: 382.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3824) { animation-delay: 382.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3825) { animation-delay: 382.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3826) { animation-delay: 382.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3827) { animation-delay: 382.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3828) { animation-delay: 382.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3829) { animation-delay: 382.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3830) { animation-delay: 383s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3831) { animation-delay: 383.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3832) { animation-delay: 383.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3833) { animation-delay: 383.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3834) { animation-delay: 383.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3835) { animation-delay: 383.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3836) { animation-delay: 383.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3837) { animation-delay: 383.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3838) { animation-delay: 383.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3839) { animation-delay: 383.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3840) { animation-delay: 384s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3841) { animation-delay: 384.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3842) { animation-delay: 384.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3843) { animation-delay: 384.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3844) { animation-delay: 384.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3845) { animation-delay: 384.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3846) { animation-delay: 384.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3847) { animation-delay: 384.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3848) { animation-delay: 384.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3849) { animation-delay: 384.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3850) { animation-delay: 385s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3851) { animation-delay: 385.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3852) { animation-delay: 385.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3853) { animation-delay: 385.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3854) { animation-delay: 385.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3855) { animation-delay: 385.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3856) { animation-delay: 385.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3857) { animation-delay: 385.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3858) { animation-delay: 385.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3859) { animation-delay: 385.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3860) { animation-delay: 386s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3861) { animation-delay: 386.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3862) { animation-delay: 386.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3863) { animation-delay: 386.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3864) { animation-delay: 386.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3865) { animation-delay: 386.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3866) { animation-delay: 386.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3867) { animation-delay: 386.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3868) { animation-delay: 386.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3869) { animation-delay: 386.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3870) { animation-delay: 387s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3871) { animation-delay: 387.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3872) { animation-delay: 387.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3873) { animation-delay: 387.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3874) { animation-delay: 387.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3875) { animation-delay: 387.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3876) { animation-delay: 387.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3877) { animation-delay: 387.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3878) { animation-delay: 387.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3879) { animation-delay: 387.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3880) { animation-delay: 388s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3881) { animation-delay: 388.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3882) { animation-delay: 388.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3883) { animation-delay: 388.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3884) { animation-delay: 388.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3885) { animation-delay: 388.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3886) { animation-delay: 388.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3887) { animation-delay: 388.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3888) { animation-delay: 388.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3889) { animation-delay: 388.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3890) { animation-delay: 389s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3891) { animation-delay: 389.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3892) { animation-delay: 389.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3893) { animation-delay: 389.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3894) { animation-delay: 389.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3895) { animation-delay: 389.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3896) { animation-delay: 389.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3897) { animation-delay: 389.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3898) { animation-delay: 389.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3899) { animation-delay: 389.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3900) { animation-delay: 390s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3901) { animation-delay: 390.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3902) { animation-delay: 390.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3903) { animation-delay: 390.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3904) { animation-delay: 390.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3905) { animation-delay: 390.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3906) { animation-delay: 390.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3907) { animation-delay: 390.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3908) { animation-delay: 390.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3909) { animation-delay: 390.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3910) { animation-delay: 391s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3911) { animation-delay: 391.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3912) { animation-delay: 391.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3913) { animation-delay: 391.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3914) { animation-delay: 391.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3915) { animation-delay: 391.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3916) { animation-delay: 391.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3917) { animation-delay: 391.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3918) { animation-delay: 391.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3919) { animation-delay: 391.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3920) { animation-delay: 392s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3921) { animation-delay: 392.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3922) { animation-delay: 392.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3923) { animation-delay: 392.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3924) { animation-delay: 392.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3925) { animation-delay: 392.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3926) { animation-delay: 392.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3927) { animation-delay: 392.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3928) { animation-delay: 392.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3929) { animation-delay: 392.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3930) { animation-delay: 393s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3931) { animation-delay: 393.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3932) { animation-delay: 393.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3933) { animation-delay: 393.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3934) { animation-delay: 393.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3935) { animation-delay: 393.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3936) { animation-delay: 393.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3937) { animation-delay: 393.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3938) { animation-delay: 393.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3939) { animation-delay: 393.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3940) { animation-delay: 394s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3941) { animation-delay: 394.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3942) { animation-delay: 394.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3943) { animation-delay: 394.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3944) { animation-delay: 394.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3945) { animation-delay: 394.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3946) { animation-delay: 394.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3947) { animation-delay: 394.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3948) { animation-delay: 394.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3949) { animation-delay: 394.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3950) { animation-delay: 395s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3951) { animation-delay: 395.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3952) { animation-delay: 395.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3953) { animation-delay: 395.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3954) { animation-delay: 395.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3955) { animation-delay: 395.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3956) { animation-delay: 395.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3957) { animation-delay: 395.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3958) { animation-delay: 395.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3959) { animation-delay: 395.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3960) { animation-delay: 396s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3961) { animation-delay: 396.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3962) { animation-delay: 396.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3963) { animation-delay: 396.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3964) { animation-delay: 396.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3965) { animation-delay: 396.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3966) { animation-delay: 396.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3967) { animation-delay: 396.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3968) { animation-delay: 396.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3969) { animation-delay: 396.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3970) { animation-delay: 397s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3971) { animation-delay: 397.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3972) { animation-delay: 397.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3973) { animation-delay: 397.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3974) { animation-delay: 397.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3975) { animation-delay: 397.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3976) { animation-delay: 397.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3977) { animation-delay: 397.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3978) { animation-delay: 397.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3979) { animation-delay: 397.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3980) { animation-delay: 398s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3981) { animation-delay: 398.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3982) { animation-delay: 398.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3983) { animation-delay: 398.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3984) { animation-delay: 398.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3985) { animation-delay: 398.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3986) { animation-delay: 398.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3987) { animation-delay: 398.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3988) { animation-delay: 398.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3989) { animation-delay: 398.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3990) { animation-delay: 399s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3991) { animation-delay: 399.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3992) { animation-delay: 399.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3993) { animation-delay: 399.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3994) { animation-delay: 399.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3995) { animation-delay: 399.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3996) { animation-delay: 399.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3997) { animation-delay: 399.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3998) { animation-delay: 399.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(3999) { animation-delay: 399.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4000) { animation-delay: 400s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4001) { animation-delay: 400.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4002) { animation-delay: 400.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4003) { animation-delay: 400.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4004) { animation-delay: 400.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4005) { animation-delay: 400.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4006) { animation-delay: 400.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4007) { animation-delay: 400.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4008) { animation-delay: 400.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4009) { animation-delay: 400.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4010) { animation-delay: 401s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4011) { animation-delay: 401.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4012) { animation-delay: 401.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4013) { animation-delay: 401.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4014) { animation-delay: 401.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4015) { animation-delay: 401.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4016) { animation-delay: 401.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4017) { animation-delay: 401.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4018) { animation-delay: 401.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4019) { animation-delay: 401.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4020) { animation-delay: 402s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4021) { animation-delay: 402.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4022) { animation-delay: 402.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4023) { animation-delay: 402.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4024) { animation-delay: 402.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4025) { animation-delay: 402.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4026) { animation-delay: 402.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4027) { animation-delay: 402.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4028) { animation-delay: 402.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4029) { animation-delay: 402.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4030) { animation-delay: 403s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4031) { animation-delay: 403.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4032) { animation-delay: 403.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4033) { animation-delay: 403.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4034) { animation-delay: 403.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4035) { animation-delay: 403.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4036) { animation-delay: 403.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4037) { animation-delay: 403.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4038) { animation-delay: 403.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4039) { animation-delay: 403.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4040) { animation-delay: 404s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4041) { animation-delay: 404.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4042) { animation-delay: 404.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4043) { animation-delay: 404.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4044) { animation-delay: 404.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4045) { animation-delay: 404.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4046) { animation-delay: 404.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4047) { animation-delay: 404.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4048) { animation-delay: 404.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4049) { animation-delay: 404.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4050) { animation-delay: 405s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4051) { animation-delay: 405.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4052) { animation-delay: 405.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4053) { animation-delay: 405.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4054) { animation-delay: 405.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4055) { animation-delay: 405.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4056) { animation-delay: 405.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4057) { animation-delay: 405.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4058) { animation-delay: 405.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4059) { animation-delay: 405.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4060) { animation-delay: 406s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4061) { animation-delay: 406.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4062) { animation-delay: 406.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4063) { animation-delay: 406.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4064) { animation-delay: 406.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4065) { animation-delay: 406.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4066) { animation-delay: 406.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4067) { animation-delay: 406.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4068) { animation-delay: 406.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4069) { animation-delay: 406.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4070) { animation-delay: 407s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4071) { animation-delay: 407.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4072) { animation-delay: 407.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4073) { animation-delay: 407.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4074) { animation-delay: 407.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4075) { animation-delay: 407.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4076) { animation-delay: 407.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4077) { animation-delay: 407.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4078) { animation-delay: 407.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4079) { animation-delay: 407.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4080) { animation-delay: 408s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4081) { animation-delay: 408.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4082) { animation-delay: 408.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4083) { animation-delay: 408.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4084) { animation-delay: 408.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4085) { animation-delay: 408.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4086) { animation-delay: 408.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4087) { animation-delay: 408.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4088) { animation-delay: 408.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4089) { animation-delay: 408.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4090) { animation-delay: 409s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4091) { animation-delay: 409.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4092) { animation-delay: 409.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4093) { animation-delay: 409.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4094) { animation-delay: 409.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4095) { animation-delay: 409.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4096) { animation-delay: 409.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4097) { animation-delay: 409.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4098) { animation-delay: 409.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4099) { animation-delay: 409.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4100) { animation-delay: 410s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4101) { animation-delay: 410.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4102) { animation-delay: 410.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4103) { animation-delay: 410.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4104) { animation-delay: 410.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4105) { animation-delay: 410.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4106) { animation-delay: 410.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4107) { animation-delay: 410.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4108) { animation-delay: 410.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4109) { animation-delay: 410.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4110) { animation-delay: 411s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4111) { animation-delay: 411.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4112) { animation-delay: 411.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4113) { animation-delay: 411.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4114) { animation-delay: 411.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4115) { animation-delay: 411.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4116) { animation-delay: 411.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4117) { animation-delay: 411.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4118) { animation-delay: 411.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4119) { animation-delay: 411.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4120) { animation-delay: 412s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4121) { animation-delay: 412.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4122) { animation-delay: 412.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4123) { animation-delay: 412.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4124) { animation-delay: 412.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4125) { animation-delay: 412.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4126) { animation-delay: 412.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4127) { animation-delay: 412.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4128) { animation-delay: 412.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4129) { animation-delay: 412.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4130) { animation-delay: 413s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4131) { animation-delay: 413.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4132) { animation-delay: 413.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4133) { animation-delay: 413.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4134) { animation-delay: 413.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4135) { animation-delay: 413.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4136) { animation-delay: 413.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4137) { animation-delay: 413.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4138) { animation-delay: 413.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4139) { animation-delay: 413.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4140) { animation-delay: 414s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4141) { animation-delay: 414.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4142) { animation-delay: 414.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4143) { animation-delay: 414.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4144) { animation-delay: 414.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4145) { animation-delay: 414.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4146) { animation-delay: 414.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4147) { animation-delay: 414.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4148) { animation-delay: 414.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4149) { animation-delay: 414.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4150) { animation-delay: 415s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4151) { animation-delay: 415.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4152) { animation-delay: 415.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4153) { animation-delay: 415.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4154) { animation-delay: 415.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4155) { animation-delay: 415.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4156) { animation-delay: 415.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4157) { animation-delay: 415.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4158) { animation-delay: 415.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4159) { animation-delay: 415.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4160) { animation-delay: 416s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4161) { animation-delay: 416.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4162) { animation-delay: 416.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4163) { animation-delay: 416.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4164) { animation-delay: 416.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4165) { animation-delay: 416.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4166) { animation-delay: 416.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4167) { animation-delay: 416.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4168) { animation-delay: 416.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4169) { animation-delay: 416.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4170) { animation-delay: 417s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4171) { animation-delay: 417.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4172) { animation-delay: 417.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4173) { animation-delay: 417.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4174) { animation-delay: 417.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4175) { animation-delay: 417.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4176) { animation-delay: 417.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4177) { animation-delay: 417.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4178) { animation-delay: 417.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4179) { animation-delay: 417.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4180) { animation-delay: 418s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4181) { animation-delay: 418.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4182) { animation-delay: 418.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4183) { animation-delay: 418.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4184) { animation-delay: 418.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4185) { animation-delay: 418.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4186) { animation-delay: 418.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4187) { animation-delay: 418.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4188) { animation-delay: 418.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4189) { animation-delay: 418.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4190) { animation-delay: 419s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4191) { animation-delay: 419.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4192) { animation-delay: 419.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4193) { animation-delay: 419.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4194) { animation-delay: 419.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4195) { animation-delay: 419.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4196) { animation-delay: 419.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4197) { animation-delay: 419.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4198) { animation-delay: 419.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4199) { animation-delay: 419.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4200) { animation-delay: 420s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4201) { animation-delay: 420.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4202) { animation-delay: 420.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4203) { animation-delay: 420.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4204) { animation-delay: 420.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4205) { animation-delay: 420.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4206) { animation-delay: 420.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4207) { animation-delay: 420.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4208) { animation-delay: 420.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4209) { animation-delay: 420.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4210) { animation-delay: 421s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4211) { animation-delay: 421.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4212) { animation-delay: 421.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4213) { animation-delay: 421.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4214) { animation-delay: 421.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4215) { animation-delay: 421.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4216) { animation-delay: 421.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4217) { animation-delay: 421.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4218) { animation-delay: 421.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4219) { animation-delay: 421.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4220) { animation-delay: 422s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4221) { animation-delay: 422.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4222) { animation-delay: 422.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4223) { animation-delay: 422.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4224) { animation-delay: 422.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4225) { animation-delay: 422.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4226) { animation-delay: 422.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4227) { animation-delay: 422.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4228) { animation-delay: 422.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4229) { animation-delay: 422.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4230) { animation-delay: 423s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4231) { animation-delay: 423.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4232) { animation-delay: 423.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4233) { animation-delay: 423.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4234) { animation-delay: 423.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4235) { animation-delay: 423.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4236) { animation-delay: 423.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4237) { animation-delay: 423.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4238) { animation-delay: 423.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4239) { animation-delay: 423.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4240) { animation-delay: 424s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4241) { animation-delay: 424.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4242) { animation-delay: 424.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4243) { animation-delay: 424.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4244) { animation-delay: 424.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4245) { animation-delay: 424.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4246) { animation-delay: 424.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4247) { animation-delay: 424.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4248) { animation-delay: 424.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4249) { animation-delay: 424.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4250) { animation-delay: 425s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4251) { animation-delay: 425.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4252) { animation-delay: 425.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4253) { animation-delay: 425.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4254) { animation-delay: 425.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4255) { animation-delay: 425.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4256) { animation-delay: 425.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4257) { animation-delay: 425.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4258) { animation-delay: 425.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4259) { animation-delay: 425.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4260) { animation-delay: 426s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4261) { animation-delay: 426.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4262) { animation-delay: 426.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4263) { animation-delay: 426.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4264) { animation-delay: 426.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4265) { animation-delay: 426.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4266) { animation-delay: 426.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4267) { animation-delay: 426.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4268) { animation-delay: 426.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4269) { animation-delay: 426.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4270) { animation-delay: 427s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4271) { animation-delay: 427.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4272) { animation-delay: 427.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4273) { animation-delay: 427.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4274) { animation-delay: 427.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4275) { animation-delay: 427.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4276) { animation-delay: 427.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4277) { animation-delay: 427.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4278) { animation-delay: 427.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4279) { animation-delay: 427.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4280) { animation-delay: 428s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4281) { animation-delay: 428.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4282) { animation-delay: 428.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4283) { animation-delay: 428.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4284) { animation-delay: 428.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4285) { animation-delay: 428.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4286) { animation-delay: 428.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4287) { animation-delay: 428.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4288) { animation-delay: 428.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4289) { animation-delay: 428.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4290) { animation-delay: 429s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4291) { animation-delay: 429.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4292) { animation-delay: 429.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4293) { animation-delay: 429.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4294) { animation-delay: 429.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4295) { animation-delay: 429.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4296) { animation-delay: 429.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4297) { animation-delay: 429.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4298) { animation-delay: 429.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4299) { animation-delay: 429.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4300) { animation-delay: 430s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4301) { animation-delay: 430.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4302) { animation-delay: 430.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4303) { animation-delay: 430.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4304) { animation-delay: 430.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4305) { animation-delay: 430.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4306) { animation-delay: 430.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4307) { animation-delay: 430.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4308) { animation-delay: 430.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4309) { animation-delay: 430.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4310) { animation-delay: 431s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4311) { animation-delay: 431.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4312) { animation-delay: 431.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4313) { animation-delay: 431.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4314) { animation-delay: 431.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4315) { animation-delay: 431.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4316) { animation-delay: 431.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4317) { animation-delay: 431.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4318) { animation-delay: 431.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4319) { animation-delay: 431.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4320) { animation-delay: 432s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4321) { animation-delay: 432.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4322) { animation-delay: 432.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4323) { animation-delay: 432.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4324) { animation-delay: 432.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4325) { animation-delay: 432.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4326) { animation-delay: 432.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4327) { animation-delay: 432.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4328) { animation-delay: 432.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4329) { animation-delay: 432.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4330) { animation-delay: 433s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4331) { animation-delay: 433.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4332) { animation-delay: 433.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4333) { animation-delay: 433.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4334) { animation-delay: 433.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4335) { animation-delay: 433.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4336) { animation-delay: 433.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4337) { animation-delay: 433.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4338) { animation-delay: 433.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4339) { animation-delay: 433.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4340) { animation-delay: 434s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4341) { animation-delay: 434.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4342) { animation-delay: 434.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4343) { animation-delay: 434.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4344) { animation-delay: 434.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4345) { animation-delay: 434.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4346) { animation-delay: 434.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4347) { animation-delay: 434.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4348) { animation-delay: 434.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4349) { animation-delay: 434.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4350) { animation-delay: 435s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4351) { animation-delay: 435.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4352) { animation-delay: 435.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4353) { animation-delay: 435.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4354) { animation-delay: 435.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4355) { animation-delay: 435.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4356) { animation-delay: 435.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4357) { animation-delay: 435.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4358) { animation-delay: 435.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4359) { animation-delay: 435.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4360) { animation-delay: 436s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4361) { animation-delay: 436.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4362) { animation-delay: 436.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4363) { animation-delay: 436.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4364) { animation-delay: 436.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4365) { animation-delay: 436.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4366) { animation-delay: 436.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4367) { animation-delay: 436.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4368) { animation-delay: 436.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4369) { animation-delay: 436.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4370) { animation-delay: 437s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4371) { animation-delay: 437.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4372) { animation-delay: 437.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4373) { animation-delay: 437.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4374) { animation-delay: 437.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4375) { animation-delay: 437.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4376) { animation-delay: 437.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4377) { animation-delay: 437.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4378) { animation-delay: 437.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4379) { animation-delay: 437.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4380) { animation-delay: 438s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4381) { animation-delay: 438.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4382) { animation-delay: 438.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4383) { animation-delay: 438.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4384) { animation-delay: 438.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4385) { animation-delay: 438.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4386) { animation-delay: 438.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4387) { animation-delay: 438.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4388) { animation-delay: 438.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4389) { animation-delay: 438.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4390) { animation-delay: 439s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4391) { animation-delay: 439.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4392) { animation-delay: 439.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4393) { animation-delay: 439.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4394) { animation-delay: 439.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4395) { animation-delay: 439.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4396) { animation-delay: 439.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4397) { animation-delay: 439.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4398) { animation-delay: 439.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4399) { animation-delay: 439.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4400) { animation-delay: 440s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4401) { animation-delay: 440.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4402) { animation-delay: 440.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4403) { animation-delay: 440.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4404) { animation-delay: 440.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4405) { animation-delay: 440.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4406) { animation-delay: 440.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4407) { animation-delay: 440.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4408) { animation-delay: 440.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4409) { animation-delay: 440.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4410) { animation-delay: 441s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4411) { animation-delay: 441.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4412) { animation-delay: 441.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4413) { animation-delay: 441.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4414) { animation-delay: 441.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4415) { animation-delay: 441.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4416) { animation-delay: 441.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4417) { animation-delay: 441.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4418) { animation-delay: 441.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4419) { animation-delay: 441.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4420) { animation-delay: 442s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4421) { animation-delay: 442.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4422) { animation-delay: 442.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4423) { animation-delay: 442.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4424) { animation-delay: 442.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4425) { animation-delay: 442.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4426) { animation-delay: 442.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4427) { animation-delay: 442.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4428) { animation-delay: 442.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4429) { animation-delay: 442.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4430) { animation-delay: 443s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4431) { animation-delay: 443.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4432) { animation-delay: 443.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4433) { animation-delay: 443.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4434) { animation-delay: 443.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4435) { animation-delay: 443.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4436) { animation-delay: 443.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4437) { animation-delay: 443.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4438) { animation-delay: 443.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4439) { animation-delay: 443.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4440) { animation-delay: 444s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4441) { animation-delay: 444.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4442) { animation-delay: 444.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4443) { animation-delay: 444.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4444) { animation-delay: 444.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4445) { animation-delay: 444.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4446) { animation-delay: 444.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4447) { animation-delay: 444.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4448) { animation-delay: 444.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4449) { animation-delay: 444.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4450) { animation-delay: 445s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4451) { animation-delay: 445.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4452) { animation-delay: 445.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4453) { animation-delay: 445.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4454) { animation-delay: 445.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4455) { animation-delay: 445.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4456) { animation-delay: 445.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4457) { animation-delay: 445.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4458) { animation-delay: 445.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4459) { animation-delay: 445.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4460) { animation-delay: 446s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4461) { animation-delay: 446.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4462) { animation-delay: 446.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4463) { animation-delay: 446.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4464) { animation-delay: 446.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4465) { animation-delay: 446.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4466) { animation-delay: 446.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4467) { animation-delay: 446.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4468) { animation-delay: 446.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4469) { animation-delay: 446.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4470) { animation-delay: 447s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4471) { animation-delay: 447.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4472) { animation-delay: 447.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4473) { animation-delay: 447.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4474) { animation-delay: 447.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4475) { animation-delay: 447.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4476) { animation-delay: 447.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4477) { animation-delay: 447.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4478) { animation-delay: 447.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4479) { animation-delay: 447.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4480) { animation-delay: 448s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4481) { animation-delay: 448.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4482) { animation-delay: 448.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4483) { animation-delay: 448.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4484) { animation-delay: 448.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4485) { animation-delay: 448.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4486) { animation-delay: 448.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4487) { animation-delay: 448.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4488) { animation-delay: 448.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4489) { animation-delay: 448.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4490) { animation-delay: 449s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4491) { animation-delay: 449.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4492) { animation-delay: 449.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4493) { animation-delay: 449.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4494) { animation-delay: 449.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4495) { animation-delay: 449.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4496) { animation-delay: 449.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4497) { animation-delay: 449.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4498) { animation-delay: 449.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4499) { animation-delay: 449.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4500) { animation-delay: 450s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4501) { animation-delay: 450.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4502) { animation-delay: 450.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4503) { animation-delay: 450.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4504) { animation-delay: 450.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4505) { animation-delay: 450.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4506) { animation-delay: 450.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4507) { animation-delay: 450.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4508) { animation-delay: 450.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4509) { animation-delay: 450.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4510) { animation-delay: 451s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4511) { animation-delay: 451.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4512) { animation-delay: 451.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4513) { animation-delay: 451.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4514) { animation-delay: 451.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4515) { animation-delay: 451.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4516) { animation-delay: 451.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4517) { animation-delay: 451.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4518) { animation-delay: 451.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4519) { animation-delay: 451.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4520) { animation-delay: 452s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4521) { animation-delay: 452.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4522) { animation-delay: 452.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4523) { animation-delay: 452.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4524) { animation-delay: 452.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4525) { animation-delay: 452.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4526) { animation-delay: 452.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4527) { animation-delay: 452.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4528) { animation-delay: 452.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4529) { animation-delay: 452.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4530) { animation-delay: 453s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4531) { animation-delay: 453.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4532) { animation-delay: 453.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4533) { animation-delay: 453.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4534) { animation-delay: 453.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4535) { animation-delay: 453.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4536) { animation-delay: 453.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4537) { animation-delay: 453.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4538) { animation-delay: 453.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4539) { animation-delay: 453.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4540) { animation-delay: 454s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4541) { animation-delay: 454.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4542) { animation-delay: 454.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4543) { animation-delay: 454.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4544) { animation-delay: 454.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4545) { animation-delay: 454.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4546) { animation-delay: 454.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4547) { animation-delay: 454.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4548) { animation-delay: 454.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4549) { animation-delay: 454.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4550) { animation-delay: 455s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4551) { animation-delay: 455.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4552) { animation-delay: 455.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4553) { animation-delay: 455.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4554) { animation-delay: 455.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4555) { animation-delay: 455.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4556) { animation-delay: 455.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4557) { animation-delay: 455.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4558) { animation-delay: 455.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4559) { animation-delay: 455.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4560) { animation-delay: 456s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4561) { animation-delay: 456.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4562) { animation-delay: 456.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4563) { animation-delay: 456.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4564) { animation-delay: 456.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4565) { animation-delay: 456.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4566) { animation-delay: 456.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4567) { animation-delay: 456.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4568) { animation-delay: 456.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4569) { animation-delay: 456.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4570) { animation-delay: 457s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4571) { animation-delay: 457.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4572) { animation-delay: 457.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4573) { animation-delay: 457.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4574) { animation-delay: 457.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4575) { animation-delay: 457.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4576) { animation-delay: 457.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4577) { animation-delay: 457.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4578) { animation-delay: 457.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4579) { animation-delay: 457.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4580) { animation-delay: 458s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4581) { animation-delay: 458.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4582) { animation-delay: 458.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4583) { animation-delay: 458.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4584) { animation-delay: 458.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4585) { animation-delay: 458.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4586) { animation-delay: 458.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4587) { animation-delay: 458.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4588) { animation-delay: 458.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4589) { animation-delay: 458.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4590) { animation-delay: 459s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4591) { animation-delay: 459.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4592) { animation-delay: 459.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4593) { animation-delay: 459.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4594) { animation-delay: 459.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4595) { animation-delay: 459.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4596) { animation-delay: 459.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4597) { animation-delay: 459.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4598) { animation-delay: 459.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4599) { animation-delay: 459.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4600) { animation-delay: 460s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4601) { animation-delay: 460.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4602) { animation-delay: 460.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4603) { animation-delay: 460.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4604) { animation-delay: 460.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4605) { animation-delay: 460.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4606) { animation-delay: 460.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4607) { animation-delay: 460.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4608) { animation-delay: 460.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4609) { animation-delay: 460.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4610) { animation-delay: 461s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4611) { animation-delay: 461.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4612) { animation-delay: 461.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4613) { animation-delay: 461.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4614) { animation-delay: 461.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4615) { animation-delay: 461.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4616) { animation-delay: 461.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4617) { animation-delay: 461.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4618) { animation-delay: 461.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4619) { animation-delay: 461.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4620) { animation-delay: 462s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4621) { animation-delay: 462.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4622) { animation-delay: 462.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4623) { animation-delay: 462.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4624) { animation-delay: 462.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4625) { animation-delay: 462.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4626) { animation-delay: 462.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4627) { animation-delay: 462.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4628) { animation-delay: 462.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4629) { animation-delay: 462.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4630) { animation-delay: 463s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4631) { animation-delay: 463.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4632) { animation-delay: 463.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4633) { animation-delay: 463.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4634) { animation-delay: 463.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4635) { animation-delay: 463.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4636) { animation-delay: 463.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4637) { animation-delay: 463.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4638) { animation-delay: 463.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4639) { animation-delay: 463.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4640) { animation-delay: 464s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4641) { animation-delay: 464.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4642) { animation-delay: 464.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4643) { animation-delay: 464.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4644) { animation-delay: 464.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4645) { animation-delay: 464.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4646) { animation-delay: 464.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4647) { animation-delay: 464.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4648) { animation-delay: 464.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4649) { animation-delay: 464.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4650) { animation-delay: 465s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4651) { animation-delay: 465.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4652) { animation-delay: 465.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4653) { animation-delay: 465.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4654) { animation-delay: 465.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4655) { animation-delay: 465.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4656) { animation-delay: 465.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4657) { animation-delay: 465.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4658) { animation-delay: 465.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4659) { animation-delay: 465.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4660) { animation-delay: 466s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4661) { animation-delay: 466.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4662) { animation-delay: 466.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4663) { animation-delay: 466.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4664) { animation-delay: 466.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4665) { animation-delay: 466.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4666) { animation-delay: 466.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4667) { animation-delay: 466.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4668) { animation-delay: 466.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4669) { animation-delay: 466.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4670) { animation-delay: 467s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4671) { animation-delay: 467.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4672) { animation-delay: 467.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4673) { animation-delay: 467.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4674) { animation-delay: 467.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4675) { animation-delay: 467.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4676) { animation-delay: 467.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4677) { animation-delay: 467.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4678) { animation-delay: 467.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4679) { animation-delay: 467.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4680) { animation-delay: 468s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4681) { animation-delay: 468.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4682) { animation-delay: 468.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4683) { animation-delay: 468.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4684) { animation-delay: 468.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4685) { animation-delay: 468.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4686) { animation-delay: 468.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4687) { animation-delay: 468.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4688) { animation-delay: 468.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4689) { animation-delay: 468.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4690) { animation-delay: 469s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4691) { animation-delay: 469.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4692) { animation-delay: 469.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4693) { animation-delay: 469.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4694) { animation-delay: 469.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4695) { animation-delay: 469.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4696) { animation-delay: 469.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4697) { animation-delay: 469.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4698) { animation-delay: 469.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4699) { animation-delay: 469.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4700) { animation-delay: 470s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4701) { animation-delay: 470.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4702) { animation-delay: 470.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4703) { animation-delay: 470.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4704) { animation-delay: 470.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4705) { animation-delay: 470.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4706) { animation-delay: 470.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4707) { animation-delay: 470.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4708) { animation-delay: 470.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4709) { animation-delay: 470.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4710) { animation-delay: 471s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4711) { animation-delay: 471.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4712) { animation-delay: 471.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4713) { animation-delay: 471.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4714) { animation-delay: 471.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4715) { animation-delay: 471.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4716) { animation-delay: 471.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4717) { animation-delay: 471.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4718) { animation-delay: 471.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4719) { animation-delay: 471.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4720) { animation-delay: 472s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4721) { animation-delay: 472.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4722) { animation-delay: 472.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4723) { animation-delay: 472.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4724) { animation-delay: 472.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4725) { animation-delay: 472.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4726) { animation-delay: 472.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4727) { animation-delay: 472.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4728) { animation-delay: 472.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4729) { animation-delay: 472.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4730) { animation-delay: 473s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4731) { animation-delay: 473.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4732) { animation-delay: 473.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4733) { animation-delay: 473.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4734) { animation-delay: 473.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4735) { animation-delay: 473.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4736) { animation-delay: 473.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4737) { animation-delay: 473.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4738) { animation-delay: 473.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4739) { animation-delay: 473.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4740) { animation-delay: 474s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4741) { animation-delay: 474.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4742) { animation-delay: 474.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4743) { animation-delay: 474.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4744) { animation-delay: 474.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4745) { animation-delay: 474.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4746) { animation-delay: 474.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4747) { animation-delay: 474.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4748) { animation-delay: 474.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4749) { animation-delay: 474.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4750) { animation-delay: 475s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4751) { animation-delay: 475.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4752) { animation-delay: 475.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4753) { animation-delay: 475.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4754) { animation-delay: 475.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4755) { animation-delay: 475.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4756) { animation-delay: 475.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4757) { animation-delay: 475.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4758) { animation-delay: 475.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4759) { animation-delay: 475.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4760) { animation-delay: 476s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4761) { animation-delay: 476.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4762) { animation-delay: 476.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4763) { animation-delay: 476.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4764) { animation-delay: 476.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4765) { animation-delay: 476.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4766) { animation-delay: 476.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4767) { animation-delay: 476.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4768) { animation-delay: 476.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4769) { animation-delay: 476.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4770) { animation-delay: 477s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4771) { animation-delay: 477.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4772) { animation-delay: 477.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4773) { animation-delay: 477.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4774) { animation-delay: 477.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4775) { animation-delay: 477.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4776) { animation-delay: 477.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4777) { animation-delay: 477.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4778) { animation-delay: 477.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4779) { animation-delay: 477.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4780) { animation-delay: 478s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4781) { animation-delay: 478.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4782) { animation-delay: 478.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4783) { animation-delay: 478.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4784) { animation-delay: 478.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4785) { animation-delay: 478.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4786) { animation-delay: 478.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4787) { animation-delay: 478.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4788) { animation-delay: 478.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4789) { animation-delay: 478.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4790) { animation-delay: 479s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4791) { animation-delay: 479.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4792) { animation-delay: 479.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4793) { animation-delay: 479.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4794) { animation-delay: 479.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4795) { animation-delay: 479.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4796) { animation-delay: 479.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4797) { animation-delay: 479.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4798) { animation-delay: 479.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4799) { animation-delay: 479.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4800) { animation-delay: 480s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4801) { animation-delay: 480.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4802) { animation-delay: 480.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4803) { animation-delay: 480.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4804) { animation-delay: 480.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4805) { animation-delay: 480.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4806) { animation-delay: 480.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4807) { animation-delay: 480.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4808) { animation-delay: 480.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4809) { animation-delay: 480.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4810) { animation-delay: 481s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4811) { animation-delay: 481.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4812) { animation-delay: 481.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4813) { animation-delay: 481.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4814) { animation-delay: 481.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4815) { animation-delay: 481.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4816) { animation-delay: 481.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4817) { animation-delay: 481.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4818) { animation-delay: 481.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4819) { animation-delay: 481.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4820) { animation-delay: 482s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4821) { animation-delay: 482.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4822) { animation-delay: 482.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4823) { animation-delay: 482.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4824) { animation-delay: 482.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4825) { animation-delay: 482.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4826) { animation-delay: 482.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4827) { animation-delay: 482.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4828) { animation-delay: 482.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4829) { animation-delay: 482.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4830) { animation-delay: 483s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4831) { animation-delay: 483.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4832) { animation-delay: 483.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4833) { animation-delay: 483.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4834) { animation-delay: 483.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4835) { animation-delay: 483.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4836) { animation-delay: 483.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4837) { animation-delay: 483.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4838) { animation-delay: 483.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4839) { animation-delay: 483.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4840) { animation-delay: 484s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4841) { animation-delay: 484.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4842) { animation-delay: 484.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4843) { animation-delay: 484.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4844) { animation-delay: 484.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4845) { animation-delay: 484.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4846) { animation-delay: 484.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4847) { animation-delay: 484.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4848) { animation-delay: 484.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4849) { animation-delay: 484.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4850) { animation-delay: 485s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4851) { animation-delay: 485.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4852) { animation-delay: 485.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4853) { animation-delay: 485.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4854) { animation-delay: 485.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4855) { animation-delay: 485.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4856) { animation-delay: 485.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4857) { animation-delay: 485.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4858) { animation-delay: 485.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4859) { animation-delay: 485.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4860) { animation-delay: 486s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4861) { animation-delay: 486.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4862) { animation-delay: 486.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4863) { animation-delay: 486.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4864) { animation-delay: 486.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4865) { animation-delay: 486.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4866) { animation-delay: 486.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4867) { animation-delay: 486.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4868) { animation-delay: 486.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4869) { animation-delay: 486.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4870) { animation-delay: 487s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4871) { animation-delay: 487.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4872) { animation-delay: 487.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4873) { animation-delay: 487.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4874) { animation-delay: 487.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4875) { animation-delay: 487.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4876) { animation-delay: 487.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4877) { animation-delay: 487.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4878) { animation-delay: 487.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4879) { animation-delay: 487.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4880) { animation-delay: 488s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4881) { animation-delay: 488.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4882) { animation-delay: 488.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4883) { animation-delay: 488.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4884) { animation-delay: 488.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4885) { animation-delay: 488.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4886) { animation-delay: 488.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4887) { animation-delay: 488.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4888) { animation-delay: 488.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4889) { animation-delay: 488.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4890) { animation-delay: 489s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4891) { animation-delay: 489.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4892) { animation-delay: 489.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4893) { animation-delay: 489.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4894) { animation-delay: 489.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4895) { animation-delay: 489.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4896) { animation-delay: 489.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4897) { animation-delay: 489.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4898) { animation-delay: 489.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4899) { animation-delay: 489.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4900) { animation-delay: 490s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4901) { animation-delay: 490.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4902) { animation-delay: 490.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4903) { animation-delay: 490.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4904) { animation-delay: 490.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4905) { animation-delay: 490.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4906) { animation-delay: 490.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4907) { animation-delay: 490.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4908) { animation-delay: 490.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4909) { animation-delay: 490.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4910) { animation-delay: 491s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4911) { animation-delay: 491.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4912) { animation-delay: 491.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4913) { animation-delay: 491.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4914) { animation-delay: 491.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4915) { animation-delay: 491.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4916) { animation-delay: 491.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4917) { animation-delay: 491.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4918) { animation-delay: 491.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4919) { animation-delay: 491.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4920) { animation-delay: 492s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4921) { animation-delay: 492.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4922) { animation-delay: 492.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4923) { animation-delay: 492.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4924) { animation-delay: 492.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4925) { animation-delay: 492.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4926) { animation-delay: 492.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4927) { animation-delay: 492.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4928) { animation-delay: 492.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4929) { animation-delay: 492.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4930) { animation-delay: 493s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4931) { animation-delay: 493.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4932) { animation-delay: 493.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4933) { animation-delay: 493.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4934) { animation-delay: 493.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4935) { animation-delay: 493.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4936) { animation-delay: 493.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4937) { animation-delay: 493.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4938) { animation-delay: 493.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4939) { animation-delay: 493.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4940) { animation-delay: 494s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4941) { animation-delay: 494.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4942) { animation-delay: 494.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4943) { animation-delay: 494.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4944) { animation-delay: 494.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4945) { animation-delay: 494.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4946) { animation-delay: 494.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4947) { animation-delay: 494.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4948) { animation-delay: 494.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4949) { animation-delay: 494.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4950) { animation-delay: 495s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4951) { animation-delay: 495.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4952) { animation-delay: 495.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4953) { animation-delay: 495.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4954) { animation-delay: 495.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4955) { animation-delay: 495.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4956) { animation-delay: 495.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4957) { animation-delay: 495.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4958) { animation-delay: 495.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4959) { animation-delay: 495.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4960) { animation-delay: 496s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4961) { animation-delay: 496.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4962) { animation-delay: 496.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4963) { animation-delay: 496.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4964) { animation-delay: 496.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4965) { animation-delay: 496.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4966) { animation-delay: 496.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4967) { animation-delay: 496.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4968) { animation-delay: 496.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4969) { animation-delay: 496.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4970) { animation-delay: 497s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4971) { animation-delay: 497.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4972) { animation-delay: 497.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4973) { animation-delay: 497.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4974) { animation-delay: 497.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4975) { animation-delay: 497.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4976) { animation-delay: 497.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4977) { animation-delay: 497.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4978) { animation-delay: 497.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4979) { animation-delay: 497.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4980) { animation-delay: 498s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4981) { animation-delay: 498.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4982) { animation-delay: 498.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4983) { animation-delay: 498.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4984) { animation-delay: 498.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4985) { animation-delay: 498.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4986) { animation-delay: 498.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4987) { animation-delay: 498.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4988) { animation-delay: 498.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4989) { animation-delay: 498.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4990) { animation-delay: 499s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4991) { animation-delay: 499.1s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4992) { animation-delay: 499.2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4993) { animation-delay: 499.3s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4994) { animation-delay: 499.4s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4995) { animation-delay: 499.5s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4996) { animation-delay: 499.6s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4997) { animation-delay: 499.7s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4998) { animation-delay: 499.8s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(4999) { animation-delay: 499.9s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:nth-child(5000) { animation-delay: 500s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li { cursor: pointer; transition: all .2s; animation: fadeIn 0.5s linear; animation-fill-mode: both; position: relative; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li.media { padding: 1.5rem 1rem; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li.media:hover { transform: translateY(-4px); box-shadow: 0 3px 10px 0 #ccc; transition: all .2s; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li.media .media-left { display: flex; align-items: center; flex-direction: column; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li.media .media-body { width: calc(100vw - (100vw - 100%) - 60px); overflow: hidden; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .avatar, .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .avatar img { height: 40px; width: 40px; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .avatar img { border: 2px solid #fff; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li.mail-read { background-color: #ededed; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li:not(:first-child) { border-top: 1px solid #dae1e7; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details { display: flex; justify-content: space-between; margin-bottom: .75rem; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details .list-group-item-text { color: #626262; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .mail-date { color: #626262; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .mail-message p { color: #626262; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper .user-action { display: flex; align-items: center; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper .user-action .favorite i { font-size: 1.2rem; line-height: 1.5; } .email-application .app-content .content-area-wrapper .email-user-list .no-results { display: none; padding: 1.5rem; text-align: center; } .email-application .app-content .content-area-wrapper .email-user-list .no-results.show { display: block; } .email-application .app-action { padding: 1rem; display: flex; justify-content: space-between; border-bottom: 1px solid #dae1e7; } .email-application .app-action .action-left .selectAll { margin: .25rem 0 0.108rem; } .email-application .app-action .action-left .selectAll .vs-checkbox { margin-right: 1rem; } .email-application .app-action .action-right ul li:not(:last-child) { margin-right: 1rem; } .email-application .app-action .action-right .dropdown-toggle { color: #626262; white-space: normal; } .email-application .app-action .action-right .dropdown-toggle::after { display: none; } .email-application .app-action .action-right i { font-size: 1.5rem; margin-right: 0; } .email-application .email-app-details { position: absolute; display: block; z-index: 2; visibility: hidden; opacity: 0; top: 0; width: calc(100% - 260px); background-color: #f8f8f8; transform: translateX(100%); transition: all .3s ease; height: 100%; border-left: 1px solid #dae1e7; } .email-application .email-app-details.show { visibility: visible; transition: all .3s ease; opacity: 1; transform: translateX(0%); transition: all .3s ease; } .email-application .email-app-details .email-detail-header { display: flex; flex-wrap: wrap; justify-content: space-between; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04); border-bottom: 1px solid #eee; position: relative; padding: 1.643rem 2rem 0; background-color: #fff; } .email-application .email-app-details .email-header-right .dropdown-toggle { color: #626262; } .email-application .email-app-details .email-scroll-area { padding: 0 2rem; position: relative; height: calc(100vh - 18.75rem); height: calc(var(--vh, 1vh) * 100 - 18.75rem); } .email-application .email-app-details .email-scroll-area .email-detail-head { border-bottom: 1px solid #dae1e7; padding: 1.5rem 1rem .75rem; } .email-application .email-app-details .email-scroll-area .email-detail-head .mail-meta-item { text-align: right; } .email-application .email-app-details .email-scroll-area .card-body.mail-message-wrapper { border-bottom: 1px solid #dae1e7 !important; } .email-application .email-app-details .email-scroll-area .mail-label { letter-spacing: .25px; } .email-application .email-app-details .email-scroll-area .email-info-dropup .dropdown-toggle::after { left: 0; margin: 0; } .email-application .email-app-details .email-scroll-area .mail-message p { margin-bottom: 1.5rem; } .email-application .email-app-details .email-scroll-area .mail-attachements { text-transform: uppercase; } .email-application .ql-editor { height: 150px; } @media (max-width: 767.98px) { .email-application .sidebar-content .sidebar-close-icon { visibility: visible !important; } } @media (max-width: 991.98px) { .email-application .app-content .sidebar-left { position: relative; } .email-application .app-content .sidebar-left .email-app-sidebar { transform: translateX(-110%); transition: all .3s ease-in-out; left: 0; position: fixed; z-index: 5; left: -2px; } .email-application .app-content .sidebar-left.show .email-app-sidebar { transform: translateX(13%); transition: all .3s ease; display: block; } .email-application .app-content .content-right { width: 100%; } .email-application .app-content .content-right .app-fixed-search { border-top-left-radius: 0.5rem; } .email-application .app-content .content-right .email-app-details { width: 100%; border-radius: 0.5rem; } .email-application .app-content .content-right .email-app-details .email-scroll-area { height: calc(100vh - 21.5rem); height: calc(var(--vh, 1vh) * 100 - 21.5rem); } } @media (max-width: 575.98px) { .email-application .sidebar-left .email-app-sidebar { left: -1.12rem !important; } .email-application .email-detail-head .mail-meta-item { display: flex; justify-content: space-between; } .email-application .email-detail-head .mail-meta-item .mail-date, .email-application .email-detail-head .mail-meta-item .mail-time { margin: 1rem .75rem 0 0; } .email-application .app-content .content-right .email-app-details .email-scroll-area { height: calc(100vh - 23.25rem); height: calc(var(--vh, 1vh) * 100 - 23.25rem); } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details { display: block; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details .mail-items { width: 70%; display: inline-grid; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details .mail-meta-item { width: 15%; position: absolute; right: 1rem; top: 1.5rem; } .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details .mail-meta-item i, .email-application .app-content .content-area-wrapper .email-user-list .users-list-wrapper li .user-details .mail-meta-item .bullet { display: none; } } @media (max-width: 349.98px) { .email-application .content-area-wrapper .sidebar .email-app-sidebar { width: 230px; left: 3px; } .email-application .app-content .content-area-wrapper .email-user-list { height: calc(100vh - 22.3rem); height: calc(var(--vh, 1vh) * 100 - 22.3rem); } .email-application .email-app-details .email-detail-header { padding: 0 1.2rem; } .email-application .email-app-details .email-detail-header .email-prev, .email-application .email-app-details .email-detail-header .email-next { display: none; } } @-webkit-keyframes fadeIn { 0% { opacity: 0; top: 100px; } 75% { opacity: 0.5; top: 0px; } 100% { opacity: 1; } } ================================================ FILE: public/backend/css/pages/app-todo.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .todo-application .content-area-wrapper { border: 1px solid #dae1e7; border-radius: 0.25rem; } .todo-application .content-area-wrapper .sidebar .todo-sidebar { width: 260px; height: calc(100vh - 13rem); height: calc(var(--vh, 1vh) * 100 - 13rem); background-color: #fff; border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; transition: all .3s ease; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .sidebar-close-icon { position: absolute; right: .25rem; top: .25rem; cursor: pointer; font-size: 1.25rem; z-index: 5; visibility: hidden; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu { width: 100%; box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); padding: .5rem 0; z-index: 3; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .add-task { padding: 1px 1.5rem; margin-bottom: 0.25rem; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .sidebar-menu-list { padding: 0 1.5rem; position: relative; overflow: scroll; height: calc(100% - 5.4rem); } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .list-group .list-group-item { padding-left: 0; padding-right: 0; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .list-group .list-group-item:focus { background-color: transparent; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .list-group .list-group-item:hover { background-color: transparent; color: #626262; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .list-group .list-group-item.active { background-color: transparent; color: #7367f0; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu .list-group .list-group-item i { top: 3px; } .todo-application .content-area-wrapper .sidebar .todo-sidebar .todo-app-menu hr { margin-left: -1.5rem; margin-right: -1.5rem; } .todo-application .content-area-wrapper .modal .todo-item-action { display: flex; align-items: center; justify-content: space-between; width: 6rem; margin-bottom: 1.25rem; } .todo-application .content-area-wrapper .modal .todo-item-action .todo-item-info, .todo-application .content-area-wrapper .modal .todo-item-action .todo-item-favorite, .todo-application .content-area-wrapper .modal .todo-item-action .dropdown { cursor: pointer; font-size: 1.2rem; line-height: 1.5; } .todo-application .content-area-wrapper .modal .todo-item-action .dropdown .dropdown-menu .dropdown-item { padding: .14rem 1.428rem; } .todo-application .content-area-wrapper .modal .todo-item-action .dropdown-toggle::after { display: none; } .todo-application .content-area-wrapper .app-content .content-area-wrapper { position: relative; } .todo-application .content-area-wrapper .completed .todo-title, .todo-application .content-area-wrapper .completed .todo-desc { text-decoration: line-through; } .todo-application .content-area-wrapper .content-right { width: calc(100% - 260px); } .todo-application .content-area-wrapper .content-right .content-wrapper { padding: 0; } .todo-application .content-area-wrapper .content-right .todo-app-list-wrapper { border-left: 1px solid #dae1e7; } .todo-application .content-area-wrapper .content-right .app-fixed-search { padding: .35rem .1rem; border-bottom: 1px solid #dae1e7; background-color: #fff; border-top-right-radius: 0.5rem; } .todo-application .content-area-wrapper .content-right .app-fixed-search .form-control-position { font-size: calc(1rem * 1.1); } .todo-application .content-area-wrapper .content-right .app-fixed-search input { border: 0; background-color: transparent; } .todo-application .content-area-wrapper .content-right .app-fixed-search input:focus { border-color: transparent; box-shadow: none; } .todo-application .content-area-wrapper .content-right .sidebar-toggle { cursor: pointer; margin: 0.5rem 0.99rem; float: left; line-height: 1; } .todo-application .content-area-wrapper .content-right .sidebar-toggle i { font-size: 1.75rem; } .todo-application .content-area-wrapper .content-right .app-content-overlay { top: 0; left: 0; right: 0; bottom: 0; position: absolute; display: block; z-index: 2; visibility: hidden; opacity: 0; transition: all .3s ease; } .todo-application .content-area-wrapper .content-right .app-content-overlay.show { visibility: visible; transition: all .3s ease; opacity: 1; background-color: rgba(0, 0, 0, 0.2); border-radius: .25rem; } .todo-application .content-area-wrapper .content-right .todo-task-list { position: relative; height: calc(100vh - 16.35rem); height: calc(var(--vh, 1vh) * 100 - 16.35rem); } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper { padding: 0; margin: 0; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li { cursor: pointer; transition: all .2s; animation: fadeIn 0.5s linear; animation-fill-mode: both; position: relative; padding: 1.1rem 3rem 1.2rem 2rem; border-top: 1px solid #dae1e7; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:hover { transform: translateY(-4px); box-shadow: 0 3px 10px 0 #ccc; transition: all .2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li .chip-wrapper { display: flex; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li .chip-wrapper .chip { margin-right: 0.25rem; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1) { animation-delay: 0.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2) { animation-delay: 0.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3) { animation-delay: 0.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4) { animation-delay: 0.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(5) { animation-delay: 0.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(6) { animation-delay: 0.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(7) { animation-delay: 0.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(8) { animation-delay: 0.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(9) { animation-delay: 0.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(10) { animation-delay: 1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(11) { animation-delay: 1.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(12) { animation-delay: 1.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(13) { animation-delay: 1.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(14) { animation-delay: 1.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(15) { animation-delay: 1.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(16) { animation-delay: 1.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(17) { animation-delay: 1.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(18) { animation-delay: 1.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(19) { animation-delay: 1.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(20) { animation-delay: 2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(21) { animation-delay: 2.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(22) { animation-delay: 2.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(23) { animation-delay: 2.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(24) { animation-delay: 2.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(25) { animation-delay: 2.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(26) { animation-delay: 2.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(27) { animation-delay: 2.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(28) { animation-delay: 2.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(29) { animation-delay: 2.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(30) { animation-delay: 3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(31) { animation-delay: 3.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(32) { animation-delay: 3.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(33) { animation-delay: 3.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(34) { animation-delay: 3.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(35) { animation-delay: 3.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(36) { animation-delay: 3.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(37) { animation-delay: 3.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(38) { animation-delay: 3.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(39) { animation-delay: 3.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(40) { animation-delay: 4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(41) { animation-delay: 4.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(42) { animation-delay: 4.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(43) { animation-delay: 4.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(44) { animation-delay: 4.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(45) { animation-delay: 4.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(46) { animation-delay: 4.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(47) { animation-delay: 4.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(48) { animation-delay: 4.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(49) { animation-delay: 4.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(50) { animation-delay: 5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(51) { animation-delay: 5.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(52) { animation-delay: 5.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(53) { animation-delay: 5.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(54) { animation-delay: 5.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(55) { animation-delay: 5.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(56) { animation-delay: 5.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(57) { animation-delay: 5.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(58) { animation-delay: 5.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(59) { animation-delay: 5.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(60) { animation-delay: 6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(61) { animation-delay: 6.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(62) { animation-delay: 6.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(63) { animation-delay: 6.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(64) { animation-delay: 6.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(65) { animation-delay: 6.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(66) { animation-delay: 6.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(67) { animation-delay: 6.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(68) { animation-delay: 6.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(69) { animation-delay: 6.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(70) { animation-delay: 7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(71) { animation-delay: 7.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(72) { animation-delay: 7.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(73) { animation-delay: 7.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(74) { animation-delay: 7.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(75) { animation-delay: 7.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(76) { animation-delay: 7.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(77) { animation-delay: 7.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(78) { animation-delay: 7.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(79) { animation-delay: 7.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(80) { animation-delay: 8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(81) { animation-delay: 8.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(82) { animation-delay: 8.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(83) { animation-delay: 8.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(84) { animation-delay: 8.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(85) { animation-delay: 8.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(86) { animation-delay: 8.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(87) { animation-delay: 8.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(88) { animation-delay: 8.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(89) { animation-delay: 8.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(90) { animation-delay: 9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(91) { animation-delay: 9.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(92) { animation-delay: 9.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(93) { animation-delay: 9.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(94) { animation-delay: 9.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(95) { animation-delay: 9.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(96) { animation-delay: 9.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(97) { animation-delay: 9.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(98) { animation-delay: 9.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(99) { animation-delay: 9.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(100) { animation-delay: 10s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(101) { animation-delay: 10.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(102) { animation-delay: 10.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(103) { animation-delay: 10.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(104) { animation-delay: 10.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(105) { animation-delay: 10.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(106) { animation-delay: 10.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(107) { animation-delay: 10.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(108) { animation-delay: 10.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(109) { animation-delay: 10.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(110) { animation-delay: 11s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(111) { animation-delay: 11.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(112) { animation-delay: 11.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(113) { animation-delay: 11.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(114) { animation-delay: 11.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(115) { animation-delay: 11.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(116) { animation-delay: 11.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(117) { animation-delay: 11.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(118) { animation-delay: 11.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(119) { animation-delay: 11.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(120) { animation-delay: 12s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(121) { animation-delay: 12.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(122) { animation-delay: 12.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(123) { animation-delay: 12.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(124) { animation-delay: 12.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(125) { animation-delay: 12.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(126) { animation-delay: 12.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(127) { animation-delay: 12.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(128) { animation-delay: 12.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(129) { animation-delay: 12.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(130) { animation-delay: 13s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(131) { animation-delay: 13.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(132) { animation-delay: 13.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(133) { animation-delay: 13.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(134) { animation-delay: 13.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(135) { animation-delay: 13.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(136) { animation-delay: 13.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(137) { animation-delay: 13.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(138) { animation-delay: 13.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(139) { animation-delay: 13.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(140) { animation-delay: 14s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(141) { animation-delay: 14.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(142) { animation-delay: 14.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(143) { animation-delay: 14.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(144) { animation-delay: 14.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(145) { animation-delay: 14.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(146) { animation-delay: 14.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(147) { animation-delay: 14.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(148) { animation-delay: 14.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(149) { animation-delay: 14.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(150) { animation-delay: 15s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(151) { animation-delay: 15.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(152) { animation-delay: 15.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(153) { animation-delay: 15.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(154) { animation-delay: 15.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(155) { animation-delay: 15.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(156) { animation-delay: 15.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(157) { animation-delay: 15.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(158) { animation-delay: 15.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(159) { animation-delay: 15.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(160) { animation-delay: 16s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(161) { animation-delay: 16.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(162) { animation-delay: 16.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(163) { animation-delay: 16.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(164) { animation-delay: 16.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(165) { animation-delay: 16.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(166) { animation-delay: 16.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(167) { animation-delay: 16.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(168) { animation-delay: 16.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(169) { animation-delay: 16.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(170) { animation-delay: 17s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(171) { animation-delay: 17.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(172) { animation-delay: 17.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(173) { animation-delay: 17.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(174) { animation-delay: 17.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(175) { animation-delay: 17.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(176) { animation-delay: 17.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(177) { animation-delay: 17.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(178) { animation-delay: 17.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(179) { animation-delay: 17.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(180) { animation-delay: 18s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(181) { animation-delay: 18.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(182) { animation-delay: 18.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(183) { animation-delay: 18.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(184) { animation-delay: 18.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(185) { animation-delay: 18.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(186) { animation-delay: 18.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(187) { animation-delay: 18.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(188) { animation-delay: 18.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(189) { animation-delay: 18.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(190) { animation-delay: 19s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(191) { animation-delay: 19.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(192) { animation-delay: 19.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(193) { animation-delay: 19.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(194) { animation-delay: 19.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(195) { animation-delay: 19.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(196) { animation-delay: 19.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(197) { animation-delay: 19.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(198) { animation-delay: 19.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(199) { animation-delay: 19.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(200) { animation-delay: 20s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(201) { animation-delay: 20.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(202) { animation-delay: 20.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(203) { animation-delay: 20.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(204) { animation-delay: 20.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(205) { animation-delay: 20.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(206) { animation-delay: 20.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(207) { animation-delay: 20.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(208) { animation-delay: 20.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(209) { animation-delay: 20.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(210) { animation-delay: 21s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(211) { animation-delay: 21.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(212) { animation-delay: 21.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(213) { animation-delay: 21.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(214) { animation-delay: 21.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(215) { animation-delay: 21.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(216) { animation-delay: 21.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(217) { animation-delay: 21.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(218) { animation-delay: 21.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(219) { animation-delay: 21.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(220) { animation-delay: 22s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(221) { animation-delay: 22.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(222) { animation-delay: 22.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(223) { animation-delay: 22.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(224) { animation-delay: 22.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(225) { animation-delay: 22.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(226) { animation-delay: 22.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(227) { animation-delay: 22.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(228) { animation-delay: 22.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(229) { animation-delay: 22.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(230) { animation-delay: 23s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(231) { animation-delay: 23.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(232) { animation-delay: 23.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(233) { animation-delay: 23.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(234) { animation-delay: 23.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(235) { animation-delay: 23.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(236) { animation-delay: 23.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(237) { animation-delay: 23.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(238) { animation-delay: 23.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(239) { animation-delay: 23.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(240) { animation-delay: 24s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(241) { animation-delay: 24.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(242) { animation-delay: 24.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(243) { animation-delay: 24.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(244) { animation-delay: 24.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(245) { animation-delay: 24.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(246) { animation-delay: 24.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(247) { animation-delay: 24.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(248) { animation-delay: 24.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(249) { animation-delay: 24.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(250) { animation-delay: 25s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(251) { animation-delay: 25.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(252) { animation-delay: 25.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(253) { animation-delay: 25.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(254) { animation-delay: 25.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(255) { animation-delay: 25.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(256) { animation-delay: 25.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(257) { animation-delay: 25.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(258) { animation-delay: 25.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(259) { animation-delay: 25.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(260) { animation-delay: 26s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(261) { animation-delay: 26.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(262) { animation-delay: 26.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(263) { animation-delay: 26.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(264) { animation-delay: 26.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(265) { animation-delay: 26.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(266) { animation-delay: 26.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(267) { animation-delay: 26.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(268) { animation-delay: 26.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(269) { animation-delay: 26.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(270) { animation-delay: 27s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(271) { animation-delay: 27.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(272) { animation-delay: 27.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(273) { animation-delay: 27.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(274) { animation-delay: 27.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(275) { animation-delay: 27.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(276) { animation-delay: 27.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(277) { animation-delay: 27.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(278) { animation-delay: 27.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(279) { animation-delay: 27.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(280) { animation-delay: 28s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(281) { animation-delay: 28.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(282) { animation-delay: 28.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(283) { animation-delay: 28.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(284) { animation-delay: 28.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(285) { animation-delay: 28.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(286) { animation-delay: 28.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(287) { animation-delay: 28.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(288) { animation-delay: 28.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(289) { animation-delay: 28.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(290) { animation-delay: 29s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(291) { animation-delay: 29.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(292) { animation-delay: 29.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(293) { animation-delay: 29.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(294) { animation-delay: 29.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(295) { animation-delay: 29.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(296) { animation-delay: 29.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(297) { animation-delay: 29.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(298) { animation-delay: 29.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(299) { animation-delay: 29.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(300) { animation-delay: 30s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(301) { animation-delay: 30.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(302) { animation-delay: 30.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(303) { animation-delay: 30.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(304) { animation-delay: 30.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(305) { animation-delay: 30.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(306) { animation-delay: 30.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(307) { animation-delay: 30.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(308) { animation-delay: 30.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(309) { animation-delay: 30.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(310) { animation-delay: 31s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(311) { animation-delay: 31.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(312) { animation-delay: 31.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(313) { animation-delay: 31.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(314) { animation-delay: 31.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(315) { animation-delay: 31.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(316) { animation-delay: 31.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(317) { animation-delay: 31.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(318) { animation-delay: 31.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(319) { animation-delay: 31.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(320) { animation-delay: 32s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(321) { animation-delay: 32.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(322) { animation-delay: 32.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(323) { animation-delay: 32.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(324) { animation-delay: 32.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(325) { animation-delay: 32.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(326) { animation-delay: 32.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(327) { animation-delay: 32.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(328) { animation-delay: 32.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(329) { animation-delay: 32.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(330) { animation-delay: 33s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(331) { animation-delay: 33.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(332) { animation-delay: 33.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(333) { animation-delay: 33.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(334) { animation-delay: 33.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(335) { animation-delay: 33.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(336) { animation-delay: 33.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(337) { animation-delay: 33.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(338) { animation-delay: 33.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(339) { animation-delay: 33.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(340) { animation-delay: 34s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(341) { animation-delay: 34.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(342) { animation-delay: 34.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(343) { animation-delay: 34.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(344) { animation-delay: 34.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(345) { animation-delay: 34.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(346) { animation-delay: 34.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(347) { animation-delay: 34.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(348) { animation-delay: 34.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(349) { animation-delay: 34.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(350) { animation-delay: 35s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(351) { animation-delay: 35.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(352) { animation-delay: 35.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(353) { animation-delay: 35.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(354) { animation-delay: 35.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(355) { animation-delay: 35.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(356) { animation-delay: 35.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(357) { animation-delay: 35.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(358) { animation-delay: 35.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(359) { animation-delay: 35.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(360) { animation-delay: 36s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(361) { animation-delay: 36.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(362) { animation-delay: 36.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(363) { animation-delay: 36.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(364) { animation-delay: 36.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(365) { animation-delay: 36.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(366) { animation-delay: 36.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(367) { animation-delay: 36.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(368) { animation-delay: 36.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(369) { animation-delay: 36.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(370) { animation-delay: 37s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(371) { animation-delay: 37.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(372) { animation-delay: 37.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(373) { animation-delay: 37.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(374) { animation-delay: 37.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(375) { animation-delay: 37.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(376) { animation-delay: 37.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(377) { animation-delay: 37.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(378) { animation-delay: 37.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(379) { animation-delay: 37.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(380) { animation-delay: 38s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(381) { animation-delay: 38.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(382) { animation-delay: 38.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(383) { animation-delay: 38.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(384) { animation-delay: 38.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(385) { animation-delay: 38.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(386) { animation-delay: 38.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(387) { animation-delay: 38.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(388) { animation-delay: 38.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(389) { animation-delay: 38.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(390) { animation-delay: 39s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(391) { animation-delay: 39.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(392) { animation-delay: 39.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(393) { animation-delay: 39.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(394) { animation-delay: 39.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(395) { animation-delay: 39.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(396) { animation-delay: 39.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(397) { animation-delay: 39.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(398) { animation-delay: 39.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(399) { animation-delay: 39.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(400) { animation-delay: 40s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(401) { animation-delay: 40.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(402) { animation-delay: 40.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(403) { animation-delay: 40.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(404) { animation-delay: 40.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(405) { animation-delay: 40.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(406) { animation-delay: 40.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(407) { animation-delay: 40.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(408) { animation-delay: 40.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(409) { animation-delay: 40.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(410) { animation-delay: 41s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(411) { animation-delay: 41.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(412) { animation-delay: 41.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(413) { animation-delay: 41.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(414) { animation-delay: 41.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(415) { animation-delay: 41.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(416) { animation-delay: 41.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(417) { animation-delay: 41.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(418) { animation-delay: 41.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(419) { animation-delay: 41.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(420) { animation-delay: 42s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(421) { animation-delay: 42.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(422) { animation-delay: 42.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(423) { animation-delay: 42.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(424) { animation-delay: 42.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(425) { animation-delay: 42.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(426) { animation-delay: 42.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(427) { animation-delay: 42.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(428) { animation-delay: 42.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(429) { animation-delay: 42.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(430) { animation-delay: 43s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(431) { animation-delay: 43.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(432) { animation-delay: 43.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(433) { animation-delay: 43.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(434) { animation-delay: 43.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(435) { animation-delay: 43.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(436) { animation-delay: 43.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(437) { animation-delay: 43.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(438) { animation-delay: 43.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(439) { animation-delay: 43.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(440) { animation-delay: 44s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(441) { animation-delay: 44.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(442) { animation-delay: 44.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(443) { animation-delay: 44.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(444) { animation-delay: 44.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(445) { animation-delay: 44.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(446) { animation-delay: 44.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(447) { animation-delay: 44.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(448) { animation-delay: 44.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(449) { animation-delay: 44.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(450) { animation-delay: 45s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(451) { animation-delay: 45.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(452) { animation-delay: 45.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(453) { animation-delay: 45.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(454) { animation-delay: 45.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(455) { animation-delay: 45.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(456) { animation-delay: 45.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(457) { animation-delay: 45.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(458) { animation-delay: 45.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(459) { animation-delay: 45.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(460) { animation-delay: 46s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(461) { animation-delay: 46.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(462) { animation-delay: 46.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(463) { animation-delay: 46.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(464) { animation-delay: 46.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(465) { animation-delay: 46.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(466) { animation-delay: 46.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(467) { animation-delay: 46.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(468) { animation-delay: 46.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(469) { animation-delay: 46.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(470) { animation-delay: 47s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(471) { animation-delay: 47.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(472) { animation-delay: 47.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(473) { animation-delay: 47.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(474) { animation-delay: 47.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(475) { animation-delay: 47.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(476) { animation-delay: 47.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(477) { animation-delay: 47.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(478) { animation-delay: 47.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(479) { animation-delay: 47.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(480) { animation-delay: 48s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(481) { animation-delay: 48.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(482) { animation-delay: 48.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(483) { animation-delay: 48.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(484) { animation-delay: 48.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(485) { animation-delay: 48.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(486) { animation-delay: 48.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(487) { animation-delay: 48.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(488) { animation-delay: 48.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(489) { animation-delay: 48.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(490) { animation-delay: 49s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(491) { animation-delay: 49.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(492) { animation-delay: 49.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(493) { animation-delay: 49.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(494) { animation-delay: 49.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(495) { animation-delay: 49.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(496) { animation-delay: 49.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(497) { animation-delay: 49.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(498) { animation-delay: 49.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(499) { animation-delay: 49.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(500) { animation-delay: 50s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(501) { animation-delay: 50.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(502) { animation-delay: 50.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(503) { animation-delay: 50.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(504) { animation-delay: 50.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(505) { animation-delay: 50.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(506) { animation-delay: 50.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(507) { animation-delay: 50.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(508) { animation-delay: 50.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(509) { animation-delay: 50.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(510) { animation-delay: 51s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(511) { animation-delay: 51.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(512) { animation-delay: 51.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(513) { animation-delay: 51.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(514) { animation-delay: 51.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(515) { animation-delay: 51.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(516) { animation-delay: 51.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(517) { animation-delay: 51.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(518) { animation-delay: 51.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(519) { animation-delay: 51.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(520) { animation-delay: 52s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(521) { animation-delay: 52.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(522) { animation-delay: 52.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(523) { animation-delay: 52.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(524) { animation-delay: 52.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(525) { animation-delay: 52.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(526) { animation-delay: 52.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(527) { animation-delay: 52.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(528) { animation-delay: 52.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(529) { animation-delay: 52.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(530) { animation-delay: 53s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(531) { animation-delay: 53.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(532) { animation-delay: 53.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(533) { animation-delay: 53.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(534) { animation-delay: 53.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(535) { animation-delay: 53.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(536) { animation-delay: 53.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(537) { animation-delay: 53.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(538) { animation-delay: 53.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(539) { animation-delay: 53.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(540) { animation-delay: 54s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(541) { animation-delay: 54.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(542) { animation-delay: 54.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(543) { animation-delay: 54.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(544) { animation-delay: 54.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(545) { animation-delay: 54.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(546) { animation-delay: 54.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(547) { animation-delay: 54.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(548) { animation-delay: 54.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(549) { animation-delay: 54.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(550) { animation-delay: 55s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(551) { animation-delay: 55.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(552) { animation-delay: 55.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(553) { animation-delay: 55.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(554) { animation-delay: 55.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(555) { animation-delay: 55.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(556) { animation-delay: 55.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(557) { animation-delay: 55.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(558) { animation-delay: 55.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(559) { animation-delay: 55.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(560) { animation-delay: 56s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(561) { animation-delay: 56.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(562) { animation-delay: 56.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(563) { animation-delay: 56.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(564) { animation-delay: 56.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(565) { animation-delay: 56.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(566) { animation-delay: 56.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(567) { animation-delay: 56.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(568) { animation-delay: 56.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(569) { animation-delay: 56.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(570) { animation-delay: 57s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(571) { animation-delay: 57.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(572) { animation-delay: 57.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(573) { animation-delay: 57.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(574) { animation-delay: 57.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(575) { animation-delay: 57.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(576) { animation-delay: 57.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(577) { animation-delay: 57.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(578) { animation-delay: 57.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(579) { animation-delay: 57.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(580) { animation-delay: 58s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(581) { animation-delay: 58.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(582) { animation-delay: 58.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(583) { animation-delay: 58.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(584) { animation-delay: 58.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(585) { animation-delay: 58.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(586) { animation-delay: 58.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(587) { animation-delay: 58.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(588) { animation-delay: 58.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(589) { animation-delay: 58.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(590) { animation-delay: 59s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(591) { animation-delay: 59.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(592) { animation-delay: 59.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(593) { animation-delay: 59.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(594) { animation-delay: 59.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(595) { animation-delay: 59.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(596) { animation-delay: 59.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(597) { animation-delay: 59.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(598) { animation-delay: 59.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(599) { animation-delay: 59.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(600) { animation-delay: 60s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(601) { animation-delay: 60.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(602) { animation-delay: 60.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(603) { animation-delay: 60.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(604) { animation-delay: 60.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(605) { animation-delay: 60.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(606) { animation-delay: 60.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(607) { animation-delay: 60.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(608) { animation-delay: 60.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(609) { animation-delay: 60.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(610) { animation-delay: 61s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(611) { animation-delay: 61.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(612) { animation-delay: 61.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(613) { animation-delay: 61.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(614) { animation-delay: 61.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(615) { animation-delay: 61.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(616) { animation-delay: 61.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(617) { animation-delay: 61.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(618) { animation-delay: 61.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(619) { animation-delay: 61.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(620) { animation-delay: 62s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(621) { animation-delay: 62.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(622) { animation-delay: 62.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(623) { animation-delay: 62.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(624) { animation-delay: 62.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(625) { animation-delay: 62.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(626) { animation-delay: 62.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(627) { animation-delay: 62.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(628) { animation-delay: 62.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(629) { animation-delay: 62.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(630) { animation-delay: 63s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(631) { animation-delay: 63.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(632) { animation-delay: 63.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(633) { animation-delay: 63.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(634) { animation-delay: 63.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(635) { animation-delay: 63.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(636) { animation-delay: 63.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(637) { animation-delay: 63.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(638) { animation-delay: 63.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(639) { animation-delay: 63.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(640) { animation-delay: 64s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(641) { animation-delay: 64.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(642) { animation-delay: 64.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(643) { animation-delay: 64.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(644) { animation-delay: 64.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(645) { animation-delay: 64.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(646) { animation-delay: 64.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(647) { animation-delay: 64.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(648) { animation-delay: 64.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(649) { animation-delay: 64.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(650) { animation-delay: 65s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(651) { animation-delay: 65.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(652) { animation-delay: 65.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(653) { animation-delay: 65.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(654) { animation-delay: 65.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(655) { animation-delay: 65.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(656) { animation-delay: 65.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(657) { animation-delay: 65.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(658) { animation-delay: 65.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(659) { animation-delay: 65.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(660) { animation-delay: 66s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(661) { animation-delay: 66.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(662) { animation-delay: 66.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(663) { animation-delay: 66.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(664) { animation-delay: 66.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(665) { animation-delay: 66.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(666) { animation-delay: 66.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(667) { animation-delay: 66.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(668) { animation-delay: 66.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(669) { animation-delay: 66.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(670) { animation-delay: 67s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(671) { animation-delay: 67.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(672) { animation-delay: 67.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(673) { animation-delay: 67.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(674) { animation-delay: 67.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(675) { animation-delay: 67.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(676) { animation-delay: 67.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(677) { animation-delay: 67.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(678) { animation-delay: 67.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(679) { animation-delay: 67.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(680) { animation-delay: 68s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(681) { animation-delay: 68.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(682) { animation-delay: 68.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(683) { animation-delay: 68.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(684) { animation-delay: 68.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(685) { animation-delay: 68.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(686) { animation-delay: 68.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(687) { animation-delay: 68.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(688) { animation-delay: 68.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(689) { animation-delay: 68.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(690) { animation-delay: 69s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(691) { animation-delay: 69.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(692) { animation-delay: 69.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(693) { animation-delay: 69.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(694) { animation-delay: 69.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(695) { animation-delay: 69.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(696) { animation-delay: 69.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(697) { animation-delay: 69.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(698) { animation-delay: 69.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(699) { animation-delay: 69.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(700) { animation-delay: 70s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(701) { animation-delay: 70.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(702) { animation-delay: 70.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(703) { animation-delay: 70.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(704) { animation-delay: 70.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(705) { animation-delay: 70.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(706) { animation-delay: 70.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(707) { animation-delay: 70.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(708) { animation-delay: 70.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(709) { animation-delay: 70.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(710) { animation-delay: 71s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(711) { animation-delay: 71.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(712) { animation-delay: 71.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(713) { animation-delay: 71.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(714) { animation-delay: 71.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(715) { animation-delay: 71.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(716) { animation-delay: 71.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(717) { animation-delay: 71.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(718) { animation-delay: 71.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(719) { animation-delay: 71.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(720) { animation-delay: 72s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(721) { animation-delay: 72.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(722) { animation-delay: 72.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(723) { animation-delay: 72.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(724) { animation-delay: 72.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(725) { animation-delay: 72.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(726) { animation-delay: 72.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(727) { animation-delay: 72.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(728) { animation-delay: 72.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(729) { animation-delay: 72.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(730) { animation-delay: 73s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(731) { animation-delay: 73.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(732) { animation-delay: 73.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(733) { animation-delay: 73.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(734) { animation-delay: 73.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(735) { animation-delay: 73.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(736) { animation-delay: 73.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(737) { animation-delay: 73.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(738) { animation-delay: 73.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(739) { animation-delay: 73.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(740) { animation-delay: 74s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(741) { animation-delay: 74.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(742) { animation-delay: 74.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(743) { animation-delay: 74.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(744) { animation-delay: 74.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(745) { animation-delay: 74.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(746) { animation-delay: 74.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(747) { animation-delay: 74.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(748) { animation-delay: 74.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(749) { animation-delay: 74.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(750) { animation-delay: 75s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(751) { animation-delay: 75.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(752) { animation-delay: 75.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(753) { animation-delay: 75.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(754) { animation-delay: 75.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(755) { animation-delay: 75.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(756) { animation-delay: 75.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(757) { animation-delay: 75.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(758) { animation-delay: 75.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(759) { animation-delay: 75.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(760) { animation-delay: 76s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(761) { animation-delay: 76.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(762) { animation-delay: 76.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(763) { animation-delay: 76.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(764) { animation-delay: 76.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(765) { animation-delay: 76.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(766) { animation-delay: 76.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(767) { animation-delay: 76.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(768) { animation-delay: 76.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(769) { animation-delay: 76.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(770) { animation-delay: 77s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(771) { animation-delay: 77.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(772) { animation-delay: 77.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(773) { animation-delay: 77.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(774) { animation-delay: 77.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(775) { animation-delay: 77.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(776) { animation-delay: 77.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(777) { animation-delay: 77.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(778) { animation-delay: 77.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(779) { animation-delay: 77.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(780) { animation-delay: 78s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(781) { animation-delay: 78.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(782) { animation-delay: 78.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(783) { animation-delay: 78.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(784) { animation-delay: 78.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(785) { animation-delay: 78.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(786) { animation-delay: 78.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(787) { animation-delay: 78.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(788) { animation-delay: 78.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(789) { animation-delay: 78.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(790) { animation-delay: 79s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(791) { animation-delay: 79.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(792) { animation-delay: 79.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(793) { animation-delay: 79.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(794) { animation-delay: 79.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(795) { animation-delay: 79.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(796) { animation-delay: 79.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(797) { animation-delay: 79.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(798) { animation-delay: 79.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(799) { animation-delay: 79.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(800) { animation-delay: 80s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(801) { animation-delay: 80.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(802) { animation-delay: 80.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(803) { animation-delay: 80.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(804) { animation-delay: 80.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(805) { animation-delay: 80.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(806) { animation-delay: 80.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(807) { animation-delay: 80.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(808) { animation-delay: 80.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(809) { animation-delay: 80.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(810) { animation-delay: 81s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(811) { animation-delay: 81.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(812) { animation-delay: 81.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(813) { animation-delay: 81.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(814) { animation-delay: 81.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(815) { animation-delay: 81.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(816) { animation-delay: 81.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(817) { animation-delay: 81.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(818) { animation-delay: 81.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(819) { animation-delay: 81.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(820) { animation-delay: 82s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(821) { animation-delay: 82.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(822) { animation-delay: 82.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(823) { animation-delay: 82.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(824) { animation-delay: 82.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(825) { animation-delay: 82.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(826) { animation-delay: 82.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(827) { animation-delay: 82.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(828) { animation-delay: 82.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(829) { animation-delay: 82.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(830) { animation-delay: 83s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(831) { animation-delay: 83.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(832) { animation-delay: 83.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(833) { animation-delay: 83.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(834) { animation-delay: 83.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(835) { animation-delay: 83.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(836) { animation-delay: 83.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(837) { animation-delay: 83.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(838) { animation-delay: 83.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(839) { animation-delay: 83.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(840) { animation-delay: 84s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(841) { animation-delay: 84.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(842) { animation-delay: 84.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(843) { animation-delay: 84.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(844) { animation-delay: 84.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(845) { animation-delay: 84.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(846) { animation-delay: 84.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(847) { animation-delay: 84.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(848) { animation-delay: 84.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(849) { animation-delay: 84.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(850) { animation-delay: 85s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(851) { animation-delay: 85.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(852) { animation-delay: 85.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(853) { animation-delay: 85.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(854) { animation-delay: 85.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(855) { animation-delay: 85.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(856) { animation-delay: 85.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(857) { animation-delay: 85.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(858) { animation-delay: 85.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(859) { animation-delay: 85.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(860) { animation-delay: 86s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(861) { animation-delay: 86.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(862) { animation-delay: 86.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(863) { animation-delay: 86.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(864) { animation-delay: 86.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(865) { animation-delay: 86.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(866) { animation-delay: 86.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(867) { animation-delay: 86.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(868) { animation-delay: 86.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(869) { animation-delay: 86.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(870) { animation-delay: 87s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(871) { animation-delay: 87.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(872) { animation-delay: 87.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(873) { animation-delay: 87.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(874) { animation-delay: 87.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(875) { animation-delay: 87.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(876) { animation-delay: 87.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(877) { animation-delay: 87.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(878) { animation-delay: 87.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(879) { animation-delay: 87.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(880) { animation-delay: 88s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(881) { animation-delay: 88.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(882) { animation-delay: 88.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(883) { animation-delay: 88.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(884) { animation-delay: 88.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(885) { animation-delay: 88.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(886) { animation-delay: 88.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(887) { animation-delay: 88.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(888) { animation-delay: 88.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(889) { animation-delay: 88.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(890) { animation-delay: 89s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(891) { animation-delay: 89.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(892) { animation-delay: 89.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(893) { animation-delay: 89.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(894) { animation-delay: 89.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(895) { animation-delay: 89.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(896) { animation-delay: 89.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(897) { animation-delay: 89.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(898) { animation-delay: 89.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(899) { animation-delay: 89.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(900) { animation-delay: 90s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(901) { animation-delay: 90.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(902) { animation-delay: 90.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(903) { animation-delay: 90.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(904) { animation-delay: 90.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(905) { animation-delay: 90.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(906) { animation-delay: 90.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(907) { animation-delay: 90.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(908) { animation-delay: 90.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(909) { animation-delay: 90.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(910) { animation-delay: 91s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(911) { animation-delay: 91.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(912) { animation-delay: 91.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(913) { animation-delay: 91.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(914) { animation-delay: 91.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(915) { animation-delay: 91.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(916) { animation-delay: 91.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(917) { animation-delay: 91.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(918) { animation-delay: 91.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(919) { animation-delay: 91.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(920) { animation-delay: 92s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(921) { animation-delay: 92.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(922) { animation-delay: 92.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(923) { animation-delay: 92.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(924) { animation-delay: 92.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(925) { animation-delay: 92.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(926) { animation-delay: 92.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(927) { animation-delay: 92.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(928) { animation-delay: 92.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(929) { animation-delay: 92.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(930) { animation-delay: 93s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(931) { animation-delay: 93.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(932) { animation-delay: 93.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(933) { animation-delay: 93.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(934) { animation-delay: 93.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(935) { animation-delay: 93.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(936) { animation-delay: 93.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(937) { animation-delay: 93.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(938) { animation-delay: 93.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(939) { animation-delay: 93.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(940) { animation-delay: 94s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(941) { animation-delay: 94.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(942) { animation-delay: 94.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(943) { animation-delay: 94.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(944) { animation-delay: 94.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(945) { animation-delay: 94.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(946) { animation-delay: 94.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(947) { animation-delay: 94.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(948) { animation-delay: 94.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(949) { animation-delay: 94.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(950) { animation-delay: 95s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(951) { animation-delay: 95.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(952) { animation-delay: 95.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(953) { animation-delay: 95.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(954) { animation-delay: 95.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(955) { animation-delay: 95.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(956) { animation-delay: 95.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(957) { animation-delay: 95.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(958) { animation-delay: 95.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(959) { animation-delay: 95.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(960) { animation-delay: 96s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(961) { animation-delay: 96.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(962) { animation-delay: 96.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(963) { animation-delay: 96.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(964) { animation-delay: 96.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(965) { animation-delay: 96.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(966) { animation-delay: 96.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(967) { animation-delay: 96.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(968) { animation-delay: 96.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(969) { animation-delay: 96.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(970) { animation-delay: 97s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(971) { animation-delay: 97.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(972) { animation-delay: 97.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(973) { animation-delay: 97.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(974) { animation-delay: 97.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(975) { animation-delay: 97.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(976) { animation-delay: 97.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(977) { animation-delay: 97.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(978) { animation-delay: 97.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(979) { animation-delay: 97.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(980) { animation-delay: 98s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(981) { animation-delay: 98.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(982) { animation-delay: 98.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(983) { animation-delay: 98.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(984) { animation-delay: 98.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(985) { animation-delay: 98.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(986) { animation-delay: 98.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(987) { animation-delay: 98.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(988) { animation-delay: 98.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(989) { animation-delay: 98.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(990) { animation-delay: 99s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(991) { animation-delay: 99.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(992) { animation-delay: 99.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(993) { animation-delay: 99.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(994) { animation-delay: 99.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(995) { animation-delay: 99.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(996) { animation-delay: 99.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(997) { animation-delay: 99.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(998) { animation-delay: 99.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(999) { animation-delay: 99.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1000) { animation-delay: 100s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1001) { animation-delay: 100.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1002) { animation-delay: 100.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1003) { animation-delay: 100.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1004) { animation-delay: 100.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1005) { animation-delay: 100.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1006) { animation-delay: 100.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1007) { animation-delay: 100.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1008) { animation-delay: 100.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1009) { animation-delay: 100.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1010) { animation-delay: 101s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1011) { animation-delay: 101.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1012) { animation-delay: 101.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1013) { animation-delay: 101.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1014) { animation-delay: 101.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1015) { animation-delay: 101.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1016) { animation-delay: 101.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1017) { animation-delay: 101.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1018) { animation-delay: 101.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1019) { animation-delay: 101.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1020) { animation-delay: 102s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1021) { animation-delay: 102.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1022) { animation-delay: 102.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1023) { animation-delay: 102.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1024) { animation-delay: 102.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1025) { animation-delay: 102.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1026) { animation-delay: 102.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1027) { animation-delay: 102.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1028) { animation-delay: 102.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1029) { animation-delay: 102.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1030) { animation-delay: 103s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1031) { animation-delay: 103.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1032) { animation-delay: 103.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1033) { animation-delay: 103.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1034) { animation-delay: 103.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1035) { animation-delay: 103.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1036) { animation-delay: 103.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1037) { animation-delay: 103.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1038) { animation-delay: 103.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1039) { animation-delay: 103.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1040) { animation-delay: 104s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1041) { animation-delay: 104.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1042) { animation-delay: 104.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1043) { animation-delay: 104.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1044) { animation-delay: 104.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1045) { animation-delay: 104.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1046) { animation-delay: 104.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1047) { animation-delay: 104.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1048) { animation-delay: 104.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1049) { animation-delay: 104.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1050) { animation-delay: 105s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1051) { animation-delay: 105.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1052) { animation-delay: 105.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1053) { animation-delay: 105.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1054) { animation-delay: 105.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1055) { animation-delay: 105.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1056) { animation-delay: 105.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1057) { animation-delay: 105.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1058) { animation-delay: 105.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1059) { animation-delay: 105.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1060) { animation-delay: 106s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1061) { animation-delay: 106.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1062) { animation-delay: 106.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1063) { animation-delay: 106.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1064) { animation-delay: 106.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1065) { animation-delay: 106.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1066) { animation-delay: 106.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1067) { animation-delay: 106.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1068) { animation-delay: 106.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1069) { animation-delay: 106.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1070) { animation-delay: 107s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1071) { animation-delay: 107.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1072) { animation-delay: 107.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1073) { animation-delay: 107.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1074) { animation-delay: 107.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1075) { animation-delay: 107.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1076) { animation-delay: 107.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1077) { animation-delay: 107.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1078) { animation-delay: 107.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1079) { animation-delay: 107.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1080) { animation-delay: 108s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1081) { animation-delay: 108.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1082) { animation-delay: 108.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1083) { animation-delay: 108.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1084) { animation-delay: 108.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1085) { animation-delay: 108.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1086) { animation-delay: 108.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1087) { animation-delay: 108.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1088) { animation-delay: 108.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1089) { animation-delay: 108.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1090) { animation-delay: 109s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1091) { animation-delay: 109.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1092) { animation-delay: 109.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1093) { animation-delay: 109.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1094) { animation-delay: 109.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1095) { animation-delay: 109.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1096) { animation-delay: 109.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1097) { animation-delay: 109.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1098) { animation-delay: 109.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1099) { animation-delay: 109.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1100) { animation-delay: 110s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1101) { animation-delay: 110.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1102) { animation-delay: 110.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1103) { animation-delay: 110.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1104) { animation-delay: 110.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1105) { animation-delay: 110.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1106) { animation-delay: 110.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1107) { animation-delay: 110.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1108) { animation-delay: 110.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1109) { animation-delay: 110.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1110) { animation-delay: 111s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1111) { animation-delay: 111.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1112) { animation-delay: 111.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1113) { animation-delay: 111.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1114) { animation-delay: 111.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1115) { animation-delay: 111.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1116) { animation-delay: 111.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1117) { animation-delay: 111.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1118) { animation-delay: 111.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1119) { animation-delay: 111.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1120) { animation-delay: 112s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1121) { animation-delay: 112.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1122) { animation-delay: 112.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1123) { animation-delay: 112.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1124) { animation-delay: 112.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1125) { animation-delay: 112.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1126) { animation-delay: 112.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1127) { animation-delay: 112.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1128) { animation-delay: 112.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1129) { animation-delay: 112.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1130) { animation-delay: 113s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1131) { animation-delay: 113.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1132) { animation-delay: 113.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1133) { animation-delay: 113.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1134) { animation-delay: 113.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1135) { animation-delay: 113.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1136) { animation-delay: 113.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1137) { animation-delay: 113.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1138) { animation-delay: 113.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1139) { animation-delay: 113.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1140) { animation-delay: 114s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1141) { animation-delay: 114.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1142) { animation-delay: 114.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1143) { animation-delay: 114.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1144) { animation-delay: 114.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1145) { animation-delay: 114.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1146) { animation-delay: 114.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1147) { animation-delay: 114.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1148) { animation-delay: 114.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1149) { animation-delay: 114.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1150) { animation-delay: 115s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1151) { animation-delay: 115.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1152) { animation-delay: 115.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1153) { animation-delay: 115.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1154) { animation-delay: 115.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1155) { animation-delay: 115.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1156) { animation-delay: 115.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1157) { animation-delay: 115.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1158) { animation-delay: 115.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1159) { animation-delay: 115.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1160) { animation-delay: 116s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1161) { animation-delay: 116.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1162) { animation-delay: 116.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1163) { animation-delay: 116.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1164) { animation-delay: 116.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1165) { animation-delay: 116.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1166) { animation-delay: 116.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1167) { animation-delay: 116.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1168) { animation-delay: 116.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1169) { animation-delay: 116.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1170) { animation-delay: 117s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1171) { animation-delay: 117.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1172) { animation-delay: 117.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1173) { animation-delay: 117.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1174) { animation-delay: 117.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1175) { animation-delay: 117.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1176) { animation-delay: 117.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1177) { animation-delay: 117.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1178) { animation-delay: 117.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1179) { animation-delay: 117.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1180) { animation-delay: 118s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1181) { animation-delay: 118.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1182) { animation-delay: 118.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1183) { animation-delay: 118.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1184) { animation-delay: 118.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1185) { animation-delay: 118.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1186) { animation-delay: 118.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1187) { animation-delay: 118.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1188) { animation-delay: 118.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1189) { animation-delay: 118.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1190) { animation-delay: 119s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1191) { animation-delay: 119.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1192) { animation-delay: 119.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1193) { animation-delay: 119.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1194) { animation-delay: 119.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1195) { animation-delay: 119.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1196) { animation-delay: 119.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1197) { animation-delay: 119.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1198) { animation-delay: 119.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1199) { animation-delay: 119.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1200) { animation-delay: 120s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1201) { animation-delay: 120.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1202) { animation-delay: 120.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1203) { animation-delay: 120.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1204) { animation-delay: 120.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1205) { animation-delay: 120.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1206) { animation-delay: 120.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1207) { animation-delay: 120.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1208) { animation-delay: 120.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1209) { animation-delay: 120.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1210) { animation-delay: 121s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1211) { animation-delay: 121.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1212) { animation-delay: 121.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1213) { animation-delay: 121.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1214) { animation-delay: 121.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1215) { animation-delay: 121.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1216) { animation-delay: 121.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1217) { animation-delay: 121.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1218) { animation-delay: 121.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1219) { animation-delay: 121.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1220) { animation-delay: 122s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1221) { animation-delay: 122.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1222) { animation-delay: 122.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1223) { animation-delay: 122.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1224) { animation-delay: 122.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1225) { animation-delay: 122.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1226) { animation-delay: 122.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1227) { animation-delay: 122.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1228) { animation-delay: 122.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1229) { animation-delay: 122.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1230) { animation-delay: 123s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1231) { animation-delay: 123.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1232) { animation-delay: 123.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1233) { animation-delay: 123.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1234) { animation-delay: 123.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1235) { animation-delay: 123.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1236) { animation-delay: 123.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1237) { animation-delay: 123.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1238) { animation-delay: 123.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1239) { animation-delay: 123.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1240) { animation-delay: 124s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1241) { animation-delay: 124.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1242) { animation-delay: 124.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1243) { animation-delay: 124.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1244) { animation-delay: 124.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1245) { animation-delay: 124.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1246) { animation-delay: 124.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1247) { animation-delay: 124.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1248) { animation-delay: 124.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1249) { animation-delay: 124.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1250) { animation-delay: 125s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1251) { animation-delay: 125.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1252) { animation-delay: 125.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1253) { animation-delay: 125.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1254) { animation-delay: 125.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1255) { animation-delay: 125.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1256) { animation-delay: 125.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1257) { animation-delay: 125.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1258) { animation-delay: 125.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1259) { animation-delay: 125.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1260) { animation-delay: 126s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1261) { animation-delay: 126.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1262) { animation-delay: 126.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1263) { animation-delay: 126.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1264) { animation-delay: 126.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1265) { animation-delay: 126.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1266) { animation-delay: 126.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1267) { animation-delay: 126.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1268) { animation-delay: 126.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1269) { animation-delay: 126.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1270) { animation-delay: 127s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1271) { animation-delay: 127.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1272) { animation-delay: 127.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1273) { animation-delay: 127.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1274) { animation-delay: 127.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1275) { animation-delay: 127.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1276) { animation-delay: 127.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1277) { animation-delay: 127.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1278) { animation-delay: 127.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1279) { animation-delay: 127.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1280) { animation-delay: 128s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1281) { animation-delay: 128.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1282) { animation-delay: 128.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1283) { animation-delay: 128.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1284) { animation-delay: 128.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1285) { animation-delay: 128.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1286) { animation-delay: 128.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1287) { animation-delay: 128.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1288) { animation-delay: 128.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1289) { animation-delay: 128.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1290) { animation-delay: 129s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1291) { animation-delay: 129.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1292) { animation-delay: 129.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1293) { animation-delay: 129.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1294) { animation-delay: 129.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1295) { animation-delay: 129.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1296) { animation-delay: 129.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1297) { animation-delay: 129.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1298) { animation-delay: 129.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1299) { animation-delay: 129.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1300) { animation-delay: 130s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1301) { animation-delay: 130.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1302) { animation-delay: 130.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1303) { animation-delay: 130.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1304) { animation-delay: 130.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1305) { animation-delay: 130.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1306) { animation-delay: 130.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1307) { animation-delay: 130.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1308) { animation-delay: 130.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1309) { animation-delay: 130.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1310) { animation-delay: 131s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1311) { animation-delay: 131.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1312) { animation-delay: 131.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1313) { animation-delay: 131.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1314) { animation-delay: 131.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1315) { animation-delay: 131.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1316) { animation-delay: 131.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1317) { animation-delay: 131.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1318) { animation-delay: 131.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1319) { animation-delay: 131.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1320) { animation-delay: 132s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1321) { animation-delay: 132.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1322) { animation-delay: 132.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1323) { animation-delay: 132.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1324) { animation-delay: 132.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1325) { animation-delay: 132.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1326) { animation-delay: 132.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1327) { animation-delay: 132.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1328) { animation-delay: 132.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1329) { animation-delay: 132.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1330) { animation-delay: 133s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1331) { animation-delay: 133.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1332) { animation-delay: 133.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1333) { animation-delay: 133.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1334) { animation-delay: 133.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1335) { animation-delay: 133.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1336) { animation-delay: 133.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1337) { animation-delay: 133.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1338) { animation-delay: 133.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1339) { animation-delay: 133.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1340) { animation-delay: 134s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1341) { animation-delay: 134.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1342) { animation-delay: 134.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1343) { animation-delay: 134.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1344) { animation-delay: 134.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1345) { animation-delay: 134.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1346) { animation-delay: 134.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1347) { animation-delay: 134.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1348) { animation-delay: 134.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1349) { animation-delay: 134.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1350) { animation-delay: 135s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1351) { animation-delay: 135.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1352) { animation-delay: 135.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1353) { animation-delay: 135.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1354) { animation-delay: 135.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1355) { animation-delay: 135.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1356) { animation-delay: 135.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1357) { animation-delay: 135.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1358) { animation-delay: 135.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1359) { animation-delay: 135.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1360) { animation-delay: 136s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1361) { animation-delay: 136.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1362) { animation-delay: 136.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1363) { animation-delay: 136.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1364) { animation-delay: 136.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1365) { animation-delay: 136.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1366) { animation-delay: 136.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1367) { animation-delay: 136.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1368) { animation-delay: 136.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1369) { animation-delay: 136.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1370) { animation-delay: 137s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1371) { animation-delay: 137.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1372) { animation-delay: 137.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1373) { animation-delay: 137.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1374) { animation-delay: 137.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1375) { animation-delay: 137.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1376) { animation-delay: 137.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1377) { animation-delay: 137.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1378) { animation-delay: 137.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1379) { animation-delay: 137.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1380) { animation-delay: 138s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1381) { animation-delay: 138.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1382) { animation-delay: 138.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1383) { animation-delay: 138.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1384) { animation-delay: 138.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1385) { animation-delay: 138.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1386) { animation-delay: 138.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1387) { animation-delay: 138.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1388) { animation-delay: 138.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1389) { animation-delay: 138.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1390) { animation-delay: 139s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1391) { animation-delay: 139.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1392) { animation-delay: 139.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1393) { animation-delay: 139.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1394) { animation-delay: 139.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1395) { animation-delay: 139.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1396) { animation-delay: 139.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1397) { animation-delay: 139.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1398) { animation-delay: 139.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1399) { animation-delay: 139.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1400) { animation-delay: 140s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1401) { animation-delay: 140.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1402) { animation-delay: 140.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1403) { animation-delay: 140.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1404) { animation-delay: 140.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1405) { animation-delay: 140.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1406) { animation-delay: 140.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1407) { animation-delay: 140.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1408) { animation-delay: 140.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1409) { animation-delay: 140.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1410) { animation-delay: 141s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1411) { animation-delay: 141.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1412) { animation-delay: 141.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1413) { animation-delay: 141.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1414) { animation-delay: 141.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1415) { animation-delay: 141.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1416) { animation-delay: 141.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1417) { animation-delay: 141.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1418) { animation-delay: 141.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1419) { animation-delay: 141.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1420) { animation-delay: 142s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1421) { animation-delay: 142.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1422) { animation-delay: 142.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1423) { animation-delay: 142.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1424) { animation-delay: 142.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1425) { animation-delay: 142.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1426) { animation-delay: 142.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1427) { animation-delay: 142.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1428) { animation-delay: 142.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1429) { animation-delay: 142.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1430) { animation-delay: 143s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1431) { animation-delay: 143.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1432) { animation-delay: 143.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1433) { animation-delay: 143.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1434) { animation-delay: 143.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1435) { animation-delay: 143.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1436) { animation-delay: 143.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1437) { animation-delay: 143.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1438) { animation-delay: 143.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1439) { animation-delay: 143.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1440) { animation-delay: 144s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1441) { animation-delay: 144.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1442) { animation-delay: 144.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1443) { animation-delay: 144.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1444) { animation-delay: 144.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1445) { animation-delay: 144.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1446) { animation-delay: 144.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1447) { animation-delay: 144.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1448) { animation-delay: 144.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1449) { animation-delay: 144.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1450) { animation-delay: 145s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1451) { animation-delay: 145.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1452) { animation-delay: 145.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1453) { animation-delay: 145.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1454) { animation-delay: 145.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1455) { animation-delay: 145.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1456) { animation-delay: 145.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1457) { animation-delay: 145.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1458) { animation-delay: 145.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1459) { animation-delay: 145.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1460) { animation-delay: 146s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1461) { animation-delay: 146.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1462) { animation-delay: 146.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1463) { animation-delay: 146.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1464) { animation-delay: 146.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1465) { animation-delay: 146.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1466) { animation-delay: 146.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1467) { animation-delay: 146.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1468) { animation-delay: 146.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1469) { animation-delay: 146.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1470) { animation-delay: 147s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1471) { animation-delay: 147.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1472) { animation-delay: 147.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1473) { animation-delay: 147.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1474) { animation-delay: 147.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1475) { animation-delay: 147.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1476) { animation-delay: 147.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1477) { animation-delay: 147.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1478) { animation-delay: 147.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1479) { animation-delay: 147.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1480) { animation-delay: 148s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1481) { animation-delay: 148.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1482) { animation-delay: 148.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1483) { animation-delay: 148.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1484) { animation-delay: 148.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1485) { animation-delay: 148.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1486) { animation-delay: 148.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1487) { animation-delay: 148.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1488) { animation-delay: 148.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1489) { animation-delay: 148.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1490) { animation-delay: 149s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1491) { animation-delay: 149.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1492) { animation-delay: 149.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1493) { animation-delay: 149.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1494) { animation-delay: 149.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1495) { animation-delay: 149.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1496) { animation-delay: 149.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1497) { animation-delay: 149.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1498) { animation-delay: 149.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1499) { animation-delay: 149.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1500) { animation-delay: 150s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1501) { animation-delay: 150.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1502) { animation-delay: 150.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1503) { animation-delay: 150.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1504) { animation-delay: 150.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1505) { animation-delay: 150.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1506) { animation-delay: 150.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1507) { animation-delay: 150.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1508) { animation-delay: 150.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1509) { animation-delay: 150.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1510) { animation-delay: 151s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1511) { animation-delay: 151.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1512) { animation-delay: 151.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1513) { animation-delay: 151.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1514) { animation-delay: 151.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1515) { animation-delay: 151.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1516) { animation-delay: 151.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1517) { animation-delay: 151.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1518) { animation-delay: 151.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1519) { animation-delay: 151.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1520) { animation-delay: 152s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1521) { animation-delay: 152.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1522) { animation-delay: 152.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1523) { animation-delay: 152.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1524) { animation-delay: 152.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1525) { animation-delay: 152.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1526) { animation-delay: 152.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1527) { animation-delay: 152.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1528) { animation-delay: 152.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1529) { animation-delay: 152.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1530) { animation-delay: 153s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1531) { animation-delay: 153.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1532) { animation-delay: 153.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1533) { animation-delay: 153.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1534) { animation-delay: 153.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1535) { animation-delay: 153.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1536) { animation-delay: 153.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1537) { animation-delay: 153.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1538) { animation-delay: 153.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1539) { animation-delay: 153.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1540) { animation-delay: 154s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1541) { animation-delay: 154.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1542) { animation-delay: 154.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1543) { animation-delay: 154.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1544) { animation-delay: 154.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1545) { animation-delay: 154.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1546) { animation-delay: 154.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1547) { animation-delay: 154.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1548) { animation-delay: 154.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1549) { animation-delay: 154.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1550) { animation-delay: 155s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1551) { animation-delay: 155.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1552) { animation-delay: 155.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1553) { animation-delay: 155.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1554) { animation-delay: 155.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1555) { animation-delay: 155.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1556) { animation-delay: 155.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1557) { animation-delay: 155.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1558) { animation-delay: 155.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1559) { animation-delay: 155.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1560) { animation-delay: 156s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1561) { animation-delay: 156.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1562) { animation-delay: 156.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1563) { animation-delay: 156.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1564) { animation-delay: 156.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1565) { animation-delay: 156.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1566) { animation-delay: 156.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1567) { animation-delay: 156.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1568) { animation-delay: 156.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1569) { animation-delay: 156.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1570) { animation-delay: 157s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1571) { animation-delay: 157.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1572) { animation-delay: 157.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1573) { animation-delay: 157.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1574) { animation-delay: 157.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1575) { animation-delay: 157.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1576) { animation-delay: 157.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1577) { animation-delay: 157.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1578) { animation-delay: 157.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1579) { animation-delay: 157.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1580) { animation-delay: 158s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1581) { animation-delay: 158.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1582) { animation-delay: 158.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1583) { animation-delay: 158.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1584) { animation-delay: 158.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1585) { animation-delay: 158.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1586) { animation-delay: 158.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1587) { animation-delay: 158.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1588) { animation-delay: 158.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1589) { animation-delay: 158.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1590) { animation-delay: 159s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1591) { animation-delay: 159.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1592) { animation-delay: 159.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1593) { animation-delay: 159.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1594) { animation-delay: 159.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1595) { animation-delay: 159.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1596) { animation-delay: 159.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1597) { animation-delay: 159.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1598) { animation-delay: 159.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1599) { animation-delay: 159.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1600) { animation-delay: 160s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1601) { animation-delay: 160.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1602) { animation-delay: 160.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1603) { animation-delay: 160.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1604) { animation-delay: 160.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1605) { animation-delay: 160.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1606) { animation-delay: 160.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1607) { animation-delay: 160.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1608) { animation-delay: 160.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1609) { animation-delay: 160.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1610) { animation-delay: 161s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1611) { animation-delay: 161.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1612) { animation-delay: 161.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1613) { animation-delay: 161.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1614) { animation-delay: 161.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1615) { animation-delay: 161.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1616) { animation-delay: 161.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1617) { animation-delay: 161.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1618) { animation-delay: 161.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1619) { animation-delay: 161.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1620) { animation-delay: 162s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1621) { animation-delay: 162.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1622) { animation-delay: 162.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1623) { animation-delay: 162.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1624) { animation-delay: 162.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1625) { animation-delay: 162.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1626) { animation-delay: 162.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1627) { animation-delay: 162.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1628) { animation-delay: 162.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1629) { animation-delay: 162.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1630) { animation-delay: 163s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1631) { animation-delay: 163.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1632) { animation-delay: 163.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1633) { animation-delay: 163.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1634) { animation-delay: 163.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1635) { animation-delay: 163.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1636) { animation-delay: 163.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1637) { animation-delay: 163.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1638) { animation-delay: 163.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1639) { animation-delay: 163.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1640) { animation-delay: 164s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1641) { animation-delay: 164.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1642) { animation-delay: 164.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1643) { animation-delay: 164.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1644) { animation-delay: 164.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1645) { animation-delay: 164.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1646) { animation-delay: 164.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1647) { animation-delay: 164.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1648) { animation-delay: 164.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1649) { animation-delay: 164.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1650) { animation-delay: 165s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1651) { animation-delay: 165.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1652) { animation-delay: 165.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1653) { animation-delay: 165.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1654) { animation-delay: 165.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1655) { animation-delay: 165.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1656) { animation-delay: 165.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1657) { animation-delay: 165.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1658) { animation-delay: 165.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1659) { animation-delay: 165.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1660) { animation-delay: 166s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1661) { animation-delay: 166.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1662) { animation-delay: 166.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1663) { animation-delay: 166.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1664) { animation-delay: 166.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1665) { animation-delay: 166.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1666) { animation-delay: 166.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1667) { animation-delay: 166.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1668) { animation-delay: 166.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1669) { animation-delay: 166.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1670) { animation-delay: 167s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1671) { animation-delay: 167.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1672) { animation-delay: 167.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1673) { animation-delay: 167.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1674) { animation-delay: 167.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1675) { animation-delay: 167.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1676) { animation-delay: 167.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1677) { animation-delay: 167.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1678) { animation-delay: 167.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1679) { animation-delay: 167.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1680) { animation-delay: 168s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1681) { animation-delay: 168.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1682) { animation-delay: 168.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1683) { animation-delay: 168.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1684) { animation-delay: 168.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1685) { animation-delay: 168.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1686) { animation-delay: 168.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1687) { animation-delay: 168.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1688) { animation-delay: 168.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1689) { animation-delay: 168.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1690) { animation-delay: 169s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1691) { animation-delay: 169.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1692) { animation-delay: 169.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1693) { animation-delay: 169.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1694) { animation-delay: 169.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1695) { animation-delay: 169.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1696) { animation-delay: 169.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1697) { animation-delay: 169.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1698) { animation-delay: 169.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1699) { animation-delay: 169.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1700) { animation-delay: 170s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1701) { animation-delay: 170.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1702) { animation-delay: 170.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1703) { animation-delay: 170.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1704) { animation-delay: 170.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1705) { animation-delay: 170.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1706) { animation-delay: 170.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1707) { animation-delay: 170.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1708) { animation-delay: 170.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1709) { animation-delay: 170.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1710) { animation-delay: 171s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1711) { animation-delay: 171.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1712) { animation-delay: 171.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1713) { animation-delay: 171.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1714) { animation-delay: 171.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1715) { animation-delay: 171.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1716) { animation-delay: 171.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1717) { animation-delay: 171.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1718) { animation-delay: 171.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1719) { animation-delay: 171.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1720) { animation-delay: 172s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1721) { animation-delay: 172.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1722) { animation-delay: 172.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1723) { animation-delay: 172.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1724) { animation-delay: 172.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1725) { animation-delay: 172.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1726) { animation-delay: 172.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1727) { animation-delay: 172.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1728) { animation-delay: 172.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1729) { animation-delay: 172.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1730) { animation-delay: 173s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1731) { animation-delay: 173.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1732) { animation-delay: 173.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1733) { animation-delay: 173.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1734) { animation-delay: 173.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1735) { animation-delay: 173.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1736) { animation-delay: 173.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1737) { animation-delay: 173.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1738) { animation-delay: 173.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1739) { animation-delay: 173.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1740) { animation-delay: 174s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1741) { animation-delay: 174.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1742) { animation-delay: 174.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1743) { animation-delay: 174.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1744) { animation-delay: 174.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1745) { animation-delay: 174.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1746) { animation-delay: 174.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1747) { animation-delay: 174.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1748) { animation-delay: 174.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1749) { animation-delay: 174.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1750) { animation-delay: 175s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1751) { animation-delay: 175.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1752) { animation-delay: 175.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1753) { animation-delay: 175.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1754) { animation-delay: 175.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1755) { animation-delay: 175.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1756) { animation-delay: 175.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1757) { animation-delay: 175.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1758) { animation-delay: 175.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1759) { animation-delay: 175.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1760) { animation-delay: 176s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1761) { animation-delay: 176.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1762) { animation-delay: 176.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1763) { animation-delay: 176.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1764) { animation-delay: 176.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1765) { animation-delay: 176.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1766) { animation-delay: 176.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1767) { animation-delay: 176.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1768) { animation-delay: 176.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1769) { animation-delay: 176.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1770) { animation-delay: 177s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1771) { animation-delay: 177.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1772) { animation-delay: 177.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1773) { animation-delay: 177.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1774) { animation-delay: 177.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1775) { animation-delay: 177.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1776) { animation-delay: 177.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1777) { animation-delay: 177.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1778) { animation-delay: 177.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1779) { animation-delay: 177.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1780) { animation-delay: 178s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1781) { animation-delay: 178.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1782) { animation-delay: 178.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1783) { animation-delay: 178.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1784) { animation-delay: 178.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1785) { animation-delay: 178.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1786) { animation-delay: 178.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1787) { animation-delay: 178.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1788) { animation-delay: 178.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1789) { animation-delay: 178.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1790) { animation-delay: 179s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1791) { animation-delay: 179.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1792) { animation-delay: 179.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1793) { animation-delay: 179.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1794) { animation-delay: 179.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1795) { animation-delay: 179.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1796) { animation-delay: 179.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1797) { animation-delay: 179.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1798) { animation-delay: 179.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1799) { animation-delay: 179.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1800) { animation-delay: 180s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1801) { animation-delay: 180.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1802) { animation-delay: 180.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1803) { animation-delay: 180.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1804) { animation-delay: 180.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1805) { animation-delay: 180.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1806) { animation-delay: 180.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1807) { animation-delay: 180.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1808) { animation-delay: 180.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1809) { animation-delay: 180.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1810) { animation-delay: 181s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1811) { animation-delay: 181.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1812) { animation-delay: 181.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1813) { animation-delay: 181.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1814) { animation-delay: 181.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1815) { animation-delay: 181.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1816) { animation-delay: 181.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1817) { animation-delay: 181.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1818) { animation-delay: 181.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1819) { animation-delay: 181.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1820) { animation-delay: 182s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1821) { animation-delay: 182.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1822) { animation-delay: 182.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1823) { animation-delay: 182.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1824) { animation-delay: 182.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1825) { animation-delay: 182.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1826) { animation-delay: 182.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1827) { animation-delay: 182.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1828) { animation-delay: 182.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1829) { animation-delay: 182.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1830) { animation-delay: 183s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1831) { animation-delay: 183.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1832) { animation-delay: 183.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1833) { animation-delay: 183.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1834) { animation-delay: 183.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1835) { animation-delay: 183.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1836) { animation-delay: 183.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1837) { animation-delay: 183.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1838) { animation-delay: 183.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1839) { animation-delay: 183.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1840) { animation-delay: 184s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1841) { animation-delay: 184.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1842) { animation-delay: 184.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1843) { animation-delay: 184.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1844) { animation-delay: 184.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1845) { animation-delay: 184.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1846) { animation-delay: 184.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1847) { animation-delay: 184.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1848) { animation-delay: 184.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1849) { animation-delay: 184.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1850) { animation-delay: 185s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1851) { animation-delay: 185.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1852) { animation-delay: 185.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1853) { animation-delay: 185.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1854) { animation-delay: 185.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1855) { animation-delay: 185.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1856) { animation-delay: 185.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1857) { animation-delay: 185.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1858) { animation-delay: 185.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1859) { animation-delay: 185.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1860) { animation-delay: 186s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1861) { animation-delay: 186.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1862) { animation-delay: 186.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1863) { animation-delay: 186.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1864) { animation-delay: 186.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1865) { animation-delay: 186.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1866) { animation-delay: 186.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1867) { animation-delay: 186.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1868) { animation-delay: 186.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1869) { animation-delay: 186.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1870) { animation-delay: 187s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1871) { animation-delay: 187.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1872) { animation-delay: 187.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1873) { animation-delay: 187.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1874) { animation-delay: 187.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1875) { animation-delay: 187.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1876) { animation-delay: 187.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1877) { animation-delay: 187.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1878) { animation-delay: 187.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1879) { animation-delay: 187.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1880) { animation-delay: 188s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1881) { animation-delay: 188.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1882) { animation-delay: 188.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1883) { animation-delay: 188.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1884) { animation-delay: 188.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1885) { animation-delay: 188.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1886) { animation-delay: 188.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1887) { animation-delay: 188.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1888) { animation-delay: 188.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1889) { animation-delay: 188.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1890) { animation-delay: 189s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1891) { animation-delay: 189.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1892) { animation-delay: 189.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1893) { animation-delay: 189.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1894) { animation-delay: 189.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1895) { animation-delay: 189.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1896) { animation-delay: 189.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1897) { animation-delay: 189.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1898) { animation-delay: 189.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1899) { animation-delay: 189.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1900) { animation-delay: 190s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1901) { animation-delay: 190.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1902) { animation-delay: 190.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1903) { animation-delay: 190.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1904) { animation-delay: 190.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1905) { animation-delay: 190.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1906) { animation-delay: 190.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1907) { animation-delay: 190.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1908) { animation-delay: 190.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1909) { animation-delay: 190.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1910) { animation-delay: 191s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1911) { animation-delay: 191.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1912) { animation-delay: 191.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1913) { animation-delay: 191.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1914) { animation-delay: 191.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1915) { animation-delay: 191.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1916) { animation-delay: 191.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1917) { animation-delay: 191.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1918) { animation-delay: 191.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1919) { animation-delay: 191.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1920) { animation-delay: 192s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1921) { animation-delay: 192.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1922) { animation-delay: 192.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1923) { animation-delay: 192.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1924) { animation-delay: 192.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1925) { animation-delay: 192.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1926) { animation-delay: 192.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1927) { animation-delay: 192.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1928) { animation-delay: 192.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1929) { animation-delay: 192.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1930) { animation-delay: 193s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1931) { animation-delay: 193.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1932) { animation-delay: 193.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1933) { animation-delay: 193.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1934) { animation-delay: 193.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1935) { animation-delay: 193.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1936) { animation-delay: 193.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1937) { animation-delay: 193.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1938) { animation-delay: 193.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1939) { animation-delay: 193.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1940) { animation-delay: 194s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1941) { animation-delay: 194.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1942) { animation-delay: 194.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1943) { animation-delay: 194.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1944) { animation-delay: 194.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1945) { animation-delay: 194.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1946) { animation-delay: 194.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1947) { animation-delay: 194.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1948) { animation-delay: 194.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1949) { animation-delay: 194.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1950) { animation-delay: 195s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1951) { animation-delay: 195.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1952) { animation-delay: 195.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1953) { animation-delay: 195.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1954) { animation-delay: 195.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1955) { animation-delay: 195.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1956) { animation-delay: 195.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1957) { animation-delay: 195.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1958) { animation-delay: 195.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1959) { animation-delay: 195.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1960) { animation-delay: 196s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1961) { animation-delay: 196.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1962) { animation-delay: 196.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1963) { animation-delay: 196.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1964) { animation-delay: 196.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1965) { animation-delay: 196.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1966) { animation-delay: 196.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1967) { animation-delay: 196.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1968) { animation-delay: 196.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1969) { animation-delay: 196.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1970) { animation-delay: 197s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1971) { animation-delay: 197.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1972) { animation-delay: 197.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1973) { animation-delay: 197.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1974) { animation-delay: 197.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1975) { animation-delay: 197.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1976) { animation-delay: 197.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1977) { animation-delay: 197.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1978) { animation-delay: 197.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1979) { animation-delay: 197.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1980) { animation-delay: 198s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1981) { animation-delay: 198.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1982) { animation-delay: 198.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1983) { animation-delay: 198.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1984) { animation-delay: 198.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1985) { animation-delay: 198.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1986) { animation-delay: 198.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1987) { animation-delay: 198.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1988) { animation-delay: 198.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1989) { animation-delay: 198.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1990) { animation-delay: 199s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1991) { animation-delay: 199.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1992) { animation-delay: 199.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1993) { animation-delay: 199.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1994) { animation-delay: 199.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1995) { animation-delay: 199.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1996) { animation-delay: 199.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1997) { animation-delay: 199.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1998) { animation-delay: 199.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(1999) { animation-delay: 199.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2000) { animation-delay: 200s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2001) { animation-delay: 200.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2002) { animation-delay: 200.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2003) { animation-delay: 200.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2004) { animation-delay: 200.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2005) { animation-delay: 200.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2006) { animation-delay: 200.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2007) { animation-delay: 200.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2008) { animation-delay: 200.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2009) { animation-delay: 200.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2010) { animation-delay: 201s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2011) { animation-delay: 201.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2012) { animation-delay: 201.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2013) { animation-delay: 201.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2014) { animation-delay: 201.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2015) { animation-delay: 201.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2016) { animation-delay: 201.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2017) { animation-delay: 201.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2018) { animation-delay: 201.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2019) { animation-delay: 201.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2020) { animation-delay: 202s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2021) { animation-delay: 202.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2022) { animation-delay: 202.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2023) { animation-delay: 202.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2024) { animation-delay: 202.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2025) { animation-delay: 202.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2026) { animation-delay: 202.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2027) { animation-delay: 202.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2028) { animation-delay: 202.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2029) { animation-delay: 202.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2030) { animation-delay: 203s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2031) { animation-delay: 203.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2032) { animation-delay: 203.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2033) { animation-delay: 203.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2034) { animation-delay: 203.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2035) { animation-delay: 203.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2036) { animation-delay: 203.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2037) { animation-delay: 203.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2038) { animation-delay: 203.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2039) { animation-delay: 203.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2040) { animation-delay: 204s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2041) { animation-delay: 204.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2042) { animation-delay: 204.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2043) { animation-delay: 204.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2044) { animation-delay: 204.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2045) { animation-delay: 204.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2046) { animation-delay: 204.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2047) { animation-delay: 204.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2048) { animation-delay: 204.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2049) { animation-delay: 204.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2050) { animation-delay: 205s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2051) { animation-delay: 205.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2052) { animation-delay: 205.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2053) { animation-delay: 205.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2054) { animation-delay: 205.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2055) { animation-delay: 205.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2056) { animation-delay: 205.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2057) { animation-delay: 205.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2058) { animation-delay: 205.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2059) { animation-delay: 205.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2060) { animation-delay: 206s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2061) { animation-delay: 206.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2062) { animation-delay: 206.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2063) { animation-delay: 206.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2064) { animation-delay: 206.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2065) { animation-delay: 206.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2066) { animation-delay: 206.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2067) { animation-delay: 206.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2068) { animation-delay: 206.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2069) { animation-delay: 206.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2070) { animation-delay: 207s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2071) { animation-delay: 207.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2072) { animation-delay: 207.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2073) { animation-delay: 207.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2074) { animation-delay: 207.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2075) { animation-delay: 207.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2076) { animation-delay: 207.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2077) { animation-delay: 207.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2078) { animation-delay: 207.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2079) { animation-delay: 207.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2080) { animation-delay: 208s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2081) { animation-delay: 208.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2082) { animation-delay: 208.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2083) { animation-delay: 208.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2084) { animation-delay: 208.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2085) { animation-delay: 208.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2086) { animation-delay: 208.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2087) { animation-delay: 208.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2088) { animation-delay: 208.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2089) { animation-delay: 208.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2090) { animation-delay: 209s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2091) { animation-delay: 209.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2092) { animation-delay: 209.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2093) { animation-delay: 209.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2094) { animation-delay: 209.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2095) { animation-delay: 209.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2096) { animation-delay: 209.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2097) { animation-delay: 209.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2098) { animation-delay: 209.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2099) { animation-delay: 209.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2100) { animation-delay: 210s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2101) { animation-delay: 210.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2102) { animation-delay: 210.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2103) { animation-delay: 210.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2104) { animation-delay: 210.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2105) { animation-delay: 210.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2106) { animation-delay: 210.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2107) { animation-delay: 210.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2108) { animation-delay: 210.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2109) { animation-delay: 210.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2110) { animation-delay: 211s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2111) { animation-delay: 211.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2112) { animation-delay: 211.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2113) { animation-delay: 211.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2114) { animation-delay: 211.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2115) { animation-delay: 211.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2116) { animation-delay: 211.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2117) { animation-delay: 211.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2118) { animation-delay: 211.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2119) { animation-delay: 211.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2120) { animation-delay: 212s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2121) { animation-delay: 212.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2122) { animation-delay: 212.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2123) { animation-delay: 212.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2124) { animation-delay: 212.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2125) { animation-delay: 212.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2126) { animation-delay: 212.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2127) { animation-delay: 212.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2128) { animation-delay: 212.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2129) { animation-delay: 212.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2130) { animation-delay: 213s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2131) { animation-delay: 213.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2132) { animation-delay: 213.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2133) { animation-delay: 213.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2134) { animation-delay: 213.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2135) { animation-delay: 213.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2136) { animation-delay: 213.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2137) { animation-delay: 213.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2138) { animation-delay: 213.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2139) { animation-delay: 213.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2140) { animation-delay: 214s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2141) { animation-delay: 214.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2142) { animation-delay: 214.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2143) { animation-delay: 214.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2144) { animation-delay: 214.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2145) { animation-delay: 214.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2146) { animation-delay: 214.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2147) { animation-delay: 214.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2148) { animation-delay: 214.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2149) { animation-delay: 214.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2150) { animation-delay: 215s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2151) { animation-delay: 215.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2152) { animation-delay: 215.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2153) { animation-delay: 215.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2154) { animation-delay: 215.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2155) { animation-delay: 215.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2156) { animation-delay: 215.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2157) { animation-delay: 215.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2158) { animation-delay: 215.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2159) { animation-delay: 215.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2160) { animation-delay: 216s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2161) { animation-delay: 216.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2162) { animation-delay: 216.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2163) { animation-delay: 216.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2164) { animation-delay: 216.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2165) { animation-delay: 216.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2166) { animation-delay: 216.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2167) { animation-delay: 216.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2168) { animation-delay: 216.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2169) { animation-delay: 216.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2170) { animation-delay: 217s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2171) { animation-delay: 217.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2172) { animation-delay: 217.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2173) { animation-delay: 217.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2174) { animation-delay: 217.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2175) { animation-delay: 217.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2176) { animation-delay: 217.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2177) { animation-delay: 217.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2178) { animation-delay: 217.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2179) { animation-delay: 217.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2180) { animation-delay: 218s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2181) { animation-delay: 218.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2182) { animation-delay: 218.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2183) { animation-delay: 218.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2184) { animation-delay: 218.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2185) { animation-delay: 218.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2186) { animation-delay: 218.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2187) { animation-delay: 218.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2188) { animation-delay: 218.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2189) { animation-delay: 218.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2190) { animation-delay: 219s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2191) { animation-delay: 219.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2192) { animation-delay: 219.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2193) { animation-delay: 219.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2194) { animation-delay: 219.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2195) { animation-delay: 219.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2196) { animation-delay: 219.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2197) { animation-delay: 219.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2198) { animation-delay: 219.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2199) { animation-delay: 219.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2200) { animation-delay: 220s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2201) { animation-delay: 220.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2202) { animation-delay: 220.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2203) { animation-delay: 220.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2204) { animation-delay: 220.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2205) { animation-delay: 220.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2206) { animation-delay: 220.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2207) { animation-delay: 220.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2208) { animation-delay: 220.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2209) { animation-delay: 220.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2210) { animation-delay: 221s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2211) { animation-delay: 221.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2212) { animation-delay: 221.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2213) { animation-delay: 221.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2214) { animation-delay: 221.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2215) { animation-delay: 221.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2216) { animation-delay: 221.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2217) { animation-delay: 221.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2218) { animation-delay: 221.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2219) { animation-delay: 221.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2220) { animation-delay: 222s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2221) { animation-delay: 222.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2222) { animation-delay: 222.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2223) { animation-delay: 222.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2224) { animation-delay: 222.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2225) { animation-delay: 222.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2226) { animation-delay: 222.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2227) { animation-delay: 222.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2228) { animation-delay: 222.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2229) { animation-delay: 222.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2230) { animation-delay: 223s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2231) { animation-delay: 223.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2232) { animation-delay: 223.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2233) { animation-delay: 223.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2234) { animation-delay: 223.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2235) { animation-delay: 223.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2236) { animation-delay: 223.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2237) { animation-delay: 223.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2238) { animation-delay: 223.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2239) { animation-delay: 223.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2240) { animation-delay: 224s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2241) { animation-delay: 224.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2242) { animation-delay: 224.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2243) { animation-delay: 224.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2244) { animation-delay: 224.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2245) { animation-delay: 224.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2246) { animation-delay: 224.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2247) { animation-delay: 224.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2248) { animation-delay: 224.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2249) { animation-delay: 224.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2250) { animation-delay: 225s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2251) { animation-delay: 225.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2252) { animation-delay: 225.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2253) { animation-delay: 225.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2254) { animation-delay: 225.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2255) { animation-delay: 225.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2256) { animation-delay: 225.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2257) { animation-delay: 225.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2258) { animation-delay: 225.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2259) { animation-delay: 225.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2260) { animation-delay: 226s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2261) { animation-delay: 226.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2262) { animation-delay: 226.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2263) { animation-delay: 226.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2264) { animation-delay: 226.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2265) { animation-delay: 226.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2266) { animation-delay: 226.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2267) { animation-delay: 226.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2268) { animation-delay: 226.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2269) { animation-delay: 226.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2270) { animation-delay: 227s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2271) { animation-delay: 227.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2272) { animation-delay: 227.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2273) { animation-delay: 227.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2274) { animation-delay: 227.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2275) { animation-delay: 227.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2276) { animation-delay: 227.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2277) { animation-delay: 227.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2278) { animation-delay: 227.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2279) { animation-delay: 227.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2280) { animation-delay: 228s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2281) { animation-delay: 228.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2282) { animation-delay: 228.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2283) { animation-delay: 228.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2284) { animation-delay: 228.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2285) { animation-delay: 228.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2286) { animation-delay: 228.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2287) { animation-delay: 228.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2288) { animation-delay: 228.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2289) { animation-delay: 228.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2290) { animation-delay: 229s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2291) { animation-delay: 229.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2292) { animation-delay: 229.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2293) { animation-delay: 229.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2294) { animation-delay: 229.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2295) { animation-delay: 229.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2296) { animation-delay: 229.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2297) { animation-delay: 229.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2298) { animation-delay: 229.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2299) { animation-delay: 229.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2300) { animation-delay: 230s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2301) { animation-delay: 230.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2302) { animation-delay: 230.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2303) { animation-delay: 230.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2304) { animation-delay: 230.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2305) { animation-delay: 230.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2306) { animation-delay: 230.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2307) { animation-delay: 230.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2308) { animation-delay: 230.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2309) { animation-delay: 230.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2310) { animation-delay: 231s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2311) { animation-delay: 231.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2312) { animation-delay: 231.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2313) { animation-delay: 231.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2314) { animation-delay: 231.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2315) { animation-delay: 231.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2316) { animation-delay: 231.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2317) { animation-delay: 231.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2318) { animation-delay: 231.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2319) { animation-delay: 231.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2320) { animation-delay: 232s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2321) { animation-delay: 232.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2322) { animation-delay: 232.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2323) { animation-delay: 232.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2324) { animation-delay: 232.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2325) { animation-delay: 232.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2326) { animation-delay: 232.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2327) { animation-delay: 232.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2328) { animation-delay: 232.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2329) { animation-delay: 232.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2330) { animation-delay: 233s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2331) { animation-delay: 233.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2332) { animation-delay: 233.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2333) { animation-delay: 233.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2334) { animation-delay: 233.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2335) { animation-delay: 233.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2336) { animation-delay: 233.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2337) { animation-delay: 233.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2338) { animation-delay: 233.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2339) { animation-delay: 233.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2340) { animation-delay: 234s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2341) { animation-delay: 234.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2342) { animation-delay: 234.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2343) { animation-delay: 234.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2344) { animation-delay: 234.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2345) { animation-delay: 234.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2346) { animation-delay: 234.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2347) { animation-delay: 234.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2348) { animation-delay: 234.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2349) { animation-delay: 234.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2350) { animation-delay: 235s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2351) { animation-delay: 235.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2352) { animation-delay: 235.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2353) { animation-delay: 235.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2354) { animation-delay: 235.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2355) { animation-delay: 235.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2356) { animation-delay: 235.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2357) { animation-delay: 235.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2358) { animation-delay: 235.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2359) { animation-delay: 235.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2360) { animation-delay: 236s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2361) { animation-delay: 236.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2362) { animation-delay: 236.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2363) { animation-delay: 236.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2364) { animation-delay: 236.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2365) { animation-delay: 236.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2366) { animation-delay: 236.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2367) { animation-delay: 236.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2368) { animation-delay: 236.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2369) { animation-delay: 236.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2370) { animation-delay: 237s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2371) { animation-delay: 237.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2372) { animation-delay: 237.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2373) { animation-delay: 237.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2374) { animation-delay: 237.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2375) { animation-delay: 237.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2376) { animation-delay: 237.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2377) { animation-delay: 237.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2378) { animation-delay: 237.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2379) { animation-delay: 237.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2380) { animation-delay: 238s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2381) { animation-delay: 238.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2382) { animation-delay: 238.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2383) { animation-delay: 238.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2384) { animation-delay: 238.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2385) { animation-delay: 238.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2386) { animation-delay: 238.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2387) { animation-delay: 238.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2388) { animation-delay: 238.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2389) { animation-delay: 238.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2390) { animation-delay: 239s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2391) { animation-delay: 239.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2392) { animation-delay: 239.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2393) { animation-delay: 239.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2394) { animation-delay: 239.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2395) { animation-delay: 239.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2396) { animation-delay: 239.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2397) { animation-delay: 239.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2398) { animation-delay: 239.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2399) { animation-delay: 239.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2400) { animation-delay: 240s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2401) { animation-delay: 240.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2402) { animation-delay: 240.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2403) { animation-delay: 240.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2404) { animation-delay: 240.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2405) { animation-delay: 240.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2406) { animation-delay: 240.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2407) { animation-delay: 240.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2408) { animation-delay: 240.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2409) { animation-delay: 240.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2410) { animation-delay: 241s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2411) { animation-delay: 241.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2412) { animation-delay: 241.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2413) { animation-delay: 241.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2414) { animation-delay: 241.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2415) { animation-delay: 241.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2416) { animation-delay: 241.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2417) { animation-delay: 241.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2418) { animation-delay: 241.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2419) { animation-delay: 241.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2420) { animation-delay: 242s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2421) { animation-delay: 242.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2422) { animation-delay: 242.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2423) { animation-delay: 242.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2424) { animation-delay: 242.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2425) { animation-delay: 242.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2426) { animation-delay: 242.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2427) { animation-delay: 242.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2428) { animation-delay: 242.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2429) { animation-delay: 242.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2430) { animation-delay: 243s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2431) { animation-delay: 243.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2432) { animation-delay: 243.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2433) { animation-delay: 243.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2434) { animation-delay: 243.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2435) { animation-delay: 243.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2436) { animation-delay: 243.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2437) { animation-delay: 243.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2438) { animation-delay: 243.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2439) { animation-delay: 243.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2440) { animation-delay: 244s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2441) { animation-delay: 244.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2442) { animation-delay: 244.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2443) { animation-delay: 244.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2444) { animation-delay: 244.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2445) { animation-delay: 244.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2446) { animation-delay: 244.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2447) { animation-delay: 244.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2448) { animation-delay: 244.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2449) { animation-delay: 244.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2450) { animation-delay: 245s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2451) { animation-delay: 245.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2452) { animation-delay: 245.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2453) { animation-delay: 245.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2454) { animation-delay: 245.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2455) { animation-delay: 245.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2456) { animation-delay: 245.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2457) { animation-delay: 245.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2458) { animation-delay: 245.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2459) { animation-delay: 245.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2460) { animation-delay: 246s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2461) { animation-delay: 246.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2462) { animation-delay: 246.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2463) { animation-delay: 246.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2464) { animation-delay: 246.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2465) { animation-delay: 246.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2466) { animation-delay: 246.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2467) { animation-delay: 246.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2468) { animation-delay: 246.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2469) { animation-delay: 246.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2470) { animation-delay: 247s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2471) { animation-delay: 247.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2472) { animation-delay: 247.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2473) { animation-delay: 247.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2474) { animation-delay: 247.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2475) { animation-delay: 247.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2476) { animation-delay: 247.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2477) { animation-delay: 247.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2478) { animation-delay: 247.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2479) { animation-delay: 247.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2480) { animation-delay: 248s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2481) { animation-delay: 248.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2482) { animation-delay: 248.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2483) { animation-delay: 248.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2484) { animation-delay: 248.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2485) { animation-delay: 248.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2486) { animation-delay: 248.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2487) { animation-delay: 248.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2488) { animation-delay: 248.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2489) { animation-delay: 248.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2490) { animation-delay: 249s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2491) { animation-delay: 249.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2492) { animation-delay: 249.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2493) { animation-delay: 249.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2494) { animation-delay: 249.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2495) { animation-delay: 249.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2496) { animation-delay: 249.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2497) { animation-delay: 249.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2498) { animation-delay: 249.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2499) { animation-delay: 249.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2500) { animation-delay: 250s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2501) { animation-delay: 250.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2502) { animation-delay: 250.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2503) { animation-delay: 250.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2504) { animation-delay: 250.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2505) { animation-delay: 250.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2506) { animation-delay: 250.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2507) { animation-delay: 250.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2508) { animation-delay: 250.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2509) { animation-delay: 250.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2510) { animation-delay: 251s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2511) { animation-delay: 251.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2512) { animation-delay: 251.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2513) { animation-delay: 251.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2514) { animation-delay: 251.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2515) { animation-delay: 251.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2516) { animation-delay: 251.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2517) { animation-delay: 251.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2518) { animation-delay: 251.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2519) { animation-delay: 251.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2520) { animation-delay: 252s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2521) { animation-delay: 252.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2522) { animation-delay: 252.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2523) { animation-delay: 252.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2524) { animation-delay: 252.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2525) { animation-delay: 252.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2526) { animation-delay: 252.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2527) { animation-delay: 252.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2528) { animation-delay: 252.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2529) { animation-delay: 252.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2530) { animation-delay: 253s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2531) { animation-delay: 253.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2532) { animation-delay: 253.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2533) { animation-delay: 253.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2534) { animation-delay: 253.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2535) { animation-delay: 253.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2536) { animation-delay: 253.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2537) { animation-delay: 253.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2538) { animation-delay: 253.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2539) { animation-delay: 253.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2540) { animation-delay: 254s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2541) { animation-delay: 254.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2542) { animation-delay: 254.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2543) { animation-delay: 254.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2544) { animation-delay: 254.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2545) { animation-delay: 254.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2546) { animation-delay: 254.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2547) { animation-delay: 254.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2548) { animation-delay: 254.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2549) { animation-delay: 254.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2550) { animation-delay: 255s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2551) { animation-delay: 255.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2552) { animation-delay: 255.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2553) { animation-delay: 255.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2554) { animation-delay: 255.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2555) { animation-delay: 255.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2556) { animation-delay: 255.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2557) { animation-delay: 255.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2558) { animation-delay: 255.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2559) { animation-delay: 255.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2560) { animation-delay: 256s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2561) { animation-delay: 256.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2562) { animation-delay: 256.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2563) { animation-delay: 256.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2564) { animation-delay: 256.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2565) { animation-delay: 256.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2566) { animation-delay: 256.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2567) { animation-delay: 256.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2568) { animation-delay: 256.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2569) { animation-delay: 256.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2570) { animation-delay: 257s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2571) { animation-delay: 257.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2572) { animation-delay: 257.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2573) { animation-delay: 257.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2574) { animation-delay: 257.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2575) { animation-delay: 257.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2576) { animation-delay: 257.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2577) { animation-delay: 257.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2578) { animation-delay: 257.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2579) { animation-delay: 257.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2580) { animation-delay: 258s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2581) { animation-delay: 258.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2582) { animation-delay: 258.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2583) { animation-delay: 258.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2584) { animation-delay: 258.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2585) { animation-delay: 258.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2586) { animation-delay: 258.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2587) { animation-delay: 258.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2588) { animation-delay: 258.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2589) { animation-delay: 258.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2590) { animation-delay: 259s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2591) { animation-delay: 259.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2592) { animation-delay: 259.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2593) { animation-delay: 259.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2594) { animation-delay: 259.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2595) { animation-delay: 259.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2596) { animation-delay: 259.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2597) { animation-delay: 259.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2598) { animation-delay: 259.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2599) { animation-delay: 259.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2600) { animation-delay: 260s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2601) { animation-delay: 260.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2602) { animation-delay: 260.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2603) { animation-delay: 260.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2604) { animation-delay: 260.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2605) { animation-delay: 260.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2606) { animation-delay: 260.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2607) { animation-delay: 260.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2608) { animation-delay: 260.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2609) { animation-delay: 260.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2610) { animation-delay: 261s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2611) { animation-delay: 261.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2612) { animation-delay: 261.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2613) { animation-delay: 261.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2614) { animation-delay: 261.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2615) { animation-delay: 261.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2616) { animation-delay: 261.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2617) { animation-delay: 261.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2618) { animation-delay: 261.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2619) { animation-delay: 261.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2620) { animation-delay: 262s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2621) { animation-delay: 262.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2622) { animation-delay: 262.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2623) { animation-delay: 262.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2624) { animation-delay: 262.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2625) { animation-delay: 262.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2626) { animation-delay: 262.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2627) { animation-delay: 262.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2628) { animation-delay: 262.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2629) { animation-delay: 262.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2630) { animation-delay: 263s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2631) { animation-delay: 263.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2632) { animation-delay: 263.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2633) { animation-delay: 263.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2634) { animation-delay: 263.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2635) { animation-delay: 263.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2636) { animation-delay: 263.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2637) { animation-delay: 263.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2638) { animation-delay: 263.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2639) { animation-delay: 263.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2640) { animation-delay: 264s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2641) { animation-delay: 264.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2642) { animation-delay: 264.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2643) { animation-delay: 264.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2644) { animation-delay: 264.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2645) { animation-delay: 264.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2646) { animation-delay: 264.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2647) { animation-delay: 264.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2648) { animation-delay: 264.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2649) { animation-delay: 264.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2650) { animation-delay: 265s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2651) { animation-delay: 265.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2652) { animation-delay: 265.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2653) { animation-delay: 265.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2654) { animation-delay: 265.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2655) { animation-delay: 265.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2656) { animation-delay: 265.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2657) { animation-delay: 265.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2658) { animation-delay: 265.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2659) { animation-delay: 265.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2660) { animation-delay: 266s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2661) { animation-delay: 266.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2662) { animation-delay: 266.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2663) { animation-delay: 266.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2664) { animation-delay: 266.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2665) { animation-delay: 266.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2666) { animation-delay: 266.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2667) { animation-delay: 266.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2668) { animation-delay: 266.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2669) { animation-delay: 266.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2670) { animation-delay: 267s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2671) { animation-delay: 267.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2672) { animation-delay: 267.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2673) { animation-delay: 267.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2674) { animation-delay: 267.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2675) { animation-delay: 267.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2676) { animation-delay: 267.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2677) { animation-delay: 267.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2678) { animation-delay: 267.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2679) { animation-delay: 267.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2680) { animation-delay: 268s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2681) { animation-delay: 268.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2682) { animation-delay: 268.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2683) { animation-delay: 268.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2684) { animation-delay: 268.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2685) { animation-delay: 268.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2686) { animation-delay: 268.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2687) { animation-delay: 268.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2688) { animation-delay: 268.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2689) { animation-delay: 268.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2690) { animation-delay: 269s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2691) { animation-delay: 269.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2692) { animation-delay: 269.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2693) { animation-delay: 269.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2694) { animation-delay: 269.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2695) { animation-delay: 269.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2696) { animation-delay: 269.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2697) { animation-delay: 269.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2698) { animation-delay: 269.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2699) { animation-delay: 269.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2700) { animation-delay: 270s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2701) { animation-delay: 270.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2702) { animation-delay: 270.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2703) { animation-delay: 270.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2704) { animation-delay: 270.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2705) { animation-delay: 270.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2706) { animation-delay: 270.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2707) { animation-delay: 270.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2708) { animation-delay: 270.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2709) { animation-delay: 270.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2710) { animation-delay: 271s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2711) { animation-delay: 271.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2712) { animation-delay: 271.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2713) { animation-delay: 271.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2714) { animation-delay: 271.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2715) { animation-delay: 271.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2716) { animation-delay: 271.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2717) { animation-delay: 271.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2718) { animation-delay: 271.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2719) { animation-delay: 271.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2720) { animation-delay: 272s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2721) { animation-delay: 272.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2722) { animation-delay: 272.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2723) { animation-delay: 272.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2724) { animation-delay: 272.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2725) { animation-delay: 272.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2726) { animation-delay: 272.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2727) { animation-delay: 272.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2728) { animation-delay: 272.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2729) { animation-delay: 272.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2730) { animation-delay: 273s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2731) { animation-delay: 273.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2732) { animation-delay: 273.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2733) { animation-delay: 273.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2734) { animation-delay: 273.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2735) { animation-delay: 273.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2736) { animation-delay: 273.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2737) { animation-delay: 273.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2738) { animation-delay: 273.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2739) { animation-delay: 273.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2740) { animation-delay: 274s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2741) { animation-delay: 274.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2742) { animation-delay: 274.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2743) { animation-delay: 274.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2744) { animation-delay: 274.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2745) { animation-delay: 274.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2746) { animation-delay: 274.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2747) { animation-delay: 274.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2748) { animation-delay: 274.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2749) { animation-delay: 274.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2750) { animation-delay: 275s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2751) { animation-delay: 275.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2752) { animation-delay: 275.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2753) { animation-delay: 275.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2754) { animation-delay: 275.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2755) { animation-delay: 275.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2756) { animation-delay: 275.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2757) { animation-delay: 275.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2758) { animation-delay: 275.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2759) { animation-delay: 275.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2760) { animation-delay: 276s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2761) { animation-delay: 276.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2762) { animation-delay: 276.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2763) { animation-delay: 276.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2764) { animation-delay: 276.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2765) { animation-delay: 276.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2766) { animation-delay: 276.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2767) { animation-delay: 276.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2768) { animation-delay: 276.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2769) { animation-delay: 276.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2770) { animation-delay: 277s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2771) { animation-delay: 277.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2772) { animation-delay: 277.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2773) { animation-delay: 277.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2774) { animation-delay: 277.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2775) { animation-delay: 277.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2776) { animation-delay: 277.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2777) { animation-delay: 277.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2778) { animation-delay: 277.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2779) { animation-delay: 277.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2780) { animation-delay: 278s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2781) { animation-delay: 278.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2782) { animation-delay: 278.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2783) { animation-delay: 278.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2784) { animation-delay: 278.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2785) { animation-delay: 278.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2786) { animation-delay: 278.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2787) { animation-delay: 278.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2788) { animation-delay: 278.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2789) { animation-delay: 278.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2790) { animation-delay: 279s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2791) { animation-delay: 279.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2792) { animation-delay: 279.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2793) { animation-delay: 279.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2794) { animation-delay: 279.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2795) { animation-delay: 279.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2796) { animation-delay: 279.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2797) { animation-delay: 279.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2798) { animation-delay: 279.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2799) { animation-delay: 279.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2800) { animation-delay: 280s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2801) { animation-delay: 280.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2802) { animation-delay: 280.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2803) { animation-delay: 280.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2804) { animation-delay: 280.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2805) { animation-delay: 280.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2806) { animation-delay: 280.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2807) { animation-delay: 280.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2808) { animation-delay: 280.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2809) { animation-delay: 280.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2810) { animation-delay: 281s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2811) { animation-delay: 281.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2812) { animation-delay: 281.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2813) { animation-delay: 281.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2814) { animation-delay: 281.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2815) { animation-delay: 281.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2816) { animation-delay: 281.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2817) { animation-delay: 281.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2818) { animation-delay: 281.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2819) { animation-delay: 281.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2820) { animation-delay: 282s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2821) { animation-delay: 282.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2822) { animation-delay: 282.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2823) { animation-delay: 282.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2824) { animation-delay: 282.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2825) { animation-delay: 282.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2826) { animation-delay: 282.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2827) { animation-delay: 282.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2828) { animation-delay: 282.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2829) { animation-delay: 282.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2830) { animation-delay: 283s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2831) { animation-delay: 283.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2832) { animation-delay: 283.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2833) { animation-delay: 283.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2834) { animation-delay: 283.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2835) { animation-delay: 283.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2836) { animation-delay: 283.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2837) { animation-delay: 283.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2838) { animation-delay: 283.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2839) { animation-delay: 283.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2840) { animation-delay: 284s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2841) { animation-delay: 284.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2842) { animation-delay: 284.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2843) { animation-delay: 284.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2844) { animation-delay: 284.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2845) { animation-delay: 284.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2846) { animation-delay: 284.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2847) { animation-delay: 284.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2848) { animation-delay: 284.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2849) { animation-delay: 284.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2850) { animation-delay: 285s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2851) { animation-delay: 285.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2852) { animation-delay: 285.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2853) { animation-delay: 285.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2854) { animation-delay: 285.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2855) { animation-delay: 285.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2856) { animation-delay: 285.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2857) { animation-delay: 285.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2858) { animation-delay: 285.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2859) { animation-delay: 285.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2860) { animation-delay: 286s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2861) { animation-delay: 286.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2862) { animation-delay: 286.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2863) { animation-delay: 286.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2864) { animation-delay: 286.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2865) { animation-delay: 286.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2866) { animation-delay: 286.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2867) { animation-delay: 286.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2868) { animation-delay: 286.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2869) { animation-delay: 286.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2870) { animation-delay: 287s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2871) { animation-delay: 287.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2872) { animation-delay: 287.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2873) { animation-delay: 287.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2874) { animation-delay: 287.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2875) { animation-delay: 287.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2876) { animation-delay: 287.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2877) { animation-delay: 287.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2878) { animation-delay: 287.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2879) { animation-delay: 287.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2880) { animation-delay: 288s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2881) { animation-delay: 288.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2882) { animation-delay: 288.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2883) { animation-delay: 288.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2884) { animation-delay: 288.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2885) { animation-delay: 288.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2886) { animation-delay: 288.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2887) { animation-delay: 288.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2888) { animation-delay: 288.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2889) { animation-delay: 288.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2890) { animation-delay: 289s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2891) { animation-delay: 289.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2892) { animation-delay: 289.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2893) { animation-delay: 289.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2894) { animation-delay: 289.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2895) { animation-delay: 289.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2896) { animation-delay: 289.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2897) { animation-delay: 289.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2898) { animation-delay: 289.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2899) { animation-delay: 289.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2900) { animation-delay: 290s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2901) { animation-delay: 290.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2902) { animation-delay: 290.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2903) { animation-delay: 290.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2904) { animation-delay: 290.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2905) { animation-delay: 290.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2906) { animation-delay: 290.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2907) { animation-delay: 290.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2908) { animation-delay: 290.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2909) { animation-delay: 290.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2910) { animation-delay: 291s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2911) { animation-delay: 291.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2912) { animation-delay: 291.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2913) { animation-delay: 291.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2914) { animation-delay: 291.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2915) { animation-delay: 291.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2916) { animation-delay: 291.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2917) { animation-delay: 291.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2918) { animation-delay: 291.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2919) { animation-delay: 291.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2920) { animation-delay: 292s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2921) { animation-delay: 292.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2922) { animation-delay: 292.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2923) { animation-delay: 292.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2924) { animation-delay: 292.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2925) { animation-delay: 292.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2926) { animation-delay: 292.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2927) { animation-delay: 292.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2928) { animation-delay: 292.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2929) { animation-delay: 292.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2930) { animation-delay: 293s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2931) { animation-delay: 293.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2932) { animation-delay: 293.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2933) { animation-delay: 293.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2934) { animation-delay: 293.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2935) { animation-delay: 293.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2936) { animation-delay: 293.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2937) { animation-delay: 293.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2938) { animation-delay: 293.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2939) { animation-delay: 293.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2940) { animation-delay: 294s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2941) { animation-delay: 294.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2942) { animation-delay: 294.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2943) { animation-delay: 294.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2944) { animation-delay: 294.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2945) { animation-delay: 294.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2946) { animation-delay: 294.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2947) { animation-delay: 294.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2948) { animation-delay: 294.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2949) { animation-delay: 294.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2950) { animation-delay: 295s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2951) { animation-delay: 295.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2952) { animation-delay: 295.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2953) { animation-delay: 295.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2954) { animation-delay: 295.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2955) { animation-delay: 295.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2956) { animation-delay: 295.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2957) { animation-delay: 295.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2958) { animation-delay: 295.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2959) { animation-delay: 295.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2960) { animation-delay: 296s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2961) { animation-delay: 296.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2962) { animation-delay: 296.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2963) { animation-delay: 296.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2964) { animation-delay: 296.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2965) { animation-delay: 296.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2966) { animation-delay: 296.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2967) { animation-delay: 296.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2968) { animation-delay: 296.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2969) { animation-delay: 296.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2970) { animation-delay: 297s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2971) { animation-delay: 297.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2972) { animation-delay: 297.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2973) { animation-delay: 297.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2974) { animation-delay: 297.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2975) { animation-delay: 297.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2976) { animation-delay: 297.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2977) { animation-delay: 297.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2978) { animation-delay: 297.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2979) { animation-delay: 297.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2980) { animation-delay: 298s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2981) { animation-delay: 298.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2982) { animation-delay: 298.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2983) { animation-delay: 298.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2984) { animation-delay: 298.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2985) { animation-delay: 298.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2986) { animation-delay: 298.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2987) { animation-delay: 298.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2988) { animation-delay: 298.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2989) { animation-delay: 298.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2990) { animation-delay: 299s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2991) { animation-delay: 299.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2992) { animation-delay: 299.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2993) { animation-delay: 299.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2994) { animation-delay: 299.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2995) { animation-delay: 299.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2996) { animation-delay: 299.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2997) { animation-delay: 299.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2998) { animation-delay: 299.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(2999) { animation-delay: 299.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3000) { animation-delay: 300s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3001) { animation-delay: 300.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3002) { animation-delay: 300.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3003) { animation-delay: 300.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3004) { animation-delay: 300.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3005) { animation-delay: 300.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3006) { animation-delay: 300.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3007) { animation-delay: 300.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3008) { animation-delay: 300.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3009) { animation-delay: 300.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3010) { animation-delay: 301s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3011) { animation-delay: 301.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3012) { animation-delay: 301.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3013) { animation-delay: 301.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3014) { animation-delay: 301.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3015) { animation-delay: 301.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3016) { animation-delay: 301.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3017) { animation-delay: 301.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3018) { animation-delay: 301.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3019) { animation-delay: 301.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3020) { animation-delay: 302s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3021) { animation-delay: 302.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3022) { animation-delay: 302.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3023) { animation-delay: 302.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3024) { animation-delay: 302.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3025) { animation-delay: 302.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3026) { animation-delay: 302.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3027) { animation-delay: 302.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3028) { animation-delay: 302.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3029) { animation-delay: 302.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3030) { animation-delay: 303s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3031) { animation-delay: 303.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3032) { animation-delay: 303.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3033) { animation-delay: 303.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3034) { animation-delay: 303.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3035) { animation-delay: 303.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3036) { animation-delay: 303.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3037) { animation-delay: 303.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3038) { animation-delay: 303.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3039) { animation-delay: 303.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3040) { animation-delay: 304s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3041) { animation-delay: 304.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3042) { animation-delay: 304.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3043) { animation-delay: 304.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3044) { animation-delay: 304.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3045) { animation-delay: 304.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3046) { animation-delay: 304.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3047) { animation-delay: 304.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3048) { animation-delay: 304.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3049) { animation-delay: 304.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3050) { animation-delay: 305s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3051) { animation-delay: 305.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3052) { animation-delay: 305.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3053) { animation-delay: 305.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3054) { animation-delay: 305.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3055) { animation-delay: 305.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3056) { animation-delay: 305.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3057) { animation-delay: 305.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3058) { animation-delay: 305.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3059) { animation-delay: 305.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3060) { animation-delay: 306s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3061) { animation-delay: 306.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3062) { animation-delay: 306.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3063) { animation-delay: 306.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3064) { animation-delay: 306.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3065) { animation-delay: 306.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3066) { animation-delay: 306.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3067) { animation-delay: 306.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3068) { animation-delay: 306.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3069) { animation-delay: 306.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3070) { animation-delay: 307s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3071) { animation-delay: 307.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3072) { animation-delay: 307.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3073) { animation-delay: 307.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3074) { animation-delay: 307.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3075) { animation-delay: 307.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3076) { animation-delay: 307.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3077) { animation-delay: 307.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3078) { animation-delay: 307.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3079) { animation-delay: 307.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3080) { animation-delay: 308s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3081) { animation-delay: 308.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3082) { animation-delay: 308.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3083) { animation-delay: 308.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3084) { animation-delay: 308.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3085) { animation-delay: 308.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3086) { animation-delay: 308.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3087) { animation-delay: 308.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3088) { animation-delay: 308.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3089) { animation-delay: 308.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3090) { animation-delay: 309s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3091) { animation-delay: 309.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3092) { animation-delay: 309.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3093) { animation-delay: 309.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3094) { animation-delay: 309.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3095) { animation-delay: 309.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3096) { animation-delay: 309.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3097) { animation-delay: 309.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3098) { animation-delay: 309.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3099) { animation-delay: 309.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3100) { animation-delay: 310s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3101) { animation-delay: 310.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3102) { animation-delay: 310.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3103) { animation-delay: 310.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3104) { animation-delay: 310.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3105) { animation-delay: 310.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3106) { animation-delay: 310.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3107) { animation-delay: 310.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3108) { animation-delay: 310.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3109) { animation-delay: 310.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3110) { animation-delay: 311s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3111) { animation-delay: 311.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3112) { animation-delay: 311.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3113) { animation-delay: 311.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3114) { animation-delay: 311.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3115) { animation-delay: 311.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3116) { animation-delay: 311.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3117) { animation-delay: 311.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3118) { animation-delay: 311.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3119) { animation-delay: 311.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3120) { animation-delay: 312s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3121) { animation-delay: 312.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3122) { animation-delay: 312.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3123) { animation-delay: 312.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3124) { animation-delay: 312.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3125) { animation-delay: 312.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3126) { animation-delay: 312.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3127) { animation-delay: 312.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3128) { animation-delay: 312.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3129) { animation-delay: 312.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3130) { animation-delay: 313s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3131) { animation-delay: 313.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3132) { animation-delay: 313.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3133) { animation-delay: 313.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3134) { animation-delay: 313.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3135) { animation-delay: 313.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3136) { animation-delay: 313.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3137) { animation-delay: 313.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3138) { animation-delay: 313.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3139) { animation-delay: 313.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3140) { animation-delay: 314s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3141) { animation-delay: 314.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3142) { animation-delay: 314.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3143) { animation-delay: 314.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3144) { animation-delay: 314.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3145) { animation-delay: 314.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3146) { animation-delay: 314.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3147) { animation-delay: 314.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3148) { animation-delay: 314.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3149) { animation-delay: 314.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3150) { animation-delay: 315s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3151) { animation-delay: 315.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3152) { animation-delay: 315.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3153) { animation-delay: 315.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3154) { animation-delay: 315.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3155) { animation-delay: 315.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3156) { animation-delay: 315.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3157) { animation-delay: 315.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3158) { animation-delay: 315.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3159) { animation-delay: 315.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3160) { animation-delay: 316s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3161) { animation-delay: 316.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3162) { animation-delay: 316.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3163) { animation-delay: 316.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3164) { animation-delay: 316.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3165) { animation-delay: 316.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3166) { animation-delay: 316.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3167) { animation-delay: 316.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3168) { animation-delay: 316.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3169) { animation-delay: 316.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3170) { animation-delay: 317s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3171) { animation-delay: 317.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3172) { animation-delay: 317.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3173) { animation-delay: 317.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3174) { animation-delay: 317.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3175) { animation-delay: 317.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3176) { animation-delay: 317.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3177) { animation-delay: 317.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3178) { animation-delay: 317.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3179) { animation-delay: 317.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3180) { animation-delay: 318s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3181) { animation-delay: 318.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3182) { animation-delay: 318.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3183) { animation-delay: 318.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3184) { animation-delay: 318.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3185) { animation-delay: 318.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3186) { animation-delay: 318.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3187) { animation-delay: 318.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3188) { animation-delay: 318.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3189) { animation-delay: 318.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3190) { animation-delay: 319s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3191) { animation-delay: 319.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3192) { animation-delay: 319.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3193) { animation-delay: 319.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3194) { animation-delay: 319.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3195) { animation-delay: 319.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3196) { animation-delay: 319.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3197) { animation-delay: 319.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3198) { animation-delay: 319.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3199) { animation-delay: 319.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3200) { animation-delay: 320s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3201) { animation-delay: 320.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3202) { animation-delay: 320.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3203) { animation-delay: 320.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3204) { animation-delay: 320.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3205) { animation-delay: 320.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3206) { animation-delay: 320.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3207) { animation-delay: 320.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3208) { animation-delay: 320.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3209) { animation-delay: 320.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3210) { animation-delay: 321s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3211) { animation-delay: 321.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3212) { animation-delay: 321.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3213) { animation-delay: 321.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3214) { animation-delay: 321.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3215) { animation-delay: 321.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3216) { animation-delay: 321.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3217) { animation-delay: 321.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3218) { animation-delay: 321.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3219) { animation-delay: 321.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3220) { animation-delay: 322s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3221) { animation-delay: 322.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3222) { animation-delay: 322.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3223) { animation-delay: 322.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3224) { animation-delay: 322.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3225) { animation-delay: 322.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3226) { animation-delay: 322.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3227) { animation-delay: 322.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3228) { animation-delay: 322.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3229) { animation-delay: 322.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3230) { animation-delay: 323s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3231) { animation-delay: 323.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3232) { animation-delay: 323.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3233) { animation-delay: 323.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3234) { animation-delay: 323.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3235) { animation-delay: 323.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3236) { animation-delay: 323.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3237) { animation-delay: 323.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3238) { animation-delay: 323.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3239) { animation-delay: 323.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3240) { animation-delay: 324s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3241) { animation-delay: 324.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3242) { animation-delay: 324.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3243) { animation-delay: 324.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3244) { animation-delay: 324.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3245) { animation-delay: 324.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3246) { animation-delay: 324.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3247) { animation-delay: 324.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3248) { animation-delay: 324.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3249) { animation-delay: 324.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3250) { animation-delay: 325s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3251) { animation-delay: 325.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3252) { animation-delay: 325.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3253) { animation-delay: 325.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3254) { animation-delay: 325.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3255) { animation-delay: 325.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3256) { animation-delay: 325.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3257) { animation-delay: 325.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3258) { animation-delay: 325.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3259) { animation-delay: 325.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3260) { animation-delay: 326s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3261) { animation-delay: 326.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3262) { animation-delay: 326.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3263) { animation-delay: 326.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3264) { animation-delay: 326.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3265) { animation-delay: 326.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3266) { animation-delay: 326.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3267) { animation-delay: 326.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3268) { animation-delay: 326.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3269) { animation-delay: 326.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3270) { animation-delay: 327s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3271) { animation-delay: 327.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3272) { animation-delay: 327.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3273) { animation-delay: 327.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3274) { animation-delay: 327.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3275) { animation-delay: 327.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3276) { animation-delay: 327.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3277) { animation-delay: 327.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3278) { animation-delay: 327.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3279) { animation-delay: 327.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3280) { animation-delay: 328s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3281) { animation-delay: 328.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3282) { animation-delay: 328.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3283) { animation-delay: 328.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3284) { animation-delay: 328.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3285) { animation-delay: 328.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3286) { animation-delay: 328.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3287) { animation-delay: 328.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3288) { animation-delay: 328.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3289) { animation-delay: 328.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3290) { animation-delay: 329s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3291) { animation-delay: 329.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3292) { animation-delay: 329.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3293) { animation-delay: 329.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3294) { animation-delay: 329.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3295) { animation-delay: 329.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3296) { animation-delay: 329.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3297) { animation-delay: 329.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3298) { animation-delay: 329.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3299) { animation-delay: 329.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3300) { animation-delay: 330s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3301) { animation-delay: 330.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3302) { animation-delay: 330.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3303) { animation-delay: 330.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3304) { animation-delay: 330.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3305) { animation-delay: 330.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3306) { animation-delay: 330.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3307) { animation-delay: 330.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3308) { animation-delay: 330.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3309) { animation-delay: 330.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3310) { animation-delay: 331s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3311) { animation-delay: 331.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3312) { animation-delay: 331.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3313) { animation-delay: 331.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3314) { animation-delay: 331.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3315) { animation-delay: 331.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3316) { animation-delay: 331.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3317) { animation-delay: 331.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3318) { animation-delay: 331.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3319) { animation-delay: 331.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3320) { animation-delay: 332s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3321) { animation-delay: 332.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3322) { animation-delay: 332.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3323) { animation-delay: 332.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3324) { animation-delay: 332.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3325) { animation-delay: 332.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3326) { animation-delay: 332.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3327) { animation-delay: 332.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3328) { animation-delay: 332.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3329) { animation-delay: 332.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3330) { animation-delay: 333s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3331) { animation-delay: 333.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3332) { animation-delay: 333.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3333) { animation-delay: 333.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3334) { animation-delay: 333.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3335) { animation-delay: 333.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3336) { animation-delay: 333.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3337) { animation-delay: 333.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3338) { animation-delay: 333.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3339) { animation-delay: 333.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3340) { animation-delay: 334s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3341) { animation-delay: 334.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3342) { animation-delay: 334.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3343) { animation-delay: 334.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3344) { animation-delay: 334.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3345) { animation-delay: 334.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3346) { animation-delay: 334.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3347) { animation-delay: 334.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3348) { animation-delay: 334.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3349) { animation-delay: 334.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3350) { animation-delay: 335s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3351) { animation-delay: 335.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3352) { animation-delay: 335.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3353) { animation-delay: 335.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3354) { animation-delay: 335.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3355) { animation-delay: 335.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3356) { animation-delay: 335.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3357) { animation-delay: 335.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3358) { animation-delay: 335.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3359) { animation-delay: 335.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3360) { animation-delay: 336s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3361) { animation-delay: 336.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3362) { animation-delay: 336.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3363) { animation-delay: 336.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3364) { animation-delay: 336.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3365) { animation-delay: 336.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3366) { animation-delay: 336.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3367) { animation-delay: 336.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3368) { animation-delay: 336.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3369) { animation-delay: 336.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3370) { animation-delay: 337s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3371) { animation-delay: 337.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3372) { animation-delay: 337.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3373) { animation-delay: 337.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3374) { animation-delay: 337.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3375) { animation-delay: 337.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3376) { animation-delay: 337.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3377) { animation-delay: 337.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3378) { animation-delay: 337.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3379) { animation-delay: 337.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3380) { animation-delay: 338s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3381) { animation-delay: 338.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3382) { animation-delay: 338.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3383) { animation-delay: 338.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3384) { animation-delay: 338.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3385) { animation-delay: 338.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3386) { animation-delay: 338.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3387) { animation-delay: 338.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3388) { animation-delay: 338.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3389) { animation-delay: 338.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3390) { animation-delay: 339s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3391) { animation-delay: 339.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3392) { animation-delay: 339.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3393) { animation-delay: 339.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3394) { animation-delay: 339.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3395) { animation-delay: 339.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3396) { animation-delay: 339.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3397) { animation-delay: 339.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3398) { animation-delay: 339.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3399) { animation-delay: 339.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3400) { animation-delay: 340s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3401) { animation-delay: 340.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3402) { animation-delay: 340.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3403) { animation-delay: 340.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3404) { animation-delay: 340.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3405) { animation-delay: 340.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3406) { animation-delay: 340.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3407) { animation-delay: 340.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3408) { animation-delay: 340.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3409) { animation-delay: 340.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3410) { animation-delay: 341s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3411) { animation-delay: 341.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3412) { animation-delay: 341.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3413) { animation-delay: 341.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3414) { animation-delay: 341.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3415) { animation-delay: 341.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3416) { animation-delay: 341.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3417) { animation-delay: 341.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3418) { animation-delay: 341.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3419) { animation-delay: 341.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3420) { animation-delay: 342s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3421) { animation-delay: 342.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3422) { animation-delay: 342.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3423) { animation-delay: 342.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3424) { animation-delay: 342.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3425) { animation-delay: 342.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3426) { animation-delay: 342.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3427) { animation-delay: 342.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3428) { animation-delay: 342.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3429) { animation-delay: 342.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3430) { animation-delay: 343s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3431) { animation-delay: 343.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3432) { animation-delay: 343.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3433) { animation-delay: 343.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3434) { animation-delay: 343.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3435) { animation-delay: 343.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3436) { animation-delay: 343.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3437) { animation-delay: 343.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3438) { animation-delay: 343.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3439) { animation-delay: 343.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3440) { animation-delay: 344s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3441) { animation-delay: 344.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3442) { animation-delay: 344.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3443) { animation-delay: 344.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3444) { animation-delay: 344.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3445) { animation-delay: 344.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3446) { animation-delay: 344.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3447) { animation-delay: 344.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3448) { animation-delay: 344.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3449) { animation-delay: 344.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3450) { animation-delay: 345s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3451) { animation-delay: 345.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3452) { animation-delay: 345.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3453) { animation-delay: 345.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3454) { animation-delay: 345.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3455) { animation-delay: 345.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3456) { animation-delay: 345.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3457) { animation-delay: 345.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3458) { animation-delay: 345.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3459) { animation-delay: 345.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3460) { animation-delay: 346s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3461) { animation-delay: 346.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3462) { animation-delay: 346.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3463) { animation-delay: 346.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3464) { animation-delay: 346.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3465) { animation-delay: 346.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3466) { animation-delay: 346.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3467) { animation-delay: 346.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3468) { animation-delay: 346.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3469) { animation-delay: 346.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3470) { animation-delay: 347s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3471) { animation-delay: 347.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3472) { animation-delay: 347.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3473) { animation-delay: 347.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3474) { animation-delay: 347.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3475) { animation-delay: 347.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3476) { animation-delay: 347.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3477) { animation-delay: 347.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3478) { animation-delay: 347.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3479) { animation-delay: 347.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3480) { animation-delay: 348s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3481) { animation-delay: 348.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3482) { animation-delay: 348.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3483) { animation-delay: 348.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3484) { animation-delay: 348.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3485) { animation-delay: 348.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3486) { animation-delay: 348.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3487) { animation-delay: 348.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3488) { animation-delay: 348.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3489) { animation-delay: 348.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3490) { animation-delay: 349s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3491) { animation-delay: 349.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3492) { animation-delay: 349.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3493) { animation-delay: 349.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3494) { animation-delay: 349.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3495) { animation-delay: 349.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3496) { animation-delay: 349.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3497) { animation-delay: 349.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3498) { animation-delay: 349.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3499) { animation-delay: 349.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3500) { animation-delay: 350s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3501) { animation-delay: 350.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3502) { animation-delay: 350.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3503) { animation-delay: 350.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3504) { animation-delay: 350.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3505) { animation-delay: 350.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3506) { animation-delay: 350.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3507) { animation-delay: 350.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3508) { animation-delay: 350.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3509) { animation-delay: 350.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3510) { animation-delay: 351s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3511) { animation-delay: 351.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3512) { animation-delay: 351.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3513) { animation-delay: 351.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3514) { animation-delay: 351.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3515) { animation-delay: 351.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3516) { animation-delay: 351.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3517) { animation-delay: 351.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3518) { animation-delay: 351.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3519) { animation-delay: 351.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3520) { animation-delay: 352s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3521) { animation-delay: 352.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3522) { animation-delay: 352.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3523) { animation-delay: 352.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3524) { animation-delay: 352.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3525) { animation-delay: 352.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3526) { animation-delay: 352.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3527) { animation-delay: 352.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3528) { animation-delay: 352.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3529) { animation-delay: 352.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3530) { animation-delay: 353s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3531) { animation-delay: 353.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3532) { animation-delay: 353.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3533) { animation-delay: 353.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3534) { animation-delay: 353.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3535) { animation-delay: 353.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3536) { animation-delay: 353.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3537) { animation-delay: 353.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3538) { animation-delay: 353.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3539) { animation-delay: 353.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3540) { animation-delay: 354s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3541) { animation-delay: 354.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3542) { animation-delay: 354.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3543) { animation-delay: 354.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3544) { animation-delay: 354.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3545) { animation-delay: 354.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3546) { animation-delay: 354.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3547) { animation-delay: 354.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3548) { animation-delay: 354.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3549) { animation-delay: 354.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3550) { animation-delay: 355s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3551) { animation-delay: 355.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3552) { animation-delay: 355.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3553) { animation-delay: 355.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3554) { animation-delay: 355.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3555) { animation-delay: 355.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3556) { animation-delay: 355.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3557) { animation-delay: 355.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3558) { animation-delay: 355.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3559) { animation-delay: 355.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3560) { animation-delay: 356s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3561) { animation-delay: 356.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3562) { animation-delay: 356.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3563) { animation-delay: 356.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3564) { animation-delay: 356.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3565) { animation-delay: 356.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3566) { animation-delay: 356.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3567) { animation-delay: 356.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3568) { animation-delay: 356.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3569) { animation-delay: 356.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3570) { animation-delay: 357s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3571) { animation-delay: 357.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3572) { animation-delay: 357.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3573) { animation-delay: 357.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3574) { animation-delay: 357.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3575) { animation-delay: 357.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3576) { animation-delay: 357.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3577) { animation-delay: 357.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3578) { animation-delay: 357.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3579) { animation-delay: 357.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3580) { animation-delay: 358s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3581) { animation-delay: 358.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3582) { animation-delay: 358.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3583) { animation-delay: 358.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3584) { animation-delay: 358.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3585) { animation-delay: 358.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3586) { animation-delay: 358.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3587) { animation-delay: 358.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3588) { animation-delay: 358.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3589) { animation-delay: 358.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3590) { animation-delay: 359s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3591) { animation-delay: 359.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3592) { animation-delay: 359.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3593) { animation-delay: 359.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3594) { animation-delay: 359.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3595) { animation-delay: 359.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3596) { animation-delay: 359.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3597) { animation-delay: 359.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3598) { animation-delay: 359.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3599) { animation-delay: 359.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3600) { animation-delay: 360s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3601) { animation-delay: 360.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3602) { animation-delay: 360.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3603) { animation-delay: 360.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3604) { animation-delay: 360.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3605) { animation-delay: 360.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3606) { animation-delay: 360.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3607) { animation-delay: 360.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3608) { animation-delay: 360.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3609) { animation-delay: 360.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3610) { animation-delay: 361s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3611) { animation-delay: 361.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3612) { animation-delay: 361.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3613) { animation-delay: 361.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3614) { animation-delay: 361.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3615) { animation-delay: 361.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3616) { animation-delay: 361.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3617) { animation-delay: 361.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3618) { animation-delay: 361.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3619) { animation-delay: 361.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3620) { animation-delay: 362s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3621) { animation-delay: 362.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3622) { animation-delay: 362.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3623) { animation-delay: 362.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3624) { animation-delay: 362.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3625) { animation-delay: 362.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3626) { animation-delay: 362.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3627) { animation-delay: 362.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3628) { animation-delay: 362.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3629) { animation-delay: 362.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3630) { animation-delay: 363s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3631) { animation-delay: 363.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3632) { animation-delay: 363.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3633) { animation-delay: 363.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3634) { animation-delay: 363.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3635) { animation-delay: 363.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3636) { animation-delay: 363.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3637) { animation-delay: 363.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3638) { animation-delay: 363.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3639) { animation-delay: 363.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3640) { animation-delay: 364s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3641) { animation-delay: 364.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3642) { animation-delay: 364.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3643) { animation-delay: 364.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3644) { animation-delay: 364.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3645) { animation-delay: 364.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3646) { animation-delay: 364.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3647) { animation-delay: 364.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3648) { animation-delay: 364.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3649) { animation-delay: 364.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3650) { animation-delay: 365s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3651) { animation-delay: 365.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3652) { animation-delay: 365.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3653) { animation-delay: 365.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3654) { animation-delay: 365.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3655) { animation-delay: 365.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3656) { animation-delay: 365.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3657) { animation-delay: 365.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3658) { animation-delay: 365.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3659) { animation-delay: 365.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3660) { animation-delay: 366s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3661) { animation-delay: 366.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3662) { animation-delay: 366.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3663) { animation-delay: 366.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3664) { animation-delay: 366.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3665) { animation-delay: 366.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3666) { animation-delay: 366.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3667) { animation-delay: 366.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3668) { animation-delay: 366.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3669) { animation-delay: 366.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3670) { animation-delay: 367s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3671) { animation-delay: 367.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3672) { animation-delay: 367.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3673) { animation-delay: 367.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3674) { animation-delay: 367.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3675) { animation-delay: 367.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3676) { animation-delay: 367.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3677) { animation-delay: 367.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3678) { animation-delay: 367.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3679) { animation-delay: 367.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3680) { animation-delay: 368s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3681) { animation-delay: 368.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3682) { animation-delay: 368.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3683) { animation-delay: 368.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3684) { animation-delay: 368.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3685) { animation-delay: 368.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3686) { animation-delay: 368.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3687) { animation-delay: 368.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3688) { animation-delay: 368.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3689) { animation-delay: 368.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3690) { animation-delay: 369s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3691) { animation-delay: 369.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3692) { animation-delay: 369.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3693) { animation-delay: 369.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3694) { animation-delay: 369.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3695) { animation-delay: 369.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3696) { animation-delay: 369.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3697) { animation-delay: 369.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3698) { animation-delay: 369.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3699) { animation-delay: 369.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3700) { animation-delay: 370s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3701) { animation-delay: 370.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3702) { animation-delay: 370.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3703) { animation-delay: 370.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3704) { animation-delay: 370.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3705) { animation-delay: 370.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3706) { animation-delay: 370.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3707) { animation-delay: 370.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3708) { animation-delay: 370.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3709) { animation-delay: 370.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3710) { animation-delay: 371s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3711) { animation-delay: 371.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3712) { animation-delay: 371.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3713) { animation-delay: 371.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3714) { animation-delay: 371.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3715) { animation-delay: 371.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3716) { animation-delay: 371.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3717) { animation-delay: 371.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3718) { animation-delay: 371.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3719) { animation-delay: 371.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3720) { animation-delay: 372s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3721) { animation-delay: 372.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3722) { animation-delay: 372.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3723) { animation-delay: 372.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3724) { animation-delay: 372.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3725) { animation-delay: 372.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3726) { animation-delay: 372.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3727) { animation-delay: 372.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3728) { animation-delay: 372.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3729) { animation-delay: 372.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3730) { animation-delay: 373s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3731) { animation-delay: 373.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3732) { animation-delay: 373.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3733) { animation-delay: 373.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3734) { animation-delay: 373.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3735) { animation-delay: 373.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3736) { animation-delay: 373.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3737) { animation-delay: 373.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3738) { animation-delay: 373.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3739) { animation-delay: 373.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3740) { animation-delay: 374s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3741) { animation-delay: 374.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3742) { animation-delay: 374.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3743) { animation-delay: 374.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3744) { animation-delay: 374.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3745) { animation-delay: 374.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3746) { animation-delay: 374.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3747) { animation-delay: 374.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3748) { animation-delay: 374.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3749) { animation-delay: 374.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3750) { animation-delay: 375s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3751) { animation-delay: 375.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3752) { animation-delay: 375.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3753) { animation-delay: 375.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3754) { animation-delay: 375.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3755) { animation-delay: 375.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3756) { animation-delay: 375.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3757) { animation-delay: 375.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3758) { animation-delay: 375.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3759) { animation-delay: 375.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3760) { animation-delay: 376s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3761) { animation-delay: 376.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3762) { animation-delay: 376.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3763) { animation-delay: 376.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3764) { animation-delay: 376.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3765) { animation-delay: 376.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3766) { animation-delay: 376.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3767) { animation-delay: 376.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3768) { animation-delay: 376.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3769) { animation-delay: 376.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3770) { animation-delay: 377s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3771) { animation-delay: 377.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3772) { animation-delay: 377.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3773) { animation-delay: 377.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3774) { animation-delay: 377.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3775) { animation-delay: 377.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3776) { animation-delay: 377.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3777) { animation-delay: 377.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3778) { animation-delay: 377.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3779) { animation-delay: 377.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3780) { animation-delay: 378s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3781) { animation-delay: 378.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3782) { animation-delay: 378.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3783) { animation-delay: 378.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3784) { animation-delay: 378.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3785) { animation-delay: 378.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3786) { animation-delay: 378.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3787) { animation-delay: 378.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3788) { animation-delay: 378.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3789) { animation-delay: 378.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3790) { animation-delay: 379s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3791) { animation-delay: 379.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3792) { animation-delay: 379.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3793) { animation-delay: 379.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3794) { animation-delay: 379.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3795) { animation-delay: 379.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3796) { animation-delay: 379.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3797) { animation-delay: 379.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3798) { animation-delay: 379.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3799) { animation-delay: 379.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3800) { animation-delay: 380s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3801) { animation-delay: 380.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3802) { animation-delay: 380.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3803) { animation-delay: 380.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3804) { animation-delay: 380.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3805) { animation-delay: 380.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3806) { animation-delay: 380.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3807) { animation-delay: 380.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3808) { animation-delay: 380.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3809) { animation-delay: 380.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3810) { animation-delay: 381s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3811) { animation-delay: 381.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3812) { animation-delay: 381.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3813) { animation-delay: 381.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3814) { animation-delay: 381.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3815) { animation-delay: 381.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3816) { animation-delay: 381.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3817) { animation-delay: 381.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3818) { animation-delay: 381.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3819) { animation-delay: 381.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3820) { animation-delay: 382s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3821) { animation-delay: 382.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3822) { animation-delay: 382.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3823) { animation-delay: 382.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3824) { animation-delay: 382.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3825) { animation-delay: 382.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3826) { animation-delay: 382.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3827) { animation-delay: 382.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3828) { animation-delay: 382.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3829) { animation-delay: 382.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3830) { animation-delay: 383s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3831) { animation-delay: 383.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3832) { animation-delay: 383.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3833) { animation-delay: 383.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3834) { animation-delay: 383.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3835) { animation-delay: 383.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3836) { animation-delay: 383.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3837) { animation-delay: 383.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3838) { animation-delay: 383.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3839) { animation-delay: 383.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3840) { animation-delay: 384s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3841) { animation-delay: 384.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3842) { animation-delay: 384.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3843) { animation-delay: 384.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3844) { animation-delay: 384.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3845) { animation-delay: 384.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3846) { animation-delay: 384.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3847) { animation-delay: 384.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3848) { animation-delay: 384.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3849) { animation-delay: 384.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3850) { animation-delay: 385s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3851) { animation-delay: 385.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3852) { animation-delay: 385.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3853) { animation-delay: 385.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3854) { animation-delay: 385.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3855) { animation-delay: 385.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3856) { animation-delay: 385.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3857) { animation-delay: 385.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3858) { animation-delay: 385.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3859) { animation-delay: 385.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3860) { animation-delay: 386s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3861) { animation-delay: 386.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3862) { animation-delay: 386.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3863) { animation-delay: 386.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3864) { animation-delay: 386.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3865) { animation-delay: 386.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3866) { animation-delay: 386.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3867) { animation-delay: 386.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3868) { animation-delay: 386.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3869) { animation-delay: 386.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3870) { animation-delay: 387s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3871) { animation-delay: 387.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3872) { animation-delay: 387.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3873) { animation-delay: 387.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3874) { animation-delay: 387.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3875) { animation-delay: 387.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3876) { animation-delay: 387.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3877) { animation-delay: 387.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3878) { animation-delay: 387.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3879) { animation-delay: 387.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3880) { animation-delay: 388s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3881) { animation-delay: 388.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3882) { animation-delay: 388.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3883) { animation-delay: 388.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3884) { animation-delay: 388.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3885) { animation-delay: 388.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3886) { animation-delay: 388.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3887) { animation-delay: 388.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3888) { animation-delay: 388.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3889) { animation-delay: 388.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3890) { animation-delay: 389s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3891) { animation-delay: 389.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3892) { animation-delay: 389.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3893) { animation-delay: 389.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3894) { animation-delay: 389.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3895) { animation-delay: 389.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3896) { animation-delay: 389.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3897) { animation-delay: 389.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3898) { animation-delay: 389.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3899) { animation-delay: 389.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3900) { animation-delay: 390s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3901) { animation-delay: 390.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3902) { animation-delay: 390.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3903) { animation-delay: 390.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3904) { animation-delay: 390.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3905) { animation-delay: 390.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3906) { animation-delay: 390.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3907) { animation-delay: 390.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3908) { animation-delay: 390.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3909) { animation-delay: 390.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3910) { animation-delay: 391s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3911) { animation-delay: 391.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3912) { animation-delay: 391.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3913) { animation-delay: 391.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3914) { animation-delay: 391.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3915) { animation-delay: 391.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3916) { animation-delay: 391.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3917) { animation-delay: 391.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3918) { animation-delay: 391.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3919) { animation-delay: 391.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3920) { animation-delay: 392s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3921) { animation-delay: 392.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3922) { animation-delay: 392.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3923) { animation-delay: 392.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3924) { animation-delay: 392.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3925) { animation-delay: 392.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3926) { animation-delay: 392.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3927) { animation-delay: 392.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3928) { animation-delay: 392.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3929) { animation-delay: 392.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3930) { animation-delay: 393s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3931) { animation-delay: 393.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3932) { animation-delay: 393.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3933) { animation-delay: 393.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3934) { animation-delay: 393.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3935) { animation-delay: 393.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3936) { animation-delay: 393.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3937) { animation-delay: 393.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3938) { animation-delay: 393.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3939) { animation-delay: 393.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3940) { animation-delay: 394s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3941) { animation-delay: 394.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3942) { animation-delay: 394.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3943) { animation-delay: 394.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3944) { animation-delay: 394.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3945) { animation-delay: 394.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3946) { animation-delay: 394.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3947) { animation-delay: 394.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3948) { animation-delay: 394.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3949) { animation-delay: 394.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3950) { animation-delay: 395s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3951) { animation-delay: 395.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3952) { animation-delay: 395.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3953) { animation-delay: 395.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3954) { animation-delay: 395.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3955) { animation-delay: 395.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3956) { animation-delay: 395.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3957) { animation-delay: 395.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3958) { animation-delay: 395.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3959) { animation-delay: 395.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3960) { animation-delay: 396s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3961) { animation-delay: 396.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3962) { animation-delay: 396.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3963) { animation-delay: 396.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3964) { animation-delay: 396.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3965) { animation-delay: 396.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3966) { animation-delay: 396.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3967) { animation-delay: 396.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3968) { animation-delay: 396.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3969) { animation-delay: 396.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3970) { animation-delay: 397s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3971) { animation-delay: 397.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3972) { animation-delay: 397.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3973) { animation-delay: 397.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3974) { animation-delay: 397.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3975) { animation-delay: 397.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3976) { animation-delay: 397.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3977) { animation-delay: 397.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3978) { animation-delay: 397.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3979) { animation-delay: 397.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3980) { animation-delay: 398s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3981) { animation-delay: 398.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3982) { animation-delay: 398.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3983) { animation-delay: 398.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3984) { animation-delay: 398.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3985) { animation-delay: 398.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3986) { animation-delay: 398.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3987) { animation-delay: 398.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3988) { animation-delay: 398.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3989) { animation-delay: 398.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3990) { animation-delay: 399s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3991) { animation-delay: 399.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3992) { animation-delay: 399.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3993) { animation-delay: 399.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3994) { animation-delay: 399.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3995) { animation-delay: 399.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3996) { animation-delay: 399.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3997) { animation-delay: 399.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3998) { animation-delay: 399.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(3999) { animation-delay: 399.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4000) { animation-delay: 400s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4001) { animation-delay: 400.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4002) { animation-delay: 400.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4003) { animation-delay: 400.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4004) { animation-delay: 400.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4005) { animation-delay: 400.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4006) { animation-delay: 400.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4007) { animation-delay: 400.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4008) { animation-delay: 400.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4009) { animation-delay: 400.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4010) { animation-delay: 401s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4011) { animation-delay: 401.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4012) { animation-delay: 401.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4013) { animation-delay: 401.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4014) { animation-delay: 401.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4015) { animation-delay: 401.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4016) { animation-delay: 401.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4017) { animation-delay: 401.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4018) { animation-delay: 401.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4019) { animation-delay: 401.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4020) { animation-delay: 402s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4021) { animation-delay: 402.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4022) { animation-delay: 402.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4023) { animation-delay: 402.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4024) { animation-delay: 402.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4025) { animation-delay: 402.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4026) { animation-delay: 402.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4027) { animation-delay: 402.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4028) { animation-delay: 402.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4029) { animation-delay: 402.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4030) { animation-delay: 403s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4031) { animation-delay: 403.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4032) { animation-delay: 403.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4033) { animation-delay: 403.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4034) { animation-delay: 403.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4035) { animation-delay: 403.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4036) { animation-delay: 403.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4037) { animation-delay: 403.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4038) { animation-delay: 403.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4039) { animation-delay: 403.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4040) { animation-delay: 404s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4041) { animation-delay: 404.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4042) { animation-delay: 404.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4043) { animation-delay: 404.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4044) { animation-delay: 404.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4045) { animation-delay: 404.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4046) { animation-delay: 404.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4047) { animation-delay: 404.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4048) { animation-delay: 404.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4049) { animation-delay: 404.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4050) { animation-delay: 405s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4051) { animation-delay: 405.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4052) { animation-delay: 405.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4053) { animation-delay: 405.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4054) { animation-delay: 405.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4055) { animation-delay: 405.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4056) { animation-delay: 405.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4057) { animation-delay: 405.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4058) { animation-delay: 405.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4059) { animation-delay: 405.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4060) { animation-delay: 406s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4061) { animation-delay: 406.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4062) { animation-delay: 406.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4063) { animation-delay: 406.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4064) { animation-delay: 406.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4065) { animation-delay: 406.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4066) { animation-delay: 406.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4067) { animation-delay: 406.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4068) { animation-delay: 406.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4069) { animation-delay: 406.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4070) { animation-delay: 407s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4071) { animation-delay: 407.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4072) { animation-delay: 407.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4073) { animation-delay: 407.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4074) { animation-delay: 407.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4075) { animation-delay: 407.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4076) { animation-delay: 407.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4077) { animation-delay: 407.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4078) { animation-delay: 407.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4079) { animation-delay: 407.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4080) { animation-delay: 408s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4081) { animation-delay: 408.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4082) { animation-delay: 408.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4083) { animation-delay: 408.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4084) { animation-delay: 408.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4085) { animation-delay: 408.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4086) { animation-delay: 408.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4087) { animation-delay: 408.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4088) { animation-delay: 408.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4089) { animation-delay: 408.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4090) { animation-delay: 409s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4091) { animation-delay: 409.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4092) { animation-delay: 409.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4093) { animation-delay: 409.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4094) { animation-delay: 409.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4095) { animation-delay: 409.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4096) { animation-delay: 409.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4097) { animation-delay: 409.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4098) { animation-delay: 409.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4099) { animation-delay: 409.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4100) { animation-delay: 410s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4101) { animation-delay: 410.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4102) { animation-delay: 410.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4103) { animation-delay: 410.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4104) { animation-delay: 410.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4105) { animation-delay: 410.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4106) { animation-delay: 410.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4107) { animation-delay: 410.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4108) { animation-delay: 410.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4109) { animation-delay: 410.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4110) { animation-delay: 411s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4111) { animation-delay: 411.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4112) { animation-delay: 411.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4113) { animation-delay: 411.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4114) { animation-delay: 411.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4115) { animation-delay: 411.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4116) { animation-delay: 411.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4117) { animation-delay: 411.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4118) { animation-delay: 411.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4119) { animation-delay: 411.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4120) { animation-delay: 412s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4121) { animation-delay: 412.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4122) { animation-delay: 412.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4123) { animation-delay: 412.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4124) { animation-delay: 412.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4125) { animation-delay: 412.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4126) { animation-delay: 412.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4127) { animation-delay: 412.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4128) { animation-delay: 412.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4129) { animation-delay: 412.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4130) { animation-delay: 413s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4131) { animation-delay: 413.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4132) { animation-delay: 413.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4133) { animation-delay: 413.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4134) { animation-delay: 413.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4135) { animation-delay: 413.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4136) { animation-delay: 413.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4137) { animation-delay: 413.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4138) { animation-delay: 413.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4139) { animation-delay: 413.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4140) { animation-delay: 414s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4141) { animation-delay: 414.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4142) { animation-delay: 414.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4143) { animation-delay: 414.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4144) { animation-delay: 414.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4145) { animation-delay: 414.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4146) { animation-delay: 414.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4147) { animation-delay: 414.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4148) { animation-delay: 414.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4149) { animation-delay: 414.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4150) { animation-delay: 415s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4151) { animation-delay: 415.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4152) { animation-delay: 415.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4153) { animation-delay: 415.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4154) { animation-delay: 415.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4155) { animation-delay: 415.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4156) { animation-delay: 415.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4157) { animation-delay: 415.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4158) { animation-delay: 415.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4159) { animation-delay: 415.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4160) { animation-delay: 416s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4161) { animation-delay: 416.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4162) { animation-delay: 416.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4163) { animation-delay: 416.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4164) { animation-delay: 416.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4165) { animation-delay: 416.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4166) { animation-delay: 416.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4167) { animation-delay: 416.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4168) { animation-delay: 416.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4169) { animation-delay: 416.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4170) { animation-delay: 417s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4171) { animation-delay: 417.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4172) { animation-delay: 417.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4173) { animation-delay: 417.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4174) { animation-delay: 417.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4175) { animation-delay: 417.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4176) { animation-delay: 417.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4177) { animation-delay: 417.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4178) { animation-delay: 417.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4179) { animation-delay: 417.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4180) { animation-delay: 418s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4181) { animation-delay: 418.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4182) { animation-delay: 418.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4183) { animation-delay: 418.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4184) { animation-delay: 418.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4185) { animation-delay: 418.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4186) { animation-delay: 418.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4187) { animation-delay: 418.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4188) { animation-delay: 418.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4189) { animation-delay: 418.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4190) { animation-delay: 419s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4191) { animation-delay: 419.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4192) { animation-delay: 419.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4193) { animation-delay: 419.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4194) { animation-delay: 419.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4195) { animation-delay: 419.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4196) { animation-delay: 419.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4197) { animation-delay: 419.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4198) { animation-delay: 419.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4199) { animation-delay: 419.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4200) { animation-delay: 420s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4201) { animation-delay: 420.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4202) { animation-delay: 420.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4203) { animation-delay: 420.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4204) { animation-delay: 420.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4205) { animation-delay: 420.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4206) { animation-delay: 420.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4207) { animation-delay: 420.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4208) { animation-delay: 420.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4209) { animation-delay: 420.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4210) { animation-delay: 421s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4211) { animation-delay: 421.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4212) { animation-delay: 421.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4213) { animation-delay: 421.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4214) { animation-delay: 421.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4215) { animation-delay: 421.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4216) { animation-delay: 421.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4217) { animation-delay: 421.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4218) { animation-delay: 421.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4219) { animation-delay: 421.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4220) { animation-delay: 422s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4221) { animation-delay: 422.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4222) { animation-delay: 422.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4223) { animation-delay: 422.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4224) { animation-delay: 422.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4225) { animation-delay: 422.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4226) { animation-delay: 422.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4227) { animation-delay: 422.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4228) { animation-delay: 422.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4229) { animation-delay: 422.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4230) { animation-delay: 423s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4231) { animation-delay: 423.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4232) { animation-delay: 423.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4233) { animation-delay: 423.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4234) { animation-delay: 423.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4235) { animation-delay: 423.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4236) { animation-delay: 423.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4237) { animation-delay: 423.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4238) { animation-delay: 423.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4239) { animation-delay: 423.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4240) { animation-delay: 424s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4241) { animation-delay: 424.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4242) { animation-delay: 424.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4243) { animation-delay: 424.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4244) { animation-delay: 424.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4245) { animation-delay: 424.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4246) { animation-delay: 424.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4247) { animation-delay: 424.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4248) { animation-delay: 424.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4249) { animation-delay: 424.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4250) { animation-delay: 425s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4251) { animation-delay: 425.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4252) { animation-delay: 425.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4253) { animation-delay: 425.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4254) { animation-delay: 425.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4255) { animation-delay: 425.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4256) { animation-delay: 425.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4257) { animation-delay: 425.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4258) { animation-delay: 425.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4259) { animation-delay: 425.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4260) { animation-delay: 426s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4261) { animation-delay: 426.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4262) { animation-delay: 426.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4263) { animation-delay: 426.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4264) { animation-delay: 426.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4265) { animation-delay: 426.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4266) { animation-delay: 426.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4267) { animation-delay: 426.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4268) { animation-delay: 426.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4269) { animation-delay: 426.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4270) { animation-delay: 427s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4271) { animation-delay: 427.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4272) { animation-delay: 427.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4273) { animation-delay: 427.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4274) { animation-delay: 427.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4275) { animation-delay: 427.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4276) { animation-delay: 427.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4277) { animation-delay: 427.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4278) { animation-delay: 427.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4279) { animation-delay: 427.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4280) { animation-delay: 428s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4281) { animation-delay: 428.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4282) { animation-delay: 428.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4283) { animation-delay: 428.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4284) { animation-delay: 428.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4285) { animation-delay: 428.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4286) { animation-delay: 428.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4287) { animation-delay: 428.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4288) { animation-delay: 428.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4289) { animation-delay: 428.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4290) { animation-delay: 429s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4291) { animation-delay: 429.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4292) { animation-delay: 429.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4293) { animation-delay: 429.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4294) { animation-delay: 429.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4295) { animation-delay: 429.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4296) { animation-delay: 429.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4297) { animation-delay: 429.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4298) { animation-delay: 429.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4299) { animation-delay: 429.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4300) { animation-delay: 430s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4301) { animation-delay: 430.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4302) { animation-delay: 430.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4303) { animation-delay: 430.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4304) { animation-delay: 430.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4305) { animation-delay: 430.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4306) { animation-delay: 430.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4307) { animation-delay: 430.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4308) { animation-delay: 430.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4309) { animation-delay: 430.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4310) { animation-delay: 431s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4311) { animation-delay: 431.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4312) { animation-delay: 431.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4313) { animation-delay: 431.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4314) { animation-delay: 431.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4315) { animation-delay: 431.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4316) { animation-delay: 431.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4317) { animation-delay: 431.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4318) { animation-delay: 431.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4319) { animation-delay: 431.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4320) { animation-delay: 432s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4321) { animation-delay: 432.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4322) { animation-delay: 432.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4323) { animation-delay: 432.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4324) { animation-delay: 432.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4325) { animation-delay: 432.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4326) { animation-delay: 432.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4327) { animation-delay: 432.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4328) { animation-delay: 432.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4329) { animation-delay: 432.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4330) { animation-delay: 433s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4331) { animation-delay: 433.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4332) { animation-delay: 433.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4333) { animation-delay: 433.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4334) { animation-delay: 433.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4335) { animation-delay: 433.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4336) { animation-delay: 433.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4337) { animation-delay: 433.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4338) { animation-delay: 433.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4339) { animation-delay: 433.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4340) { animation-delay: 434s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4341) { animation-delay: 434.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4342) { animation-delay: 434.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4343) { animation-delay: 434.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4344) { animation-delay: 434.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4345) { animation-delay: 434.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4346) { animation-delay: 434.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4347) { animation-delay: 434.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4348) { animation-delay: 434.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4349) { animation-delay: 434.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4350) { animation-delay: 435s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4351) { animation-delay: 435.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4352) { animation-delay: 435.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4353) { animation-delay: 435.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4354) { animation-delay: 435.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4355) { animation-delay: 435.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4356) { animation-delay: 435.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4357) { animation-delay: 435.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4358) { animation-delay: 435.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4359) { animation-delay: 435.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4360) { animation-delay: 436s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4361) { animation-delay: 436.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4362) { animation-delay: 436.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4363) { animation-delay: 436.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4364) { animation-delay: 436.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4365) { animation-delay: 436.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4366) { animation-delay: 436.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4367) { animation-delay: 436.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4368) { animation-delay: 436.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4369) { animation-delay: 436.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4370) { animation-delay: 437s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4371) { animation-delay: 437.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4372) { animation-delay: 437.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4373) { animation-delay: 437.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4374) { animation-delay: 437.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4375) { animation-delay: 437.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4376) { animation-delay: 437.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4377) { animation-delay: 437.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4378) { animation-delay: 437.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4379) { animation-delay: 437.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4380) { animation-delay: 438s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4381) { animation-delay: 438.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4382) { animation-delay: 438.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4383) { animation-delay: 438.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4384) { animation-delay: 438.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4385) { animation-delay: 438.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4386) { animation-delay: 438.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4387) { animation-delay: 438.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4388) { animation-delay: 438.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4389) { animation-delay: 438.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4390) { animation-delay: 439s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4391) { animation-delay: 439.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4392) { animation-delay: 439.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4393) { animation-delay: 439.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4394) { animation-delay: 439.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4395) { animation-delay: 439.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4396) { animation-delay: 439.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4397) { animation-delay: 439.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4398) { animation-delay: 439.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4399) { animation-delay: 439.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4400) { animation-delay: 440s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4401) { animation-delay: 440.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4402) { animation-delay: 440.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4403) { animation-delay: 440.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4404) { animation-delay: 440.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4405) { animation-delay: 440.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4406) { animation-delay: 440.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4407) { animation-delay: 440.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4408) { animation-delay: 440.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4409) { animation-delay: 440.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4410) { animation-delay: 441s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4411) { animation-delay: 441.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4412) { animation-delay: 441.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4413) { animation-delay: 441.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4414) { animation-delay: 441.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4415) { animation-delay: 441.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4416) { animation-delay: 441.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4417) { animation-delay: 441.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4418) { animation-delay: 441.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4419) { animation-delay: 441.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4420) { animation-delay: 442s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4421) { animation-delay: 442.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4422) { animation-delay: 442.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4423) { animation-delay: 442.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4424) { animation-delay: 442.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4425) { animation-delay: 442.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4426) { animation-delay: 442.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4427) { animation-delay: 442.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4428) { animation-delay: 442.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4429) { animation-delay: 442.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4430) { animation-delay: 443s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4431) { animation-delay: 443.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4432) { animation-delay: 443.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4433) { animation-delay: 443.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4434) { animation-delay: 443.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4435) { animation-delay: 443.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4436) { animation-delay: 443.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4437) { animation-delay: 443.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4438) { animation-delay: 443.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4439) { animation-delay: 443.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4440) { animation-delay: 444s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4441) { animation-delay: 444.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4442) { animation-delay: 444.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4443) { animation-delay: 444.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4444) { animation-delay: 444.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4445) { animation-delay: 444.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4446) { animation-delay: 444.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4447) { animation-delay: 444.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4448) { animation-delay: 444.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4449) { animation-delay: 444.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4450) { animation-delay: 445s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4451) { animation-delay: 445.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4452) { animation-delay: 445.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4453) { animation-delay: 445.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4454) { animation-delay: 445.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4455) { animation-delay: 445.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4456) { animation-delay: 445.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4457) { animation-delay: 445.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4458) { animation-delay: 445.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4459) { animation-delay: 445.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4460) { animation-delay: 446s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4461) { animation-delay: 446.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4462) { animation-delay: 446.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4463) { animation-delay: 446.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4464) { animation-delay: 446.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4465) { animation-delay: 446.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4466) { animation-delay: 446.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4467) { animation-delay: 446.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4468) { animation-delay: 446.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4469) { animation-delay: 446.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4470) { animation-delay: 447s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4471) { animation-delay: 447.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4472) { animation-delay: 447.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4473) { animation-delay: 447.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4474) { animation-delay: 447.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4475) { animation-delay: 447.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4476) { animation-delay: 447.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4477) { animation-delay: 447.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4478) { animation-delay: 447.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4479) { animation-delay: 447.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4480) { animation-delay: 448s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4481) { animation-delay: 448.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4482) { animation-delay: 448.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4483) { animation-delay: 448.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4484) { animation-delay: 448.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4485) { animation-delay: 448.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4486) { animation-delay: 448.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4487) { animation-delay: 448.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4488) { animation-delay: 448.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4489) { animation-delay: 448.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4490) { animation-delay: 449s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4491) { animation-delay: 449.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4492) { animation-delay: 449.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4493) { animation-delay: 449.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4494) { animation-delay: 449.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4495) { animation-delay: 449.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4496) { animation-delay: 449.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4497) { animation-delay: 449.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4498) { animation-delay: 449.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4499) { animation-delay: 449.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4500) { animation-delay: 450s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4501) { animation-delay: 450.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4502) { animation-delay: 450.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4503) { animation-delay: 450.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4504) { animation-delay: 450.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4505) { animation-delay: 450.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4506) { animation-delay: 450.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4507) { animation-delay: 450.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4508) { animation-delay: 450.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4509) { animation-delay: 450.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4510) { animation-delay: 451s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4511) { animation-delay: 451.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4512) { animation-delay: 451.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4513) { animation-delay: 451.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4514) { animation-delay: 451.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4515) { animation-delay: 451.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4516) { animation-delay: 451.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4517) { animation-delay: 451.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4518) { animation-delay: 451.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4519) { animation-delay: 451.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4520) { animation-delay: 452s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4521) { animation-delay: 452.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4522) { animation-delay: 452.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4523) { animation-delay: 452.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4524) { animation-delay: 452.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4525) { animation-delay: 452.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4526) { animation-delay: 452.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4527) { animation-delay: 452.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4528) { animation-delay: 452.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4529) { animation-delay: 452.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4530) { animation-delay: 453s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4531) { animation-delay: 453.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4532) { animation-delay: 453.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4533) { animation-delay: 453.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4534) { animation-delay: 453.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4535) { animation-delay: 453.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4536) { animation-delay: 453.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4537) { animation-delay: 453.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4538) { animation-delay: 453.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4539) { animation-delay: 453.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4540) { animation-delay: 454s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4541) { animation-delay: 454.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4542) { animation-delay: 454.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4543) { animation-delay: 454.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4544) { animation-delay: 454.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4545) { animation-delay: 454.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4546) { animation-delay: 454.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4547) { animation-delay: 454.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4548) { animation-delay: 454.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4549) { animation-delay: 454.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4550) { animation-delay: 455s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4551) { animation-delay: 455.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4552) { animation-delay: 455.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4553) { animation-delay: 455.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4554) { animation-delay: 455.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4555) { animation-delay: 455.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4556) { animation-delay: 455.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4557) { animation-delay: 455.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4558) { animation-delay: 455.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4559) { animation-delay: 455.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4560) { animation-delay: 456s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4561) { animation-delay: 456.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4562) { animation-delay: 456.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4563) { animation-delay: 456.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4564) { animation-delay: 456.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4565) { animation-delay: 456.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4566) { animation-delay: 456.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4567) { animation-delay: 456.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4568) { animation-delay: 456.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4569) { animation-delay: 456.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4570) { animation-delay: 457s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4571) { animation-delay: 457.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4572) { animation-delay: 457.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4573) { animation-delay: 457.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4574) { animation-delay: 457.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4575) { animation-delay: 457.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4576) { animation-delay: 457.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4577) { animation-delay: 457.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4578) { animation-delay: 457.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4579) { animation-delay: 457.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4580) { animation-delay: 458s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4581) { animation-delay: 458.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4582) { animation-delay: 458.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4583) { animation-delay: 458.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4584) { animation-delay: 458.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4585) { animation-delay: 458.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4586) { animation-delay: 458.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4587) { animation-delay: 458.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4588) { animation-delay: 458.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4589) { animation-delay: 458.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4590) { animation-delay: 459s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4591) { animation-delay: 459.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4592) { animation-delay: 459.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4593) { animation-delay: 459.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4594) { animation-delay: 459.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4595) { animation-delay: 459.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4596) { animation-delay: 459.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4597) { animation-delay: 459.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4598) { animation-delay: 459.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4599) { animation-delay: 459.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4600) { animation-delay: 460s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4601) { animation-delay: 460.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4602) { animation-delay: 460.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4603) { animation-delay: 460.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4604) { animation-delay: 460.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4605) { animation-delay: 460.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4606) { animation-delay: 460.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4607) { animation-delay: 460.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4608) { animation-delay: 460.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4609) { animation-delay: 460.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4610) { animation-delay: 461s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4611) { animation-delay: 461.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4612) { animation-delay: 461.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4613) { animation-delay: 461.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4614) { animation-delay: 461.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4615) { animation-delay: 461.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4616) { animation-delay: 461.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4617) { animation-delay: 461.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4618) { animation-delay: 461.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4619) { animation-delay: 461.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4620) { animation-delay: 462s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4621) { animation-delay: 462.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4622) { animation-delay: 462.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4623) { animation-delay: 462.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4624) { animation-delay: 462.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4625) { animation-delay: 462.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4626) { animation-delay: 462.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4627) { animation-delay: 462.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4628) { animation-delay: 462.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4629) { animation-delay: 462.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4630) { animation-delay: 463s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4631) { animation-delay: 463.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4632) { animation-delay: 463.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4633) { animation-delay: 463.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4634) { animation-delay: 463.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4635) { animation-delay: 463.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4636) { animation-delay: 463.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4637) { animation-delay: 463.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4638) { animation-delay: 463.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4639) { animation-delay: 463.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4640) { animation-delay: 464s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4641) { animation-delay: 464.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4642) { animation-delay: 464.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4643) { animation-delay: 464.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4644) { animation-delay: 464.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4645) { animation-delay: 464.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4646) { animation-delay: 464.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4647) { animation-delay: 464.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4648) { animation-delay: 464.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4649) { animation-delay: 464.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4650) { animation-delay: 465s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4651) { animation-delay: 465.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4652) { animation-delay: 465.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4653) { animation-delay: 465.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4654) { animation-delay: 465.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4655) { animation-delay: 465.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4656) { animation-delay: 465.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4657) { animation-delay: 465.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4658) { animation-delay: 465.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4659) { animation-delay: 465.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4660) { animation-delay: 466s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4661) { animation-delay: 466.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4662) { animation-delay: 466.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4663) { animation-delay: 466.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4664) { animation-delay: 466.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4665) { animation-delay: 466.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4666) { animation-delay: 466.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4667) { animation-delay: 466.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4668) { animation-delay: 466.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4669) { animation-delay: 466.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4670) { animation-delay: 467s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4671) { animation-delay: 467.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4672) { animation-delay: 467.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4673) { animation-delay: 467.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4674) { animation-delay: 467.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4675) { animation-delay: 467.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4676) { animation-delay: 467.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4677) { animation-delay: 467.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4678) { animation-delay: 467.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4679) { animation-delay: 467.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4680) { animation-delay: 468s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4681) { animation-delay: 468.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4682) { animation-delay: 468.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4683) { animation-delay: 468.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4684) { animation-delay: 468.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4685) { animation-delay: 468.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4686) { animation-delay: 468.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4687) { animation-delay: 468.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4688) { animation-delay: 468.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4689) { animation-delay: 468.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4690) { animation-delay: 469s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4691) { animation-delay: 469.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4692) { animation-delay: 469.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4693) { animation-delay: 469.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4694) { animation-delay: 469.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4695) { animation-delay: 469.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4696) { animation-delay: 469.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4697) { animation-delay: 469.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4698) { animation-delay: 469.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4699) { animation-delay: 469.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4700) { animation-delay: 470s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4701) { animation-delay: 470.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4702) { animation-delay: 470.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4703) { animation-delay: 470.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4704) { animation-delay: 470.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4705) { animation-delay: 470.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4706) { animation-delay: 470.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4707) { animation-delay: 470.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4708) { animation-delay: 470.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4709) { animation-delay: 470.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4710) { animation-delay: 471s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4711) { animation-delay: 471.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4712) { animation-delay: 471.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4713) { animation-delay: 471.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4714) { animation-delay: 471.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4715) { animation-delay: 471.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4716) { animation-delay: 471.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4717) { animation-delay: 471.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4718) { animation-delay: 471.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4719) { animation-delay: 471.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4720) { animation-delay: 472s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4721) { animation-delay: 472.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4722) { animation-delay: 472.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4723) { animation-delay: 472.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4724) { animation-delay: 472.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4725) { animation-delay: 472.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4726) { animation-delay: 472.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4727) { animation-delay: 472.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4728) { animation-delay: 472.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4729) { animation-delay: 472.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4730) { animation-delay: 473s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4731) { animation-delay: 473.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4732) { animation-delay: 473.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4733) { animation-delay: 473.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4734) { animation-delay: 473.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4735) { animation-delay: 473.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4736) { animation-delay: 473.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4737) { animation-delay: 473.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4738) { animation-delay: 473.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4739) { animation-delay: 473.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4740) { animation-delay: 474s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4741) { animation-delay: 474.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4742) { animation-delay: 474.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4743) { animation-delay: 474.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4744) { animation-delay: 474.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4745) { animation-delay: 474.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4746) { animation-delay: 474.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4747) { animation-delay: 474.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4748) { animation-delay: 474.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4749) { animation-delay: 474.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4750) { animation-delay: 475s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4751) { animation-delay: 475.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4752) { animation-delay: 475.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4753) { animation-delay: 475.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4754) { animation-delay: 475.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4755) { animation-delay: 475.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4756) { animation-delay: 475.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4757) { animation-delay: 475.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4758) { animation-delay: 475.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4759) { animation-delay: 475.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4760) { animation-delay: 476s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4761) { animation-delay: 476.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4762) { animation-delay: 476.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4763) { animation-delay: 476.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4764) { animation-delay: 476.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4765) { animation-delay: 476.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4766) { animation-delay: 476.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4767) { animation-delay: 476.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4768) { animation-delay: 476.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4769) { animation-delay: 476.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4770) { animation-delay: 477s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4771) { animation-delay: 477.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4772) { animation-delay: 477.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4773) { animation-delay: 477.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4774) { animation-delay: 477.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4775) { animation-delay: 477.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4776) { animation-delay: 477.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4777) { animation-delay: 477.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4778) { animation-delay: 477.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4779) { animation-delay: 477.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4780) { animation-delay: 478s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4781) { animation-delay: 478.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4782) { animation-delay: 478.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4783) { animation-delay: 478.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4784) { animation-delay: 478.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4785) { animation-delay: 478.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4786) { animation-delay: 478.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4787) { animation-delay: 478.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4788) { animation-delay: 478.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4789) { animation-delay: 478.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4790) { animation-delay: 479s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4791) { animation-delay: 479.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4792) { animation-delay: 479.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4793) { animation-delay: 479.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4794) { animation-delay: 479.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4795) { animation-delay: 479.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4796) { animation-delay: 479.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4797) { animation-delay: 479.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4798) { animation-delay: 479.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4799) { animation-delay: 479.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4800) { animation-delay: 480s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4801) { animation-delay: 480.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4802) { animation-delay: 480.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4803) { animation-delay: 480.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4804) { animation-delay: 480.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4805) { animation-delay: 480.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4806) { animation-delay: 480.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4807) { animation-delay: 480.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4808) { animation-delay: 480.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4809) { animation-delay: 480.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4810) { animation-delay: 481s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4811) { animation-delay: 481.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4812) { animation-delay: 481.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4813) { animation-delay: 481.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4814) { animation-delay: 481.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4815) { animation-delay: 481.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4816) { animation-delay: 481.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4817) { animation-delay: 481.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4818) { animation-delay: 481.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4819) { animation-delay: 481.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4820) { animation-delay: 482s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4821) { animation-delay: 482.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4822) { animation-delay: 482.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4823) { animation-delay: 482.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4824) { animation-delay: 482.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4825) { animation-delay: 482.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4826) { animation-delay: 482.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4827) { animation-delay: 482.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4828) { animation-delay: 482.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4829) { animation-delay: 482.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4830) { animation-delay: 483s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4831) { animation-delay: 483.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4832) { animation-delay: 483.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4833) { animation-delay: 483.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4834) { animation-delay: 483.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4835) { animation-delay: 483.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4836) { animation-delay: 483.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4837) { animation-delay: 483.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4838) { animation-delay: 483.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4839) { animation-delay: 483.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4840) { animation-delay: 484s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4841) { animation-delay: 484.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4842) { animation-delay: 484.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4843) { animation-delay: 484.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4844) { animation-delay: 484.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4845) { animation-delay: 484.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4846) { animation-delay: 484.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4847) { animation-delay: 484.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4848) { animation-delay: 484.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4849) { animation-delay: 484.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4850) { animation-delay: 485s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4851) { animation-delay: 485.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4852) { animation-delay: 485.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4853) { animation-delay: 485.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4854) { animation-delay: 485.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4855) { animation-delay: 485.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4856) { animation-delay: 485.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4857) { animation-delay: 485.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4858) { animation-delay: 485.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4859) { animation-delay: 485.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4860) { animation-delay: 486s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4861) { animation-delay: 486.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4862) { animation-delay: 486.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4863) { animation-delay: 486.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4864) { animation-delay: 486.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4865) { animation-delay: 486.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4866) { animation-delay: 486.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4867) { animation-delay: 486.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4868) { animation-delay: 486.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4869) { animation-delay: 486.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4870) { animation-delay: 487s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4871) { animation-delay: 487.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4872) { animation-delay: 487.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4873) { animation-delay: 487.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4874) { animation-delay: 487.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4875) { animation-delay: 487.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4876) { animation-delay: 487.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4877) { animation-delay: 487.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4878) { animation-delay: 487.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4879) { animation-delay: 487.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4880) { animation-delay: 488s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4881) { animation-delay: 488.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4882) { animation-delay: 488.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4883) { animation-delay: 488.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4884) { animation-delay: 488.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4885) { animation-delay: 488.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4886) { animation-delay: 488.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4887) { animation-delay: 488.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4888) { animation-delay: 488.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4889) { animation-delay: 488.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4890) { animation-delay: 489s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4891) { animation-delay: 489.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4892) { animation-delay: 489.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4893) { animation-delay: 489.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4894) { animation-delay: 489.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4895) { animation-delay: 489.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4896) { animation-delay: 489.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4897) { animation-delay: 489.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4898) { animation-delay: 489.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4899) { animation-delay: 489.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4900) { animation-delay: 490s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4901) { animation-delay: 490.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4902) { animation-delay: 490.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4903) { animation-delay: 490.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4904) { animation-delay: 490.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4905) { animation-delay: 490.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4906) { animation-delay: 490.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4907) { animation-delay: 490.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4908) { animation-delay: 490.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4909) { animation-delay: 490.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4910) { animation-delay: 491s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4911) { animation-delay: 491.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4912) { animation-delay: 491.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4913) { animation-delay: 491.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4914) { animation-delay: 491.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4915) { animation-delay: 491.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4916) { animation-delay: 491.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4917) { animation-delay: 491.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4918) { animation-delay: 491.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4919) { animation-delay: 491.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4920) { animation-delay: 492s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4921) { animation-delay: 492.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4922) { animation-delay: 492.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4923) { animation-delay: 492.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4924) { animation-delay: 492.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4925) { animation-delay: 492.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4926) { animation-delay: 492.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4927) { animation-delay: 492.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4928) { animation-delay: 492.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4929) { animation-delay: 492.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4930) { animation-delay: 493s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4931) { animation-delay: 493.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4932) { animation-delay: 493.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4933) { animation-delay: 493.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4934) { animation-delay: 493.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4935) { animation-delay: 493.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4936) { animation-delay: 493.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4937) { animation-delay: 493.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4938) { animation-delay: 493.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4939) { animation-delay: 493.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4940) { animation-delay: 494s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4941) { animation-delay: 494.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4942) { animation-delay: 494.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4943) { animation-delay: 494.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4944) { animation-delay: 494.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4945) { animation-delay: 494.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4946) { animation-delay: 494.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4947) { animation-delay: 494.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4948) { animation-delay: 494.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4949) { animation-delay: 494.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4950) { animation-delay: 495s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4951) { animation-delay: 495.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4952) { animation-delay: 495.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4953) { animation-delay: 495.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4954) { animation-delay: 495.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4955) { animation-delay: 495.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4956) { animation-delay: 495.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4957) { animation-delay: 495.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4958) { animation-delay: 495.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4959) { animation-delay: 495.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4960) { animation-delay: 496s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4961) { animation-delay: 496.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4962) { animation-delay: 496.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4963) { animation-delay: 496.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4964) { animation-delay: 496.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4965) { animation-delay: 496.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4966) { animation-delay: 496.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4967) { animation-delay: 496.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4968) { animation-delay: 496.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4969) { animation-delay: 496.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4970) { animation-delay: 497s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4971) { animation-delay: 497.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4972) { animation-delay: 497.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4973) { animation-delay: 497.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4974) { animation-delay: 497.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4975) { animation-delay: 497.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4976) { animation-delay: 497.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4977) { animation-delay: 497.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4978) { animation-delay: 497.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4979) { animation-delay: 497.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4980) { animation-delay: 498s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4981) { animation-delay: 498.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4982) { animation-delay: 498.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4983) { animation-delay: 498.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4984) { animation-delay: 498.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4985) { animation-delay: 498.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4986) { animation-delay: 498.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4987) { animation-delay: 498.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4988) { animation-delay: 498.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4989) { animation-delay: 498.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4990) { animation-delay: 499s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4991) { animation-delay: 499.1s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4992) { animation-delay: 499.2s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4993) { animation-delay: 499.3s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4994) { animation-delay: 499.4s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4995) { animation-delay: 499.5s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4996) { animation-delay: 499.6s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4997) { animation-delay: 499.7s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4998) { animation-delay: 499.8s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(4999) { animation-delay: 499.9s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li:nth-child(5000) { animation-delay: 500s; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper .todo-item-action { display: flex; align-items: center; justify-content: space-between; width: 5.75rem; } .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper .todo-item-action a { cursor: pointer; font-size: 1.2rem; line-height: 1.5; } .todo-application .content-area-wrapper .content-right .todo-task-list .no-results { display: none; padding: 1.5rem; text-align: center; } .todo-application .content-area-wrapper .content-right .todo-task-list .no-results.show { display: block; } @-webkit-keyframes fadeIn { 0% { opacity: 0; top: 100px; } 75% { opacity: 0.5; top: 0px; } 100% { opacity: 1; } } @media (max-width: 575.98px) { .todo-application .app-content .sidebar-left .todo-sidebar { left: -1.12rem !important; } } @media (max-width: 767.98px) { .todo-application .sidebar-content .sidebar-close-icon { visibility: visible !important; } } @media (max-width: 991.98px) { .todo-application .app-content .sidebar-left .todo-sidebar { transform: translateX(-110%); transition: all .3s ease-in-out; left: 0; position: fixed; z-index: 5; left: -2px; } .todo-application .app-content .sidebar-left.show .todo-sidebar { transform: translateX(13%); transition: all .3s ease; display: block; } .todo-application .app-content .content-right { width: 100%; } .todo-application .app-content .content-right .todo-app-list-wrapper { border-left: 0; } .todo-application .app-content .content-right .app-fixed-search { border-top-left-radius: 0.5rem; } } @media (max-width: 575.98px) { .content-right .todo-task-list .todo-title-wrapper, .todo-title-area { display: block !important; } .content-right .todo-task-list .todo-title-wrapper .todo-item-action { float: none !important; width: 100% !important; display: block !important; margin-top: .5rem; } .content-right .todo-task-list .todo-title-wrapper .todo-item-action a { margin-right: 1rem; } } @media (max-width: 349.98px) { .todo-application .content-area-wrapper .sidebar .todo-sidebar { width: 230px; } } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li { padding-top: 0; } } ================================================ FILE: public/backend/css/pages/app-user.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ /* user page css */ /*---------------*/ .users-list-wrapper .actions-dropodown { box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.14); border-radius: 0.5rem; } .users-list-wrapper a, .users-list-wrapper span { color: inherit; } .users-list-wrapper a i, .users-list-wrapper span i { cursor: pointer; font-size: 1.2rem; } .users-list-wrapper a i.users-delete-icon, .users-list-wrapper span i.users-delete-icon { font-size: 1.2rem; } .users-list-wrapper a i.users-delete-icon:hover, .users-list-wrapper span i.users-delete-icon:hover { color: #ea5455; } .users-list-wrapper a i.users-edit-icon:hover, .users-list-wrapper span i.users-edit-icon:hover { color: #7367f0; } .users-list-wrapper .badge { text-transform: uppercase; } .users-list-wrapper .ag-icon-checkbox-unchecked { color: #b8c2cc !important; font-size: 22px; } .users-list-wrapper .ag-icon-checkbox-checked, .users-list-wrapper .ag-icon-checkbox-indeterminate { font-size: 22px; } .page-users-view .users-view-image { width: 150px; } .page-users-view table td { padding-bottom: .8rem; min-width: 140px; word-break: break-word; } .page-users-view .users-view-permission table td, .page-users-view .users-view-permission table th { padding-bottom: 0; } .page-users-edit .users-avatar-shadow { box-shadow: 2px 4px 14px 0 rgba(34, 41, 47, 0.4); } ================================================ FILE: public/backend/css/pages/app-users.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .dataTables_wrapper .dataTables_length { display: inline-block; } .dataTables_wrapper .dataTables_length .custom-select { width: 6.714rem !important; height: 3rem; border-radius: 1.428rem; border: 1px solid #dae1e7; font-size: 1rem; margin-bottom: 1.5rem; background-position: calc(100% - 8px) 13px, calc(100% - 13px) 13px, 100% 0 !important; } .dataTables_wrapper .dataTables_length .custom-select:focus { box-shadow: none; } .dataTables_wrapper .dataTables_filter { display: flex; justify-content: flex-end; } .dataTables_wrapper .dataTables_filter .form-control { border-radius: 1.428rem; border: 1px solid #dae1e7; font-size: 1rem; width: 197px; height: 40px; padding-left: 2.2rem; } .dataTables_wrapper .dataTables_filter label { position: relative; } .dataTables_wrapper .dataTables_filter label:after { content: "\e8bd"; font-family: "feather"; position: absolute; left: 1.428rem; top: 10px; font-size: 1.1rem; color: #dae1e7; } .dataTables_wrapper .dt-checkboxes-select-all input, .dataTables_wrapper .dt-checkboxes-select input { width: 0; position: relative; } .dataTables_wrapper .dt-checkboxes-select-all input:before, .dataTables_wrapper .dt-checkboxes-select input:before { border: 2px solid #b4b4b4; content: ""; width: 1.071rem; height: 1.071rem; padding: 0; border-radius: 2px; transition: all 0.2s ease; transform: rotate(-90deg); overflow: hidden; transition: all 0.2s ease; position: absolute; } .dataTables_wrapper .dt-checkboxes-select-all input:after, .dataTables_wrapper .dt-checkboxes-select input:after { background-color: #7367f0; border: 2px solid #7367f0; font-family: "feather"; content: "\e83f"; font-size: 0.75rem; line-height: 1.2; color: #fff; opacity: 0; position: absolute; width: 0.928rem; height: 1rem; transform: translate(100%); transform-origin: right; transition: all 0.2s ease; overflow: hidden; } .dataTables_wrapper .dt-checkboxes-select-all input:active:checked:after, .dataTables_wrapper .dt-checkboxes-select input:active:checked:after { transform: translate(3px); } .dataTables_wrapper .dt-checkboxes-select-all input:checked:before, .dataTables_wrapper .dt-checkboxes-select input:checked:before { border: 2px solid #7367f0; transform: rotate(0deg); } .dataTables_wrapper .dt-checkboxes-select-all input:checked:after, .dataTables_wrapper .dt-checkboxes-select input:checked:after { transition: all 0.2s ease; opacity: 1; transform: translate(0); } .dataTables_wrapper .dataTable thead tr th:first-child { padding-right: 2rem; } .dataTables_wrapper .dataTable tbody .select-checkbox:before, .dataTables_wrapper .dataTable tbody .select-checkbox:after { display: none !important; } .dataTables_wrapper .dataTable tbody tr.selected { border-radius: 0; } .dataTables_wrapper .dataTable tbody tr td:first-child { padding-right: 2rem; } .dataTables_wrapper .dataTable tbody tr td .user-info { display: flex; justify-content: flex-start; align-items: center; } .dataTables_wrapper .dataTables_paginate .pagination { justify-content: center !important; } @media (max-width: 1199.98px) { .dataTables_wrapper .dataTable tbody tr td:nth-child(2) { display: flex; flex-wrap: wrap; } } _:-ms-lang(x) tbody tr td.dt-checkboxes-cell input, _:-ms-lang(x) tbody tr th.dt-checkboxes-cell input, _:-ms-lang(x) thead tr td.dt-checkboxes-cell input, _:-ms-lang(x) thead tr th.dt-checkboxes-cell input, .dataTable tbody tr td.dt-checkboxes-cell input, .dataTable tbody tr th.dt-checkboxes-cell input, .dataTable thead tr td.dt-checkboxes-cell input, .dataTable thead tr th.dt-checkboxes-cell input { width: auto !important; } @supports (-moz-osx-font-smoothing: auto) { .dataTable input { width: auto !important; } } @media not all and (min-resolution: 0.001dpcm) { @supports (-webkit-appearance: none) { .dataTable tbody td.dt-checkboxes-cell input:after { left: -0.485rem; } .dataTable .dt-checkboxes-cell input { -webkit-appearance: none; top: -10px; } } } .dataTable .mac-checkbox { -webkit-appearance: none; outline: none; width: auto; } ================================================ FILE: public/backend/css/pages/authentication.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .bg-authentication { background-color: #eff2f7; } .bg-authentication .login-footer { padding: 0rem 1.5rem 0.5rem; } .bg-authentication .login-footer .footer-btn .btn { padding: 0.9rem 1.2rem !important; margin: 1rem 1rem 1rem 0rem; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .bg-authentication { width: 100%; } } ================================================ FILE: public/backend/css/pages/card-analytics.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .customer-info.list-group .list-group-item:last-child { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; } .customer-info.list-group .list-group-item .series-info i { top: 0; margin-right: 0.3rem; } .avg-sessions .progress { margin-top: 0.5rem; } .analytics-list.list-group .list-group-item { border: 0; } .analytics-list.list-group .list-group-item:first-child { border-top-left-radius: 0; border-top-right-radius: 0; } .analytics-list.list-group .list-group-item .btn { display: none; } .analytics-list.list-group .list-group-item:hover .btn { display: inline-block; } .chart-dropdown .btn { font-size: 0.8rem; font-weight: 500; } .chart-dropdown .btn:after { left: 0; position: relative; } @media only screen and (max-width: 992px) and (min-width: 768px) { .analytics-list .float-left, .analytics-list .float-right { display: block; } } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { #dashboard-analytics .avatar .avatar-content, #statistics-card .avatar .avatar-content { padding: 0 !important; } } ================================================ FILE: public/backend/css/pages/colors.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .colors-list li { padding: 0.4rem; } .colors-list li i { font-size: 1.2rem; top: 2px; position: relative; margin-right: 0.25rem; } ================================================ FILE: public/backend/css/pages/coming-soon.css ================================================ /*========== Coming Soon Background Image =========*/ .clockCard { float: left; } .getting-started { font-size: 3rem; } .lead { font-size: 1rem; } ================================================ FILE: public/backend/css/pages/dashboard-analytics.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ #dashboard-analytics .img-left { width: 200px; position: absolute; top: 0; left: 0; } #dashboard-analytics .img-right { width: 175px; position: absolute; top: 0; right: 0; } #dashboard-analytics .bg-analytics { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); } #dashboard-analytics .bg-analytics .avatar { margin-bottom: 2rem; } #dashboard-analytics table tr th:first-child, #dashboard-analytics table tr td:first-child { padding-left: 2rem; } #dashboard-analytics table tr th:last-child, #dashboard-analytics table tr td:last-child { padding-right: 2rem; } #dashboard-analytics table td { padding: .75rem; } @media only screen and (max-width: 576px) { #dashboard-analytics .img-left, #dashboard-analytics .img-right { width: 140px; } } ================================================ FILE: public/backend/css/pages/dashboard-ecommerce.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .chat-application .chat-app-window .user-chats { padding: 10px 20px; position: relative; text-align: center; height: 415px; } .chat-application .chat-app-window .user-chats .chats { padding: 0; } .chat-application .chat-app-window .user-chats .chats .chat-body { display: block; margin: 10px 30px 0 0; overflow: hidden; } .chat-application .chat-app-window .user-chats .chats .chat-body .chat-content { text-align: left; display: block; float: right; padding: .75rem 1rem; margin: 0 20px 10px 0; clear: both; color: #fff; background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); border-radius: .5rem; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08); } .chat-application .chat-app-window .user-chats .chats .chat-body .chat-content p { margin: 0; } .chat-application .chat-app-window .user-chats .chats .chat-avatar { float: right; } .chat-application .chat-app-window .user-chats .chats .chat-left .chat-avatar { float: left; } .chat-application .chat-app-window .user-chats .chats .chat-left .chat-body { margin: 0; } .chat-application .chat-app-window .user-chats .chats .chat-left .chat-content { text-align: left; float: left; margin: 10px 10px 10px 20px; color: #626262; background: none; background-color: white; border: 1px solid #dae1e7; } ================================================ FILE: public/backend/css/pages/data-list-view.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .data-list-view-header .table-responsive .top, .data-thumb-view-header .table-responsive .top { display: flex; justify-content: space-between; padding: 0 1rem; margin-bottom: 1rem; } .data-list-view-header .table-responsive .top .action-btns, .data-thumb-view-header .table-responsive .top .action-btns { margin-top: 1.5rem; display: flex; } .data-list-view-header .table-responsive .top .action-btns .actions-dropodown, .data-thumb-view-header .table-responsive .top .action-btns .actions-dropodown { box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.14); border-radius: 0.5rem; margin-right: 0.75rem; } .data-list-view-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle, .data-thumb-view-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle { font-size: 1.125rem; font-weight: 500; } .data-list-view-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle:after, .data-thumb-view-header .table-responsive .top .action-btns .actions-dropodown .dropdown-toggle:after { left: 0; } .data-list-view-header .table-responsive .top .action-btns .dt-buttons .btn, .data-thumb-view-header .table-responsive .top .action-btns .dt-buttons .btn { padding: 0.9rem 0.938rem; } .data-list-view-header .table-responsive .top .dataTables_length, .data-thumb-view-header .table-responsive .top .dataTables_length { display: inline-block; } .data-list-view-header .table-responsive .top .dataTables_length .custom-select, .data-thumb-view-header .table-responsive .top .dataTables_length .custom-select { width: 8.714rem; height: 3rem; border-radius: 1.428rem; border: 1px solid #dae1e7; font-size: 1rem; background-position: calc(100% - 12px) 13px, calc(100% - 20px) 13px, 100% 0; } .data-list-view-header .table-responsive .top .dataTables_length .custom-select:focus, .data-thumb-view-header .table-responsive .top .dataTables_length .custom-select:focus { box-shadow: none; } .data-list-view-header .table-responsive .top .dataTables_filter, .data-thumb-view-header .table-responsive .top .dataTables_filter { display: inline-block; } .data-list-view-header .table-responsive .top .dataTables_filter .form-control, .data-thumb-view-header .table-responsive .top .dataTables_filter .form-control { padding: 1.45rem 2.8rem !important; border-radius: 1.428rem; border: 1px solid #dae1e7; } .data-list-view-header .table-responsive .top .dataTables_filter label, .data-thumb-view-header .table-responsive .top .dataTables_filter label { position: relative; } .data-list-view-header .table-responsive .top .dataTables_filter label:after, .data-thumb-view-header .table-responsive .top .dataTables_filter label:after { content: "\e8bd"; font-family: "feather"; position: absolute; left: 1.428rem; top: 0.928rem; } .data-list-view-header .table-responsive .dataTables_wrapper .dataTables_paginate ul.pagination, .data-thumb-view-header .table-responsive .dataTables_wrapper .dataTables_paginate ul.pagination { justify-content: center; } .data-list-view-header .add-new-data-sidebar .overlay-bg, .data-thumb-view-header .add-new-data-sidebar .overlay-bg { background: rgba(0, 0, 0, 0.2); width: 100%; height: 100%; position: fixed; top: 0; left: 0; display: none; transition: all 0.3s ease; opacity: 0; z-index: 1032; } .data-list-view-header .add-new-data-sidebar .overlay-bg.show, .data-thumb-view-header .add-new-data-sidebar .overlay-bg.show { opacity: 1; display: block; } .data-list-view-header .add-new-data-sidebar .add-new-data, .data-thumb-view-header .add-new-data-sidebar .add-new-data { width: 28.57rem; max-width: 90vw; height: 100vh; height: calc(var(--vh, 1vh) * 100); background: #fff; position: fixed; left: auto; right: 0; top: 0; z-index: 1033; box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); transform: translateX(100%); transition: all 0.25s ease; overflow: hidden; } .data-list-view-header .add-new-data-sidebar .add-new-data.show, .data-thumb-view-header .add-new-data-sidebar .add-new-data.show { transform: translateX(0%); } .data-list-view-header .add-new-data-sidebar .add-new-data .new-data-title, .data-thumb-view-header .add-new-data-sidebar .add-new-data .new-data-title { padding-bottom: 0.714rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); } .data-list-view-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar, .data-thumb-view-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar { position: relative; } .data-list-view-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar i, .data-thumb-view-header .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar i { position: absolute; font-size: 1.71rem; right: 0; top: -0.1428rem; cursor: pointer; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items { border-bottom: 1px solid rgba(0, 0, 0, 0.1); height: calc(100% - 10rem); position: relative; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col { margin-top: 1.25rem; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col.data-list-upload, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col.data-list-upload { margin-top: 2rem; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone { min-height: 14.285rem; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message { height: auto; } .data-list-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message:before, .data-thumb-view-header .add-new-data-sidebar .add-new-data .data-items .data-field-col .dropzone .dz-message:before { font-size: 2.857rem; } table.data-list-view.dataTable, table.data-thumb-view.dataTable { border-spacing: 0 1.3rem; padding: 0 0.7rem; } table.data-list-view.dataTable thead th, table.data-thumb-view.dataTable thead th { padding: 0.714rem 1.785rem; font-weight: 600; } table.data-list-view.dataTable thead th input:focus, table.data-thumb-view.dataTable thead th input:focus { outline: 0; } table.data-list-view.dataTable thead th:first-child, table.data-thumb-view.dataTable thead th:first-child { padding-left: 0; } table.data-list-view.dataTable thead .sorting_asc, table.data-list-view.dataTable thead .sorting_desc, table.data-list-view.dataTable thead .sorting, table.data-thumb-view.dataTable thead .sorting_asc, table.data-thumb-view.dataTable thead .sorting_desc, table.data-thumb-view.dataTable thead .sorting { padding-right: inherit; } table.data-list-view.dataTable thead .sorting_asc:before, table.data-list-view.dataTable thead .sorting_desc:before, table.data-list-view.dataTable thead .sorting:before, table.data-thumb-view.dataTable thead .sorting_asc:before, table.data-thumb-view.dataTable thead .sorting_desc:before, table.data-thumb-view.dataTable thead .sorting:before { font-size: 0.7rem; left: 0.857rem; top: 0.642rem; } table.data-list-view.dataTable thead .sorting_asc:after, table.data-list-view.dataTable thead .sorting_desc:after, table.data-list-view.dataTable thead .sorting:after, table.data-thumb-view.dataTable thead .sorting_asc:after, table.data-thumb-view.dataTable thead .sorting_desc:after, table.data-thumb-view.dataTable thead .sorting:after { font-size: 0.7rem; left: 0.857rem; top: 1.071rem; } table.data-list-view.dataTable thead .dt-checkboxes-select-all input, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input { width: 0; position: relative; } table.data-list-view.dataTable thead .dt-checkboxes-select-all input:before, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:before { border: 2px solid #b4b4b4; content: ""; width: 1.071rem; height: 1.071rem; padding: 0; border-radius: 2px; transition: all 0.2s ease; transform: rotate(-90deg); overflow: hidden; transition: all 0.2s ease; position: absolute; } table.data-list-view.dataTable thead .dt-checkboxes-select-all input:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:after { background-color: #7367f0; border: 2px solid #7367f0; font-family: "feather"; content: "\e83f"; font-size: 0.75rem; line-height: 1.2; color: #fff; opacity: 0; position: absolute; width: 0.928rem; height: 1rem; transform: translate(100%); transform-origin: right; transition: all 0.2s ease; overflow: hidden; } table.data-list-view.dataTable thead .dt-checkboxes-select-all input:active:checked:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:active:checked:after { transform: translate(3px); } table.data-list-view.dataTable thead .dt-checkboxes-select-all input:checked:before, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:checked:before { border: 2px solid #7367f0; transform: rotate(0deg); } table.data-list-view.dataTable thead .dt-checkboxes-select-all input:checked:after, table.data-thumb-view.dataTable thead .dt-checkboxes-select-all input:checked:after { transition: all 0.2s ease; opacity: 1; transform: translate(0); } table.data-list-view.dataTable tbody tr, table.data-thumb-view.dataTable tbody tr { background-color: #fff; box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px 0px; cursor: pointer; transition: all 0.3s ease; border-radius: 0.5rem; } table.data-list-view.dataTable tbody tr:hover, table.data-thumb-view.dataTable tbody tr:hover { transform: translateY(-4px); transition: all 0.3s ease; } table.data-list-view.dataTable tbody tr td:first-child, table.data-thumb-view.dataTable tbody tr td:first-child { padding-left: 1rem; border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; } table.data-list-view.dataTable tbody tr td:last-child, table.data-thumb-view.dataTable tbody tr td:last-child { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; } table.data-list-view.dataTable tbody tr.selected td, table.data-thumb-view.dataTable tbody tr.selected td { border-radius: 0; } table.data-list-view.dataTable tbody td, table.data-thumb-view.dataTable tbody td { padding: 1.357rem; border: none; vertical-align: middle; } table.data-list-view.dataTable tbody td input:focus, table.data-thumb-view.dataTable tbody td input:focus { outline: 0; } table.data-list-view.dataTable tbody td.product-name, table.data-thumb-view.dataTable tbody td.product-name { font-weight: 500; } table.data-list-view.dataTable tbody td:focus, table.data-thumb-view.dataTable tbody td:focus { outline: 0; } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input { width: 0; position: relative; } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input:before, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:before { border: 2px solid #b4b4b4; position: absolute; left: -8px; content: ""; width: 1.071rem; height: 1.071rem; padding: 0; border-radius: 2px; transform: rotate(-90deg); overflow: hidden; transition: all 0.2s ease; } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:after { background-color: #7367f0; font-family: "feather"; content: "\e83f"; font-size: 0.75rem; color: #fff; opacity: 0; position: absolute; left: -0.4285rem; width: 0.857rem; height: 1rem; overflow: hidden; transform: rotate(-90deg) translate(100%); transform-origin: right; transition: all 0.2s ease; } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input:active:checked:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:active:checked:after { transform: translate(3px); } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input:checked:before, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:checked:before { transform: rotate(0deg); border: 2px solid #7367f0; transition: all 0.2s ease; } table.data-list-view.dataTable tbody td.dt-checkboxes-cell input:checked:after, table.data-thumb-view.dataTable tbody td.dt-checkboxes-cell input:checked:after { opacity: 1; transition: all 0.2s ease; transform: rotate(0deg) translate(0); } table.data-list-view.dataTable tbody td .progress, table.data-thumb-view.dataTable tbody td .progress { margin-bottom: 0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08); } table.data-thumb-view.dataTable tbody tr td { padding-top: 0.714rem; padding-bottom: 0.714rem; } table.data-thumb-view.dataTable tbody tr td.product-img img { height: 7.857rem; } @media (max-width: 768px) { #data-list-view .table-responsive .top, #data-thumb-view .table-responsive .top { flex-direction: column; } #data-list-view .table-responsive .dt-buttons, #data-thumb-view .table-responsive .dt-buttons { width: auto; text-align: left; } #data-list-view .table-responsive .dataTables_length, #data-list-view .table-responsive .dataTables_filter, #data-thumb-view .table-responsive .dataTables_length, #data-thumb-view .table-responsive .dataTables_filter { text-align: right; } } @media (max-width: 576px) { .add-new-data-sidebar .data-items .data-list-upload .dropzone .dz-message:before { top: 3.428rem; } } _:-ms-lang(x) tbody tr td.dt-checkboxes-cell input, _:-ms-lang(x) tbody tr th.dt-checkboxes-cell input, _:-ms-lang(x) thead tr td.dt-checkboxes-cell input, _:-ms-lang(x) thead tr th.dt-checkboxes-cell input, .data-list-view.dataTable tbody tr td.dt-checkboxes-cell input, .data-list-view.dataTable tbody tr th.dt-checkboxes-cell input, .data-list-view.dataTable thead tr td.dt-checkboxes-cell input, .data-list-view.dataTable thead tr th.dt-checkboxes-cell input, .data-thumb-view.dataTable tbody tr td.dt-checkboxes-cell input, .data-thumb-view.dataTable tbody tr th.dt-checkboxes-cell input, .data-thumb-view.dataTable thead tr td.dt-checkboxes-cell input, .data-thumb-view.dataTable thead tr th.dt-checkboxes-cell input { width: auto; } _:-ms-lang(x) .table-responsive .top .dataTables_filter .form-control, .data-list-view.dataTable .table-responsive .top .dataTables_filter .form-control, .data-thumb-view.dataTable .table-responsive .top .dataTables_filter .form-control { height: 1.4rem !important; padding: 0rem 0.5rem !important; } _:-ms-lang(x) .table-responsive .top .dataTables_filter .form-control:after, .data-list-view.dataTable .table-responsive .top .dataTables_filter .form-control:after, .data-thumb-view.dataTable .table-responsive .top .dataTables_filter .form-control:after { display: none; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { #data-list-view .table-responsive .top .dataTables_filter .form-control, #data-thumb-view .table-responsive .top .dataTables_filter .form-control { height: 3rem !important; padding: 0rem 1rem !important; } #data-list-view .table-responsive .top .dataTables_filter label:after, #data-thumb-view .table-responsive .top .dataTables_filter label:after { display: none; } } @supports (-moz-osx-font-smoothing: auto) { .data-list-view input, .data-thumb-view input { width: auto !important; } } @media not all and (min-resolution: 0.001dpcm) { @supports (-webkit-appearance: none) { table.data-list-view tbody td.dt-checkboxes-cell input:after, table.data-thumb-view tbody td.dt-checkboxes-cell input:after { left: -0.485rem; } .data-list-view .dt-checkboxes-cell input, .data-thumb-view .dt-checkboxes-cell input { -webkit-appearance: none; top: -10px; } } } .data-list-view .mac-checkbox, .data-thumb-view .mac-checkbox { -webkit-appearance: none; top: -10px; } ================================================ FILE: public/backend/css/pages/error.css ================================================ .error-code { font-size: 10rem; } ================================================ FILE: public/backend/css/pages/faq.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .faq-bg { background: url(../../../app-assets/images/pages/faq.jpg) no-repeat; background-size: cover; } .faq-bg .form-control:focus ~ .form-control-position i { color: #7367f0; } .faq .faq-content .faq-table-content { cursor: pointer; padding: 0.5rem; font-weight: 500; } .faq .faq-content .faq-table-content i { margin-right: 0.5rem; } .faq .supporter-details .supporter-img img { width: 35px; height: 35px; margin-right: 0.5rem; cursor: pointer; } .faq .supporter-info { vertical-align: middle; } .faq .accordion .collapse-title { font-weight: 500; color: #2c2c2c; } .faq .accordion .collapse-margin { background-color: #fff; } @media only screen and (min-width: 992px) { .faq-bg .card-body { padding: 8rem !important; } } @media only screen and (min-width: 768px) and (max-width: 991px) { .faq-bg .card-body { padding: 6rem !important; } } ================================================ FILE: public/backend/css/pages/invoice.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .invoice-page { padding: 2.2rem; } .invoice-page .recipient-contact i, .invoice-page .company-contact i { padding-right: 0.2rem; position: relative; top: 2px; } .invoice-page .recipient-info p, .invoice-page .company-info p, .invoice-page .company-contact p, .invoice-page .recipient-contact p { line-height: 2; margin-bottom: 0; } .invoice-page .invoice-items-table table, .invoice-page .invoice-total-table table { border: 2px solid #f8f8f8; } @media print { .content-header, .buy-now, .btn-print, .footer, .open, .main-menu, .invoice-print { display: none; } .app-content, #invoice-template, .navbar-container, .navbar-wrapper, .header-navbar, .invoice-print, .content-wrapper { margin: 0 !important; padding: 0 !important; } #invoice-footer { position: relative; top: -80px !important; } #invoice-company-details, #invoice-footer { margin-top: 5rem !important; } .table-responsive { -ms-overflow-style: none; } } @page { margin: 10px; } ================================================ FILE: public/backend/css/pages/knowledge-base.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .knowledge-base-bg { background: url(../../../app-assets/images/pages/knowledge-base-cover.jpg) no-repeat; background-size: cover; } .knowledge-base-category .list-group-item, .knowledge-base-question .list-group-item { padding: 0.5rem 0; } .knowledge-base-category .list-group-item:hover, .knowledge-base-question .list-group-item:hover { background-color: transparent; } .article-question li { margin-bottom: 0.5rem; display: flex; } .article-question i { font-size: 1.2rem; top: 2px; position: relative; margin: 0 0.5rem; } @media only screen and (min-width: 992px) { .knowledge-base-bg .card-body { padding: 8rem !important; } } @media only screen and (min-width: 768px) and (max-width: 991px) { .knowledge-base-bg .card-body { padding: 6rem !important; } } ================================================ FILE: public/backend/css/pages/page-auth.css ================================================ .auth-wrapper { display: flex; flex-basis: 100%; min-height: 100vh; min-height: calc(var(--vh, 1vh) * 100); width: 100%; } .auth-wrapper .auth-inner { width: 100%; position: relative; } .auth-wrapper.auth-v1 { align-items: center; justify-content: center; overflow: hidden; } .auth-wrapper.auth-v1 .auth-inner:before { width: 244px; height: 243px; content: ' '; position: absolute; top: -54px; left: -46px; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADzCAMAAACG9Mt0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA9KADAAQAAAABAAAA8wAAAADhQHfUAAAAyVBMVEUAAAD///+AgP+AgP9mZv+AgNWAgP9tbf9gYP+AgP9xcf9mZv+AZuaAgP9dXf90dOhiYv92dv9mZu5mZv93d+53d/9paf94afCAcfFrXvJra/9mZvJzZvJzc/JoaP96b/Rqav91aupsYvV2bOt2bPVxaPZ7cfZqavZyau1waPd4aO9xafBxafh4afB1bfh4avFuZ/F2afJzZvJzZ/N0aPN0bvN3bPR0ae5yZ/R3be93bfR1au9zafBxbPVzavV0a/F0a/ZyafFwaPKZm3nTAAAAQ3RSTlMAAQIEBQYGBwgICQoKCgsLDQ0PDw8PERESExMUFBQWFxgYGhoaGxsdHSAgIiIiIyQlJygqLCwtLi8vLzAzNDU3Nzg7h9vbHgAAA9RJREFUeNrt3ftS2kAUx/Fc1gSyWsErtuJdRDQiiteolb7/QzUoTm07k4AzObuu3/MCez45yWbzT36eZ6b8erO1e1B97baadd+zocJWmg0HaXe/+uqmg2GWtkLT5Lle1m9LdhG2+1lvzuiUO1knEF81yFc1N+35m15kZOGodz1vyLx+v2Lseq/erxtZd/NuweCTtfiwaWLOD5FnsqI7+VnP3y8afnEs3Es/1+H1qvETwuq18B7e6VlwLup1ZM8kWWQBOsrmHL7GVtxvYRZYgQ4ywae61ffsqH5Lbq20bQm6ncp9P2ehJegwE/u+rl95ttSwLrVSc2ANetAU28dSa9Cp2E623bUG3d2VWmn/wBq0XCugQYMGLdVKoOJaoiuok1NdXSW1WAUfRPtRUllflaJf5ZE/O9pXVbZUPTov5c+IDqvtRwStdTgLutoxy6GnGfYb2o+1I2gd+1OiqzfLocvVE7TSDqG1mgodaqfQZbvZC9rXjqG1X45WzqFVKVpk0LLo4lGP0ZGD6KgMnTiITkrQgXYQrYNitHISrYrRsZPouBhdcxJdK0YnTqKTYrR2Eq1BgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRoh9DH59ag86ACoSYOL61B55EUQk1s3VqDzsNHhJpYe7QGncfMSHUxaliCHgcKSXVxeWQJehwdJdXF4dAS9DgkTKqLxuibFeiXODixNi7OrEC/BP+JtbE0WrYA/RrxKNfH2YUF6NegSbk+Gk87xtErN6EsWm88fzeMXpwE9EruLns/l42io4dJFLPo2/Po1w+D6IW7t9Bt2SPx3vOOMfS7eHVZtN54ulg2go56138Ct4XRunE2Ovsmjg46WeddUoUWr6WL0fCoIYgO2/2s91fstDZQjcPL0ePt5flpdXUwqW46uMrS1j95JNpQrW0dHp9UV/uT2m416/8HVGg3qzhpBjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KBBgwYNGjRo0KC/FDpx0pwUo2tOomvF6NhJdFyMVk6iVTE6cBIdeF9vJyvZx/I/AzuIjsrQvoNovwzt4FamSs0Ojrp80PmvoB0zh940pb7azf1yg7t0LIt978uppzbnalfucDW92ZndLPRmKweGPduYJ+zoM5/Dk+gD5NdvLhXXPp88qcUqmEH5G5JZRs6cuxwIAAAAAElFTkSuQmCC"); } @media (max-width: 575.98px) { .auth-wrapper.auth-v1 .auth-inner:before { display: none; } } .auth-wrapper.auth-v1 .auth-inner:after { width: 272px; height: 272px; content: ' '; position: absolute; bottom: -55px; right: -75px; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAMAAABP1NsnAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABEKADAAQAAAABAAABEAAAAAAQWxS2AAAAwFBMVEUAAAD///+AgICAgP9VVaqqVf+qqv+AgL+AgP9mZsxmZv+ZZv+AgNWAgP9tbdttbf+Sbf+AYN+AgN+AgP9xceNmZv+AZuaAZv90dOh0dP9qav+AauqAav+AgP92dv9tbf+Abe2Abf93Zu53d+6AcO94afCAcfF5a+R5a/JzZuaAZvKAc/J5bed5bfOAaPN6b/R1auqAavR6ZvV6cPV2bOuAbPV7aPZ2be2AbfZ7au17avZ3Zu53b+57a+97a/d4aO9J6CoeAAAAQHRSTlMAAQICAwMDBAQFBQUGBgcHBwgICAkKCgoLCwwMDAwNDg4ODw8QERITExQUFBUVFhcYGBkZGhobHBwdHR4eHx8gJ5uMWwAAA/FJREFUeNrt2G1XEkEYxvHZNk2xHGzdbKFl0cTwgdSkCKzu7/+t4pw6sAjtjIueE/f8r3fMO35nZnbuy5gVGcvfzJe0rnTfGI+MggGJRUZnbpPIhJKt88nU53JnFULvyISY6KAv8vPj0vr2rYwiE2Z2B9J+uNYcyyQxwWZvaeGH3G4bMjsvI/kcwTC/V+7kLoahlITzQojP3ZFgsJCh7IJQzpX0QFj4uMiY18eDMZ9bZCF9OQahnK6cm/Y7js0sh/LF3Auv1PlQd3MxbdXYIQspV44EEEAAAWTNDAYYkKdJbNMsLzYueZbaZ2iM46RVbHBaiZ9Js+nHEdli42N9XuSen5hGp1CQTuOJQDRsD99N4gMSpYWapNH6IJo83CIeILZQFesEaber79NCWRoukOpNEnW0gXQqD81w6ACxhbrYde7VuFCYeA2QRCNIsgZISyNIqz6IyhPjOjNVIFYniK3dmKU6QdLaJUimEySrDZLrBMlrgxRKU7sxCw/EMe0CAggggADySJCqxixIkKpNEh6IozELD8RxjQACCCCAAPJIkKrGLEgQXqqAAEJjxrQLCCCAAEJjRmNGY8a0CwgggABCYwYIfQgggNCYMe0CAggggNCY0ZjRmDHtAgIIIIAAQmNGHwIIIDRmTLuAAAIIIDRmNGY0Zky7gAACCCCA0JjRhwACCI0Z0y4ggAACCI0ZjRmNGdMuIIAAAgggNGb0IYAAQmPGtAsIIIAAQmNGY0ZjxrQLCCCAAAIIjRl9CCCA0Jgx7QICCCCA0JjRmNGYMe0CAggggABCY0YfAgggNGZMu4AAAgggNGY0ZjRmTLuAAAIIIIDQmNGHAAIIjRnTLiCAAAIIjRmNGY0ZIEy7gAACCCA0ZvQhgABCY8a0CwgggABCY0ZjBgiNGdMuIIAAAgiN2f/Sh+Q6PfLaIJlOkKw2SKoTJK3dmFmdILb2tBvrBIlrg5iWRo+WqQ+SaARJ1gCJAzsxThCN16p1vNurGjNjoo42j07kAHFskoY2kEbl33U0ZgoPjXW+Rl0gkarnahqtDaJKxMPDDWIiNafGenh4gExvVhXfmk7Da6L1AVGxSby2h6MxK79Zk42ea1pJbJ48sU2zDezQ8iy1z6BBwoyjMQsvXp8YQAAhgADilRfyy+wf8WqZZUfGZihvgZiB3FybC+kCUU5XLkAo50C+gbBQdUzkAIVyejIAYfFTI1solHP2HgNCnHn5AYNy4jvpoVB6fVzL91cwzLJ9Lfd7S0jhehxO5H5/yePr1W6gHonI7fJ5ORSR/n6Q2yQanq763zuXU5LJZRKiyD/W9/pjkdPZz0/yJ8fqVyry+qQZDMjJKoDfy8bRVhHhQTwAAAAASUVORK5CYII="); z-index: -1; } @media (max-width: 575.98px) { .auth-wrapper.auth-v1 .auth-inner:after { display: none; } } .auth-wrapper.auth-v2 { align-items: flex-start; } .auth-wrapper.auth-v2 .auth-inner { height: 100vh; overflow-y: auto; height: calc(var(--vh, 1vh) * 100); } .auth-wrapper.auth-v2 .brand-logo { position: absolute; top: 2rem; left: 2rem; margin: 0; z-index: 1; } .auth-wrapper.auth-v1 .auth-inner { max-width: 400px; } .auth-wrapper .brand-logo { display: flex; justify-content: center; margin: 1rem 0 2rem 0; } .auth-wrapper .brand-logo .brand-text { font-weight: 600; } .auth-wrapper .auth-footer-btn .btn { padding: 0.6rem !important; } .auth-wrapper .auth-footer-btn .btn:not(:last-child) { margin-right: 1rem; } @media (min-width: 1200px) { .auth-wrapper.auth-v2 .auth-card { width: 400px; } } .auth-wrapper .auth-bg { background-color: #fff; } .dark-layout .auth-wrapper .auth-bg { background-color: #283046; } @media (max-height: 625px) { .dark-layout .auth-wrapper .auth-inner { background-color: #283046; } .auth-wrapper .auth-bg { padding-top: 3rem; } .auth-wrapper .auth-inner { background-color: #fff; padding-bottom: 1rem; } .auth-wrapper.auth-v2 .brand-logo { width: 100%; display: flex; justify-content: unset; position: relative; left: 0; padding-left: 1.5rem; } } ================================================ FILE: public/backend/css/pages/register.css ================================================ ================================================ FILE: public/backend/css/pages/search.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ #search-results .media-list .media { padding: 0.5rem 1rem; } #search-results .media-list .media-body .list-inline i { font-size: 1.2rem; } .search-menu .search-filter, .search-menu .dropdown-toggle { padding: 0.55rem 1rem !important; cursor: pointer; background-color: #fff; box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.11), 0 5px 15px 0 rgba(0, 0, 0, 0.08); } .search-menu .dropdown-toggle { border-radius: 1.5rem !important; } .search-menu .dropdown-toggle::after { display: none; } .search-result-info .btn.dropdown-toggle::after { left: 0; } @media only screen and (min-width: 577px) { #search-results li.media .media-object { width: 100px; } #search-results li.media iframe { width: 100px; height: 65px; } } @media only screen and (max-width: 576px) { #search-results li.media .media-left { width: 100%; } #search-results li.media .media-left img, #search-results li.media .media-left iframe { width: 100%; text-align: center; } } ================================================ FILE: public/backend/css/pages/timeline.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ /* Timeline */ .timeline { position: relative; display: block; margin: 0; padding: 10px 0; list-style: none; } .timeline:after { content: " "; display: table; clear: both; } .timeline:before { content: " "; display: table; } .timeline > li { list-style: none; } .timeline > li:nth-child(even) { float: left; clear: left; } .timeline > li:nth-child(odd) { float: right; clear: right; } .timeline .media { border-bottom: 1px solid #eee; font-size: 13px; } .timeline .media p { font-size: 13px; } .timeline .media:last-child { border-bottom: 0; } .timeline-line + .timeline-item { margin-top: -20px; } .timeline-group { display: block; position: relative; margin: 20px 0; text-align: center; float: none !important; z-index: 1; } .timeline-poster { margin-top: -20px; } .timeline-poster .btn-link { color: #a1aab0; } .timeline-poster .btn-link:active { color: #3e5771; } .timeline-poster .btn-link:focus { color: #3e5771; } .timeline-poster .btn-link:hover { color: #3e5771; } .timeline-poster .btn-link.active { color: #3e5771; } #timeline.timeline-center .timeline-line { display: inline-block; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background-color: #ddd; transform: translate(-50%, 0); } #timeline.timeline-center .timeline-item { position: relative; display: inline-block; width: 50%; padding: 0 50px 35px; } #timeline.timeline-center .timeline-item:nth-child(even) { padding: 0px 35px 50px 0px; } #timeline.timeline-center .timeline-item:nth-child(even):after { content: ''; position: absolute; right: 19px; top: 10px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid #ccc; z-index: 1; right: 25px; top: 20px; border-left: 11px solid #fff; } #timeline.timeline-center .timeline-item:nth-child(even):before { content: ''; position: absolute; right: 24px; top: 20px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid #ccc; z-index: 1; } #timeline.timeline-center .timeline-item:nth-child(even) > .timeline-badge { right: -20px; } #timeline.timeline-center .timeline-item:nth-child(odd) { padding: 0px 0px 50px 35px; } #timeline.timeline-center .timeline-item:nth-child(odd):after { content: ''; position: absolute; left: 19px; top: 10px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; z-index: 1; left: 25px; top: 20px; border-right: 11px solid #fff; } #timeline.timeline-center .timeline-item:nth-child(odd):before { content: ''; position: absolute; left: 24px; top: 20px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; z-index: 1; } #timeline.timeline-center .timeline-item:nth-child(odd) > .timeline-badge { left: -20px; } #timeline.timeline-center .timeline-item > .timeline-badge { position: absolute; top: 12px; z-index: 1; } #timeline.timeline-center .timeline-item > .timeline-badge > span { display: inline-block; width: 40px; height: 40px; border-radius: 50%; text-align: center; text-decoration: none; transition: all ease .3s; } #timeline.timeline-center .timeline-item > .timeline-badge > span i { color: #fff; font-size: 1.6rem; display: block; line-height: 40px; top: 0; } #timeline.timeline-center .timeline-item > .timeline-badge > span:active { transform: scale(1.1); } #timeline.timeline-center .timeline-item > .timeline-badge > span:focus { transform: scale(1.1); } #timeline.timeline-center .timeline-item > .timeline-badge > span:hover { transform: scale(1.1); } #timeline.timeline-center .timeline-item > .timeline-badge > a.active { transform: scale(1.1); } #timeline.timeline-center .timeline-item > .timeline-panel { position: relative; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; } #timeline.timeline-center .timeline-item > .timeline-panel:hover .timeline-actions { display: block; } #timeline.timeline-right .timeline-line { display: inline-block; position: absolute; top: 0; bottom: 0; right: 12px; width: 2px; background-color: #ddd; transform: translate(-50%, 0); } #timeline.timeline-right .timeline-group { text-align: right; } #timeline.timeline-right .timeline-item { position: relative; display: inline-block; width: 100%; padding: 0px 43px 35px 0px; } #timeline.timeline-right .timeline-item:after { content: ''; position: absolute; right: 33px; top: 21px; width: 0; height: 0; z-index: 1; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-left: 11px solid #fff; } #timeline.timeline-right .timeline-item:before { content: ''; position: absolute; right: 32px; top: 20px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid #ccc; z-index: 1; } #timeline.timeline-right .timeline-item > .timeline-badge { right: -8px; } #timeline.timeline-right .timeline-item > .timeline-badge { position: absolute; top: 12px; z-index: 1; } #timeline.timeline-right .timeline-item > .timeline-badge > span { display: inline-block; width: 40px; height: 40px; border-radius: 50%; text-align: center; text-decoration: none; transition: all ease .3s; } #timeline.timeline-right .timeline-item > .timeline-badge > span i { color: #fff; font-size: 1.6rem; display: block; line-height: 40px; top: 0; } #timeline.timeline-right .timeline-item > .timeline-badge > span:active { transform: scale(1.1); } #timeline.timeline-right .timeline-item > .timeline-badge > span:focus { transform: scale(1.1); } #timeline.timeline-right .timeline-item > .timeline-badge > span:hover { transform: scale(1.1); } #timeline.timeline-right .timeline-item > .timeline-badge > a.active { transform: scale(1.1); } #timeline.timeline-right .timeline-item > .timeline-panel { position: relative; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; } #timeline.timeline-right .timeline-item > .timeline-panel:hover .timeline-actions { display: block; } #timeline.timeline-right .timeline-item.block:nth-child(even):before { right: 8px; left: auto; } #timeline.timeline-right .timeline-item.block:nth-child(even):after { right: 11px; left: auto; } #timeline.timeline-right .timeline-item.block:nth-child(odd):after { right: 8px; right: auto; } #timeline.timeline-left .timeline-line { display: inline-block; position: absolute; top: 0; bottom: 0; left: 12px; width: 2px; background-color: #ddd; transform: translate(-50%, 0); } #timeline.timeline-left .timeline-group { text-align: left; } #timeline.timeline-left .timeline-item { position: relative; display: inline-block; width: 100%; padding: 0 0 35px 43px; } #timeline.timeline-left .timeline-item:after { content: ''; position: absolute; left: 33px; top: 21px; width: 0; height: 0; z-index: 1; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-right: 11px solid #fff; } #timeline.timeline-left .timeline-item:before { content: ''; position: absolute; left: 32px; top: 20px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; z-index: 1; } #timeline.timeline-left .timeline-item > .timeline-badge { left: -8px; } #timeline.timeline-left .timeline-item > .timeline-badge { position: absolute; top: 12px; z-index: 1; } #timeline.timeline-left .timeline-item > .timeline-badge > span { display: inline-block; width: 40px; height: 40px; border-radius: 50%; text-align: center; text-decoration: none; transition: all ease .3s; } #timeline.timeline-left .timeline-item > .timeline-badge > span i { color: #fff; font-size: 1.6rem; display: block; line-height: 40px; top: 0; } #timeline.timeline-left .timeline-item > .timeline-badge > span:active { transform: scale(1.1); } #timeline.timeline-left .timeline-item > .timeline-badge > span:focus { transform: scale(1.1); } #timeline.timeline-left .timeline-item > .timeline-badge > span:hover { transform: scale(1.1); } #timeline.timeline-left .timeline-item > .timeline-badge > a.active { transform: scale(1.1); } #timeline.timeline-left .timeline-item > .timeline-panel { position: relative; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; } #timeline.timeline-left .timeline-item > .timeline-panel:hover .timeline-actions { display: block; } #timeline .timeline-item.block:nth-child(even) { width: 100% !important; margin-top: 5px; } #timeline .timeline-item.block:nth-child(even):after { left: 50%; right: auto; top: -11px; border: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid #ccc; transform: translate(-50%, 0); top: -10px; border: 0; border-left: 11px solid #f8f8f8; border-right: 11px solid #f8f8f8; border-bottom: 11px solid #fff; } #timeline .timeline-item.block:nth-child(even):before { left: 50%; right: auto; top: -11px; border: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid #ccc; transform: translate(-50%, 0); } #timeline .timeline-item.block:nth-child(even) > .timeline-badge { top: -28px; left: 50%; right: auto; transform: translate(-50%, 0); } #timeline .timeline-item.block:nth-child(odd) { width: 100% !important; margin-top: 5px; } #timeline .timeline-item.block:nth-child(odd):after { left: 50%; right: auto; top: -11px; border: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid #ccc; transform: translate(-50%, 0); top: -10px; border: 0; border-left: 11px solid #f8f8f8; border-right: 11px solid #f8f8f8; border-bottom: 11px solid #fff; } #timeline .timeline-item.block:nth-child(odd):before { left: 50%; right: auto; top: -11px; border: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid #ccc; transform: translate(-50%, 0); } #timeline .timeline-item.block:nth-child(odd) > .timeline-badge { top: -28px; left: 50%; right: auto; transform: translate(-50%, 0); } .timeline-actions { display: none; } .timeline-content { padding: 15px; } .timeline-footer { padding: 15px; border-top: 1px solid #eee; background-color: #fbfcfc; border-radius: 0 0 5px 5px; } .timeline-heading { padding: 15px; font-size: 20px; } .timeline-liveliness { padding: 15px; border-top: 1px solid #eee; background-color: #fbfcfc; } .timeline-heading + .timeline-content { padding-top: 0; } .timeline-date { font-size: 14px; color: #aaa; } .timeline-embed { position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0; } .timeline-embed .embed-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .timeline-embed embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .timeline-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .timeline-embed object { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .timeline-img { display: block; padding: 5px 0; } .timeline-img.first { margin-right: -10px; } .timeline-img.middle { margin-right: -10px; margin-left: -10px; } .timeline-img.last { margin-left: -10px; } .timeline-resume { border-top: 1px solid #eee; background-color: #fbfcfc; } .timeline-avatar { margin-top: -2px; margin-right: 10px; } .timeline-title { margin: 0; padding: 0; font-size: 14px; line-height: 1.42857; font-weight: 600; color: #3e5771; text-decoration: none; } .timeline-title > small { display: block; font-size: 12px; line-height: 1.5; color: #a1aab0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wrapkit-content-rtl .timeline-avatar { margin-right: 0; margin-left: 10px; } @media (min-width: 992px) { .timeline-item:nth-child(even) { padding: 0px 35px 50px 0px; } .timeline-item:nth-child(odd) { padding: 0 0px 50px 35px; } } @media (max-width: 991.98px) { .timeline { padding-left: 15px; } .timeline-line { left: 15px; } .timeline-group { display: inline-block; margin-left: -22px; } .timeline-item { width: 100% !important; margin-top: 0 !important; padding-right: 10px; } .timeline-item:nth-child(even):after { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); left: 40px; top: 21px; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-right: 11px solid #fff; } .timeline-item:nth-child(even):before { left: 39px; top: 20px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); } .timeline-item:nth-child(even) > .timeline-badge { top: 12px; left: -20px; right: auto; transform: translate(0, 0); } .timeline-item:nth-child(odd):after { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); left: 40px; top: 21px; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-right: 11px solid #fff; } .timeline-item:nth-child(odd):before { left: 39px; top: 20px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); } .timeline-item:nth-child(odd) > .timeline-badge { top: 12px; left: -20px; right: auto; transform: translate(0, 0); } .timeline-item.block:nth-child(even) { padding-bottom: 0; } .timeline-item.block:nth-child(even):after { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); left: 20px; top: 11px; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-right: 11px solid #fff; } .timeline-item.block:nth-child(even):before { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); } .timeline-item.block:nth-child(even) > .timeline-badge { top: 12px; left: -6px; right: auto; transform: translate(0, 0); } .timeline-item.block:nth-child(odd) { padding-bottom: 0; } .timeline-item.block:nth-child(odd):after { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); left: 20px; top: 11px; border-top: 11px solid #f8f8f8; border-bottom: 11px solid #f8f8f8; border-right: 11px solid #fff; } .timeline-item.block:nth-child(odd):before { left: 19px; top: 10px; border: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #ccc; transform: translate(0, 0); } .timeline-item.block:nth-child(odd) > .timeline-badge { top: 12px; left: -6px; right: auto; transform: translate(0, 0); } } @media (max-width: 991.98px) { #timeline.timeline-wrapper .timeline { padding: 0; } #timeline.timeline-wrapper .timeline .card-body { text-align: left; } #timeline.timeline-wrapper .timeline-line { display: inline-block; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background-color: #ddd; transform: translate(-50%, 0); } #timeline.timeline-wrapper .timeline-group { display: block; margin-left: -6px; text-align: center; } #timeline.timeline-wrapper .timeline-item { display: block; padding: 20px 0 20px !important; } #timeline.timeline-wrapper .timeline-item:nth-child(even) { float: none; clear: both; } #timeline.timeline-wrapper .timeline-item:nth-child(even):after { display: none; } #timeline.timeline-wrapper .timeline-item:nth-child(even):before { display: none; } #timeline.timeline-wrapper .timeline-item:nth-child(odd) { float: none; clear: both; } #timeline.timeline-wrapper .timeline-item:nth-child(odd):after { display: none; } #timeline.timeline-wrapper .timeline-item:nth-child(odd):before { display: none; } #timeline.timeline-wrapper .timeline-item > .timeline-badge { top: 0px !important; left: 45% !important; } #timeline.timeline-wrapper .timeline-item.block:nth-child(even) { float: none; clear: both; } #timeline.timeline-wrapper .timeline-item.block:nth-child(even):after { display: none; } #timeline.timeline-wrapper .timeline-item.block:nth-child(even):before { display: none; } #timeline.timeline-wrapper .timeline-item.block:nth-child(odd) { float: none; clear: both; } #timeline.timeline-wrapper .timeline-item.block:nth-child(odd):after { display: none; } #timeline.timeline-wrapper .timeline-item.block:nth-child(odd):before { display: none; } #timeline.timeline-wrapper .timeline-item.timeline-poster > .timeline-badge { display: none; } } @media (max-width: 575.98px) { .timeline-item > .timeline-badge { top: 0px !important; left: 44% !important; } } ================================================ FILE: public/backend/css/pages/user-settings.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .user-form .dropzone { min-height: 200px; width: 200px; } .user-form .dropzone .dz-message { font-size: 1rem; height: auto; } .user-form .dropzone .dz-message:before { font-size: 2rem; } ================================================ FILE: public/backend/css/pages/users.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ #user-profile .profile-img-container { position: absolute; bottom: -3rem; left: 10%; width: 80%; } #user-profile .profile-img-container img { border: 0.3rem solid #fff; height: 85px; width: 85px; } #user-profile #profile-info .card-header i { position: relative; top: -3px; } #user-profile #profile-info .user-like i { font-size: 1.7rem; } #user-profile #profile-info .suggested-block .user-page-info p { margin-bottom: 0; font-weight: 500; } #user-profile #profile-info .suggested-block i { cursor: pointer; } #user-profile .relative { position: relative; } #user-profile .profile-header-nav { background-color: #fff; padding: 0.75rem 1rem; } #user-profile .profile-header-nav .navbar { justify-content: flex-end; } #user-profile .profile-header-nav .navbar .navbar-toggler { font-size: 1.7rem; color: #626262; } #user-profile .profile-header-nav .navbar .navbar-toggler:focus { outline: none; } #user-profile .user-latest-img { transition: all .2s ease-in-out; } #user-profile .user-latest-img:hover { transform: translateY(-4px) scale(1.2); z-index: 30; } #user-profile .block-element .spinner-border { border-width: 2px; } @media only screen and (min-width: 992px) { #user-profile .profile-header-nav .navbar .nav-item { padding-left: 2.25rem !important; padding-right: 2.25rem !important; } } @media only screen and (max-width: 992px) { #user-profile .user-latest-img img { width: 100%; } } @media only screen and (max-width: 991px) and (min-width: 768px) { #user-profile .profile-header-nav .navbar .nav-item { padding-left: 1.5rem !important; padding-right: 1.5rem !important; } } ================================================ FILE: public/backend/css/plugins/animate/animate.css ================================================ .animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .animated.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } .animated.hinge { -webkit-animation-duration: 2s; animation-duration: 2s; } .animated.flipOutX, .animated.flipOutY, .animated.bounceIn, .animated.bounceOut { -webkit-animation-duration: .75s; animation-duration: .75s; } @-webkit-keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } @keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } .bounce { -webkit-animation-name: bounce; animation-name: bounce; -webkit-transform-origin: center bottom; transform-origin: center bottom; } @-webkit-keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } @keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } .flash { -webkit-animation-name: flash; animation-name: flash; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } @-webkit-keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .rubberBand { -webkit-animation-name: rubberBand; animation-name: rubberBand; } @-webkit-keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } .shake { -webkit-animation-name: shake; animation-name: shake; } @-webkit-keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } .headShake { -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; -webkit-animation-name: headShake; animation-name: headShake; } @-webkit-keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } @keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } .swing { -webkit-transform-origin: top center; transform-origin: top center; -webkit-animation-name: swing; animation-name: swing; } @-webkit-keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .tada { -webkit-animation-name: tada; animation-name: tada; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes wobble { from { -webkit-transform: none; transform: none; } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: none; transform: none; } } @keyframes wobble { from { -webkit-transform: none; transform: none; } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: none; transform: none; } } .wobble { -webkit-animation-name: wobble; animation-name: wobble; } @-webkit-keyframes jello { from, 11.1%, to { -webkit-transform: none; transform: none; } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.39063deg) skewY(0.39063deg); transform: skewX(0.39063deg) skewY(0.39063deg); } 88.8% { -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg); transform: skewX(-0.19531deg) skewY(-0.19531deg); } } @keyframes jello { from, 11.1%, to { -webkit-transform: none; transform: none; } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.39063deg) skewY(0.39063deg); transform: skewX(0.39063deg) skewY(0.39063deg); } 88.8% { -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg); transform: skewX(-0.19531deg) skewY(-0.19531deg); } } .jello { -webkit-animation-name: jello; animation-name: jello; -webkit-transform-origin: center; transform-origin: center; } @-webkit-keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .bounceIn { -webkit-animation-name: bounceIn; animation-name: bounceIn; } @-webkit-keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: none; transform: none; } } @keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: none; transform: none; } } .bounceInDown { -webkit-animation-name: bounceInDown; animation-name: bounceInDown; } @-webkit-keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: none; transform: none; } } @keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: none; transform: none; } } .bounceInLeft { -webkit-animation-name: bounceInLeft; animation-name: bounceInLeft; } @-webkit-keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: none; transform: none; } } @keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: none; transform: none; } } .bounceInRight { -webkit-animation-name: bounceInRight; animation-name: bounceInRight; } @-webkit-keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInUp { -webkit-animation-name: bounceInUp; animation-name: bounceInUp; } @-webkit-keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } @keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } .bounceOut { -webkit-animation-name: bounceOut; animation-name: bounceOut; } @-webkit-keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .bounceOutDown { -webkit-animation-name: bounceOutDown; animation-name: bounceOutDown; } @-webkit-keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .bounceOutLeft { -webkit-animation-name: bounceOutLeft; animation-name: bounceOutLeft; } @-webkit-keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .bounceOutRight { -webkit-animation-name: bounceOutRight; animation-name: bounceOutRight; } @-webkit-keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .bounceOutUp { -webkit-animation-name: bounceOutUp; animation-name: bounceOutUp; } @-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { -webkit-animation-name: fadeIn; animation-name: fadeIn; } @-webkit-keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInDown { -webkit-animation-name: fadeInDown; animation-name: fadeInDown; } @-webkit-keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInDownBig { -webkit-animation-name: fadeInDownBig; animation-name: fadeInDownBig; } @-webkit-keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInLeft { -webkit-animation-name: fadeInLeft; animation-name: fadeInLeft; } @-webkit-keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInLeftBig { -webkit-animation-name: fadeInLeftBig; animation-name: fadeInLeftBig; } @-webkit-keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInRight { -webkit-animation-name: fadeInRight; animation-name: fadeInRight; } @-webkit-keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInRightBig { -webkit-animation-name: fadeInRightBig; animation-name: fadeInRightBig; } @-webkit-keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInUp { -webkit-animation-name: fadeInUp; animation-name: fadeInUp; } @-webkit-keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInUpBig { -webkit-animation-name: fadeInUpBig; animation-name: fadeInUpBig; } @-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { -webkit-animation-name: fadeOut; animation-name: fadeOut; } @-webkit-keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .fadeOutDown { -webkit-animation-name: fadeOutDown; animation-name: fadeOutDown; } @-webkit-keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .fadeOutDownBig { -webkit-animation-name: fadeOutDownBig; animation-name: fadeOutDownBig; } @-webkit-keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .fadeOutLeft { -webkit-animation-name: fadeOutLeft; animation-name: fadeOutLeft; } @-webkit-keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .fadeOutLeftBig { -webkit-animation-name: fadeOutLeftBig; animation-name: fadeOutLeftBig; } @-webkit-keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .fadeOutRight { -webkit-animation-name: fadeOutRight; animation-name: fadeOutRight; } @-webkit-keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .fadeOutRightBig { -webkit-animation-name: fadeOutRightBig; animation-name: fadeOutRightBig; } @-webkit-keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .fadeOutUp { -webkit-animation-name: fadeOutUp; animation-name: fadeOutUp; } @-webkit-keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .fadeOutUpBig { -webkit-animation-name: fadeOutUpBig; animation-name: fadeOutUpBig; } @-webkit-keyframes flip { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95); transform: perspective(400px) scale3d(0.95, 0.95, 0.95); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px); transform: perspective(400px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } @keyframes flip { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95); transform: perspective(400px) scale3d(0.95, 0.95, 0.95); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px); transform: perspective(400px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } .animated.flip { -webkit-backface-visibility: visible; backface-visibility: visible; -webkit-animation-name: flip; animation-name: flip; } @-webkit-keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInX { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInX; animation-name: flipInX; } @-webkit-keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInY { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInY; animation-name: flipInY; } @-webkit-keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } @keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } .flipOutX { -webkit-animation-name: flipOutX; animation-name: flipOutX; -webkit-backface-visibility: visible !important; backface-visibility: visible !important; } @-webkit-keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } @keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } .flipOutY { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipOutY; animation-name: flipOutY; } @-webkit-keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); opacity: 1; } to { -webkit-transform: none; transform: none; opacity: 1; } } @keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); opacity: 1; } to { -webkit-transform: none; transform: none; opacity: 1; } } .lightSpeedIn { -webkit-animation-name: lightSpeedIn; animation-name: lightSpeedIn; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } @-webkit-keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } @keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } .lightSpeedOut { -webkit-animation-name: lightSpeedOut; animation-name: lightSpeedOut; -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } @-webkit-keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: none; transform: none; opacity: 1; } } @keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: none; transform: none; opacity: 1; } } .rotateIn { -webkit-animation-name: rotateIn; animation-name: rotateIn; } @-webkit-keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: none; transform: none; opacity: 1; } } @keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: none; transform: none; opacity: 1; } } .rotateInDownLeft { -webkit-animation-name: rotateInDownLeft; animation-name: rotateInDownLeft; } @-webkit-keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: none; transform: none; opacity: 1; } } @keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: none; transform: none; opacity: 1; } } .rotateInDownRight { -webkit-animation-name: rotateInDownRight; animation-name: rotateInDownRight; } @-webkit-keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: none; transform: none; opacity: 1; } } @keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: none; transform: none; opacity: 1; } } .rotateInUpLeft { -webkit-animation-name: rotateInUpLeft; animation-name: rotateInUpLeft; } @-webkit-keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: none; transform: none; opacity: 1; } } @keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: none; transform: none; opacity: 1; } } .rotateInUpRight { -webkit-animation-name: rotateInUpRight; animation-name: rotateInUpRight; } @-webkit-keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } @keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } .rotateOut { -webkit-animation-name: rotateOut; animation-name: rotateOut; } @-webkit-keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } @keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } .rotateOutDownLeft { -webkit-animation-name: rotateOutDownLeft; animation-name: rotateOutDownLeft; } @-webkit-keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutDownRight { -webkit-animation-name: rotateOutDownRight; animation-name: rotateOutDownRight; } @-webkit-keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutUpLeft { -webkit-animation-name: rotateOutUpLeft; animation-name: rotateOutUpLeft; } @-webkit-keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } @keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } .rotateOutUpRight { -webkit-animation-name: rotateOutUpRight; animation-name: rotateOutUpRight; } @-webkit-keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } @keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } .hinge { -webkit-animation-name: hinge; animation-name: hinge; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: none; transform: none; } } @keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: none; transform: none; } } .rollIn { -webkit-animation-name: rollIn; animation-name: rollIn; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } @keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } .rollOut { -webkit-animation-name: rollOut; animation-name: rollOut; } @-webkit-keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } @keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } .zoomIn { -webkit-animation-name: zoomIn; animation-name: zoomIn; } @-webkit-keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInDown { -webkit-animation-name: zoomInDown; animation-name: zoomInDown; } @-webkit-keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInLeft { -webkit-animation-name: zoomInLeft; animation-name: zoomInLeft; } @-webkit-keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInRight { -webkit-animation-name: zoomInRight; animation-name: zoomInRight; } @-webkit-keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInUp { -webkit-animation-name: zoomInUp; animation-name: zoomInUp; } @-webkit-keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } @keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .zoomOut { -webkit-animation-name: zoomOut; animation-name: zoomOut; } @-webkit-keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutDown { -webkit-animation-name: zoomOutDown; animation-name: zoomOutDown; } @-webkit-keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } @keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } .zoomOutLeft { -webkit-animation-name: zoomOutLeft; animation-name: zoomOutLeft; } @-webkit-keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } @keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } .zoomOutRight { -webkit-animation-name: zoomOutRight; animation-name: zoomOutRight; } @-webkit-keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutUp { -webkit-animation-name: zoomOutUp; animation-name: zoomOutUp; } @-webkit-keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInDown { -webkit-animation-name: slideInDown; animation-name: slideInDown; } @-webkit-keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInLeft { -webkit-animation-name: slideInLeft; animation-name: slideInLeft; } @-webkit-keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInRight { -webkit-animation-name: slideInRight; animation-name: slideInRight; } @-webkit-keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInUp { -webkit-animation-name: slideInUp; animation-name: slideInUp; } @-webkit-keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .slideOutDown { -webkit-animation-name: slideOutDown; animation-name: slideOutDown; } @-webkit-keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .slideOutLeft { -webkit-animation-name: slideOutLeft; animation-name: slideOutLeft; } @-webkit-keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .slideOutRight { -webkit-animation-name: slideOutRight; animation-name: slideOutRight; } @-webkit-keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .slideOutUp { -webkit-animation-name: slideOutUp; animation-name: slideOutUp; } ================================================ FILE: public/backend/css/plugins/extensions/context-menu.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ /********* CONTEXT MENU *********/ .context-menu-list { width: 248px; } .context-menu-list .context-menu-item { padding: .6rem 2rem; } .context-menu-list .context-menu-item:not(:last-child) { border-bottom: 1px solid #dae1e7; } ================================================ FILE: public/backend/css/plugins/extensions/drag-and-drop.css ================================================ #draggable-cards .card { cursor: grab; } #basic-list-group .list-group-item, #multiple-list-group-a .list-group-item, #multiple-list-group-b .list-group-item { cursor: grab; } #clone-lists .chip { cursor: grab; } #multiple-list-group-a, #multiple-list-group-b { min-height: 5.714rem; } #dd-with-handle .list-group { min-height: 5.714rem; } #dd-with-handle .list-group .handle { padding: 0 5px; margin-right: 5px; background-color: rgba(0, 0, 0, 0.1); cursor: move; font-size: 1.2rem; } ================================================ FILE: public/backend/css/plugins/extensions/media-plyr.css ================================================ .audio-player:focus { outline: 0; } .plyr__controls { justify-content: flex-start; } .plyr__progress { flex-grow: 1; } ================================================ FILE: public/backend/css/plugins/extensions/noui-slider.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .noUi-background { background: #f0f0f0; } .noUi-target { background-color: #ebebeb; border: none; box-shadow: none; border-radius: 1rem; } .noUi-target.noUi-connect { box-shadow: none; } .noUi-horizontal { height: 10px; padding-right: 17px; } .noUi-horizontal .noUi-handle { width: 20px; height: 20px; top: -5px; left: -1px; cursor: pointer; } .noUi-horizontal .noUi-origin { left: 17px; right: -17px; } .noUi-horizontal.slider-xl { height: 14px; } .noUi-horizontal.slider-xl .noUi-handle { width: 28px; height: 28px; top: -7px; } .noUi-horizontal.slider-lg { height: 12px; } .noUi-horizontal.slider-lg .noUi-handle { width: 24px; height: 24px; top: -6px; } .noUi-horizontal.slider-sm { height: 6px; } .noUi-horizontal.slider-sm .noUi-handle { height: 15px; width: 15px; right: -2px !important; } .noUi-horizontal.slider-xs { height: 3px; } .noUi-horizontal.slider-xs .noUi-handle { height: 10px; width: 10px; top: -4px; right: -2px !important; } .noUi-handle { box-shadow: none; border: none; border-radius: 50%; background: #fff; border: 5px solid #7367f0; } .noUi-handle:after, .noUi-handle:before { display: none; } .circle-filled .noUi-handle { background: #7367f0; border-radius: 50%; } .circle-filled .noUi-handle:after, .circle-filled .noUi-handle:before { display: none; } .square .noUi-handle { background: #7367f0; border-radius: 3px; } .square .noUi-handle:before { display: block; width: 2px; height: 10px; left: 2px; top: 0px; } .square .noUi-handle:after { display: block; width: 2px; height: 10px; left: 7px; top: 0px; } .square.slider-xl .noUi-handle:before { left: 5px; top: 4px; } .square.slider-xl .noUi-handle:after { left: 10px; top: 4px; } .square.slider-lg .noUi-handle:before { left: 3px; top: 2px; } .square.slider-lg .noUi-handle:after { left: 8px; top: 2px; } .square.slider-sm .noUi-handle:before { left: -1px; top: -1px; height: 7px; } .square.slider-sm .noUi-handle:after { left: 4px; top: -1px; height: 7px; } .square.slider-xs .noUi-handle:before { left: -3px; top: -3px; height: 5px; } .square.slider-xs .noUi-handle:after { left: 1px; top: -3px; height: 5px; } .noUi-connect { background: #7367f0; box-shadow: none; } .noUi-vertical { display: inline-block; width: 8px; height: 150px; } .noUi-vertical .noUi-handle { width: 20px; height: 20px; top: -5px; left: -6px; } .noUi-vertical.square .noUi-handle { background: #7367f0; border-radius: 3px; } .noUi-vertical.square .noUi-handle:before { display: block; width: 12px; height: 2px; left: -1px; top: 2px; } .noUi-vertical.square .noUi-handle:after { display: block; width: 12px; height: 2px; left: -1px; top: 7px; } .noUi-vertical .noUi-tooltip { transform: translate(-10%, -50%); } .example-val { font: 400 12px Arial; color: #888; display: block; margin: 15px 0; } .noUi-handle:focus { outline: 0; } _:-ms-lang(x), .slider-select { flex: 0 0 10%; max-width: 10%; } ================================================ FILE: public/backend/css/plugins/extensions/swiper.css ================================================ /*========================================================================================= File Name: swiper.scss Description: swiper plugin scss. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /*======================================================== DARK LAYOUT =========================================================*/ /* Swiper css */ /* ---------- */ /* swiper slide shadow */ .swiper-container .swiper-shadow { box-shadow: 2px 8px 10px 0 rgba(25, 42, 70, 0.13) !important; } .swiper-centered-slides.swiper-container .swiper-slide { text-align: center; font-weight: 500; background-color: #fff; height: auto; width: auto !important; padding: 2rem 5.5rem; cursor: pointer; } .swiper-centered-slides.swiper-container .swiper-slide.swiper-slide-active { border: 2px solid #7367f0; } .swiper-centered-slides.swiper-container .swiper-slide.swiper-slide-active i { color: #7367f0; } .swiper-centered-slides .swiper-button-next:after, .swiper-centered-slides .swiper-button-prev:after { border-radius: 50%; background-color: #7367f0; box-shadow: 0 2px 4px 0 rgba(34, 41, 47, 0.5) !important; } .swiper-centered-slides-2.swiper-container .swiper-slide { font-weight: 500; background-color: #f2f4f4; height: auto; width: auto !important; cursor: pointer; } .swiper-centered-slides-2.swiper-container .swiper-slide.swiper-slide-active { color: #fff; background-color: #7367f0; box-shadow: 0 3px 6px 0 rgba(115, 103, 240, 0.5) !important; } /* cube effect */ .swiper-cube-effect.swiper-container { width: 300px; left: 50%; margin-left: -150px; margin-top: -12px; } /* swiper coverflow slide width */ .swiper-coverflow.swiper-container .swiper-slide { width: 300px; } .gallery-thumbs { padding: 10px 0; background: #22292f; } .gallery-thumbs .swiper-slide { opacity: 0.4; } .gallery-thumbs .swiper-slide-thumb-active { opacity: 1; } .swiper-parallax .swiper-slide { padding: 2.67rem 4rem; } .swiper-parallax .swiper-slide .title { font-size: 1.14rem; padding: .5rem 0; } .swiper-parallax .swiper-slide .text { font-size: 1rem; } .swiper-parallax .parallax-bg { position: absolute; width: 130%; } .swiper-virtual.swiper-container { height: 300px; } .swiper-virtual.swiper-container .swiper-slide { /* virtual slides */ font-size: 1.51rem; background-color: #eee; display: flex; justify-content: center; align-items: center; } .swiper-button-prev, .swiper-button-next, .swiper-container-rtl .swiper-button-prev, .swiper-container-rtl .swiper-button-next { background-image: none; color: #fff; width: 35px; font-size: 2rem; } .swiper-button-prev:focus, .swiper-button-next:focus, .swiper-container-rtl .swiper-button-prev:focus, .swiper-container-rtl .swiper-button-next:focus { outline: none; } .swiper-button-prev:after, .swiper-button-next:after, .swiper-container-rtl .swiper-button-prev:after, .swiper-container-rtl .swiper-button-next:after { font-family: 'feather'; } .swiper-button-prev:after { content: "\e843"; padding-right: 1px; } .swiper-button-next:after { content: "\e844"; padding-left: 2px; } .swiper-container-rtl .swiper-button-prev:after { content: "\e844"; } .swiper-container-rtl .swiper-button-next:after { content: "\e843"; } @media only screen and (max-width: 768px) { .swiper-button-prev { font-size: 1.32rem; top: 55%; } .swiper-button-next { font-size: 1.32rem; top: 55%; width: 15px; } .swiper-parallax .swiper-slide { padding: 1rem 1.2rem; } .swiper-parallax img { height: 100% !important; } } @media only screen and (max-width: 576px) { .swiper-centered-slides.swiper-container .swiper-slide { padding: 1.6rem 2.5rem; } .swiper-centered-slides.swiper-container .swiper-slide i { font-size: 1.14rem !important; } .swiper-cube-effect.swiper-container { width: 150px; left: 70%; } .swiper-parallax .swiper-slide { padding: 1rem 1.3rem; } .swiper-virtual.swiper-container .swiper-slide { font-size: 1rem; } } ================================================ FILE: public/backend/css/plugins/extensions/toastr.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ #toast-container > div { opacity: 0.9; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=90); filter: alpha(opacity=90); max-width: none; } #toast-container > div:hover { -webkit-box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.75); -moz-box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.75); box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.75); } .toast { background-color: #7367f0; } .toast-success { background-color: #28c76f; } .toast-error { background-color: #ea5455; } .toast-info { background-color: #00cfe8; } .toast-warning { background-color: #ff9f43; } ================================================ FILE: public/backend/css/plugins/forms/extended/typeahed.css ================================================ /* Typeahead Starts */ .typeahead .twitter-typeahead { width: 100%; } .typeahead .twitter-typeahead .tt-menu { width: 100%; } .typeahead .twitter-typeahead .empty-message { padding: 5px 10px; text-align: center; } .typeahead .twitter-typeahead .rtl-typeahead .tt-menu { text-align: right; } .typeahead .twitter-typeahead .league-name { margin: 0 10px 5px 10px; padding: 7px 5px 10px; border-bottom: 1px solid #ccc; } .typeahead .scrollable-dropdown .twitter-typeahead .tt-menu { max-height: 150px; overflow-y: auto; } /* Typeahead Ends */ /* MaxLength Starts */ .bootstrap-maxlength { margin-top: 0.5rem; } /* MaxLength Ends */ ================================================ FILE: public/backend/css/plugins/forms/form-inputs-groups.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ /* For Input Group TouchPin */ #touchspin .input-group.bootstrap-touchspin .input-group-prepend, #touchspin .input-group.bootstrap-touchspin .input-group-append { display: block; } /* For Input Group TouchPin */ .segmented-buttons-with-dropdown .input-group .form-control, .buttons-with-dropdown .input-group .form-control { height: 3rem; } .bootstrap-touchspin.touchspin-with-icon .input-group-append .input-group-text i { font-size: 1.25rem; } .bootstrap-touchspin-spinners .touchspin-spinners-wrapper .input-group .touchspin, .bootstrap-touchspin-spinners .touchspin-spinners-wrapper .input-group .touchspin-stop-mousewheel { height: calc(calc(1.25em + 1.4rem)-0.05rem + 2.2px); } .bootstrap-touchspin-spinners .touchspin-spinners-wrapper .input-group.touchspin-with-icon .input-group-text.bootstrap-touchspin-postfix { padding: 0.85rem 1rem; } .bootstrap-touchspin-spinners .touchspin-spinners-wrapper .default-height .input-group.touchspin-vertical { height: calc(2.9rem + 2px); } ================================================ FILE: public/backend/css/plugins/forms/validation/form-validation.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .form-group.issue .help-block, .form-group.issue .help-inline, .form-group.error .help-block, .form-group.error .help-inline { color: #ea5455; } .form-group.issue input, .form-group.issue select, .form-group.issue textarea, .form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #ea5455; } .form-group.issue input:focus, .form-group.issue select:focus, .form-group.issue textarea:focus, .form-group.error input:focus, .form-group.error select:focus, .form-group.error textarea:focus { border-color: #ea5455; -webkit-box-shadow: 0 3 10px 0 #ea5455; -moz-box-shadow: 0 3 10px 0 #ea5455; box-shadow: 0 3 10px 0 #ea5455; } .form-group .help-block ul { padding-left: 0; } .form-group .help-block ul li { list-style-type: none; font-size: 0.875rem; padding-top: 0.2rem; } ================================================ FILE: public/backend/css/plugins/forms/wizard.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .app-content .wizard { width: 100%; } .app-content .wizard .content { margin-left: 0 !important; } .app-content .wizard > .steps { position: relative; display: block; width: 100%; } .app-content .wizard > .steps .current-info { position: absolute; left: -99999px; } .app-content .wizard > .steps > ul { display: table; width: 100%; table-layout: fixed; margin: 0; padding: 0; list-style: none; } .app-content .wizard > .steps > ul > li { display: table-cell; width: auto; vertical-align: top; text-align: center; position: relative; } .app-content .wizard > .steps > ul > li a { position: relative; padding-top: 52px; margin-top: 20px; margin-bottom: 20px; display: block; } .app-content .wizard > .steps > ul > li:before { content: ''; display: block; position: absolute; z-index: 9; left: 0; } .app-content .wizard > .steps > ul > li:after { content: ''; display: block; position: absolute; z-index: 9; right: 0; } .app-content .wizard > .steps > ul > li:last-child:after { content: none; } .app-content .wizard > .steps > ul > li.current > a { color: #7367f0; cursor: default; } .app-content .wizard > .steps > ul > li.current .step { border-color: #7367f0; background-color: #7367f0; color: #fff; } .app-content .wizard > .steps > ul > li.disabled a { color: #636363; cursor: default; } .app-content .wizard > .steps > ul > li.disabled a:hover { color: #636363; cursor: default; } .app-content .wizard > .steps > ul > li.disabled a:focus { color: #636363; cursor: default; } .app-content .wizard > .steps > ul > li.disabled .step { color: #b8c2cc; } .app-content .wizard > .steps > ul > li.done a { color: #636363; } .app-content .wizard > .steps > ul > li.done a:hover { color: #636363; } .app-content .wizard > .steps > ul > li.done a:focus { color: #636363; } .app-content .wizard > .steps > ul > li.done .step { background-color: #fff; border-color: #7367f0; color: #b8c2cc; } .app-content .wizard > .steps > ul > li.done:last-child .step { background-color: #7367f0; border-color: #7367f0; color: #fff; } .app-content .wizard > .steps > ul > li.error > a { color: #ea5455; } .app-content .wizard > .steps > ul > li.error .step { border-color: #ea5455; color: #fff; background-color: #ea5455; } .app-content .wizard > .steps .step { background-color: #fff; display: inline-block; position: absolute; top: 0; left: 50%; margin-left: -24px; z-index: 10; text-align: center; } .app-content .wizard > .steps .step i { position: relative; top: 2px; } .app-content .wizard > .content { position: relative; width: auto; padding: 0; margin: 0; } .app-content .wizard > .content > .title { position: absolute; left: -99999px; } .app-content .wizard > .content > .body { padding: 0 20px; } .app-content .wizard > .content > iframe { border: 0 none; width: 100%; height: 100%; } .app-content .wizard > .actions { position: relative; display: block; text-align: right; padding: 20px; padding-top: 0; } .app-content .wizard > .actions > ul { list-style: none; padding: 0; margin: 0; } .app-content .wizard > .actions > ul:after { content: ''; display: table; clear: both; } .app-content .wizard > .actions > ul > li { float: left; } .app-content .wizard > .actions > ul > li + li { margin-left: 10px; float: right; } .app-content .wizard > .actions > ul > li > a { background: #7367f0; color: #fff; display: block; padding: 7px 12px; border-radius: 0.42rem; border: 1px solid transparent; } .app-content .wizard > .actions > ul > li > a:hover { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset; } .app-content .wizard > .actions > ul > li > a:focus { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset; } .app-content .wizard > .actions > ul > li > a:active { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.1) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.1) inset; } .app-content .wizard > .actions > ul > li > a[href="#previous"] { background-color: #7367f0; color: #fff; border-radius: 0.42rem; } .app-content .wizard > .actions > ul > li > a[href="#previous"]:hover { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset; } .app-content .wizard > .actions > ul > li > a[href="#previous"]:focus { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset; } .app-content .wizard > .actions > ul > li > a[href="#previous"]:active { -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.04) inset; box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.04) inset; } .app-content .wizard > .actions > ul > li.disabled > a { color: #fff; } .app-content .wizard > .actions > ul > li.disabled > a:hover { color: #fff; } .app-content .wizard > .actions > ul > li.disabled > a:focus { color: #fff; } .app-content .wizard > .actions > ul > li.disabled > a[href="#previous"] { -webkit-box-shadow: none; box-shadow: none; } .app-content .wizard > .actions > ul > li.disabled > a[href="#previous"]:hover { -webkit-box-shadow: none; box-shadow: none; } .app-content .wizard > .actions > ul > li.disabled > a[href="#previous"]:focus { -webkit-box-shadow: none; box-shadow: none; } .app-content .wizard.wizard-circle > .steps > ul > li:before, .app-content .wizard.wizard-circle > .steps > ul > li:after { top: 43px; width: 50%; height: 3px; background-color: #7367f0; } .app-content .wizard.wizard-circle > .steps > ul > li.current:after { background-color: transparent; } .app-content .wizard.wizard-circle > .steps > ul > li.current ~ li:before { background-color: transparent; } .app-content .wizard.wizard-circle > .steps > ul > li.current ~ li:after { background-color: transparent; } .app-content .wizard.wizard-circle > .steps .step { width: 50px; height: 50px; line-height: 3rem; border: 3px solid #b8c2cc; font-size: 1.5rem; font-weight: 500; border-radius: 50%; } @media (max-width: 768px) { .app-content .wizard > .steps > ul { margin-bottom: 20px; } .app-content .wizard > .steps > ul > li { display: block; float: left; width: 33%; } .app-content .wizard > .steps > ul > li > a { margin-bottom: 0; } .app-content .wizard > .steps > ul > li:last-child:after { content: ''; background-color: #7367f0; } } @media (max-width: 480px) { .app-content .wizard > .steps > ul > li.current:after { background-color: #7367f0; } } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-beat.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-beat { 50% { opacity: 0.2; transform: scale(0.75); } 100% { opacity: 1; transform: scale(1); } } .ball-beat > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; animation: ball-beat 0.7s 0s infinite linear; } .ball-beat > div:nth-child(2n-1) { animation-delay: -0.35s !important; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-clip-rotate-multiple.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } .ball-clip-rotate-multiple { position: relative; } .ball-clip-rotate-multiple > div { animation-fill-mode: both; position: absolute; left: -20px; top: -20px; border: 2px solid #b8c2cc; border-bottom-color: transparent; border-top-color: transparent; border-radius: 100%; height: 35px; width: 35px; animation: rotate 1s 0s ease-in-out infinite; } .ball-clip-rotate-multiple > div:last-child { display: inline-block; top: -10px; left: -10px; width: 15px; height: 15px; animation-duration: 0.5s; border-color: #b8c2cc transparent #b8c2cc transparent; animation-direction: reverse; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-clip-rotate-pulse.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } @keyframes scale { 30% { transform: scale(0.3); } 100% { transform: scale(1); } } .ball-clip-rotate-pulse { position: relative; transform: translateY(-15px); } .ball-clip-rotate-pulse > div { animation-fill-mode: both; position: absolute; top: 0px; left: 0px; border-radius: 100%; } .ball-clip-rotate-pulse > div:first-child { background: #b8c2cc; height: 16px; width: 16px; top: 7px; left: -7px; animation: scale 1s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } .ball-clip-rotate-pulse > div:last-child { position: absolute; border: 2px solid #b8c2cc; width: 30px; height: 30px; left: -16px; top: -2px; background: transparent; border: 2px solid; border-color: #b8c2cc transparent #b8c2cc transparent; animation: rotate 1s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; animation-duration: 1s; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-clip-rotate.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } .ball-clip-rotate > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; border: 2px solid #b8c2cc; border-bottom-color: transparent; height: 25px; width: 25px; background: transparent !important; display: inline-block; animation: rotate 0.75s 0s linear infinite; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-grid-beat.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-grid-beat { 50% { opacity: 0.7; } 100% { opacity: 1; } } .ball-grid-beat { width: 57px; } .ball-grid-beat > div:nth-child(1) { animation-delay: 0.13s; animation-duration: 1.32s; } .ball-grid-beat > div:nth-child(2) { animation-delay: -0.11s; animation-duration: 1.17s; } .ball-grid-beat > div:nth-child(3) { animation-delay: 0.09s; animation-duration: 1.19s; } .ball-grid-beat > div:nth-child(4) { animation-delay: -0.13s; animation-duration: 1.32s; } .ball-grid-beat > div:nth-child(5) { animation-delay: 0.76s; animation-duration: 0.66s; } .ball-grid-beat > div:nth-child(6) { animation-delay: 0.69s; animation-duration: 1.34s; } .ball-grid-beat > div:nth-child(7) { animation-delay: 0.17s; animation-duration: 1.47s; } .ball-grid-beat > div:nth-child(8) { animation-delay: 0.47s; animation-duration: 0.81s; } .ball-grid-beat > div:nth-child(9) { animation-delay: -0.19s; animation-duration: 1.42s; } .ball-grid-beat > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; float: left; animation-name: ball-grid-beat; animation-iteration-count: infinite; animation-delay: 0; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-grid-pulse.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-grid-pulse { 0% { transform: scale(1); } 50% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } } .ball-grid-pulse { width: 57px; } .ball-grid-pulse > div:nth-child(1) { animation-delay: 0.21s; animation-duration: 0.68s; } .ball-grid-pulse > div:nth-child(2) { animation-delay: 0.74s; animation-duration: 0.61s; } .ball-grid-pulse > div:nth-child(3) { animation-delay: 0.49s; animation-duration: 0.92s; } .ball-grid-pulse > div:nth-child(4) { animation-delay: 0.73s; animation-duration: 1.55s; } .ball-grid-pulse > div:nth-child(5) { animation-delay: -0.12s; animation-duration: 1.49s; } .ball-grid-pulse > div:nth-child(6) { animation-delay: 0.09s; animation-duration: 0.68s; } .ball-grid-pulse > div:nth-child(7) { animation-delay: -0.16s; animation-duration: 1.44s; } .ball-grid-pulse > div:nth-child(8) { animation-delay: 0.63s; animation-duration: 1.11s; } .ball-grid-pulse > div:nth-child(9) { animation-delay: -0.09s; animation-duration: 0.65s; } .ball-grid-pulse > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; float: left; animation-name: ball-grid-pulse; animation-iteration-count: infinite; animation-delay: 0; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-pulse-rise.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-pulse-rise-even { 0% { transform: scale(1.1); } 25% { transform: translateY(-30px); } 50% { transform: scale(0.4); } 75% { transform: translateY(30px); } 100% { transform: translateY(0); transform: scale(1); } } @keyframes ball-pulse-rise-odd { 0% { transform: scale(0.4); } 25% { transform: translateY(30px); } 50% { transform: scale(1.1); } 75% { transform: translateY(-30px); } 100% { transform: translateY(0); transform: scale(0.75); } } .ball-pulse-rise > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; animation-duration: 1s; animation-timing-function: cubic-bezier(0.15, 0.46, 0.9, 0.6); animation-iteration-count: infinite; animation-delay: 0; } .ball-pulse-rise > div:nth-child(2n) { animation-name: ball-pulse-rise-even; } .ball-pulse-rise > div:nth-child(2n-1) { animation-name: ball-pulse-rise-odd; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-pulse-round.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-pulse-round { 0%, 80%, 100% { transform: scale(0); -webkit-transform: scale(0); } 40% { transform: scale(1); -webkit-transform: scale(1); } } .ball-pulse-round > div { animation-fill-mode: both; width: 10px; height: 10px; animation: ball-pulse-round 1.2s infinite ease-in-out; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-pulse-sync.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-pulse-sync { 33% { transform: translateY(10px); } 66% { transform: translateY(-10px); } 100% { transform: translateY(0); } } .ball-pulse-sync > div:nth-child(1) { animation: ball-pulse-sync 0.6s -0.14s infinite ease-in-out; } .ball-pulse-sync > div:nth-child(2) { animation: ball-pulse-sync 0.6s -0.07s infinite ease-in-out; } .ball-pulse-sync > div:nth-child(3) { animation: ball-pulse-sync 0.6s 0s infinite ease-in-out; } .ball-pulse-sync > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-pulse.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes scale { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(0.1); opacity: 0.7; } 80% { transform: scale(1); opacity: 1; } } .ball-pulse > div:nth-child(1) { animation: scale 0.75s -0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div:nth-child(2) { animation: scale 0.75s -0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div:nth-child(3) { animation: scale 0.75s 0s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-rotate.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } .ball-rotate { position: relative; } .ball-rotate > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: relative; } .ball-rotate > div:first-child { animation: rotate 1s 0s cubic-bezier(0.7, -0.13, 0.22, 0.86) infinite; } .ball-rotate > div:before, .ball-rotate > div:after { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; content: ""; position: absolute; opacity: 0.8; } .ball-rotate > div:before { top: 0px; left: -28px; } .ball-rotate > div:after { top: 0px; left: 25px; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-scale-multiple.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-multiple { 0% { transform: scale(0); opacity: 0; } 5% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } } .ball-scale-multiple { position: relative; } .ball-scale-multiple > div:nth-child(2) { animation-delay: -0.4s; } .ball-scale-multiple > div:nth-child(3) { animation-delay: -0.2s; } .ball-scale-multiple > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; top: 0px; opacity: 0; margin: 0; width: 60px; height: 60px; animation: ball-scale-multiple 1s 0s linear infinite; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-scale-random.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale { 0% { transform: scale(0); } 100% { transform: scale(1); opacity: 0; } } .ball-scale > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; height: 60px; width: 60px; animation: ball-scale 1s 0s ease-in-out infinite; } .ball-scale-random { width: 37px; height: 40px; } .ball-scale-random > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; display: inline-block; height: 30px; width: 30px; animation: ball-scale 1s 0s ease-in-out infinite; } .ball-scale-random > div:nth-child(1) { margin-left: -7px; animation: ball-scale 1s 0.2s ease-in-out infinite; } .ball-scale-random > div:nth-child(3) { margin-left: -2px; margin-top: 9px; animation: ball-scale 1s 0.5s ease-in-out infinite; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-scale-ripple-multiple.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-ripple-multiple { 0% { transform: scale(0.1); opacity: 1; } 70% { transform: scale(1); opacity: 0.7; } 100% { opacity: 0.0; } } .ball-scale-ripple-multiple { position: relative; transform: translateY(-25px); } .ball-scale-ripple-multiple > div:nth-child(0) { animation-delay: -0.8s; } .ball-scale-ripple-multiple > div:nth-child(1) { animation-delay: -0.6s; } .ball-scale-ripple-multiple > div:nth-child(2) { animation-delay: -0.4s; } .ball-scale-ripple-multiple > div:nth-child(3) { animation-delay: -0.2s; } .ball-scale-ripple-multiple > div { animation-fill-mode: both; position: absolute; top: -2px; left: -26px; width: 50px; height: 50px; border-radius: 100%; border: 2px solid #b8c2cc; animation: ball-scale-ripple-multiple 1.25s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-scale-ripple.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-ripple { 0% { transform: scale(0.1); opacity: 1; } 70% { transform: scale(1); opacity: 0.7; } 100% { opacity: 0.0; } } .ball-scale-ripple > div { animation-fill-mode: both; height: 50px; width: 50px; border-radius: 100%; border: 2px solid #b8c2cc; animation: ball-scale-ripple 1s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-scale.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale { 0% { transform: scale(0); } 100% { transform: scale(1); opacity: 0; } } .ball-scale > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; height: 60px; width: 60px; animation: ball-scale 1s 0s ease-in-out infinite; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-spin-fade-loader.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-spin-fade-loader { 50% { opacity: 0.3; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1); } } .ball-spin-fade-loader { position: relative; top: -10px; left: -10px; } .ball-spin-fade-loader > div:nth-child(1) { top: 25px; left: 0; animation: ball-spin-fade-loader 1s -0.96s infinite linear; } .ball-spin-fade-loader > div:nth-child(2) { top: 17.04545px; left: 17.04545px; animation: ball-spin-fade-loader 1s -0.84s infinite linear; } .ball-spin-fade-loader > div:nth-child(3) { top: 0; left: 25px; animation: ball-spin-fade-loader 1s -0.72s infinite linear; } .ball-spin-fade-loader > div:nth-child(4) { top: -17.04545px; left: 17.04545px; animation: ball-spin-fade-loader 1s -0.6s infinite linear; } .ball-spin-fade-loader > div:nth-child(5) { top: -25px; left: 0; animation: ball-spin-fade-loader 1s -0.48s infinite linear; } .ball-spin-fade-loader > div:nth-child(6) { top: -17.04545px; left: -17.04545px; animation: ball-spin-fade-loader 1s -0.36s infinite linear; } .ball-spin-fade-loader > div:nth-child(7) { top: 0; left: -25px; animation: ball-spin-fade-loader 1s -0.24s infinite linear; } .ball-spin-fade-loader > div:nth-child(8) { top: 17.04545px; left: -17.04545px; animation: ball-spin-fade-loader 1s -0.12s infinite linear; } .ball-spin-fade-loader > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-spin-loader.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-spin-loader { 75% { opacity: 0.2; } 100% { opacity: 1; } } .ball-spin-loader { position: relative; } .ball-spin-loader > span:nth-child(1) { top: 45px; left: 0; animation: ball-spin-loader 2s 0.9s infinite linear; } .ball-spin-loader > span:nth-child(2) { top: 30.68182px; left: 30.68182px; animation: ball-spin-loader 2s 1.8s infinite linear; } .ball-spin-loader > span:nth-child(3) { top: 0; left: 45px; animation: ball-spin-loader 2s 2.7s infinite linear; } .ball-spin-loader > span:nth-child(4) { top: -30.68182px; left: 30.68182px; animation: ball-spin-loader 2s 3.6s infinite linear; } .ball-spin-loader > span:nth-child(5) { top: -45px; left: 0; animation: ball-spin-loader 2s 4.5s infinite linear; } .ball-spin-loader > span:nth-child(6) { top: -30.68182px; left: -30.68182px; animation: ball-spin-loader 2s 5.4s infinite linear; } .ball-spin-loader > span:nth-child(7) { top: 0; left: -45px; animation: ball-spin-loader 2s 6.3s infinite linear; } .ball-spin-loader > span:nth-child(8) { top: 30.68182px; left: -30.68182px; animation: ball-spin-loader 2s 7.2s infinite linear; } .ball-spin-loader > div { animation-fill-mode: both; position: absolute; width: 15px; height: 15px; border-radius: 100%; background: green; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-triangle-trace.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-triangle-path-1 { 33% { transform: translate(25px, -50px); } 66% { transform: translate(50px, 0px); } 100% { transform: translate(0px, 0px); } } @keyframes ball-triangle-path-2 { 33% { transform: translate(25px, 50px); } 66% { transform: translate(-25px, 50px); } 100% { transform: translate(0px, 0px); } } @keyframes ball-triangle-path-3 { 33% { transform: translate(-50px, 0px); } 66% { transform: translate(-25px, -50px); } 100% { transform: translate(0px, 0px); } } .ball-triangle-path { position: relative; transform: translate(-29.994px, -37.50938px); } .ball-triangle-path > div:nth-child(1) { animation-name: ball-triangle-path-1; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div:nth-child(2) { animation-name: ball-triangle-path-2; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div:nth-child(3) { animation-name: ball-triangle-path-3; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div { animation-fill-mode: both; position: absolute; width: 10px; height: 10px; border-radius: 100%; border: 1px solid #b8c2cc; } .ball-triangle-path > div:nth-of-type(1) { top: 50px; } .ball-triangle-path > div:nth-of-type(2) { left: 25px; } .ball-triangle-path > div:nth-of-type(3) { top: 50px; left: 50px; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-zig-zag-deflect.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-zig-deflect { 17% { transform: translate(-15px, -30px); } 34% { transform: translate(15px, -30px); } 50% { transform: translate(0, 0); } 67% { transform: translate(15px, -30px); } 84% { transform: translate(-15px, -30px); } 100% { transform: translate(0, 0); } } @keyframes ball-zag-deflect { 17% { transform: translate(15px, 30px); } 34% { transform: translate(-15px, 30px); } 50% { transform: translate(0, 0); } 67% { transform: translate(-15px, 30px); } 84% { transform: translate(15px, 30px); } 100% { transform: translate(0, 0); } } .ball-zig-zag-deflect { position: relative; transform: translate(-15px, -15px); } .ball-zig-zag-deflect > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; margin-left: 15px; top: 4px; left: -7px; } .ball-zig-zag-deflect > div:first-child { animation: ball-zig-deflect 1.5s 0s infinite linear; } .ball-zig-zag-deflect > div:last-child { animation: ball-zag-deflect 1.5s 0s infinite linear; } ================================================ FILE: public/backend/css/plugins/loaders/animations/ball-zig-zag.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-zig { 33% { transform: translate(-15px, -30px); } 66% { transform: translate(15px, -30px); } 100% { transform: translate(0, 0); } } @keyframes ball-zag { 33% { transform: translate(15px, 30px); } 66% { transform: translate(-15px, 30px); } 100% { transform: translate(0, 0); } } .ball-zig-zag { position: relative; transform: translate(-15px, -15px); } .ball-zig-zag > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; margin-left: 15px; top: 4px; left: -7px; } .ball-zig-zag > div:first-child { animation: ball-zig 0.7s 0s infinite linear; } .ball-zig-zag > div:last-child { animation: ball-zag 0.7s 0s infinite linear; } ================================================ FILE: public/backend/css/plugins/loaders/animations/cube-transition.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes cube-transition { 25% { transform: translateX(50px) scale(0.5) rotate(-90deg); } 50% { transform: translate(50px, 50px) rotate(-180deg); } 75% { transform: translateY(50px) scale(0.5) rotate(-270deg); } 100% { transform: rotate(-360deg); } } .cube-transition { position: relative; transform: translate(-25px, -25px); } .cube-transition > div { animation-fill-mode: both; width: 10px; height: 10px; position: absolute; top: -5px; left: -5px; background-color: #b8c2cc; animation: cube-transition 1.6s 0s infinite ease-in-out; } .cube-transition > div:last-child { animation-delay: -0.8s; } ================================================ FILE: public/backend/css/plugins/loaders/animations/line-scale-pulse-out-rapid.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-pulse-out-rapid { 0% { transform: scaley(1); } 80% { transform: scaley(0.3); } 90% { transform: scaley(1); } } .line-scale-pulse-out-rapid > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; vertical-align: middle; animation: line-scale-pulse-out-rapid 0.9s -0.5s infinite cubic-bezier(0.11, 0.49, 0.38, 0.78); } .line-scale-pulse-out-rapid > div:nth-child(2), .line-scale-pulse-out-rapid > div:nth-child(4) { animation-delay: -0.25s !important; } .line-scale-pulse-out-rapid > div:nth-child(1), .line-scale-pulse-out-rapid > div:nth-child(5) { animation-delay: 0s !important; } ================================================ FILE: public/backend/css/plugins/loaders/animations/line-scale-pulse-out.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-pulse-out { 0% { transform: scaley(1); } 50% { transform: scaley(0.4); } 100% { transform: scaley(1); } } .line-scale-pulse-out > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85); } .line-scale-pulse-out > div:nth-child(2), .line-scale-pulse-out > div:nth-child(4) { animation-delay: -0.4s !important; } .line-scale-pulse-out > div:nth-child(1), .line-scale-pulse-out > div:nth-child(5) { animation-delay: -0.2s !important; } ================================================ FILE: public/backend/css/plugins/loaders/animations/line-scale-random.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-party { 0% { transform: scale(1); } 50% { transform: scale(0.5); } 100% { transform: scale(1); } } .line-scale-party > div:nth-child(1) { animation-delay: -0.08s; animation-duration: 1.27s; } .line-scale-party > div:nth-child(2) { animation-delay: 0.04s; animation-duration: 0.74s; } .line-scale-party > div:nth-child(3) { animation-delay: 0.67s; animation-duration: 1.09s; } .line-scale-party > div:nth-child(4) { animation-delay: 0.34s; animation-duration: 0.37s; } .line-scale-party > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; animation-name: line-scale-party; animation-iteration-count: infinite; animation-delay: 0; } ================================================ FILE: public/backend/css/plugins/loaders/animations/line-scale.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale { 0% { transform: scaley(1); } 50% { transform: scaley(0.4); } 100% { transform: scaley(1); } } .line-scale > div:nth-child(1) { animation: line-scale 1s -0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(2) { animation: line-scale 1s -0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(3) { animation: line-scale 1s -0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(4) { animation: line-scale 1s -0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(5) { animation: line-scale 1s 0s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; } ================================================ FILE: public/backend/css/plugins/loaders/animations/line-spin-fade-loader.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-spin-fade-loader { 50% { opacity: 0.3; } 100% { opacity: 1; } } .line-spin-fade-loader { position: relative; top: -10px; left: -4px; } .line-spin-fade-loader > div:nth-child(1) { top: 20px; left: 0; animation: line-spin-fade-loader 1.2s -0.84s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(2) { top: 13.63636px; left: 13.63636px; transform: rotate(-45deg); animation: line-spin-fade-loader 1.2s -0.72s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(3) { top: 0; left: 20px; transform: rotate(90deg); animation: line-spin-fade-loader 1.2s -0.6s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(4) { top: -13.63636px; left: 13.63636px; transform: rotate(45deg); animation: line-spin-fade-loader 1.2s -0.48s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(5) { top: -20px; left: 0; animation: line-spin-fade-loader 1.2s -0.36s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(6) { top: -13.63636px; left: -13.63636px; transform: rotate(-45deg); animation: line-spin-fade-loader 1.2s -0.24s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(7) { top: 0; left: -20px; transform: rotate(90deg); animation: line-spin-fade-loader 1.2s -0.12s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(8) { top: 13.63636px; left: -13.63636px; transform: rotate(45deg); animation: line-spin-fade-loader 1.2s 0s infinite ease-in-out; } .line-spin-fade-loader > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; position: absolute; width: 5px; height: 15px; } ================================================ FILE: public/backend/css/plugins/loaders/animations/pacman.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate_pacman_half_up { 0% { transform: rotate(270deg); } 50% { transform: rotate(360deg); } 100% { transform: rotate(270deg); } } @keyframes rotate_pacman_half_down { 0% { transform: rotate(90deg); } 50% { transform: rotate(0deg); } 100% { transform: rotate(90deg); } } @keyframes pacman-balls { 75% { opacity: 0.7; } 100% { transform: translate(-100px, -6.25px); } } .pacman { position: relative; } .pacman > div:nth-child(2) { animation: pacman-balls 1s -0.99s infinite linear; } .pacman > div:nth-child(3) { animation: pacman-balls 1s -0.66s infinite linear; } .pacman > div:nth-child(4) { animation: pacman-balls 1s -0.33s infinite linear; } .pacman > div:nth-child(5) { animation: pacman-balls 1s 0s infinite linear; } .pacman > div:first-of-type { width: 0px; height: 0px; border-right: 25px solid transparent; border-top: 25px solid #b8c2cc; border-left: 25px solid #b8c2cc; border-bottom: 25px solid #b8c2cc; border-radius: 25px; animation: rotate_pacman_half_up 0.5s 0s infinite; position: relative; left: -30px; } .pacman > div:nth-child(2) { width: 0px; height: 0px; border-right: 25px solid transparent; border-top: 25px solid #b8c2cc; border-left: 25px solid #b8c2cc; border-bottom: 25px solid #b8c2cc; border-radius: 25px; animation: rotate_pacman_half_down 0.5s 0s infinite; margin-top: -50px; position: relative; left: -30px; } .pacman > div:nth-child(3), .pacman > div:nth-child(4), .pacman > div:nth-child(5), .pacman > div:nth-child(6) { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; width: 10px; height: 10px; position: absolute; transform: translate(0, -6.25px); top: 25px; left: 70px; } ================================================ FILE: public/backend/css/plugins/loaders/animations/semi-circle-spin.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes spin-rotate { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } .semi-circle-spin { position: relative; width: 35px; height: 35px; overflow: hidden; } .semi-circle-spin > div { position: absolute; border-width: 0px; border-radius: 100%; animation: spin-rotate 0.6s 0s infinite linear; background-image: linear-gradient(transparent 0%, transparent 70%, #b8c2cc 30%, #b8c2cc 100%); width: 100%; height: 100%; } ================================================ FILE: public/backend/css/plugins/loaders/animations/square-spin.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes square-spin { 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); } 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); } 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); } 100% { transform: perspective(100px) rotateX(0) rotateY(0); } } .square-spin > div { animation-fill-mode: both; width: 50px; height: 50px; background: #b8c2cc; animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } ================================================ FILE: public/backend/css/plugins/loaders/animations/triangle-skew-spin.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes triangle-skew-spin { 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); } 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); } 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); } 100% { transform: perspective(100px) rotateX(0) rotateY(0); } } .triangle-skew-spin > div { animation-fill-mode: both; width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 20px solid #b8c2cc; animation: triangle-skew-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } ================================================ FILE: public/backend/css/plugins/loaders/loaders.css ================================================ /** * Copyright (c) 2016 Connor Atherton * * All animations must live in their own file * in the animations directory and be included * here. * */ /** * Styles shared by multiple animations */ /*======================================================== DARK LAYOUT =========================================================*/ /* Custom Loader.CSS */ .loader-container { position: absolute; top: 50%; left: 50%; } .double-bounce { width: 40px; height: 40px; position: relative; margin: 40px auto; } .double-bounce .child { width: 100%; height: 100%; border-radius: 50%; background-color: #333; opacity: 0.6; position: absolute; top: 0; left: 0; animation: doubleBounce 2s infinite ease-in-out; } .double-bounce .double-bounce2 { animation-delay: -1.0s; } @-webkit-keyframes doubleBounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } } @keyframes doubleBounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } } .chasing-dots { width: 40px; height: 40px; position: relative; text-align: center; animation: chasingDotsRotate 2s infinite linear; } .chasing-dots .child { width: 60%; height: 60%; display: inline-block; position: absolute; top: 0; background-color: #333; border-radius: 100%; animation: chasingDotsBounce 2s infinite ease-in-out; } .chasing-dots .dot2 { top: auto; bottom: 0; animation-delay: -1s; } @-webkit-keyframes chasingDotsRotate { 100% { transform: rotate(360deg); } } @keyframes chasingDotsRotate { 100% { transform: rotate(360deg); } } @-webkit-keyframes chasingDotsBounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } } @keyframes chasingDotsBounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } } /* * Spinner positions * 1 2 3 * 4 5 6 * 7 8 9 */ .cube-grid { width: 40px; height: 40px; margin: 40px auto; } .cube-grid .cube { width: 33.33%; height: 33.33%; background-color: #333; float: left; animation: cubeGridScaleDelay 1.3s infinite ease-in-out; } .cube-grid .cube1 { animation-delay: 0.2s; } .cube-grid .cube2 { animation-delay: 0.3s; } .cube-grid .cube3 { animation-delay: 0.4s; } .cube-grid .cube4 { animation-delay: 0.1s; } .cube-grid .cube5 { animation-delay: 0.2s; } .cube-grid .cube6 { animation-delay: 0.3s; } .cube-grid .cube7 { animation-delay: 0.0s; } .cube-grid .cube8 { animation-delay: 0.1s; } .cube-grid .cube9 { animation-delay: 0.2s; } @-webkit-keyframes cubeGridScaleDelay { 0%, 70%, 100% { transform: scale3D(1, 1, 1); } 35% { transform: scale3D(0, 0, 1); } } @keyframes cubeGridScaleDelay { 0%, 70%, 100% { transform: scale3D(1, 1, 1); } 35% { transform: scale3D(0, 0, 1); } } .fading-circle { margin: 40px auto; width: 40px; height: 40px; position: relative; } .fading-circle .circle { width: 100%; height: 100%; position: absolute; left: 0; top: 0; } .fading-circle .circle:before { content: ''; display: block; margin: 0 auto; width: 15%; height: 15%; background-color: #333; border-radius: 100%; animation: circleFadeDelay 1.2s infinite ease-in-out both; } .fading-circle .circle2 { transform: rotate(30deg); } .fading-circle .circle2:before { animation-delay: -1.1s; } .fading-circle .circle3 { transform: rotate(60deg); } .fading-circle .circle3:before { animation-delay: -1s; } .fading-circle .circle4 { transform: rotate(90deg); } .fading-circle .circle4:before { animation-delay: -0.9s; } .fading-circle .circle5 { transform: rotate(120deg); } .fading-circle .circle5:before { animation-delay: -0.8s; } .fading-circle .circle6 { transform: rotate(150deg); } .fading-circle .circle6:before { animation-delay: -0.7s; } .fading-circle .circle7 { transform: rotate(180deg); } .fading-circle .circle7:before { animation-delay: -0.6s; } .fading-circle .circle8 { transform: rotate(210deg); } .fading-circle .circle8:before { animation-delay: -0.5s; } .fading-circle .circle9 { transform: rotate(240deg); } .fading-circle .circle9:before { animation-delay: -0.4s; } .fading-circle .circle10 { transform: rotate(270deg); } .fading-circle .circle10:before { animation-delay: -0.3s; } .fading-circle .circle11 { transform: rotate(300deg); } .fading-circle .circle11:before { animation-delay: -0.2s; } .fading-circle .circle12 { transform: rotate(330deg); } .fading-circle .circle12:before { animation-delay: -0.1s; } @-webkit-keyframes circleFadeDelay { 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } } @keyframes circleFadeDelay { 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } } .folding-cube { width: 40px; height: 40px; position: relative; transform: rotateZ(45deg); } .folding-cube .cube { float: left; width: 50%; height: 50%; position: relative; transform: scale(1.1); } .folding-cube .cube:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #333; animation: foldCubeAngle 2.4s infinite linear both; transform-origin: 100% 100%; } .folding-cube .cube2 { transform: scale(1.1) rotateZ(90deg); } .folding-cube .cube2:before { animation-delay: 0.3s; } .folding-cube .cube3 { transform: scale(1.1) rotateZ(180deg); } .folding-cube .cube3:before { animation-delay: 0.6s; } .folding-cube .cube4 { transform: scale(1.1) rotateZ(270deg); } .folding-cube .cube4:before { animation-delay: 0.9s; } @-webkit-keyframes foldCubeAngle { 0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; } 25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; } 90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; } } @keyframes foldCubeAngle { 0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; } 25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; } 90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; } } /** * Dots */ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes scale { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(0.1); opacity: 0.7; } 80% { transform: scale(1); opacity: 1; } } .ball-pulse > div:nth-child(1) { animation: scale 0.75s -0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div:nth-child(2) { animation: scale 0.75s -0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div:nth-child(3) { animation: scale 0.75s 0s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .ball-pulse > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-pulse-sync { 33% { transform: translateY(10px); } 66% { transform: translateY(-10px); } 100% { transform: translateY(0); } } .ball-pulse-sync > div:nth-child(1) { animation: ball-pulse-sync 0.6s -0.14s infinite ease-in-out; } .ball-pulse-sync > div:nth-child(2) { animation: ball-pulse-sync 0.6s -0.07s infinite ease-in-out; } .ball-pulse-sync > div:nth-child(3) { animation: ball-pulse-sync 0.6s 0s infinite ease-in-out; } .ball-pulse-sync > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale { 0% { transform: scale(0); } 100% { transform: scale(1); opacity: 0; } } .ball-scale > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; height: 60px; width: 60px; animation: ball-scale 1s 0s ease-in-out infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale { 0% { transform: scale(0); } 100% { transform: scale(1); opacity: 0; } } .ball-scale > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; height: 60px; width: 60px; animation: ball-scale 1s 0s ease-in-out infinite; } .ball-scale-random { width: 37px; height: 40px; } .ball-scale-random > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; display: inline-block; height: 30px; width: 30px; animation: ball-scale 1s 0s ease-in-out infinite; } .ball-scale-random > div:nth-child(1) { margin-left: -7px; animation: ball-scale 1s 0.2s ease-in-out infinite; } .ball-scale-random > div:nth-child(3) { margin-left: -2px; margin-top: 9px; animation: ball-scale 1s 0.5s ease-in-out infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } .ball-rotate { position: relative; } .ball-rotate > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: relative; } .ball-rotate > div:first-child { animation: rotate 1s 0s cubic-bezier(0.7, -0.13, 0.22, 0.86) infinite; } .ball-rotate > div:before, .ball-rotate > div:after { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; content: ""; position: absolute; opacity: 0.8; } .ball-rotate > div:before { top: 0px; left: -28px; } .ball-rotate > div:after { top: 0px; left: 25px; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } .ball-clip-rotate > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; border: 2px solid #b8c2cc; border-bottom-color: transparent; height: 25px; width: 25px; background: transparent !important; display: inline-block; animation: rotate 0.75s 0s linear infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } @keyframes scale { 30% { transform: scale(0.3); } 100% { transform: scale(1); } } .ball-clip-rotate-pulse { position: relative; transform: translateY(-15px); } .ball-clip-rotate-pulse > div { animation-fill-mode: both; position: absolute; top: 0px; left: 0px; border-radius: 100%; } .ball-clip-rotate-pulse > div:first-child { background: #b8c2cc; height: 16px; width: 16px; top: 7px; left: -7px; animation: scale 1s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } .ball-clip-rotate-pulse > div:last-child { position: absolute; border: 2px solid #b8c2cc; width: 30px; height: 30px; left: -16px; top: -2px; background: transparent; border: 2px solid; border-color: #b8c2cc transparent #b8c2cc transparent; animation: rotate 1s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; animation-duration: 1s; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } } .ball-clip-rotate-multiple { position: relative; } .ball-clip-rotate-multiple > div { animation-fill-mode: both; position: absolute; left: -20px; top: -20px; border: 2px solid #b8c2cc; border-bottom-color: transparent; border-top-color: transparent; border-radius: 100%; height: 35px; width: 35px; animation: rotate 1s 0s ease-in-out infinite; } .ball-clip-rotate-multiple > div:last-child { display: inline-block; top: -10px; left: -10px; width: 15px; height: 15px; animation-duration: 0.5s; border-color: #b8c2cc transparent #b8c2cc transparent; animation-direction: reverse; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-ripple { 0% { transform: scale(0.1); opacity: 1; } 70% { transform: scale(1); opacity: 0.7; } 100% { opacity: 0.0; } } .ball-scale-ripple > div { animation-fill-mode: both; height: 50px; width: 50px; border-radius: 100%; border: 2px solid #b8c2cc; animation: ball-scale-ripple 1s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-ripple-multiple { 0% { transform: scale(0.1); opacity: 1; } 70% { transform: scale(1); opacity: 0.7; } 100% { opacity: 0.0; } } .ball-scale-ripple-multiple { position: relative; transform: translateY(-25px); } .ball-scale-ripple-multiple > div:nth-child(0) { animation-delay: -0.8s; } .ball-scale-ripple-multiple > div:nth-child(1) { animation-delay: -0.6s; } .ball-scale-ripple-multiple > div:nth-child(2) { animation-delay: -0.4s; } .ball-scale-ripple-multiple > div:nth-child(3) { animation-delay: -0.2s; } .ball-scale-ripple-multiple > div { animation-fill-mode: both; position: absolute; top: -2px; left: -26px; width: 50px; height: 50px; border-radius: 100%; border: 2px solid #b8c2cc; animation: ball-scale-ripple-multiple 1.25s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-beat { 50% { opacity: 0.2; transform: scale(0.75); } 100% { opacity: 1; transform: scale(1); } } .ball-beat > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; animation: ball-beat 0.7s 0s infinite linear; } .ball-beat > div:nth-child(2n-1) { animation-delay: -0.35s !important; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-scale-multiple { 0% { transform: scale(0); opacity: 0; } 5% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } } .ball-scale-multiple { position: relative; } .ball-scale-multiple > div:nth-child(2) { animation-delay: -0.4s; } .ball-scale-multiple > div:nth-child(3) { animation-delay: -0.2s; } .ball-scale-multiple > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; top: 0px; opacity: 0; margin: 0; width: 60px; height: 60px; animation: ball-scale-multiple 1s 0s linear infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-triangle-path-1 { 33% { transform: translate(25px, -50px); } 66% { transform: translate(50px, 0px); } 100% { transform: translate(0px, 0px); } } @keyframes ball-triangle-path-2 { 33% { transform: translate(25px, 50px); } 66% { transform: translate(-25px, 50px); } 100% { transform: translate(0px, 0px); } } @keyframes ball-triangle-path-3 { 33% { transform: translate(-50px, 0px); } 66% { transform: translate(-25px, -50px); } 100% { transform: translate(0px, 0px); } } .ball-triangle-path { position: relative; transform: translate(-29.994px, -37.50938px); } .ball-triangle-path > div:nth-child(1) { animation-name: ball-triangle-path-1; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div:nth-child(2) { animation-name: ball-triangle-path-2; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div:nth-child(3) { animation-name: ball-triangle-path-3; animation-delay: 0; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; } .ball-triangle-path > div { animation-fill-mode: both; position: absolute; width: 10px; height: 10px; border-radius: 100%; border: 1px solid #b8c2cc; } .ball-triangle-path > div:nth-of-type(1) { top: 50px; } .ball-triangle-path > div:nth-of-type(2) { left: 25px; } .ball-triangle-path > div:nth-of-type(3) { top: 50px; left: 50px; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-pulse-rise-even { 0% { transform: scale(1.1); } 25% { transform: translateY(-30px); } 50% { transform: scale(0.4); } 75% { transform: translateY(30px); } 100% { transform: translateY(0); transform: scale(1); } } @keyframes ball-pulse-rise-odd { 0% { transform: scale(0.4); } 25% { transform: translateY(30px); } 50% { transform: scale(1.1); } 75% { transform: translateY(-30px); } 100% { transform: translateY(0); transform: scale(0.75); } } .ball-pulse-rise > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; animation-duration: 1s; animation-timing-function: cubic-bezier(0.15, 0.46, 0.9, 0.6); animation-iteration-count: infinite; animation-delay: 0; } .ball-pulse-rise > div:nth-child(2n) { animation-name: ball-pulse-rise-even; } .ball-pulse-rise > div:nth-child(2n-1) { animation-name: ball-pulse-rise-odd; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-grid-beat { 50% { opacity: 0.7; } 100% { opacity: 1; } } .ball-grid-beat { width: 57px; } .ball-grid-beat > div:nth-child(1) { animation-delay: 0.46s; animation-duration: 1.36s; } .ball-grid-beat > div:nth-child(2) { animation-delay: 0.67s; animation-duration: 0.71s; } .ball-grid-beat > div:nth-child(3) { animation-delay: 0.35s; animation-duration: 1.51s; } .ball-grid-beat > div:nth-child(4) { animation-delay: 0.3s; animation-duration: 1.06s; } .ball-grid-beat > div:nth-child(5) { animation-delay: -0.01s; animation-duration: 1.59s; } .ball-grid-beat > div:nth-child(6) { animation-delay: 0.57s; animation-duration: 1.14s; } .ball-grid-beat > div:nth-child(7) { animation-delay: 0.53s; animation-duration: 1s; } .ball-grid-beat > div:nth-child(8) { animation-delay: 0.01s; animation-duration: 1s; } .ball-grid-beat > div:nth-child(9) { animation-delay: 0.13s; animation-duration: 0.96s; } .ball-grid-beat > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; float: left; animation-name: ball-grid-beat; animation-iteration-count: infinite; animation-delay: 0; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-grid-pulse { 0% { transform: scale(1); } 50% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } } .ball-grid-pulse { width: 57px; } .ball-grid-pulse > div:nth-child(1) { animation-delay: 0.63s; animation-duration: 1.43s; } .ball-grid-pulse > div:nth-child(2) { animation-delay: 0.29s; animation-duration: 0.64s; } .ball-grid-pulse > div:nth-child(3) { animation-delay: 0.35s; animation-duration: 1.47s; } .ball-grid-pulse > div:nth-child(4) { animation-delay: 0.21s; animation-duration: 1.38s; } .ball-grid-pulse > div:nth-child(5) { animation-delay: 0.24s; animation-duration: 0.62s; } .ball-grid-pulse > div:nth-child(6) { animation-delay: 0.37s; animation-duration: 0.92s; } .ball-grid-pulse > div:nth-child(7) { animation-delay: 0.48s; animation-duration: 0.96s; } .ball-grid-pulse > div:nth-child(8) { animation-delay: -0.1s; animation-duration: 1s; } .ball-grid-pulse > div:nth-child(9) { animation-delay: 0.52s; animation-duration: 1.36s; } .ball-grid-pulse > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; display: inline-block; float: left; animation-name: ball-grid-pulse; animation-iteration-count: infinite; animation-delay: 0; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-spin-fade-loader { 50% { opacity: 0.3; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1); } } .ball-spin-fade-loader { position: relative; top: -10px; left: -10px; } .ball-spin-fade-loader > div:nth-child(1) { top: 25px; left: 0; animation: ball-spin-fade-loader 1s -0.96s infinite linear; } .ball-spin-fade-loader > div:nth-child(2) { top: 17.04545px; left: 17.04545px; animation: ball-spin-fade-loader 1s -0.84s infinite linear; } .ball-spin-fade-loader > div:nth-child(3) { top: 0; left: 25px; animation: ball-spin-fade-loader 1s -0.72s infinite linear; } .ball-spin-fade-loader > div:nth-child(4) { top: -17.04545px; left: 17.04545px; animation: ball-spin-fade-loader 1s -0.6s infinite linear; } .ball-spin-fade-loader > div:nth-child(5) { top: -25px; left: 0; animation: ball-spin-fade-loader 1s -0.48s infinite linear; } .ball-spin-fade-loader > div:nth-child(6) { top: -17.04545px; left: -17.04545px; animation: ball-spin-fade-loader 1s -0.36s infinite linear; } .ball-spin-fade-loader > div:nth-child(7) { top: 0; left: -25px; animation: ball-spin-fade-loader 1s -0.24s infinite linear; } .ball-spin-fade-loader > div:nth-child(8) { top: 17.04545px; left: -17.04545px; animation: ball-spin-fade-loader 1s -0.12s infinite linear; } .ball-spin-fade-loader > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-spin-loader { 75% { opacity: 0.2; } 100% { opacity: 1; } } .ball-spin-loader { position: relative; } .ball-spin-loader > span:nth-child(1) { top: 45px; left: 0; animation: ball-spin-loader 2s 0.9s infinite linear; } .ball-spin-loader > span:nth-child(2) { top: 30.68182px; left: 30.68182px; animation: ball-spin-loader 2s 1.8s infinite linear; } .ball-spin-loader > span:nth-child(3) { top: 0; left: 45px; animation: ball-spin-loader 2s 2.7s infinite linear; } .ball-spin-loader > span:nth-child(4) { top: -30.68182px; left: 30.68182px; animation: ball-spin-loader 2s 3.6s infinite linear; } .ball-spin-loader > span:nth-child(5) { top: -45px; left: 0; animation: ball-spin-loader 2s 4.5s infinite linear; } .ball-spin-loader > span:nth-child(6) { top: -30.68182px; left: -30.68182px; animation: ball-spin-loader 2s 5.4s infinite linear; } .ball-spin-loader > span:nth-child(7) { top: 0; left: -45px; animation: ball-spin-loader 2s 6.3s infinite linear; } .ball-spin-loader > span:nth-child(8) { top: 30.68182px; left: -30.68182px; animation: ball-spin-loader 2s 7.2s infinite linear; } .ball-spin-loader > div { animation-fill-mode: both; position: absolute; width: 15px; height: 15px; border-radius: 100%; background: green; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-zig { 33% { transform: translate(-15px, -30px); } 66% { transform: translate(15px, -30px); } 100% { transform: translate(0, 0); } } @keyframes ball-zag { 33% { transform: translate(15px, 30px); } 66% { transform: translate(-15px, 30px); } 100% { transform: translate(0, 0); } } .ball-zig-zag { position: relative; transform: translate(-15px, -15px); } .ball-zig-zag > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; margin-left: 15px; top: 4px; left: -7px; } .ball-zig-zag > div:first-child { animation: ball-zig 0.7s 0s infinite linear; } .ball-zig-zag > div:last-child { animation: ball-zag 0.7s 0s infinite linear; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes ball-zig-deflect { 17% { transform: translate(-15px, -30px); } 34% { transform: translate(15px, -30px); } 50% { transform: translate(0, 0); } 67% { transform: translate(15px, -30px); } 84% { transform: translate(-15px, -30px); } 100% { transform: translate(0, 0); } } @keyframes ball-zag-deflect { 17% { transform: translate(15px, 30px); } 34% { transform: translate(-15px, 30px); } 50% { transform: translate(0, 0); } 67% { transform: translate(-15px, 30px); } 84% { transform: translate(15px, 30px); } 100% { transform: translate(0, 0); } } .ball-zig-zag-deflect { position: relative; transform: translate(-15px, -15px); } .ball-zig-zag-deflect > div { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; margin-left: 15px; top: 4px; left: -7px; } .ball-zig-zag-deflect > div:first-child { animation: ball-zig-deflect 1.5s 0s infinite linear; } .ball-zig-zag-deflect > div:last-child { animation: ball-zag-deflect 1.5s 0s infinite linear; } /** * Lines */ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale { 0% { transform: scaley(1); } 50% { transform: scaley(0.4); } 100% { transform: scaley(1); } } .line-scale > div:nth-child(1) { animation: line-scale 1s -0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(2) { animation: line-scale 1s -0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(3) { animation: line-scale 1s -0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(4) { animation: line-scale 1s -0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div:nth-child(5) { animation: line-scale 1s 0s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08); } .line-scale > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-party { 0% { transform: scale(1); } 50% { transform: scale(0.5); } 100% { transform: scale(1); } } .line-scale-party > div:nth-child(1) { animation-delay: 0.64s; animation-duration: 0.76s; } .line-scale-party > div:nth-child(2) { animation-delay: -0.14s; animation-duration: 0.78s; } .line-scale-party > div:nth-child(3) { animation-delay: -0.11s; animation-duration: 0.76s; } .line-scale-party > div:nth-child(4) { animation-delay: 0.21s; animation-duration: 1.23s; } .line-scale-party > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; animation-name: line-scale-party; animation-iteration-count: infinite; animation-delay: 0; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-pulse-out { 0% { transform: scaley(1); } 50% { transform: scaley(0.4); } 100% { transform: scaley(1); } } .line-scale-pulse-out > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85); } .line-scale-pulse-out > div:nth-child(2), .line-scale-pulse-out > div:nth-child(4) { animation-delay: -0.4s !important; } .line-scale-pulse-out > div:nth-child(1), .line-scale-pulse-out > div:nth-child(5) { animation-delay: -0.2s !important; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-scale-pulse-out-rapid { 0% { transform: scaley(1); } 80% { transform: scaley(0.3); } 90% { transform: scaley(1); } } .line-scale-pulse-out-rapid > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; display: inline-block; vertical-align: middle; animation: line-scale-pulse-out-rapid 0.9s -0.5s infinite cubic-bezier(0.11, 0.49, 0.38, 0.78); } .line-scale-pulse-out-rapid > div:nth-child(2), .line-scale-pulse-out-rapid > div:nth-child(4) { animation-delay: -0.25s !important; } .line-scale-pulse-out-rapid > div:nth-child(1), .line-scale-pulse-out-rapid > div:nth-child(5) { animation-delay: 0s !important; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes line-spin-fade-loader { 50% { opacity: 0.3; } 100% { opacity: 1; } } .line-spin-fade-loader { position: relative; top: -10px; left: -4px; } .line-spin-fade-loader > div:nth-child(1) { top: 20px; left: 0; animation: line-spin-fade-loader 1.2s -0.84s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(2) { top: 13.63636px; left: 13.63636px; transform: rotate(-45deg); animation: line-spin-fade-loader 1.2s -0.72s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(3) { top: 0; left: 20px; transform: rotate(90deg); animation: line-spin-fade-loader 1.2s -0.6s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(4) { top: -13.63636px; left: 13.63636px; transform: rotate(45deg); animation: line-spin-fade-loader 1.2s -0.48s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(5) { top: -20px; left: 0; animation: line-spin-fade-loader 1.2s -0.36s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(6) { top: -13.63636px; left: -13.63636px; transform: rotate(-45deg); animation: line-spin-fade-loader 1.2s -0.24s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(7) { top: 0; left: -20px; transform: rotate(90deg); animation: line-spin-fade-loader 1.2s -0.12s infinite ease-in-out; } .line-spin-fade-loader > div:nth-child(8) { top: 13.63636px; left: -13.63636px; transform: rotate(45deg); animation: line-spin-fade-loader 1.2s 0s infinite ease-in-out; } .line-spin-fade-loader > div { background-color: #b8c2cc; width: 4px; height: 3.45rem; border-radius: 2px; margin: 2px; animation-fill-mode: both; position: absolute; width: 5px; height: 15px; } /** * Misc */ /*======================================================== DARK LAYOUT =========================================================*/ @keyframes triangle-skew-spin { 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); } 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); } 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); } 100% { transform: perspective(100px) rotateX(0) rotateY(0); } } .triangle-skew-spin > div { animation-fill-mode: both; width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 20px solid #b8c2cc; animation: triangle-skew-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes square-spin { 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); } 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); } 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); } 100% { transform: perspective(100px) rotateX(0) rotateY(0); } } .square-spin > div { animation-fill-mode: both; width: 50px; height: 50px; background: #b8c2cc; animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes rotate_pacman_half_up { 0% { transform: rotate(270deg); } 50% { transform: rotate(360deg); } 100% { transform: rotate(270deg); } } @keyframes rotate_pacman_half_down { 0% { transform: rotate(90deg); } 50% { transform: rotate(0deg); } 100% { transform: rotate(90deg); } } @keyframes pacman-balls { 75% { opacity: 0.7; } 100% { transform: translate(-100px, -6.25px); } } .pacman { position: relative; } .pacman > div:nth-child(2) { animation: pacman-balls 1s -0.99s infinite linear; } .pacman > div:nth-child(3) { animation: pacman-balls 1s -0.66s infinite linear; } .pacman > div:nth-child(4) { animation: pacman-balls 1s -0.33s infinite linear; } .pacman > div:nth-child(5) { animation: pacman-balls 1s 0s infinite linear; } .pacman > div:first-of-type { width: 0px; height: 0px; border-right: 25px solid transparent; border-top: 25px solid #b8c2cc; border-left: 25px solid #b8c2cc; border-bottom: 25px solid #b8c2cc; border-radius: 25px; animation: rotate_pacman_half_up 0.5s 0s infinite; position: relative; left: -30px; } .pacman > div:nth-child(2) { width: 0px; height: 0px; border-right: 25px solid transparent; border-top: 25px solid #b8c2cc; border-left: 25px solid #b8c2cc; border-bottom: 25px solid #b8c2cc; border-radius: 25px; animation: rotate_pacman_half_down 0.5s 0s infinite; margin-top: -50px; position: relative; left: -30px; } .pacman > div:nth-child(3), .pacman > div:nth-child(4), .pacman > div:nth-child(5), .pacman > div:nth-child(6) { background-color: #b8c2cc; width: 15px; height: 15px; border-radius: 100%; margin: 2px; width: 10px; height: 10px; position: absolute; transform: translate(0, -6.25px); top: 25px; left: 70px; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes cube-transition { 25% { transform: translateX(50px) scale(0.5) rotate(-90deg); } 50% { transform: translate(50px, 50px) rotate(-180deg); } 75% { transform: translateY(50px) scale(0.5) rotate(-270deg); } 100% { transform: rotate(-360deg); } } .cube-transition { position: relative; transform: translate(-25px, -25px); } .cube-transition > div { animation-fill-mode: both; width: 10px; height: 10px; position: absolute; top: -5px; left: -5px; background-color: #b8c2cc; animation: cube-transition 1.6s 0s infinite ease-in-out; } .cube-transition > div:last-child { animation-delay: -0.8s; } /*======================================================== DARK LAYOUT =========================================================*/ @keyframes spin-rotate { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } .semi-circle-spin { position: relative; width: 35px; height: 35px; overflow: hidden; } .semi-circle-spin > div { position: absolute; border-width: 0px; border-radius: 100%; animation: spin-rotate 0.6s 0s infinite linear; background-image: linear-gradient(transparent 0%, transparent 70%, #b8c2cc 30%, #b8c2cc 100%); width: 100%; height: 100%; } .loader-wrapper { position: relative; } .loader-container { margin: 0; position: absolute; top: 50%; left: 50%; margin-right: -50%; transform: translate(-50%, -50%); } #preloader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1050; } #preloader-wrapper .loader-section { position: fixed; width: 100%; height: 51%; background: #222222; z-index: 1050; } #preloader-wrapper .loader-section.section-top { top: 0; } #preloader-wrapper .loader-section.section-bottom { bottom: 0; } #loader { display: block; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin-right: -50%; transform: translate(-50%, -50%); z-index: 1051; /* anything higher than z-index: 1000 of .loader-section */ } /* Loaded */ .loaded #preloader-wrapper .loader-section.section-top { -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateY(-100%); /* IE 9 */ transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #preloader-wrapper .loader-section.section-bottom { -webkit-transform: translateY(100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateY(100%); /* IE 9 */ transform: translateY(100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #loader { opacity: 0; } .loaded #preloader-wrapper { visibility: hidden; } .loaded #loader { opacity: 0; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } .loaded #preloader-wrapper .loader-section.section-bottom, .loaded #preloader-wrapper .loader-section.section-top { -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } ================================================ FILE: public/backend/css/plugins/pickers/bootstrap-datetimepicker-build.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ .sr-only, .bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after, .bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after, .bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after, .bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after, .bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after, .bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after, .bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after, .bootstrap-datetimepicker-widget .btn[data-action="clear"]::after, .bootstrap-datetimepicker-widget .btn[data-action="today"]::after, .bootstrap-datetimepicker-widget .picker-switch::after, .bootstrap-datetimepicker-widget table th.prev::after, .bootstrap-datetimepicker-widget table th.next::after { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } /*! * Datetimepicker for Bootstrap 3 * ! version : 4.7.14 * https://github.com/Eonasdan/bootstrap-datetimepicker/ */ .bootstrap-datetimepicker-widget { list-style: none; } .bootstrap-datetimepicker-widget.dropdown-menu { margin: 2px 0; padding: 4px; width: 19em; } @media (max-width: 767.98px) { .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs { width: 38em; } } @media (max-width: 991.98px) { .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs { width: 38em; } } @media (max-width: 1199.98px) { .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs { width: 38em; } } .bootstrap-datetimepicker-widget.dropdown-menu:before, .bootstrap-datetimepicker-widget.dropdown-menu:after { content: ''; display: inline-block; position: absolute; } .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before { border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-bottom-color: rgba(0, 0, 0, 0.2); top: -7px; left: 7px; } .bootstrap-datetimepicker-widget.dropdown-menu.bottom:after { border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid white; top: -6px; left: 8px; } .bootstrap-datetimepicker-widget.dropdown-menu.top:before { border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #ccc; border-top-color: rgba(0, 0, 0, 0.2); bottom: -7px; left: 6px; } .bootstrap-datetimepicker-widget.dropdown-menu.top:after { border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white; bottom: -6px; left: 7px; } .bootstrap-datetimepicker-widget.dropdown-menu.float-right:before { left: auto; right: 6px; } .bootstrap-datetimepicker-widget.dropdown-menu.float-right:after { left: auto; right: 7px; } .bootstrap-datetimepicker-widget .list-unstyled { margin: 0; } .bootstrap-datetimepicker-widget a[data-action] { padding: 6px 0; } .bootstrap-datetimepicker-widget a[data-action]:active { box-shadow: none; } .bootstrap-datetimepicker-widget .timepicker-hour, .bootstrap-datetimepicker-widget .timepicker-minute, .bootstrap-datetimepicker-widget .timepicker-second { width: 54px; font-weight: bold; font-size: 1.2em; margin: 0; } .bootstrap-datetimepicker-widget button[data-action] { padding: 6px; } .bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after { content: "Increment Hours"; } .bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after { content: "Increment Minutes"; } .bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after { content: "Decrement Hours"; } .bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after { content: "Decrement Minutes"; } .bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after { content: "Show Hours"; } .bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after { content: "Show Minutes"; } .bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after { content: "Toggle AM/PM"; } .bootstrap-datetimepicker-widget .btn[data-action="clear"]::after { content: "Clear the picker"; } .bootstrap-datetimepicker-widget .btn[data-action="today"]::after { content: "Set the date to today"; } .bootstrap-datetimepicker-widget .picker-switch { text-align: center; } .bootstrap-datetimepicker-widget .picker-switch::after { content: "Toggle Date and Time Screens"; } .bootstrap-datetimepicker-widget .picker-switch td { padding: 0; margin: 0; height: auto; width: auto; line-height: inherit; } .bootstrap-datetimepicker-widget .picker-switch td span { line-height: 2.5; height: 2.5em; width: 100%; } .bootstrap-datetimepicker-widget table { width: 100%; margin: 0; } .bootstrap-datetimepicker-widget table td, .bootstrap-datetimepicker-widget table th { text-align: center; border-radius: 0.5rem; } .bootstrap-datetimepicker-widget table th { height: 20px; line-height: 20px; width: 20px; } .bootstrap-datetimepicker-widget table th.picker-switch { width: 145px; } .bootstrap-datetimepicker-widget table th.disabled, .bootstrap-datetimepicker-widget table th.disabled:hover { background: none; color: #1e1e1e; cursor: not-allowed; } .bootstrap-datetimepicker-widget table th.prev::after { content: "Previous Month"; } .bootstrap-datetimepicker-widget table th.next::after { content: "Next Month"; } .bootstrap-datetimepicker-widget table thead tr:first-child th { cursor: pointer; } .bootstrap-datetimepicker-widget table thead tr:first-child th:hover { background: #ededed; } .bootstrap-datetimepicker-widget table td { height: 54px; line-height: 54px; width: 54px; } .bootstrap-datetimepicker-widget table td.cw { font-size: .8em; height: 20px; line-height: 20px; color: #1e1e1e; } .bootstrap-datetimepicker-widget table td.day { height: 20px; line-height: 20px; width: 20px; } .bootstrap-datetimepicker-widget table td.day:hover, .bootstrap-datetimepicker-widget table td.hour:hover, .bootstrap-datetimepicker-widget table td.minute:hover, .bootstrap-datetimepicker-widget table td.second:hover { background: #ededed; cursor: pointer; } .bootstrap-datetimepicker-widget table td.old, .bootstrap-datetimepicker-widget table td.new { color: #1e1e1e; } .bootstrap-datetimepicker-widget table td.today { position: relative; } .bootstrap-datetimepicker-widget table td.today:before { content: ''; display: inline-block; border: 0 0 7px 7px solid transparent; border-bottom-color: #7367f0; border-top-color: rgba(0, 0, 0, 0.2); position: absolute; bottom: 4px; right: 4px; } .bootstrap-datetimepicker-widget table td.active, .bootstrap-datetimepicker-widget table td.active:hover { background-color: #7367f0; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .bootstrap-datetimepicker-widget table td.active.today:before { border-bottom-color: #fff; } .bootstrap-datetimepicker-widget table td.disabled, .bootstrap-datetimepicker-widget table td.disabled:hover { background: none; color: #1e1e1e; cursor: not-allowed; } .bootstrap-datetimepicker-widget table td span { display: inline-block; width: 54px; height: 54px; line-height: 54px; margin: 2px 1.5px; cursor: pointer; border-radius: 0.5rem; } .bootstrap-datetimepicker-widget table td span:hover { background: #ededed; } .bootstrap-datetimepicker-widget table td span.active { background-color: #7367f0; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .bootstrap-datetimepicker-widget table td span.old { color: #1e1e1e; } .bootstrap-datetimepicker-widget table td span.disabled, .bootstrap-datetimepicker-widget table td span.disabled:hover { background: none; color: #1e1e1e; cursor: not-allowed; } .bootstrap-datetimepicker-widget.usetwentyfour td.hour { height: 27px; line-height: 27px; } .input-group.date .input-group-addon { cursor: pointer; } ================================================ FILE: public/backend/css/plugins/ui/coming-soon.css ================================================ @media screen and (min-width: 0px) { head { font-family: "xs 0px"; } body:after { content: "xs - min-width: 0px"; } } @media screen and (min-width: 544px) { head { font-family: "sm 544px"; } body:after { content: "sm - min-width: 544px"; } } @media screen and (min-width: 768px) { head { font-family: "md 768px"; } body:after { content: "md - min-width: 768px"; } } @media screen and (min-width: 992px) { head { font-family: "lg 992px"; } body:after { content: "lg - min-width: 992px"; } } @media screen and (min-width: 1200px) { head { font-family: "xl 1200px"; } body:after { content: "xl - min-width: 1200px"; } } head { clear: both; } head title { font-family: "xs 0px, sm 544px, md 768px, lg 992px, xl 1200px"; } body:after { display: none; } *[data-usn-if] { display: none; } ================================================ FILE: public/backend/css/themes/dark-layout.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ body.dark-layout { background-color: #262c49; /********* UI ELEMENTS *********/ /********* COMPONENTS *********/ /********** FORMS **********/ /********** TABLE **********/ /********** PAGES **********/ /********** CHARTS **********/ /********** APPLICATIONS **********/ /********** EXTENSIONS **********/ /********** CUSTOMIZER **********/ /********** HORIZONTAL LAYOUT **********/ } body.dark-layout h1, body.dark-layout h2, body.dark-layout h3, body.dark-layout h4, body.dark-layout h5, body.dark-layout h6 { color: #ebeefd; } body.dark-layout [class*="border"] { border-color: #414561 !important; } body.dark-layout a:hover { color: #7367f0; } body.dark-layout p, body.dark-layout small, body.dark-layout span, body.dark-layout label { color: #c2c6dc; } body.dark-layout hr { border-color: #414561; } body.dark-layout pre { background-color: #262c49; border: 0; } body.dark-layout pre code { background-color: inherit; text-shadow: none; } body.dark-layout pre code .operator, body.dark-layout pre code .url { background-color: #262c49; } body.dark-layout code { background-color: #262c49; color: #b8c2cc; } body.dark-layout kbd { background-color: #262c49; } body.dark-layout .text-dark { color: #b8c2cc !important; } body.dark-layout .header-navbar-shadow { background: linear-gradient(180deg, rgba(44, 48, 60, 0.9) 44%, rgba(44, 48, 60, 0.43) 73%, rgba(44, 48, 60, 0)); } body.dark-layout .header-navbar { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .nav-link { color: #c2c6dc; background-color: transparent; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .nav-link i { color: #c2c6dc; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .nav-link.bookmark-star i { color: #fff !important; } body.dark-layout .header-navbar .navbar-container .nav .nav-item.nav-search .search-input.open { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .nav-item.nav-search .search-input.open .input { border-color: #414561; } body.dark-layout .header-navbar .navbar-container .nav .nav-item.nav-search .search-input.open .input, body.dark-layout .header-navbar .navbar-container .nav .nav-item.nav-search .search-input.open .input::placeholder, body.dark-layout .header-navbar .navbar-container .nav .nav-item.nav-search .search-input.open .search-input-close { color: #c2c6dc; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .bookmark-input .form-control { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .search-list { background-color: #262c49; } body.dark-layout .header-navbar .navbar-container .nav .nav-item .search-list .current_item { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media { overflow: hidden; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .media { border-color: #414561; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .media .media-body .notification-text { color: #c2c6dc; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .media .media-meta { color: #c2c6dc; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .media:hover { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .dropdown-menu-footer { background-color: #10163a; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .dropdown-menu-footer .dropdown-item { color: #fff; border-color: #414561; } body.dark-layout .header-navbar .navbar-container .nav .dropdown-notification .dropdown-menu.dropdown-menu-media .dropdown-menu-footer .dropdown-item:hover { background-color: #10163a; } body.dark-layout .header-navbar.navbar-static-top { background-color: transparent; } body.dark-layout .header-navbar[class*="bg-"] .navbar-nav .nav-item .nav-link { background-color: inherit; } body.dark-layout.blank-page .card.bg-transparent h1, body.dark-layout.blank-page .card.bg-transparent h2, body.dark-layout.blank-page .card.bg-transparent h3, body.dark-layout.blank-page .card.bg-transparent h4, body.dark-layout.blank-page .card.bg-transparent h5, body.dark-layout.blank-page .card.bg-transparent h6 { color: #10163a; } body.dark-layout.blank-page .card.bg-transparent p { color: #262c49; } body.dark-layout .main-menu { background-color: #10163a; } body.dark-layout .main-menu .shadow-bottom { background: linear-gradient(180deg, #0f1642 44%, rgba(15, 22, 66, 0.51) 73%, rgba(44, 48, 60, 0)); } body.dark-layout .main-menu:not(.expanded) .navigation .sidebar-group-active > a { background-color: #262c49; } body.dark-layout .main-menu-content .navigation-main { background-color: #10163a; } body.dark-layout .main-menu-content .navigation-main .nav-item i { color: #c2c6dc; } body.dark-layout .main-menu-content .navigation-main .nav-item.open a { background-color: #262c49; } body.dark-layout .main-menu-content .navigation-main .nav-item a:after { color: #c2c6dc; } body.dark-layout .main-menu-content .navigation-main .nav-item .menu-content { background-color: #10163a; } body.dark-layout .main-menu-content .navigation-main .nav-item .menu-content .active .menu-item { color: #fff; } body.dark-layout .main-menu-content .navigation-main .nav-item .menu-content li:not(.active) a { background-color: #10163a; } body.dark-layout .main-menu-content .navigation-main .active .menu-title, body.dark-layout .main-menu-content .navigation-main .active i { color: #fff; } body.dark-layout .main-menu-content .navigation-main .sidebar-group-active a { background: #10163a; border-radius: 4px; } body.dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content { background-color: #10163a; } body.dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content .active { z-index: 1; } body.dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content .active a { background-color: transparent; } body.dark-layout.menu-collapsed .main-menu:not(.expanded) .navigation-main li.active > a { background: #262c49 !important; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle { background-color: #10163a !important; color: #c2c6dc; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle:hover, body.dark-layout .data-list-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle:active, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle:hover, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .action-btns .dropdown .dropdown-toggle:active { box-shadow: none; color: #c2c6dc !important; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .action-btns .dt-buttons .btn.btn-outline-primary span, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .action-btns .dt-buttons .btn.btn-outline-primary span { color: #7367f0; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .action-btns .dt-buttons .btn.btn-outline-primary:hover, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .action-btns .dt-buttons .btn.btn-outline-primary:hover { background-color: transparent; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .dataTables_length .form-control, body.dark-layout .data-list-view-header .dataTables_wrapper .top .dataTables_filter .form-control, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .dataTables_length .form-control, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .dataTables_filter .form-control { background-color: #10163a; } body.dark-layout .data-list-view-header .dataTables_wrapper .top .dataTables_filter .form-control, body.dark-layout .data-thumb-view-header .dataTables_wrapper .top .dataTables_filter .form-control { border: 0; } body.dark-layout .data-list-view-header .dataTables_wrapper .pagination .page-item, body.dark-layout .data-thumb-view-header .dataTables_wrapper .pagination .page-item { background-color: #10163a !important; } body.dark-layout .data-list-view-header .dataTables_wrapper .pagination .page-item.active .page-link, body.dark-layout .data-thumb-view-header .dataTables_wrapper .pagination .page-item.active .page-link { background-color: #7367f0; } body.dark-layout .data-list-view-header .dataTables_wrapper .pagination .page-item .page-link, body.dark-layout .data-thumb-view-header .dataTables_wrapper .pagination .page-item .page-link { background-color: #10163a; } body.dark-layout .data-list-view-header .dataTable tbody tr, body.dark-layout .data-thumb-view-header .dataTable tbody tr { background-color: transparent; } body.dark-layout .data-list-view-header .dataTable tbody tr.selected td, body.dark-layout .data-thumb-view-header .dataTable tbody tr.selected td { background-color: rgba(115, 103, 240, 0.05); color: #7367f0; } body.dark-layout .data-list-view-header .add-new-data, body.dark-layout .data-thumb-view-header .add-new-data { background-color: #262c49; } body.dark-layout .data-list-view-header .add-new-data .new-data-title, body.dark-layout .data-thumb-view-header .add-new-data .new-data-title { border-color: #414561; } body.dark-layout .data-list-view-header .add-new-data .new-data-title .hide-data-sidebar i, body.dark-layout .data-thumb-view-header .add-new-data .new-data-title .hide-data-sidebar i { color: #c2c6dc; } body.dark-layout .data-list-view-header .add-new-data .data-items .form-control, body.dark-layout .data-list-view-header .add-new-data .data-items .custom-select, body.dark-layout .data-thumb-view-header .add-new-data .data-items .form-control, body.dark-layout .data-thumb-view-header .add-new-data .data-items .custom-select { background-color: #10163a; } body.dark-layout .bd-example .row, body.dark-layout .bd-example .d-flex { background-color: #262c49; } body.dark-layout .bd-example .row .col, body.dark-layout .bd-example .row [class*="col-"], body.dark-layout .bd-example .row .bd-highlight, body.dark-layout .bd-example .d-flex .col, body.dark-layout .bd-example .d-flex [class*="col-"], body.dark-layout .bd-example .d-flex .bd-highlight { background-color: #262c49; border-color: #808080; } body.dark-layout .bd-example .height-example-wrapper { background-color: #343661 !important; } body.dark-layout .bd-example .width-example, body.dark-layout .bd-example .height-example { background-color: #262c49 !important; } body.dark-layout .bd-example-row-flex-cols .row { background-color: #262c49; } body.dark-layout .colors-container span { color: #fff; } body.dark-layout .alert .alert-heading, body.dark-layout .alert p { color: inherit; } body.dark-layout .alert.alert-dark .alert-heading, body.dark-layout .alert.alert-dark p { color: #b8c2cc; } body.dark-layout .content-header-left .breadcrumbs-top .content-header-title { color: #ebeefd; } body.dark-layout .content-header-left .breadcrumbs-top .breadcrumb-wrapper .breadcrumb .breadcrumb-item { color: #c2c6dc; } body.dark-layout .content-header-left .breadcrumbs-top .breadcrumb-wrapper .breadcrumb .breadcrumb-item:before { color: #c2c6dc; } body.dark-layout .content-header-left .breadcrumbs-top .breadcrumb-wrapper .breadcrumb .breadcrumb-item:not(.active) a:hover { color: #7367f0; } body.dark-layout #default-breadcrumb .breadcrumb .breadcrumb-item, body.dark-layout #breadcrumb-alignment .breadcrumb .breadcrumb-item { color: #c2c6dc; } body.dark-layout #default-breadcrumb .breadcrumb .breadcrumb-item:before, body.dark-layout #breadcrumb-alignment .breadcrumb .breadcrumb-item:before { color: #c2c6dc; } body.dark-layout #default-breadcrumb .breadcrumb .breadcrumb-item:not(.active) a:hover, body.dark-layout #breadcrumb-alignment .breadcrumb .breadcrumb-item:not(.active) a:hover { color: #7367f0; } body.dark-layout #component-breadcrumbs .breadcrumb .breadcrumb-item { color: #c2c6dc; } body.dark-layout #component-breadcrumbs .breadcrumb .breadcrumb-item a { color: #c2c6dc; } body.dark-layout #component-breadcrumbs .breadcrumb .breadcrumb-item:before { color: #c2c6dc; } body.dark-layout #component-breadcrumbs .breadcrumb .breadcrumb-item.active { color: #7367f0; } body.dark-layout .collapse-bordered .collapse-header { border-color: rgba(255, 255, 255, 0.04); } body.dark-layout .collapse-bordered.accordion-shadow { box-shadow: 0 0 8px 0 rgba(255, 255, 255, 0.1); } body.dark-layout .accordion .collapse-border-item { border-color: rgba(255, 255, 255, 0.04); } body.dark-layout .collapse-margin { box-shadow: 0 2px 15px 0 rgba(255, 255, 255, 0.1); } body.dark-layout .accordion[data-toggle-hover="true"] .card, body.dark-layout .collapse[data-toggle-hover="true"] .card { border-color: rgba(255, 255, 255, 0.04); } body.dark-layout .collapse-icon .card-header a { color: #c2c6dc; } body.dark-layout .btn.btn-icon i { color: #fff; } body.dark-layout .btn.btn-dark, body.dark-layout .btn.btn-outline-dark, body.dark-layout .btn.btn-flat-dark { color: #b8c2cc; } body.dark-layout .btn.btn-dark { background-color: #4e5154 !important; } body.dark-layout .btn.btn-outline-dark { border-color: #4e5154; color: #b8c2cc; } body.dark-layout .btn.btn-flat-dark:active, body.dark-layout .btn.btn-flat-dark:focus { background: #4e5154; } body.dark-layout .btn.btn-white { color: #626262; } body.dark-layout .dropdown-toggle:hover i, body.dark-layout .dropdown-toggle:hover:after { color: #fff; } body.dark-layout .dropdown-menu { background-color: #262c49; } body.dark-layout .dropdown-menu:before, body.dark-layout .dropdown-menu .dropdown-item:hover, body.dark-layout .dropdown-menu .dropdown-item:focus { background: #262c49; } body.dark-layout .dropdown-menu .dropdown-item { color: #c2c6dc; } body.dark-layout .dropdown-menu .form-control { background-color: #10163a; } body.dark-layout .dropdown-menu .dropdown-divider { border-color: #414561; } body.dark-layout .search-bar .form-control { background-color: #10163a; } body.dark-layout .btn-white ~ .dropdown-menu .dropdown-item:not(.acitve):hover { color: #7367f0 !important; } body.dark-layout .btn-dark ~ .dropdown-menu .dropdown-item:hover, body.dark-layout .btn-outline-dark ~ .dropdown-menu .dropdown-item:hover, body.dark-layout .btn-flat-dark ~ .dropdown-menu .dropdown-item:hover { color: #c2c6dc; } body.dark-layout .dropup.dropdown-icon-wrapper .dropdown-menu .dropdown-item i { color: #c2c6dc; } body.dark-layout .modal .modal-header, body.dark-layout .modal .modal-header[class*="bg-"] { background-color: #10163a; } body.dark-layout .modal .modal-header .close, body.dark-layout .modal .modal-header[class*="bg-"] .close { background-color: #262c49; text-shadow: none; } body.dark-layout .modal .modal-header .close span, body.dark-layout .modal .modal-header[class*="bg-"] .close span { color: #fff; } body.dark-layout .modal .modal-content, body.dark-layout .modal .modal-body, body.dark-layout .modal .modal-footer { background-color: #262c49; } body.dark-layout .modal .modal-content .form-control, body.dark-layout .modal .modal-content .picker__input, body.dark-layout .modal .modal-content .custom-file-label, body.dark-layout .modal .modal-content .custom-file-label:after, body.dark-layout .modal .modal-body .form-control, body.dark-layout .modal .modal-body .picker__input, body.dark-layout .modal .modal-body .custom-file-label, body.dark-layout .modal .modal-body .custom-file-label:after, body.dark-layout .modal .modal-footer .form-control, body.dark-layout .modal .modal-footer .picker__input, body.dark-layout .modal .modal-footer .custom-file-label, body.dark-layout .modal .modal-footer .custom-file-label:after { background-color: #10163a !important; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item.active { background-color: #262c49; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item.active .page-link { background-color: #7367f0; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item.active .page-link:hover { color: #fff; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item .page-link { background-color: #262c49; color: #fff; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item .page-link:hover { color: #7367f0; } body.dark-layout .pagination:not([class*="pagination-"]) .page-item.prev-item .page-link:hover, body.dark-layout .pagination:not([class*="pagination-"]) .page-item.next-item .page-link:hover { color: #fff; } body.dark-layout .pagination[class*="pagination-"] .page-item:not(.active):not(:hover) .page-link { background-color: #262c49; color: #fff; } body.dark-layout .pagination[class*="pagination-"] .page-item:not(.active) .page-link:hover { background-color: #262c49; } body.dark-layout .pagination[class*="pagination-"] .page-item.active { background-color: #262c49; } body.dark-layout .nav .nav-item .nav-link { color: #c2c6dc; } body.dark-layout .nav .nav-item .nav-link.active, body.dark-layout .nav .nav-item .nav-link:hover { color: #7367f0; } body.dark-layout #navbar-component #basic-navbar .navbar { background-color: #262c49; } body.dark-layout #navbar-component .navbar .nav .nav-item a { color: #c2c6dc !important; } body.dark-layout #navbar-component .navbar .nav .nav-item .nav-link { background-color: inherit; } body.dark-layout #navbar-component .navbar .nav .nav-item .nav-link span { color: inherit; } body.dark-layout #navbar-component .navbar .nav .nav-item .nav-link .badge { color: #fff; } body.dark-layout .nav-tabs .nav-item .nav-link, body.dark-layout .nav-tabs.nav-justified .nav-item .nav-link, body.dark-layout .nav .nav-item .nav-link { background-color: #10163a; } body.dark-layout .nav-tabs .nav-item .nav-link.active, body.dark-layout .nav-tabs.nav-justified .nav-item .nav-link.active, body.dark-layout .nav .nav-item .nav-link.active { background-color: #10163a; } body.dark-layout .nav-tabs .nav-item .nav-link.disabled, body.dark-layout .nav-tabs.nav-justified .nav-item .nav-link.disabled, body.dark-layout .nav .nav-item .nav-link.disabled { opacity: 0.5; } body.dark-layout .nav-tabs ~ .tab-content .tab-pane, body.dark-layout .nav-tabs.nav-justified ~ .tab-content .tab-pane, body.dark-layout .nav ~ .tab-content .tab-pane { background-color: #10163a; } body.dark-layout .nav-vertical .nav.nav-tabs.nav-left ~ .tab-content .tab-pane, body.dark-layout .nav-vertical .nav.nav-tabs.nav-right ~ .tab-content .tab-pane { background-color: #10163a; } body.dark-layout .nav-pills .nav-item .nav-link.active { color: #fff; background-color: #7367f0; } body.dark-layout .nav-pills.nav-active-bordered-pill .nav-item .nav-link.active { background-color: transparent; } body.dark-layout .card { background-color: #10163a; } body.dark-layout .card .card-header, body.dark-layout .card .card-footer { color: #c2c6dc; background-color: #10163a; } body.dark-layout .card .card-header .heading-elements.visible ul li { background-color: #10163a; } body.dark-layout .card .heading-elements.visible .list-inline { background-color: #10163a; } body.dark-layout .card .card-body, body.dark-layout .card .card-footer { color: #c2c6dc; border-color: #414561; } body.dark-layout .card.overlay-img-card .card-img-overlay span, body.dark-layout .card.overlay-img-card .card-img-overlay p { color: #fff; } body.dark-layout .media-bordered .media { border-color: #414561; } body.dark-layout .activity-timeline { border-color: #414561; } body.dark-layout #dashboard-analytics .bg-analytics { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)); } body.dark-layout #dashboard-analytics .bg-analytics p { color: #fff; } body.dark-layout #dashboard-analytics .bg-analytics .card-body { background-color: transparent; } body.dark-layout #dashboard-ecommerce .chat-application .chat-app-window .user-chats .chats .chat-body .chat-content p, body.dark-layout #overlay-image-chat-cards .chat-application .chat-app-window .user-chats .chats .chat-body .chat-content p { color: #fff; } body.dark-layout #dashboard-ecommerce .chat-application .chat-app-window .user-chats .chats .chat-left .chat-content, body.dark-layout #overlay-image-chat-cards .chat-application .chat-app-window .user-chats .chats .chat-left .chat-content { background-color: #171e49; border: 1px solid #414561; } body.dark-layout #dashboard-ecommerce .chat-application .chat-app-window .user-chats .chats .chat-left .chat-content p, body.dark-layout #overlay-image-chat-cards .chat-application .chat-app-window .user-chats .chats .chat-left .chat-content p { color: #c2c6dc; } body.dark-layout #dashboard-ecommerce .chat-application .chat-app-window .chat-footer, body.dark-layout #overlay-image-chat-cards .chat-application .chat-app-window .chat-footer { border-top: 1px solid #414561; } body.dark-layout #dashboard-ecommerce .chat-application .chat-app-window .chat-footer .card-body, body.dark-layout #overlay-image-chat-cards .chat-application .chat-app-window .chat-footer .card-body { padding-top: 1.5rem !important; } body.dark-layout .badge { color: #fff; } body.dark-layout .badge span { color: #fff; } body.dark-layout .badge:hover i { color: #fff; } body.dark-layout .popover[x-placement="top"] .arrow:after { border-top-color: #262c49; } body.dark-layout .popover[x-placement="bottom"] .arrow:after { border-bottom-color: #7367f0; } body.dark-layout .popover[x-placement="left"] .arrow:after { border-left-color: #262c49; } body.dark-layout .popover[x-placement="right"] .arrow:after { border-right-color: #262c49; } body.dark-layout .popover .popover-body { background-color: #262c49; color: #c2c6dc; } body.dark-layout .toast { background-color: #262c49; box-shadow: -5px 5px 5px 0px rgba(0, 0, 0, 0.3); } body.dark-layout .toast .toast-header { background-color: #262c49; color: #c2c6dc; border-color: #414561; } body.dark-layout .toast .toast-header .close { text-shadow: none; opacity: 1; } body.dark-layout .toast .toast-body { background-color: #262c49; color: #c2c6dc; } body.dark-layout .avatar { background-color: #262c49; } body.dark-layout .avatar .avatar-content { color: #fff; } body.dark-layout .chip { background-color: #262c49; } body.dark-layout .chip .avatar { background-color: #10163a; } body.dark-layout .chip .chip-body .chip-text, body.dark-layout .chip .chip-body span { color: #fff; } body.dark-layout .divider .divider-text { background-color: transparent; color: #c2c6dc; } body.dark-layout .divider .divider-text::before, body.dark-layout .divider .divider-text::after { border-color: #414561; } body.dark-layout .divider.divider-dark .divider-text::before, body.dark-layout .divider.divider-dark .divider-text::after { border-color: #4e5154 !important; } body.dark-layout .list-group .list-group-item:not([class*="list-group-item-"]), body.dark-layout .list-group .list-group-item.list-group-item-action { background-color: #10163a; border-color: #414561; color: #c2c6dc; } body.dark-layout .list-group .list-group-item:not([class*="list-group-item-"]):hover, body.dark-layout .list-group .list-group-item.list-group-item-action:hover { background-color: #262c49; } body.dark-layout .list-group .list-group-item.active { background-color: #7367f0; color: #fff; } body.dark-layout .list-group .list-group-item.active:hover { background-color: #7367f0; } body.dark-layout .list-group .list-group-item.active p, body.dark-layout .list-group .list-group-item.active small { color: #fff; } body.dark-layout .list-group .list-group-item.disabled { background-color: #262c49; } body.dark-layout .spinner-border { border-color: currentColor !important; border-right-color: transparent !important; } body.dark-layout input.form-control, body.dark-layout .custom-file-label, body.dark-layout textarea.form-control { background-color: #262c49; color: #c2c6dc; } body.dark-layout input.form-control:not(:focus), body.dark-layout .custom-file-label:not(:focus), body.dark-layout textarea.form-control:not(:focus) { border: 0; } body.dark-layout input.form-control::placeholder, body.dark-layout .custom-file-label::placeholder, body.dark-layout textarea.form-control::placeholder { color: #c2c6dc; } body.dark-layout input.form-control ~ .form-control-position i, body.dark-layout .custom-file-label ~ .form-control-position i, body.dark-layout textarea.form-control ~ .form-control-position i { color: #c2c6dc; } body.dark-layout input.form-control:focus ~ .form-control-position i, body.dark-layout .custom-file-label:focus ~ .form-control-position i, body.dark-layout textarea.form-control:focus ~ .form-control-position i { color: #7367f0; } body.dark-layout input.form-control:disabled, body.dark-layout input.form-control[readonly="readonly"], body.dark-layout .custom-file-label:disabled, body.dark-layout .custom-file-label[readonly="readonly"], body.dark-layout textarea.form-control:disabled, body.dark-layout textarea.form-control[readonly="readonly"] { opacity: 0.5; } body.dark-layout .char-textarea.active { color: #c2c6dc !important; } body.dark-layout .char-textarea.max-limit { color: #ea5455 !important; } body.dark-layout .custom-file-label:after { background-color: #262c49; border-left: 1px solid #414561; color: #c2c6dc; } body.dark-layout .has-icon-left.input-divider-left .form-control-position i { border-right-color: #414561; } body.dark-layout .has-icon-left.input-divider-right .form-control-position i { border-left-color: #414561; } body.dark-layout .bootstrap-touchspin .form-control { background-color: #262c49; } body.dark-layout .bootstrap-touchspin.disabled-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-down, body.dark-layout .bootstrap-touchspin.disabled-touchspin .bootstrap-touchspin-injected .bootstrap-touchspin-up, body.dark-layout .bootstrap-touchspin.disabled-touchspin .bootstrap-touchspin-injected .disabled-max-min { background-color: #b8c2cc !important; opacity: 1; } body.dark-layout .bootstrap-touchspin .bootstrap-touchspin-injected .disabled-max-min { background-color: #b8c2cc !important; opacity: 1; } body.dark-layout select.form-control, body.dark-layout .custom-select { background-color: #262c49; color: #c2c6dc; border: 0; } body.dark-layout select.form-control option:checked, body.dark-layout .custom-select option:checked { background-color: #10163a; } body.dark-layout .select2-container .select2-selection { background: #262c49; } body.dark-layout .select2-container .select2-selection .select2-selection__rendered { color: #c2c6dc; } body.dark-layout .select2-container .select2-selection .select2-selection__rendered .select2-search__field { color: #fff; } body.dark-layout .select2-container .select2-selection .select2-selection__arrow b { border-top-color: #414561; } body.dark-layout .select2-container .select2-dropdown { background-color: #10163a; } body.dark-layout .select2-container .select2-dropdown .select2-search__field { background-color: #262c49; color: #c2c6dc; } body.dark-layout .select2-container .select2-dropdown.bg-info .select2-results__options .select2-results__option { color: #fff; } body.dark-layout .select2-container .select2-dropdown .select2-results .select2-results__options .select2-results__option[aria-selected="true"] { background-color: #7367f0; } body.dark-layout .select2-container.select2-container--classic .selection .select2-selection__arrow { background-image: none; background-color: #262c49; border-color: rgba(255, 255, 255, 0.1); } body.dark-layout .custom-switch .custom-control-input[disabled] ~ .custom-control-label { opacity: 0.5; } body.dark-layout .custom-switch .custom-control-input:not(:disabled):active ~ .custom-control-label::before { background-color: #7367f0; } body.dark-layout .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background-color: #7367f0; } body.dark-layout .custom-switch .custom-control-label:before { background-color: #262c49; } body.dark-layout .picker__input { background-color: #262c49 !important; } body.dark-layout .picker__holder { background-color: #262c49; } body.dark-layout .picker__holder .picker__header .picker__month, body.dark-layout .picker__holder .picker__header .picker__year { color: #c2c6dc; } body.dark-layout .picker__holder .picker__header .picker__select--year, body.dark-layout .picker__holder .picker__header .picker__select--month { color: #c2c6dc; background-color: #262c49; } body.dark-layout .picker__holder .picker__header .picker__nav--next:hover, body.dark-layout .picker__holder .picker__header .picker__nav--prev:hover { background-color: #10163a; } body.dark-layout .picker__holder .picker__table thead tr .picker__weekday { color: #c2c6dc; } body.dark-layout .picker__holder .picker__table tbody tr td .picker__day { color: #c2c6dc; } body.dark-layout .picker__holder .picker__table tbody tr td .picker__day:hover { background-color: transparent; border: 1px solid #4ec6e8; color: #c2c6dc; } body.dark-layout .picker__holder .picker__table tbody tr td .picker__day.picker__day--disabled { color: #c2c6dc; opacity: 0.5; background: #10163a; } body.dark-layout .picker__holder .picker__table tbody tr td .picker__day--today { background-color: #10163a; } body.dark-layout .picker__holder .picker__footer .picker__button--today, body.dark-layout .picker__holder .picker__footer .picker__button--clear, body.dark-layout .picker__holder .picker__footer .picker__button--close { background-color: #262c49; color: #c2c6dc; } body.dark-layout .picker--time .picker__holder .picker__list { background-color: #262c49; } body.dark-layout .picker--time .picker__holder .picker__list .picker__list-item.picker__list-item--selected, body.dark-layout .picker--time .picker__holder .picker__list .picker__list-item:hover { background-color: #10163a; } body.dark-layout .picker--time .picker__holder .picker__list .picker__list-item.picker__list-item--disabled { background-color: #10163a; color: #b8c2cc; opacity: 0.5; } body.dark-layout .picker--time .picker__holder .picker__list .picker__button--clear { background-color: #262c49; color: #c2c6dc; } body.dark-layout .custom-control-label::before { background-color: #414561; } body.dark-layout .custom-control-input:disabled ~ .custom-control-label::before { background-color: rgba(65, 69, 97, 0.5); border-color: #414561; } body.dark-layout .wizard .steps ul .disabled a, body.dark-layout .wizard .steps ul .done a { color: #c2c6dc !important; } body.dark-layout .wizard .steps ul .disabled a:hover, body.dark-layout .wizard .steps ul .done a:hover { color: #c2c6dc; } body.dark-layout .wizard .steps ul .disabled a .step, body.dark-layout .wizard .steps ul .done a .step { background-color: #262c49; color: #fff; } body.dark-layout .input-group .input-group-prepend .input-group-text, body.dark-layout .input-group .input-group-append .input-group-text { background-color: #10163a; border: 1px solid #414561; } body.dark-layout .input-group .input-group-prepend ~ .form-control { border-left: 1px solid #414561; } body.dark-layout .input-group .form-control ~ .input-group-append { border-left: 1px solid #414561; } body.dark-layout .form-label-group > input:not(:focus):not(:placeholder-shown) ~ label, body.dark-layout .form-label-group > textarea:not(:focus):not(:placeholder-shown) ~ label { color: #c2c6dc !important; } body.dark-layout .table { background-color: #212744; } body.dark-layout .table .thead tr:not([class*="table-"]) th, body.dark-layout .table .thead tr:not([class*="table-"]) td, body.dark-layout .table tbody tr:not([class*="table-"]) th, body.dark-layout .table tbody tr:not([class*="table-"]) td { border: 0; color: #c2c6dc; } body.dark-layout .table .thead tr:not([class*="table-"]) th code, body.dark-layout .table .thead tr:not([class*="table-"]) td code, body.dark-layout .table tbody tr:not([class*="table-"]) th code, body.dark-layout .table tbody tr:not([class*="table-"]) td code { background-color: #10163a; } body.dark-layout .table thead tr th { border: 0; background-color: #212744; color: #c2c6dc; } body.dark-layout .table tbody tr[class*="table-"] td, body.dark-layout .table tbody tr[class*="table-"] th { background-color: unset; color: #22292f; border-color: #414561; } body.dark-layout .table tbody tr.table-dark td, body.dark-layout .table tbody tr.table-dark th { color: #fff; } body.dark-layout .table tbody tr.table-active td, body.dark-layout .table tbody tr.table-active th { color: #c2c6dc; } body.dark-layout .table tbody tr th { background-color: #262c49; } body.dark-layout .table tbody tr td { background-color: #262c49; color: #c2c6dc; } body.dark-layout .table.table-bordered { border: 1px solid #414561; } body.dark-layout .table.table-bordered thead tr th, body.dark-layout .table.table-bordered thead tr td, body.dark-layout .table.table-bordered tbody tr th, body.dark-layout .table.table-bordered tbody tr td { border: 1px solid #414561; } body.dark-layout .table.table-hover tbody tr:hover { background-color: #10163a; } body.dark-layout .table.table-hover tbody tr th, body.dark-layout .table.table-hover tbody tr td { background-color: unset; } body.dark-layout .table.table-striped tbody tr:nth-of-type(odd) { background-color: #10163a; } body.dark-layout .table.table-striped tbody tr td, body.dark-layout .table.table-striped tbody tr th { background-color: unset; } body.dark-layout .table.table-mx-0 { background-color: #10163a; } body.dark-layout .table.table-mx-0 thead tr th, body.dark-layout .table.table-mx-0 thead tr td, body.dark-layout .table.table-mx-0 tbody tr th, body.dark-layout .table.table-mx-0 tbody tr td { background-color: #10163a; } body.dark-layout .dataTables_wrapper .dt-buttons .buttons-copy, body.dark-layout .dataTables_wrapper .dt-buttons .buttons-excel, body.dark-layout .dataTables_wrapper .dt-buttons .buttons-pdf, body.dark-layout .dataTables_wrapper .dt-buttons .buttons-print, body.dark-layout .dataTables_wrapper .dt-buttons .btn-secondary { background-color: #262c49 !important; } body.dark-layout .dataTables_wrapper .table.dataTable { border: 0; } body.dark-layout .dataTables_wrapper .table.dataTable tbody td, body.dark-layout .dataTables_wrapper .table.dataTable tbody th, body.dark-layout .dataTables_wrapper .table.dataTable thead td, body.dark-layout .dataTables_wrapper .table.dataTable thead th { border: 0; color: #c2c6dc; } body.dark-layout .dataTables_wrapper .table.dataTable tfoot tr th { color: #c2c6dc; } body.dark-layout .dataTables_wrapper .table.dataTable tr.group td { background-color: #212744; color: #fff; } body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers tbody tr:nth-of-type(even), body.dark-layout .dataTables_wrapper .table.dataTable.table-striped tbody tr:nth-of-type(even) { background-color: #262c49; } body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers tfoot tr th, body.dark-layout .dataTables_wrapper .table.dataTable.table-striped tfoot tr th { border: 0; } body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers { border: 1px solid #414561; } body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers thead th, body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers thead td, body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers tfoot th, body.dark-layout .dataTables_wrapper .table.dataTable.complex-headers tfoot td { border-bottom: 1px solid #414561; border-right: 1px solid #414561; } body.dark-layout .dt-button-info { background-color: #262c49; } body.dark-layout .dt-button-info h2 { background-color: #262c49; } body.dark-layout .dt-button-info div { color: #c2c6dc; } body.dark-layout .ag-grid-btns .filter-btn { background-color: transparent !important; } body.dark-layout .ag-grid-btns .filter-btn:focus { color: #c2c6dc !important; } body.dark-layout .ag-grid-btns .filter-btn:hover { box-shadow: none; color: #c2c6dc !important; } body.dark-layout .aggrid, body.dark-layout .ag-header { background-color: #10163a; color: #c2c6dc; border-color: #414561; } body.dark-layout .aggrid .ag-row-hover, body.dark-layout .aggrid .ag-row-selected, body.dark-layout .ag-header .ag-row-hover, body.dark-layout .ag-header .ag-row-selected { background-color: #262c49 !important; } body.dark-layout .aggrid .ag-icon, body.dark-layout .ag-header .ag-icon { color: #c2c6dc; } body.dark-layout .aggrid .ag-icon.ag-icon-checkbox-checked, body.dark-layout .aggrid .ag-icon.ag-icon-checkbox-indeterminate, body.dark-layout .ag-header .ag-icon.ag-icon-checkbox-checked, body.dark-layout .ag-header .ag-icon.ag-icon-checkbox-indeterminate { color: #7367f0; } body.dark-layout .aggrid .ag-header-cell, body.dark-layout .aggrid .ag-cell, body.dark-layout .aggrid .ag-row, body.dark-layout .aggrid .ag-pinned-left-header, body.dark-layout .aggrid .ag-pinned-left-cols-container, body.dark-layout .aggrid .ag-horizontal-left-spacer, body.dark-layout .aggrid .ag-paging-panel, body.dark-layout .aggrid .ag-floating-filter-input, body.dark-layout .ag-header .ag-header-cell, body.dark-layout .ag-header .ag-cell, body.dark-layout .ag-header .ag-row, body.dark-layout .ag-header .ag-pinned-left-header, body.dark-layout .ag-header .ag-pinned-left-cols-container, body.dark-layout .ag-header .ag-horizontal-left-spacer, body.dark-layout .ag-header .ag-paging-panel, body.dark-layout .ag-header .ag-floating-filter-input { border-color: #414561 !important; color: #c2c6dc; } body.dark-layout .aggrid .ag-popup .ag-menu, body.dark-layout .ag-header .ag-popup .ag-menu { background-color: #262c49; } body.dark-layout .aggrid .ag-popup .ag-menu .ag-filter-filter, body.dark-layout .aggrid .ag-popup .ag-menu .ag-filter-select, body.dark-layout .ag-header .ag-popup .ag-menu .ag-filter-filter, body.dark-layout .ag-header .ag-popup .ag-menu .ag-filter-select { background-color: transparent; border-color: #414561; color: #c2c6dc; } body.dark-layout .aggrid .ag-popup .ag-menu .ag-filter-filter::placeholder, body.dark-layout .aggrid .ag-popup .ag-menu .ag-filter-select::placeholder, body.dark-layout .ag-header .ag-popup .ag-menu .ag-filter-filter::placeholder, body.dark-layout .ag-header .ag-popup .ag-menu .ag-filter-select::placeholder { color: #c2c6dc; } body.dark-layout .aggrid .ag-popup .ag-menu .ag-filter-select option, body.dark-layout .ag-header .ag-popup .ag-menu .ag-filter-select option { background-color: #262c49; } body.dark-layout .aggrid .ag-paging-panel .ag-disabled, body.dark-layout .ag-header .ag-paging-panel .ag-disabled { background-color: #373f6d; } body.dark-layout .aggrid .ag-paging-panel .ag-disabled .ag-icon, body.dark-layout .ag-header .ag-paging-panel .ag-disabled .ag-icon { color: #c2c6dc !important; } body.dark-layout .aggrid .ag-paging-panel span[ref="lbTotal"], body.dark-layout .ag-header .ag-paging-panel span[ref="lbTotal"] { background-color: #373f6d; color: #c2c6dc !important; } body.dark-layout .aggrid ::-webkit-scrollbar-track, body.dark-layout .ag-header ::-webkit-scrollbar-track { background: #262c49; } body.dark-layout .aggrid ::-webkit-scrollbar-thumb, body.dark-layout .ag-header ::-webkit-scrollbar-thumb { background: #7367f0; } body.dark-layout .bg-authentication { background-color: #eff2f7; } body.dark-layout .bg-authentication .form-group.row, body.dark-layout .bg-authentication .card-footer { background-color: #10163a; } body.dark-layout .bg-authentication .form-group.row .btn-facebook span, body.dark-layout .bg-authentication .form-group.row .btn-twitter span, body.dark-layout .bg-authentication .card-footer .btn-facebook span, body.dark-layout .bg-authentication .card-footer .btn-twitter span { color: #fff; } body.dark-layout .getting-started .clockCard p { color: #c2c6dc !important; } body.dark-layout #user-profile .profile-header .profile-header-nav { background-color: #10163a; } body.dark-layout #search-website .search-bar .form-control { background-color: #10163a; } body.dark-layout #search-website .search-menu .search-filter { background-color: #10163a; color: #c2c6dc; } body.dark-layout #search-website .search-result-info .dropdown-toggle { color: #c2c6dc; } body.dark-layout #search-website .search-pagination .pagination .page-item { background-color: #10163a; } body.dark-layout #search-website .search-pagination .pagination .page-item.active .page-link { background-color: #7367f0; } body.dark-layout #search-website .search-pagination .pagination .page-item .page-link { background-color: #10163a; } body.dark-layout .faq .accordion .collapse-margin { background-color: #10163a; } body.dark-layout .faq .accordion .collapse-title { color: #ebeefd; } body.dark-layout .faq-bg .card-body .card-text, body.dark-layout .knowledge-base-bg .card-body .card-text { color: #fff; } body.dark-layout .search-content .card .card-body .text-dark { color: #c2c6dc !important; } body.dark-layout .knowledge-base-category .list-group .list-group-item, body.dark-layout .knowledge-base-question .list-group .list-group-item { color: #7367f0; } body.dark-layout .invoice-items-table .table-borderless, body.dark-layout .invoice-total-table .table-borderless { border: 0; } body.dark-layout .invoice-print .form-control { background-color: #10163a; } body.dark-layout .apexcharts-canvas .apexcharts-gridlines-horizontal .apexcharts-gridline { stroke: #414561; } body.dark-layout .apexcharts-canvas .apexcharts-tooltip.light, body.dark-layout .apexcharts-canvas .apexcharts-yaxistooltip, body.dark-layout .apexcharts-canvas .apexcharts-xaxistooltip { background-color: #212744; border-color: #262c49; } body.dark-layout .apexcharts-canvas .apexcharts-tooltip.light .apexcharts-tooltip-title, body.dark-layout .apexcharts-canvas .apexcharts-tooltip.light .apexcharts-tooltip-text, body.dark-layout .apexcharts-canvas .apexcharts-yaxistooltip .apexcharts-tooltip-title, body.dark-layout .apexcharts-canvas .apexcharts-yaxistooltip .apexcharts-tooltip-text, body.dark-layout .apexcharts-canvas .apexcharts-xaxistooltip .apexcharts-tooltip-title, body.dark-layout .apexcharts-canvas .apexcharts-xaxistooltip .apexcharts-tooltip-text { background-color: #212744; color: #c2c6dc; } body.dark-layout .apexcharts-canvas .apexcharts-tooltip.dark .apexcharts-tooltip-text .apexcharts-tooltip-text-label, body.dark-layout .apexcharts-canvas .apexcharts-tooltip.dark .apexcharts-tooltip-text .apexcharts-tooltip-text-value { color: #fff; } body.dark-layout .apexcharts-canvas .apexcharts-xaxistooltip-bottom:before { border-bottom-color: transparent; } body.dark-layout .apexcharts-canvas .apexcharts-xaxistooltip-bottom:after { border-bottom-color: #262c49; } body.dark-layout .apexcharts-canvas .apexcharts-yaxistooltip-left:before { border-left-color: transparent; } body.dark-layout .apexcharts-canvas .apexcharts-yaxistooltip-left:after { border-left-color: #262c49; } body.dark-layout .apexcharts-canvas text { fill: #fff !important; } body.dark-layout .apexcharts-canvas .apexcharts-legend-series .apexcharts-legend-text { color: #c2c6dc !important; } body.dark-layout .apexcharts-canvas .apexcharts-radialbar-track path { stroke: #262c49; } body.dark-layout .apexcharts-canvas .apexcharts-inner polygon { stroke: #212744 !important; fill: #262c49 !important; } body.dark-layout .apexcharts-canvas .apexcharts-pie-series path { stroke: #262c49; } body.dark-layout .apexcharts-canvas .apexcharts-menu { background-color: #262c49; border: 0; } body.dark-layout .apexcharts-canvas .apexcharts-toolbar .apexcharts-zoom-in-icon:hover svg, body.dark-layout .apexcharts-canvas .apexcharts-toolbar .apexcharts-zoom-out-icon:hover svg, body.dark-layout .apexcharts-canvas .apexcharts-toolbar .apexcharts-zoom-icon:hover svg, body.dark-layout .apexcharts-canvas .apexcharts-toolbar .apexcharts-menu-icon:hover svg, body.dark-layout .apexcharts-canvas .apexcharts-toolbar .apexcharts-reset-zoom-icon:hover svg { fill: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper { border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-sidebar { background-color: #262c49; } body.dark-layout.email-application .app-content .content-area-wrapper .app-fixed-search { background-color: #10163a; border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .app-fixed-search .form-control { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .app-fixed-search .form-control::placeholder { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .app-fixed-search .form-control:focus ~ .form-control-position i { color: #7367f0; } body.dark-layout.email-application .app-content .content-area-wrapper .app-fixed-search .form-control-position i { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list-wrapper { border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list-wrapper .app-action { border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-messages .list-group-item, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-labels .list-group-item { background: #262c49; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-messages .list-group-item.active, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-messages .list-group-item.active:hover, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-labels .list-group-item.active, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-labels .list-group-item.active:hover { color: #7367f0; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-messages .list-group-item:hover, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-menu .sidebar-menu-list .list-group-labels .list-group-item:hover { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .app-action .action-right .list-inline-item .dropdown-toggle { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media { border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media:hover { box-shadow: 0 0 0 0 #1e1e1e; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media { background-color: #262c49; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .user-details p, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .user-details .list-group-item-text, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .mail-message p, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .mail-message .list-group-item-text, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .user-details p, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .user-details .list-group-item-text, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .mail-message p, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .mail-message .list-group-item-text { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .user-details .mail-meta-item .mail-date, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read .mail-message .mail-meta-item .mail-date, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .user-details .mail-meta-item .mail-date, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .media .mail-message .mail-meta-item .mail-date { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-list .email-user-list .mail-read { background-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-details.show { background-color: #212744; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-details .email-detail-header { background-color: #10163a; border-color: #414561; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-details .email-detail-header .email-header-right .list-inline-item .dropdown-toggle { color: #c2c6dc; } body.dark-layout.email-application .app-content .content-area-wrapper .email-app-details .mail-message-wrapper, body.dark-layout.email-application .app-content .content-area-wrapper .email-app-details .email-detail-head { border-color: #414561 !important; } body.dark-layout.chat-application .content-area-wrapper { border-color: #414561; } body.dark-layout.chat-application .sidebar .chat-profile-sidebar { background-color: #262c49; border-color: #343661; } body.dark-layout.chat-application .sidebar .sidebar-content { background-color: #262c49; border-color: #414561; } body.dark-layout.chat-application .sidebar .sidebar-content .chat-fixed-search { border-color: #414561; } body.dark-layout.chat-application .sidebar .sidebar-content .chat-fixed-search .form-control { background-color: #10163a; border-color: #414561; } body.dark-layout.chat-application .sidebar .sidebar-content .chat-user-list .chat-users-list-wrapper li { border-color: #414561; } body.dark-layout.chat-application .sidebar .sidebar-content .chat-user-list .chat-users-list-wrapper li:not(.active):hover { background: #10163a; } body.dark-layout.chat-application .sidebar .sidebar-content .chat-user-list .chat-users-list-wrapper li.active .contact-info p { color: #fff; } body.dark-layout.chat-application .content-right .chat-app-window .start-chat-area { background-color: #171e49; } body.dark-layout.chat-application .content-right .chat-app-window .start-chat-area .start-chat-icon, body.dark-layout.chat-application .content-right .chat-app-window .start-chat-area .start-chat-text { background: #262c49; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .user-chats { background-color: #171e49; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .user-chats .chat-left .chat-content { border: 1px solid #414561; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .user-chats .chat-left .chat-content p { color: #c2c6dc; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .user-chats .chat-content p { color: #fff; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .user-chats .chat-content { background-color: #262c49; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .chat-app-form { background-color: #10163a; } body.dark-layout.chat-application .content-right .chat-app-window .active-chat .chat-app-form .form-control { background-color: #343661; } body.dark-layout.chat-application .content-right .user-profile-sidebar { background-color: #262c49; border-color: #343661; } body.dark-layout.todo-application .content-area-wrapper { border-color: #414561; } body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-sidebar { background-color: #262c49; } body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-sidebar .list-group-filters .list-group-item, body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-sidebar .list-group-labels .list-group-item { background-color: #262c49; } body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-sidebar .list-group-filters .list-group-item:hover, body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-sidebar .list-group-labels .list-group-item:hover { color: #c2c6dc; } body.dark-layout.todo-application .content-area-wrapper .sidebar .todo-form .todo-item-action { color: #c2c6dc; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-app-list-wrapper { border-color: #414561; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .app-fixed-search { background-color: #10163a; border-color: #414561; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item { border-color: #414561; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item:hover { box-shadow: none; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item .chip { background-color: #10163a; } body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item .todo-item-action .todo-item-favorite:not(.warning) i, body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item .todo-item-action .todo-item-delete i, body.dark-layout.todo-application .content-area-wrapper .todo-app-area .todo-task-list .todo-item .todo-item-action .todo-item-info:not(.success) i { color: #c2c6dc; } body.dark-layout.ecommerce-application .sidebar-left .sidebar-shop .filter-heading { color: #c2c6dc; } body.dark-layout.ecommerce-application .sidebar-left .sidebar-shop .price-slider .range-slider { background-color: #262c49; } body.dark-layout.ecommerce-application .sidebar-left .sidebar-shop .ratings-list li, body.dark-layout.ecommerce-application .sidebar-left .sidebar-shop .ratings-list ~ .stars-received { color: #c2c6dc; } body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .result-toggler .search-results, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .result-toggler .search-results { color: #c2c6dc; } body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .result-toggler .shop-sidebar-toggler i, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .result-toggler .shop-sidebar-toggler i { color: #c2c6dc; } body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .view-options .select2 .select2-selection, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .view-options .select2 .select2-selection { background-color: #10163a; } body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .view-options .view-btn-option .grid-view-btn, body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .view-options .view-btn-option .list-view-btn, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .view-options .view-btn-option .grid-view-btn, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .view-options .view-btn-option .list-view-btn { background-color: #10163a !important; } body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .view-options .view-btn-option .grid-view-btn:not(.active) i, body.dark-layout.ecommerce-application .content-right .ecommerce-header-items .view-options .view-btn-option .list-view-btn:not(.active) i, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .view-options .view-btn-option .grid-view-btn:not(.active) i, body.dark-layout.ecommerce-application .content-body .ecommerce-header-items .view-options .view-btn-option .list-view-btn:not(.active) i { color: #c2c6dc; } body.dark-layout.ecommerce-application .content-right .search-product, body.dark-layout.ecommerce-application .content-body .search-product { background-color: #10163a; } body.dark-layout.ecommerce-application .content-right .grid-view .ecommerce-card .card-body, body.dark-layout.ecommerce-application .content-right .list-view .ecommerce-card .card-body, body.dark-layout.ecommerce-application .content-body .grid-view .ecommerce-card .card-body, body.dark-layout.ecommerce-application .content-body .list-view .ecommerce-card .card-body { border-color: #414561; } body.dark-layout.ecommerce-application .content-right .grid-view .ecommerce-card .item-img, body.dark-layout.ecommerce-application .content-right .list-view .ecommerce-card .item-img, body.dark-layout.ecommerce-application .content-body .grid-view .ecommerce-card .item-img, body.dark-layout.ecommerce-application .content-body .list-view .ecommerce-card .item-img { background-color: #fff; } body.dark-layout.ecommerce-application .content-right .grid-view .ecommerce-card .item-name, body.dark-layout.ecommerce-application .content-right .list-view .ecommerce-card .item-name, body.dark-layout.ecommerce-application .content-body .grid-view .ecommerce-card .item-name, body.dark-layout.ecommerce-application .content-body .list-view .ecommerce-card .item-name { color: #fff; } body.dark-layout.ecommerce-application .content-right .grid-view .ecommerce-card .item-options .wishlist span, body.dark-layout.ecommerce-application .content-right .list-view .ecommerce-card .item-options .wishlist span, body.dark-layout.ecommerce-application .content-body .grid-view .ecommerce-card .item-options .wishlist span, body.dark-layout.ecommerce-application .content-body .list-view .ecommerce-card .item-options .wishlist span { color: #2c2c2c; } body.dark-layout.ecommerce-application .content-right .grid-view .ecommerce-card .item-options .cart span, body.dark-layout.ecommerce-application .content-right .list-view .ecommerce-card .item-options .cart span, body.dark-layout.ecommerce-application .content-body .grid-view .ecommerce-card .item-options .cart span, body.dark-layout.ecommerce-application .content-body .list-view .ecommerce-card .item-options .cart span { color: #fff; } body.dark-layout.ecommerce-application .content-right .pagination .page-item, body.dark-layout.ecommerce-application .content-body .pagination .page-item { background-color: #10163a; } body.dark-layout.ecommerce-application .content-right .pagination .page-item.active, body.dark-layout.ecommerce-application .content-body .pagination .page-item.active { background-color: #10163a; } body.dark-layout.ecommerce-application .content-right .pagination .page-item.active .page-link, body.dark-layout.ecommerce-application .content-body .pagination .page-item.active .page-link { background-color: #7367f0; } body.dark-layout.ecommerce-application .content-right .pagination .page-item .page-link, body.dark-layout.ecommerce-application .content-body .pagination .page-item .page-link { background-color: #10163a; } body.dark-layout.ecommerce-application .wishlist-items .ecommerce-card .move-cart .move-to-cart { color: #fff; } body.dark-layout.ecommerce-application .product-checkout .checkout-options .detail-total { color: #c2c6dc; } body.dark-layout.ecommerce-application .item-features { background-color: #171e49; } body.dark-layout .fc .fc-header-toolbar .fc-button span { color: #fff; } body.dark-layout .fc .fc-view-container .fc-body .fc-week table tbody .fc-other-month { background-color: #6a6d83; } body.dark-layout .fc .fc-divider { background: #262c49; } body.dark-layout .fc .fc-widget-content, body.dark-layout .fc .fc-widget-header { border-color: #414561; } body.dark-layout .noUi-target { background-color: #262c49; } body.dark-layout .swal2-container .swal2-modal { background-color: #262c49; } body.dark-layout .swal2-container .swal2-modal .swal2-header { background-color: #262c49; } body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-title { color: #c2c6dc; } body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-icon-text { color: inherit; } body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-success-circular-line-left, body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-success-circular-line-right, body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-success-fix, body.dark-layout .swal2-container .swal2-modal .swal2-header .swal2-animate-success-icon { background-color: #262c49 !important; } body.dark-layout .swal2-container .swal2-modal .swal2-content { color: #c2c6dc; } body.dark-layout .swal2-container .swal2-modal .swal2-content pre, body.dark-layout .swal2-container .swal2-modal .swal2-content code, body.dark-layout .swal2-container .swal2-modal .swal2-content .swal2-input { background-color: #10163a; } body.dark-layout .swal2-container .swal2-modal .swal2-content .swal2-input { color: #fff; } body.dark-layout .toast-container .toast.toast-info { background-color: #00cfe8; } body.dark-layout .toast-container .toast.toast-success { background-color: #28c76f; } body.dark-layout .toast-container .toast.toast-error { background-color: #ea5455; } body.dark-layout .toast-container .toast.toast-warning { background-color: #ff9f43; } body.dark-layout .dropzone { background-color: #262c49; } body.dark-layout .quill-toolbar, body.dark-layout .ql-toolbar { border-color: #414561; } body.dark-layout .quill-toolbar .ql-formats .ql-picker-label, body.dark-layout .ql-toolbar .ql-formats .ql-picker-label { color: #fff; } body.dark-layout .quill-toolbar .ql-formats .ql-stroke, body.dark-layout .quill-toolbar .ql-formats .ql-fill, body.dark-layout .ql-toolbar .ql-formats .ql-stroke, body.dark-layout .ql-toolbar .ql-formats .ql-fill { stroke: #fff; } body.dark-layout .quill-toolbar .ql-formats .ql-fill, body.dark-layout .ql-toolbar .ql-formats .ql-fill { fill: #fff; } body.dark-layout .quill-toolbar .ql-header.ql-expanded .ql-picker-options, body.dark-layout .ql-toolbar .ql-header.ql-expanded .ql-picker-options { background-color: #10163a; } body.dark-layout .quill-toolbar .ql-header.ql-expanded .ql-picker-options span:not(:hover), body.dark-layout .ql-toolbar .ql-header.ql-expanded .ql-picker-options span:not(:hover) { color: #fff; } body.dark-layout .ql-container { border-color: #414561; } body.dark-layout .ql-editor .ql-syntax { background-color: #262c49; } body.dark-layout .ql-editor.ql-blank:before { color: #c2c6dc; } body.dark-layout .shepherd-content .shepherd-text p { color: #fff; } body.dark-layout .context-menu-list .context-menu-item.context-menu-hover span { color: #fff; } body.dark-layout .context-menu-list .context-menu-item.context-menu-hover .context-menu-list .context-menu-item span { color: #c2c6dc; } body.dark-layout .swiper-slide { background-color: #262c49 !important; } body.dark-layout .customizer { background-color: #262c49; } body.dark-layout .customizer .customizer-close i { color: #c2c6dc; } body.dark-layout.fixed-footer .footer { background-color: #10163a; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav .dropdown-submenu.show { background-color: #10163a !important; color: #c2c6dc; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav .dropdown-menu a:hover { color: #c2c6dc !important; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav li.active i, body.dark-layout.horizontal-layout .main-menu-content .navbar-nav li.active span { color: #fff !important; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav li.active .dropdown-menu li.active a { background-color: #10163a !important; color: #c2c6dc; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav li.active .dropdown-menu li:not(.active) a { background-color: #262c49 !important; } body.dark-layout.horizontal-layout .main-menu-content .navbar-nav li.active .dropdown-menu li.open.active > a { color: #c2c6dc !important; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu .navigation > li ul .active { box-shadow: none; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu .navigation > li ul .active .hover > a { background-color: transparent; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu .nav-item.active a { box-shadow: none; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu .nav-item.active ul li.active { border-radius: 0; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu .nav-item.active.sidebar-group-active .open ul li.active a { background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7)) !important; margin-bottom: 7px; box-shadow: 0px 0px 6px 1px rgba(115, 103, 240, 0.6) !important; color: #fff; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu ul li { background: #10163a !important; background-color: #10163a !important; } body.dark-layout.horizontal-layout.vertical-overlay-menu .main-menu ul li a { color: #c2c6dc !important; } ================================================ FILE: public/backend/css/themes/semi-dark-layout.css ================================================ /*======================================================== DARK LAYOUT =========================================================*/ body.semi-dark-layout { /************ Main Menu **************/ } body.semi-dark-layout .main-menu { background-color: #10163a; } body.semi-dark-layout .main-menu .shadow-bottom { background: linear-gradient(180deg, #0f1642 44%, rgba(15, 22, 66, 0.51) 73%, rgba(44, 48, 60, 0)); } body.semi-dark-layout .main-menu:not(.expanded) .navigation .sidebar-group-active a { background-color: #262c49; } body.semi-dark-layout .main-menu-content .navigation-main { background-color: #10163a; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item i { color: #c2c6dc; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item.open a { background-color: #262c49; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item a:after, body.semi-dark-layout .main-menu-content .navigation-main .nav-item a { color: #c2c6dc; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item .menu-content { background-color: #10163a; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item .menu-content .active .menu-item { color: #fff; } body.semi-dark-layout .main-menu-content .navigation-main .nav-item .menu-content li:not(.active) a { background-color: #10163a; } body.semi-dark-layout .main-menu-content .navigation-main .active .menu-title, body.semi-dark-layout .main-menu-content .navigation-main .active i { color: #fff; } body.semi-dark-layout .main-menu-content .navigation-main .sidebar-group-active a { background: #10163a; border-radius: 4px; } body.semi-dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content { background-color: #10163a; } body.semi-dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content .active { z-index: 1; } body.semi-dark-layout .main-menu-content .navigation-main .sidebar-group-active .menu-content .active a { background-color: transparent; } body.semi-dark-layout.menu-collapsed .main-menu:not(.expanded) .navigation-main li.active a { background: #262c49 !important; } ================================================ FILE: public/backend/fonts/feather/iconfont.css ================================================ @font-face { font-family: "feather"; src: url('fonts/feather.eot?t=1525787366991'); /* IE9*/ src: url('fonts/feather.eot?t=1525787366991#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('fonts/feather.woff?t=1525787366991') format('woff'), /* chrome, firefox */ url('fonts/feather.ttf?t=1525787366991') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('fonts/feather.svg?t=1525787366991#feather') format('svg'); /* iOS 4.1- */ } .feather { /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'feather' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-alert-octagon:before { content: "\e81b"; } .icon-alert-circle:before { content: "\e81c"; } .icon-activity:before { content: "\e81d"; } .icon-alert-triangle:before { content: "\e81e"; } .icon-align-center:before { content: "\e81f"; } .icon-airplay:before { content: "\e820"; } .icon-align-justify:before { content: "\e821"; } .icon-align-left:before { content: "\e822"; } .icon-align-right:before { content: "\e823"; } .icon-arrow-down-left:before { content: "\e824"; } .icon-arrow-down-right:before { content: "\e825"; } .icon-anchor:before { content: "\e826"; } .icon-aperture:before { content: "\e827"; } .icon-arrow-left:before { content: "\e828"; } .icon-arrow-right:before { content: "\e829"; } .icon-arrow-down:before { content: "\e82a"; } .icon-arrow-up-left:before { content: "\e82b"; } .icon-arrow-up-right:before { content: "\e82c"; } .icon-arrow-up:before { content: "\e82d"; } .icon-award:before { content: "\e82e"; } .icon-bar-chart:before { content: "\e82f"; } .icon-at-sign:before { content: "\e830"; } .icon-bar-chart-2:before { content: "\e831"; } .icon-battery-charging:before { content: "\e832"; } .icon-bell-off:before { content: "\e833"; } .icon-battery:before { content: "\e834"; } .icon-bluetooth:before { content: "\e835"; } .icon-bell:before { content: "\e836"; } .icon-book:before { content: "\e837"; } .icon-briefcase:before { content: "\e838"; } .icon-camera-off:before { content: "\e839"; } .icon-calendar:before { content: "\e83a"; } .icon-bookmark:before { content: "\e83b"; } .icon-box:before { content: "\e83c"; } .icon-camera:before { content: "\e83d"; } .icon-check-circle:before { content: "\e83e"; } .icon-check:before { content: "\e83f"; } .icon-check-square:before { content: "\e840"; } .icon-cast:before { content: "\e841"; } .icon-chevron-down:before { content: "\e842"; } .icon-chevron-left:before { content: "\e843"; } .icon-chevron-right:before { content: "\e844"; } .icon-chevron-up:before { content: "\e845"; } .icon-chevrons-down:before { content: "\e846"; } .icon-chevrons-right:before { content: "\e847"; } .icon-chevrons-up:before { content: "\e848"; } .icon-chevrons-left:before { content: "\e849"; } .icon-circle:before { content: "\e84a"; } .icon-clipboard:before { content: "\e84b"; } .icon-chrome:before { content: "\e84c"; } .icon-clock:before { content: "\e84d"; } .icon-cloud-lightning:before { content: "\e84e"; } .icon-cloud-drizzle:before { content: "\e84f"; } .icon-cloud-rain:before { content: "\e850"; } .icon-cloud-off:before { content: "\e851"; } .icon-codepen:before { content: "\e852"; } .icon-cloud-snow:before { content: "\e853"; } .icon-compass:before { content: "\e854"; } .icon-copy:before { content: "\e855"; } .icon-corner-down-right:before { content: "\e856"; } .icon-corner-down-left:before { content: "\e857"; } .icon-corner-left-down:before { content: "\e858"; } .icon-corner-left-up:before { content: "\e859"; } .icon-corner-up-left:before { content: "\e85a"; } .icon-corner-up-right:before { content: "\e85b"; } .icon-corner-right-down:before { content: "\e85c"; } .icon-corner-right-up:before { content: "\e85d"; } .icon-cpu:before { content: "\e85e"; } .icon-credit-card:before { content: "\e85f"; } .icon-crosshair:before { content: "\e860"; } .icon-disc:before { content: "\e861"; } .icon-delete:before { content: "\e862"; } .icon-download-cloud:before { content: "\e863"; } .icon-download:before { content: "\e864"; } .icon-droplet:before { content: "\e865"; } .icon-edit-2:before { content: "\e866"; } .icon-edit:before { content: "\e867"; } .icon-edit-1:before { content: "\e868"; } .icon-external-link:before { content: "\e869"; } .icon-eye:before { content: "\e86a"; } .icon-feather:before { content: "\e86b"; } .icon-facebook:before { content: "\e86c"; } .icon-file-minus:before { content: "\e86d"; } .icon-eye-off:before { content: "\e86e"; } .icon-fast-forward:before { content: "\e86f"; } .icon-file-text:before { content: "\e870"; } .icon-film:before { content: "\e871"; } .icon-file:before { content: "\e872"; } .icon-file-plus:before { content: "\e873"; } .icon-folder:before { content: "\e874"; } .icon-filter:before { content: "\e875"; } .icon-flag:before { content: "\e876"; } .icon-globe:before { content: "\e877"; } .icon-grid:before { content: "\e878"; } .icon-heart:before { content: "\e879"; } .icon-home:before { content: "\e87a"; } .icon-github:before { content: "\e87b"; } .icon-image:before { content: "\e87c"; } .icon-inbox:before { content: "\e87d"; } .icon-layers:before { content: "\e87e"; } .icon-info:before { content: "\e87f"; } .icon-instagram:before { content: "\e880"; } .icon-layout:before { content: "\e881"; } .icon-link-2:before { content: "\e882"; } .icon-life-buoy:before { content: "\e883"; } .icon-link:before { content: "\e884"; } .icon-log-in:before { content: "\e885"; } .icon-list:before { content: "\e886"; } .icon-lock:before { content: "\e887"; } .icon-log-out:before { content: "\e888"; } .icon-loader:before { content: "\e889"; } .icon-mail:before { content: "\e88a"; } .icon-maximize-2:before { content: "\e88b"; } .icon-map:before { content: "\e88c"; } .icon-map-pin:before { content: "\e88e"; } .icon-menu:before { content: "\e88f"; } .icon-message-circle:before { content: "\e890"; } .icon-message-square:before { content: "\e891"; } .icon-minimize-2:before { content: "\e892"; } .icon-mic-off:before { content: "\e893"; } .icon-minus-circle:before { content: "\e894"; } .icon-mic:before { content: "\e895"; } .icon-minus-square:before { content: "\e896"; } .icon-minus:before { content: "\e897"; } .icon-moon:before { content: "\e898"; } .icon-monitor:before { content: "\e899"; } .icon-more-vertical:before { content: "\e89a"; } .icon-more-horizontal:before { content: "\e89b"; } .icon-move:before { content: "\e89c"; } .icon-music:before { content: "\e89d"; } .icon-navigation-2:before { content: "\e89e"; } .icon-navigation:before { content: "\e89f"; } .icon-octagon:before { content: "\e8a0"; } .icon-package:before { content: "\e8a1"; } .icon-pause-circle:before { content: "\e8a2"; } .icon-pause:before { content: "\e8a3"; } .icon-percent:before { content: "\e8a4"; } .icon-phone-call:before { content: "\e8a5"; } .icon-phone-forwarded:before { content: "\e8a6"; } .icon-phone-missed:before { content: "\e8a7"; } .icon-phone-off:before { content: "\e8a8"; } .icon-phone-incoming:before { content: "\e8a9"; } .icon-phone:before { content: "\e8aa"; } .icon-phone-outgoing:before { content: "\e8ab"; } .icon-pie-chart:before { content: "\e8ac"; } .icon-play-circle:before { content: "\e8ad"; } .icon-play:before { content: "\e8ae"; } .icon-plus-square:before { content: "\e8af"; } .icon-plus-circle:before { content: "\e8b0"; } .icon-plus:before { content: "\e8b1"; } .icon-pocket:before { content: "\e8b2"; } .icon-printer:before { content: "\e8b3"; } .icon-power:before { content: "\e8b4"; } .icon-radio:before { content: "\e8b5"; } .icon-repeat:before { content: "\e8b6"; } .icon-refresh-ccw:before { content: "\e8b7"; } .icon-rewind:before { content: "\e8b8"; } .icon-rotate-ccw:before { content: "\e8b9"; } .icon-refresh-cw:before { content: "\e8ba"; } .icon-rotate-cw:before { content: "\e8bb"; } .icon-save:before { content: "\e8bc"; } .icon-search:before { content: "\e8bd"; } .icon-server:before { content: "\e8be"; } .icon-scissors:before { content: "\e8bf"; } .icon-share-2:before { content: "\e8c0"; } .icon-share:before { content: "\e8c1"; } .icon-shield:before { content: "\e8c2"; } .icon-settings:before { content: "\e8c3"; } .icon-skip-back:before { content: "\e8c4"; } .icon-shuffle:before { content: "\e8c5"; } .icon-sidebar:before { content: "\e8c6"; } .icon-skip-forward:before { content: "\e8c7"; } .icon-slack:before { content: "\e8c8"; } .icon-slash:before { content: "\e8c9"; } .icon-smartphone:before { content: "\e8ca"; } .icon-square:before { content: "\e8cb"; } .icon-speaker:before { content: "\e8cc"; } .icon-star:before { content: "\e8cd"; } .icon-stop-circle:before { content: "\e8ce"; } .icon-sun:before { content: "\e8cf"; } .icon-sunrise:before { content: "\e8d0"; } .icon-tablet:before { content: "\e8d1"; } .icon-tag:before { content: "\e8d2"; } .icon-sunset:before { content: "\e8d3"; } .icon-target:before { content: "\e8d4"; } .icon-thermometer:before { content: "\e8d5"; } .icon-thumbs-up:before { content: "\e8d6"; } .icon-thumbs-down:before { content: "\e8d7"; } .icon-toggle-left:before { content: "\e8d8"; } .icon-toggle-right:before { content: "\e8d9"; } .icon-trash-2:before { content: "\e8da"; } .icon-trash:before { content: "\e8db"; } .icon-trending-up:before { content: "\e8dc"; } .icon-trending-down:before { content: "\e8dd"; } .icon-triangle:before { content: "\e8de"; } .icon-type:before { content: "\e8df"; } .icon-twitter:before { content: "\e8e0"; } .icon-upload:before { content: "\e8e1"; } .icon-umbrella:before { content: "\e8e2"; } .icon-upload-cloud:before { content: "\e8e3"; } .icon-unlock:before { content: "\e8e4"; } .icon-user-check:before { content: "\e8e5"; } .icon-user-minus:before { content: "\e8e6"; } .icon-user-plus:before { content: "\e8e7"; } .icon-user-x:before { content: "\e8e8"; } .icon-user:before { content: "\e8e9"; } .icon-users:before { content: "\e8ea"; } .icon-video-off:before { content: "\e8eb"; } .icon-video:before { content: "\e8ec"; } .icon-voicemail:before { content: "\e8ed"; } .icon-volume-x:before { content: "\e8ee"; } .icon-volume-2:before { content: "\e8ef"; } .icon-volume-1:before { content: "\e8f0"; } .icon-volume:before { content: "\e8f1"; } .icon-watch:before { content: "\e8f2"; } .icon-wifi:before { content: "\e8f3"; } .icon-x-square:before { content: "\e8f4"; } .icon-wind:before { content: "\e8f5"; } .icon-x:before { content: "\e8f6"; } .icon-x-circle:before { content: "\e8f7"; } .icon-zap:before { content: "\e8f8"; } .icon-zoom-in:before { content: "\e8f9"; } .icon-zoom-out:before { content: "\e8fa"; } .icon-command:before { content: "\e8fb"; } .icon-cloud:before { content: "\e8fc"; } .icon-hash:before { content: "\e8fd"; } .icon-headphones:before { content: "\e8fe"; } .icon-underline:before { content: "\e8ff"; } .icon-italic:before { content: "\e900"; } .icon-bold:before { content: "\e901"; } .icon-crop:before { content: "\e902"; } .icon-help-circle:before { content: "\e903"; } .icon-paperclip:before { content: "\e904"; } .icon-shopping-cart:before { content: "\e905"; } .icon-tv:before { content: "\e906"; } .icon-wifi-off:before { content: "\e907"; } .icon-minimize:before { content: "\e88d"; } .icon-maximize:before { content: "\e908"; } .icon-gitlab:before { content: "\e909"; } .icon-sliders:before { content: "\e90a"; } .icon-star-on:before { content: "\e90b"; } .icon-heart-on:before { content: "\e90c"; } .icon-archive:before { content: "\e90d"; } .icon-arrow-down-circle:before { content: "\e90e"; } .icon-arrow-up-circle:before { content: "\e90f"; } .icon-arrow-left-circle:before { content: "\e910"; } .icon-arrow-right-circle:before { content: "\e911"; } .icon-bar-chart-line-:before { content: "\e912"; } .icon-bar-chart-line:before { content: "\e913"; } .icon-book-open:before { content: "\e914"; } .icon-code:before { content: "\e915"; } .icon-database:before { content: "\e916"; } .icon-dollar-sign:before { content: "\e917"; } .icon-folder-plus:before { content: "\e918"; } .icon-gift:before { content: "\e919"; } .icon-folder-minus:before { content: "\e91a"; } .icon-git-commit:before { content: "\e91b"; } .icon-git-branch:before { content: "\e91c"; } .icon-git-pull-request:before { content: "\e91d"; } .icon-git-merge:before { content: "\e91e"; } .icon-linkedin:before { content: "\e91f"; } .icon-hard-drive:before { content: "\e920"; } .icon-more-vertical-:before { content: "\e921"; } .icon-more-horizontal-:before { content: "\e922"; } .icon-rss:before { content: "\e923"; } .icon-send:before { content: "\e924"; } .icon-shield-off:before { content: "\e925"; } .icon-shopping-bag:before { content: "\e926"; } .icon-terminal:before { content: "\e927"; } .icon-truck:before { content: "\e928"; } .icon-zap-off:before { content: "\e929"; } .icon-youtube:before { content: "\e92a"; } ================================================ FILE: public/backend/fonts/flag-icon-css/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2013 Panayiotis Lipiridis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: public/backend/fonts/flag-icon-css/README.md ================================================ flag-icon-css ============= [![npm version](https://badge.fury.io/js/flag-icon-css.svg)](https://badge.fury.io/js/flag-icon-css) [![Bower version](https://badge.fury.io/bo/flag-icon-css.svg)](https://badge.fury.io/bo/flag-icon-css) A collection of all country flags in SVG — plus the CSS for easier integration. See the [demo](http://lipis.github.io/flag-icon-css/). Usage ----- For using the flags inline with text add the classes `.flag-icon` and `.flag-icon-xx` (where `xx` is the [ISO 3166-1-alpha-2 code](http://www.iso.org/iso/country_names_and_code_elements) of a country) to an empty ``. If you want to have a squared version flag then add the class `flag-icon-squared` as well. Example: ```html ``` You could also apply this to any element, but in that case you'll have to use the `flag-icon-background` instead of `flag-icon` and you're set. This will add the correct background with the following CSS properties: ```css background-size: contain; background-position: 50%; background-repeat: no-repeat; ``` Which means that the flag is just going to appear in the middle of an element, so you will have to set manually the correct size of 4 by 3 ratio or if it's squared add also the `flag-icon-squared` class. Development ----------- Run the `npm install` to install the dependencies after cloning the project and you'll be able to: To watch for changes and live reload if served ```bash $ grunt ``` To build `*.less` files ```bash $ grunt build ``` To serve it on `localhost:8000` ```bash $ grunt connect ``` To have only specific countries in the css file, remove the ones that you don't need from the [`flag-icon-list.less`](https://github.com/lipis/flag-icon-css/blob/master/less/flag-icon-list.less) file and build it again. Credits ------- This project wouldn't exist without the awesome and now deleted collection of SVG flags by [koppi](https://github.com/koppi). ================================================ FILE: public/backend/fonts/flag-icon-css/css/flag-icon.css ================================================ .flag-icon-background { background-size: contain; background-position: 50%; background-repeat: no-repeat; } .flag-icon { background-size: contain; background-position: 50%; background-repeat: no-repeat; position: relative; display: inline-block; width: 1.33333333em; line-height: 1em; } .flag-icon:before { content: "\00a0"; } .flag-icon.flag-icon-squared { width: 1em; } .flag-icon-ad { background-image: url(../flags/4x3/ad.svg); } .flag-icon-ad.flag-icon-squared { background-image: url(../flags/1x1/ad.svg); } .flag-icon-ae { background-image: url(../flags/4x3/ae.svg); } .flag-icon-ae.flag-icon-squared { background-image: url(../flags/1x1/ae.svg); } .flag-icon-af { background-image: url(../flags/4x3/af.svg); } .flag-icon-af.flag-icon-squared { background-image: url(../flags/1x1/af.svg); } .flag-icon-ag { background-image: url(../flags/4x3/ag.svg); } .flag-icon-ag.flag-icon-squared { background-image: url(../flags/1x1/ag.svg); } .flag-icon-ai { background-image: url(../flags/4x3/ai.svg); } .flag-icon-ai.flag-icon-squared { background-image: url(../flags/1x1/ai.svg); } .flag-icon-al { background-image: url(../flags/4x3/al.svg); } .flag-icon-al.flag-icon-squared { background-image: url(../flags/1x1/al.svg); } .flag-icon-am { background-image: url(../flags/4x3/am.svg); } .flag-icon-am.flag-icon-squared { background-image: url(../flags/1x1/am.svg); } .flag-icon-ao { background-image: url(../flags/4x3/ao.svg); } .flag-icon-ao.flag-icon-squared { background-image: url(../flags/1x1/ao.svg); } .flag-icon-aq { background-image: url(../flags/4x3/aq.svg); } .flag-icon-aq.flag-icon-squared { background-image: url(../flags/1x1/aq.svg); } .flag-icon-ar { background-image: url(../flags/4x3/ar.svg); } .flag-icon-ar.flag-icon-squared { background-image: url(../flags/1x1/ar.svg); } .flag-icon-as { background-image: url(../flags/4x3/as.svg); } .flag-icon-as.flag-icon-squared { background-image: url(../flags/1x1/as.svg); } .flag-icon-at { background-image: url(../flags/4x3/at.svg); } .flag-icon-at.flag-icon-squared { background-image: url(../flags/1x1/at.svg); } .flag-icon-au { background-image: url(../flags/4x3/au.svg); } .flag-icon-au.flag-icon-squared { background-image: url(../flags/1x1/au.svg); } .flag-icon-aw { background-image: url(../flags/4x3/aw.svg); } .flag-icon-aw.flag-icon-squared { background-image: url(../flags/1x1/aw.svg); } .flag-icon-ax { background-image: url(../flags/4x3/ax.svg); } .flag-icon-ax.flag-icon-squared { background-image: url(../flags/1x1/ax.svg); } .flag-icon-az { background-image: url(../flags/4x3/az.svg); } .flag-icon-az.flag-icon-squared { background-image: url(../flags/1x1/az.svg); } .flag-icon-ba { background-image: url(../flags/4x3/ba.svg); } .flag-icon-ba.flag-icon-squared { background-image: url(../flags/1x1/ba.svg); } .flag-icon-bb { background-image: url(../flags/4x3/bb.svg); } .flag-icon-bb.flag-icon-squared { background-image: url(../flags/1x1/bb.svg); } .flag-icon-bd { background-image: url(../flags/4x3/bd.svg); } .flag-icon-bd.flag-icon-squared { background-image: url(../flags/1x1/bd.svg); } .flag-icon-be { background-image: url(../flags/4x3/be.svg); } .flag-icon-be.flag-icon-squared { background-image: url(../flags/1x1/be.svg); } .flag-icon-bf { background-image: url(../flags/4x3/bf.svg); } .flag-icon-bf.flag-icon-squared { background-image: url(../flags/1x1/bf.svg); } .flag-icon-bg { background-image: url(../flags/4x3/bg.svg); } .flag-icon-bg.flag-icon-squared { background-image: url(../flags/1x1/bg.svg); } .flag-icon-bh { background-image: url(../flags/4x3/bh.svg); } .flag-icon-bh.flag-icon-squared { background-image: url(../flags/1x1/bh.svg); } .flag-icon-bi { background-image: url(../flags/4x3/bi.svg); } .flag-icon-bi.flag-icon-squared { background-image: url(../flags/1x1/bi.svg); } .flag-icon-bj { background-image: url(../flags/4x3/bj.svg); } .flag-icon-bj.flag-icon-squared { background-image: url(../flags/1x1/bj.svg); } .flag-icon-bl { background-image: url(../flags/4x3/bl.svg); } .flag-icon-bl.flag-icon-squared { background-image: url(../flags/1x1/bl.svg); } .flag-icon-bm { background-image: url(../flags/4x3/bm.svg); } .flag-icon-bm.flag-icon-squared { background-image: url(../flags/1x1/bm.svg); } .flag-icon-bn { background-image: url(../flags/4x3/bn.svg); } .flag-icon-bn.flag-icon-squared { background-image: url(../flags/1x1/bn.svg); } .flag-icon-bo { background-image: url(../flags/4x3/bo.svg); } .flag-icon-bo.flag-icon-squared { background-image: url(../flags/1x1/bo.svg); } .flag-icon-bq { background-image: url(../flags/4x3/bq.svg); } .flag-icon-bq.flag-icon-squared { background-image: url(../flags/1x1/bq.svg); } .flag-icon-br { background-image: url(../flags/4x3/br.svg); } .flag-icon-br.flag-icon-squared { background-image: url(../flags/1x1/br.svg); } .flag-icon-bs { background-image: url(../flags/4x3/bs.svg); } .flag-icon-bs.flag-icon-squared { background-image: url(../flags/1x1/bs.svg); } .flag-icon-bt { background-image: url(../flags/4x3/bt.svg); } .flag-icon-bt.flag-icon-squared { background-image: url(../flags/1x1/bt.svg); } .flag-icon-bv { background-image: url(../flags/4x3/bv.svg); } .flag-icon-bv.flag-icon-squared { background-image: url(../flags/1x1/bv.svg); } .flag-icon-bw { background-image: url(../flags/4x3/bw.svg); } .flag-icon-bw.flag-icon-squared { background-image: url(../flags/1x1/bw.svg); } .flag-icon-by { background-image: url(../flags/4x3/by.svg); } .flag-icon-by.flag-icon-squared { background-image: url(../flags/1x1/by.svg); } .flag-icon-bz { background-image: url(../flags/4x3/bz.svg); } .flag-icon-bz.flag-icon-squared { background-image: url(../flags/1x1/bz.svg); } .flag-icon-ca { background-image: url(../flags/4x3/ca.svg); } .flag-icon-ca.flag-icon-squared { background-image: url(../flags/1x1/ca.svg); } .flag-icon-cc { background-image: url(../flags/4x3/cc.svg); } .flag-icon-cc.flag-icon-squared { background-image: url(../flags/1x1/cc.svg); } .flag-icon-cd { background-image: url(../flags/4x3/cd.svg); } .flag-icon-cd.flag-icon-squared { background-image: url(../flags/1x1/cd.svg); } .flag-icon-cf { background-image: url(../flags/4x3/cf.svg); } .flag-icon-cf.flag-icon-squared { background-image: url(../flags/1x1/cf.svg); } .flag-icon-cg { background-image: url(../flags/4x3/cg.svg); } .flag-icon-cg.flag-icon-squared { background-image: url(../flags/1x1/cg.svg); } .flag-icon-ch { background-image: url(../flags/4x3/ch.svg); } .flag-icon-ch.flag-icon-squared { background-image: url(../flags/1x1/ch.svg); } .flag-icon-ci { background-image: url(../flags/4x3/ci.svg); } .flag-icon-ci.flag-icon-squared { background-image: url(../flags/1x1/ci.svg); } .flag-icon-ck { background-image: url(../flags/4x3/ck.svg); } .flag-icon-ck.flag-icon-squared { background-image: url(../flags/1x1/ck.svg); } .flag-icon-cl { background-image: url(../flags/4x3/cl.svg); } .flag-icon-cl.flag-icon-squared { background-image: url(../flags/1x1/cl.svg); } .flag-icon-cm { background-image: url(../flags/4x3/cm.svg); } .flag-icon-cm.flag-icon-squared { background-image: url(../flags/1x1/cm.svg); } .flag-icon-cn { background-image: url(../flags/4x3/cn.svg); } .flag-icon-cn.flag-icon-squared { background-image: url(../flags/1x1/cn.svg); } .flag-icon-co { background-image: url(../flags/4x3/co.svg); } .flag-icon-co.flag-icon-squared { background-image: url(../flags/1x1/co.svg); } .flag-icon-cr { background-image: url(../flags/4x3/cr.svg); } .flag-icon-cr.flag-icon-squared { background-image: url(../flags/1x1/cr.svg); } .flag-icon-cu { background-image: url(../flags/4x3/cu.svg); } .flag-icon-cu.flag-icon-squared { background-image: url(../flags/1x1/cu.svg); } .flag-icon-cv { background-image: url(../flags/4x3/cv.svg); } .flag-icon-cv.flag-icon-squared { background-image: url(../flags/1x1/cv.svg); } .flag-icon-cw { background-image: url(../flags/4x3/cw.svg); } .flag-icon-cw.flag-icon-squared { background-image: url(../flags/1x1/cw.svg); } .flag-icon-cx { background-image: url(../flags/4x3/cx.svg); } .flag-icon-cx.flag-icon-squared { background-image: url(../flags/1x1/cx.svg); } .flag-icon-cy { background-image: url(../flags/4x3/cy.svg); } .flag-icon-cy.flag-icon-squared { background-image: url(../flags/1x1/cy.svg); } .flag-icon-cz { background-image: url(../flags/4x3/cz.svg); } .flag-icon-cz.flag-icon-squared { background-image: url(../flags/1x1/cz.svg); } .flag-icon-de { background-image: url(../flags/4x3/de.svg); } .flag-icon-de.flag-icon-squared { background-image: url(../flags/1x1/de.svg); } .flag-icon-dj { background-image: url(../flags/4x3/dj.svg); } .flag-icon-dj.flag-icon-squared { background-image: url(../flags/1x1/dj.svg); } .flag-icon-dk { background-image: url(../flags/4x3/dk.svg); } .flag-icon-dk.flag-icon-squared { background-image: url(../flags/1x1/dk.svg); } .flag-icon-dm { background-image: url(../flags/4x3/dm.svg); } .flag-icon-dm.flag-icon-squared { background-image: url(../flags/1x1/dm.svg); } .flag-icon-do { background-image: url(../flags/4x3/do.svg); } .flag-icon-do.flag-icon-squared { background-image: url(../flags/1x1/do.svg); } .flag-icon-dz { background-image: url(../flags/4x3/dz.svg); } .flag-icon-dz.flag-icon-squared { background-image: url(../flags/1x1/dz.svg); } .flag-icon-ec { background-image: url(../flags/4x3/ec.svg); } .flag-icon-ec.flag-icon-squared { background-image: url(../flags/1x1/ec.svg); } .flag-icon-ee { background-image: url(../flags/4x3/ee.svg); } .flag-icon-ee.flag-icon-squared { background-image: url(../flags/1x1/ee.svg); } .flag-icon-eg { background-image: url(../flags/4x3/eg.svg); } .flag-icon-eg.flag-icon-squared { background-image: url(../flags/1x1/eg.svg); } .flag-icon-eh { background-image: url(../flags/4x3/eh.svg); } .flag-icon-eh.flag-icon-squared { background-image: url(../flags/1x1/eh.svg); } .flag-icon-er { background-image: url(../flags/4x3/er.svg); } .flag-icon-er.flag-icon-squared { background-image: url(../flags/1x1/er.svg); } .flag-icon-es { background-image: url(../flags/4x3/es.svg); } .flag-icon-es.flag-icon-squared { background-image: url(../flags/1x1/es.svg); } .flag-icon-et { background-image: url(../flags/4x3/et.svg); } .flag-icon-et.flag-icon-squared { background-image: url(../flags/1x1/et.svg); } .flag-icon-fi { background-image: url(../flags/4x3/fi.svg); } .flag-icon-fi.flag-icon-squared { background-image: url(../flags/1x1/fi.svg); } .flag-icon-fj { background-image: url(../flags/4x3/fj.svg); } .flag-icon-fj.flag-icon-squared { background-image: url(../flags/1x1/fj.svg); } .flag-icon-fk { background-image: url(../flags/4x3/fk.svg); } .flag-icon-fk.flag-icon-squared { background-image: url(../flags/1x1/fk.svg); } .flag-icon-fm { background-image: url(../flags/4x3/fm.svg); } .flag-icon-fm.flag-icon-squared { background-image: url(../flags/1x1/fm.svg); } .flag-icon-fo { background-image: url(../flags/4x3/fo.svg); } .flag-icon-fo.flag-icon-squared { background-image: url(../flags/1x1/fo.svg); } .flag-icon-fr { background-image: url(../flags/4x3/fr.svg); } .flag-icon-fr.flag-icon-squared { background-image: url(../flags/1x1/fr.svg); } .flag-icon-ga { background-image: url(../flags/4x3/ga.svg); } .flag-icon-ga.flag-icon-squared { background-image: url(../flags/1x1/ga.svg); } .flag-icon-gb { background-image: url(../flags/4x3/gb.svg); } .flag-icon-gb.flag-icon-squared { background-image: url(../flags/1x1/gb.svg); } .flag-icon-gd { background-image: url(../flags/4x3/gd.svg); } .flag-icon-gd.flag-icon-squared { background-image: url(../flags/1x1/gd.svg); } .flag-icon-ge { background-image: url(../flags/4x3/ge.svg); } .flag-icon-ge.flag-icon-squared { background-image: url(../flags/1x1/ge.svg); } .flag-icon-gf { background-image: url(../flags/4x3/gf.svg); } .flag-icon-gf.flag-icon-squared { background-image: url(../flags/1x1/gf.svg); } .flag-icon-gg { background-image: url(../flags/4x3/gg.svg); } .flag-icon-gg.flag-icon-squared { background-image: url(../flags/1x1/gg.svg); } .flag-icon-gh { background-image: url(../flags/4x3/gh.svg); } .flag-icon-gh.flag-icon-squared { background-image: url(../flags/1x1/gh.svg); } .flag-icon-gi { background-image: url(../flags/4x3/gi.svg); } .flag-icon-gi.flag-icon-squared { background-image: url(../flags/1x1/gi.svg); } .flag-icon-gl { background-image: url(../flags/4x3/gl.svg); } .flag-icon-gl.flag-icon-squared { background-image: url(../flags/1x1/gl.svg); } .flag-icon-gm { background-image: url(../flags/4x3/gm.svg); } .flag-icon-gm.flag-icon-squared { background-image: url(../flags/1x1/gm.svg); } .flag-icon-gn { background-image: url(../flags/4x3/gn.svg); } .flag-icon-gn.flag-icon-squared { background-image: url(../flags/1x1/gn.svg); } .flag-icon-gp { background-image: url(../flags/4x3/gp.svg); } .flag-icon-gp.flag-icon-squared { background-image: url(../flags/1x1/gp.svg); } .flag-icon-gq { background-image: url(../flags/4x3/gq.svg); } .flag-icon-gq.flag-icon-squared { background-image: url(../flags/1x1/gq.svg); } .flag-icon-gr { background-image: url(../flags/4x3/gr.svg); } .flag-icon-gr.flag-icon-squared { background-image: url(../flags/1x1/gr.svg); } .flag-icon-gs { background-image: url(../flags/4x3/gs.svg); } .flag-icon-gs.flag-icon-squared { background-image: url(../flags/1x1/gs.svg); } .flag-icon-gt { background-image: url(../flags/4x3/gt.svg); } .flag-icon-gt.flag-icon-squared { background-image: url(../flags/1x1/gt.svg); } .flag-icon-gu { background-image: url(../flags/4x3/gu.svg); } .flag-icon-gu.flag-icon-squared { background-image: url(../flags/1x1/gu.svg); } .flag-icon-gw { background-image: url(../flags/4x3/gw.svg); } .flag-icon-gw.flag-icon-squared { background-image: url(../flags/1x1/gw.svg); } .flag-icon-gy { background-image: url(../flags/4x3/gy.svg); } .flag-icon-gy.flag-icon-squared { background-image: url(../flags/1x1/gy.svg); } .flag-icon-hk { background-image: url(../flags/4x3/hk.svg); } .flag-icon-hk.flag-icon-squared { background-image: url(../flags/1x1/hk.svg); } .flag-icon-hm { background-image: url(../flags/4x3/hm.svg); } .flag-icon-hm.flag-icon-squared { background-image: url(../flags/1x1/hm.svg); } .flag-icon-hn { background-image: url(../flags/4x3/hn.svg); } .flag-icon-hn.flag-icon-squared { background-image: url(../flags/1x1/hn.svg); } .flag-icon-hr { background-image: url(../flags/4x3/hr.svg); } .flag-icon-hr.flag-icon-squared { background-image: url(../flags/1x1/hr.svg); } .flag-icon-ht { background-image: url(../flags/4x3/ht.svg); } .flag-icon-ht.flag-icon-squared { background-image: url(../flags/1x1/ht.svg); } .flag-icon-hu { background-image: url(../flags/4x3/hu.svg); } .flag-icon-hu.flag-icon-squared { background-image: url(../flags/1x1/hu.svg); } .flag-icon-id { background-image: url(../flags/4x3/id.svg); } .flag-icon-id.flag-icon-squared { background-image: url(../flags/1x1/id.svg); } .flag-icon-ie { background-image: url(../flags/4x3/ie.svg); } .flag-icon-ie.flag-icon-squared { background-image: url(../flags/1x1/ie.svg); } .flag-icon-il { background-image: url(../flags/4x3/il.svg); } .flag-icon-il.flag-icon-squared { background-image: url(../flags/1x1/il.svg); } .flag-icon-im { background-image: url(../flags/4x3/im.svg); } .flag-icon-im.flag-icon-squared { background-image: url(../flags/1x1/im.svg); } .flag-icon-in { background-image: url(../flags/4x3/in.svg); } .flag-icon-in.flag-icon-squared { background-image: url(../flags/1x1/in.svg); } .flag-icon-io { background-image: url(../flags/4x3/io.svg); } .flag-icon-io.flag-icon-squared { background-image: url(../flags/1x1/io.svg); } .flag-icon-iq { background-image: url(../flags/4x3/iq.svg); } .flag-icon-iq.flag-icon-squared { background-image: url(../flags/1x1/iq.svg); } .flag-icon-ir { background-image: url(../flags/4x3/ir.svg); } .flag-icon-ir.flag-icon-squared { background-image: url(../flags/1x1/ir.svg); } .flag-icon-is { background-image: url(../flags/4x3/is.svg); } .flag-icon-is.flag-icon-squared { background-image: url(../flags/1x1/is.svg); } .flag-icon-it { background-image: url(../flags/4x3/it.svg); } .flag-icon-it.flag-icon-squared { background-image: url(../flags/1x1/it.svg); } .flag-icon-je { background-image: url(../flags/4x3/je.svg); } .flag-icon-je.flag-icon-squared { background-image: url(../flags/1x1/je.svg); } .flag-icon-jm { background-image: url(../flags/4x3/jm.svg); } .flag-icon-jm.flag-icon-squared { background-image: url(../flags/1x1/jm.svg); } .flag-icon-jo { background-image: url(../flags/4x3/jo.svg); } .flag-icon-jo.flag-icon-squared { background-image: url(../flags/1x1/jo.svg); } .flag-icon-jp { background-image: url(../flags/4x3/jp.svg); } .flag-icon-jp.flag-icon-squared { background-image: url(../flags/1x1/jp.svg); } .flag-icon-ke { background-image: url(../flags/4x3/ke.svg); } .flag-icon-ke.flag-icon-squared { background-image: url(../flags/1x1/ke.svg); } .flag-icon-kg { background-image: url(../flags/4x3/kg.svg); } .flag-icon-kg.flag-icon-squared { background-image: url(../flags/1x1/kg.svg); } .flag-icon-kh { background-image: url(../flags/4x3/kh.svg); } .flag-icon-kh.flag-icon-squared { background-image: url(../flags/1x1/kh.svg); } .flag-icon-ki { background-image: url(../flags/4x3/ki.svg); } .flag-icon-ki.flag-icon-squared { background-image: url(../flags/1x1/ki.svg); } .flag-icon-km { background-image: url(../flags/4x3/km.svg); } .flag-icon-km.flag-icon-squared { background-image: url(../flags/1x1/km.svg); } .flag-icon-kn { background-image: url(../flags/4x3/kn.svg); } .flag-icon-kn.flag-icon-squared { background-image: url(../flags/1x1/kn.svg); } .flag-icon-kp { background-image: url(../flags/4x3/kp.svg); } .flag-icon-kp.flag-icon-squared { background-image: url(../flags/1x1/kp.svg); } .flag-icon-kr { background-image: url(../flags/4x3/kr.svg); } .flag-icon-kr.flag-icon-squared { background-image: url(../flags/1x1/kr.svg); } .flag-icon-kw { background-image: url(../flags/4x3/kw.svg); } .flag-icon-kw.flag-icon-squared { background-image: url(../flags/1x1/kw.svg); } .flag-icon-ky { background-image: url(../flags/4x3/ky.svg); } .flag-icon-ky.flag-icon-squared { background-image: url(../flags/1x1/ky.svg); } .flag-icon-kz { background-image: url(../flags/4x3/kz.svg); } .flag-icon-kz.flag-icon-squared { background-image: url(../flags/1x1/kz.svg); } .flag-icon-la { background-image: url(../flags/4x3/la.svg); } .flag-icon-la.flag-icon-squared { background-image: url(../flags/1x1/la.svg); } .flag-icon-lb { background-image: url(../flags/4x3/lb.svg); } .flag-icon-lb.flag-icon-squared { background-image: url(../flags/1x1/lb.svg); } .flag-icon-lc { background-image: url(../flags/4x3/lc.svg); } .flag-icon-lc.flag-icon-squared { background-image: url(../flags/1x1/lc.svg); } .flag-icon-li { background-image: url(../flags/4x3/li.svg); } .flag-icon-li.flag-icon-squared { background-image: url(../flags/1x1/li.svg); } .flag-icon-lk { background-image: url(../flags/4x3/lk.svg); } .flag-icon-lk.flag-icon-squared { background-image: url(../flags/1x1/lk.svg); } .flag-icon-lr { background-image: url(../flags/4x3/lr.svg); } .flag-icon-lr.flag-icon-squared { background-image: url(../flags/1x1/lr.svg); } .flag-icon-ls { background-image: url(../flags/4x3/ls.svg); } .flag-icon-ls.flag-icon-squared { background-image: url(../flags/1x1/ls.svg); } .flag-icon-lt { background-image: url(../flags/4x3/lt.svg); } .flag-icon-lt.flag-icon-squared { background-image: url(../flags/1x1/lt.svg); } .flag-icon-lu { background-image: url(../flags/4x3/lu.svg); } .flag-icon-lu.flag-icon-squared { background-image: url(../flags/1x1/lu.svg); } .flag-icon-lv { background-image: url(../flags/4x3/lv.svg); } .flag-icon-lv.flag-icon-squared { background-image: url(../flags/1x1/lv.svg); } .flag-icon-ly { background-image: url(../flags/4x3/ly.svg); } .flag-icon-ly.flag-icon-squared { background-image: url(../flags/1x1/ly.svg); } .flag-icon-ma { background-image: url(../flags/4x3/ma.svg); } .flag-icon-ma.flag-icon-squared { background-image: url(../flags/1x1/ma.svg); } .flag-icon-mc { background-image: url(../flags/4x3/mc.svg); } .flag-icon-mc.flag-icon-squared { background-image: url(../flags/1x1/mc.svg); } .flag-icon-md { background-image: url(../flags/4x3/md.svg); } .flag-icon-md.flag-icon-squared { background-image: url(../flags/1x1/md.svg); } .flag-icon-me { background-image: url(../flags/4x3/me.svg); } .flag-icon-me.flag-icon-squared { background-image: url(../flags/1x1/me.svg); } .flag-icon-mf { background-image: url(../flags/4x3/mf.svg); } .flag-icon-mf.flag-icon-squared { background-image: url(../flags/1x1/mf.svg); } .flag-icon-mg { background-image: url(../flags/4x3/mg.svg); } .flag-icon-mg.flag-icon-squared { background-image: url(../flags/1x1/mg.svg); } .flag-icon-mh { background-image: url(../flags/4x3/mh.svg); } .flag-icon-mh.flag-icon-squared { background-image: url(../flags/1x1/mh.svg); } .flag-icon-mk { background-image: url(../flags/4x3/mk.svg); } .flag-icon-mk.flag-icon-squared { background-image: url(../flags/1x1/mk.svg); } .flag-icon-ml { background-image: url(../flags/4x3/ml.svg); } .flag-icon-ml.flag-icon-squared { background-image: url(../flags/1x1/ml.svg); } .flag-icon-mm { background-image: url(../flags/4x3/mm.svg); } .flag-icon-mm.flag-icon-squared { background-image: url(../flags/1x1/mm.svg); } .flag-icon-mn { background-image: url(../flags/4x3/mn.svg); } .flag-icon-mn.flag-icon-squared { background-image: url(../flags/1x1/mn.svg); } .flag-icon-mo { background-image: url(../flags/4x3/mo.svg); } .flag-icon-mo.flag-icon-squared { background-image: url(../flags/1x1/mo.svg); } .flag-icon-mp { background-image: url(../flags/4x3/mp.svg); } .flag-icon-mp.flag-icon-squared { background-image: url(../flags/1x1/mp.svg); } .flag-icon-mq { background-image: url(../flags/4x3/mq.svg); } .flag-icon-mq.flag-icon-squared { background-image: url(../flags/1x1/mq.svg); } .flag-icon-mr { background-image: url(../flags/4x3/mr.svg); } .flag-icon-mr.flag-icon-squared { background-image: url(../flags/1x1/mr.svg); } .flag-icon-ms { background-image: url(../flags/4x3/ms.svg); } .flag-icon-ms.flag-icon-squared { background-image: url(../flags/1x1/ms.svg); } .flag-icon-mt { background-image: url(../flags/4x3/mt.svg); } .flag-icon-mt.flag-icon-squared { background-image: url(../flags/1x1/mt.svg); } .flag-icon-mu { background-image: url(../flags/4x3/mu.svg); } .flag-icon-mu.flag-icon-squared { background-image: url(../flags/1x1/mu.svg); } .flag-icon-mv { background-image: url(../flags/4x3/mv.svg); } .flag-icon-mv.flag-icon-squared { background-image: url(../flags/1x1/mv.svg); } .flag-icon-mw { background-image: url(../flags/4x3/mw.svg); } .flag-icon-mw.flag-icon-squared { background-image: url(../flags/1x1/mw.svg); } .flag-icon-mx { background-image: url(../flags/4x3/mx.svg); } .flag-icon-mx.flag-icon-squared { background-image: url(../flags/1x1/mx.svg); } .flag-icon-my { background-image: url(../flags/4x3/my.svg); } .flag-icon-my.flag-icon-squared { background-image: url(../flags/1x1/my.svg); } .flag-icon-mz { background-image: url(../flags/4x3/mz.svg); } .flag-icon-mz.flag-icon-squared { background-image: url(../flags/1x1/mz.svg); } .flag-icon-na { background-image: url(../flags/4x3/na.svg); } .flag-icon-na.flag-icon-squared { background-image: url(../flags/1x1/na.svg); } .flag-icon-nc { background-image: url(../flags/4x3/nc.svg); } .flag-icon-nc.flag-icon-squared { background-image: url(../flags/1x1/nc.svg); } .flag-icon-ne { background-image: url(../flags/4x3/ne.svg); } .flag-icon-ne.flag-icon-squared { background-image: url(../flags/1x1/ne.svg); } .flag-icon-nf { background-image: url(../flags/4x3/nf.svg); } .flag-icon-nf.flag-icon-squared { background-image: url(../flags/1x1/nf.svg); } .flag-icon-ng { background-image: url(../flags/4x3/ng.svg); } .flag-icon-ng.flag-icon-squared { background-image: url(../flags/1x1/ng.svg); } .flag-icon-ni { background-image: url(../flags/4x3/ni.svg); } .flag-icon-ni.flag-icon-squared { background-image: url(../flags/1x1/ni.svg); } .flag-icon-nl { background-image: url(../flags/4x3/nl.svg); } .flag-icon-nl.flag-icon-squared { background-image: url(../flags/1x1/nl.svg); } .flag-icon-no { background-image: url(../flags/4x3/no.svg); } .flag-icon-no.flag-icon-squared { background-image: url(../flags/1x1/no.svg); } .flag-icon-np { background-image: url(../flags/4x3/np.svg); } .flag-icon-np.flag-icon-squared { background-image: url(../flags/1x1/np.svg); } .flag-icon-nr { background-image: url(../flags/4x3/nr.svg); } .flag-icon-nr.flag-icon-squared { background-image: url(../flags/1x1/nr.svg); } .flag-icon-nu { background-image: url(../flags/4x3/nu.svg); } .flag-icon-nu.flag-icon-squared { background-image: url(../flags/1x1/nu.svg); } .flag-icon-nz { background-image: url(../flags/4x3/nz.svg); } .flag-icon-nz.flag-icon-squared { background-image: url(../flags/1x1/nz.svg); } .flag-icon-om { background-image: url(../flags/4x3/om.svg); } .flag-icon-om.flag-icon-squared { background-image: url(../flags/1x1/om.svg); } .flag-icon-pa { background-image: url(../flags/4x3/pa.svg); } .flag-icon-pa.flag-icon-squared { background-image: url(../flags/1x1/pa.svg); } .flag-icon-pe { background-image: url(../flags/4x3/pe.svg); } .flag-icon-pe.flag-icon-squared { background-image: url(../flags/1x1/pe.svg); } .flag-icon-pf { background-image: url(../flags/4x3/pf.svg); } .flag-icon-pf.flag-icon-squared { background-image: url(../flags/1x1/pf.svg); } .flag-icon-pg { background-image: url(../flags/4x3/pg.svg); } .flag-icon-pg.flag-icon-squared { background-image: url(../flags/1x1/pg.svg); } .flag-icon-ph { background-image: url(../flags/4x3/ph.svg); } .flag-icon-ph.flag-icon-squared { background-image: url(../flags/1x1/ph.svg); } .flag-icon-pk { background-image: url(../flags/4x3/pk.svg); } .flag-icon-pk.flag-icon-squared { background-image: url(../flags/1x1/pk.svg); } .flag-icon-pl { background-image: url(../flags/4x3/pl.svg); } .flag-icon-pl.flag-icon-squared { background-image: url(../flags/1x1/pl.svg); } .flag-icon-pm { background-image: url(../flags/4x3/pm.svg); } .flag-icon-pm.flag-icon-squared { background-image: url(../flags/1x1/pm.svg); } .flag-icon-pn { background-image: url(../flags/4x3/pn.svg); } .flag-icon-pn.flag-icon-squared { background-image: url(../flags/1x1/pn.svg); } .flag-icon-pr { background-image: url(../flags/4x3/pr.svg); } .flag-icon-pr.flag-icon-squared { background-image: url(../flags/1x1/pr.svg); } .flag-icon-ps { background-image: url(../flags/4x3/ps.svg); } .flag-icon-ps.flag-icon-squared { background-image: url(../flags/1x1/ps.svg); } .flag-icon-pt { background-image: url(../flags/4x3/pt.svg); } .flag-icon-pt.flag-icon-squared { background-image: url(../flags/1x1/pt.svg); } .flag-icon-pw { background-image: url(../flags/4x3/pw.svg); } .flag-icon-pw.flag-icon-squared { background-image: url(../flags/1x1/pw.svg); } .flag-icon-py { background-image: url(../flags/4x3/py.svg); } .flag-icon-py.flag-icon-squared { background-image: url(../flags/1x1/py.svg); } .flag-icon-qa { background-image: url(../flags/4x3/qa.svg); } .flag-icon-qa.flag-icon-squared { background-image: url(../flags/1x1/qa.svg); } .flag-icon-re { background-image: url(../flags/4x3/re.svg); } .flag-icon-re.flag-icon-squared { background-image: url(../flags/1x1/re.svg); } .flag-icon-ro { background-image: url(../flags/4x3/ro.svg); } .flag-icon-ro.flag-icon-squared { background-image: url(../flags/1x1/ro.svg); } .flag-icon-rs { background-image: url(../flags/4x3/rs.svg); } .flag-icon-rs.flag-icon-squared { background-image: url(../flags/1x1/rs.svg); } .flag-icon-ru { background-image: url(../flags/4x3/ru.svg); } .flag-icon-ru.flag-icon-squared { background-image: url(../flags/1x1/ru.svg); } .flag-icon-rw { background-image: url(../flags/4x3/rw.svg); } .flag-icon-rw.flag-icon-squared { background-image: url(../flags/1x1/rw.svg); } .flag-icon-sa { background-image: url(../flags/4x3/sa.svg); } .flag-icon-sa.flag-icon-squared { background-image: url(../flags/1x1/sa.svg); } .flag-icon-sb { background-image: url(../flags/4x3/sb.svg); } .flag-icon-sb.flag-icon-squared { background-image: url(../flags/1x1/sb.svg); } .flag-icon-sc { background-image: url(../flags/4x3/sc.svg); } .flag-icon-sc.flag-icon-squared { background-image: url(../flags/1x1/sc.svg); } .flag-icon-sd { background-image: url(../flags/4x3/sd.svg); } .flag-icon-sd.flag-icon-squared { background-image: url(../flags/1x1/sd.svg); } .flag-icon-se { background-image: url(../flags/4x3/se.svg); } .flag-icon-se.flag-icon-squared { background-image: url(../flags/1x1/se.svg); } .flag-icon-sg { background-image: url(../flags/4x3/sg.svg); } .flag-icon-sg.flag-icon-squared { background-image: url(../flags/1x1/sg.svg); } .flag-icon-sh { background-image: url(../flags/4x3/sh.svg); } .flag-icon-sh.flag-icon-squared { background-image: url(../flags/1x1/sh.svg); } .flag-icon-si { background-image: url(../flags/4x3/si.svg); } .flag-icon-si.flag-icon-squared { background-image: url(../flags/1x1/si.svg); } .flag-icon-sj { background-image: url(../flags/4x3/sj.svg); } .flag-icon-sj.flag-icon-squared { background-image: url(../flags/1x1/sj.svg); } .flag-icon-sk { background-image: url(../flags/4x3/sk.svg); } .flag-icon-sk.flag-icon-squared { background-image: url(../flags/1x1/sk.svg); } .flag-icon-sl { background-image: url(../flags/4x3/sl.svg); } .flag-icon-sl.flag-icon-squared { background-image: url(../flags/1x1/sl.svg); } .flag-icon-sm { background-image: url(../flags/4x3/sm.svg); } .flag-icon-sm.flag-icon-squared { background-image: url(../flags/1x1/sm.svg); } .flag-icon-sn { background-image: url(../flags/4x3/sn.svg); } .flag-icon-sn.flag-icon-squared { background-image: url(../flags/1x1/sn.svg); } .flag-icon-so { background-image: url(../flags/4x3/so.svg); } .flag-icon-so.flag-icon-squared { background-image: url(../flags/1x1/so.svg); } .flag-icon-sr { background-image: url(../flags/4x3/sr.svg); } .flag-icon-sr.flag-icon-squared { background-image: url(../flags/1x1/sr.svg); } .flag-icon-ss { background-image: url(../flags/4x3/ss.svg); } .flag-icon-ss.flag-icon-squared { background-image: url(../flags/1x1/ss.svg); } .flag-icon-st { background-image: url(../flags/4x3/st.svg); } .flag-icon-st.flag-icon-squared { background-image: url(../flags/1x1/st.svg); } .flag-icon-sv { background-image: url(../flags/4x3/sv.svg); } .flag-icon-sv.flag-icon-squared { background-image: url(../flags/1x1/sv.svg); } .flag-icon-sx { background-image: url(../flags/4x3/sx.svg); } .flag-icon-sx.flag-icon-squared { background-image: url(../flags/1x1/sx.svg); } .flag-icon-sy { background-image: url(../flags/4x3/sy.svg); } .flag-icon-sy.flag-icon-squared { background-image: url(../flags/1x1/sy.svg); } .flag-icon-sz { background-image: url(../flags/4x3/sz.svg); } .flag-icon-sz.flag-icon-squared { background-image: url(../flags/1x1/sz.svg); } .flag-icon-tc { background-image: url(../flags/4x3/tc.svg); } .flag-icon-tc.flag-icon-squared { background-image: url(../flags/1x1/tc.svg); } .flag-icon-td { background-image: url(../flags/4x3/td.svg); } .flag-icon-td.flag-icon-squared { background-image: url(../flags/1x1/td.svg); } .flag-icon-tf { background-image: url(../flags/4x3/tf.svg); } .flag-icon-tf.flag-icon-squared { background-image: url(../flags/1x1/tf.svg); } .flag-icon-tg { background-image: url(../flags/4x3/tg.svg); } .flag-icon-tg.flag-icon-squared { background-image: url(../flags/1x1/tg.svg); } .flag-icon-th { background-image: url(../flags/4x3/th.svg); } .flag-icon-th.flag-icon-squared { background-image: url(../flags/1x1/th.svg); } .flag-icon-tj { background-image: url(../flags/4x3/tj.svg); } .flag-icon-tj.flag-icon-squared { background-image: url(../flags/1x1/tj.svg); } .flag-icon-tk { background-image: url(../flags/4x3/tk.svg); } .flag-icon-tk.flag-icon-squared { background-image: url(../flags/1x1/tk.svg); } .flag-icon-tl { background-image: url(../flags/4x3/tl.svg); } .flag-icon-tl.flag-icon-squared { background-image: url(../flags/1x1/tl.svg); } .flag-icon-tm { background-image: url(../flags/4x3/tm.svg); } .flag-icon-tm.flag-icon-squared { background-image: url(../flags/1x1/tm.svg); } .flag-icon-tn { background-image: url(../flags/4x3/tn.svg); } .flag-icon-tn.flag-icon-squared { background-image: url(../flags/1x1/tn.svg); } .flag-icon-to { background-image: url(../flags/4x3/to.svg); } .flag-icon-to.flag-icon-squared { background-image: url(../flags/1x1/to.svg); } .flag-icon-tr { background-image: url(../flags/4x3/tr.svg); } .flag-icon-tr.flag-icon-squared { background-image: url(../flags/1x1/tr.svg); } .flag-icon-tt { background-image: url(../flags/4x3/tt.svg); } .flag-icon-tt.flag-icon-squared { background-image: url(../flags/1x1/tt.svg); } .flag-icon-tv { background-image: url(../flags/4x3/tv.svg); } .flag-icon-tv.flag-icon-squared { background-image: url(../flags/1x1/tv.svg); } .flag-icon-tw { background-image: url(../flags/4x3/tw.svg); } .flag-icon-tw.flag-icon-squared { background-image: url(../flags/1x1/tw.svg); } .flag-icon-tz { background-image: url(../flags/4x3/tz.svg); } .flag-icon-tz.flag-icon-squared { background-image: url(../flags/1x1/tz.svg); } .flag-icon-ua { background-image: url(../flags/4x3/ua.svg); } .flag-icon-ua.flag-icon-squared { background-image: url(../flags/1x1/ua.svg); } .flag-icon-ug { background-image: url(../flags/4x3/ug.svg); } .flag-icon-ug.flag-icon-squared { background-image: url(../flags/1x1/ug.svg); } .flag-icon-um { background-image: url(../flags/4x3/um.svg); } .flag-icon-um.flag-icon-squared { background-image: url(../flags/1x1/um.svg); } .flag-icon-us { background-image: url(../flags/4x3/us.svg); } .flag-icon-us.flag-icon-squared { background-image: url(../flags/1x1/us.svg); } .flag-icon-uy { background-image: url(../flags/4x3/uy.svg); } .flag-icon-uy.flag-icon-squared { background-image: url(../flags/1x1/uy.svg); } .flag-icon-uz { background-image: url(../flags/4x3/uz.svg); } .flag-icon-uz.flag-icon-squared { background-image: url(../flags/1x1/uz.svg); } .flag-icon-va { background-image: url(../flags/4x3/va.svg); } .flag-icon-va.flag-icon-squared { background-image: url(../flags/1x1/va.svg); } .flag-icon-vc { background-image: url(../flags/4x3/vc.svg); } .flag-icon-vc.flag-icon-squared { background-image: url(../flags/1x1/vc.svg); } .flag-icon-ve { background-image: url(../flags/4x3/ve.svg); } .flag-icon-ve.flag-icon-squared { background-image: url(../flags/1x1/ve.svg); } .flag-icon-vg { background-image: url(../flags/4x3/vg.svg); } .flag-icon-vg.flag-icon-squared { background-image: url(../flags/1x1/vg.svg); } .flag-icon-vi { background-image: url(../flags/4x3/vi.svg); } .flag-icon-vi.flag-icon-squared { background-image: url(../flags/1x1/vi.svg); } .flag-icon-vn { background-image: url(../flags/4x3/vn.svg); } .flag-icon-vn.flag-icon-squared { background-image: url(../flags/1x1/vn.svg); } .flag-icon-vu { background-image: url(../flags/4x3/vu.svg); } .flag-icon-vu.flag-icon-squared { background-image: url(../flags/1x1/vu.svg); } .flag-icon-wf { background-image: url(../flags/4x3/wf.svg); } .flag-icon-wf.flag-icon-squared { background-image: url(../flags/1x1/wf.svg); } .flag-icon-ws { background-image: url(../flags/4x3/ws.svg); } .flag-icon-ws.flag-icon-squared { background-image: url(../flags/1x1/ws.svg); } .flag-icon-ye { background-image: url(../flags/4x3/ye.svg); } .flag-icon-ye.flag-icon-squared { background-image: url(../flags/1x1/ye.svg); } .flag-icon-yt { background-image: url(../flags/4x3/yt.svg); } .flag-icon-yt.flag-icon-squared { background-image: url(../flags/1x1/yt.svg); } .flag-icon-za { background-image: url(../flags/4x3/za.svg); } .flag-icon-za.flag-icon-squared { background-image: url(../flags/1x1/za.svg); } .flag-icon-zm { background-image: url(../flags/4x3/zm.svg); } .flag-icon-zm.flag-icon-squared { background-image: url(../flags/1x1/zm.svg); } .flag-icon-zw { background-image: url(../flags/4x3/zw.svg); } .flag-icon-zw.flag-icon-squared { background-image: url(../flags/1x1/zw.svg); } .flag-icon-eu { background-image: url(../flags/4x3/eu.svg); } .flag-icon-eu.flag-icon-squared { background-image: url(../flags/1x1/eu.svg); } .flag-icon-gb-eng { background-image: url(../flags/4x3/gb-eng.svg); } .flag-icon-gb-eng.flag-icon-squared { background-image: url(../flags/1x1/gb-eng.svg); } .flag-icon-gb-sct { background-image: url(../flags/4x3/gb-sct.svg); } .flag-icon-gb-sct.flag-icon-squared { background-image: url(../flags/1x1/gb-sct.svg); } .flag-icon-gb-wls { background-image: url(../flags/4x3/gb-wls.svg); } .flag-icon-gb-wls.flag-icon-squared { background-image: url(../flags/1x1/gb-wls.svg); } ================================================ FILE: public/backend/fonts/flag-icon-css/sass/flag-icon-base.scss ================================================ @mixin flag-icon-background { background-size: contain; background-position: 50%; background-repeat: no-repeat; } .flag-icon { @include flag-icon-background(); position: relative; display: inline-block; width: (4 / 3) * 1em; line-height: 1em; &:before { content: '\00a0'; } &.flag-icon-squared { width: 1em; } } @mixin flag-icon($country) { .flag-icon-#{$country} { background-image: url(#{$flag-icon-css-path}#{$flag-icon-rect-path}/#{$country}.svg); &.flag-icon-squared { background-image: url(#{$flag-icon-css-path}#{$flag-icon-square-path}/#{$country}.svg); } } } ================================================ FILE: public/backend/fonts/flag-icon-css/sass/flag-icon-list.scss ================================================ @include flag-icon(ad); @include flag-icon(ae); @include flag-icon(af); @include flag-icon(ag); @include flag-icon(ai); @include flag-icon(al); @include flag-icon(am); @include flag-icon(ao); @include flag-icon(aq); @include flag-icon(ar); @include flag-icon(as); @include flag-icon(at); @include flag-icon(au); @include flag-icon(aw); @include flag-icon(ax); @include flag-icon(az); @include flag-icon(ba); @include flag-icon(bb); @include flag-icon(bd); @include flag-icon(be); @include flag-icon(bf); @include flag-icon(bg); @include flag-icon(bh); @include flag-icon(bi); @include flag-icon(bj); @include flag-icon(bl); @include flag-icon(bm); @include flag-icon(bn); @include flag-icon(bo); @include flag-icon(bq); @include flag-icon(br); @include flag-icon(bs); @include flag-icon(bt); @include flag-icon(bv); @include flag-icon(bw); @include flag-icon(by); @include flag-icon(bz); @include flag-icon(ca); @include flag-icon(cc); @include flag-icon(cd); @include flag-icon(cf); @include flag-icon(cg); @include flag-icon(ch); @include flag-icon(ci); @include flag-icon(ck); @include flag-icon(cl); @include flag-icon(cm); @include flag-icon(cn); @include flag-icon(co); @include flag-icon(cr); @include flag-icon(cu); @include flag-icon(cv); @include flag-icon(cw); @include flag-icon(cx); @include flag-icon(cy); @include flag-icon(cz); @include flag-icon(de); @include flag-icon(dj); @include flag-icon(dk); @include flag-icon(dm); @include flag-icon(do); @include flag-icon(dz); @include flag-icon(ec); @include flag-icon(ee); @include flag-icon(eg); @include flag-icon(eh); @include flag-icon(er); @include flag-icon(es); @include flag-icon(et); @include flag-icon(fi); @include flag-icon(fj); @include flag-icon(fk); @include flag-icon(fm); @include flag-icon(fo); @include flag-icon(fr); @include flag-icon(ga); @include flag-icon(gb); @include flag-icon(gd); @include flag-icon(ge); @include flag-icon(gf); @include flag-icon(gg); @include flag-icon(gh); @include flag-icon(gi); @include flag-icon(gl); @include flag-icon(gm); @include flag-icon(gn); @include flag-icon(gp); @include flag-icon(gq); @include flag-icon(gr); @include flag-icon(gs); @include flag-icon(gt); @include flag-icon(gu); @include flag-icon(gw); @include flag-icon(gy); @include flag-icon(hk); @include flag-icon(hm); @include flag-icon(hn); @include flag-icon(hr); @include flag-icon(ht); @include flag-icon(hu); @include flag-icon(id); @include flag-icon(ie); @include flag-icon(il); @include flag-icon(im); @include flag-icon(in); @include flag-icon(io); @include flag-icon(iq); @include flag-icon(ir); @include flag-icon(is); @include flag-icon(it); @include flag-icon(je); @include flag-icon(jm); @include flag-icon(jo); @include flag-icon(jp); @include flag-icon(ke); @include flag-icon(kg); @include flag-icon(kh); @include flag-icon(ki); @include flag-icon(km); @include flag-icon(kn); @include flag-icon(kp); @include flag-icon(kr); @include flag-icon(kw); @include flag-icon(ky); @include flag-icon(kz); @include flag-icon(la); @include flag-icon(lb); @include flag-icon(lc); @include flag-icon(li); @include flag-icon(lk); @include flag-icon(lr); @include flag-icon(ls); @include flag-icon(lt); @include flag-icon(lu); @include flag-icon(lv); @include flag-icon(ly); @include flag-icon(ma); @include flag-icon(mc); @include flag-icon(md); @include flag-icon(me); @include flag-icon(mf); @include flag-icon(mg); @include flag-icon(mh); @include flag-icon(mk); @include flag-icon(ml); @include flag-icon(mm); @include flag-icon(mn); @include flag-icon(mo); @include flag-icon(mp); @include flag-icon(mq); @include flag-icon(mr); @include flag-icon(ms); @include flag-icon(mt); @include flag-icon(mu); @include flag-icon(mv); @include flag-icon(mw); @include flag-icon(mx); @include flag-icon(my); @include flag-icon(mz); @include flag-icon(na); @include flag-icon(nc); @include flag-icon(ne); @include flag-icon(nf); @include flag-icon(ng); @include flag-icon(ni); @include flag-icon(nl); @include flag-icon(no); @include flag-icon(np); @include flag-icon(nr); @include flag-icon(nu); @include flag-icon(nz); @include flag-icon(om); @include flag-icon(pa); @include flag-icon(pe); @include flag-icon(pf); @include flag-icon(pg); @include flag-icon(ph); @include flag-icon(pk); @include flag-icon(pl); @include flag-icon(pm); @include flag-icon(pn); @include flag-icon(pr); @include flag-icon(ps); @include flag-icon(pt); @include flag-icon(pw); @include flag-icon(py); @include flag-icon(qa); @include flag-icon(re); @include flag-icon(ro); @include flag-icon(rs); @include flag-icon(ru); @include flag-icon(rw); @include flag-icon(sa); @include flag-icon(sb); @include flag-icon(sc); @include flag-icon(sd); @include flag-icon(se); @include flag-icon(sg); @include flag-icon(sh); @include flag-icon(si); @include flag-icon(sj); @include flag-icon(sk); @include flag-icon(sl); @include flag-icon(sm); @include flag-icon(sn); @include flag-icon(so); @include flag-icon(sr); @include flag-icon(ss); @include flag-icon(st); @include flag-icon(sv); @include flag-icon(sx); @include flag-icon(sy); @include flag-icon(sz); @include flag-icon(tc); @include flag-icon(td); @include flag-icon(tf); @include flag-icon(tg); @include flag-icon(th); @include flag-icon(tj); @include flag-icon(tk); @include flag-icon(tl); @include flag-icon(tm); @include flag-icon(tn); @include flag-icon(to); @include flag-icon(tr); @include flag-icon(tt); @include flag-icon(tv); @include flag-icon(tw); @include flag-icon(tz); @include flag-icon(ua); @include flag-icon(ug); @include flag-icon(um); @include flag-icon(us); @include flag-icon(uy); @include flag-icon(uz); @include flag-icon(va); @include flag-icon(vc); @include flag-icon(ve); @include flag-icon(vg); @include flag-icon(vi); @include flag-icon(vn); @include flag-icon(vu); @include flag-icon(wf); @include flag-icon(ws); @include flag-icon(ye); @include flag-icon(yt); @include flag-icon(za); @include flag-icon(zm); @include flag-icon(zw); ================================================ FILE: public/backend/fonts/flag-icon-css/sass/flag-icon-more.scss ================================================ @include flag-icon(eu); @include flag-icon(gb-eng); @include flag-icon(gb-sct); @include flag-icon(gb-wls); ================================================ FILE: public/backend/fonts/flag-icon-css/sass/flag-icon.scss ================================================ @import "variables"; @import "flag-icon-base"; @import "flag-icon-list"; @import "flag-icon-more"; ================================================ FILE: public/backend/fonts/flag-icon-css/sass/variables.scss ================================================ $flag-icon-css-path: '../flags' !default; $flag-icon-rect-path: '/4x3' !default; $flag-icon-square-path: '/1x1' !default; ================================================ FILE: public/backend/fonts/font-awesome/css/font-awesome.css ================================================ /*! * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */ /* FONT PATH * -------------------------- */ @font-face { font-family: 'FontAwesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.7.0'); src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); font-weight: normal; font-style: normal; } .fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* makes the font 33% larger relative to the icon container */ .fa-lg { font-size: 1.33333333em; line-height: 0.75em; vertical-align: -15%; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-fw { width: 1.28571429em; text-align: center; } .fa-ul { padding-left: 0; margin-left: 2.14285714em; list-style-type: none; } .fa-ul > li { position: relative; } .fa-li { position: absolute; left: -2.14285714em; width: 2.14285714em; top: 0.14285714em; text-align: center; } .fa-li.fa-lg { left: -1.85714286em; } .fa-border { padding: .2em .25em .15em; border: solid 0.08em #eeeeee; border-radius: .1em; } .fa-pull-left { float: left; } .fa-pull-right { float: right; } .fa.fa-pull-left { margin-right: .3em; } .fa.fa-pull-right { margin-left: .3em; } /* Deprecated as of 4.4.0 */ .pull-right { float: right; } .pull-left { float: left; } .fa.pull-left { margin-right: .3em; } .fa.pull-right { margin-left: .3em; } .fa-spin { -webkit-animation: fa-spin 2s infinite linear; animation: fa-spin 2s infinite linear; } .fa-pulse { -webkit-animation: fa-spin 1s infinite steps(8); animation: fa-spin 1s infinite steps(8); } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .fa-rotate-90 { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; -webkit-transform: scale(1, -1); -ms-transform: scale(1, -1); transform: scale(1, -1); } :root .fa-rotate-90, :root .fa-rotate-180, :root .fa-rotate-270, :root .fa-flip-horizontal, :root .fa-flip-vertical { filter: none; } .fa-stack { position: relative; display: inline-block; width: 2em; height: 2em; line-height: 2em; vertical-align: middle; } .fa-stack-1x, .fa-stack-2x { position: absolute; left: 0; width: 100%; text-align: center; } .fa-stack-1x { line-height: inherit; } .fa-stack-2x { font-size: 2em; } .fa-inverse { color: #ffffff; } /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .fa-glass:before { content: "\f000"; } .fa-music:before { content: "\f001"; } .fa-search:before { content: "\f002"; } .fa-envelope-o:before { content: "\f003"; } .fa-heart:before { content: "\f004"; } .fa-star:before { content: "\f005"; } .fa-star-o:before { content: "\f006"; } .fa-user:before { content: "\f007"; } .fa-film:before { content: "\f008"; } .fa-th-large:before { content: "\f009"; } .fa-th:before { content: "\f00a"; } .fa-th-list:before { content: "\f00b"; } .fa-check:before { content: "\f00c"; } .fa-remove:before, .fa-close:before, .fa-times:before { content: "\f00d"; } .fa-search-plus:before { content: "\f00e"; } .fa-search-minus:before { content: "\f010"; } .fa-power-off:before { content: "\f011"; } .fa-signal:before { content: "\f012"; } .fa-gear:before, .fa-cog:before { content: "\f013"; } .fa-trash-o:before { content: "\f014"; } .fa-home:before { content: "\f015"; } .fa-file-o:before { content: "\f016"; } .fa-clock-o:before { content: "\f017"; } .fa-road:before { content: "\f018"; } .fa-download:before { content: "\f019"; } .fa-arrow-circle-o-down:before { content: "\f01a"; } .fa-arrow-circle-o-up:before { content: "\f01b"; } .fa-inbox:before { content: "\f01c"; } .fa-play-circle-o:before { content: "\f01d"; } .fa-rotate-right:before, .fa-repeat:before { content: "\f01e"; } .fa-refresh:before { content: "\f021"; } .fa-list-alt:before { content: "\f022"; } .fa-lock:before { content: "\f023"; } .fa-flag:before { content: "\f024"; } .fa-headphones:before { content: "\f025"; } .fa-volume-off:before { content: "\f026"; } .fa-volume-down:before { content: "\f027"; } .fa-volume-up:before { content: "\f028"; } .fa-qrcode:before { content: "\f029"; } .fa-barcode:before { content: "\f02a"; } .fa-tag:before { content: "\f02b"; } .fa-tags:before { content: "\f02c"; } .fa-book:before { content: "\f02d"; } .fa-bookmark:before { content: "\f02e"; } .fa-print:before { content: "\f02f"; } .fa-camera:before { content: "\f030"; } .fa-font:before { content: "\f031"; } .fa-bold:before { content: "\f032"; } .fa-italic:before { content: "\f033"; } .fa-text-height:before { content: "\f034"; } .fa-text-width:before { content: "\f035"; } .fa-align-left:before { content: "\f036"; } .fa-align-center:before { content: "\f037"; } .fa-align-right:before { content: "\f038"; } .fa-align-justify:before { content: "\f039"; } .fa-list:before { content: "\f03a"; } .fa-dedent:before, .fa-outdent:before { content: "\f03b"; } .fa-indent:before { content: "\f03c"; } .fa-video-camera:before { content: "\f03d"; } .fa-photo:before, .fa-image:before, .fa-picture-o:before { content: "\f03e"; } .fa-pencil:before { content: "\f040"; } .fa-map-marker:before { content: "\f041"; } .fa-adjust:before { content: "\f042"; } .fa-tint:before { content: "\f043"; } .fa-edit:before, .fa-pencil-square-o:before { content: "\f044"; } .fa-share-square-o:before { content: "\f045"; } .fa-check-square-o:before { content: "\f046"; } .fa-arrows:before { content: "\f047"; } .fa-step-backward:before { content: "\f048"; } .fa-fast-backward:before { content: "\f049"; } .fa-backward:before { content: "\f04a"; } .fa-play:before { content: "\f04b"; } .fa-pause:before { content: "\f04c"; } .fa-stop:before { content: "\f04d"; } .fa-forward:before { content: "\f04e"; } .fa-fast-forward:before { content: "\f050"; } .fa-step-forward:before { content: "\f051"; } .fa-eject:before { content: "\f052"; } .fa-chevron-left:before { content: "\f053"; } .fa-chevron-right:before { content: "\f054"; } .fa-plus-circle:before { content: "\f055"; } .fa-minus-circle:before { content: "\f056"; } .fa-times-circle:before { content: "\f057"; } .fa-check-circle:before { content: "\f058"; } .fa-question-circle:before { content: "\f059"; } .fa-info-circle:before { content: "\f05a"; } .fa-crosshairs:before { content: "\f05b"; } .fa-times-circle-o:before { content: "\f05c"; } .fa-check-circle-o:before { content: "\f05d"; } .fa-ban:before { content: "\f05e"; } .fa-arrow-left:before { content: "\f060"; } .fa-arrow-right:before { content: "\f061"; } .fa-arrow-up:before { content: "\f062"; } .fa-arrow-down:before { content: "\f063"; } .fa-mail-forward:before, .fa-share:before { content: "\f064"; } .fa-expand:before { content: "\f065"; } .fa-compress:before { content: "\f066"; } .fa-plus:before { content: "\f067"; } .fa-minus:before { content: "\f068"; } .fa-asterisk:before { content: "\f069"; } .fa-exclamation-circle:before { content: "\f06a"; } .fa-gift:before { content: "\f06b"; } .fa-leaf:before { content: "\f06c"; } .fa-fire:before { content: "\f06d"; } .fa-eye:before { content: "\f06e"; } .fa-eye-slash:before { content: "\f070"; } .fa-warning:before, .fa-exclamation-triangle:before { content: "\f071"; } .fa-plane:before { content: "\f072"; } .fa-calendar:before { content: "\f073"; } .fa-random:before { content: "\f074"; } .fa-comment:before { content: "\f075"; } .fa-magnet:before { content: "\f076"; } .fa-chevron-up:before { content: "\f077"; } .fa-chevron-down:before { content: "\f078"; } .fa-retweet:before { content: "\f079"; } .fa-shopping-cart:before { content: "\f07a"; } .fa-folder:before { content: "\f07b"; } .fa-folder-open:before { content: "\f07c"; } .fa-arrows-v:before { content: "\f07d"; } .fa-arrows-h:before { content: "\f07e"; } .fa-bar-chart-o:before, .fa-bar-chart:before { content: "\f080"; } .fa-twitter-square:before { content: "\f081"; } .fa-facebook-square:before { content: "\f082"; } .fa-camera-retro:before { content: "\f083"; } .fa-key:before { content: "\f084"; } .fa-gears:before, .fa-cogs:before { content: "\f085"; } .fa-comments:before { content: "\f086"; } .fa-thumbs-o-up:before { content: "\f087"; } .fa-thumbs-o-down:before { content: "\f088"; } .fa-star-half:before { content: "\f089"; } .fa-heart-o:before { content: "\f08a"; } .fa-sign-out:before { content: "\f08b"; } .fa-linkedin-square:before { content: "\f08c"; } .fa-thumb-tack:before { content: "\f08d"; } .fa-external-link:before { content: "\f08e"; } .fa-sign-in:before { content: "\f090"; } .fa-trophy:before { content: "\f091"; } .fa-github-square:before { content: "\f092"; } .fa-upload:before { content: "\f093"; } .fa-lemon-o:before { content: "\f094"; } .fa-phone:before { content: "\f095"; } .fa-square-o:before { content: "\f096"; } .fa-bookmark-o:before { content: "\f097"; } .fa-phone-square:before { content: "\f098"; } .fa-twitter:before { content: "\f099"; } .fa-facebook-f:before, .fa-facebook:before { content: "\f09a"; } .fa-github:before { content: "\f09b"; } .fa-unlock:before { content: "\f09c"; } .fa-credit-card:before { content: "\f09d"; } .fa-feed:before, .fa-rss:before { content: "\f09e"; } .fa-hdd-o:before { content: "\f0a0"; } .fa-bullhorn:before { content: "\f0a1"; } .fa-bell:before { content: "\f0f3"; } .fa-certificate:before { content: "\f0a3"; } .fa-hand-o-right:before { content: "\f0a4"; } .fa-hand-o-left:before { content: "\f0a5"; } .fa-hand-o-up:before { content: "\f0a6"; } .fa-hand-o-down:before { content: "\f0a7"; } .fa-arrow-circle-left:before { content: "\f0a8"; } .fa-arrow-circle-right:before { content: "\f0a9"; } .fa-arrow-circle-up:before { content: "\f0aa"; } .fa-arrow-circle-down:before { content: "\f0ab"; } .fa-globe:before { content: "\f0ac"; } .fa-wrench:before { content: "\f0ad"; } .fa-tasks:before { content: "\f0ae"; } .fa-filter:before { content: "\f0b0"; } .fa-briefcase:before { content: "\f0b1"; } .fa-arrows-alt:before { content: "\f0b2"; } .fa-group:before, .fa-users:before { content: "\f0c0"; } .fa-chain:before, .fa-link:before { content: "\f0c1"; } .fa-cloud:before { content: "\f0c2"; } .fa-flask:before { content: "\f0c3"; } .fa-cut:before, .fa-scissors:before { content: "\f0c4"; } .fa-copy:before, .fa-files-o:before { content: "\f0c5"; } .fa-paperclip:before { content: "\f0c6"; } .fa-save:before, .fa-floppy-o:before { content: "\f0c7"; } .fa-square:before { content: "\f0c8"; } .fa-navicon:before, .fa-reorder:before, .fa-bars:before { content: "\f0c9"; } .fa-list-ul:before { content: "\f0ca"; } .fa-list-ol:before { content: "\f0cb"; } .fa-strikethrough:before { content: "\f0cc"; } .fa-underline:before { content: "\f0cd"; } .fa-table:before { content: "\f0ce"; } .fa-magic:before { content: "\f0d0"; } .fa-truck:before { content: "\f0d1"; } .fa-pinterest:before { content: "\f0d2"; } .fa-pinterest-square:before { content: "\f0d3"; } .fa-google-plus-square:before { content: "\f0d4"; } .fa-google-plus:before { content: "\f0d5"; } .fa-money:before { content: "\f0d6"; } .fa-caret-down:before { content: "\f0d7"; } .fa-caret-up:before { content: "\f0d8"; } .fa-caret-left:before { content: "\f0d9"; } .fa-caret-right:before { content: "\f0da"; } .fa-columns:before { content: "\f0db"; } .fa-unsorted:before, .fa-sort:before { content: "\f0dc"; } .fa-sort-down:before, .fa-sort-desc:before { content: "\f0dd"; } .fa-sort-up:before, .fa-sort-asc:before { content: "\f0de"; } .fa-envelope:before { content: "\f0e0"; } .fa-linkedin:before { content: "\f0e1"; } .fa-rotate-left:before, .fa-undo:before { content: "\f0e2"; } .fa-legal:before, .fa-gavel:before { content: "\f0e3"; } .fa-dashboard:before, .fa-tachometer:before { content: "\f0e4"; } .fa-comment-o:before { content: "\f0e5"; } .fa-comments-o:before { content: "\f0e6"; } .fa-flash:before, .fa-bolt:before { content: "\f0e7"; } .fa-sitemap:before { content: "\f0e8"; } .fa-umbrella:before { content: "\f0e9"; } .fa-paste:before, .fa-clipboard:before { content: "\f0ea"; } .fa-lightbulb-o:before { content: "\f0eb"; } .fa-exchange:before { content: "\f0ec"; } .fa-cloud-download:before { content: "\f0ed"; } .fa-cloud-upload:before { content: "\f0ee"; } .fa-user-md:before { content: "\f0f0"; } .fa-stethoscope:before { content: "\f0f1"; } .fa-suitcase:before { content: "\f0f2"; } .fa-bell-o:before { content: "\f0a2"; } .fa-coffee:before { content: "\f0f4"; } .fa-cutlery:before { content: "\f0f5"; } .fa-file-text-o:before { content: "\f0f6"; } .fa-building-o:before { content: "\f0f7"; } .fa-hospital-o:before { content: "\f0f8"; } .fa-ambulance:before { content: "\f0f9"; } .fa-medkit:before { content: "\f0fa"; } .fa-fighter-jet:before { content: "\f0fb"; } .fa-beer:before { content: "\f0fc"; } .fa-h-square:before { content: "\f0fd"; } .fa-plus-square:before { content: "\f0fe"; } .fa-angle-double-left:before { content: "\f100"; } .fa-angle-double-right:before { content: "\f101"; } .fa-angle-double-up:before { content: "\f102"; } .fa-angle-double-down:before { content: "\f103"; } .fa-angle-left:before { content: "\f104"; } .fa-angle-right:before { content: "\f105"; } .fa-angle-up:before { content: "\f106"; } .fa-angle-down:before { content: "\f107"; } .fa-desktop:before { content: "\f108"; } .fa-laptop:before { content: "\f109"; } .fa-tablet:before { content: "\f10a"; } .fa-mobile-phone:before, .fa-mobile:before { content: "\f10b"; } .fa-circle-o:before { content: "\f10c"; } .fa-quote-left:before { content: "\f10d"; } .fa-quote-right:before { content: "\f10e"; } .fa-spinner:before { content: "\f110"; } .fa-circle:before { content: "\f111"; } .fa-mail-reply:before, .fa-reply:before { content: "\f112"; } .fa-github-alt:before { content: "\f113"; } .fa-folder-o:before { content: "\f114"; } .fa-folder-open-o:before { content: "\f115"; } .fa-smile-o:before { content: "\f118"; } .fa-frown-o:before { content: "\f119"; } .fa-meh-o:before { content: "\f11a"; } .fa-gamepad:before { content: "\f11b"; } .fa-keyboard-o:before { content: "\f11c"; } .fa-flag-o:before { content: "\f11d"; } .fa-flag-checkered:before { content: "\f11e"; } .fa-terminal:before { content: "\f120"; } .fa-code:before { content: "\f121"; } .fa-mail-reply-all:before, .fa-reply-all:before { content: "\f122"; } .fa-star-half-empty:before, .fa-star-half-full:before, .fa-star-half-o:before { content: "\f123"; } .fa-location-arrow:before { content: "\f124"; } .fa-crop:before { content: "\f125"; } .fa-code-fork:before { content: "\f126"; } .fa-unlink:before, .fa-chain-broken:before { content: "\f127"; } .fa-question:before { content: "\f128"; } .fa-info:before { content: "\f129"; } .fa-exclamation:before { content: "\f12a"; } .fa-superscript:before { content: "\f12b"; } .fa-subscript:before { content: "\f12c"; } .fa-eraser:before { content: "\f12d"; } .fa-puzzle-piece:before { content: "\f12e"; } .fa-microphone:before { content: "\f130"; } .fa-microphone-slash:before { content: "\f131"; } .fa-shield:before { content: "\f132"; } .fa-calendar-o:before { content: "\f133"; } .fa-fire-extinguisher:before { content: "\f134"; } .fa-rocket:before { content: "\f135"; } .fa-maxcdn:before { content: "\f136"; } .fa-chevron-circle-left:before { content: "\f137"; } .fa-chevron-circle-right:before { content: "\f138"; } .fa-chevron-circle-up:before { content: "\f139"; } .fa-chevron-circle-down:before { content: "\f13a"; } .fa-html5:before { content: "\f13b"; } .fa-css3:before { content: "\f13c"; } .fa-anchor:before { content: "\f13d"; } .fa-unlock-alt:before { content: "\f13e"; } .fa-bullseye:before { content: "\f140"; } .fa-ellipsis-h:before { content: "\f141"; } .fa-ellipsis-v:before { content: "\f142"; } .fa-rss-square:before { content: "\f143"; } .fa-play-circle:before { content: "\f144"; } .fa-ticket:before { content: "\f145"; } .fa-minus-square:before { content: "\f146"; } .fa-minus-square-o:before { content: "\f147"; } .fa-level-up:before { content: "\f148"; } .fa-level-down:before { content: "\f149"; } .fa-check-square:before { content: "\f14a"; } .fa-pencil-square:before { content: "\f14b"; } .fa-external-link-square:before { content: "\f14c"; } .fa-share-square:before { content: "\f14d"; } .fa-compass:before { content: "\f14e"; } .fa-toggle-down:before, .fa-caret-square-o-down:before { content: "\f150"; } .fa-toggle-up:before, .fa-caret-square-o-up:before { content: "\f151"; } .fa-toggle-right:before, .fa-caret-square-o-right:before { content: "\f152"; } .fa-euro:before, .fa-eur:before { content: "\f153"; } .fa-gbp:before { content: "\f154"; } .fa-dollar:before, .fa-usd:before { content: "\f155"; } .fa-rupee:before, .fa-inr:before { content: "\f156"; } .fa-cny:before, .fa-rmb:before, .fa-yen:before, .fa-jpy:before { content: "\f157"; } .fa-ruble:before, .fa-rouble:before, .fa-rub:before { content: "\f158"; } .fa-won:before, .fa-krw:before { content: "\f159"; } .fa-bitcoin:before, .fa-btc:before { content: "\f15a"; } .fa-file:before { content: "\f15b"; } .fa-file-text:before { content: "\f15c"; } .fa-sort-alpha-asc:before { content: "\f15d"; } .fa-sort-alpha-desc:before { content: "\f15e"; } .fa-sort-amount-asc:before { content: "\f160"; } .fa-sort-amount-desc:before { content: "\f161"; } .fa-sort-numeric-asc:before { content: "\f162"; } .fa-sort-numeric-desc:before { content: "\f163"; } .fa-thumbs-up:before { content: "\f164"; } .fa-thumbs-down:before { content: "\f165"; } .fa-youtube-square:before { content: "\f166"; } .fa-youtube:before { content: "\f167"; } .fa-xing:before { content: "\f168"; } .fa-xing-square:before { content: "\f169"; } .fa-youtube-play:before { content: "\f16a"; } .fa-dropbox:before { content: "\f16b"; } .fa-stack-overflow:before { content: "\f16c"; } .fa-instagram:before { content: "\f16d"; } .fa-flickr:before { content: "\f16e"; } .fa-adn:before { content: "\f170"; } .fa-bitbucket:before { content: "\f171"; } .fa-bitbucket-square:before { content: "\f172"; } .fa-tumblr:before { content: "\f173"; } .fa-tumblr-square:before { content: "\f174"; } .fa-long-arrow-down:before { content: "\f175"; } .fa-long-arrow-up:before { content: "\f176"; } .fa-long-arrow-left:before { content: "\f177"; } .fa-long-arrow-right:before { content: "\f178"; } .fa-apple:before { content: "\f179"; } .fa-windows:before { content: "\f17a"; } .fa-android:before { content: "\f17b"; } .fa-linux:before { content: "\f17c"; } .fa-dribbble:before { content: "\f17d"; } .fa-skype:before { content: "\f17e"; } .fa-foursquare:before { content: "\f180"; } .fa-trello:before { content: "\f181"; } .fa-female:before { content: "\f182"; } .fa-male:before { content: "\f183"; } .fa-gittip:before, .fa-gratipay:before { content: "\f184"; } .fa-sun-o:before { content: "\f185"; } .fa-moon-o:before { content: "\f186"; } .fa-archive:before { content: "\f187"; } .fa-bug:before { content: "\f188"; } .fa-vk:before { content: "\f189"; } .fa-weibo:before { content: "\f18a"; } .fa-renren:before { content: "\f18b"; } .fa-pagelines:before { content: "\f18c"; } .fa-stack-exchange:before { content: "\f18d"; } .fa-arrow-circle-o-right:before { content: "\f18e"; } .fa-arrow-circle-o-left:before { content: "\f190"; } .fa-toggle-left:before, .fa-caret-square-o-left:before { content: "\f191"; } .fa-dot-circle-o:before { content: "\f192"; } .fa-wheelchair:before { content: "\f193"; } .fa-vimeo-square:before { content: "\f194"; } .fa-turkish-lira:before, .fa-try:before { content: "\f195"; } .fa-plus-square-o:before { content: "\f196"; } .fa-space-shuttle:before { content: "\f197"; } .fa-slack:before { content: "\f198"; } .fa-envelope-square:before { content: "\f199"; } .fa-wordpress:before { content: "\f19a"; } .fa-openid:before { content: "\f19b"; } .fa-institution:before, .fa-bank:before, .fa-university:before { content: "\f19c"; } .fa-mortar-board:before, .fa-graduation-cap:before { content: "\f19d"; } .fa-yahoo:before { content: "\f19e"; } .fa-google:before { content: "\f1a0"; } .fa-reddit:before { content: "\f1a1"; } .fa-reddit-square:before { content: "\f1a2"; } .fa-stumbleupon-circle:before { content: "\f1a3"; } .fa-stumbleupon:before { content: "\f1a4"; } .fa-delicious:before { content: "\f1a5"; } .fa-digg:before { content: "\f1a6"; } .fa-pied-piper-pp:before { content: "\f1a7"; } .fa-pied-piper-alt:before { content: "\f1a8"; } .fa-drupal:before { content: "\f1a9"; } .fa-joomla:before { content: "\f1aa"; } .fa-language:before { content: "\f1ab"; } .fa-fax:before { content: "\f1ac"; } .fa-building:before { content: "\f1ad"; } .fa-child:before { content: "\f1ae"; } .fa-paw:before { content: "\f1b0"; } .fa-spoon:before { content: "\f1b1"; } .fa-cube:before { content: "\f1b2"; } .fa-cubes:before { content: "\f1b3"; } .fa-behance:before { content: "\f1b4"; } .fa-behance-square:before { content: "\f1b5"; } .fa-steam:before { content: "\f1b6"; } .fa-steam-square:before { content: "\f1b7"; } .fa-recycle:before { content: "\f1b8"; } .fa-automobile:before, .fa-car:before { content: "\f1b9"; } .fa-cab:before, .fa-taxi:before { content: "\f1ba"; } .fa-tree:before { content: "\f1bb"; } .fa-spotify:before { content: "\f1bc"; } .fa-deviantart:before { content: "\f1bd"; } .fa-soundcloud:before { content: "\f1be"; } .fa-database:before { content: "\f1c0"; } .fa-file-pdf-o:before { content: "\f1c1"; } .fa-file-word-o:before { content: "\f1c2"; } .fa-file-excel-o:before { content: "\f1c3"; } .fa-file-powerpoint-o:before { content: "\f1c4"; } .fa-file-photo-o:before, .fa-file-picture-o:before, .fa-file-image-o:before { content: "\f1c5"; } .fa-file-zip-o:before, .fa-file-archive-o:before { content: "\f1c6"; } .fa-file-sound-o:before, .fa-file-audio-o:before { content: "\f1c7"; } .fa-file-movie-o:before, .fa-file-video-o:before { content: "\f1c8"; } .fa-file-code-o:before { content: "\f1c9"; } .fa-vine:before { content: "\f1ca"; } .fa-codepen:before { content: "\f1cb"; } .fa-jsfiddle:before { content: "\f1cc"; } .fa-life-bouy:before, .fa-life-buoy:before, .fa-life-saver:before, .fa-support:before, .fa-life-ring:before { content: "\f1cd"; } .fa-circle-o-notch:before { content: "\f1ce"; } .fa-ra:before, .fa-resistance:before, .fa-rebel:before { content: "\f1d0"; } .fa-ge:before, .fa-empire:before { content: "\f1d1"; } .fa-git-square:before { content: "\f1d2"; } .fa-git:before { content: "\f1d3"; } .fa-y-combinator-square:before, .fa-yc-square:before, .fa-hacker-news:before { content: "\f1d4"; } .fa-tencent-weibo:before { content: "\f1d5"; } .fa-qq:before { content: "\f1d6"; } .fa-wechat:before, .fa-weixin:before { content: "\f1d7"; } .fa-send:before, .fa-paper-plane:before { content: "\f1d8"; } .fa-send-o:before, .fa-paper-plane-o:before { content: "\f1d9"; } .fa-history:before { content: "\f1da"; } .fa-circle-thin:before { content: "\f1db"; } .fa-header:before { content: "\f1dc"; } .fa-paragraph:before { content: "\f1dd"; } .fa-sliders:before { content: "\f1de"; } .fa-share-alt:before { content: "\f1e0"; } .fa-share-alt-square:before { content: "\f1e1"; } .fa-bomb:before { content: "\f1e2"; } .fa-soccer-ball-o:before, .fa-futbol-o:before { content: "\f1e3"; } .fa-tty:before { content: "\f1e4"; } .fa-binoculars:before { content: "\f1e5"; } .fa-plug:before { content: "\f1e6"; } .fa-slideshare:before { content: "\f1e7"; } .fa-twitch:before { content: "\f1e8"; } .fa-yelp:before { content: "\f1e9"; } .fa-newspaper-o:before { content: "\f1ea"; } .fa-wifi:before { content: "\f1eb"; } .fa-calculator:before { content: "\f1ec"; } .fa-paypal:before { content: "\f1ed"; } .fa-google-wallet:before { content: "\f1ee"; } .fa-cc-visa:before { content: "\f1f0"; } .fa-cc-mastercard:before { content: "\f1f1"; } .fa-cc-discover:before { content: "\f1f2"; } .fa-cc-amex:before { content: "\f1f3"; } .fa-cc-paypal:before { content: "\f1f4"; } .fa-cc-stripe:before { content: "\f1f5"; } .fa-bell-slash:before { content: "\f1f6"; } .fa-bell-slash-o:before { content: "\f1f7"; } .fa-trash:before { content: "\f1f8"; } .fa-copyright:before { content: "\f1f9"; } .fa-at:before { content: "\f1fa"; } .fa-eyedropper:before { content: "\f1fb"; } .fa-paint-brush:before { content: "\f1fc"; } .fa-birthday-cake:before { content: "\f1fd"; } .fa-area-chart:before { content: "\f1fe"; } .fa-pie-chart:before { content: "\f200"; } .fa-line-chart:before { content: "\f201"; } .fa-lastfm:before { content: "\f202"; } .fa-lastfm-square:before { content: "\f203"; } .fa-toggle-off:before { content: "\f204"; } .fa-toggle-on:before { content: "\f205"; } .fa-bicycle:before { content: "\f206"; } .fa-bus:before { content: "\f207"; } .fa-ioxhost:before { content: "\f208"; } .fa-angellist:before { content: "\f209"; } .fa-cc:before { content: "\f20a"; } .fa-shekel:before, .fa-sheqel:before, .fa-ils:before { content: "\f20b"; } .fa-meanpath:before { content: "\f20c"; } .fa-buysellads:before { content: "\f20d"; } .fa-connectdevelop:before { content: "\f20e"; } .fa-dashcube:before { content: "\f210"; } .fa-forumbee:before { content: "\f211"; } .fa-leanpub:before { content: "\f212"; } .fa-sellsy:before { content: "\f213"; } .fa-shirtsinbulk:before { content: "\f214"; } .fa-simplybuilt:before { content: "\f215"; } .fa-skyatlas:before { content: "\f216"; } .fa-cart-plus:before { content: "\f217"; } .fa-cart-arrow-down:before { content: "\f218"; } .fa-diamond:before { content: "\f219"; } .fa-ship:before { content: "\f21a"; } .fa-user-secret:before { content: "\f21b"; } .fa-motorcycle:before { content: "\f21c"; } .fa-street-view:before { content: "\f21d"; } .fa-heartbeat:before { content: "\f21e"; } .fa-venus:before { content: "\f221"; } .fa-mars:before { content: "\f222"; } .fa-mercury:before { content: "\f223"; } .fa-intersex:before, .fa-transgender:before { content: "\f224"; } .fa-transgender-alt:before { content: "\f225"; } .fa-venus-double:before { content: "\f226"; } .fa-mars-double:before { content: "\f227"; } .fa-venus-mars:before { content: "\f228"; } .fa-mars-stroke:before { content: "\f229"; } .fa-mars-stroke-v:before { content: "\f22a"; } .fa-mars-stroke-h:before { content: "\f22b"; } .fa-neuter:before { content: "\f22c"; } .fa-genderless:before { content: "\f22d"; } .fa-facebook-official:before { content: "\f230"; } .fa-pinterest-p:before { content: "\f231"; } .fa-whatsapp:before { content: "\f232"; } .fa-server:before { content: "\f233"; } .fa-user-plus:before { content: "\f234"; } .fa-user-times:before { content: "\f235"; } .fa-hotel:before, .fa-bed:before { content: "\f236"; } .fa-viacoin:before { content: "\f237"; } .fa-train:before { content: "\f238"; } .fa-subway:before { content: "\f239"; } .fa-medium:before { content: "\f23a"; } .fa-yc:before, .fa-y-combinator:before { content: "\f23b"; } .fa-optin-monster:before { content: "\f23c"; } .fa-opencart:before { content: "\f23d"; } .fa-expeditedssl:before { content: "\f23e"; } .fa-battery-4:before, .fa-battery:before, .fa-battery-full:before { content: "\f240"; } .fa-battery-3:before, .fa-battery-three-quarters:before { content: "\f241"; } .fa-battery-2:before, .fa-battery-half:before { content: "\f242"; } .fa-battery-1:before, .fa-battery-quarter:before { content: "\f243"; } .fa-battery-0:before, .fa-battery-empty:before { content: "\f244"; } .fa-mouse-pointer:before { content: "\f245"; } .fa-i-cursor:before { content: "\f246"; } .fa-object-group:before { content: "\f247"; } .fa-object-ungroup:before { content: "\f248"; } .fa-sticky-note:before { content: "\f249"; } .fa-sticky-note-o:before { content: "\f24a"; } .fa-cc-jcb:before { content: "\f24b"; } .fa-cc-diners-club:before { content: "\f24c"; } .fa-clone:before { content: "\f24d"; } .fa-balance-scale:before { content: "\f24e"; } .fa-hourglass-o:before { content: "\f250"; } .fa-hourglass-1:before, .fa-hourglass-start:before { content: "\f251"; } .fa-hourglass-2:before, .fa-hourglass-half:before { content: "\f252"; } .fa-hourglass-3:before, .fa-hourglass-end:before { content: "\f253"; } .fa-hourglass:before { content: "\f254"; } .fa-hand-grab-o:before, .fa-hand-rock-o:before { content: "\f255"; } .fa-hand-stop-o:before, .fa-hand-paper-o:before { content: "\f256"; } .fa-hand-scissors-o:before { content: "\f257"; } .fa-hand-lizard-o:before { content: "\f258"; } .fa-hand-spock-o:before { content: "\f259"; } .fa-hand-pointer-o:before { content: "\f25a"; } .fa-hand-peace-o:before { content: "\f25b"; } .fa-trademark:before { content: "\f25c"; } .fa-registered:before { content: "\f25d"; } .fa-creative-commons:before { content: "\f25e"; } .fa-gg:before { content: "\f260"; } .fa-gg-circle:before { content: "\f261"; } .fa-tripadvisor:before { content: "\f262"; } .fa-odnoklassniki:before { content: "\f263"; } .fa-odnoklassniki-square:before { content: "\f264"; } .fa-get-pocket:before { content: "\f265"; } .fa-wikipedia-w:before { content: "\f266"; } .fa-safari:before { content: "\f267"; } .fa-chrome:before { content: "\f268"; } .fa-firefox:before { content: "\f269"; } .fa-opera:before { content: "\f26a"; } .fa-internet-explorer:before { content: "\f26b"; } .fa-tv:before, .fa-television:before { content: "\f26c"; } .fa-contao:before { content: "\f26d"; } .fa-500px:before { content: "\f26e"; } .fa-amazon:before { content: "\f270"; } .fa-calendar-plus-o:before { content: "\f271"; } .fa-calendar-minus-o:before { content: "\f272"; } .fa-calendar-times-o:before { content: "\f273"; } .fa-calendar-check-o:before { content: "\f274"; } .fa-industry:before { content: "\f275"; } .fa-map-pin:before { content: "\f276"; } .fa-map-signs:before { content: "\f277"; } .fa-map-o:before { content: "\f278"; } .fa-map:before { content: "\f279"; } .fa-commenting:before { content: "\f27a"; } .fa-commenting-o:before { content: "\f27b"; } .fa-houzz:before { content: "\f27c"; } .fa-vimeo:before { content: "\f27d"; } .fa-black-tie:before { content: "\f27e"; } .fa-fonticons:before { content: "\f280"; } .fa-reddit-alien:before { content: "\f281"; } .fa-edge:before { content: "\f282"; } .fa-credit-card-alt:before { content: "\f283"; } .fa-codiepie:before { content: "\f284"; } .fa-modx:before { content: "\f285"; } .fa-fort-awesome:before { content: "\f286"; } .fa-usb:before { content: "\f287"; } .fa-product-hunt:before { content: "\f288"; } .fa-mixcloud:before { content: "\f289"; } .fa-scribd:before { content: "\f28a"; } .fa-pause-circle:before { content: "\f28b"; } .fa-pause-circle-o:before { content: "\f28c"; } .fa-stop-circle:before { content: "\f28d"; } .fa-stop-circle-o:before { content: "\f28e"; } .fa-shopping-bag:before { content: "\f290"; } .fa-shopping-basket:before { content: "\f291"; } .fa-hashtag:before { content: "\f292"; } .fa-bluetooth:before { content: "\f293"; } .fa-bluetooth-b:before { content: "\f294"; } .fa-percent:before { content: "\f295"; } .fa-gitlab:before { content: "\f296"; } .fa-wpbeginner:before { content: "\f297"; } .fa-wpforms:before { content: "\f298"; } .fa-envira:before { content: "\f299"; } .fa-universal-access:before { content: "\f29a"; } .fa-wheelchair-alt:before { content: "\f29b"; } .fa-question-circle-o:before { content: "\f29c"; } .fa-blind:before { content: "\f29d"; } .fa-audio-description:before { content: "\f29e"; } .fa-volume-control-phone:before { content: "\f2a0"; } .fa-braille:before { content: "\f2a1"; } .fa-assistive-listening-systems:before { content: "\f2a2"; } .fa-asl-interpreting:before, .fa-american-sign-language-interpreting:before { content: "\f2a3"; } .fa-deafness:before, .fa-hard-of-hearing:before, .fa-deaf:before { content: "\f2a4"; } .fa-glide:before { content: "\f2a5"; } .fa-glide-g:before { content: "\f2a6"; } .fa-signing:before, .fa-sign-language:before { content: "\f2a7"; } .fa-low-vision:before { content: "\f2a8"; } .fa-viadeo:before { content: "\f2a9"; } .fa-viadeo-square:before { content: "\f2aa"; } .fa-snapchat:before { content: "\f2ab"; } .fa-snapchat-ghost:before { content: "\f2ac"; } .fa-snapchat-square:before { content: "\f2ad"; } .fa-pied-piper:before { content: "\f2ae"; } .fa-first-order:before { content: "\f2b0"; } .fa-yoast:before { content: "\f2b1"; } .fa-themeisle:before { content: "\f2b2"; } .fa-google-plus-circle:before, .fa-google-plus-official:before { content: "\f2b3"; } .fa-fa:before, .fa-font-awesome:before { content: "\f2b4"; } .fa-handshake-o:before { content: "\f2b5"; } .fa-envelope-open:before { content: "\f2b6"; } .fa-envelope-open-o:before { content: "\f2b7"; } .fa-linode:before { content: "\f2b8"; } .fa-address-book:before { content: "\f2b9"; } .fa-address-book-o:before { content: "\f2ba"; } .fa-vcard:before, .fa-address-card:before { content: "\f2bb"; } .fa-vcard-o:before, .fa-address-card-o:before { content: "\f2bc"; } .fa-user-circle:before { content: "\f2bd"; } .fa-user-circle-o:before { content: "\f2be"; } .fa-user-o:before { content: "\f2c0"; } .fa-id-badge:before { content: "\f2c1"; } .fa-drivers-license:before, .fa-id-card:before { content: "\f2c2"; } .fa-drivers-license-o:before, .fa-id-card-o:before { content: "\f2c3"; } .fa-quora:before { content: "\f2c4"; } .fa-free-code-camp:before { content: "\f2c5"; } .fa-telegram:before { content: "\f2c6"; } .fa-thermometer-4:before, .fa-thermometer:before, .fa-thermometer-full:before { content: "\f2c7"; } .fa-thermometer-3:before, .fa-thermometer-three-quarters:before { content: "\f2c8"; } .fa-thermometer-2:before, .fa-thermometer-half:before { content: "\f2c9"; } .fa-thermometer-1:before, .fa-thermometer-quarter:before { content: "\f2ca"; } .fa-thermometer-0:before, .fa-thermometer-empty:before { content: "\f2cb"; } .fa-shower:before { content: "\f2cc"; } .fa-bathtub:before, .fa-s15:before, .fa-bath:before { content: "\f2cd"; } .fa-podcast:before { content: "\f2ce"; } .fa-window-maximize:before { content: "\f2d0"; } .fa-window-minimize:before { content: "\f2d1"; } .fa-window-restore:before { content: "\f2d2"; } .fa-times-rectangle:before, .fa-window-close:before { content: "\f2d3"; } .fa-times-rectangle-o:before, .fa-window-close-o:before { content: "\f2d4"; } .fa-bandcamp:before { content: "\f2d5"; } .fa-grav:before { content: "\f2d6"; } .fa-etsy:before { content: "\f2d7"; } .fa-imdb:before { content: "\f2d8"; } .fa-ravelry:before { content: "\f2d9"; } .fa-eercast:before { content: "\f2da"; } .fa-microchip:before { content: "\f2db"; } .fa-snowflake-o:before { content: "\f2dc"; } .fa-superpowers:before { content: "\f2dd"; } .fa-wpexplorer:before { content: "\f2de"; } .fa-meetup:before { content: "\f2e0"; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } ================================================ FILE: public/backend/js/core/app-menu.js ================================================ /*========================================================================================= File Name: app-menu.js Description: Menu navigation, custom scrollbar, hover scroll bar, multilevel menu initialization and manipulations ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; var vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', vh + "px"); $.app = $.app || {}; var $body = $('body'); var $window = $(window); var menuWrapper_el = $('div[data-menu="menu-wrapper"]').html(); var menuWrapperClasses = $('div[data-menu="menu-wrapper"]').attr('class'); // Main menu $.app.menu = { expanded: null, collapsed: null, hidden: null, container: null, horizontalMenu: false, manualScroller: { obj: null, init: function () { var scroll_theme = ($('.main-menu').hasClass('menu-dark')) ? 'light' : 'dark'; this.obj = new PerfectScrollbar(".main-menu-content", { suppressScrollX: true, wheelPropagation: false }); }, update: function () { if (this.obj) { // Scroll to currently active menu on page load if data-scroll-to-active is true if ($('.main-menu').data('scroll-to-active') === true) { var activeEl, menu, activeElHeight; activeEl = document.querySelector('.main-menu-content li.active'); if ($body.hasClass('menu-collapsed')) { if ($('.main-menu-content li.sidebar-group-active').length) { activeEl = document.querySelector('.main-menu-content li.sidebar-group-active'); } } else { menu = document.querySelector('.main-menu-content'); if (activeEl) { activeElHeight = activeEl.getBoundingClientRect().top + menu.scrollTop; } // If active element's top position is less than 2/3 (66%) of menu height than do not scroll if (activeElHeight > parseInt((menu.clientHeight * 2) / 3)) { var start = menu.scrollTop, change = activeElHeight - start - parseInt(menu.clientHeight / 2); } } setTimeout(function () { $.app.menu.container.stop().animate({ scrollTop: change }, 300); $('.main-menu').data('scroll-to-active', 'false'); }, 300); } this.obj.update(); } }, enable: function () { if (!$('.main-menu-content').hasClass('ps')) { this.init(); } }, disable: function () { if (this.obj) { this.obj.destroy(); } }, updateHeight: function () { if (($body.data('menu') == 'vertical-menu' || $body.data('menu') == 'vertical-menu-modern' || $body.data('menu') == 'vertical-overlay-menu') && $('.main-menu').hasClass('menu-fixed')) { $('.main-menu-content').css('height', $(window).height() - $('.header-navbar').height() - $('.main-menu-header').outerHeight() - $('.main-menu-footer').outerHeight()); this.update(); } } }, init: function (compactMenu) { if ($('.main-menu-content').length > 0) { this.container = $('.main-menu-content'); var menuObj = this; var defMenu = ''; if (compactMenu === true) { defMenu = 'collapsed'; } if ($body.data('menu') == 'vertical-menu-modern') { var menuToggle = ''; if (menuToggle === "false") { this.change('collapsed'); } else { this.change(defMenu); } } else { this.change(defMenu); } } }, drillDownMenu: function (screenSize) { if ($('.drilldown-menu').length) { if (screenSize == 'sm' || screenSize == 'xs') { if ($('#navbar-mobile').attr('aria-expanded') == 'true') { $('.drilldown-menu').slidingMenu({ backLabel: true }); } } else { $('.drilldown-menu').slidingMenu({ backLabel: true }); } } }, change: function (defMenu) { var currentBreakpoint = Unison.fetch.now(); // Current Breakpoint this.reset(); var menuType = $body.data('menu'); if (currentBreakpoint) { switch (currentBreakpoint.name) { case 'xl': if (menuType === 'vertical-overlay-menu') { this.hide(); } else { if (defMenu === 'collapsed') this.collapse(defMenu); else this.expand(); } break; case 'lg': if (menuType === 'vertical-overlay-menu' || menuType === 'vertical-menu-modern' || menuType === 'horizontal-menu') { this.hide(); } else { this.collapse(); } break; case 'md': case 'sm': this.hide(); break; case 'xs': this.hide(); break; } } // On the small and extra small screen make them overlay menu if (menuType === 'vertical-menu' || menuType === 'vertical-menu-modern') { this.toOverlayMenu(currentBreakpoint.name, menuType); } if ($body.is('.horizontal-layout') && !$body.hasClass('.horizontal-menu-demo')) { this.changeMenu(currentBreakpoint.name); $('.menu-toggle').removeClass('is-active'); } // Initialize drill down menu for vertical layouts, for horizontal layouts drilldown menu is intitialized in changemenu function if (menuType != 'horizontal-menu') { // Drill down menu // ------------------------------ this.drillDownMenu(currentBreakpoint.name); } // Dropdown submenu on large screen on hover For Large screen only // --------------------------------------------------------------- if (currentBreakpoint.name == 'xl') { $('body[data-open="hover"] .header-navbar .dropdown').on('mouseenter', function () { if (!($(this).hasClass('show'))) { $(this).addClass('show'); } else { $(this).removeClass('show'); } }).on('mouseleave', function (event) { $(this).removeClass('show'); }); $('body[data-open="hover"] .dropdown a').on('click', function (e) { if (menuType == 'horizontal-menu') { var $this = $(this); if ($this.hasClass('dropdown-toggle')) { return false; } } }); } // Added data attribute brand-center for navbar-brand-center // TODO:AJ: Shift this feature in JADE. if ($('.header-navbar').hasClass('navbar-brand-center')) { $('.header-navbar').attr('data-nav', 'brand-center'); } if (currentBreakpoint.name == 'sm' || currentBreakpoint.name == 'xs') { $('.header-navbar[data-nav=brand-center]').removeClass('navbar-brand-center'); } else { $('.header-navbar[data-nav=brand-center]').addClass('navbar-brand-center'); } // On screen width change, current active menu in horizontal if (currentBreakpoint.name == 'xl' && menuType == 'horizontal-menu') { $(".main-menu-content").find('li.active').parents('li').addClass('sidebar-group-active active'); } if (currentBreakpoint.name !== 'xl' && menuType == 'horizontal-menu') { $("#navbar-type").toggleClass('d-none d-xl-block'); } // Dropdown submenu on small screen on click // -------------------------------------------------- $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function (event) { if ($(this).siblings('ul.dropdown-menu').length > 0) { event.preventDefault(); } event.stopPropagation(); $(this).parent().siblings().removeClass('show'); $(this).parent().toggleClass('show'); }); // Horizontal layout submenu drawer scrollbar if (menuType == 'horizontal-menu') { $('li.dropdown-submenu').on('mouseenter', function () { if (!$(this).parent('.dropdown').hasClass('show')) { $(this).removeClass('openLeft'); } var dd = $(this).find('.dropdown-menu'); if (dd) { var pageHeight = $(window).height(), // ddTop = dd.offset().top, ddTop = $(this).position().top, ddLeft = dd.offset().left, ddWidth = dd.width(), ddHeight = dd.height(); if (((pageHeight - ddTop) - ddHeight - 28) < 1) { var maxHeight = (pageHeight - ddTop - 170); $(this).find('.dropdown-menu').css({ 'max-height': maxHeight + 'px', 'overflow-y': 'auto', 'overflow-x': 'hidden' }); var menu_content = new PerfectScrollbar('li.dropdown-submenu.show .dropdown-menu', { wheelPropagation: false }); } // Add class to horizontal sub menu if screen width is small if (ddLeft + ddWidth - (window.innerWidth - 16) >= 0) { $(this).addClass('openLeft'); } } }); $('.theme-layouts').find('.semi-dark').hide(); $('#customizer-navbar-colors').hide(); } // Horizontal Fixed Nav Sticky hight issue on small screens // if (menuType == 'horizontal-menu') { // if (currentBreakpoint.name == 'sm' || currentBreakpoint.name == 'xs') { // if ($(".menu-fixed").length) { // $(".menu-fixed").unstick(); // } // } // else { // if ($(".navbar-fixed").length) { // $(".navbar-fixed").sticky(); // } // } // } /******************************************** * Searchable Menu * ********************************************/ function searchMenu(list) { var input = $(".menu-search"); $(input) .change(function () { var filter = $(this).val(); if (filter) { // Hide Main Navigation Headers $('.navigation-header').hide(); // this finds all links in a list that contain the input, // and hide the ones not containing the input while showing the ones that do $(list).find("li a:not(:Contains(" + filter + "))").hide().parent().hide(); // $(list).find("li a:Contains(" + filter + ")").show().parents('li').show().addClass('open').closest('li').children('a').show(); var searchFilter = $(list).find("li a:Contains(" + filter + ")"); if (searchFilter.parent().hasClass('has-sub')) { searchFilter.show() .parents('li').show() .addClass('open') .closest('li') .children('a').show() .children('li').show(); // searchFilter.parents('li').find('li').show().children('a').show(); if (searchFilter.siblings('ul').length > 0) { searchFilter.siblings('ul').children('li').show().children('a').show(); } } else { searchFilter.show().parents('li').show().addClass('open').closest('li').children('a').show(); } } else { // return to default $('.navigation-header').show(); $(list).find("li a").show().parent().show().removeClass('open'); } $.app.menu.manualScroller.update(); return false; }) .keyup(function () { // fire the above change event after every letter $(this).change(); }); } if (menuType === 'vertical-menu' || menuType === 'vertical-overlay-menu') { // custom css expression for a case-insensitive contains() jQuery.expr[':'].Contains = function (a, i, m) { return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase()) >= 0; }; searchMenu($("#main-menu-navigation")); } }, transit: function (callback1, callback2) { var menuObj = this; $body.addClass('changing-menu'); callback1.call(menuObj); if ($body.hasClass('vertical-layout')) { if ($body.hasClass('menu-open') || $body.hasClass('menu-expanded')) { $('.menu-toggle').addClass('is-active'); // Show menu header search when menu is normally visible if ($body.data('menu') === 'vertical-menu') { if ($('.main-menu-header')) { $('.main-menu-header').show(); } } } else { $('.menu-toggle').removeClass('is-active'); // Hide menu header search when only menu icons are visible if ($body.data('menu') === 'vertical-menu') { if ($('.main-menu-header')) { $('.main-menu-header').hide(); } } } } setTimeout(function () { callback2.call(menuObj); $body.removeClass('changing-menu'); menuObj.update(); }, 500); }, open: function () { this.transit(function () { $body.removeClass('menu-hide menu-collapsed').addClass('menu-open'); this.hidden = false; this.expanded = true; if ($body.hasClass('vertical-overlay-menu')) { $('.sidenav-overlay').removeClass('d-none').addClass('d-block'); $('body').css('overflow', 'hidden'); } }, function () { if (!$('.main-menu').hasClass('menu-native-scroll') && $('.main-menu').hasClass('menu-fixed')) { this.manualScroller.enable(); $('.main-menu-content').css('height', $(window).height() - $('.header-navbar').height() - $('.main-menu-header').outerHeight() - $('.main-menu-footer').outerHeight()); // this.manualScroller.update(); } if (!$body.hasClass('vertical-overlay-menu')) { $('.sidenav-overlay').removeClass('d-block d-none'); $('body').css('overflow', 'auto'); } }); }, hide: function () { this.transit(function () { $body.removeClass('menu-open menu-expanded').addClass('menu-hide'); this.hidden = true; this.expanded = false; if ($body.hasClass('vertical-overlay-menu')) { $('.sidenav-overlay').removeClass('d-block').addClass('d-none'); $('body').css('overflow', 'auto'); } }, function () { if (!$('.main-menu').hasClass('menu-native-scroll') && $('.main-menu').hasClass('menu-fixed')) { this.manualScroller.enable(); } if (!$body.hasClass('vertical-overlay-menu')) { $('.sidenav-overlay').removeClass('d-block d-none'); $('body').css('overflow', 'auto'); } }); }, expand: function () { if (this.expanded === false) { if ($body.data('menu') == 'vertical-menu-modern') { $('.modern-nav-toggle').find('.toggle-icon') .removeClass('feather icon-circle').addClass('feather icon-disc'); } this.transit(function () { $body.removeClass('menu-collapsed').addClass('menu-expanded'); this.collapsed = false; this.expanded = true; $('.sidenav-overlay').removeClass('d-block d-none'); }, function () { if (($('.main-menu').hasClass('menu-native-scroll') || $body.data('menu') == 'horizontal-menu')) { this.manualScroller.disable(); } else { if ($('.main-menu').hasClass('menu-fixed')) this.manualScroller.enable(); } if (($body.data('menu') == 'vertical-menu' || $body.data('menu') == 'vertical-menu-modern') && $('.main-menu').hasClass('menu-fixed')) { $('.main-menu-content').css('height', $(window).height() - $('.header-navbar').height() - $('.main-menu-header').outerHeight() - $('.main-menu-footer').outerHeight()); // this.manualScroller.update(); } }); } }, collapse: function (defMenu) { if (this.collapsed === false) { if ($body.data('menu') == 'vertical-menu-modern') { $('.modern-nav-toggle').find('.toggle-icon') .removeClass('feather icon-disc').addClass('feather icon-circle'); } this.transit(function () { $body.removeClass('menu-expanded').addClass('menu-collapsed'); this.collapsed = true; this.expanded = false; $('.content-overlay').removeClass('d-block d-none'); }, function () { if (($body.data('menu') == 'horizontal-menu') && $body.hasClass('vertical-overlay-menu')) { if ($('.main-menu').hasClass('menu-fixed')) this.manualScroller.enable(); } if (($body.data('menu') == 'vertical-menu' || $body.data('menu') == 'vertical-menu-modern') && $('.main-menu').hasClass('menu-fixed')) { $('.main-menu-content').css('height', $(window).height() - $('.header-navbar').height()); // this.manualScroller.update(); } if ($body.data('menu') == 'vertical-menu-modern') { if ($('.main-menu').hasClass('menu-fixed')) this.manualScroller.enable(); } }); } }, toOverlayMenu: function (screen, menuType) { var menu = $body.data('menu'); if (menuType == 'vertical-menu-modern') { if (screen == 'lg' || screen == 'md' || screen == 'sm' || screen == 'xs') { if ($body.hasClass(menu)) { $body.removeClass(menu).addClass('vertical-overlay-menu'); } } else { if ($body.hasClass('vertical-overlay-menu')) { $body.removeClass('vertical-overlay-menu').addClass(menu); } } } else { if (screen == 'sm' || screen == 'xs') { if ($body.hasClass(menu)) { $body.removeClass(menu).addClass('vertical-overlay-menu'); } } else { if ($body.hasClass('vertical-overlay-menu')) { $body.removeClass('vertical-overlay-menu').addClass(menu); } } } }, changeMenu: function (screen) { // Replace menu html $('div[data-menu="menu-wrapper"]').html(''); $('div[data-menu="menu-wrapper"]').html(menuWrapper_el); var menuWrapper = $('div[data-menu="menu-wrapper"]'), menuContainer = $('div[data-menu="menu-container"]'), menuNavigation = $('ul[data-menu="menu-navigation"]'), /*megaMenu = $('li[data-menu="megamenu"]'), megaMenuCol = $('li[data-mega-col]'),*/ dropdownMenu = $('li[data-menu="dropdown"]'), dropdownSubMenu = $('li[data-menu="dropdown-submenu"]'); if (screen === 'xl') { // Change body classes $body.removeClass('vertical-layout vertical-overlay-menu fixed-navbar').addClass($body.data('menu')); // Remove navbar-fix-top class on large screens $('nav.header-navbar').removeClass('fixed-top'); // Change menu wrapper, menu container, menu navigation classes menuWrapper.removeClass().addClass(menuWrapperClasses); // Intitialize drill down menu for horizontal layouts // -------------------------------------------------- this.drillDownMenu(screen); $('a.dropdown-item.nav-has-children').on('click', function () { event.preventDefault(); event.stopPropagation(); }); $('a.dropdown-item.nav-has-parent').on('click', function () { event.preventDefault(); event.stopPropagation(); }); } else { // Change body classes $body.removeClass($body.data('menu')).addClass('vertical-layout vertical-overlay-menu fixed-navbar'); // Add navbar-fix-top class on small screens $('nav.header-navbar').addClass('fixed-top'); // Change menu wrapper, menu container, menu navigation classes menuWrapper.removeClass().addClass('main-menu menu-light menu-fixed menu-shadow'); // menuContainer.removeClass().addClass('main-menu-content'); menuNavigation.removeClass().addClass('navigation navigation-main'); // If Dropdown Menu dropdownMenu.removeClass('dropdown').addClass('has-sub'); dropdownMenu.find('a').removeClass('dropdown-toggle nav-link'); dropdownMenu.children('ul').find('a').removeClass('dropdown-item'); dropdownMenu.find('ul').removeClass('dropdown-menu'); dropdownSubMenu.removeClass().addClass('has-sub'); $.app.nav.init(); // Dropdown submenu on small screen on click // -------------------------------------------------- $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function (event) { event.preventDefault(); event.stopPropagation(); $(this).parent().siblings().removeClass('open'); $(this).parent().toggleClass('open'); }); $(".main-menu-content").find('li.active').parents('li').addClass('sidebar-group-active'); $(".main-menu-content").find("li.active").closest("li.nav-item").addClass("open"); } }, toggle: function () { var currentBreakpoint = Unison.fetch.now(); // Current Breakpoint var collapsed = this.collapsed; var expanded = this.expanded; var hidden = this.hidden; var menu = $body.data('menu'); switch (currentBreakpoint.name) { case 'xl': if (expanded === true) { if (menu == 'vertical-overlay-menu') { this.hide(); } else { this.collapse(); } } else { if (menu == 'vertical-overlay-menu') { this.open(); } else { this.expand(); } } break; case 'lg': if (expanded === true) { if (menu == 'vertical-overlay-menu' || menu == 'vertical-menu-modern' || menu == 'horizontal-menu') { this.hide(); } else { this.collapse(); } } else { if (menu == 'vertical-overlay-menu' || menu == 'vertical-menu-modern' || menu == 'horizontal-menu') { this.open(); } else { this.expand(); } } break; case 'md': case 'sm': if (hidden === true) { this.open(); } else { this.hide(); } break; case 'xs': if (hidden === true) { this.open(); } else { this.hide(); } break; } // Re-init sliding menu to update width this.drillDownMenu(currentBreakpoint.name); }, update: function () { this.manualScroller.update(); }, reset: function () { this.expanded = false; this.collapsed = false; this.hidden = false; $body.removeClass('menu-hide menu-open menu-collapsed menu-expanded'); }, }; // Navigation Menu $.app.nav = { container: $('.navigation-main'), initialized: false, navItem: $('.navigation-main').find('li').not('.navigation-category'), config: { speed: 300, }, init: function (config) { this.initialized = true; // Set to true when initialized $.extend(this.config, config); this.bind_events(); }, bind_events: function () { var menuObj = this; $('.navigation-main').on('mouseenter.app.menu', 'li', function () { var $this = $(this); $('.hover', '.navigation-main').removeClass('hover'); if ($body.hasClass('menu-collapsed') && $body.data('menu') != 'vertical-menu-modern') { $('.main-menu-content').children('span.menu-title').remove(); $('.main-menu-content').children('a.menu-title').remove(); $('.main-menu-content').children('ul.menu-content').remove(); // Title var menuTitle = $this.find('span.menu-title').clone(), tempTitle, tempLink; if (!$this.hasClass('has-sub')) { tempTitle = $this.find('span.menu-title').text(); tempLink = $this.children('a').attr('href'); if (tempTitle !== '') { menuTitle = $(""); menuTitle.attr("href", tempLink); menuTitle.attr("title", tempTitle); menuTitle.text(tempTitle); menuTitle.addClass("menu-title"); } } // menu_header_height = ($('.main-menu-header').length) ? $('.main-menu-header').height() : 0, // fromTop = menu_header_height + $this.position().top + parseInt($this.css( "border-top" ),10); var fromTop; if ($this.css("border-top")) { fromTop = $this.position().top + parseInt($this.css("border-top"), 10); } else { fromTop = $this.position().top; } if ($body.data('menu') !== 'vertical-compact-menu') { menuTitle.appendTo('.main-menu-content').css({ position: 'fixed', top: fromTop, }); } // Content if ($this.hasClass('has-sub') && $this.hasClass('nav-item')) { var menuContent = $this.children('ul:first'); menuObj.adjustSubmenu($this); } } $this.addClass('hover'); }).on('mouseleave.app.menu', 'li', function () { // $(this).removeClass('hover'); }).on('active.app.menu', 'li', function (e) { $(this).addClass('active'); e.stopPropagation(); }).on('deactive.app.menu', 'li.active', function (e) { $(this).removeClass('active'); e.stopPropagation(); }).on('open.app.menu', 'li', function (e) { var $listItem = $(this); $listItem.addClass('open'); menuObj.expand($listItem); // If menu collapsible then do not take any action if ($('.main-menu').hasClass('menu-collapsible')) { return false; } // If menu accordion then close all except clicked once else { $listItem.siblings('.open').find('li.open').trigger('close.app.menu'); $listItem.siblings('.open').trigger('close.app.menu'); } e.stopPropagation(); }).on('close.app.menu', 'li.open', function (e) { var $listItem = $(this); $listItem.removeClass('open'); menuObj.collapse($listItem); e.stopPropagation(); }).on('click.app.menu', 'li', function (e) { var $listItem = $(this); if ($listItem.is('.disabled')) { e.preventDefault(); } else { if ($body.hasClass('menu-collapsed') && $body.data('menu') != 'vertical-menu-modern') { e.preventDefault(); } else { if ($listItem.has('ul').length) { if ($listItem.is('.open')) { $listItem.trigger('close.app.menu'); } else { $listItem.trigger('open.app.menu'); } } else { if (!$listItem.is('.active')) { $listItem.siblings('.active').trigger('deactive.app.menu'); $listItem.trigger('active.app.menu'); } } } } e.stopPropagation(); }); $('.navbar-header, .main-menu').on('mouseenter', modernMenuExpand).on('mouseleave', modernMenuCollapse); function modernMenuExpand() { if ($body.data('menu') == 'vertical-menu-modern') { $('.main-menu, .navbar-header').addClass('expanded'); if ($body.hasClass('menu-collapsed')) { if ($('.main-menu li.open').length === 0) { $(".main-menu-content").find('li.active').parents('li').addClass('open'); } var $listItem = $('.main-menu li.menu-collapsed-open'), $subList = $listItem.children('ul'); $subList.hide().slideDown(200, function () { $(this).css('display', ''); }); $listItem.addClass('open').removeClass('menu-collapsed-open'); // $.app.menu.changeLogo('expand'); } } } function modernMenuCollapse() { if ($body.hasClass('menu-collapsed') && $body.data('menu') == 'vertical-menu-modern') { setTimeout(function () { if ($('.main-menu:hover').length === 0 && $('.navbar-header:hover').length === 0) { $('.main-menu, .navbar-header').removeClass('expanded'); if ($body.hasClass('menu-collapsed')) { var $listItem = $('.main-menu li.open'), $subList = $listItem.children('ul'); $listItem.addClass('menu-collapsed-open'); $subList.show().slideUp(200, function () { $(this).css('display', ''); }); $listItem.removeClass('open'); // $.app.menu.changeLogo(); } } }, 1); } } $('.main-menu-content').on('mouseleave', function () { if ($body.hasClass('menu-collapsed')) { $('.main-menu-content').children('span.menu-title').remove(); $('.main-menu-content').children('a.menu-title').remove(); $('.main-menu-content').children('ul.menu-content').remove(); } $('.hover', '.navigation-main').removeClass('hover'); }); // If list item has sub menu items then prevent redirection. $('.navigation-main li.has-sub > a').on('click', function (e) { e.preventDefault(); }); $('ul.menu-content').on('click', 'li', function (e) { var $listItem = $(this); if ($listItem.is('.disabled')) { e.preventDefault(); } else { if ($listItem.has('ul')) { if ($listItem.is('.open')) { $listItem.removeClass('open'); menuObj.collapse($listItem); } else { $listItem.addClass('open'); menuObj.expand($listItem); // If menu collapsible then do not take any action if ($('.main-menu').hasClass('menu-collapsible')) { return false; } // If menu accordion then close all except clicked once else { $listItem.siblings('.open').find('li.open').trigger('close.app.menu'); $listItem.siblings('.open').trigger('close.app.menu'); } e.stopPropagation(); } } else { if (!$listItem.is('.active')) { $listItem.siblings('.active').trigger('deactive.app.menu'); $listItem.trigger('active.app.menu'); } } } e.stopPropagation(); }); }, /** * Ensure an admin submenu is within the visual viewport. * @param {jQuery} $menuItem The parent menu item containing the submenu. */ adjustSubmenu: function ($menuItem) { var menuHeaderHeight, menutop, topPos, winHeight, bottomOffset, subMenuHeight, popOutMenuHeight, borderWidth, scroll_theme, $submenu = $menuItem.children('ul:first'), ul = $submenu.clone(true); menuHeaderHeight = $('.main-menu-header').height(); menutop = $menuItem.position().top; winHeight = $window.height() - $('.header-navbar').height(); borderWidth = 0; subMenuHeight = $submenu.height(); if (parseInt($menuItem.css("border-top"), 10) > 0) { borderWidth = parseInt($menuItem.css("border-top"), 10); } popOutMenuHeight = winHeight - menutop - $menuItem.height() - 30; scroll_theme = ($('.main-menu').hasClass('menu-dark')) ? 'light' : 'dark'; topPos = menutop + $menuItem.height() + borderWidth; ul.addClass('menu-popout').appendTo('.main-menu-content').css({ 'top': topPos, 'position': 'fixed', 'max-height': popOutMenuHeight, }); var menu_content = new PerfectScrollbar('.main-menu-content > ul.menu-content', { wheelPropagation: false }); }, collapse: function ($listItem, callback) { var $subList = $listItem.children('ul'); $subList.show().slideUp($.app.nav.config.speed, function () { $(this).css('display', ''); $(this).find('> li').removeClass('is-shown'); if (callback) { callback(); } $.app.nav.container.trigger('collapsed.app.menu'); }); }, expand: function ($listItem, callback) { var $subList = $listItem.children('ul'); var $children = $subList.children('li').addClass('is-hidden'); $subList.hide().slideDown($.app.nav.config.speed, function () { $(this).css('display', ''); if (callback) { callback(); } $.app.nav.container.trigger('expanded.app.menu'); }); setTimeout(function () { $children.addClass('is-shown'); $children.removeClass('is-hidden'); }, 0); }, refresh: function () { $.app.nav.container.find('.open').removeClass('open'); }, }; })(window, document, jQuery); // We listen to the resize event window.addEventListener('resize', function() { // We execute the same script as before var vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', vh + "px"); }); ================================================ FILE: public/backend/js/core/app.js ================================================ /*========================================================================================= File Name: app.js Description: Template related app JS. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { "use strict"; var $html = $("html"); var $body = $("body"); var $danger = "#ea5455"; var $primary = "#7367f0"; var $textcolor = "#4e5154"; $(window).on("load", function () { var rtl; var compactMenu = false; // Set it to true, if you want default menu to be compact if ($body.hasClass("menu-collapsed")) { compactMenu = true; } if ($("html").data("textdirection") == "rtl") { rtl = true; } setTimeout(function () { $html.removeClass("loading").addClass("loaded"); }, 1200); $.app.menu.init(compactMenu); // Navigation configurations var config = { speed: 300 // set speed to expand / collpase menu }; if ($.app.nav.initialized === false) { $.app.nav.init(config); } Unison.on("change", function (bp) { $.app.menu.change(); }); // Tooltip Initialization $('[data-toggle="tooltip"]').tooltip({ container: "body" }); // Top Navbars - Hide on Scroll if ($(".navbar-hide-on-scroll").length > 0) { $(".navbar-hide-on-scroll.fixed-top").headroom({ offset: 205, tolerance: 5, classes: { // when element is initialised initial: "headroom", // when scrolling up pinned: "headroom--pinned-top", // when scrolling down unpinned: "headroom--unpinned-top" } }); // Bottom Navbars - Hide on Scroll $(".navbar-hide-on-scroll.fixed-bottom").headroom({ offset: 205, tolerance: 5, classes: { // when element is initialised initial: "headroom", // when scrolling up pinned: "headroom--pinned-bottom", // when scrolling down unpinned: "headroom--unpinned-bottom" } }); } // Collapsible Card $('a[data-action="collapse"]').on("click", function (e) { e.preventDefault(); $(this) .closest(".card") .children(".card-content") .collapse("toggle"); // Adding bottom padding on card collapse $(this) .closest(".card") .children(".card-header") .css("padding-bottom", "1.5rem"); $(this) .closest(".card") .find('[data-action="collapse"]') .toggleClass("rotate"); }); // Toggle fullscreen $('a[data-action="expand"]').on("click", function (e) { e.preventDefault(); $(this) .closest(".card") .find('[data-action="expand"] i') .toggleClass("icon-maximize icon-minimize"); $(this) .closest(".card") .toggleClass("card-fullscreen"); }); // Notifications & messages scrollable $(".scrollable-container").each(function () { var scrollable_container = new PerfectScrollbar($(this)[0], { wheelPropagation: false }); }); // Reload Card $('a[data-action="reload"]').on("click", function () { var block_ele = $(this) .closest(".card") .find(".card-content"); var reloadActionOverlay; if ($body.hasClass("dark-layout")) { var reloadActionOverlay = "#10163a"; } else { var reloadActionOverlay = "#fff"; } // Block Element block_ele.block({ message: '
', timeout: 2000, //unblock after 2 seconds overlayCSS: { backgroundColor: reloadActionOverlay, cursor: "wait" }, css: { border: 0, padding: 0, backgroundColor: "none" } }); }); // Close Card $('a[data-action="close"]').on("click", function () { $(this).closest(".card").removeClass().slideUp("fast"); }); // Match the height of each card in a row setTimeout(function () { $(".row.match-height").each(function () { $(this).find(".card").not(".card .card").matchHeight(); // Not .card .card prevents collapsible cards from taking height }); }, 500); $('.card .heading-elements a[data-action="collapse"]').on( "click", function () { var $this = $(this), card = $this.closest(".card"); var cardHeight; if (parseInt(card[0].style.height, 10) > 0) { cardHeight = card.css("height"); card.css("height", "").attr("data-height", cardHeight); } else { if (card.data("height")) { cardHeight = card.data("height"); card.css("height", cardHeight).attr("data-height", ""); } } } ); // Add sidebar group active class to active menu $(".main-menu-content").find("li.active").parents("li").addClass("sidebar-group-active"); // Add open class to parent list item if subitem is active except compact menu var menuType = $body.data("menu"); if (menuType != "horizontal-menu" && compactMenu === false) { $(".main-menu-content").find("li.active").parents("li").addClass("open"); } if (menuType == "horizontal-menu") { $(".main-menu-content").find("li.active").parents("li:not(.nav-item)").addClass("open"); $(".main-menu-content").find('li.active').closest('li.nav-item').addClass('sidebar-group-active open'); // $(".main-menu-content") // .find("li.active") // .parents("li") // .addClass("active"); } //card heading actions buttons small screen support $(".heading-elements-toggle").on("click", function () { $(this) .next(".heading-elements") .toggleClass("visible"); }); // Dynamic height for the chartjs div for the chart animations to work var chartjsDiv = $(".chartjs"), canvasHeight = chartjsDiv.children("canvas").attr("height"), mainMenu = $(".main-menu"); chartjsDiv.css("height", canvasHeight); if ($body.hasClass("boxed-layout")) { if ($body.hasClass("vertical-overlay-menu")) { var menuWidth = mainMenu.width(); var contentPosition = $(".app-content").position().left; var menuPositionAdjust = contentPosition - menuWidth; if ($body.hasClass("menu-flipped")) { mainMenu.css("right", menuPositionAdjust + "px"); } else { mainMenu.css("left", menuPositionAdjust + "px"); } } } //Custom File Input $(".custom-file input").change(function (e) { $(this) .next(".custom-file-label") .html(e.target.files[0].name); }); /* Text Area Counter Set Start */ $(".char-textarea").on("keyup", function (event) { checkTextAreaMaxLength(this, event); // to later change text color in dark layout $(this).addClass("active"); }); /* Checks the MaxLength of the Textarea ----------------------------------------------------- @prerequisite: textBox = textarea dom element e = textarea event length = Max length of characters */ function checkTextAreaMaxLength(textBox, e) { var maxLength = parseInt($(textBox).data("length")), counterValue = $(".counter-value"), charTextarea = $(".char-textarea"); if (!checkSpecialKeys(e)) { if (textBox.value.length < maxLength - 1) textBox.value = textBox.value.substring(0, maxLength); } $(".char-count").html(textBox.value.length); if (textBox.value.length > maxLength) { counterValue.css("background-color", $danger); charTextarea.css("color", $danger); // to change text color after limit is maxedout out charTextarea.addClass("max-limit"); } else { counterValue.css("background-color", $primary); charTextarea.css("color", $textcolor); charTextarea.removeClass("max-limit"); } return true; } /* Checks if the keyCode pressed is inside special chars ------------------------------------------------------- @prerequisite: e = e.keyCode object for the key pressed */ function checkSpecialKeys(e) { if ( e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40 ) return false; else return true; } $(".content-overlay").on("click", function () { $(".search-list").removeClass("show"); $(".app-content").removeClass("show-overlay"); $(".bookmark-wrapper .bookmark-input").removeClass("show"); }); // To show shadow in main menu when menu scrolls var container = document.getElementsByClassName("main-menu-content"); if (container.length > 0) { container[0].addEventListener("ps-scroll-y", function () { if ( $(this) .find(".ps__thumb-y") .position().top > 0 ) { $(".shadow-bottom").css("display", "block"); } else { $(".shadow-bottom").css("display", "none"); } }); } }); // Hide overlay menu on content overlay click on small screens $(document).on("click", ".sidenav-overlay", function (e) { // Hide menu $.app.menu.hide(); return false; }); // Execute below code only if we find hammer js for touch swipe feature on small screen if (typeof Hammer !== "undefined") { // Swipe menu gesture var swipeInElement = document.querySelector(".drag-target"); if ($(swipeInElement).length > 0) { var swipeInMenu = new Hammer(swipeInElement); swipeInMenu.on("panright", function (ev) { if ($body.hasClass("vertical-overlay-menu")) { $.app.menu.open(); return false; } }); } // menu swipe out gesture setTimeout(function () { var swipeOutElement = document.querySelector(".main-menu"); var swipeOutMenu; if ($(swipeOutElement).length > 0) { swipeOutMenu = new Hammer(swipeOutElement); swipeOutMenu.get("pan").set({ direction: Hammer.DIRECTION_ALL, threshold: 100 }); swipeOutMenu.on("panleft", function (ev) { if ($body.hasClass("vertical-overlay-menu")) { $.app.menu.hide(); return false; } }); } }, 300); // menu overlay swipe out gestrue var swipeOutOverlayElement = document.querySelector(".sidenav-overlay"); if ($(swipeOutOverlayElement).length > 0) { var swipeOutOverlayMenu = new Hammer(swipeOutOverlayElement); swipeOutOverlayMenu.on("panleft", function (ev) { if ($body.hasClass("vertical-overlay-menu")) { $.app.menu.hide(); return false; } }); } } $(document).on("click", ".menu-toggle, .modern-nav-toggle", function (e) { e.preventDefault(); // Toggle menu $.app.menu.toggle(); setTimeout(function () { $(window).trigger("resize"); }, 200); if ($("#collapse-sidebar-switch").length > 0) { setTimeout(function () { if ($body.hasClass("menu-expanded") || $body.hasClass("menu-open")) { $("#collapse-sidebar-switch").prop("checked", false); } else { $("#collapse-sidebar-switch").prop("checked", true); } }, 50); } // Hides dropdown on click of menu toggle // $('[data-toggle="dropdown"]').dropdown('hide'); // Hides collapse dropdown on click of menu toggle if ( $(".vertical-overlay-menu .navbar-with-menu .navbar-container .navbar-collapse").hasClass("show") ) { $(".vertical-overlay-menu .navbar-with-menu .navbar-container .navbar-collapse").removeClass("show"); } return false; }); // Add Children Class $(".navigation") .find("li") .has("ul") .addClass("has-sub"); $(".carousel").carousel({ interval: 2000 }); // Page full screen $(".nav-link-expand").on("click", function (e) { if (typeof screenfull != "undefined") { if (screenfull.isEnabled) { screenfull.toggle(); } } }); if (typeof screenfull != "undefined") { if (screenfull.isEnabled) { $(document).on(screenfull.raw.fullscreenchange, function () { if (screenfull.isFullscreen) { $(".nav-link-expand") .find("i") .toggleClass("icon-minimize icon-maximize"); $("html").addClass("full-screen"); } else { $(".nav-link-expand") .find("i") .toggleClass("icon-maximize icon-minimize"); $("html").removeClass("full-screen"); } }); } } $(document).ready(function () { /********************************** * Form Wizard Step Icon **********************************/ $(".step-icon").each(function () { var $this = $(this); if ($this.siblings("span.step").length > 0) { $this.siblings("span.step").empty(); $(this).appendTo($(this).siblings("span.step")); } }); }); // Update manual scroller when window is resized $(window).resize(function () { $.app.menu.manualScroller.updateHeight(); }); $("#sidebar-page-navigation").on("click", "a.nav-link", function (e) { e.preventDefault(); e.stopPropagation(); var $this = $(this), href = $this.attr("href"); var offset = $(href).offset(); var scrollto = offset.top - 80; // minus fixed header height $("html, body").animate({ scrollTop: scrollto }, 0 ); setTimeout(function () { $this .parent(".nav-item") .siblings(".nav-item") .children(".nav-link") .removeClass("active"); $this.addClass("active"); }, 100); }); // main menu internationalization // init i18n and load language file i18next.use(window.i18nextXHRBackend).init({ debug: false, fallbackLng: "en", backend: { loadPath: "../../../app-assets/data/locales/{{lng}}.json" }, returnObjects: true }, function (err, t) { // resources have been loaded jqueryI18next.init(i18next, $); } ); // change language according to data-language of dropdown item $(".dropdown-language .dropdown-item").on("click", function () { var $this = $(this); $this.siblings(".selected").removeClass("selected"); $this.addClass("selected"); var selectedLang = $this.text(); var selectedFlag = $this.find(".flag-icon").attr("class"); $("#dropdown-flag .selected-language").text(selectedLang); $("#dropdown-flag .flag-icon") .removeClass() .addClass(selectedFlag); var currentLanguage = $this.data("language"); i18next.changeLanguage(currentLanguage, function (err, t) { $(".main-menu, .horizontal-menu-wrapper").localize(); }); }); /********************* Bookmark & Search ***********************/ // This variable is used for mouseenter and mouseleave events of search list var $filename = $(".search-input input").data("search"), bookmarkWrapper = $(".bookmark-wrapper"), bookmarkStar = $(".bookmark-wrapper .bookmark-star"), bookmarkInput = $(".bookmark-wrapper .bookmark-input"), navLinkSearch = $(".nav-link-search"), searchInput = $(".search-input"), searchInputInputfield = $(".search-input input"), searchList = $(".search-input .search-list"), appContent = $(".app-content"), bookmarkSearchList = $(".bookmark-input .search-list"); // Bookmark icon click bookmarkStar.on("click", function (e) { e.stopPropagation(); bookmarkInput.toggleClass("show"); bookmarkInput.find("input").val(""); bookmarkInput.find("input").blur(); bookmarkInput.find("input").focus(); bookmarkWrapper.find(".search-list").addClass("show"); var arrList = $("ul.nav.navbar-nav.bookmark-icons li"), $arrList = "", $activeItemClass = ""; $("ul.search-list li").remove(); for (var i = 0; i < arrList.length; i++) { if (i === 0) { $activeItemClass = "current_item"; } else { $activeItemClass = ""; } $arrList += '
  • ' + '' + '' + "" + arrList[i].firstChild.dataset.originalTitle + "" + "" + '' + "" + "
  • "; } $("ul.search-list").append($arrList); }); // Navigation Search area Open navLinkSearch.on("click", function () { var $this = $(this); var searchInput = $(this).parent(".nav-search").find(".search-input"); searchInput.addClass("open"); searchInputInputfield.focus(); searchList.find("li").remove(); bookmarkInput.removeClass("show"); }); // Navigation Search area Close $(".search-input-close i").on("click", function () { var $this = $(this), searchInput = $(this).closest(".search-input"); if (searchInput.hasClass("open")) { searchInput.removeClass("open"); searchInputInputfield.val(""); searchInputInputfield.blur(); searchList.removeClass("show"); appContent.removeClass("show-overlay"); } }); // Filter if ($('.search-list-main').length) { var searchListMain = new PerfectScrollbar(".search-list-main", { wheelPropagation: false }); } if ($('.search-list-bookmark').length) { var searchListBookmark = new PerfectScrollbar(".search-list-bookmark", { wheelPropagation: false }); } // update Perfect Scrollbar on hover $(".search-list-main").mouseenter(function () { searchListMain.update(); }); searchInputInputfield.on("keyup", function (e) { $(this).closest(".search-list").addClass("show"); if (e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 13) { if (e.keyCode == 27) { appContent.removeClass("show-overlay"); bookmarkInput.find("input").val(""); bookmarkInput.find("input").blur(); searchInputInputfield.val(""); searchInputInputfield.blur(); searchInput.removeClass("open"); if (searchInput.hasClass("show")) { $(this).removeClass("show"); searchInput.removeClass("show"); } } // Define variables var value = $(this).val().toLowerCase(), //get values of input on keyup activeClass = "", bookmark = false, liList = $("ul.search-list li"); // get all the list items of the search liList.remove(); // To check if current is bookmark input if ( $(this) .parent() .hasClass("bookmark-input") ) { bookmark = true; } // If input value is blank if (value != "") { appContent.addClass("show-overlay"); // condition for bookmark and search input click if (bookmarkInput.focus()) { bookmarkSearchList.addClass("show"); } else { searchList.addClass("show"); bookmarkSearchList.removeClass("show"); } if (bookmark === false) { searchList.addClass("show"); bookmarkSearchList.removeClass("show"); } var $startList = "", $otherList = "", $htmlList = "", $bookmarkhtmlList = "", $pageList = '
  • ' + '' + '
    Pages
    ' + '
    ' + '
  • ', $activeItemClass = "", $bookmarkIcon = "", $defaultList = "", a = 0; // getting json data from file for search results $.getJSON("../../../app-assets/data/" + $filename + ".json", function ( data ) { for (var i = 0; i < data.listItems.length; i++) { // if current is bookmark then give class to star icon if (bookmark === true) { activeClass = ""; // resetting active bookmark class var arrList = $("ul.nav.navbar-nav.bookmark-icons li"), $arrList = ""; // Loop to check if current seach value match with the bookmarks already there in navbar for (var j = 0; j < arrList.length; j++) { if ( data.listItems[i].name === arrList[j].firstChild.dataset.originalTitle ) { activeClass = " warning"; break; } else { activeClass = ""; } } $bookmarkIcon = ''; } // Search list item start with entered letters and create list if ( data.listItems[i].name.toLowerCase().indexOf(value) == 0 && a < 5 ) { if (a === 0) { $activeItemClass = "current_item"; } else { $activeItemClass = ""; } $startList += '
  • ' + '' + '' + "" + data.listItems[i].name + "" + "" + $bookmarkIcon + "" + "
  • "; a++; } } for (var i = 0; i < data.listItems.length; i++) { if (bookmark === true) { activeClass = ""; // resetting active bookmark class var arrList = $("ul.nav.navbar-nav.bookmark-icons li"), $arrList = ""; // Loop to check if current seach value match with the bookmarks already there in navbar for (var j = 0; j < arrList.length; j++) { if ( data.listItems[i].name === arrList[j].firstChild.dataset.originalTitle ) { activeClass = " warning"; } else { activeClass = ""; } } $bookmarkIcon = ''; } // Search list item not start with letters and create list if ( !(data.listItems[i].name.toLowerCase().indexOf(value) == 0) && data.listItems[i].name.toLowerCase().indexOf(value) > -1 && a < 5 ) { if (a === 0) { $activeItemClass = "current_item"; } else { $activeItemClass = ""; } $otherList += '
  • ' + '' + '' + "" + data.listItems[i].name + "" + "" + $bookmarkIcon + "" + "
  • "; a++; } } $defaultList = $(".main-search-list-defaultlist").html(); if ($startList == "" && $otherList == "") { $otherList = $(".main-search-list-defaultlist-other-list").html(); } // concatinating startlist, otherlist, defalutlist with pagelist $htmlList = $pageList.concat($startList, $otherList, $defaultList); $("ul.search-list").html($htmlList); // concatinating otherlist with startlist $bookmarkhtmlList = $startList.concat($otherList); $("ul.search-list-bookmark").html($bookmarkhtmlList); }); } else { if (bookmark === true) { var arrList = $("ul.nav.navbar-nav.bookmark-iconss li"), $arrList = ""; for (var i = 0; i < arrList.length; i++) { if (i === 0) { $activeItemClass = "current_item"; } else { $activeItemClass = ""; } $arrList += '
  • ' + '' + '' + "" + arrList[i].firstChild.dataset.originalTitle + "" + "" + '' + "" + "
  • "; } $("ul.search-list").append($arrList); } else { // if search input blank, hide overlay if (appContent.hasClass("show-overlay")) { appContent.removeClass("show-overlay"); } // If filter box is empty if (searchList.hasClass("show")) { searchList.removeClass("show"); } } } } }); // Add class on hover of the list $(document).on("mouseenter", ".search-list li", function (e) { $(this) .siblings() .removeClass("current_item"); $(this).addClass("current_item"); }); $(document).on("click", ".search-list li", function (e) { e.stopPropagation(); }); $("html").on("click", function ($this) { if (!$($this.target).hasClass("bookmark-icon")) { if (bookmarkSearchList.hasClass("show")) { bookmarkSearchList.removeClass("show"); } if (bookmarkInput.hasClass("show")) { bookmarkInput.removeClass("show"); } } }); // Prevent closing bookmark dropdown on input textbox click $(document).on("click", ".bookmark-input input", function (e) { bookmarkInput.addClass("show"); bookmarkSearchList.addClass("show"); }); // Favorite star click $(document).on("click", ".bookmark-input .search-list .bookmark-icon", function (e) { e.stopPropagation(); if ($(this).hasClass("warning")) { $(this).removeClass("warning"); var arrList = $("ul.nav.navbar-nav.bookmark-icons li"); for (var i = 0; i < arrList.length; i++) { if ( arrList[i].firstChild.dataset.originalTitle == $(this).parent()[0].innerText ) { arrList[i].remove(); } } e.preventDefault(); } else { var arrList = $("ul.nav.navbar-nav.bookmark-icons li"); $(this).addClass("warning"); e.preventDefault(); var $url = $(this).parent()[0].href, $name = $(this).parent()[0].innerText, $icon = $(this).parent()[0].firstChild.firstChild.dataset.icon, $listItem = "", $listItemDropdown = ""; $listItem = '"; $("ul.nav.bookmark-icons").append($listItem); $('[data-toggle="tooltip"]').tooltip(); } }); // If we use up key(38) Down key (40) or Enter key(13) $(window).on("keydown", function (e) { var $current = $(".search-list li.current_item"), $next, $prev; if (e.keyCode === 40) { $next = $current.next(); $current.removeClass("current_item"); $current = $next.addClass("current_item"); } else if (e.keyCode === 38) { $prev = $current.prev(); $current.removeClass("current_item"); $current = $prev.addClass("current_item"); } if (e.keyCode === 13 && $(".search-list li.current_item").length > 0) { var selected_item = $(".search-list li.current_item a"); window.location = selected_item.attr("href"); $(selected_item).trigger("click"); } }); // Waves Effect Waves.init(); Waves.attach(".btn", ["waves-light"]); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/ag-grid/ag-grid.js ================================================ /*========================================================================================= File Name: ag-grid.js Description: Aggrid Table -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { /*** COLUMN DEFINE ***/ var columnDefs = [ { headerName: "First Name", field: "firstname", editable: true, sortable: true, filter: true, width: 175, filter: true, checkboxSelection: true, headerCheckboxSelectionFilteredOnly: true, headerCheckboxSelection: true }, { headerName: "Last Name", field: "lastname", editable: true, sortable: true, filter: true, width: 175 }, { headerName: "Company", field: "company", editable: true, sortable: true, filter: true, width: 250 }, { headerName: "City", field: "city", editable: true, sortable: true, filter: true, width: 125 }, { headerName: "Country", field: "country", editable: true, sortable: true, filter: true, width: 150 }, { headerName: "State", field: "state", editable: true, sortable: true, filter: true, width: 125 }, { headerName: "Zip", field: "zip", editable: true, sortable: true, filter: true, width: 125 }, { headerName: "Email", field: "email", editable: true, sortable: true, filter: true, width: 260, pinned: "left" }, { headerName: "Followers", field: "followers", editable: true, sortable: true, filter: true, width: 150 } ]; /*** GRID OPTIONS ***/ var gridOptions = { columnDefs: columnDefs, rowSelection: "multiple", floatingFilter: true, filter: true, pagination: true, paginationPageSize: 20, pivotPanelShow: "always", colResizeDefault: "shift", animateRows: true, resizable: true }; /*** DEFINED TABLE VARIABLE ***/ var gridTable = document.getElementById("myGrid"); /*** GET TABLE DATA FROM URL ***/ agGrid .simpleHttpRequest({ url: "../../../app-assets/data/ag-grid-data.json" }) .then(function(data) { gridOptions.api.setRowData(data); }); /*** FILTER TABLE ***/ function updateSearchQuery(val) { gridOptions.api.setQuickFilter(val); } $(".ag-grid-filter").on("keyup", function() { updateSearchQuery($(this).val()); }); /*** CHANGE DATA PER PAGE ***/ function changePageSize(value) { gridOptions.api.paginationSetPageSize(Number(value)); } $(".sort-dropdown .dropdown-item").on("click", function() { var $this = $(this); changePageSize($this.text()); $(".filter-btn").text("1 - " + $this.text() + " of 500"); }); /*** EXPORT AS CSV BTN ***/ $(".ag-grid-export-btn").on("click", function(params) { gridOptions.api.exportDataAsCsv(); }); /*** INIT TABLE ***/ new agGrid.Grid(gridTable, gridOptions); /*** SET OR REMOVE EMAIL AS PINNED DEPENDING ON DEVICE SIZE ***/ if ($(window).width() < 768) { gridOptions.columnApi.setColumnPinned("email", null); } else { gridOptions.columnApi.setColumnPinned("email", "left"); } $(window).on("resize", function() { if ($(window).width() < 768) { gridOptions.columnApi.setColumnPinned("email", null); } else { gridOptions.columnApi.setColumnPinned("email", "left"); } }); }); ================================================ FILE: public/backend/js/scripts/cards/card-analytics.js ================================================ /*========================================================================================= File Name: card-statistics.js Description: Card-statistics page content with Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function(){ var $primary = '#7367F0'; var $danger = '#EA5455'; var $warning = '#FF9F43'; var $info = '#00cfe8'; var $success = '#00db89'; var $primary_light = '#9c8cfc'; var $warning_light = '#FFC085'; var $danger_light = '#f29292'; var $info_light = '#1edec5'; var $strok_color = '#b9c3cd'; var $label_color = '#e7eef7'; var $purple = '#df87f2'; var $white = '#fff'; // Session Chart // ---------------------------------- var sessionChartoptions = { chart: { type: 'donut', height: 315, toolbar: { show: false } }, dataLabels: { enabled: false }, series: [58.6, 34.9, 6.5], legend: { show: false }, comparedResult: [2, -3, 8], labels: ['Desktop', 'Mobile', 'Tablet'], stroke: { width: 0 }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { gradientToColors: [$primary_light, $warning_light, $danger_light] } } } var sessionChart = new ApexCharts( document.querySelector("#session-chart"), sessionChartoptions ); sessionChart.render(); // Product Order Chart // ----------------------------- var orderChartoptions = { chart: { height: 325, type: 'radialBar', }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { // enabled: true, shade: 'dark', type: 'vertical', shadeIntensity: 0.5, gradientToColors: [$primary_light, $warning_light, $danger_light], inverseColors: false, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, stroke: { lineCap: 'round' }, plotOptions: { radialBar: { size: 150, hollow: { size: '20%' }, track: { strokeWidth: '100%', margin: 15, }, dataLabels: { name: { fontSize: '18px', }, value: { fontSize: '16px', }, total: { show: true, label: 'Total', formatter: function (w) { // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function return 42459 } } } } }, series: [70, 52, 26], labels: ['Finished', 'Pending', 'Rejected'], } var orderChart = new ApexCharts( document.querySelector("#product-order-chart"), orderChartoptions ); orderChart.render(); // Customer Chart // ----------------------------- var customerChartoptions = { chart: { type: 'pie', height: 325, dropShadow: { enabled: false, blur: 5, left: 1, top: 1, opacity: 0.2 }, toolbar: { show: false } }, labels: ['New', 'Returning', 'Referrals'], series: [690, 258, 149], dataLabels: { enabled: false }, legend: { show: false }, stroke: { width: 5 }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { gradientToColors: [$primary_light, $warning_light, $danger_light] } } } var customerChart = new ApexCharts( document.querySelector("#customer-chart"), customerChartoptions ); customerChart.render(); // Sales Chart // ----------------------------- var salesChartoptions = { chart: { height: 300, type: 'radar', dropShadow: { enabled: true, blur: 8, left: 1, top: 1, opacity: 0.2 }, toolbar: { show: false } }, toolbar: { show: false }, series: [{ name: 'Sales', data: [90, 50, 86, 40, 100, 20], }, { name: 'Visit', data: [70, 75, 70, 76, 20, 85], }], stroke: { width: 0 }, colors: [$primary, $info], plotOptions: { radar: { polygons: { strokeColors: [$strok_color, 'transparent', 'transparent', 'transparent', 'transparent', 'transparent'], connectorColors: 'transparent' } } }, fill: { type: 'gradient', gradient: { shade: 'dark', gradientToColors: ['#9f8ed7', $info_light], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 0, }, legend: { show: false, }, labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], dataLabels: { style: { colors: [$strok_color, $strok_color, $strok_color, $strok_color, $strok_color, $strok_color] } }, yaxis: { show: false, }, grid: { show: false, }, } var salesChart = new ApexCharts( document.querySelector("#sales-chart"), salesChartoptions ); salesChart.render(); // Support Tracker Chart // ----------------------------- var supportChartoptions = { chart: { height: 270, type: 'radialBar', sparkline:{ enabled: false, } }, plotOptions: { radialBar: { size: 150, offsetY: 20, startAngle: -150, endAngle: 150, hollow: { size: '65%', }, track: { background: $white, strokeWidth: '100%', }, dataLabels: { value: { offsetY: 30, color: '#99a2ac', fontSize: '2rem' } } }, }, colors: [$danger], fill: { type: 'gradient', gradient: { // enabled: true, shade: 'dark', type: 'horizontal', shadeIntensity: 0.5, gradientToColors: [$primary], inverseColors: true, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, stroke: { dashArray: 8 }, series: [83], labels: ['Completed Tickets'], } var supportChart = new ApexCharts( document.querySelector("#support-tracker-chart"), supportChartoptions ); supportChart.render(); // Revenue Chart // ----------------------------- var revenueChartoptions = { chart: { height: 260, toolbar: { show: false }, type: 'line', }, stroke: { curve: 'smooth', dashArray: [0, 8], width: [4, 2], }, grid: { borderColor: $label_color, }, legend: { show: false, }, colors: [$danger_light, $strok_color], fill: { type: 'gradient', gradient: { shade: 'dark', inverseColors: false, gradientToColors: [$primary, $strok_color], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 0, hover: { size: 5 } }, xaxis: { labels: { style: { colors: $strok_color, } }, axisTicks: { show: false, }, categories: ['01', '05', '09', '13', '17', '21', '26', '31'], axisBorder: { show: false, }, tickPlacement: 'on', }, yaxis: { tickAmount: 5, labels: { style: { color: $strok_color, }, formatter: function(val) { return val > 999 ? (val / 1000).toFixed(1) + 'k' : val; } } }, tooltip: { x: { show: false } }, series: [{ name: "This Month", data: [45000, 47000, 44800, 47500, 45500, 48000, 46500, 48600] }, { name: "Last Month", data: [46000, 48000, 45500, 46600, 44500, 46500, 45000, 47000] } ], } var revenueChart = new ApexCharts( document.querySelector("#revenue-chart"), revenueChartoptions ); revenueChart.render(); // Goal Overview Chart // ----------------------------- var goalChartoptions = { chart: { height: 250, type: 'radialBar', sparkline: { enabled: true, }, dropShadow: { enabled: true, blur: 3, left: 1, top: 1, opacity: 0.1 }, }, colors: [$success], plotOptions: { radialBar: { size: 110, startAngle: -150, endAngle: 150, hollow: { size: '77%', }, track: { background: $strok_color, strokeWidth: '50%', }, dataLabels: { name: { show: false }, value: { offsetY: 18, color: $strok_color, fontSize: '4rem' } } } }, fill: { type: 'gradient', gradient: { shade: 'dark', type: 'horizontal', shadeIntensity: 0.5, gradientToColors: ['#00b5b5'], inverseColors: true, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, series: [83], stroke: { lineCap: 'round' }, } var goalChart = new ApexCharts( document.querySelector("#goal-overview-chart"), goalChartoptions ); goalChart.render(); // Average Session Chart // ---------------------------------- var avgsessionChartoptions = { chart: { type: 'bar', height: 200, sparkline: { enabled: true }, toolbar: { show: false }, }, states: { hover: { filter: 'none' } }, colors: [$label_color, $label_color, $primary, $label_color, $label_color, $label_color], series: [{ name: 'Sessions', data: [75, 125, 225, 175, 125, 75, 25] }], grid: { show: false, padding: { left: 0, right: 0 } }, plotOptions: { bar: { columnWidth: '45%', distributed: true, endingShape: 'rounded' } }, tooltip: { x: { show: false } }, xaxis: { type: 'numeric', } } var avgsessionChart = new ApexCharts( document.querySelector("#avg-session-chart"), avgsessionChartoptions ); avgsessionChart.render(); // Sales Chart // ----------------------------- var salesavgChartoptions = { chart: { height: 270, toolbar: { show: false }, type: 'line', dropShadow: { enabled: true, top: 20, left: 2, blur: 6, opacity: 0.20 }, }, stroke: { curve: 'smooth', width: 4, }, grid: { borderColor: $label_color, }, legend: { show: false, }, colors: [$purple], fill: { type: 'gradient', gradient: { shade: 'dark', inverseColors: false, gradientToColors: [$primary], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 0, hover: { size: 5 } }, xaxis: { labels: { style: { colors: $strok_color, } }, axisTicks: { show: false, }, categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], axisBorder: { show: false, }, tickPlacement: 'on' }, yaxis: { tickAmount: 5, labels: { style: { color: $strok_color, }, formatter: function(val) { return val > 999 ? (val / 1000).toFixed(1) + 'k' : val; } } }, tooltip: { x: { show: false } }, series: [{ name: "Sales", data: [140, 180, 150, 205, 160, 295, 125, 255, 205, 305, 240, 295] }], } var salesavgChart = new ApexCharts( document.querySelector("#sales-line-chart"), salesavgChartoptions ); salesavgChart.render(); // Client Retention Chart // ---------------------------------- var retentionChartoptions = { chart: { stacked: true, type: 'bar', toolbar: { show: false }, height: 290, }, plotOptions: { bar: { columnWidth: '10%' } }, colors: [$primary, $danger], series: [{ name: 'New Clients', data: [175, 125, 225, 175, 160, 189, 206, 134, 159, 216, 148, 123] }, { name: 'Retained Clients', data: [-144, -155, -141, -167, -122, -143, -158, -107, -126, -131, -140, -137] }], grid: { borderColor: $label_color, padding: { left: 0, right: 0 } }, legend: { show: true, position: 'top', horizontalAlign: 'left', offsetX: 0, fontSize: '14px', markers: { radius: 50, width: 10, height: 10, } }, dataLabels: { enabled: false }, xaxis: { labels: { style: { colors: $strok_color, } }, axisTicks: { show: false, }, categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], axisBorder: { show: false, }, }, yaxis: { tickAmount: 5, labels: { style: { color: $strok_color, } } }, tooltip: { x: { show: false } }, } var retentionChart = new ApexCharts( document.querySelector("#client-retention-chart"), retentionChartoptions ); retentionChart.render(); }); ================================================ FILE: public/backend/js/scripts/cards/card-statistics.js ================================================ /*========================================================================================= File Name: card-statistics.js Description: Card-statistics page content with Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function(){ var $primary = '#7367F0'; var $success = '#28C76F'; var $danger = '#EA5455'; var $warning = '#FF9F43'; var $primary_light = '#A9A2F6'; var $success_light = '#55DD92'; var $warning_light = '#ffc085'; // Subscribed Gained Chart // ---------------------------------- var gainedChartoptions = { chart: { height: 100, type: 'area', toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$primary], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Subscribers', data: [28, 40, 36, 52, 38, 60, 55] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var gainedChart = new ApexCharts( document.querySelector("#line-area-chart-1"), gainedChartoptions ); gainedChart.render(); // Revenue Generated Chart // ---------------------------------- var revenueChartoptions = { chart: { height: 100, type: 'area', toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$success], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Revenue', data: [350, 275, 400, 300, 350, 300, 450] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var revenueChart = new ApexCharts( document.querySelector("#line-area-chart-2"), revenueChartoptions ); revenueChart.render(); // Quaterly Sales Chart // ---------------------------------- var salesChartoptions = { chart: { height: 100, type: 'area', toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$danger], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Sales', data: [10, 15, 7, 12, 3, 16] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var salesChart = new ApexCharts( document.querySelector("#line-area-chart-3"), salesChartoptions ); salesChart.render(); // Order Received Chart // ---------------------------------- var orderChartoptions = { chart: { height: 100, type: 'area', toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$warning], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Orders', data: [10, 15, 8, 15, 7, 12, 8] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var orderChart = new ApexCharts( document.querySelector("#line-area-chart-4"), orderChartoptions ); orderChart.render(); // Site Traffic Chart // ---------------------------------- var trafficChartoptions = { chart: { height: 100, type: 'line', dropShadow: { enabled: true, top: 5, left: 0, blur: 4, opacity: 0.10, }, toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$primary], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 1, gradientToColors: [$primary_light], opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] } }, series: [{ name: 'Traffic Rate', data: [150, 200, 125, 225, 200, 250] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var trafficChart = new ApexCharts( document.querySelector("#line-area-chart-5"), trafficChartoptions ); trafficChart.render(); // Active Users Chart // ---------------------------------- var userChartoptions = { chart: { height: 100, type: 'line', dropShadow: { enabled: true, top: 5, left: 0, blur: 4, opacity: 0.10, }, toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$success], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 1, gradientToColors: [$success_light], opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] } }, series: [{ name: 'Active Users', data: [750, 1000, 900, 1250, 1000, 1200, 1100] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var userChart = new ApexCharts( document.querySelector("#line-area-chart-6"), userChartoptions ); userChart.render(); // News Letter Chart // ---------------------------------- var newsletterChartoptions = { chart: { height: 100, type: 'line', dropShadow: { enabled: true, top: 5, left: 0, blur: 4, opacity: 0.10, }, toolbar:{ show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$warning], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 1, gradientToColors: [$warning_light], opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] } }, series: [{ name: 'Newsletter', data: [365, 390, 365, 400, 375, 400] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var newsletterChart = new ApexCharts( document.querySelector("#line-area-chart-7"), newsletterChartoptions ); newsletterChart.render(); }); ================================================ FILE: public/backend/js/scripts/charts/chart-apex.js ================================================ /*========================================================================================= File Name: chart-apex.js Description: Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { var $primary = '#7367F0', $success = '#28C76F', $danger = '#EA5455', $warning = '#FF9F43', $info = '#00cfe8', $label_color_light = '#dae1e7'; var themeColors = [$primary, $success, $danger, $warning, $info]; // RTL Support var yaxis_opposite = false; if($('html').data('textdirection') == 'rtl'){ yaxis_opposite = true; } // Line Chart // ---------------------------------- var lineChartOptions = { chart: { height: 350, type: 'line', zoom: { enabled: false } }, colors: themeColors, dataLabels: { enabled: false }, stroke: { curve: 'straight' }, series: [{ name: "Desktops", data: [10, 41, 35, 51, 49, 62, 69, 91, 148], }], title: { text: 'Product Trends by Month', align: 'left' }, grid: { row: { colors: ['#f3f3f3', 'transparent'], // takes an array which will be repeated on columns opacity: 0.5 }, }, xaxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'], }, yaxis: { tickAmount: 5, opposite: yaxis_opposite } } var lineChart = new ApexCharts( document.querySelector("#line-chart"), lineChartOptions ); lineChart.render(); // Line Area Chart // ---------------------------------- var lineAreaOptions = { chart: { height: 350, type: 'area', }, colors: themeColors, dataLabels: { enabled: false }, stroke: { curve: 'smooth' }, series: [{ name: 'series1', data: [31, 40, 28, 51, 42, 109, 100] }, { name: 'series2', data: [11, 32, 45, 32, 34, 52, 41] }], legend: { offsetY: -10 }, xaxis: { type: 'datetime', categories: ["2019-09-18T00:00:00", "2019-09-18T01:00:00", "2019-09-18T02:00:00", "2019-09-18T03:00:00", "2019-09-18T04:00:00", "2019-09-18T05:00:00", "2019-09-18T06:00:00" ], }, yaxis: { opposite: yaxis_opposite }, tooltip: { x: { format: 'dd/MM/yy HH:mm' }, } } var lineAreaChart = new ApexCharts( document.querySelector("#line-area-chart"), lineAreaOptions ); lineAreaChart.render(); // Column Chart // ---------------------------------- var columnChartOptions = { chart: { height: 350, type: 'bar', }, colors: themeColors, plotOptions: { bar: { horizontal: false, endingShape: 'rounded', columnWidth: '55%', }, }, dataLabels: { enabled: false }, stroke: { show: true, width: 2, colors: ['transparent'] }, series: [{ name: 'Net Profit', data: [44, 55, 57, 56, 61, 58, 63, 60, 66] }, { name: 'Revenue', data: [76, 85, 101, 98, 87, 105, 91, 114, 94] }, { name: 'Free Cash Flow', data: [35, 41, 36, 26, 45, 48, 52, 53, 41] }], legend: { offsetY: -10 }, xaxis: { categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], }, yaxis: { title: { text: '$ (thousands)' }, opposite: yaxis_opposite }, fill: { opacity: 1 }, tooltip: { y: { formatter: function (val) { return "$ " + val + " thousands" } } } } var columnChart = new ApexCharts( document.querySelector("#column-chart"), columnChartOptions ); columnChart.render(); // Bar Chart // ---------------------------------- var barChartOptions = { chart: { height: 350, type: 'bar', }, colors: themeColors, plotOptions: { bar: { horizontal: true, } }, dataLabels: { enabled: false }, series: [{ data: [400, 430, 448, 470, 540, 580, 690, 1100, 1200, 1380] }], xaxis: { categories: ['South Korea', 'Canada', 'United Kingdom', 'Netherlands', 'Italy', 'France', 'Japan', 'United States', 'China', 'Germany'], tickAmount: 5 }, yaxis: { opposite: yaxis_opposite } } var barChart = new ApexCharts( document.querySelector("#bar-chart"), barChartOptions ); barChart.render(); // Mixed Chart // ----------------------------- var mixedChartOptions = { chart: { height: 350, type: 'line', stacked: false, }, colors: themeColors, stroke: { width: [0, 2, 5], curve: 'smooth' }, plotOptions: { bar: { columnWidth: '50%' } }, // colors: ['#3A5794', '#A5C351', '#E14A84'], series: [{ name: 'TEAM A', type: 'column', data: [23, 11, 22, 27, 13, 22, 37, 21, 44, 22, 30] }, { name: 'TEAM B', type: 'area', data: [44, 55, 41, 67, 22, 43, 21, 41, 56, 27, 43] }, { name: 'TEAM C', type: 'line', data: [30, 25, 36, 30, 45, 35, 64, 52, 59, 36, 39] }], fill: { opacity: [0.85, 0.25, 1], gradient: { inverseColors: false, shade: 'light', type: "vertical", opacityFrom: 0.85, opacityTo: 0.55, stops: [0, 100, 100, 100] } }, labels: ['01/01/2003', '02/01/2003', '03/01/2003', '04/01/2003', '05/01/2003', '06/01/2003', '07/01/2003', '08/01/2003', '09/01/2003', '10/01/2003', '11/01/2003'], markers: { size: 0 }, legend: { offsetY: -10 }, xaxis: { type: 'datetime' }, yaxis: { min: 0, tickAmount: 5, title: { text: 'Points' }, opposite: yaxis_opposite }, tooltip: { shared: true, intersect: false, y: { formatter: function (y) { if (typeof y !== "undefined") { return y.toFixed(0) + " views"; } return y; } } } } var mixedChart = new ApexCharts( document.querySelector("#mixed-chart"), mixedChartOptions ); mixedChart.render(); // Candlestick Chart // ----------------------------- var candleStickOptions = { chart: { height: 350, type: 'candlestick', }, colors: themeColors, series: [{ data: [{ x: new Date(1538778600000), y: [6629.81, 6650.5, 6623.04, 6633.33] }, { x: new Date(1538780400000), y: [6632.01, 6643.59, 6620, 6630.11] }, { x: new Date(1538782200000), y: [6630.71, 6648.95, 6623.34, 6635.65] }, { x: new Date(1538784000000), y: [6635.65, 6651, 6629.67, 6638.24] }, { x: new Date(1538785800000), y: [6638.24, 6640, 6620, 6624.47] }, { x: new Date(1538787600000), y: [6624.53, 6636.03, 6621.68, 6624.31] }, { x: new Date(1538789400000), y: [6624.61, 6632.2, 6617, 6626.02] }, { x: new Date(1538791200000), y: [6627, 6627.62, 6584.22, 6603.02] }, { x: new Date(1538793000000), y: [6605, 6608.03, 6598.95, 6604.01] }, { x: new Date(1538794800000), y: [6604.5, 6614.4, 6602.26, 6608.02] }, { x: new Date(1538796600000), y: [6608.02, 6610.68, 6601.99, 6608.91] }, { x: new Date(1538798400000), y: [6608.91, 6618.99, 6608.01, 6612] }, { x: new Date(1538800200000), y: [6612, 6615.13, 6605.09, 6612] }, { x: new Date(1538802000000), y: [6612, 6624.12, 6608.43, 6622.95] }, { x: new Date(1538803800000), y: [6623.91, 6623.91, 6615, 6615.67] }, { x: new Date(1538805600000), y: [6618.69, 6618.74, 6610, 6610.4] }, { x: new Date(1538807400000), y: [6611, 6622.78, 6610.4, 6614.9] }, { x: new Date(1538809200000), y: [6614.9, 6626.2, 6613.33, 6623.45] }, { x: new Date(1538811000000), y: [6623.48, 6627, 6618.38, 6620.35] }, { x: new Date(1538812800000), y: [6619.43, 6620.35, 6610.05, 6615.53] }, { x: new Date(1538814600000), y: [6615.53, 6617.93, 6610, 6615.19] }, { x: new Date(1538816400000), y: [6615.19, 6621.6, 6608.2, 6620] }, { x: new Date(1538818200000), y: [6619.54, 6625.17, 6614.15, 6620] }, { x: new Date(1538820000000), y: [6620.33, 6634.15, 6617.24, 6624.61] }, { x: new Date(1538821800000), y: [6625.95, 6626, 6611.66, 6617.58] }, { x: new Date(1538823600000), y: [6619, 6625.97, 6595.27, 6598.86] }, { x: new Date(1538825400000), y: [6598.86, 6598.88, 6570, 6587.16] }, { x: new Date(1538827200000), y: [6588.86, 6600, 6580, 6593.4] }, { x: new Date(1538829000000), y: [6593.99, 6598.89, 6585, 6587.81] }, { x: new Date(1538830800000), y: [6587.81, 6592.73, 6567.14, 6578] }, { x: new Date(1538832600000), y: [6578.35, 6581.72, 6567.39, 6579] }, { x: new Date(1538834400000), y: [6579.38, 6580.92, 6566.77, 6575.96] }, { x: new Date(1538836200000), y: [6575.96, 6589, 6571.77, 6588.92] }, { x: new Date(1538838000000), y: [6588.92, 6594, 6577.55, 6589.22] }, { x: new Date(1538839800000), y: [6589.3, 6598.89, 6589.1, 6596.08] }, { x: new Date(1538841600000), y: [6597.5, 6600, 6588.39, 6596.25] }, { x: new Date(1538843400000), y: [6598.03, 6600, 6588.73, 6595.97] }, { x: new Date(1538845200000), y: [6595.97, 6602.01, 6588.17, 6602] }, { x: new Date(1538847000000), y: [6602, 6607, 6596.51, 6599.95] }, { x: new Date(1538848800000), y: [6600.63, 6601.21, 6590.39, 6591.02] }, { x: new Date(1538850600000), y: [6591.02, 6603.08, 6591, 6591] }, { x: new Date(1538852400000), y: [6591, 6601.32, 6585, 6592] }, { x: new Date(1538854200000), y: [6593.13, 6596.01, 6590, 6593.34] }, { x: new Date(1538856000000), y: [6593.34, 6604.76, 6582.63, 6593.86] }, { x: new Date(1538857800000), y: [6593.86, 6604.28, 6586.57, 6600.01] }, { x: new Date(1538859600000), y: [6601.81, 6603.21, 6592.78, 6596.25] }, { x: new Date(1538861400000), y: [6596.25, 6604.2, 6590, 6602.99] }, { x: new Date(1538863200000), y: [6602.99, 6606, 6584.99, 6587.81] }, { x: new Date(1538865000000), y: [6587.81, 6595, 6583.27, 6591.96] }, { x: new Date(1538866800000), y: [6591.97, 6596.07, 6585, 6588.39] }, { x: new Date(1538868600000), y: [6587.6, 6598.21, 6587.6, 6594.27] }, { x: new Date(1538870400000), y: [6596.44, 6601, 6590, 6596.55] }, { x: new Date(1538872200000), y: [6598.91, 6605, 6596.61, 6600.02] }, { x: new Date(1538874000000), y: [6600.55, 6605, 6589.14, 6593.01] }, { x: new Date(1538875800000), y: [6593.15, 6605, 6592, 6603.06] }, { x: new Date(1538877600000), y: [6603.07, 6604.5, 6599.09, 6603.89] }, { x: new Date(1538879400000), y: [6604.44, 6604.44, 6600, 6603.5] }, { x: new Date(1538881200000), y: [6603.5, 6603.99, 6597.5, 6603.86] }, { x: new Date(1538883000000), y: [6603.85, 6605, 6600, 6604.07] }, { x: new Date(1538884800000), y: [6604.98, 6606, 6604.07, 6606] }, ] }], xaxis: { type: 'datetime' }, yaxis: { tickAmount: 5, tooltip: { enabled: true }, opposite: yaxis_opposite } } var candleStickChart = new ApexCharts( document.querySelector("#candlestick-chart"), candleStickOptions ); candleStickChart.render(); // 3D Bubble Chart // ----------------------------- function generateDataBubbleChart(baseval, count, yrange) { var i = 0; var seriesBubbleChart = []; while (i < count) { // var x = Math.floor(Math.random() * (750 - 1 + 1)) + 1; var y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min; var z = Math.floor(Math.random() * (75 - 15 + 1)) + 15; seriesBubbleChart.push([baseval, y, z]); baseval += 86400000; i++; } return seriesBubbleChart; } var bubbleChartOptions = { chart: { height: 350, type: 'bubble', }, colors: themeColors, dataLabels: { enabled: false }, legend: { offsetY: -10 }, series: [{ name: 'Product1', data: generateDataBubbleChart(new Date('11 Feb 2017 GMT').getTime(), 20, { min: 10, max: 60 }) }, { name: 'Product2', data: generateDataBubbleChart(new Date('11 Feb 2017 GMT').getTime(), 20, { min: 10, max: 60 }) }, { name: 'Product3', data: generateDataBubbleChart(new Date('11 Feb 2017 GMT').getTime(), 20, { min: 10, max: 60 }) }, { name: 'Product4', data: generateDataBubbleChart(new Date('11 Feb 2017 GMT').getTime(), 20, { min: 10, max: 60 }) } ], fill: { type: 'gradient', }, xaxis: { tickAmount: 12, type: 'datetime', labels: { rotate: 0, } }, yaxis: { max: 70, tickAmount: 5, opposite: yaxis_opposite }, theme: { palette: 'palette2' } } var bubbleChart = new ApexCharts( document.querySelector("#bubble-chart"), bubbleChartOptions ); bubbleChart.render(); // Scatter Chart // ----------------------------- var scatterChartOptions = { chart: { height: 350, type: 'scatter', zoom: { enabled: true, type: 'xy' }, }, colors: themeColors, series: [{ name: "SAMPLE A", data: [ [16.4, 5.4], [21.7, 2], [25.4, 3], [19, 2], [10.9, 1], [13.6, 3.2], [10.9, 7.4], [10.9, 0], [10.9, 8.2], [16.4, 0], [16.4, 1.8], [13.6, 0.3], [13.6, 0], [29.9, 0], [27.1, 2.3], [16.4, 0], [13.6, 3.7], [10.9, 5.2], [16.4, 6.5], [10.9, 0], [24.5, 7.1], [10.9, 0], [8.1, 4.7], [19, 0], [21.7, 1.8], [27.1, 0], [24.5, 0], [27.1, 0], [29.9, 1.5], [27.1, 0.8], [22.1, 2] ] }, { name: "SAMPLE B", data: [ [6.4, 13.4], [1.7, 11], [5.4, 8], [9, 17], [1.9, 4], [3.6, 12.2], [1.9, 14.4], [1.9, 9], [1.9, 13.2], [1.4, 7], [6.4, 8.8], [3.6, 4.3], [1.6, 10], [9.9, 2], [7.1, 15], [1.4, 0], [3.6, 13.7], [1.9, 15.2], [6.4, 16.5], [0.9, 10], [4.5, 17.1], [10.9, 10], [0.1, 14.7], [9, 10], [12.7, 11.8], [2.1, 10], [2.5, 10], [27.1, 10], [2.9, 11.5], [7.1, 10.8], [2.1, 12] ] }, { name: "SAMPLE C", data: [ [21.7, 3], [23.6, 3.5], [24.6, 3], [29.9, 3], [21.7, 20], [23, 2], [10.9, 3], [28, 4], [27.1, 0.3], [16.4, 4], [13.6, 0], [19, 5], [22.4, 3], [24.5, 3], [32.6, 3], [27.1, 4], [29.6, 6], [31.6, 8], [21.6, 5], [20.9, 4], [22.4, 0], [32.6, 10.3], [29.7, 20.8], [24.5, 0.8], [21.4, 0], [21.7, 6.9], [28.6, 7.7], [15.4, 0], [18.1, 0], [33.4, 0], [16.4, 0] ] }], legend: { offsetY: -10 }, xaxis: { tickAmount: 10 }, yaxis: { tickAmount: 7, opposite: yaxis_opposite } } var scatterChart = new ApexCharts( document.querySelector("#scatter-chart"), scatterChartOptions ); scatterChart.render(); // Pie Chart // ----------------------------- var pieChartOptions = { chart: { type: 'pie', height: 350 }, colors: themeColors, labels: ['Team A', 'Team B', 'Team C', 'Team D'], series: [44, 55, 13, 43], legend: { itemMargin: { horizontal: 2 }, }, responsive: [{ breakpoint: 480, options: { chart: { width: 350 }, legend: { position: 'bottom' } } }] } var pieChart = new ApexCharts( document.querySelector("#pie-chart"), pieChartOptions ); pieChart.render(); // Donut Chart // ----------------------------- var donutChartOptions = { chart: { type: 'donut', height: 350 }, colors: themeColors, series: [44, 55, 41, 17], legend: { itemMargin: { horizontal: 2 }, }, responsive: [{ breakpoint: 480, options: { chart: { width: 350 }, legend: { position: 'bottom' } } }] } var donutChart = new ApexCharts( document.querySelector("#donut-chart"), donutChartOptions ); donutChart.render(); // Radial Bar Chart // ----------------------------- var radialBarChartOptions = { chart: { height: 350, type: 'radialBar', }, colors: themeColors, plotOptions: { radialBar: { dataLabels: { name: { fontSize: '22px', }, value: { fontSize: '16px', }, total: { show: true, label: 'Total', // color: $label_color, formatter: function (w) { // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function return 249 } } } } }, series: [44, 55, 67, 83], labels: ['Apples', 'Oranges', 'Bananas', 'Berries'], } var radialBarChart = new ApexCharts( document.querySelector("#radial-bar-chart"), radialBarChartOptions ); radialBarChart.render(); // Radar Chart // ----------------------------- var radarChartOptions = { chart: { height: 350, type: 'radar', }, colors: themeColors, series: [{ name: 'Series 1', data: [80, 50, 30, 40, 100, 20], }], labels: ['January', 'February', 'March', 'April', 'May', 'June'], dataLabels: { style: { color: $label_color_light } } } var radarChart = new ApexCharts(document.querySelector("#radar-chart"), radarChartOptions); radarChart.render(); // Heat Map Chart // ----------------------------- function generateData(count, yrange) { var i = 0, series = []; while (i < count) { var x = 'w' + (i + 1).toString(), y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min; series.push({ x: x, y: y }); i++; } return series; } var heatChartOptions = { chart: { height: 350, type: 'heatmap', }, dataLabels: { enabled: false }, colors: [$primary], series: [{ name: 'Metric1', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric2', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric3', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric4', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric5', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric6', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric7', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric8', data: generateData(18, { min: 0, max: 90 }) }, { name: 'Metric9', data: generateData(18, { min: 0, max: 90 }) } ], yaxis: { opposite: yaxis_opposite } } var heatChart = new ApexCharts( document.querySelector("#heat-map-chart"), heatChartOptions); heatChart.render(); }); ================================================ FILE: public/backend/js/scripts/charts/chart-chartjs.js ================================================ /*========================================================================================= File Name: chart-chartjs.js Description: Chartjs Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function () { var $primary = '#7367F0'; var $success = '#28C76F'; var $danger = '#EA5455'; var $warning = '#FF9F43'; var $label_color = '#1E1E1E'; var grid_line_color = '#dae1e7'; var scatter_grid_color = '#f3f3f3'; var $scatter_point_light = '#D1D4DB'; var $scatter_point_dark = '#5175E0'; var $white = '#fff'; var $black = '#000'; var themeColors = [$primary, $success, $danger, $warning, $label_color]; // Line Chart // ------------------------------------------ //Get the context of the Chart canvas element we want to select var lineChartctx = $("#line-chart"); // Chart Options var linechartOptions = { responsive: true, maintainAspectRatio: false, legend: { position: 'top', }, hover: { mode: 'label' }, scales: { xAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, } }], yAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, } }] }, title: { display: true, text: 'World population per region (in millions)' } }; // Chart Data var linechartData = { labels: [1500, 1600, 1700, 1750, 1800, 1850, 1900, 1950, 1999, 2050], datasets: [{ label: "Africa", data: [86, 114, 106, 106, 107, 111, 133, 221, 783, 2478], borderColor: $primary, fill: false }, { data: [282, 350, 411, 502, 635, 809, 947, 1402, 3700, 5267], label: "Asia", borderColor: $success, fill: false }, { data: [168, 170, 178, 190, 203, 276, 408, 547, 675, 734], label: "Europe", borderColor: $danger, fill: false }, { data: [40, 20, 10, 16, 24, 38, 74, 167, 508, 784], label: "Latin America", borderColor: $warning, fill: false }, { data: [6, 3, 2, 2, 7, 26, 82, 172, 312, 433], label: "North America", borderColor: $label_color, fill: false }] }; var lineChartconfig = { type: 'line', // Chart Options options: linechartOptions, data: linechartData }; // Create the chart var lineChart = new Chart(lineChartctx, lineChartconfig); // Bar Chart // ------------------------------------------ //Get the context of the Chart canvas element we want to select var barChartctx = $("#bar-chart"); // Chart Options var barchartOptions = { // Elements options apply to all of the options unless overridden in a dataset // In this case, we are setting the border of each bar to be 2px wide elements: { rectangle: { borderWidth: 2, borderSkipped: 'left' } }, responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, legend: { display: false }, scales: { xAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, } }], yAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, }, ticks: { stepSize: 1000 }, }], }, title: { display: true, text: 'Predicted world population (millions) in 2050' }, }; // Chart Data var barchartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "Population (millions)", data: [2478, 5267, 734, 784, 433], backgroundColor: themeColors, borderColor: "transparent" }] }; var barChartconfig = { type: 'bar', // Chart Options options: barchartOptions, data: barchartData }; // Create the chart var barChart = new Chart(barChartctx, barChartconfig); // Horizontal Chart // ------------------------------------- // Get the context of the Chart canvas element we want to select var horizontalChartctx = $("#horizontal-bar"); var horizontalchartOptions = { // Elements options apply to all of the options unless overridden in a dataset // In this case, we are setting the border of each horizontal bar to be 2px wide elements: { rectangle: { borderWidth: 2, borderSkipped: 'right', borderSkipped: 'top', } }, responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, legend: { display: false, }, scales: { xAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, } }], yAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, } }] }, title: { display: true, text: 'Predicted world population (millions) in 2050' } }; // Chart Data var horizontalchartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "Population (millions)", data: [2478, 5267, 734, 784, 433], backgroundColor: themeColors, borderColor: "transparent" }] }; var horizontalChartconfig = { type: 'horizontalBar', // Chart Options options: horizontalchartOptions, data: horizontalchartData }; // Create the chart var horizontalChart = new Chart(horizontalChartctx, horizontalChartconfig); // Pie Chart // -------------------------------- //Get the context of the Chart canvas element we want to select var pieChartctx = $("#simple-pie-chart"); // Chart Options var piechartOptions = { responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, title: { display: true, text: 'Predicted world population (millions) in 2050' } }; // Chart Data var piechartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "My First dataset", data: [2478, 5267, 734, 784, 433], backgroundColor: themeColors, }] }; var pieChartconfig = { type: 'pie', // Chart Options options: piechartOptions, data: piechartData }; // Create the chart var pieSimpleChart = new Chart(pieChartctx, pieChartconfig); // Doughnut Chart // --------------------------------------------- //Get the context of the Chart canvas element we want to select var doughnutChartctx = $("#simple-doughnut-chart"); // Chart Options var doughnutchartOptions = { responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, title: { display: true, text: 'Predicted world population (millions) in 2050' } }; // Chart Data var doughnutchartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "My First dataset", data: [2478, 5267, 734, 784, 433], backgroundColor: themeColors, }] }; var doughnutChartconfig = { type: 'doughnut', // Chart Options options: doughnutchartOptions, data: doughnutchartData }; // Create the chart var doughnutSimpleChart = new Chart(doughnutChartctx, doughnutChartconfig); // Radar Chart // ---------------------------------------- //Get the context of the Chart canvas element we want to select var radarChartctx = $("#radar-chart"); // Chart Options var radarchartOptions = { responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, legend: { position: 'top', }, tooltips: { callbacks: { label: function (tooltipItems, data) { return data.datasets[tooltipItems.datasetIndex].label + ": " + tooltipItems.yLabel; } } }, title: { display: true, text: 'Distribution in % of world population' }, scale: { reverse: false, ticks: { beginAtZero: true, stepSize: 10 } } }; // Chart Data var radarchartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "1950", fill: true, backgroundColor: "rgba(179,181,198,0.2)", borderColor: "rgba(179,181,198,1)", pointBorderColor: $white, pointBackgroundColor: "rgba(179,181,198,1)", data: [8.77, 55.61, 21.69, 6.62, 6.82], }, { label: "2050", fill: true, backgroundColor: "rgba(255,99,132,0.2)", borderColor: "rgba(255,99,132,1)", pointBorderColor: $white, pointBackgroundColor: "rgba(255,99,132,1)", data: [25.48, 54.16, 7.61, 8.06, 4.45], },] }; var radarChartconfig = { type: 'radar', // Chart Options options: radarchartOptions, data: radarchartData }; // Create the chart var polarChart = new Chart(radarChartctx, radarChartconfig); // Polar Chart // ----------------------------------- //Get the context of the Chart canvas element we want to select var polarChartctx = $("#polar-chart"); // Chart Options var polarchartOptions = { responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 500, legend: { position: 'top', }, title: { display: true, text: 'Predicted world population (millions) in 2050' }, scale: { ticks: { beginAtZero: true, stepSize: 2000 }, reverse: false }, animation: { animateRotate: false } }; // Chart Data var polarchartData = { labels: ["Africa", "Asia", "Europe", "Latin America", "North America"], datasets: [{ label: "Population (millions)", backgroundColor: themeColors, data: [2478, 5267, 734, 784, 433] }], }; var polarChartconfig = { type: 'polarArea', // Chart Options options: polarchartOptions, data: polarchartData }; // Create the chart var polarChart = new Chart(polarChartctx, polarChartconfig); // Bubble Chart // --------------------------------------- //Get the context of the Chart canvas element we want to select var bubbleChartctx = $("#bubble-chart"); var randomScalingFactor = function () { return (Math.random() > 0.5 ? 1.0 : -1.0) * Math.round(Math.random() * 100); }; // Chart Options var bubblechartOptions = { responsive: true, maintainAspectRatio: false, scales: { xAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, labelString: "GDP (PPP)" } }], yAxes: [{ display: true, gridLines: { color: grid_line_color, }, scaleLabel: { display: true, labelString: "Happiness" }, ticks: { stepSize: 0.5 }, }] }, title: { display: true, text: 'Predicted world population (millions) in 2050' } }; // Chart Data var bubblechartData = { animation: { duration: 10000 }, datasets: [{ label: ["China"], backgroundColor: "rgba(255,221,50,0.2)", borderColor: "rgba(255,221,50,1)", data: [{ x: 21269017, y: 5.245, r: 15 }], }, { label: ["Denmark"], backgroundColor: "rgba(60,186,159,0.2)", borderColor: "rgba(60,186,159,1)", data: [{ x: 258702, y: 7.526, r: 10 }] }, { label: ["Germany"], backgroundColor: "rgba(0,0,0,0.2)", borderColor: $black, data: [{ x: 3979083, y: 6.994, r: 15 }] }, { label: ["Japan"], backgroundColor: "rgba(193,46,12,0.2)", borderColor: "rgba(193,46,12,1)", data: [{ x: 4931877, y: 5.921, r: 15 }] }] }; var bubbleChartconfig = { type: 'bubble', // Chart Options options: bubblechartOptions, data: bubblechartData }; // Create the chart var bubbleChart = new Chart(bubbleChartctx, bubbleChartconfig); // Scatter Chart // ------------------------------------ //Get the context of the Chart canvas element we want to select var scatterChartctx = $("#scatter-chart"); // Chart Options var scatterchartOptions = { responsive: true, maintainAspectRatio: false, responsiveAnimationDuration: 800, title: { display: false, text: 'Chart.js Scatter Chart' }, scales: { xAxes: [{ position: 'top', gridLines: { color: scatter_grid_color, drawTicks: false, }, scaleLabel: { display: true, labelString: 'x axis' } }], yAxes: [{ position: 'right', gridLines: { color: scatter_grid_color, drawTicks: false, }, scaleLabel: { display: true, labelString: 'y axis' } }] } }; // Chart Data var scatterchartData = { datasets: [{ label: "My First dataset", data: [{ x: 65, y: 28, }, { x: 59, y: 48, }, { x: 80, y: 40, }, { x: 81, y: 19, }, { x: 56, y: 86, }, { x: 55, y: 27, }, { x: 40, y: 89, }], backgroundColor: "rgba(209,212,219,.3)", borderColor: "transparent", pointBorderColor: $scatter_point_light, pointBackgroundColor: $white, pointBorderWidth: 2, pointHoverBorderWidth: 2, pointRadius: 4, }, { label: "My Second dataset", data: [{ x: 45, y: 17, }, { x: 25, y: 62, }, { x: 16, y: 78, }, { x: 36, y: 88, }, { x: 67, y: 26, }, { x: 18, y: 48, }, { x: 76, y: 73, }], backgroundColor: "rgba(81,117,224,.6)", borderColor: "transparent", pointBorderColor: $scatter_point_dark, pointBackgroundColor: $white, pointBorderWidth: 2, pointHoverBorderWidth: 2, pointRadius: 4, }] }; var scatterChartconfig = { type: 'scatter', // Chart Options options: scatterchartOptions, data: scatterchartData }; // Create the chart var scatterChart = new Chart(scatterChartctx, scatterChartconfig); }); ================================================ FILE: public/backend/js/scripts/charts/chart-echart.js ================================================ /*========================================================================================= File Name: chart-echart.js Description: echarts examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function(){ var $dark_green = '#4ea397'; var $green = '#22c3aa'; var $light_green = '#7bd9a5'; var $lighten_green = '#a8e7d2'; // Bar chart // ------------------------------ var barChart = echarts.init(document.getElementById('bar-chart')); // var i; function randomize() { return Math.round(300 + Math.random() * 700) / 10 }; var barChartoption = { legend: {}, tooltip: {}, dataset: { source: [ ['product', '2015', '2016', '2017'], ['Matcha Latte', randomize(), randomize(), randomize()], ['Milk Tea', randomize(), randomize(), randomize()], ['Cheese Cocoa', randomize(), randomize(), randomize()], ['Walnut Brownie', randomize(), randomize(), randomize()], ], }, xAxis: { type: 'category', splitLine: { show: true }, }, yAxis: {}, // Declare several bar series, each will be mapped // to a column of dataset.source by default. series: [ { type: 'bar', itemStyle: {color: $dark_green}, }, { type: 'bar', itemStyle: {color: $green}, }, { type: 'bar', itemStyle: {color: $light_green}, } ] }; barChart.setOption(barChartoption); // Line chart // ------------------------------ var lineChart = echarts.init(document.getElementById('line-chart')); data = [["2000-06-05",116],["2000-06-06",129],["2000-06-07",135],["2000-06-08",86],["2000-06-09",73],["2000-06-10",85],["2000-06-11",73],["2000-06-12",68],["2000-06-13",92],["2000-06-14",130],["2000-06-15",245],["2000-06-16",139],["2000-06-17",115],["2000-06-18",111],["2000-06-19",309],["2000-06-20",206],["2000-06-21",137],["2000-06-22",128],["2000-06-23",85],["2000-06-24",94],["2000-06-25",71],["2000-06-26",106],["2000-06-27",84],["2000-06-28",93],["2000-06-29",85],["2000-06-30",73],["2000-07-01",83],["2000-07-02",125],["2000-07-03",107],["2000-07-04",82],["2000-07-05",44],["2000-07-06",72],["2000-07-07",106],["2000-07-08",107],["2000-07-09",66],["2000-07-10",91],["2000-07-11",92],["2000-07-12",113],["2000-07-13",107],["2000-07-14",131],["2000-07-15",111],["2000-07-16",64],["2000-07-17",69],["2000-07-18",88],["2000-07-19",77],["2000-07-20",83],["2000-07-21",111],["2000-07-22",57],["2000-07-23",55],["2000-07-24",60]]; var dateList = data.map(function (item) { return item[0]; }); var valueList = data.map(function (item) { return item[1]; }); var lineChartoption = { // Make gradient line here visualMap: [{ show: false, type: 'continuous', seriesIndex: 0, min: 0, max: 400, color: [$dark_green, $lighten_green] }], tooltip: { trigger: 'axis' }, xAxis: [{ data: dateList, splitLine: {show: true} }], yAxis: [{ splitLine: {show: false} }], series: [{ type: 'line', showSymbol: false, data: valueList }] }; lineChart.setOption(lineChartoption); // Pie chart // ------------------------------ var pieChart = echarts.init(document.getElementById('pie-chart')); var pieChartoption = { tooltip : { trigger: 'item', formatter: "{a}
    {b} : {c} ({d}%)" }, legend: { orient: 'vertical', left: 'left', data: ['Direct interview', 'Email marketing', 'Alliance advertising', 'Video ad', 'Search engine'] }, series : [ { name: 'Access source', type: 'pie', radius : '55%', center: ['50%', '60%'], color: ['#FF9F43','#28C76F','#EA5455','#87ceeb','#7367F0'], data: [ {value: 335, name: 'Direct interview'}, {value: 310, name: 'Email marketing'}, {value: 234, name: 'Alliance advertising'}, {value: 135, name: 'Video ad'}, {value: 1548, name: 'Search engine'} ], itemStyle: { emphasis: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } } } ], }; pieChart.setOption(pieChartoption); // Scatter chart // ------------------------------ var scatterChart = echarts.init(document.getElementById('scatter-chart')); var data = [ [[28604,77,17096869,'Australia',1990],[31163,77.4,27662440,'Canada',1990],[1516,68,1154605773,'China',1990],[13670,74.7,10582082,'Cuba',1990],[28599,75,4986705,'Finland',1990],[29476,77.1,56943299,'France',1990],[31476,75.4,78958237,'Germany',1990],[28666,78.1,254830,'Iceland',1990],[1777,57.7,870601776,'India',1990],[29550,79.1,122249285,'Japan',1990],[2076,67.9,20194354,'North Korea',1990],[12087,72,42972254,'South Korea',1990],[24021,75.4,3397534,'New Zealand',1990],[43296,76.8,4240375,'Norway',1990],[10088,70.8,38195258,'Poland',1990],[19349,69.6,147568552,'Russia',1990],[10670,67.3,53994605,'Turkey',1990],[26424,75.7,57110117,'United Kingdom',1990],[37062,75.4,252847810,'United States',1990]], [[44056,81.8,23968973,'Australia',2015],[43294,81.7,35939927,'Canada',2015],[13334,76.9,1376048943,'China',2015],[21291,78.5,11389562,'Cuba',2015],[38923,80.8,5503457,'Finland',2015],[37599,81.9,64395345,'France',2015],[44053,81.1,80688545,'Germany',2015],[42182,82.8,329425,'Iceland',2015],[5903,66.8,1311050527,'India',2015],[36162,83.5,126573481,'Japan',2015],[1390,71.4,25155317,'North Korea',2015],[34644,80.7,50293439,'South Korea',2015],[34186,80.6,4528526,'New Zealand',2015],[64304,81.6,5210967,'Norway',2015],[24787,77.3,38611794,'Poland',2015],[23038,73.13,143456918,'Russia',2015],[19360,76.5,78665830,'Turkey',2015],[38225,81.4,64715810,'United Kingdom',2015],[53354,79.1,321773631,'United States',2015]] ]; var scatterChartoption = { legend: { right: 10, data: ['1990', '2015'] }, xAxis: { splitLine: { lineStyle: { type: 'dashed' } } }, yAxis: { splitLine: { lineStyle: { type: 'dashed' } }, scale: true }, series: [{ name: '1990', data: data[0], type: 'scatter', symbolSize: function (data) { return Math.sqrt(data[2]) / 5e2; }, label: { emphasis: { show: true, formatter: function (param) { return param.data[3]; }, position: 'top' } }, itemStyle: { normal: { shadowBlur: 10, shadowColor: 'rgba(120, 36, 50, 0.5)', shadowOffsetY: 5, color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{ offset: 0, color: 'rgb(251, 118, 123)' }, { offset: 1, color: 'rgb(204, 46, 72)' }]) } } }, { name: '2015', data: data[1], type: 'scatter', symbolSize: function (data) { return Math.sqrt(data[2]) / 5e2; }, label: { emphasis: { show: true, formatter: function (param) { return param.data[3]; }, position: 'top' } }, itemStyle: { normal: { shadowBlur: 10, shadowColor: 'rgba(25, 100, 150, 0.5)', shadowOffsetY: 5, color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{ offset: 0, color: 'rgb(129, 227, 238)' }, { offset: 1, color: 'rgb(25, 183, 207)' }]) } } }] }; scatterChart.setOption(scatterChartoption); // Polar chart // ------------------------------ var polarChart = echarts.init(document.getElementById('polar-chart')); var data = []; for (var i = 0; i <= 360; i++) { var t = i / 180 * Math.PI; var r = Math.sin(2 * t) * Math.cos(2 * t); data.push([r, i]); } var polarChartoption = { legend: { data: ['line'] }, polar: { center: ['50%', '54%'] }, tooltip: { trigger: 'axis', axisPointer: { type: 'cross' } }, angleAxis: { type: 'value', startAngle: 0 }, radiusAxis: { min: 0 }, series: [{ coordinateSystem: 'polar', name: 'line', type: 'line', showSymbol: false, data: data }], animationDuration: 2000 }; polarChart.setOption(polarChartoption); // Radar chart // ------------------------------ var radarChart = echarts.init(document.getElementById('radar-chart')); var radarChartoption = { tooltip: {}, radar: { indicator: [ { name: 'Attack', max: 20 }, { name: 'Defensive', max: 20 }, { name: 'Speed', max: 20 }, { name: 'Power', max: 20 }, { name: 'Endurance', max: 20 }, { name: 'Agile', max: 20 } ] }, series: [{ name: 'Ability value', type: 'radar', data: [{ value: [19, 9, 18, 16, 16, 20] }] }] }; radarChart.setOption(radarChartoption); }); ================================================ FILE: public/backend/js/scripts/charts/gmaps/maps.js ================================================ /*========================================================================================= File Name: maps.js Description: google maps ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ // Gmaps Maps // ------------------------------ $(window).on("load", function(){ // Basic Map // ------------------------------ map = new GMaps({ div: '#basic-map', lat: 9.0820, lng: 8.6753, zoom: 7 }); map.addMarker({ lat: 9.0765, lng: 7.3986, title: 'Marker1', draggable: true, }); // Info Window // ------------------------------ map = new GMaps({ div: '#info-window', lat: 47.4073, lng: 7.7526, zoom: 7 }); map.addMarker({ lat: 47.4073, lng: 7.76, title: 'Marker1', infoWindow: { content: '

    Marker1

    ' } }); map.addMarker({ lat: 47.3769, lng: 8.5417, title: 'Marker2', infoWindow: { content: '

    Marker2

    ' } }); map.addMarker({ lat: 46.9480, lng: 7.4474, title: 'Marker3', infoWindow: { content: '

    Marker3

    ' } }); // Street View Markers // ------------------------------ map = GMaps.createPanorama({ el: '#street-view', lat : 52.201272, lng: 0.118720, }); // Random Value for street heading $(".street-heading").on("click", function(){ map = GMaps.createPanorama({ el: '#street-view', lat : 52.201272, lng: 0.118720, pov: { heading: Math.random() * 360, pitch: 5 } }); }); // Random Value for street Pitch $(".street-pitch").on("click", function(){ map = GMaps.createPanorama({ el: '#street-view', lat : 52.201272, lng: 0.118720, pov: { heading: 20, pitch: Math.random() * 180 - 90 } }); }); // Random Value for both street heading and street pitch $(".street-both").on("click", function(){ map = GMaps.createPanorama({ el: '#street-view', lat : 52.201272, lng: 0.118720, pov: { heading: Math.random() * 360, pitch: Math.random() * 180 - 90 } }); }); }); ================================================ FILE: public/backend/js/scripts/components.js ================================================ /*========================================================================================= File Name: Components.js Description: For Generic Components. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { /***** Component Variables *****/ var alertValidationInput = $(".alert-validation"), alertRegex = /^[0-9]+$/, alertValidationMsg = $(".alert-validation-msg"), accordion = $(".accordion"), collapseTitle = $(".collapse-title"), collapseHoverTitle = $(".collapse-hover-title"), dropdownMenuIcon = $(".dropdown-icon-wrapper .dropdown-item"); /***** Alerts *****/ /* validation with alert */ alertValidationInput.on('input', function () { if (alertValidationInput.val().match(alertRegex)) { alertValidationMsg.css("display", "none"); } else { alertValidationMsg.css("display", "block"); } }); /***** Carousel *****/ // For Carousel With Enabled Keyboard Controls $(document).on("keyup", function (e) { if (e.which == 39) { $('.carousel[data-keyboard="true"]').carousel('next'); } else if (e.which == 37) { $('.carousel[data-keyboard="true"]').carousel('prev'); } }) // To open Collapse on hover if (accordion.attr("data-toggle-hover", "true")) { collapseHoverTitle.closest(".card").on("mouseenter", function () { $(this).children(".collapse").collapse("show"); }); } // Accordion with Shadow - When Collapse open $('.accordion-shadow .collapse-header .card-header').on("click", function () { var $this = $(this); $this.parent().siblings(".collapse-header.open").removeClass("open"); $this.parent(".collapse-header").toggleClass("open"); }); /***** Dropdown *****/ // For Dropdown With Icons dropdownMenuIcon.on("click", function () { $(".dropdown-icon-wrapper .dropdown-toggle i").remove(); $(this).find("i").clone().appendTo(".dropdown-icon-wrapper .dropdown-toggle"); $(".dropdown-icon-wrapper .dropdown-toggle .dropdown-item").removeClass("dropdown-item"); }); + /***** Chips *****/ // To close chips $('.chip-closeable').on('click', function () { $(this).closest('.chip').remove(); }) })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/customizer.js ================================================ /*========================================================================================= File Name: customizer.js Description: Template customizer js. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; // main menu active gradient colors object var themeColor = { "theme-primary": "linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7))", "theme-success": "linear-gradient(118deg, #28c76f, rgba(40, 199, 111, 0.7))", "theme-danger": "linear-gradient(118deg, #ea5455, rgba(234, 84, 85, 0.7))", "theme-info": "linear-gradient(118deg, #00cfe8, rgba(0, 207, 232, 0.7))", "theme-warning": "linear-gradient(118deg, #ff9f43, rgba(255, 159, 67, 0.7))", "theme-dark": "linear-gradient(118deg, #1e1e1e, rgba(30, 30, 30, 0.7))" } // main menu active box shadow object var themeBoxShadow = { "theme-primary": "0 0 10px 1px rgba(115, 103, 240, 0.7)", "theme-success": "0 0 10px 1px rgba(40, 199, 111, 0.7)", "theme-danger": "0 0 10px 1px rgba(234, 84, 85, 0.7)", "theme-info": "0 0 10px 1px rgba(0, 207, 232, 0.7)", "theme-warning": "0 0 10px 1px rgba(255, 159, 67, 0.7)", "theme-dark": "0 0 10px 1px rgba(30, 30, 30, 0.7)" } // colors for navbar header text of main menu var currentColor = { "theme-default": "#fff", "theme-primary": "#7367f0", "theme-success": "#28c76f", "theme-danger": "#ea5455", "theme-info": "#00cfe8", "theme-warning": "#ff9f43", "theme-dark": "#adb5bd" } // Brand Logo Poisitons var LogoPosition = { "theme-primary": "-65px -54px", "theme-success": "-120px -10px", "theme-danger": "-10px -10px", "theme-info": "-10px -54px", "theme-warning": "-120px -54px", "theme-dark": "-65px -10px" } var body = $("body"), appContent = $(".app-content"), mainMenu = $(".main-menu"), menuContent = $(".menu-content"), footer = $(".footer"), navbar = $(".header-navbar"), horizontalNavbar = $(".horizontal-menu-wrapper .header-navbar"), navBarShadow = $(".header-navbar-shadow"), toggleIcon = $(".toggle-icon"), collapseSidebar = $("#collapse-sidebar-switch"), customizer = $(".customizer"), brandLogo = $(".brand-logo"); // Customizer toggle & close button click events [Remove customizer code from production] $('.customizer-toggle').on('click', function (e) { e.preventDefault(); $(customizer).toggleClass('open'); }); $('.customizer-close').on('click', function () { $(customizer).removeClass('open'); }); // perfect scrollbar for customizer if ($('.customizer-content').length > 0) { var customizer_content = new PerfectScrollbar('.customizer-content'); } /***** Theme Colors Options *****/ $(document).on("click", "#customizer-theme-colors .color-box", function () { var $this = $(this); $this.siblings().removeClass('selected'); $this.addClass("selected"); var selectedColor = $(this).data("color"), changeColor = themeColor[selectedColor], selectedShadow = themeBoxShadow[selectedColor], selectedTextColor = currentColor[selectedColor], selectedLogo = LogoPosition[selectedColor]; // main-menu if(body.data('menu')=="horizontal-menu"){ if(horizontalNavbar.find("li.sidebar-group-active:not(.dropdown-submenu)").length) { horizontalNavbar.find("li.sidebar-group-active:not(.dropdown-submenu) > a").css( { "background": changeColor, "box-shadow": selectedShadow } ); horizontalNavbar.find("li.sidebar-group-active:not(.dropdown-submenu) > ul li.active > a").css( { "color": selectedTextColor } ); } } else{ if (menuContent.find("li.active").length) { menuContent.find("li.active").css( { "background": changeColor, "box-shadow": selectedShadow } ); } else if($(".main-menu-content").find("li.sidebar-group-active").length) { $(".main-menu-content").find("li.sidebar-group-active > a").css( { "background": changeColor, "box-shadow": selectedShadow } ); } else { mainMenu.find(".nav-item.active a").css( { "background": changeColor, "box-shadow": selectedShadow } ); } } // Text with logo $(".brand-text").css("color", selectedTextColor); // toggle icon toggleIcon.removeClass("primary").css("color", selectedTextColor); // Changes logo color brandLogo.css("background-position", selectedLogo); }); /***** Theme Layout Options *****/ $(".layout-name").on("click", function () { var $this = $(this); var currentLayout = $this.data("layout"); body.removeClass("dark-layout semi-dark-layout").addClass(currentLayout); if (currentLayout === "") { mainMenu.removeClass("menu-dark").addClass("menu-light"); navbar.removeClass("navbar-dark").addClass("navbar-light"); } }) // checks right radio if layout type matches var layout = body.data("layout"); $(".layout-name[data-layout='" + layout + "']").prop('checked', true); collapseSidebar.on("click", function(){ $(".modern-nav-toggle").trigger("click"); $(".main-menu").trigger('mouseleave'); }); // checks if main menu is collapsed by default if (body.hasClass("menu-collapsed")) { collapseSidebar.prop("checked", true); } else { collapseSidebar.prop("checked", false); } /***** Navbar Color Options *****/ $("#customizer-navbar-colors .color-box").on("click", function () { var $this = $(this); $this.siblings().removeClass('selected'); $this.addClass("selected"); var navbarColor = $this.data("navbar-color"); // changes navbar colors if (navbarColor) { body .find(navbar) .removeClass("bg-primary bg-success bg-danger bg-info bg-warning bg-dark") .addClass(navbarColor + " navbar-dark"); } else { body .find(navbar) .removeClass("bg-primary bg-success bg-danger bg-info bg-warning bg-dark navbar-dark"); } if (body.hasClass("dark-layout")) { navbar.addClass("navbar-dark") } }) /***** Navbar Type *****/ if(body.hasClass('horizontal-menu')){ $('.collapse_menu').removeClass('d-none'); $('.collapse_sidebar').addClass('d-none'); $('.menu_type').removeClass('d-none'); $('.navbar_type').addClass('d-none'); // Hides hidden option in Horizontal layout $('.navbar-type #navbar-hidden').closest('fieldset').parent('div').css('display','none'); // On Scroll navbar color on horizontal menu $(window).scroll(function(){ if(body.hasClass('navbar-static')){ var scroll = $(window).scrollTop(); if (scroll > 65) { $(".horizontal-menu .header-navbar.navbar-fixed").css({"background":"#fff", "box-shadow":"0 4px 20px 0 rgba(0,0,0,.05)"}); $(".horizontal-menu .horizontal-menu-wrapper.header-navbar").css("background" , "#fff"); } else{ $(".horizontal-menu .header-navbar.navbar-fixed").css({"background":"#f8f8f8", "box-shadow":"none"}); $(".horizontal-menu .horizontal-menu-wrapper.header-navbar").css("background" , "#fff"); } } }) } // Hides Navbar $("#navbar-hidden").on("click", function () { navbar.addClass("d-none"); navBarShadow.addClass("d-none"); body.removeClass("navbar-static navbar-floating navbar-sticky").addClass("navbar-hidden"); }); // changes to Static navbar $("#navbar-static").on("click", function () { if(body.hasClass('horizontal-menu')){ horizontalNavbar .removeClass("d-none floating-nav fixed-top navbar-fixed"); body.removeClass("navbar-hidden navbar-floating navbar-sticky").addClass("navbar-static"); } else{ navBarShadow.addClass("d-none"); navbar .removeClass("d-none floating-nav fixed-top") .addClass("navbar-static-top"); body.removeClass("navbar-hidden navbar-floating navbar-sticky").addClass("navbar-static"); } }); // change to floating navbar $("#navbar-floating").on("click", function () { if(body.hasClass('horizontal-menu')){ horizontalNavbar .removeClass("d-none fixed-top navbar-static-top") .addClass("floating-nav"); body.removeClass("navbar-static navbar-hidden navbar-sticky").addClass("navbar-floating"); } else{ navBarShadow.removeClass("d-none"); navbar .removeClass("d-none navbar-static-top fixed-top") .addClass("floating-nav"); body.removeClass("navbar-static navbar-hidden navbar-sticky").addClass("navbar-floating"); } }); // changes to Static navbar $("#navbar-sticky").on("click", function () { if(body.hasClass('horizontal-menu')){ horizontalNavbar .removeClass("d-none floating-nav navbar-static-top navbar-fixed") .addClass("fixed-top"); body.removeClass("navbar-static navbar-floating navbar-hidden").addClass("navbar-sticky"); } else{ navBarShadow.addClass("d-none"); navbar .removeClass("d-none floating-nav navbar-static-top") .addClass("fixed-top"); body.removeClass("navbar-static navbar-floating navbar-hidden").addClass("navbar-sticky"); } }); /***** Footer Type *****/ // Hides footer $("#footer-hidden").on("click", function () { footer.addClass("d-none"); body.removeClass("footer-static fixed-footer").addClass("footer-hidden"); }); // changes to Static footer $("#footer-static").on("click", function () { body.removeClass("fixed-footer"); footer.removeClass("d-none").addClass("footer-static"); body.removeClass("footer-hidden fixed-footer").addClass("footer-static"); }); // changes to Sticky footer $("#footer-sticky").on("click", function () { body.removeClass("footer-static footer-hidden").addClass("fixed-footer"); footer.removeClass("d-none footer-static"); }); /***** Hide Scroll To Top *****/ $("#hide-scroll-top-switch").on("click", function () { var scrollTopBtn = $(".scroll-top") if ($(this).prop("checked")) { scrollTopBtn.addClass("d-none"); } else { scrollTopBtn.removeClass("d-none"); } }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/datatables/datatable.js ================================================ /*========================================================================================= File Name: datatables-basic.js Description: Basic Datatable ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { /**************************************** * js of zero configuration * ****************************************/ $('.zero-configuration').DataTable(); /******************************************** * js of Order by the grouping * ********************************************/ var groupingTable = $('.row-grouping').DataTable({ "columnDefs": [{ "visible": false, "targets": 2 }], "order": [ [2, 'asc'] ], "displayLength": 10, "drawCallback": function(settings) { var api = this.api(); var rows = api.rows({ page: 'current' }).nodes(); var last = null; api.column(2, { page: 'current' }).data().each(function(group, i) { if (last !== group) { $(rows).eq(i).before( '' + group + '' ); last = group; } }); } }); $('.row-grouping tbody').on('click', 'tr.group', function() { var currentOrder = groupingTable.order()[0]; if (currentOrder[0] === 2 && currentOrder[1] === 'asc') { groupingTable.order([2, 'desc']).draw(); } else { groupingTable.order([2, 'asc']).draw(); } }); /************************************* * js of complex headers * *************************************/ $('.complex-headers').DataTable(); /***************************** * js of Add Row * ******************************/ var t = $('.add-rows').DataTable(); var counter = 2; $('#addRow').on( 'click', function () { t.row.add( [ counter +'.1', counter +'.2', counter +'.3', counter +'.4', counter +'.5' ] ).draw( false ); counter++; }); /************************************************************** * js of Tab for COLUMN SELECTORS WITH EXPORT AND PRINT OPTIONS * ***************************************************************/ $('.dataex-html5-selectors').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'copyHtml5', exportOptions: { columns: [ 0, ':visible' ] } }, { extend: 'pdfHtml5', exportOptions: { columns: ':visible' } }, { text: 'JSON', action: function ( e, dt, button, config ) { var data = dt.buttons.exportData(); $.fn.dataTable.fileSave( new Blob( [ JSON.stringify( data ) ] ), 'Export.json' ); } }, { extend: 'print', exportOptions: { columns: ':visible' } } ] }); /************************************************** * js of scroll horizontal & vertical * **************************************************/ $('.scroll-horizontal-vertical').DataTable( { "scrollY": 200, "scrollX": true }); }); ================================================ FILE: public/backend/js/scripts/documentation.js ================================================ /*========================================================================================= File Name: documentation.js Description: Theme documentation js file ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function(){ $('body').scrollspy({ target: '#sidebar-page-navigation' }); }); ================================================ FILE: public/backend/js/scripts/editors/editor-quill.js ================================================ /*========================================================================================= File Name: editor-quill.js Description: Quill is a modern rich text editor built for compatibility and extensibility. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; var Font = Quill.import('formats/font'); Font.whitelist = ['sofia', 'slabo', 'roboto', 'inconsolata', 'ubuntu']; Quill.register(Font, true); // Bubble Editor var bubbleEditor = new Quill('#bubble-container .editor', { bounds: '#bubble-container .editor', modules: { 'formula': true, 'syntax': true }, theme: 'bubble' }); // Snow Editor var snowEditor = new Quill('#snow-container .editor', { bounds: '#snow-container .editor', modules: { 'formula': true, 'syntax': true, 'toolbar': '#snow-container .quill-toolbar' }, theme: 'snow' }); // Full Editor var fullEditor = new Quill('#full-container .editor', { bounds: '#full-container .editor', modules: { 'formula': true, 'syntax': true, 'toolbar': [ [{ 'font': [] }, { 'size': [] }], ['bold', 'italic', 'underline', 'strike'], [{ 'color': [] }, { 'background': [] }], [{ 'script': 'super' }, { 'script': 'sub' }], [{ 'header': '1' }, { 'header': '2' }, 'blockquote', 'code-block'], [{ 'list': 'ordered' }, { 'list': 'bullet' }, { 'indent': '-1' }, { 'indent': '+1' }], ['direction', { 'align': [] }], ['link', 'image', 'video', 'formula'], ['clean'] ], }, theme: 'snow' }); var editors = [bubbleEditor, snowEditor, fullEditor]; })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/extensions/context-menu.js ================================================ /*========================================================================================= File Name: context-menu.js Description: Context Menu -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ // Basic Context Menu $.contextMenu({ selector: "#basic-context-menu", callback: function (key, options) { var r = "clicked " + key; window.console && toastr.success(r); }, items: { "Option 1": { name: "Option 1" }, "Option 2": { name: "Option 2" }, } }) // Left Click Trigger $.contextMenu({ selector: '#left-click-context-menu', trigger: "left", callback: function (key, options) { var r = "clicked " + key window.console && toastr.success(r); }, items: { "Option 1": { name: "Option 1" }, "Option 2": { name: "Option 2" }, } }); // Hover Trigger $.contextMenu({ selector: '#hover-context-menu', trigger: 'hover', autoHide: true, callback: function (key, options) { var r = "clicked " + key window.console && toastr.success(r); }, items: { "Option 1": { name: "Option 1" }, "Option 2": { name: "Option 2" }, } }); // Submenu $.contextMenu({ selector: '#submenu-context-menu', callback: function (key, options) { var r = "clicked " + key window.console && toastr.success(r); }, items: { "Option 1": { name: "Option 1" }, "name": { name: "Option 2" }, "fold1": { "name": "Sub Group", "items": { "Foo Bar": { "name": "Foo bar" }, "fold1a": { "name": "Other group", "items": { "Echo": { "name": "echo" }, "Foxtrot": { "name": "foxtrot" }, "Golf": { "name": "golf" } } } } } } }) ================================================ FILE: public/backend/js/scripts/extensions/copy-to-clipboard.js ================================================ /*========================================================================================= File Name: copy-to-clipboard.js Description: Copy to clipboard -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ var userText = $("#copy-to-clipboard-input"); var btnCopy = $("#btn-copy"); // copy text on click btnCopy.on("click", function () { userText.select(); document.execCommand("copy"); }) ================================================ FILE: public/backend/js/scripts/extensions/drag-drop.js ================================================ /*========================================================================================= File Name: drag-drop.js Description: drag & drop elements using dragula js -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // Draggable Cards dragula([document.getElementById('card-drag-area')]); // Sortable Lists dragula([document.getElementById('basic-list-group')]); dragula([document.getElementById('multiple-list-group-a'), document.getElementById('multiple-list-group-b')]); // Cloning dragula([document.getElementById('chips-list-1'), document.getElementById('chips-list-2')], { copy: true }); // With Handles dragula([document.getElementById("handle-list-1"), document.getElementById("handle-list-2")], { moves: function (el, container, handle) { return handle.classList.contains('handle'); } }); }); ================================================ FILE: public/backend/js/scripts/extensions/dropzone.js ================================================ /*========================================================================================= File Name: dropzone.js Description: dropzone -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ Dropzone.options.dpzSingleFile = { paramName: "file", // The name that will be used to transfer the file maxFiles: 1, init: function () { this.on("maxfilesexceeded", function (file) { this.removeAllFiles(); this.addFile(file); }); } }; /******************************************** * Multiple Files * ********************************************/ Dropzone.options.dpzMultipleFiles = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 0.5, // MB clickable: true } /******************************************************** * Use Button To Select Files * ********************************************************/ new Dropzone(document.body, { // Make the whole body a dropzone url: "#", // Set the url previewsContainer: "#dpz-btn-select-files", // Define the container to display the previews clickable: "#select-files" // Define the element that should be used as click trigger to select files. }); /**************************************************************** * Limit File Size and No. Of Files * ****************************************************************/ Dropzone.options.dpzFileLimits = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 0.5, // MB maxFiles: 5, maxThumbnailFilesize: 1, // MB } /******************************************** * Accepted Files * ********************************************/ Dropzone.options.dpAcceptFiles = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 1, // MB acceptedFiles: 'image/*' } /************************************************ * Remove Thumbnail * ************************************************/ Dropzone.options.dpzRemoveThumb = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 1, // MB addRemoveLinks: true, dictRemoveFile: " Trash" } /***************************************************** * Remove All Thumbnails * *****************************************************/ Dropzone.options.dpzRemoveAllThumb = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 1, // MB init: function () { // Using a closure. var _this = this; // Setup the observer for the button. $("#clear-dropzone").on("click", function () { // Using "_this" here, because "this" doesn't point to the dropzone anymore _this.removeAllFiles(); // If you want to cancel uploads as well, you // could also call _this.removeAllFiles(true); }); } } ================================================ FILE: public/backend/js/scripts/extensions/fullcalendar.js ================================================ /*========================================================================================= File Name: fullcalendar.js Description: Fullcalendar -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ document.addEventListener('DOMContentLoaded', function () { // color object for different event types var colors = { primary: "#7367f0", success: "#28c76f", danger: "#ea5455", warning: "#ff9f43" }; // chip text object for different event types var categoryText = { primary: "Others", success: "Business", danger: "Personal", warning: "Work" }; var categoryBullets = $(".cal-category-bullets").html(), evtColor = "", eventColor = ""; // calendar init var calendarEl = document.getElementById('fc-default'); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: ["dayGrid", "timeGrid", "interaction"], customButtons: { addNew: { text: ' Add', click: function () { var calDate = new Date, todaysDate = calDate.toISOString().slice(0, 10); $(".modal-calendar").modal("show"); $(".modal-calendar .cal-submit-event").addClass("d-none"); $(".modal-calendar .remove-event").addClass("d-none"); $(".modal-calendar .cal-add-event").removeClass("d-none") $(".modal-calendar .cancel-event").removeClass("d-none") $(".modal-calendar .add-category .chip").remove(); $("#cal-start-date").val(todaysDate); $("#cal-end-date").val(todaysDate); $(".modal-calendar #cal-start-date").attr("disabled", false); } } }, header: { left: "addNew", center: "dayGridMonth,timeGridWeek,timeGridDay", right: "prev,title,next" }, displayEventTime: false, navLinks: true, editable: true, allDay: true, navLinkDayClick: function (date) { $(".modal-calendar").modal("show"); }, dateClick: function (info) { $(".modal-calendar #cal-start-date").val(info.dateStr).attr("disabled", true); $(".modal-calendar #cal-end-date").val(info.dateStr); }, // displays saved event values on click eventClick: function (info) { $(".modal-calendar").modal("show"); $(".modal-calendar #cal-event-title").val(info.event.title); $(".modal-calendar #cal-start-date").val(moment(info.event.start).format('YYYY-MM-DD')); $(".modal-calendar #cal-end-date").val(moment(info.event.end).format('YYYY-MM-DD')); $(".modal-calendar #cal-description").val(info.event.extendedProps.description); $(".modal-calendar .cal-submit-event").removeClass("d-none"); $(".modal-calendar .remove-event").removeClass("d-none"); $(".modal-calendar .cal-add-event").addClass("d-none"); $(".modal-calendar .cancel-event").addClass("d-none"); $(".calendar-dropdown .dropdown-menu").find(".selected").removeClass("selected"); var eventCategory = info.event.extendedProps.dataEventColor; var eventText = categoryText[eventCategory] $(".modal-calendar .chip-wrapper .chip").remove(); $(".modal-calendar .chip-wrapper").append($("
    " + "
    " + " " + eventText + " " + "
    " + "
    ")); }, }); // render calendar calendar.render(); // appends bullets to left class of header $("#basic-examples .fc-right").append(categoryBullets); // Close modal on submit button $(".modal-calendar .cal-submit-event").on("click", function () { $(".modal-calendar").modal("hide"); }); // Remove Event $(".remove-event").on("click", function () { var removeEvent = calendar.getEventById('newEvent'); removeEvent.remove(); }); // reset input element's value for new event if ($("td:not(.fc-event-container)").length > 0) { $(".modal-calendar").on('hidden.bs.modal', function (e) { $('.modal-calendar .form-control').val(''); }) } // remove disabled attr from button after entering info $(".modal-calendar .form-control").on("keyup", function () { if ($(".modal-calendar #cal-event-title").val().length >= 1) { $(".modal-calendar .modal-footer .btn").removeAttr("disabled"); } else { $(".modal-calendar .modal-footer .btn").attr("disabled", true); } }); // open add event modal on click of day $(document).on("click", ".fc-day", function () { $(".modal-calendar").modal("show"); $(".calendar-dropdown .dropdown-menu").find(".selected").removeClass("selected"); $(".modal-calendar .cal-submit-event").addClass("d-none"); $(".modal-calendar .remove-event").addClass("d-none"); $(".modal-calendar .cal-add-event").removeClass("d-none"); $(".modal-calendar .cancel-event").removeClass("d-none"); $(".modal-calendar .add-category .chip").remove(); $(".modal-calendar .modal-footer .btn").attr("disabled", true); evtColor = colors.primary; eventColor = "primary"; }); // change chip's and event's color according to event type $(".calendar-dropdown .dropdown-menu .dropdown-item").on("click", function () { var selectedColor = $(this).data("color"); evtColor = colors[selectedColor]; eventTag = categoryText[selectedColor]; eventColor = selectedColor; // changes event color after selecting category $(".cal-add-event").on("click", function () { calendar.addEvent({ color: evtColor, dataEventColor: eventColor, className: eventColor }); }) $(".calendar-dropdown .dropdown-menu").find(".selected").removeClass("selected"); $(this).addClass("selected"); // add chip according to category $(".modal-calendar .chip-wrapper .chip").remove(); $(".modal-calendar .chip-wrapper").append($("
    " + "
    " + " " + eventTag + " " + "
    " + "
    ")); }); // calendar add event $(".cal-add-event").on("click", function () { $(".modal-calendar").modal("hide"); var eventTitle = $("#cal-event-title").val(), startDate = $("#cal-start-date").val(), endDate = $("#cal-end-date").val(), eventDescription = $("#cal-description").val(), correctEndDate = new Date(endDate); calendar.addEvent({ id: "newEvent", title: eventTitle, start: startDate, end: correctEndDate, description: eventDescription, color: evtColor, dataEventColor: eventColor, allDay: true }); }); // date picker $(".pickadate").pickadate({ format: 'yyyy-mm-dd' }); }); ================================================ FILE: public/backend/js/scripts/extensions/i18n.js ================================================ /*========================================================================================= File Name: i18n.js Description: Internationalization -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ // For Language Select var changeText = $('.card-localization .card-text') // for extensions i18n page // i18n has been initialized already we have have to add resource bundle i18next.addResourceBundle('en_p', 'translation', { key: "Cake sesame snaps cupcake gingerbread danish I love gingerbread. Apple pie pie jujubes chupa chups muffin halvah lollipop. Chocolate cake oat cake tiramisu marzipan sugar plum. Donut sweet pie oat cake dragée fruitcake cotton candy lemon drops." }); i18next.addResourceBundle('pt_p', 'translation', { key: "O sésamo do bolo agarra dinamarquês do pão-de-espécie do queque eu amo o pão-de-espécie. Torta de torta de maçã jujubes chupa chups  pirulito halvah muffin. Ameixa do açúcar do maçapão do tiramisu do bolo da aveia do bolo de chocolate. Donut doce aveia torta dragée fruitcake algodão doce gotas de limão." }); i18next.addResourceBundle('fr_p', 'translation', { key: "Gâteau au sésame s'enclenche petit pain au pain d'épices danois J'adore le pain d'épices. Tarte aux pommes jujubes chupa chups  muffin halva sucette. Gateau au chocolat gateau d \ 'avoine tiramisu prune sucre. Donut tourte sucrée gateau dragée fruit gateau barbe a papa citron gouttes.." }); i18next.addResourceBundle('de_p', 'translation', { key: "Kuchen Sesam Snaps Cupcake Lebkuchen dänisch Ich liebe Lebkuchen. Apfelkuchen Jujubes Chupa Chups Muffin Halwa Lutscher. Schokoladenkuchen-Haferkuchen-Tiramisumarzipanzuckerpflaume. Donut süße Torte Hafer Kuchen Dragée Obstkuchen Zuckerwatte Zitronentropfen." }); // Change Card Text Language On Click $(".language-options").on("click", ".i18n-lang-option", function () { var selected_lng = $(this).data('lng'); i18next.changeLanguage(selected_lng, function (err, t) { // resources have been loaded changeText.localize(); }); }) ================================================ FILE: public/backend/js/scripts/extensions/media-plyr.js ================================================ /*========================================================================================= File Name: media-plyr.js Description: Media Plyr Extenstion -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // video player define var player = new Plyr(".video-player"); // audio player define var player1 = new Plyr(".audio-player"); }); ================================================ FILE: public/backend/js/scripts/extensions/noui-slider.js ================================================ /*========================================================================================= File Name: noui-slider.js Description: noUiSlider is a lightweight JavaScript range slider library. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // RTL Support var direction = 'ltr'; if($('html').data('textdirection') == 'rtl'){ direction = 'rtl'; } /******************************************** * Slider values * ********************************************/ // Handles var handlesSlider = document.getElementById('slider-handles'); noUiSlider.create(handlesSlider, { start: [4000, 8000], direction: direction, range: { 'min': [2000], 'max': [10000] } }); // Snapping between steps var snapSlider = document.getElementById('slider-snap'); noUiSlider.create(snapSlider, { start: [0, 500], direction: direction, snap: true, connect: true, range: { 'min': 0, '10%': 50, '20%': 100, '30%': 150, '40%': 500, '50%': 800, 'max': 1000 } }); /************************************************ * Slider behaviour * ************************************************/ // Tap tapSlider = document.getElementById('tap'); noUiSlider.create(tapSlider, { start: 40, direction: direction, behaviour: 'tap', connect: 'upper', range: { 'min': 20, 'max': 80 } }); // Drag var dragSlider = document.getElementById('drag'); noUiSlider.create(dragSlider, { start: [40, 60], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Fixed dragging dragFixedSlider = document.getElementById('drag-fixed'); noUiSlider.create(dragFixedSlider, { start: [40, 60], direction: direction, behaviour: 'drag-fixed', connect: true, range: { 'min': 20, 'max': 80 } }); // Hover var hoverSlider = document.getElementById('hover'), field = document.getElementById('hover-val'); noUiSlider.create(hoverSlider, { start: 20, direction: direction, behaviour: 'hover-snap', range: { 'min': 0, 'max': 10 } }); hoverSlider.noUiSlider.on('hover', function (value) { field.innerHTML = value; }); // Combined options dragTapSlider = document.getElementById('combined'); noUiSlider.create(dragTapSlider, { start: [40, 60], direction: direction, behaviour: 'drag-tap', connect: true, range: { 'min': 20, 'max': 80 } }); /**************************************************** * Slider Scales / Pips * ****************************************************/ var range_all_sliders = { 'min': [0], '10%': [5, 5], '50%': [40, 10], 'max': [100] }; // Range var pipsRange = document.getElementById('pips-range'); noUiSlider.create(pipsRange, { range: range_all_sliders, start: 0, direction: direction, pips: { mode: 'range', density: 3 } }); // Steps var range_step_sliders = { 'min': [0], '10%': [5, 5], '50%': [25, 20], 'max': [50, 50] }; function filter500(value, type) { if (type === 0) { return value < 50 ? -1 : 0; } return value % 50 ? 2 : 1; } var pipsStepsFilter = document.getElementById('pips-steps-filter'); noUiSlider.create(pipsStepsFilter, { range: range_step_sliders, start: 0, direction: direction, pips: { mode: 'steps', density: 5, filter: filter500, format: wNumb({ decimals: 0, prefix: '$' }) } }); /******************************************** * Slider Colors * ********************************************/ // Default var defaultColorSlider = document.getElementById('default-color-slider'); noUiSlider.create(defaultColorSlider, { start: [45, 55], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Success var successColorSlider = document.getElementById('success-color-slider'); noUiSlider.create(successColorSlider, { start: [40, 60], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Info var infoColorSlider = document.getElementById('info-color-slider'); noUiSlider.create(infoColorSlider, { start: [35, 65], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Warning var warningColorSlider = document.getElementById('warning-color-slider'); noUiSlider.create(warningColorSlider, { start: [45, 55], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Danger var dangerColorSlider = document.getElementById('danger-color-slider'); noUiSlider.create(dangerColorSlider, { start: [40, 60], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }); // Colored Connects var sliderColoredConnects = document.getElementById('colored-connect'); noUiSlider.create(sliderColoredConnects, { start: [4000, 8000, 12000, 16000], direction: direction, connect: [false, true, true, true, true], range: { 'min': [2000], 'max': [20000] } }); var connect = sliderColoredConnects.querySelectorAll('.noUi-connect'); var classes = ['bg-primary', 'bg-success', 'bg-info', 'bg-danger', 'bg-warning']; for (var i = 0; i < connect.length; i++) { connect[i].classList.add(classes[i]); } /******************************************** * Slider Sizing * ********************************************/ // Extra large options var xl_options = { start: [45, 55], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var lg_options = { start: [40, 60], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var default_options = { start: [35, 65], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var sm_options = { start: [30, 70], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var xs_options = { start: [25, 75], direction: direction, behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; // Extra Large var extraLargeSlider = document.getElementById('extra-large-slider'); var circleExtraLargeSlider = document.getElementById('circle-extra-large-slider'); var squareExtraLargeSlider = document.getElementById('square-extra-large-slider'); noUiSlider.create(extraLargeSlider, xl_options); noUiSlider.create(circleExtraLargeSlider, xl_options); noUiSlider.create(squareExtraLargeSlider, xl_options); // Large var largeSlider = document.getElementById('large-slider'); var circleLargeSlider = document.getElementById('circle-large-slider'); var squareLargeSlider = document.getElementById('square-large-slider'); noUiSlider.create(largeSlider, lg_options); noUiSlider.create(circleLargeSlider, lg_options); noUiSlider.create(squareLargeSlider, lg_options); // Default var defaultSlider = document.getElementById('default-slider'); var circleDefaultSlider = document.getElementById('circle-default-slider'); var squareDefaultSlider = document.getElementById('square-default-slider'); noUiSlider.create(defaultSlider, default_options); noUiSlider.create(circleDefaultSlider, default_options); noUiSlider.create(squareDefaultSlider, default_options); // Small var smallSlider = document.getElementById('small-slider'); var circleSmallSlider = document.getElementById('circle-small-slider'); var squareSmallSlider = document.getElementById('square-small-slider'); noUiSlider.create(smallSlider, sm_options); noUiSlider.create(circleSmallSlider, sm_options); noUiSlider.create(squareSmallSlider, sm_options); // Extra Small var extraSmallSlider = document.getElementById('extra-small-slider'); var circleExtraSmallSlider = document.getElementById('circle-extra-small-slider'); var squareExtraSmallSlider = document.getElementById('square-extra-small-slider'); noUiSlider.create(extraSmallSlider, xs_options); noUiSlider.create(circleExtraSmallSlider, xs_options); noUiSlider.create(squareExtraSmallSlider, xs_options); /******************************************** * Vertical Slider * ********************************************/ // Default var vertical_slider_1 = document.getElementById('slider-vertical-1'); noUiSlider.create(vertical_slider_1, { start: 20, direction: direction, orientation: 'vertical', range: { 'min': 0, 'max': 100 } }); var vertical_slider_2 = document.getElementById('slider-vertical-2'); noUiSlider.create(vertical_slider_2, { start: 50, direction: direction, orientation: 'vertical', range: { 'min': 0, 'max': 100 } }); var vertical_slider_3 = document.getElementById('slider-vertical-3'); noUiSlider.create(vertical_slider_3, { start: 20, direction: direction, orientation: 'vertical', range: { 'min': 0, 'max': 100 } }); var vertical_slider_4 = document.getElementById('slider-vertical-4'); noUiSlider.create(vertical_slider_4, { start: 50, direction: direction, orientation: 'vertical', range: { 'min': 0, 'max': 100 } }); var vertical_slider_5 = document.getElementById('slider-vertical-5'); noUiSlider.create(vertical_slider_5, { start: 20, direction: direction, orientation: 'vertical', range: { 'min': 0, 'max': 100 } }); // Connect to lower var connectLowerSlider1 = document.getElementById('connect-lower-1'); noUiSlider.create(connectLowerSlider1, { start: 30, direction: direction, orientation: 'vertical', connect: 'lower', range: { 'min': 0, 'max': 100 } }); var connectLowerSlider2 = document.getElementById('connect-lower-2'); noUiSlider.create(connectLowerSlider2, { start: 40, direction: direction, orientation: 'vertical', connect: 'lower', range: { 'min': 0, 'max': 100 } }); var connectLowerSlider3 = document.getElementById('connect-lower-3'); noUiSlider.create(connectLowerSlider3, { start: 50, direction: direction, orientation: 'vertical', connect: 'lower', range: { 'min': 0, 'max': 100 } }); var connectLowerSlider4 = document.getElementById('connect-lower-4'); noUiSlider.create(connectLowerSlider4, { start: 60, direction: direction, orientation: 'vertical', connect: 'lower', range: { 'min': 0, 'max': 100 } }); var connectLowerSlider5 = document.getElementById('connect-lower-5'); noUiSlider.create(connectLowerSlider5, { start: 70, direction: direction, orientation: 'vertical', connect: 'lower', range: { 'min': 0, 'max': 100 } }); // Connect to upper var connectUpperSlider1 = document.getElementById('connect-upper-1'); noUiSlider.create(connectUpperSlider1, { start: 30, direction: direction, orientation: 'vertical', connect: 'upper', range: { 'min': 0, 'max': 100 } }); var connectUpperSlider2 = document.getElementById('connect-upper-2'); noUiSlider.create(connectUpperSlider2, { start: 40, direction: direction, orientation: 'vertical', connect: 'upper', range: { 'min': 0, 'max': 100 } }); var connectUpperSlider3 = document.getElementById('connect-upper-3'); noUiSlider.create(connectUpperSlider3, { start: 50, direction: direction, orientation: 'vertical', connect: 'upper', range: { 'min': 0, 'max': 100 } }); var connectUpperSlider4 = document.getElementById('connect-upper-4'); noUiSlider.create(connectUpperSlider4, { start: 60, direction: direction, orientation: 'vertical', connect: 'upper', range: { 'min': 0, 'max': 100 } }); var connectUpperSlider5 = document.getElementById('connect-upper-5'); noUiSlider.create(connectUpperSlider5, { start: 70, direction: direction, orientation: 'vertical', connect: 'upper', range: { 'min': 0, 'max': 100 } }); // Tooltips var tooltipSlider1 = document.getElementById('slider-tooltips-1'); noUiSlider.create(tooltipSlider1, { start: [20, 80], direction: direction, orientation: 'vertical', tooltips: [false, wNumb({ decimals: 1 })], range: { 'min': 0, 'max': 100 } }); var tooltipSlider2 = document.getElementById('slider-tooltips-2'); noUiSlider.create(tooltipSlider2, { start: [20, 80], direction: direction, orientation: 'vertical', tooltips: [false, wNumb({ decimals: 1 })], range: { 'min': 0, 'max': 100 } }); var tooltipSlider3 = document.getElementById('slider-tooltips-3'); noUiSlider.create(tooltipSlider3, { start: [20, 80], direction: direction, orientation: 'vertical', tooltips: [false, wNumb({ decimals: 1 })], range: { 'min': 0, 'max': 100 } }); // Direction top to bottom var directionTopBottom1 = document.getElementById('slider-direction-top-bottom-1'); noUiSlider.create(directionTopBottom1, { range: range_all_sliders, start: 30, direction: direction, connect: 'lower', orientation: 'vertical', pips: { mode: 'range', density: 5 } }); var directionTopBottom2 = document.getElementById('slider-direction-top-bottom-2'); noUiSlider.create(directionTopBottom2, { range: range_all_sliders, start: 50, direction: direction, connect: 'lower', orientation: 'vertical', pips: { mode: 'range', density: 5 } }); var directionTopBottom3 = document.getElementById('slider-direction-top-bottom-3'); noUiSlider.create(directionTopBottom3, { range: range_all_sliders, start: 70, direction: direction, connect: 'lower', orientation: 'vertical', pips: { mode: 'range', density: 5 } }); // Limit var verticalLimitSlider1 = document.getElementById('vertical-limit-1'); noUiSlider.create(verticalLimitSlider1, { start: [40, 60], direction: direction, orientation: 'vertical', limit: 40, behaviour: 'drag', connect: true, range: { 'min': 0, 'max': 100 } }); var verticalLimitSlider2 = document.getElementById('vertical-limit-2'); noUiSlider.create(verticalLimitSlider2, { start: [35, 65], direction: direction, orientation: 'vertical', limit: 40, behaviour: 'drag', connect: true, range: { 'min': 0, 'max': 100 } }); var verticalLimitSlider3 = document.getElementById('vertical-limit-3'); noUiSlider.create(verticalLimitSlider3, { start: [30, 70], direction: direction, orientation: 'vertical', limit: 50, behaviour: 'drag', connect: true, range: { 'min': 0, 'max': 100 } }); var verticalLimitSlider4 = document.getElementById('vertical-limit-4'); noUiSlider.create(verticalLimitSlider4, { start: [25, 75], direction: direction, orientation: 'vertical', limit: 50, behaviour: 'drag', connect: true, range: { 'min': 0, 'max': 100 } }); var verticalLimitSlider5 = document.getElementById('vertical-limit-5'); noUiSlider.create(verticalLimitSlider5, { start: [20, 80], direction: direction, orientation: 'vertical', limit: 70, behaviour: 'drag', connect: true, range: { 'min': 0, 'max': 100 } }); /**************************************************** * Horizontal Slider With Time * ****************************************************/ // Create a new date from a string, return as a timestamp. function timestamp(str) { return new Date(str).getTime(); } 1 function timestamp(str) { 2 return new Date(str).getTime(); 3 } // weekdays and months var weekdays = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]; var months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; // Append a suffix to dates. // Example: 23 => 23rd, 1 => 1st. function nth(d) { if (d > 3 && d < 21) return 'th'; switch (d % 10) { case 1: return "st"; case 2: return "nd"; case 3: return "rd"; default: return "th"; } } // Create a string representation of the date. function formatDate(date) { return weekdays[date.getDay()] + ", " + date.getDate() + nth(date.getDate()) + " " + months[date.getMonth()] + " " + date.getFullYear(); } var date = new Date(); // set previous month var previousMonth = new Date(); previousMonth.setMonth(previousMonth.getMonth() - 1); var dateSlider = document.getElementById('slider-with-date'); // nouislider settings noUiSlider.create(dateSlider, { behaviour: 'tap', connect: true, range: { min: timestamp('2016-06-01') + 24 * 60 * 60 * 1000, max: timestamp(date) }, step: 1 * 24 * 60 * 60 * 1000, start: [timestamp(previousMonth), timestamp(date)], direction: direction, }); // get range infos at html var dateValues = [ document.getElementById('event-start'), document.getElementById('event-end') ]; dateSlider.noUiSlider.on('update', function (values, handle) { dateValues[handle].innerHTML = formatDate(new Date(+values[handle])); }); /**************************************************** * Slider With Input * ****************************************************/ var select = document.getElementById('slider-select'); // Append the option elements for (var i = -20; i <= 40; i++) { var option = document.createElement("option"); option.text = i; option.value = i; select.appendChild(option); } var sliderWithInput = document.getElementById('slider-with-input'); noUiSlider.create(sliderWithInput, { start: [10, 30], direction: direction, connect: true, range: { 'min': -20, 'max': 40 } }); var inputNumber = document.getElementById('slider-input-number'); sliderWithInput.noUiSlider.on('update', function (values, handle) { var value = values[handle]; if (handle) { inputNumber.value = value; } else { select.value = Math.round(value); } }); select.addEventListener('change', function () { sliderWithInput.noUiSlider.set([this.value, null]); }); inputNumber.addEventListener('change', function () { sliderWithInput.noUiSlider.set([null, this.value]); }); }); ================================================ FILE: public/backend/js/scripts/extensions/sweet-alerts.js ================================================ /*========================================================================================= File Name: sweet-alerts.js Description: A beautiful replacement for javascript alerts ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // Basic $('#basic-alert').on('click', function () { Swal.fire({ title: 'Any fool can use a computer', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }); $('#with-title').on('click', function () { Swal.fire({ title: 'The Internet?,', text: "That thing is still around?", confirmButtonClass: 'btn btn-primary', buttonsStyling: false, } ) }); $('#footer-alert').on('click', function () { Swal.fire({ type: 'error', title: 'Oops...', text: 'Something went wrong!', footer: 'Why do I have this issue?', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }); $('#html-alert').on('click', function () { Swal.fire({ title: 'HTML example', type: 'info', html: 'You can use bold text, ' + 'links ' + 'and other HTML tags', showCloseButton: true, showCancelButton: true, focusConfirm: false, confirmButtonText: ' Great!', confirmButtonAriaLabel: 'Thumbs up, great!', cancelButtonText: '', cancelButtonAriaLabel: 'Thumbs down', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, cancelButtonClass: 'btn btn-danger ml-1', }) }); // Position $('#position-top-start').on('click', function () { Swal.fire({ position: 'top-start', type: 'success', title: 'Your work has been saved', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $('#position-top-end').on('click', function () { Swal.fire({ position: 'top-end', type: 'success', title: 'Your work has been saved', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $('#position-bottom-start').on('click', function () { Swal.fire({ position: 'bottom-start', type: 'success', title: 'Your work has been saved', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $('#position-bottom-end').on('click', function () { Swal.fire({ position: 'bottom-end', type: 'success', title: 'Your work has been saved', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) // Animations $("#bounce-in-animation").on('click', function () { Swal.fire({ title: 'Bounce In Animation', animation: false, customClass: 'animated bounceIn', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $("#fade-in-animation").on('click', function () { Swal.fire({ title: 'Fade In Animation', animation: false, customClass: 'animated fadeIn', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $("#flip-x-animation").on('click', function () { Swal.fire({ title: 'Flip In Animation', animation: false, customClass: 'animated flipInX', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $("#tada-animation").on('click', function () { Swal.fire({ title: 'Tada Animation', animation: false, customClass: 'animated tada', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) $("#shake-animation").on('click', function () { Swal.fire({ title: 'Shake Animation', animation: false, customClass: 'animated shake', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }) // type $('#type-success').on('click', function () { Swal.fire({ title: "Good job!", text: "You clicked the button!", type: "success", confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }); }); $('#type-info').on('click', function () { Swal.fire({ title: "Info!", text: "You clicked the button!", type: "info", confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }); }); $('#type-warning').on('click', function () { Swal.fire({ title: "Warning!", text: " You clicked the button!", type: "warning", confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }); }); $('#type-error').on('click', function () { Swal.fire({ title: "Error!", text: " You clicked the button!", type: "error", confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }); }); // options $('#custom-icon').on('click', function () { Swal.fire({ title: 'Sweet!', text: 'Modal with a custom image.', imageUrl: '../../../app-assets/images/slider/04.jpg', imageWidth: 400, imageHeight: 200, imageAlt: 'Custom image', animation: false, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }); $('#auto-close').on('click', function () { var timerInterval Swal.fire({ title: 'Auto close alert!', html: 'I will close in seconds.', timer: 2000, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, onBeforeOpen: function () { Swal.showLoading() timerInterval = setInterval(function () { Swal.getContent().querySelector('strong') .textContent = Swal.getTimerLeft() }, 100) }, onClose: function () { clearInterval(timerInterval) } }).then(function (result) { if ( // Read more about handling dismissals result.dismiss === Swal.DismissReason.timer ) { console.log('I was closed by the timer') } }) }); $('#outside-click').on('click', function () { Swal.fire({ title: 'Click outside to close!', text: 'This is a cool message!', allowOutsideClick: true, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }); }); $('#prompt-function').on('click', function () { Swal.mixin({ input: 'text', confirmButtonText: 'Next →', showCancelButton: true, progressSteps: ['1', '2', '3'], confirmButtonClass: 'btn btn-primary', buttonsStyling: false, cancelButtonClass: "btn btn-danger ml-1" }).queue([ { title: 'Question 1', text: 'Chaining swal2 modals is easy' }, 'Question 2', 'Question 3' ]).then(function (result) { if (result.value) { Swal.fire({ title: 'All done!', html: 'Your answers:
    ' +
                JSON.stringify(result.value) +
                '
    ', confirmButtonText: 'Lovely!' }) } }) }); $('#ajax-request').on('click', function () { Swal.fire({ title: 'Search for a user', input: 'text', confirmButtonClass: 'btn btn-primary', buttonsStyling: false, inputAttributes: { autocapitalize: 'off' }, showCancelButton: true, confirmButtonText: 'Look up', showLoaderOnConfirm: true, cancelButtonClass: "btn btn-danger ml-1", preConfirm: function (login) { return fetch("//api.github.com/users/" + login + "") .then(function (response) { if (!response.ok) { console.log(response) throw new Error(response.statusText) } return response.json() }) .catch(function (error) { Swal.showValidationMessage( "Request failed: " + error + "" ) }) }, allowOutsideClick: function () { !Swal.isLoading() } }).then(function (result) { if (result.value) { Swal.fire({ title: "" + result.value.login + "'s avatar", imageUrl: result.value.avatar_url }) } }) }); // confirm options $('#confirm-text').on('click', function () { Swal.fire({ title: 'Are you sure?', text: "You won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yes, delete it!', confirmButtonClass: 'btn btn-primary', cancelButtonClass: 'btn btn-danger ml-1', buttonsStyling: false, }).then(function (result) { if (result.value) { Swal.fire( { type: "success", title: 'Deleted!', text: 'Your file has been deleted.', confirmButtonClass: 'btn btn-success', } ) } }) }); $('#confirm-color').on('click', function () { Swal.fire({ title: 'Are you sure?', text: "You won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yes, delete it!', confirmButtonClass: 'btn btn-primary', cancelButtonClass: 'btn btn-danger ml-1', buttonsStyling: false, }).then(function (result) { if (result.value) { Swal.fire({ type: "success", title: 'Deleted!', text: 'Your file has been deleted.', confirmButtonClass: 'btn btn-success', }) } else if (result.dismiss === Swal.DismissReason.cancel) { Swal.fire({ title: 'Cancelled', text: 'Your imaginary file is safe :)', type: 'error', confirmButtonClass: 'btn btn-success', }) } }) }); }); ================================================ FILE: public/backend/js/scripts/extensions/swiper.js ================================================ /*========================================================================================= File Name: swiper.js Description: swiper plugin ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { //initialize swiper when document ready // default var mySwiper = new Swiper('.swiper-default'); // navigation var mySwiper1 = new Swiper('.swiper-navigations', { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // pagination var mySwiper2 = new Swiper('.swiper-paginations', { pagination: { el: '.swiper-pagination', }, }); // progress var mySwiper3 = new Swiper('.swiper-progress', { pagination: { el: '.swiper-pagination', type: 'progressbar', }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // multiple var mySwiper4 = new Swiper('.swiper-multiple', { slidesPerView: 3, spaceBetween: 30, pagination: { el: '.swiper-pagination', clickable: true, }, }); // multi row var mySwiper5 = new Swiper('.swiper-multi-row', { slidesPerView: 3, slidesPerColumn: 2, spaceBetween: 30, pagination: { el: '.swiper-pagination', clickable: true, }, }); // centered slides option-1 var mySwiperOpt1 = new Swiper('.swiper-centered-slides', { slidesPerView: 'auto', centeredSlides: true, spaceBetween: 30, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // centered slides option-2 var swiperLength = $(".swiper-slide").length; if (swiperLength) { swiperLength = Math.floor(swiperLength / 2) } var mySwiperOpt2 = new Swiper('.swiper-centered-slides-2', { slidesPerView: 'auto', initialSlide: swiperLength, centeredSlides: true, spaceBetween: 30, slideToClickedSlide: true, }); activeSlide(swiperLength); // Active slide change on swipe mySwiper.on('slideChange', function () { activeSlide(mySwiper.realIndex); }); //add class active content of active slide function activeSlide(index) { var slideEl = mySwiper.slides[index] var slideId = $(slideEl).attr('id'); $(".wrapper-content").removeClass("active"); $("[data-faq=" + slideId + "]").addClass('active') }; // fade effect var mySwiper7 = new Swiper('.swiper-fade-effect', { spaceBetween: 30, effect: 'fade', pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // cube effect var mySwiper8 = new Swiper('.swiper-cube-effect', { effect: 'cube', grabCursor: true, cubeEffect: { shadow: true, slideShadows: true, shadowOffset: 20, shadowScale: 0.94, }, pagination: { el: '.swiper-pagination', }, }); // coverflow effect var mySwiper9 = new Swiper('.swiper-coverflow', { effect: 'coverflow', grabCursor: true, centeredSlides: true, slidesPerView: 'auto', coverflowEffect: { rotate: 50, stretch: 0, depth: 100, modifier: 1, slideShadows: true, }, pagination: { el: '.swiper-pagination', }, }); // autoplay var mySwiper10 = new Swiper('.swiper-autoplay', { spaceBetween: 30, centeredSlides: true, autoplay: { delay: 2500, disableOnInteraction: false, }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // gallery var galleryThumbs = new Swiper('.gallery-thumbs', { spaceBetween: 10, slidesPerView: 4, freeMode: true, watchSlidesVisibility: true, watchSlidesProgress: true, }); var galleryTop = new Swiper('.gallery-top', { spaceBetween: 10, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, thumbs: { swiper: galleryThumbs } }); // parallax var mySwiper12 = new Swiper('.swiper-parallax', { speed: 600, parallax: true, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // lazy loading var mySwiper13 = new Swiper('.swiper-lazy-loading', { // Enable lazy loading lazy: true, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // Responsive Breakpoints var mySwiper14 = new Swiper('.swiper-responsive-breakpoints', { slidesPerView: 5, spaceBetween: 50, // init: false, pagination: { el: '.swiper-pagination', clickable: true, }, breakpoints: { 1024: { slidesPerView: 4, spaceBetween: 40, }, 768: { slidesPerView: 3, spaceBetween: 30, }, 640: { slidesPerView: 2, spaceBetween: 20, }, 320: { slidesPerView: 1, spaceBetween: 10, } } }); // virtual slides var appendNumber = 600; var prependNumber = 1; var mySwiper15 = new Swiper('.swiper-virtual', { slidesPerView: 3, centeredSlides: true, spaceBetween: 30, pagination: { el: '.swiper-pagination', type: 'fraction', }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, virtual: { slides: (function () { var slides = []; for (var i = 0; i < 600; i += 1) { slides.push('Slide ' + (i + 1)); } return slides; }()), }, }); $('.slide-1').on('click', function (e) { e.preventDefault(); mySwiper15.slideTo(0, 0); }); $('.slide-250').on('click', function (e) { e.preventDefault(); mySwiper15.slideTo(249, 0); }); $('.slide-500').on('click', function (e) { e.preventDefault(); mySwiper15.slideTo(499, 0); }); $('.prepend-2-slides').on('click', function (e) { e.preventDefault(); mySwiper15.virtual.prependSlide([ 'Slide ' + (--prependNumber), 'Slide ' + (--prependNumber) ]); }); $('.append-slide').on('click', function (e) { e.preventDefault(); mySwiper15.virtual.appendSlide('Slide ' + (++appendNumber)); }); }); ================================================ FILE: public/backend/js/scripts/extensions/toastr.js ================================================ /*========================================================================================= File Name: toastr.js Description: Toastr notifications ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // Success Type $('#type-success').on('click', function () { toastr.success('Have fun storming the castle!', 'Miracle Max Says'); }); // Info Type $('#type-info').on('click', function () { toastr.info('We do have the Kapua suite available.', 'Turtle Bay Resort'); }); // Warning Type $('#type-warning').on('click', function () { toastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!'); }); // Error Type $('#type-error').on('click', function () { toastr.error('I do not think that word means what you think it means.', 'Inconceivable!'); }); // Position Top Left $('#position-top-left').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Top Left!', { positionClass: 'toast-top-left', containerId: 'toast-top-left' }); }); // Position Top Center $('#position-top-center').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Top Center!', { positionClass: 'toast-top-center', containerId: 'toast-top-center' }); }); // Position Top Right $('#position-top-right').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Top Right!', { positionClass: 'toast-top-right', containerId: 'toast-top-right' }); }); // Position Top Full Width $('#position-top-full').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Top Full Width!', { positionClass: 'toast-top-full-width', }); }); // Position Bottom Left $('#position-bottom-left').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Bottom Left!', { positionClass: 'toast-bottom-left', containerId: 'toast-bottom-left' }); }); // Position Bottom Center $('#position-bottom-center').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Bottom Center!', { positionClass: 'toast-bottom-center', containerId: 'toast-bottom-center' }); }); // Position Bottom Right $('#position-bottom-right').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Bottom Right!', { positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right' }); }); // Position Bottom Full Width $('#position-bottom-full').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Bottom Full Width!', { positionClass: 'toast-bottom-full-width' }); }); // Text Notification $('#text-notification').on('click', function () { toastr.info('Have fun storming the castle!', 'Miracle Max Says'); }); // Close Button $('#close-button').on('click', function () { toastr.success('Have fun storming the castle!', 'With Close Button', { "closeButton": true }); }); // Progress Bar $('#progress-bar').on('click', function () { toastr.warning('Have fun storming the castle!', 'Progress Bar', { "progressBar": true }); }); // Clear Toast Button $('#clear-toast-btn').on('click', function () { toastr.error('Clear itself?

    ', 'Clear Toast Button'); }); // Immediately remove current toasts without using animation $('#show-remove-toast').on('click', function () { toastr.info('Have fun storming the castle!', 'Miracle Max Says'); }); $('#remove-toast').on('click', function () { toastr.remove(); }); // Remove current toasts using animation $('#show-clear-toast').on('click', function () { toastr.info('Have fun storming the castle!', 'Miracle Max Says'); }); $('#clear-toast').on('click', function () { toastr.clear(); }); // Fast Duration $('#fast-duration').on('click', function () { toastr.success('Have fun storming the castle!', 'Fast Duration', { "showDuration": 500 }); }); // Slow Duration $('#slow-duration').on('click', function () { toastr.warning('Have fun storming the castle!', 'Slow Duration', { "hideDuration": 3000 }); }); // Timeout $('#timeout').on('click', function () { toastr.error('I do not think that word means what you think it means.', 'Timeout!', { "timeOut": 5000 }); }); // Sticky $('#sticky').on('click', function () { toastr.info('I do not think that word means what you think it means.', 'Sticky!', { "timeOut": 0 }); }); // Slide Down / Slide Up $('#slide-toast').on('click', function () { toastr.success('I do not think that word means what you think it means.', 'Slide Down / Slide Up!', { "showMethod": "slideDown", "hideMethod": "slideUp", timeOut: 2000 }); }); // Fade In / Fade Out $('#fade-toast').on('click', function () { toastr.success('I do not think that word means what you think it means.', 'Slide Down / Slide Up!', { "showMethod": "fadeIn", "hideMethod": "fadeOut", timeOut: 2000 }); }); }); ================================================ FILE: public/backend/js/scripts/extensions/tour.js ================================================ /*========================================================================================= File Name: tour.js Description: tour ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { displayTour(); $(window).resize(displayTour) var tour = new Shepherd.Tour({ classes: 'shadow-md bg-purple-dark', scrollTo: true }) // tour steps tour.addStep('step-1', { text: 'Here is page title.', attachTo: '.breadcrumbs-top .content-header-title bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-2', { text: 'Check your notifications from here.', attachTo: '.dropdown-notification .icon-bell bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: "previous", action: tour.back }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-3', { text: 'Click here for user options.', attachTo: '.dropdown-user-link img bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: "previous", action: tour.back }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-4', { text: 'Buy this awesomeness at affordable price!', attachTo: '.buy-now bottom', buttons: [ { text: "previous", action: tour.back }, { text: "Finish", action: tour.complete }, ] }); // function to remove tour on small screen function displayTour() { window.resizeEvt; if ($(window).width() > 576) { $('#tour').on("click", function () { clearTimeout(window.resizeEvt); tour.start(); }) } else { $('#tour').on("click", function () { clearTimeout(window.resizeEvt); tour.cancel() window.resizeEvt = setTimeout(function () { alert("Tour only works for large screens!"); }, 250);; }) } } }); ================================================ FILE: public/backend/js/scripts/extensions/unslider.js ================================================ /*========================================================================================= File Name: sweet-alerts.js Description: A beautiful replacement for javascript alerts ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function(){ // RTL Support var rtl = false; if($('html').data('textdirection') == 'rtl'){ rtl = true; } if(rtl === true){ $("#default-slider").attr('dir', 'rtl'); $("#automatic-slider").attr('dir', 'rtl'); $("#vertical-slider").attr('dir', 'rtl'); $("#automcatic-anim-slider").attr('dir', 'rtl'); $("#infinite-slider").attr('dir', 'rtl'); $("#manual-slider").attr('dir', 'rtl'); $("#manual").attr('dir', 'rtl'); } // Default $("#default-slider").unslider({ animation: 'fade' }); // Automatic $("#automatic-slider").unslider({ autoplay: true, animation: "fade" }); // Vertical $("#vertical-slider").unslider({ animation: 'vertical', autoplay: true, infinite: true }); // Automatic Animation $("#automcatic-anim-slider").unslider({ animation: 'fade', autoplay: true, arrows: false }); // Infinite $("#infinite-slider").unslider({ animation: "fade", infinite: true }); // Manual Slider $("#manual-slider").unslider({ keys: false, arrows: false, nav: false }); $('#manual').on('keyup', function() { $('.manual-slider').unslider('animate:' + $(this).val()); }); }); ================================================ FILE: public/backend/js/scripts/footer.js ================================================ /*========================================================================================= File Name: footer.js Description: Template footer js. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ //Check to see if the window is top if not then display button $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 400) { $('.scroll-top').fadeIn(); } else { $('.scroll-top').fadeOut(); } }); //Click event to scroll to top $('.scroll-top').click(function(){ $('html, body').animate({scrollTop : 0},1000); }); }); ================================================ FILE: public/backend/js/scripts/forms/basic-inputs.js ================================================ /*========================================================================================= File Name: basic-inputs.js Description: Input field js for label type ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; var $html = $('html'); //label Positions $(".labelUp").labelinplace(); $(".labelDown").labelinplace({ labelPosition: "down" }); // Label Icons $(".labelIcon").labelinplace({ labelArrowRight: ' ', labelArrowDown: ' ', labelArrowUp: ' ' }); // Icons After Label $(".labelIconAfter").labelinplace({ labelArrowRight: ' ', labelArrowDown: ' ', labelArrowUp: ' ', labelIconPosition: "after", inputAttr: "id" }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/form-maxlength.js ================================================ /*========================================================================================= File Name: form-maxlength.js Description: Bootstrap-Maxlength uses a Twitter Bootstrap label to show a visual feedback to the user about the maximum length of the field where the user is inserting text. Uses the HTML5 attribute "maxlength" to work. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; var $danger = "#ea5455"; var $primary = "#7367f0"; var $textcolor = "#4e5154"; $(".char-textarea").on("keyup", function (event) { checkTextAreaMaxLength(this, event); // to later change text color in dark layout $(this).addClass("active") }); /* Checks the MaxLength of the Textarea ----------------------------------------------------- @prerequisite: textBox = textarea dom element e = textarea event length = Max length of characters */ function checkTextAreaMaxLength(textBox, e) { var maxLength = parseInt($(textBox).data("length")); if (!checkSpecialKeys(e)) { if (textBox.value.length < maxLength - 1) textBox.value = textBox.value.substring(0, maxLength); } $(".char-count").html(textBox.value.length); if (textBox.value.length > maxLength) { $(".counter-value").css("background-color", $danger); $(".char-textarea").css("color", $danger); // to change text color after limit is maxedout out $(".char-textarea").addClass("max-limit") } else { $(".counter-value").css("background-color", $primary); $(".char-textarea").css("color", $textcolor); $(".char-textarea").removeClass("max-limit") } return true; } /* Checks if the keyCode pressed is inside special chars ------------------------------------------------------- @prerequisite: e = e.keyCode object for the key pressed */ function checkSpecialKeys(e) { if (e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40) return false; else return true; } })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/form-tooltip-valid.js ================================================ /*========================================================================================= File Name: form-tooltip-valid.js Description: form tooltip validation etc.. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; // Fetch all the forms we want to apply custom Bootstrap validation styles to // Loop over them and prevent submission $("button").click(function () { var form = $(".needs-validation"); if (form[0].checkValidity() === false) { event.preventDefault(); event.stopPropagation(); } form.addClass('was-validated'); }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/number-input.js ================================================ /*========================================================================================= File Name: input-groups.js Description: Input Groups js ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; var $html = $('html'); // Default Spin $(".touchspin").TouchSpin({ buttondown_class: "btn btn-primary", buttonup_class: "btn btn-primary", }); // Icon Change $(".touchspin-icon").TouchSpin({ buttondown_txt: '', buttonup_txt: '' }); // Min - Max var touchspinValue = $(".touchspin-min-max"), counterMin = 15, counterMax = 21; if (touchspinValue.length > 0) { touchspinValue.TouchSpin({ min: counterMin, max: counterMax }).on('touchspin.on.startdownspin', function () { var $this = $(this); $('.bootstrap-touchspin-up').removeClass("disabled-max-min"); if ($this.val() == counterMin) { $(this).siblings().find('.bootstrap-touchspin-down').addClass("disabled-max-min"); } }).on('touchspin.on.startupspin', function () { var $this = $(this); $('.bootstrap-touchspin-down').removeClass("disabled-max-min"); if ($this.val() == counterMax) { $(this).siblings().find('.bootstrap-touchspin-up').addClass("disabled-max-min"); } }); } // Step $(".touchspin-step").TouchSpin({ step: 5 }); // Color Options $(".touchspin-color").each(function (index) { var down = "btn btn-primary", up = "btn btn-primary", $this = $(this); if ($this.data('bts-button-down-class')) { down = $this.data('bts-button-down-class'); } if ($this.data('bts-button-up-class')) { up = $this.data('bts-button-up-class'); } $this.TouchSpin({ mousewheel: false, buttondown_class: down, buttonup_class: up, buttondown_txt: '', buttonup_txt: '' }); }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/select/form-select2.js ================================================ /*========================================================================================= File Name: form-select2.js Description: Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and pagination of results. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; // Basic Select2 select $(".select2").select2({ // the following code is used to disable x-scrollbar when click in select input and // take 100% width in responsive also dropdownAutoWidth: true, width: '100%' }); // Select With Icon $(".select2-icons").select2({ dropdownAutoWidth: true, width: '100%', minimumResultsForSearch: Infinity, templateResult: iconFormat, templateSelection: iconFormat, escapeMarkup: function(es) { return es; } }); // Format icon function iconFormat(icon) { var originalOption = icon.element; if (!icon.id) { return icon.text; } var $icon = "" + icon.text; return $icon; } // Limiting the number of selections $(".max-length").select2({ dropdownAutoWidth: true, width: '100%', maximumSelectionLength: 2, placeholder: "Select maximum 2 items" }); // Programmatic access var $select = $(".js-example-programmatic").select2({ dropdownAutoWidth: true, width: '100%' }); var $selectMulti = $(".js-example-programmatic-multi").select2(); $selectMulti.select2({ dropdownAutoWidth: true, width: '100%', placeholder: "Programmatic Events" }); $(".js-programmatic-set-val").on("click", function () { $select.val("CA").trigger("change"); }); $(".js-programmatic-open").on("click", function () { $select.select2("open"); }); $(".js-programmatic-close").on("click", function () { $select.select2("close"); }); $(".js-programmatic-init").on("click", function () { $select.select2(); }); $(".js-programmatic-destroy").on("click", function () { $select.select2("destroy"); }); $(".js-programmatic-multi-set-val").on("click", function () { $selectMulti.val(["CA", "AL"]).trigger("change"); }); $(".js-programmatic-multi-clear").on("click", function () { $selectMulti.val(null).trigger("change"); }); // Loading array data var data = [ { id: 0, text: 'enhancement' }, { id: 1, text: 'bug' }, { id: 2, text: 'duplicate' }, { id: 3, text: 'invalid' }, { id: 4, text: 'wontfix' } ]; $(".select2-data-array").select2({ dropdownAutoWidth: true, width: '100%', data: data }); // Loading remote data $(".select2-data-ajax").select2({ dropdownAutoWidth: true, width: '100%', ajax: { url: "https://api.github.com/search/repositories", dataType: 'json', delay: 250, data: function (params) { return { q: params.term, // search term page: params.page }; }, processResults: function (data, params) { // parse the results into the format expected by Select2 // since we are using custom formatting functions we do not need to // alter the remote JSON data, except to indicate that infinite // scrolling can be used params.page = params.page || 1; return { results: data.items, pagination: { more: (params.page * 30) < data.total_count } }; }, cache: true }, placeholder: 'Search for a repository', escapeMarkup: function (markup) { return markup; }, // let our custom formatter work minimumInputLength: 1, templateResult: formatRepo, templateSelection: formatRepoSelection }); function formatRepo (repo) { if (repo.loading) return repo.text; var markup = "
    " + "
    " + "
    " + "
    " + repo.full_name + "
    "; if (repo.description) { markup += "
    " + repo.description + "
    "; } markup += "
    " + "
    " + repo.forks_count + " Forks
    " + "
    " + repo.stargazers_count + " Stars
    " + "
    " + repo.watchers_count + " Watchers
    " + "
    " + "
    "; return markup; } function formatRepoSelection (repo) { return repo.full_name || repo.text; } // Customizing how results are matched function matchStart (term, text) { if (text.toUpperCase().indexOf(term.toUpperCase()) === 0) { return true; } return false; } $.fn.select2.amd.require(['select2/compat/matcher'], function (oldMatcher) { $(".select2-customize-result").select2({ dropdownAutoWidth: true, width: '100%', placeholder: "Search by 'r'", matcher: oldMatcher(matchStart) }); }); // Theme support $(".select2-theme").select2({ dropdownAutoWidth: true, width: '100%', placeholder: "Classic Theme", theme: "classic" }); // Sizing options // Large $('.select2-size-lg').select2({ dropdownAutoWidth: true, width: '100%', containerCssClass: 'select-lg' }); // Small $('.select2-size-sm').select2({ dropdownAutoWidth: true, width: '100%', containerCssClass: 'select-sm' }); // Color Options // Background Color $('.select2-bg').each(function(i, obj) { var variation = "", textVariation = "", textColor = ""; var color = $(this).data('bgcolor'); variation = $(this).data('bgcolor-variation'); textVariation = $(this).data('text-variation'); textColor = $(this).data('text-color'); if(textVariation !== ""){ textVariation = " "+textVariation; } if(variation !== ""){ variation = " bg-"+variation; } var className = "bg-"+color + variation + " " + textColor + textVariation + " border-"+color + ' border-darken-2 '; $(this).select2({ dropdownAutoWidth: true, width: '100%', containerCssClass: className }); }); // Border Color $('.select2-border').each(function(i, obj) { var variation = "", textVariation = "", textColor = ""; var color = $(this).data('border-color'); textVariation = $(this).data('text-variation'); variation = $(this).data('border-variation'); textColor = $(this).data('text-color'); if(textVariation !== ""){ textVariation = " "+textVariation; } if(variation !== ""){ variation = " border-"+variation; } var className = "border-"+color + " " +variation + " " + textColor + textVariation; $(this).select2({ dropdownAutoWidth: true, width: '100%', containerCssClass: className }); }); // Full Background Color $('.select2-full-bg').each(function(i, obj) { var variation = "", textVariation = "", textColor = ""; var color = $(this).data('bgcolor'); variation = $(this).data('bgcolor-variation'); textVariation = $(this).data('text-variation'); textColor = $(this).data('text-color'); if(variation !== ""){ variation = " bg-"+variation; } if(textVariation !== ""){ textVariation = " "+textVariation; } var className = "bg-"+color + variation + " " + textColor + textVariation + " border-"+color + ' border-darken-2 '; $(this).select2({ dropdownAutoWidth: true, width: '100%', containerCssClass: className, dropdownCssClass: className }); }); $('select[data-text-color]').each(function(i, obj) { var text = $(this).data('text-color'),textVariation; textVariation = $(this).data('text-variation'); if(textVariation !== ""){ textVariation = " "+textVariation; } $(this).next(".select2").find(".select2-selection__rendered").addClass(text+textVariation); }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/validation/form-validation.js ================================================ /*========================================================================================= File Name: form-validation.js Description: jquery bootsreap validation js ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; // Input, Select, Textarea validations except submit button $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/forms/wizard-steps.js ================================================ /*========================================================================================= File Name: wizard-steps.js Description: wizard steps page specific js ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ // Wizard tabs with numbers setup $(".number-tab-steps").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '#index# #title#', labels: { finish: 'Submit' }, onFinished: function (event, currentIndex) { alert("Form submitted."); } }); // Wizard tabs with icons setup $(".icons-tab-steps").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '#index# #title#', labels: { finish: 'Submit' }, onFinished: function (event, currentIndex) { alert("Form submitted."); } }); // Validate steps wizard // Show form var form = $(".steps-validation").show(); $(".steps-validation").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '#index# #title#', labels: { finish: 'Submit' }, onStepChanging: function (event, currentIndex, newIndex) { // Allways allow previous action even if the current form is not valid! if (currentIndex > newIndex) { return true; } // Needed in some cases if the user went back (clean up) if (currentIndex < newIndex) { // To remove error styles form.find(".body:eq(" + newIndex + ") label.error").remove(); form.find(".body:eq(" + newIndex + ") .error").removeClass("error"); } form.validate().settings.ignore = ":disabled,:hidden"; return form.valid(); }, onFinishing: function (event, currentIndex) { form.validate().settings.ignore = ":disabled"; return form.valid(); }, onFinished: function (event, currentIndex) { alert("Submitted!"); } }); // Initialize validation $(".steps-validation").validate({ ignore: 'input[type=hidden]', // ignore hidden fields errorClass: 'danger', successClass: 'success', highlight: function (element, errorClass) { $(element).removeClass(errorClass); }, unhighlight: function (element, errorClass) { $(element).removeClass(errorClass); }, errorPlacement: function (error, element) { error.insertAfter(element); }, rules: { email: { email: true } } }); ================================================ FILE: public/backend/js/scripts/modal/components-modal.js ================================================ /*========================================================================================= File Name: components-modal.js Description: Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; // onShow event $('#onshowbtn').on('click', function() { $('#onshow').on('show.bs.modal', function() { alert('onShow event fired.'); }); }); // onShown event $('#onshownbtn').on('click', function() { $('#onshown').on('shown.bs.modal', function() { alert('onShown event fired.'); }); }); // onHide event $('#onhidebtn').on('click', function() { $('#onhide').on('hide.bs.modal', function() { alert('onHide event fired.'); }); }); // onHidden event $('#onhiddenbtn').on('click', function() { $('#onhidden').on('hidden.bs.modal', function() { alert('onHidden event fired.'); }); }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/navs/navs.js ================================================ /*========================================================================================= File Name: nav.js Description: Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states. Swap modifier classes to switch between each style. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; var heightLeft = $('.nav-left + .tab-content').height(); $('ul.nav-left').height(heightLeft); var heightRight = $('.nav-right + .tab-content').height(); $('ul.nav-right').height(heightRight); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/pages/3-columns-left-sidebar.js ================================================ /*========================================================================================= File Name: 3-columns-left-sidebar.js Description: Invoices list datables configurations ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { /*********************************** * js of small Slider * ************************************/ var sm_options = { start: [30,70], behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var smallSlider = document.getElementById('small-slider'); noUiSlider.create(smallSlider, sm_options); /************************************* * Default Score Rating * **************************************/ $.fn.raty.defaults.path = '../../../app-assets/images/raty/'; $('#score-rating').raty({ score: 3 }); $(".sidebar-sticky").sticky(); }); ================================================ FILE: public/backend/js/scripts/pages/account-setting.js ================================================ /*========================================================================================= File Name: account-setting.js Description: Account setting. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { // language select var languageselect = $("#languageselect2").select2({ dropdownAutoWidth: true, width: '100%' }); // music select var musicselect = $("#musicselect2").select2({ dropdownAutoWidth: true, width: '100%' }); // movies select var moviesselect = $("#moviesselect2").select2({ dropdownAutoWidth: true, width: '100%' }); // birthdate date $('.birthdate-picker').pickadate({ format: 'mmmm, d, yyyy' }); }); ================================================ FILE: public/backend/js/scripts/pages/app-chat.js ================================================ (function($) { "use strict"; // Chat user list if($('.chat-application .chat-user-list').length > 0){ var chat_user_list = new PerfectScrollbar(".chat-user-list"); } // Chat user profile if($('.chat-application .profile-sidebar-area .scroll-area').length > 0){ var chat_user_list = new PerfectScrollbar(".profile-sidebar-area .scroll-area"); } // Chat area if($('.chat-application .user-chats').length > 0){ var chat_user = new PerfectScrollbar(".user-chats", { wheelPropagation: false }); } // User profile right area if($('.chat-application .user-profile-sidebar-area').length > 0){ var user_profile = new PerfectScrollbar(".user-profile-sidebar-area"); } // Chat Profile sidebar toggle $('.chat-application .sidebar-profile-toggle').on('click',function(){ $('.chat-profile-sidebar').addClass('show'); $('.chat-overlay').addClass('show'); }); // User Profile sidebar toggle $('.chat-application .user-profile-toggle').on('click',function(){ $('.user-profile-sidebar').addClass('show'); $('.chat-overlay').addClass('show'); }); // Update status by clickin on Radio $('.chat-application .user-status input:radio[name=userStatus]').on('change', function(){ var $className = "avatar-status-"+this.value; $(".header-profile-sidebar .avatar span").removeClass(); $(".sidebar-profile-toggle .avatar span").removeClass(); $(".header-profile-sidebar .avatar span").addClass($className+" avatar-status-lg"); $(".sidebar-profile-toggle .avatar span").addClass($className); }); // On Profile close click $(".chat-application .close-icon").on('click',function(){ $('.chat-profile-sidebar').removeClass('show'); $('.user-profile-sidebar').removeClass('show'); if(!$(".sidebar-content").hasClass("show")){ $('.chat-overlay').removeClass('show'); } }); // On sidebar close click $(".chat-application .sidebar-close-icon").on('click',function(){ $('.sidebar-content').removeClass('show'); $('.chat-overlay').removeClass('show'); }); // On overlay click $(".chat-application .chat-overlay").on('click',function(){ $('.app-content .sidebar-content').removeClass('show'); $('.chat-application .chat-overlay').removeClass('show'); $('.chat-profile-sidebar').removeClass('show'); $('.user-profile-sidebar').removeClass('show'); }); // Add class active on click of Chat users list $(".chat-application .chat-user-list ul li").on('click', function(){ if($('.chat-user-list ul li').hasClass('active')){ $('.chat-user-list ul li').removeClass('active'); } $(this).addClass("active"); $(this).find(".badge").remove(); if($('.chat-user-list ul li').hasClass('active')){ $('.start-chat-area').addClass('d-none'); $('.active-chat').removeClass('d-none'); } else{ $('.start-chat-area').removeClass('d-none'); $('.active-chat').addClass('d-none'); } }); // autoscroll to bottom of Chat area var chatContainer = $(".user-chats"); $(".chat-users-list-wrapper li").on("click", function () { chatContainer.animate({ scrollTop: chatContainer[0].scrollHeight }, 400) }); // Favorite star click $(".chat-application .favorite i").on("click", function(e) { $(this).parent('.favorite').toggleClass("warning"); e.stopPropagation(); }); // Main menu toggle should hide app menu $('.chat-application .menu-toggle').on('click',function(e){ $('.app-content .sidebar-left').removeClass('show'); $('.chat-application .chat-overlay').removeClass('show'); }); // Chat sidebar toggle if ($(window).width() < 992) { $('.chat-application .sidebar-toggle').on('click',function(){ $('.app-content .sidebar-content').addClass('show'); $('.chat-application .chat-overlay').addClass('show'); }); } // For chat sidebar on small screen if ($(window).width() > 992) { if($('.chat-application .chat-overlay').hasClass('show')){ $('.chat-application .chat-overlay').removeClass('show'); } } // Scroll Chat area $(".user-chats").scrollTop($(".user-chats > .chats").height()); // Filter $(".chat-application #chat-search").on("keyup", function() { var value = $(this).val().toLowerCase(); if(value!=""){ $(".chat-user-list .chat-users-list-wrapper li").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); }); } else{ // If filter box is empty $(".chat-user-list .chat-users-list-wrapper li").show(); } }); })(jQuery); $(window).on("resize", function() { // remove show classes from sidebar and overlay if size is > 992 if ($(window).width() > 992) { if($('.chat-application .chat-overlay').hasClass('show')){ $('.app-content .sidebar-left').removeClass('show'); $('.chat-application .chat-overlay').removeClass('show'); } } // Chat sidebar toggle if ($(window).width() < 992) { if($('.chat-application .chat-profile-sidebar').hasClass('show')){ $('.chat-profile-sidebar').removeClass('show'); } $('.chat-application .sidebar-toggle').on('click',function(){ $('.app-content .sidebar-content').addClass('show'); $('.chat-application .chat-overlay').addClass('show'); }); } }); // Add message to chat function enter_chat(source) { var message = $(".message").val(); if(message != ""){ var html = '
    ' + "

    " + message + "

    " + "
    "; $(".chat:last-child .chat-body").append(html); $(".message").val(""); $(".user-chats").scrollTop($(".user-chats > .chats").height()); } } ================================================ FILE: public/backend/js/scripts/pages/app-ecommerce-details.js ================================================ // File Name: app-ecommerce-details.js // Description: App Ecommerce Details js. // ---------------------------------------------------------------------------------------------- // Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template // Author: PIXINVENT // Author URL: http://www.themeforest.net/user/pixinvent // ================================================================================================ $(document).ready(function () { var mySwiper14 = new Swiper('.swiper-responsive-breakpoints', { slidesPerView: 5, spaceBetween: 55, // init: false, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, breakpoints: { 1600: { slidesPerView: 4, spaceBetween: 55, }, 1300: { slidesPerView: 3, spaceBetween: 55, }, 900: { slidesPerView: 2, spaceBetween: 55, }, 768: { slidesPerView: 1, spaceBetween: 55, } } }); // product color options $(".product-color-options li").on("click", function () { $this = $(this); $this.addClass('selected').siblings().removeClass('selected'); }) }) ================================================ FILE: public/backend/js/scripts/pages/app-ecommerce-shop.js ================================================ /*========================================================================================= File Name: app-ecommerce-shop.js Description: Ecommerce Shop ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { "use strict"; // RTL Support var direction = 'ltr'; if ($('html').data('textdirection') == 'rtl') { direction = 'rtl'; } var sidebarShop = $(".sidebar-shop"), shopOverlay = $(".shop-content-overlay"), sidebarToggler = $(".shop-sidebar-toggler"), priceFilter = $(".price-options"), gridViewBtn = $(".grid-view-btn"), listViewBtn = $(".list-view-btn"), ecommerceProducts = $("#ecommerce-products"), cart = $(".cart"), wishlist = $(".wishlist"); // show sidebar sidebarToggler.on("click", function () { sidebarShop.toggleClass("show"); shopOverlay.toggleClass("show"); }); // remove sidebar $(".shop-content-overlay, .sidebar-close-icon").on("click", function () { sidebarShop.removeClass("show"); shopOverlay.removeClass("show"); }) //price slider var slider = document.getElementById("price-slider"); if (slider) { noUiSlider.create(slider, { start: [51, 5000], direction: direction, connect: true, tooltips: [true, true], format: wNumb({ decimals: 0, }), range: { "min": 51, "max": 5000 } }); } // for select in ecommerce header if (priceFilter.length > 0) { priceFilter.select2({ minimumResultsForSearch: -1, dropdownAutoWidth: true, width: '100%' }); } /***** CHANGE VIEW *****/ // Grid View gridViewBtn.on("click", function () { ecommerceProducts.removeClass("list-view").addClass("grid-view"); listViewBtn.removeClass("active"); gridViewBtn.addClass("active"); }); // List View listViewBtn.on("click", function () { ecommerceProducts.removeClass("grid-view").addClass("list-view"); gridViewBtn.removeClass("active"); listViewBtn.addClass("active"); }); // For View in cart cart.on("click", function () { var $this = $(this), addToCart = $this.find(".add-to-cart"), viewInCart = $this.find(".view-in-cart"); if(addToCart.is(':visible')) { addToCart.addClass("d-none"); viewInCart.addClass("d-inline-block"); } else{ var href= viewInCart.attr('href'); window.location.href = href; } }); $(".view-in-cart").on('click', function(e){ e.preventDefault(); }); // For Wishlist Icon wishlist.on("click", function () { var $this = $(this) $this.find("i").toggleClass("fa-heart-o fa-heart") $this.toggleClass("added"); }) // Checkout Wizard var checkoutWizard = $(".checkout-tab-steps"), checkoutValidation = checkoutWizard.show(); if (checkoutWizard.length > 0) { $(checkoutWizard).steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '#index# #title#', enablePagination: false, onStepChanging: function (event, currentIndex, newIndex) { // allows to go back to previous step if form is if (currentIndex > newIndex) { return true; } // Needed in some cases if the user went back (clean up) if (currentIndex < newIndex) { // To remove error styles checkoutValidation.find(".body:eq(" + newIndex + ") label.error").remove(); checkoutValidation.find(".body:eq(" + newIndex + ") .error").removeClass("error"); } // check for valid details and show notification accordingly if (currentIndex === 1 && Number($(".form-control.required").val().length) < 1) { toastr.warning('Error', 'Please Enter Valid Details', { "positionClass": "toast-bottom-right" }); } checkoutValidation.validate().settings.ignore = ":disabled,:hidden"; return checkoutValidation.valid(); }, }); // to move to next step on place order and save address click $(".place-order, .delivery-address").on("click", function () { $(".checkout-tab-steps").steps("next", {}); }); // check if user has entered valid cvv $(".btn-cvv").on("click", function () { if ($(".input-cvv").val().length == 3) { toastr.success('Success', 'Payment received Successfully', { "positionClass": "toast-bottom-right" }); } else { toastr.warning('Error', 'Please Enter Valid Details', { "positionClass": "toast-bottom-right" }); } }) } // checkout quantity counter var quantityCounter = $(".quantity-counter"), CounterMin = 1, CounterMax = 10; if (quantityCounter.length > 0) { quantityCounter.TouchSpin({ min: CounterMin, max: CounterMax }).on('touchspin.on.startdownspin', function () { var $this = $(this); $('.bootstrap-touchspin-up').removeClass("disabled-max-min"); if ($this.val() == 1) { $(this).siblings().find('.bootstrap-touchspin-down').addClass("disabled-max-min"); } }).on('touchspin.on.startupspin', function () { var $this = $(this); $('.bootstrap-touchspin-down').removeClass("disabled-max-min"); if ($this.val() == 10) { $(this).siblings().find('.bootstrap-touchspin-up').addClass("disabled-max-min"); } }); } // remove items from wishlist page $(".remove-wishlist , .move-cart").on("click", function () { $(this).closest(".ecommerce-card").remove(); }) }) // on window resize hide sidebar $(window).on("resize", function () { if ($(window).width() <= 991) { $(".sidebar-shop").removeClass("show"); $(".shop-content-overlay").removeClass("show"); } else { $(".sidebar-shop").addClass("show"); } }); ================================================ FILE: public/backend/js/scripts/pages/app-email.js ================================================ // Notifications & messages scrollable $(function () { "use strict"; var Font = Quill.import('formats/font'); Font.whitelist = ['sofia', 'slabo', 'roboto', 'inconsolata', 'ubuntu']; Quill.register(Font, true); // Email left Sidebar if ($('.sidebar-menu-list').length > 0) { var sidebar_menu_list = new PerfectScrollbar(".sidebar-menu-list"); } // User list scroll if ($('.email-user-list').length > 0) { var users_list = new PerfectScrollbar(".email-user-list"); } // Email detail section if ($('.email-scroll-area').length > 0) { var users_list = new PerfectScrollbar(".email-scroll-area"); } // Modal dialog scroll if ($('.modal-dialog-scrollable .modal-body').length > 0) { var sidebar_menu_list = new PerfectScrollbar(".modal-dialog-scrollable .modal-body"); } // Compose Modal - Reset Input Value on Click compose btn $('.compose-btn .btn').on('click', function (e) { // all input forms $(".modal .modal-body input").val(""); // quill editor content var quill_editor = $(".modal .modal-body .ql-editor"); quill_editor[0].innerHTML = ""; // file input content var file_input = $(".modal .modal-body .custom-file .custom-file-label"); file_input[0].innerHTML = ""; }); // Main menu toggle should hide app menu $('.menu-toggle').on('click', function (e) { $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); }); // On sidebar close click $(".email-application .sidebar-close-icon").on('click', function () { $('.sidebar-left').removeClass('show'); $('.app-content-overlay').removeClass('show'); }); // Email sidebar toggle $('.sidebar-toggle').on('click', function (e) { e.stopPropagation(); $('.app-content .sidebar-left').toggleClass('show'); $('.app-content .app-content-overlay').addClass('show'); }); $('.app-content .app-content-overlay').on('click', function (e) { $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); }); // Email Right sidebar toggle $('.email-app-list .email-user-list li').on('click', function (e) { $('.app-content .email-app-details').toggleClass('show'); }); // Add class active on click of sidebar list $(".email-application .list-group-messages a").on('click', function () { if ($('.email-application .list-group-messages a').hasClass('active')) { $('.email-application .list-group-messages a').removeClass('active'); } $(this).addClass("active"); }); // Email detail view back button click $('.go-back').on('click', function (e) { e.stopPropagation(); $('.app-content .email-app-details').removeClass('show'); }); // For app sidebar on small screen if ($(window).width() > 768) { if ($('.app-content .app-content-overlay').hasClass('show')) { $('.app-content .app-content-overlay').removeClass('show'); } } // Favorite star click $(".email-application .favorite i").on("click", function (e) { $(this).parent('.favorite').toggleClass("warning"); e.stopPropagation(); }); // On checkbox click stop propogation $(".email-user-list .vs-checkbox-con input").on("click", function (e) { e.stopPropagation(); }); // Select all checkbox $(document).on("click", ".email-app-list .selectAll input", function () { $(".user-action .vs-checkbox-con input").prop('checked', this.checked); }); // Delete Mail from list $(".email-application .mail-delete").on("click", function () { $(".email-application .user-action .vs-checkbox-con input:checked").closest("li").remove(); $(".email-application .selectAll input").prop('checked', ""); }); // Mark mail unread $(".email-application .mail-unread").on("click", function () { $(".email-application .user-action .vs-checkbox-con input:checked").closest("li").removeClass("mail-read"); }); // Filter $(".email-app-list #email-search").on("keyup", function () { var value = $(this).val().toLowerCase(); if (value != "") { $(".email-user-list .users-list-wrapper li").filter(function () { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); }); var tbl_row = $(".email-user-list .users-list-wrapper li:visible").length; //here tbl_test is table name //Check if table has row or not if (tbl_row == 0) { $('.email-user-list .no-results').addClass('show'); } else { if ($('.email-user-list .no-results').hasClass('show')) { $('.email-user-list .no-results').removeClass('show'); } } } else { // If filter box is empty $(".email-user-list .users-list-wrapper li").show(); if ($('.email-user-list .no-results').hasClass('show')) { $('.email-user-list .no-results').removeClass('show'); } } }); // Email compose Editor var emailEditor = new Quill('#email-container .editor', { bounds: '#email-container .editor', modules: { 'formula': true, 'syntax': true, 'toolbar': [ ['bold', 'italic', 'underline', 'strike', 'link', 'blockquote', 'code-block', { 'header': '1' }, { 'header': '2' }, { 'list': 'ordered' }, { 'list': 'bullet' }], [{ 'font': [] }] ], }, placeholder: 'Message', theme: 'snow' }); var editors = [emailEditor]; }); $(window).on("resize", function () { // remove show classes from sidebar and overlay if size is > 992 if ($(window).width() > 768) { if ($('.app-content .app-content-overlay').hasClass('show')) { $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); } } }); ================================================ FILE: public/backend/js/scripts/pages/app-todo.js ================================================ /*========================================================================================= File Name: app-todo.js Description: app-todo ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(function() { "use strict"; var $curr_title, $curr_desc, $curr_info, $curr_fav, $curr_chipVal; // -------------------------------------------- // Sidebar menu scrollbar // -------------------------------------------- if($('.todo-application .sidebar-menu-list').length > 0){ var content = new PerfectScrollbar('.sidebar-menu-list',{ theme: "dark" }); } // -------------------------------------------- // Todo task list scrollbar // -------------------------------------------- if($('.todo-application .todo-task-list').length > 0){ var sidebar_todo = new PerfectScrollbar('.todo-task-list',{ theme: "dark" }); } // -------------------------------------------- // Info star click // -------------------------------------------- $(document).on("click", ".todo-application .todo-item-info i", function(e) { $(this).parent('.todo-item-info').toggleClass("success"); e.stopPropagation(); }); // -------------------------------------------- // Favorite star click // -------------------------------------------- $(document).on("click", ".todo-application .todo-item-favorite i", function(e) { $(this).parent('.todo-item-favorite').toggleClass("warning"); e.stopPropagation(); }); // -------------------------------------------- // Main menu toggle should hide app menu // -------------------------------------------- $('.menu-toggle').on('click',function(e){ $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); }); // -------------------------------------------- // On sidebar close click // -------------------------------------------- $(".todo-application .sidebar-close-icon").on('click',function(){ $('.sidebar-left').removeClass('show'); $('.app-content-overlay').removeClass('show'); }); // -------------------------------------------- // Todo sidebar toggle // -------------------------------------------- $('.sidebar-toggle').on('click',function(e){ e.stopPropagation(); $('.app-content .sidebar-left').toggleClass('show'); $('.app-content .app-content-overlay').addClass('show'); }); $('.app-content .app-content-overlay').on('click',function(e){ $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); }); // -------------------------------------------- // Add class active on click of sidebar filters list // -------------------------------------------- $(".todo-application .list-group-filters a").on('click', function(){ if($('.todo-application .list-group-filters a').hasClass('active')){ $('.todo-application .list-group-filters a').removeClass('active'); } $(this).addClass("active"); }); // -------------------------------------------- // For chat sidebar on small screen // -------------------------------------------- if ($(window).width() > 992) { if($('.todo-application .app-content-overlay').hasClass('show')){ $('.todo-application .app-content-overlay').removeClass('show'); } } // -------------------------------------------- // On add new item, clear modal popup fields // -------------------------------------------- $(".add-task button").on('click', function(e){ $('.modal .new-todo-item-title').val(""); $('.modal .new-todo-item-desc').val(""); $('.modal .dropdown-menu input').prop("checked", false); if($('.modal .todo-item-info').hasClass('success')){$('.modal .todo-item-info').removeClass('success')} if($('.modal .todo-item-favorite').hasClass('warning')){$('.modal .todo-item-favorite').removeClass('warning')} }); // -------------------------------------------- // Add New ToDo List Item // -------------------------------------------- // To add new todo list item $(".add-todo-item").on('click', function(e){ e.preventDefault(); var todoInfo = "", todoFav = "", todoChip = ""; var todoTitle = $(".new-todo-item-title").val(); var todoDesc = $(".new-todo-item-desc").val(); if($(".modal.show .todo-item-info").hasClass('success')){ todoInfo = " success"; } if($(".modal.show .todo-item-favorite").hasClass('warning')){ todoFav = " warning"; } // Chip calculation loop var selected = $('.modal .dropdown-menu input:checked'); selected.each(function(){ todoChip += '
    ' + '
    ' + ' '+$(this).data('value')+'' + '
    ' + '
    '; }); // HTML Output if(todoTitle != ""){ $(".todo-task-list-wrapper").append('
  • ' + '
    ' + '
    ' + '
    '+ '
    ' + '' + '' + '' + '' + '' + '' + '
    ' + '
    '+ todoTitle +'
    ' + '
    ' + '
    ' + todoChip + '
    ' + '
    ' + '
    ' + '' + '' + '' + '
    ' + '
    ' + '

    '+ todoDesc +'

    ' + '
  • '); } $('#form-edit-todo .edit-todo-item-title').val(todoTitle); $('#form-edit-todo .edit-todo-item-desc').val(todoDesc); $('#form-edit-todo .dropdown-menu input').prop("checked", false); if($('#form-edit-todo .edit-todo-item-info').hasClass('success')){$('#form-edit-todo .edit-todo-item-info').addClass('success')} if($('#form-edit-todo .edit-todo-item-favorite').hasClass('warning')){$('#form-edit-todo .edit-todo-item-favorite').addClass('warning')} }); // -------------------------------------------- // To update todo list item // -------------------------------------------- $(document).on('click',".todo-task-list-wrapper .todo-item", function(e){ // Saving all values in variable $curr_title = $(this).find('.todo-title'); // Set path for Current Title, use this variable when updating title $curr_desc = $(this).find('.todo-desc'); // Set path for Current Description, use this variable when updating Description $curr_info = $(this).find('.todo-item-info'); // Set path for Current info, use this variable when updating info $curr_fav = $(this).find('.todo-item-favorite'); // Set path for Current favorite, use this variable when updating favorite $curr_chipVal = $(this).find('.chip-wrapper'); // Set path for Chips, use this variable when updating chip value var $title = $(this).find('.todo-title').html(); var $desc = $(this).find('.todo-desc').html(); var $info = $(this).find('.todo-item-info'); var $fav = $(this).find('.todo-item-favorite'); $('#form-edit-todo .dropdown-menu input').prop("checked",false); // Checkbox checked as per chips var selected = $(this).find('.chip'); selected.each(function(){ var chipVal = $(this).find('.chip-text').data('value'); $('#form-edit-todo .dropdown-menu input[data-value="'+chipVal+'"]').prop("checked",true); }); // apply all variable values to fields $('#form-edit-todo .edit-todo-item-title').val($title); $('#form-edit-todo .edit-todo-item-desc').val($desc); if($('#form-edit-todo .todo-item-info').hasClass('success')){$('#form-edit-todo .todo-item-info').removeClass('success')} if($('#form-edit-todo .edit-todo-item-favorite').hasClass('warning')){$('#form-edit-todo .edit-todo-item-favorite').removeClass('warning')} if( $($info).hasClass('success') ) { $('#form-edit-todo .todo-item-info').addClass('success'); } if( $($fav).hasClass('warning') ) { $('#form-edit-todo .edit-todo-item-favorite').addClass('warning'); } }); // -------------------------------------------- // Updating Data Values to Fields // -------------------------------------------- $('.update-todo-item').on('click', function(){ var $edit_title = $('#form-edit-todo .edit-todo-item-title').val(); var $edit_desc = $('#form-edit-todo .edit-todo-item-desc').val(); var $edit_info = $('#form-edit-todo .todo-item-info i'); var $edit_fav = $('#form-edit-todo .todo-item-favorite i'); $($curr_title).text($edit_title); $($curr_desc).text($edit_desc); if($($curr_info).hasClass('success')){$($curr_info).removeClass('success')} if($($curr_fav).hasClass('warning')){$($curr_fav).removeClass('warning')} if( $($edit_info).parent('.todo-item-info').hasClass('success')) { $curr_info.addClass('success'); } if( $($edit_fav).parent('.todo-item-favorite').hasClass('warning')) { $curr_fav.addClass('warning'); } // Chip calculation loop var $edit_selected = $('#form-edit-todo .dropdown-menu input:checked'); var $edit_todoChip = ""; $edit_selected.each(function(){ $edit_todoChip += '
    ' + '
    ' + ' '+$(this).data('value')+'' + '
    ' + '
    '; }); $curr_chipVal.empty(); $($curr_chipVal).append($edit_todoChip); }); // -------------------------------------------- //EVENT DELETION // -------------------------------------------- $(document).on('click', '.todo-item-delete', function(e){ var item = this; e.stopPropagation(); $(item).closest('.todo-item').remove(); }) // Complete task strike through $(document).on('click', '.todo-item input', function(event){ event.stopPropagation(); $(this).closest('.todo-item').toggleClass("completed"); }); // -------------------------------------------- // Filter // -------------------------------------------- $("#todo-search").on("keyup", function() { var value = $(this).val().toLowerCase(); if(value!=""){ $(".todo-item").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); }); var tbl_row = $(".todo-item:visible").length; //here tbl_test is table name //Check if table has row or not if ( tbl_row == 0 ){ if(!$('.no-results').hasClass('show') ){ $('.no-results').addClass('show'); } } else{ $('.no-results').removeClass('show'); } } else{ // If filter box is empty $(".todo-item").show(); if($('.no-results').hasClass('show') ){ $('.no-results').removeClass('show'); } } }); }); $(window).on("resize", function() { // remove show classes from sidebar and overlay if size is > 992 if ($(window).width() > 992) { if($('.app-content .app-content-overlay').hasClass('show')){ $('.app-content .sidebar-left').removeClass('show'); $('.app-content .app-content-overlay').removeClass('show'); } } }); ================================================ FILE: public/backend/js/scripts/pages/app-user.js ================================================ /*========================================================================================= File Name: app-user.js Description: User page -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function () { var isRtl; if ( $('html').attr('data-textdirection') == 'rtl' ) { isRtl = true; } else { isRtl = false; } // Rendering badge in status column var customBadgeHTML = function (params) { var color = ""; if (params.value == "active") { color = "success" return "
    " + params.value + "
    " } else if (params.value == "blocked") { color = "danger"; return "
    " + params.value + "
    " } else if (params.value == "deactivated") { color = "warning"; return "
    " + params.value + "
    " } } // Rendering bullet in verified column var customBulletHTML = function (params) { var color = ""; if (params.value == true) { color = "success" return "
    " + "
    " } else if (params.value == false) { color = "secondary"; return "
    " + "
    " } } // Renering Icons in Actions column var customIconsHTML = function (params) { var usersIcons = document.createElement("span"); var editIconHTML = "" var deleteIconHTML = document.createElement('i'); var attr = document.createAttribute("class") attr.value = "users-delete-icon feather icon-trash-2" deleteIconHTML.setAttributeNode(attr); // selected row delete functionality deleteIconHTML.addEventListener("click", function () { deleteArr = [ params.data ]; // var selectedData = gridOptions.api.getSelectedRows(); gridOptions.api.updateRowData({ remove: deleteArr }); }); usersIcons.appendChild($.parseHTML(editIconHTML)[0]); usersIcons.appendChild(deleteIconHTML); return usersIcons } // Rendering avatar in username column var customAvatarHTML = function (params) { return "" + params.value } // ag-grid /*** COLUMN DEFINE ***/ var columnDefs = [{ headerName: 'ID', field: 'id', width: 125, filter: true, checkboxSelection: true, headerCheckboxSelectionFilteredOnly: true, headerCheckboxSelection: true, }, { headerName: 'Username', field: 'username', filter: true, width: 175, cellRenderer: customAvatarHTML, }, { headerName: 'Email', field: 'email', filter: true, width: 225, }, { headerName: 'Name', field: 'name', filter: true, width: 200, }, { headerName: 'Country', field: 'country', filter: true, width: 150, }, { headerName: 'Role', field: 'role', filter: true, width: 150, }, { headerName: 'Status', field: 'status', filter: true, width: 150, cellRenderer: customBadgeHTML, cellStyle: { "text-align": "center" } }, { headerName: 'Verified', field: 'is_verified', filter: true, width: 125, cellRenderer: customBulletHTML, cellStyle: { "text-align": "center" } }, { headerName: 'Department', field: 'department', filter: true, width: 150, }, { headerName: 'Actions', field: 'transactions', width: 150, cellRenderer: customIconsHTML, } ]; /*** GRID OPTIONS ***/ var gridOptions = { defaultColDef: { sortable: true }, enableRtl: isRtl, columnDefs: columnDefs, rowSelection: "multiple", floatingFilter: true, filter: true, pagination: true, paginationPageSize: 20, pivotPanelShow: "always", colResizeDefault: "shift", animateRows: true, resizable: true }; if (document.getElementById("myGrid")) { /*** DEFINED TABLE VARIABLE ***/ var gridTable = document.getElementById("myGrid"); /*** GET TABLE DATA FROM URL ***/ agGrid .simpleHttpRequest({ url: "../../../app-assets/data/users-list.json" }) .then(function (data) { gridOptions.api.setRowData(data); }); /*** FILTER TABLE ***/ function updateSearchQuery(val) { gridOptions.api.setQuickFilter(val); } $(".ag-grid-filter").on("keyup", function () { updateSearchQuery($(this).val()); }); /*** CHANGE DATA PER PAGE ***/ function changePageSize(value) { gridOptions.api.paginationSetPageSize(Number(value)); } $(".sort-dropdown .dropdown-item").on("click", function () { var $this = $(this); changePageSize($this.text()); $(".filter-btn").text("1 - " + $this.text() + " of 50"); }); /*** EXPORT AS CSV BTN ***/ $(".ag-grid-export-btn").on("click", function (params) { gridOptions.api.exportDataAsCsv(); }); // filter data function var filterData = function agSetColumnFilter(column, val) { var filter = gridOptions.api.getFilterInstance(column) var modelObj = null if (val !== "all") { modelObj = { type: "equals", filter: val } } filter.setModel(modelObj) gridOptions.api.onFilterChanged() } // filter inside role $("#users-list-role").on("change", function () { var usersListRole = $("#users-list-role").val(); filterData("role", usersListRole) }); // filter inside verified $("#users-list-verified").on("change", function () { var usersListVerified = $("#users-list-verified").val(); filterData("is_verified", usersListVerified) }); // filter inside status $("#users-list-status").on("change", function () { var usersListStatus = $("#users-list-status").val(); filterData("status", usersListStatus) }); // filter inside department $("#users-list-department").on("change", function () { var usersListDepartment = $("#users-list-department").val(); filterData("department", usersListDepartment) }); // filter reset $(".users-data-filter").click(function () { $('#users-list-role').prop('selectedIndex', 0); $('#users-list-role').change(); $('#users-list-status').prop('selectedIndex', 0); $('#users-list-status').change(); $('#users-list-verified').prop('selectedIndex', 0); $('#users-list-verified').change(); $('#users-list-department').prop('selectedIndex', 0); $('#users-list-department').change(); }); /*** INIT TABLE ***/ new agGrid.Grid(gridTable, gridOptions); } // users language select if ($("#users-language-select2").length > 0) { $("#users-language-select2").select2({ dropdownAutoWidth: true, width: '100%' }); } // users music select if ($("#users-music-select2").length > 0) { $("#users-music-select2").select2({ dropdownAutoWidth: true, width: '100%' }); } // users movies select if ($("#users-movies-select2").length > 0) { $("#users-movies-select2").select2({ dropdownAutoWidth: true, width: '100%' }); } // users birthdate date if ($(".birthdate-picker").length > 0) { $('.birthdate-picker').pickadate({ format: 'mmmm, d, yyyy' }); } // Input, Select, Textarea validations except submit button validation initialization if ($(".users-edit").length > 0) { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } }); ================================================ FILE: public/backend/js/scripts/pages/bootstrap-toast.js ================================================ $('.toast-toggler').on('click', function () { $(this).next('.toast').prependTo('.toast-bs-container .toast-position').toast('show') // if ($('.toast-bs-container .toast-position .toast').hasClass('hide')) { // $('.toast-bs-container .toast-position .toast').toast('show') // } }); $('.placement').on('click', function () { $('.toast-placement').toast('show'); $('.toast-placement .toast').toast('show'); }); ================================================ FILE: public/backend/js/scripts/pages/coming-soon.js ================================================ /*========================================================================================= File Name: page-coming-soon.js Description: Coming Soon ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ /******************************* * js of Countdown * ********************************/ $(document).ready(function() { var todayDate = new Date(); var releaseDate = new Date(todayDate.setDate(todayDate.getDate()+5)); var dd = releaseDate.getDate(); var mm = releaseDate.getMonth() + 1; var yy = releaseDate.getFullYear(); var releaseDate = yy + "/" + mm + "/" + dd; $('#clockFlat').countdown(releaseDate).on('update.countdown', function(event) { var $this = $(this).html(event.strftime('
    %d

    Day%!d

    ' + '
    %H

    Hour%!H

    ' + '
    %M

    Minute%!M

    ' + '
    %S

    Second%!S

    ')) }); }); ================================================ FILE: public/backend/js/scripts/pages/content-sidebar.js ================================================ /*========================================================================================= File Name: content-sidebar.js Description: Invoices list datables configurations ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { /*********************************** * js of small Slider * ************************************/ var sm_options = { start: [30,70], behaviour: 'drag', connect: true, range: { 'min': 20, 'max': 80 } }; var smallSlider = document.getElementById('small-slider'); noUiSlider.create(smallSlider, sm_options); /************************************* * Default Score Rating * **************************************/ $.fn.raty.defaults.path = '../../../app-assets/images/raty/'; $('#score-rating').raty({ score: 3 }); if($(".sidebar-sticky").length){ var headerNavbarHeight, footerNavbarHeight; // Header & Footer offset only for right & left sticky sidebar if($("body").hasClass('content-right-sidebar') || $("body").hasClass('content-left-sidebar')){ headerNavbarHeight = $('.header-navbar').height(); footerNavbarHeight = $('footer.footer').height(); } // Header & Footer offset with padding for detached right & left dsticky sidebar else{ headerNavbarHeight = $('.header-navbar').height()+24; footerNavbarHeight = $('footer.footer').height()+10; } $(".sidebar-sticky").sticky({ topSpacing: headerNavbarHeight, bottomSpacing: footerNavbarHeight }); } }); ================================================ FILE: public/backend/js/scripts/pages/dashboard-analytics.js ================================================ /*========================================================================================= File Name: dashboard-analytics.js Description: dashboard analytics page content with Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function () { var $primary = '#7367F0'; var $danger = '#EA5455'; var $warning = '#FF9F43'; var $info = '#0DCCE1'; var $primary_light = '#8F80F9'; var $warning_light = '#FFC085'; var $danger_light = '#f29292'; var $info_light = '#1edec5'; var $strok_color = '#b9c3cd'; var $label_color = '#e7eef7'; var $white = '#fff'; // Subscribers Gained Chart starts // // ---------------------------------- var gainedChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$primary], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Subscribers', data: [28, 40, 36, 52, 38, 60, 55] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var gainedChart = new ApexCharts( document.querySelector("#subscribe-gain-chart"), gainedChartoptions ); gainedChart.render(); // Subscribers Gained Chart ends // // Orders Received Chart starts // // ---------------------------------- var orderChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$warning], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Orders', data: [10, 15, 8, 15, 7, 12, 8] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var orderChart = new ApexCharts( document.querySelector("#orders-received-chart"), orderChartoptions ); orderChart.render(); // Orders Received Chart ends // // Avg Session Chart Starts // ---------------------------------- var sessionChartoptions = { chart: { type: 'bar', height: 200, sparkline: { enabled: true }, toolbar: { show: false }, }, states: { hover: { filter: 'none' } }, colors: [$label_color, $label_color, $primary, $label_color, $label_color, $label_color], series: [{ name: 'Sessions', data: [75, 125, 225, 175, 125, 75, 25] }], grid: { show: false, padding: { left: 0, right: 0 } }, plotOptions: { bar: { columnWidth: '45%', distributed: true, endingShape: 'rounded' } }, tooltip: { x: { show: false } }, xaxis: { type: 'numeric', } } var sessionChart = new ApexCharts( document.querySelector("#avg-session-chart"), sessionChartoptions ); sessionChart.render(); // Avg Session Chart ends // // Support Tracker Chart starts // ----------------------------- var supportChartoptions = { chart: { height: 270, type: 'radialBar', }, plotOptions: { radialBar: { size: 150, startAngle: -150, endAngle: 150, offsetY: 20, hollow: { size: '65%', }, track: { background: $white, strokeWidth: '100%', }, dataLabels: { value: { offsetY: 30, color: '#99a2ac', fontSize: '2rem' } } }, }, colors: [$danger], fill: { type: 'gradient', gradient: { // enabled: true, shade: 'dark', type: 'horizontal', shadeIntensity: 0.5, gradientToColors: [$primary], inverseColors: true, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, stroke: { dashArray: 8 }, series: [83], labels: ['Completed Tickets'], } var supportChart = new ApexCharts( document.querySelector("#support-tracker-chart"), supportChartoptions ); supportChart.render(); // Support Tracker Chart ends // Product Order Chart starts // ----------------------------- var productChartoptions = { chart: { height: 325, type: 'radialBar', }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { // enabled: true, shade: 'dark', type: 'vertical', shadeIntensity: 0.5, gradientToColors: [$primary_light, $warning_light, $danger_light], inverseColors: false, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, stroke: { lineCap: 'round' }, plotOptions: { radialBar: { size: 165, hollow: { size: '20%' }, track: { strokeWidth: '100%', margin: 15, }, dataLabels: { name: { fontSize: '18px', }, value: { fontSize: '16px', }, total: { show: true, label: 'Total', formatter: function (w) { // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function return 42459 } } } } }, series: [70, 52, 26], labels: ['Finished', 'Pending', 'Rejected'], } var productChart = new ApexCharts( document.querySelector("#product-order-chart"), productChartoptions ); productChart.render(); // Product Order Chart ends // // Sales Chart starts // ----------------------------- var salesChartoptions = { chart: { height: 400, type: 'radar', dropShadow: { enabled: true, blur: 8, left: 1, top: 1, opacity: 0.2 }, toolbar: { show: false }, }, toolbar: { show: false }, series: [{ name: 'Sales', data: [90, 50, 86, 40, 100, 20], }, { name: 'Visit', data: [70, 75, 70, 76, 20, 85], }], stroke: { width: 0 }, colors: [$primary, $info], plotOptions: { radar: { polygons: { strokeColors: ['#e8e8e8', 'transparent', 'transparent', 'transparent', 'transparent', 'transparent'], connectorColors: 'transparent' } } }, fill: { type: 'gradient', gradient: { shade: 'dark', gradientToColors: ['#9f8ed7', $info_light], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 0, }, legend: { show: true, position: 'top', horizontalAlign: 'left', fontSize: '16px', markers: { width: 10, height: 10, } }, labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], dataLabels: { style: { colors: [$strok_color, $strok_color, $strok_color, $strok_color, $strok_color, $strok_color] } }, yaxis: { show: false, }, grid: { show: false, }, } var salesChart = new ApexCharts( document.querySelector("#sales-chart"), salesChartoptions ); salesChart.render(); // Sales Chart ends // /***** TOUR ******/ var tour = new Shepherd.Tour({ classes: 'shadow-md bg-purple-dark', scrollTo: true }) // tour steps tour.addStep('step-1', { text: 'Toggle Collapse Sidebar.', attachTo: '.modern-nav-toggle .collapse-toggle-icon bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-2', { text: 'Create your own bookmarks. You can also re-arrange them using drag & drop.', attachTo: '.bookmark-icons .icon-mail bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: "previous", action: tour.back }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-3', { text: 'You can change language from here.', attachTo: '.dropdown-language .flag-icon bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: "previous", action: tour.back }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-4', { text: 'Try fuzzy search to visit pages in flash.', attachTo: '.nav-link-search .icon-search bottom', buttons: [ { text: "Skip", action: tour.complete }, { text: "previous", action: tour.back }, { text: 'Next', action: tour.next }, ] }); tour.addStep('step-5', { text: 'Buy this awesomeness at affordable price!', attachTo: '.buy-now bottom', buttons: [ { text: "previous", action: tour.back }, { text: "Finish", action: tour.complete }, ] }); if ($(window).width() > 1200 && !$("body").hasClass("menu-collapsed")) { tour.start() } else { tour.cancel() } if($("body").hasClass("horizontal-menu")){ tour.cancel() } $(window).on("resize", function () { tour.cancel() }) }); ================================================ FILE: public/backend/js/scripts/pages/dashboard-ecommerce.js ================================================ /*========================================================================================= File Name: dashboard-ecommerce.js Description: dashboard ecommerce page content with Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(window).on("load", function () { var $primary = '#7367F0'; var $success = '#28C76F'; var $danger = '#EA5455'; var $warning = '#FF9F43'; var $info = '#00cfe8'; var $primary_light = '#A9A2F6'; var $danger_light = '#f29292'; var $success_light = '#55DD92'; var $warning_light = '#ffc085'; var $info_light = '#1fcadb'; var $strok_color = '#b9c3cd'; var $label_color = '#e7e7e7'; var $white = '#fff'; // Line Area Chart - 1 // ---------------------------------- var gainedlineChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$primary], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Subscribers', data: [28, 40, 36, 52, 38, 60, 55] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var gainedlineChart = new ApexCharts( document.querySelector("#line-area-chart-1"), gainedlineChartoptions ); gainedlineChart.render(); // Line Area Chart - 2 // ---------------------------------- var revenuelineChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$success], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Revenue', data: [350, 275, 400, 300, 350, 300, 450] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var revenuelineChart = new ApexCharts( document.querySelector("#line-area-chart-2"), revenuelineChartoptions ); revenuelineChart.render(); // Line Area Chart - 3 // ---------------------------------- var saleslineChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$danger], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Sales', data: [10, 15, 7, 12, 3, 16] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var saleslineChart = new ApexCharts( document.querySelector("#line-area-chart-3"), saleslineChartoptions ); saleslineChart.render(); // Line Area Chart - 4 // ---------------------------------- var orderlineChartoptions = { chart: { height: 100, type: 'area', toolbar: { show: false, }, sparkline: { enabled: true }, grid: { show: false, padding: { left: 0, right: 0 } }, }, colors: [$warning], dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2.5 }, fill: { type: 'gradient', gradient: { shadeIntensity: 0.9, opacityFrom: 0.7, opacityTo: 0.5, stops: [0, 80, 100] } }, series: [{ name: 'Orders', data: [10, 15, 8, 15, 7, 12, 8] }], xaxis: { labels: { show: false, }, axisBorder: { show: false, } }, yaxis: [{ y: 0, offsetX: 0, offsetY: 0, padding: { left: 0, right: 0 }, }], tooltip: { x: { show: false } }, } var orderlineChart = new ApexCharts( document.querySelector("#line-area-chart-4"), orderlineChartoptions ); orderlineChart.render(); // revenue-chart Chart // ----------------------------- var revenueChartoptions = { chart: { height: 270, toolbar: { show: false }, type: 'line', }, stroke: { curve: 'smooth', dashArray: [0, 8], width: [4, 2], }, grid: { borderColor: $label_color, }, legend: { show: false, }, colors: [$danger_light, $strok_color], fill: { type: 'gradient', gradient: { shade: 'dark', inverseColors: false, gradientToColors: [$primary, $strok_color], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 0, hover: { size: 5 } }, xaxis: { labels: { style: { colors: $strok_color, } }, axisTicks: { show: false, }, categories: ['01', '05', '09', '13', '17', '21', '26', '31'], axisBorder: { show: false, }, tickPlacement: 'on', }, yaxis: { tickAmount: 5, labels: { style: { color: $strok_color, }, formatter: function (val) { return val > 999 ? (val / 1000).toFixed(1) + 'k' : val; } } }, tooltip: { x: { show: false } }, series: [{ name: "This Month", data: [45000, 47000, 44800, 47500, 45500, 48000, 46500, 48600] }, { name: "Last Month", data: [46000, 48000, 45500, 46600, 44500, 46500, 45000, 47000] } ], } var revenueChart = new ApexCharts( document.querySelector("#revenue-chart"), revenueChartoptions ); revenueChart.render(); // Goal Overview Chart // ----------------------------- var goalChartoptions = { chart: { height: 250, type: 'radialBar', sparkline: { enabled: true, }, dropShadow: { enabled: true, blur: 3, left: 1, top: 1, opacity: 0.1 }, }, colors: [$success], plotOptions: { radialBar: { size: 110, startAngle: -150, endAngle: 150, hollow: { size: '77%', }, track: { background: $strok_color, strokeWidth: '50%', }, dataLabels: { name: { show: false }, value: { offsetY: 18, color: '#99a2ac', fontSize: '4rem' } } } }, fill: { type: 'gradient', gradient: { shade: 'dark', type: 'horizontal', shadeIntensity: 0.5, gradientToColors: ['#00b5b5'], inverseColors: true, opacityFrom: 1, opacityTo: 1, stops: [0, 100] }, }, series: [83], stroke: { lineCap: 'round' }, } var goalChart = new ApexCharts( document.querySelector("#goal-overview-chart"), goalChartoptions ); goalChart.render(); // Client Retention Chart // ---------------------------------- var clientChartoptions = { chart: { stacked: true, type: 'bar', toolbar: { show: false }, height: 300, }, plotOptions: { bar: { columnWidth: '10%' } }, colors: [$primary, $danger], series: [{ name: 'New Clients', data: [175, 125, 225, 175, 160, 189, 206, 134, 159, 216, 148, 123] }, { name: 'Retained Clients', data: [-144, -155, -141, -167, -122, -143, -158, -107, -126, -131, -140, -137] }], grid: { borderColor: $label_color, padding: { left: 0, right: 0 } }, legend: { show: true, position: 'top', horizontalAlign: 'left', offsetX: 0, fontSize: '14px', markers: { radius: 50, width: 10, height: 10, } }, dataLabels: { enabled: false }, xaxis: { labels: { style: { colors: $strok_color, } }, axisTicks: { show: false, }, categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], axisBorder: { show: false, }, }, yaxis: { tickAmount: 5, labels: { style: { color: $strok_color, } } }, tooltip: { x: { show: false } }, } var clientChart = new ApexCharts( document.querySelector("#client-retention-chart"), clientChartoptions ); clientChart.render(); // Session Chart // ---------------------------------- var sessionChartoptions = { chart: { type: 'donut', height: 325, toolbar: { show: false } }, dataLabels: { enabled: false }, series: [58.6, 34.9, 6.5], legend: { show: false }, comparedResult: [2, -3, 8], labels: ['Desktop', 'Mobile', 'Tablet'], stroke: { width: 0 }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { gradientToColors: [$primary_light, $warning_light, $danger_light] } } } var sessionChart = new ApexCharts( document.querySelector("#session-chart"), sessionChartoptions ); sessionChart.render(); // Customer Chart // ----------------------------- var customerChartoptions = { chart: { type: 'pie', height: 330, dropShadow: { enabled: false, blur: 5, left: 1, top: 1, opacity: 0.2 }, toolbar: { show: false } }, labels: ['New', 'Returning', 'Referrals'], series: [690, 258, 149], dataLabels: { enabled: false }, legend: { show: false }, stroke: { width: 5 }, colors: [$primary, $warning, $danger], fill: { type: 'gradient', gradient: { gradientToColors: [$primary_light, $warning_light, $danger_light] } } } var customerChart = new ApexCharts( document.querySelector("#customer-chart"), customerChartoptions ); customerChart.render(); }); // Chat Application (function ($) { "use strict"; // Chat area if ($('.chat-application .user-chats').length > 0) { var chat_user = new PerfectScrollbar(".user-chats", { wheelPropagation: false }); } })(jQuery); ================================================ FILE: public/backend/js/scripts/pages/faq-kb.js ================================================ /*========================================================================================= File Name: app-todo.js Description: app-todo ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(function() { "use strict"; // Filter $("#searchbar").on("keyup", function() { var value = $(this).val().toLowerCase(); if(value!=""){ $(".search-content-info .search-content").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); }); var search_row = $(".search-content-info .search-content:visible").length; //Check if search-content has row or not if ( search_row == 0 ){ $('.search-content-info .no-result').removeClass('no-items'); } else{ if(!$('.search-content-info .no-result').hasClass('no-items') ){ $('.search-content-info .no-result').addClass('no-items'); } } } else { // If filter box is empty $(".search-content-info .search-content").show(); if ($('.search-content-info .no-results').hasClass('no-items')) { $('.search-content-info .no-results').removeClass('no-items'); } } }); }); ================================================ FILE: public/backend/js/scripts/pages/invoice.js ================================================ // ========================================================================================= // File Name: invoice-template.js // Description: Treeview. // -------------------------------------------------------------------------------------- // Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template // Author: PIXINVENT // Author URL: http://www.themeforest.net/user/pixinvent // ========================================================================================== $(document).ready(function () { // print invoice with button $(".btn-print").click(function () { window.print(); }); }); ================================================ FILE: public/backend/js/scripts/pages/page-auth-reset-password.js ================================================ /*========================================================================================= File Name: form-validation.js Description: jquery bootstrap validation js ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(function () { 'use strict'; var pageResetPasswordForm = $('.auth-reset-password-form'); // jQuery Validation // -------------------------------------------------------------------- if (pageResetPasswordForm.length) { pageResetPasswordForm.validate({ /* * ? To enable validation onkeyup onkeyup: function (element) { $(element).valid(); },*/ /* * ? To enable validation on focusout onfocusout: function (element) { $(element).valid(); }, */ rules: { 'reset-password-new': { required: true }, 'reset-password-confirm': { required: true, equalTo: '#reset-password-new' } } }); } }); ================================================ FILE: public/backend/js/scripts/pages/sk-content-sidebar.js ================================================ /*========================================================================================= File Name: content-sidebar.js Description: Invoices list datables configurations ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { if($(".sidebar-sticky").length){ var headerNavbarHeight, footerNavbarHeight; // Header & Footer offset only for right & left sticky sidebar if($("body").hasClass('content-right-sidebar') || $("body").hasClass('content-left-sidebar')){ headerNavbarHeight = $('.header-navbar').height(); footerNavbarHeight = $('footer.footer').height(); } // Header & Footer offset with padding for detached right & left dsticky sidebar else{ headerNavbarHeight = $('.header-navbar').height()+24; footerNavbarHeight = $('footer.footer').height()+10; } $(".sidebar-sticky").sticky({ topSpacing: headerNavbarHeight, bottomSpacing: footerNavbarHeight }); } }); ================================================ FILE: public/backend/js/scripts/pages/user-profile.js ================================================ /*========================================================================================= File Name: user-profile.js Description: User Profile jQuery Plugin Intialization -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function(){ /************************************ * Block Examples * ************************************/ $('.block-element').on('click', function() { var block_ele = $(this); $(block_ele).block({ message: '
    ', timeout: 2000, //unblock after 2 seconds overlayCSS: { backgroundColor: '#fff', opacity: 0.8, cursor: 'wait' }, css: { border: 0, padding: 0, backgroundColor: 'transparent' } }); }); // profile-header-nav toggle $('.navbar-toggler').on('click',function(){ $('.navbar-collapse').toggleClass('show'); $('.navbar-toggler-icon i').toggleClass('icon-x icon-align-justify'); }); }); ================================================ FILE: public/backend/js/scripts/pages/user-settings.js ================================================ /*========================================================================================= File Name: user-settings.js Description: User Settings jQuery Plugin Intialization -------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ // profile picture upload Dropzone.options.profilePicUpload = { paramName: "file", // The name that will be used to transfer the file maxFiles: 1, init: function () { this.on("maxfilesexceeded", function (file) { this.removeAllFiles(); this.addFile(file); }); } }; ================================================ FILE: public/backend/js/scripts/pagination/pagination.js ================================================ /*========================================================================================= File Name: pagination.js Description: Provide pagination links for your site or app with the multi-page pagination component. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function (window, document, $) { 'use strict'; // default pagination $('.page1-links').twbsPagination({ totalPages: 5, visiblePages: 4, prev: 'Prev', first: null, last: null, startPage: 2, onPageClick: function (event, page) { $('#page1-content').text('You are on Page ' + page); $(".pagination").find('li').addClass('page-item'); $(".pagination").find('a').addClass("page-link"); } }); //Default Pagination with last & first $('.firstLast1-links').twbsPagination({ totalPages: 5, visiblePages: 4, prev: 'Prev', first: 'First', last: 'Last', startPage: 2, onPageClick: function (event, page) { $('#firstLast1-content').text('You are on Page ' + page); $(".pagination").find('li').addClass('page-item'); $(".pagination").find('a').addClass("page-link"); } }); //Set Start Page Of Pagination $('.start-links').twbsPagination({ totalPages: 10, visiblePages: 6, startPage: 5, prev: 'Prev', first: 'First', last: 'Last', onPageClick: function (event, page) { $('#start-content').text('Your start Page ' + page); $(".pagination").find('li').addClass('page-item'); $(".pagination").find('a').addClass("page-link"); } }); // Pagination drop after reload $('.url1-links').twbsPagination({ totalPages: 10, visiblePages: 5, prev: 'Prev', first: 'First', last: 'Last', href: '?page={{page}}&#url1-content', hrefVariable: '{{page}}', onPageClick: function (event, page) { $('#url1-content').text('You are on Page ' + page); $(".pagination").find('li').addClass('page-item'); $(".pagination").find('a').addClass("page-link"); } }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/pickers/dateTime/pick-a-datetime.js ================================================ /*========================================================================================= File Name: picker-date-time.js Description: Pick a date/time Picker, Date Range Picker JS ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; /******* Pick-a-date Picker *****/ // Basic date $('.pickadate').pickadate(); // Format Date Picker $('.format-picker').pickadate({ format: 'mmmm, d, yyyy' }); // Date limits $('.pickadate-limits').pickadate({ min: [2019,3,20], max: [2019,5,28] }); // Disabled Dates & Weeks $('.pickadate-disable').pickadate({ disable: [ 1, [2019,3,6], [2019,3,20] ] }); // Picker Translations $( '.pickadate-translations' ).pickadate({ formatSubmit: 'dd/mm/yyyy', monthsFull: [ 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre' ], monthsShort: [ 'Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec' ], weekdaysShort: [ 'Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam' ], today: 'aujourd\'hui', clear: 'clair', close: 'Fermer' }); // Month Select Picker $('.pickadate-months').pickadate({ selectYears: false, selectMonths: true }); // Month and Year Select Picker $('.pickadate-months-year').pickadate({ selectYears: true, selectMonths: true }); // Short String Date Picker $('.pickadate-short-string').pickadate({ weekdaysShort: ['S', 'M', 'Tu', 'W', 'Th', 'F', 'S'], showMonthsShort: true }); // Change first weekday $('.pickadate-firstday').pickadate({ firstDay: 1 }); /******* Pick-a-time Picker *****/ // Basic time $('.pickatime').pickatime(); // Format options $('.pickatime-format').pickatime({ // Escape any “rule” characters with an exclamation mark (!). format: 'T!ime selected: h:i a', formatLabel: 'HH:i a', formatSubmit: 'HH:i', hiddenPrefix: 'prefix__', hiddenSuffix: '__suffix' }); // Format options $('.pickatime-formatlabel').pickatime({ formatLabel: function(time) { var hours = ( time.pick - this.get('now').pick ) / 60, label = hours < 0 ? ' !hours to now' : hours > 0 ? ' !hours from now' : 'now'; return 'h:i a ' + ( hours ? Math.abs(hours) : '' ) + label +''; } }); // Min - Max Time to select $( '.pickatime-min-max').pickatime({ // Using Javascript min: new Date(2015,3,20,7), max: new Date(2015,7,14,18,30) // Using Array // min: [7,30], // max: [14,0] }); // Intervals $('.pickatime-intervals').pickatime({ interval: 150 }); // Disable Time $('.pickatime-disable').pickatime({ disable: [ // Disable Using Integers 3, 5, 7, 13, 17, 21 /* Using Array */ // [0,30], // [2,0], // [8,30], // [9,0] ] }); // Close on a user action $('.pickatime-close-action').pickatime({ closeOnSelect: false, closeOnClear: false }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/popover/popover.js ================================================ /*========================================================================================= File Name: popover.js Description: Popovers are an updated version, which don’t rely on images, use CSS3 for animations, and data-attributes for local title storage. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; $('[data-toggle="popover"]').popover(); /******************/ // Popover events // /******************/ // onShow event $('#show-popover').popover({ title: 'Popover Show Event', content: 'Bonbon chocolate cake. Pudding halvah pie apple pie topping marzipan pastry marzipan cupcake.', trigger: 'click', placement: 'right' }).on('show.bs.popover', function() { alert('Show event fired.'); }); // onShown event $('#shown-popover').popover({ title: 'Popover Shown Event', content: 'Bonbon chocolate cake. Pudding halvah pie apple pie topping marzipan pastry marzipan cupcake.', trigger: 'click', placement: 'bottom' }).on('shown.bs.popover', function() { alert('Shown event fired.'); }); // onHide event $('#hide-popover').popover({ title: 'Popover Hide Event', content: 'Bonbon chocolate cake. Pudding halvah pie apple pie topping marzipan pastry marzipan cupcake.', trigger: 'click', placement: 'bottom' }).on('hide.bs.popover', function() { alert('Hide event fired.'); }); // onHidden event $('#hidden-popover').popover({ title: 'Popover Hidden Event', content: 'Bonbon chocolate cake. Pudding halvah pie apple pie topping marzipan pastry marzipan cupcake.', trigger: 'click', placement: 'left' }).on('hidden.bs.popover', function() { alert('Hidden event fired.'); }); /*******************/ // Tooltip methods // /*******************/ // Show method $('#show-method').on('click', function() { $(this).popover('show'); }); // Hide method $('#hide-method').on('mouseenter', function() { $(this).popover('show'); }); $('#hide-method').on('click', function() { $(this).popover('hide'); }); // Toggle method $('#toggle-method').on('click', function() { $(this).popover('toggle'); }); // Dispose method $('#dispose').on('click', function() { $('#dispose-method').popover('dispose'); }); /* Trigger*/ $('.manual').on('click', function() { $(this).popover('show'); }); $('.manual').on('mouseout', function() { $(this).popover('hide'); }); /****************/ // Custom color // /****************/ $('[data-popup=popover-color]').popover({ template: '
    ' }); /**********************/ // Custom borer color // /**********************/ $('[data-popup=popover-border]').popover({ template: '
    ' }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/tooltip/tooltip.js ================================================ /*========================================================================================= File Name: tooltip.js Description: Tooltips are an updated version, which don’t rely on images, use CSS3 for animations, and data-attributes for local title storage. ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; /******************/ // Tooltip events // /******************/ // onShow event $('#show-tooltip').tooltip({ title: 'Tooltip Show Event', trigger: 'click', placement: 'right' }).on('show.bs.tooltip', function() { alert('Show event fired.'); }); // onShown event $('#shown-tooltip').tooltip({ title: 'Tooltip Shown Event', trigger: 'click', placement: 'top' }).on('shown.bs.tooltip', function() { alert('Shown event fired.'); }); // onHide event $('#hide-tooltip').tooltip({ title: 'Tooltip Hide Event', trigger: 'click', placement: 'bottom' }).on('hide.bs.tooltip', function() { alert('Hide event fired.'); }); // onHidden event $('#hidden-tooltip').tooltip({ title: 'Tooltip Hidden Event', trigger: 'click', placement: 'left' }).on('hidden.bs.tooltip', function() { alert('Hidden event fired.'); }); /*******************/ // Tooltip methods // /*******************/ // Show method $('#show-method').on('click', function() { $(this).tooltip('show'); }); // Hide method $('#hide-method').on('mouseenter', function() { $(this).tooltip('show'); }); $('#hide-method').on('click', function() { $(this).tooltip('hide'); }); // Toggle method $('#toggle-method').on('click', function() { $(this).tooltip('toggle'); }); // Dispose method $('#dispose').on('click', function() { $('#dispose-method').tooltip('dispose'); }); /* Trigger*/ $('.manual').on('click', function() { $(this).tooltip('show'); }); $('.manual').on('mouseout', function() { $(this).tooltip('hide'); }); /* Default template */ $(".template").on('click', function(){ console.log( '' ); }); })(window, document, jQuery); ================================================ FILE: public/backend/js/scripts/ui/data-list-view.js ================================================ /*========================================================================================= File Name: data-list-view.js Description: List View ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ $(document).ready(function() { "use strict" // init list view datatable var dataListView = $(".data-list-view").DataTable({ responsive: false, columnDefs: [ { orderable: true, targets: 0, checkboxes: { selectRow: true } } ], dom: '<"top"<"actions action-btns"B><"action-filters"lf>><"clear">rt<"bottom"<"actions">p>', oLanguage: { sLengthMenu: "_MENU_", sSearch: "" }, aLengthMenu: [[4, 10, 15, 20], [4, 10, 15, 20]], select: { style: "multi" }, order: [[1, "asc"]], bInfo: false, pageLength: 4, buttons: [ { text: " Add New", action: function() { $(this).removeClass("btn-secondary") $(".add-new-data").addClass("show") $(".overlay-bg").addClass("show") $("#data-name, #data-price").val("") $("#data-category, #data-status").prop("selectedIndex", 0) }, className: "btn-outline-primary" } ], initComplete: function(settings, json) { $(".dt-buttons .btn").removeClass("btn-secondary") } }); dataListView.on('draw.dt', function(){ setTimeout(function(){ if (navigator.userAgent.indexOf("Mac OS X") != -1) { $(".dt-checkboxes-cell input, .dt-checkboxes").addClass("mac-checkbox") } }, 50); }); // init thumb view datatable var dataThumbView = $(".data-thumb-view").DataTable({ responsive: false, columnDefs: [ { orderable: true, targets: 0, checkboxes: { selectRow: true } } ], dom: '<"top"<"actions action-btns"B><"action-filters"lf>><"clear">rt<"bottom"<"actions">p>', oLanguage: { sLengthMenu: "_MENU_", sSearch: "" }, aLengthMenu: [[4, 10, 15, 20], [4, 10, 15, 20]], select: { style: "multi" }, order: [[1, "asc"]], bInfo: false, pageLength: 4, buttons: [ { text: " Add New", action: function() { $(this).removeClass("btn-secondary") $(".add-new-data").addClass("show") $(".overlay-bg").addClass("show") }, className: "btn-outline-primary" } ], initComplete: function(settings, json) { $(".dt-buttons .btn").removeClass("btn-secondary") } }) dataThumbView.on('draw.dt', function(){ setTimeout(function(){ if (navigator.userAgent.indexOf("Mac OS X") != -1) { $(".dt-checkboxes-cell input, .dt-checkboxes").addClass("mac-checkbox") } }, 50); }); // To append actions dropdown before add new button var actionDropdown = $(".actions-dropodown") actionDropdown.insertBefore($(".top .actions .dt-buttons")) // Scrollbar if ($(".data-items").length > 0) { new PerfectScrollbar(".data-items", { wheelPropagation: false }) } // Close sidebar $(".hide-data-sidebar, .cancel-data-btn, .overlay-bg").on("click", function() { $(".add-new-data").removeClass("show") $(".overlay-bg").removeClass("show") $("#data-name, #data-price").val("") $("#data-category, #data-status").prop("selectedIndex", 0) }) // On Edit $('.action-edit').on("click",function(e){ e.stopPropagation(); $('#data-name').val('Altec Lansing - Bluetooth Speaker'); $('#data-price').val('$99'); $(".add-new-data").addClass("show"); $(".overlay-bg").addClass("show"); }); // On Delete $('.action-delete').on("click", function(e){ e.stopPropagation(); $(this).closest('td').parent('tr').fadeOut(); }); // dropzone init Dropzone.options.dataListUpload = { complete: function(files) { var _this = this // checks files in class dropzone and remove that files $(".hide-data-sidebar, .cancel-data-btn, .actions .dt-buttons").on( "click", function() { $(".dropzone")[0].dropzone.files.forEach(function(file) { file.previewElement.remove() }) $(".dropzone").removeClass("dz-started") } ) } } Dropzone.options.dataListUpload.complete() // mac chrome checkbox fix if (navigator.userAgent.indexOf("Mac OS X") != -1) { $(".dt-checkboxes-cell input, .dt-checkboxes").addClass("mac-checkbox") } }) ================================================ FILE: public/backend/vendors/css/animate/animate.css ================================================ @charset "UTF-8"; /*! * animate.css -https://daneden.github.io/animate.css/ * Version - 3.7.2 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2019 Daniel Eden */ @-webkit-keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } @keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } .bounce { -webkit-animation-name: bounce; animation-name: bounce; -webkit-transform-origin: center bottom; transform-origin: center bottom; } @-webkit-keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } @keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } .flash { -webkit-animation-name: flash; animation-name: flash; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } @-webkit-keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .rubberBand { -webkit-animation-name: rubberBand; animation-name: rubberBand; } @-webkit-keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } .shake { -webkit-animation-name: shake; animation-name: shake; } @-webkit-keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } .headShake { -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; -webkit-animation-name: headShake; animation-name: headShake; } @-webkit-keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } @keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } .swing { -webkit-transform-origin: top center; transform-origin: top center; -webkit-animation-name: swing; animation-name: swing; } @-webkit-keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .tada { -webkit-animation-name: tada; animation-name: tada; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes wobble { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes wobble { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .wobble { -webkit-animation-name: wobble; animation-name: wobble; } @-webkit-keyframes jello { from, 11.1%, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.390625deg) skewY(0.390625deg); transform: skewX(0.390625deg) skewY(0.390625deg); } 88.8% { -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg); transform: skewX(-0.1953125deg) skewY(-0.1953125deg); } } @keyframes jello { from, 11.1%, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.390625deg) skewY(0.390625deg); transform: skewX(0.390625deg) skewY(0.390625deg); } 88.8% { -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg); transform: skewX(-0.1953125deg) skewY(-0.1953125deg); } } .jello { -webkit-animation-name: jello; animation-name: jello; -webkit-transform-origin: center; transform-origin: center; } @-webkit-keyframes heartBeat { 0% { -webkit-transform: scale(1); transform: scale(1); } 14% { -webkit-transform: scale(1.3); transform: scale(1.3); } 28% { -webkit-transform: scale(1); transform: scale(1); } 42% { -webkit-transform: scale(1.3); transform: scale(1.3); } 70% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes heartBeat { 0% { -webkit-transform: scale(1); transform: scale(1); } 14% { -webkit-transform: scale(1.3); transform: scale(1.3); } 28% { -webkit-transform: scale(1); transform: scale(1); } 42% { -webkit-transform: scale(1.3); transform: scale(1.3); } 70% { -webkit-transform: scale(1); transform: scale(1); } } .heartBeat { -webkit-animation-name: heartBeat; animation-name: heartBeat; -webkit-animation-duration: 1.3s; animation-duration: 1.3s; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } @-webkit-keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .bounceIn { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: bounceIn; animation-name: bounceIn; } @-webkit-keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInDown { -webkit-animation-name: bounceInDown; animation-name: bounceInDown; } @-webkit-keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInLeft { -webkit-animation-name: bounceInLeft; animation-name: bounceInLeft; } @-webkit-keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInRight { -webkit-animation-name: bounceInRight; animation-name: bounceInRight; } @-webkit-keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInUp { -webkit-animation-name: bounceInUp; animation-name: bounceInUp; } @-webkit-keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } @keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } .bounceOut { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: bounceOut; animation-name: bounceOut; } @-webkit-keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .bounceOutDown { -webkit-animation-name: bounceOutDown; animation-name: bounceOutDown; } @-webkit-keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .bounceOutLeft { -webkit-animation-name: bounceOutLeft; animation-name: bounceOutLeft; } @-webkit-keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .bounceOutRight { -webkit-animation-name: bounceOutRight; animation-name: bounceOutRight; } @-webkit-keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .bounceOutUp { -webkit-animation-name: bounceOutUp; animation-name: bounceOutUp; } @-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { -webkit-animation-name: fadeIn; animation-name: fadeIn; } @-webkit-keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInDown { -webkit-animation-name: fadeInDown; animation-name: fadeInDown; } @-webkit-keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInDownBig { -webkit-animation-name: fadeInDownBig; animation-name: fadeInDownBig; } @-webkit-keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInLeft { -webkit-animation-name: fadeInLeft; animation-name: fadeInLeft; } @-webkit-keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInLeftBig { -webkit-animation-name: fadeInLeftBig; animation-name: fadeInLeftBig; } @-webkit-keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInRight { -webkit-animation-name: fadeInRight; animation-name: fadeInRight; } @-webkit-keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInRightBig { -webkit-animation-name: fadeInRightBig; animation-name: fadeInRightBig; } @-webkit-keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInUp { -webkit-animation-name: fadeInUp; animation-name: fadeInUp; } @-webkit-keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInUpBig { -webkit-animation-name: fadeInUpBig; animation-name: fadeInUpBig; } @-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { -webkit-animation-name: fadeOut; animation-name: fadeOut; } @-webkit-keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .fadeOutDown { -webkit-animation-name: fadeOutDown; animation-name: fadeOutDown; } @-webkit-keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .fadeOutDownBig { -webkit-animation-name: fadeOutDownBig; animation-name: fadeOutDownBig; } @-webkit-keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .fadeOutLeft { -webkit-animation-name: fadeOutLeft; animation-name: fadeOutLeft; } @-webkit-keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .fadeOutLeftBig { -webkit-animation-name: fadeOutLeftBig; animation-name: fadeOutLeftBig; } @-webkit-keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .fadeOutRight { -webkit-animation-name: fadeOutRight; animation-name: fadeOutRight; } @-webkit-keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .fadeOutRightBig { -webkit-animation-name: fadeOutRightBig; animation-name: fadeOutRightBig; } @-webkit-keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .fadeOutUp { -webkit-animation-name: fadeOutUp; animation-name: fadeOutUp; } @-webkit-keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .fadeOutUpBig { -webkit-animation-name: fadeOutUpBig; animation-name: fadeOutUpBig; } @-webkit-keyframes flip { from { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } @keyframes flip { from { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } .animated.flip { -webkit-backface-visibility: visible; backface-visibility: visible; -webkit-animation-name: flip; animation-name: flip; } @-webkit-keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInX { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInX; animation-name: flipInX; } @-webkit-keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInY { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInY; animation-name: flipInY; } @-webkit-keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } @keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } .flipOutX { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: flipOutX; animation-name: flipOutX; -webkit-backface-visibility: visible !important; backface-visibility: visible !important; } @-webkit-keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } @keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } .flipOutY { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipOutY; animation-name: flipOutY; } @-webkit-keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .lightSpeedIn { -webkit-animation-name: lightSpeedIn; animation-name: lightSpeedIn; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } @-webkit-keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } @keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } .lightSpeedOut { -webkit-animation-name: lightSpeedOut; animation-name: lightSpeedOut; -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } @-webkit-keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateIn { -webkit-animation-name: rotateIn; animation-name: rotateIn; } @-webkit-keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInDownLeft { -webkit-animation-name: rotateInDownLeft; animation-name: rotateInDownLeft; } @-webkit-keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInDownRight { -webkit-animation-name: rotateInDownRight; animation-name: rotateInDownRight; } @-webkit-keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInUpLeft { -webkit-animation-name: rotateInUpLeft; animation-name: rotateInUpLeft; } @-webkit-keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInUpRight { -webkit-animation-name: rotateInUpRight; animation-name: rotateInUpRight; } @-webkit-keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } @keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } .rotateOut { -webkit-animation-name: rotateOut; animation-name: rotateOut; } @-webkit-keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } @keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } .rotateOutDownLeft { -webkit-animation-name: rotateOutDownLeft; animation-name: rotateOutDownLeft; } @-webkit-keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutDownRight { -webkit-animation-name: rotateOutDownRight; animation-name: rotateOutDownRight; } @-webkit-keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutUpLeft { -webkit-animation-name: rotateOutUpLeft; animation-name: rotateOutUpLeft; } @-webkit-keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } @keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } .rotateOutUpRight { -webkit-animation-name: rotateOutUpRight; animation-name: rotateOutUpRight; } @-webkit-keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } @keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } .hinge { -webkit-animation-duration: 2s; animation-duration: 2s; -webkit-animation-name: hinge; animation-name: hinge; } @-webkit-keyframes jackInTheBox { from { opacity: 0; -webkit-transform: scale(0.1) rotate(30deg); transform: scale(0.1) rotate(30deg); -webkit-transform-origin: center bottom; transform-origin: center bottom; } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 70% { -webkit-transform: rotate(3deg); transform: rotate(3deg); } to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } } @keyframes jackInTheBox { from { opacity: 0; -webkit-transform: scale(0.1) rotate(30deg); transform: scale(0.1) rotate(30deg); -webkit-transform-origin: center bottom; transform-origin: center bottom; } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 70% { -webkit-transform: rotate(3deg); transform: rotate(3deg); } to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } } .jackInTheBox { -webkit-animation-name: jackInTheBox; animation-name: jackInTheBox; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .rollIn { -webkit-animation-name: rollIn; animation-name: rollIn; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } @keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } .rollOut { -webkit-animation-name: rollOut; animation-name: rollOut; } @-webkit-keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } @keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } .zoomIn { -webkit-animation-name: zoomIn; animation-name: zoomIn; } @-webkit-keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInDown { -webkit-animation-name: zoomInDown; animation-name: zoomInDown; } @-webkit-keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInLeft { -webkit-animation-name: zoomInLeft; animation-name: zoomInLeft; } @-webkit-keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInRight { -webkit-animation-name: zoomInRight; animation-name: zoomInRight; } @-webkit-keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInUp { -webkit-animation-name: zoomInUp; animation-name: zoomInUp; } @-webkit-keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } @keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .zoomOut { -webkit-animation-name: zoomOut; animation-name: zoomOut; } @-webkit-keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutDown { -webkit-animation-name: zoomOutDown; animation-name: zoomOutDown; } @-webkit-keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } @keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } .zoomOutLeft { -webkit-animation-name: zoomOutLeft; animation-name: zoomOutLeft; } @-webkit-keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } @keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } .zoomOutRight { -webkit-animation-name: zoomOutRight; animation-name: zoomOutRight; } @-webkit-keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutUp { -webkit-animation-name: zoomOutUp; animation-name: zoomOutUp; } @-webkit-keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInDown { -webkit-animation-name: slideInDown; animation-name: slideInDown; } @-webkit-keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInLeft { -webkit-animation-name: slideInLeft; animation-name: slideInLeft; } @-webkit-keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInRight { -webkit-animation-name: slideInRight; animation-name: slideInRight; } @-webkit-keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInUp { -webkit-animation-name: slideInUp; animation-name: slideInUp; } @-webkit-keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .slideOutDown { -webkit-animation-name: slideOutDown; animation-name: slideOutDown; } @-webkit-keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .slideOutLeft { -webkit-animation-name: slideOutLeft; animation-name: slideOutLeft; } @-webkit-keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .slideOutRight { -webkit-animation-name: slideOutRight; animation-name: slideOutRight; } @-webkit-keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .slideOutUp { -webkit-animation-name: slideOutUp; animation-name: slideOutUp; } .animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .animated.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } .animated.delay-1s { -webkit-animation-delay: 1s; animation-delay: 1s; } .animated.delay-2s { -webkit-animation-delay: 2s; animation-delay: 2s; } .animated.delay-3s { -webkit-animation-delay: 3s; animation-delay: 3s; } .animated.delay-4s { -webkit-animation-delay: 4s; animation-delay: 4s; } .animated.delay-5s { -webkit-animation-delay: 5s; animation-delay: 5s; } .animated.fast { -webkit-animation-duration: 800ms; animation-duration: 800ms; } .animated.faster { -webkit-animation-duration: 500ms; animation-duration: 500ms; } .animated.slow { -webkit-animation-duration: 2s; animation-duration: 2s; } .animated.slower { -webkit-animation-duration: 3s; animation-duration: 3s; } @media (print), (prefers-reduced-motion: reduce) { .animated { -webkit-animation-duration: 1ms !important; animation-duration: 1ms !important; -webkit-transition-duration: 1ms !important; transition-duration: 1ms !important; -webkit-animation-iteration-count: 1 !important; animation-iteration-count: 1 !important; } } ================================================ FILE: public/backend/vendors/css/charts/apexcharts.css ================================================ .apexcharts-canvas { position: relative; user-select: none; /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */ } /* scrollbar is not visible by default for legend, hence forcing the visibility */ .apexcharts-canvas ::-webkit-scrollbar { -webkit-appearance: none; width: 6px; } .apexcharts-canvas ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0,0,0,.5); box-shadow: 0 0 1px rgba(255,255,255,.5); -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); } .apexcharts-canvas.dark { background: #343F57; } .apexcharts-inner { position: relative; } .legend-mouseover-inactive { transition: 0.15s ease all; opacity: 0.20; } .apexcharts-series-collapsed { opacity: 0; } .apexcharts-gridline, .apexcharts-text { pointer-events: none; } .apexcharts-tooltip { border-radius: 5px; box-shadow: 2px 2px 6px -4px #999; cursor: default; font-size: 14px; left: 62px; opacity: 0; pointer-events: none; position: absolute; top: 20px; overflow: hidden; white-space: nowrap; z-index: 12; transition: 0.15s ease all; } .apexcharts-tooltip.light { border: 1px solid #e3e3e3; background: rgba(255, 255, 255, 0.96); } .apexcharts-tooltip.dark { color: #fff; background: rgba(30,30,30, 0.8); } .apexcharts-tooltip * { font-family: inherit; } .apexcharts-tooltip .apexcharts-marker, .apexcharts-area-series .apexcharts-area, .apexcharts-line { pointer-events: none; } .apexcharts-tooltip.active { opacity: 1; transition: 0.15s ease all; } .apexcharts-tooltip-title { padding: 6px; font-size: 15px; margin-bottom: 4px; } .apexcharts-tooltip.light .apexcharts-tooltip-title { background: #ECEFF1; border-bottom: 1px solid #ddd; } .apexcharts-tooltip.dark .apexcharts-tooltip-title { background: rgba(0, 0, 0, 0.7); border-bottom: 1px solid #333; } .apexcharts-tooltip-text-value, .apexcharts-tooltip-text-z-value { display: inline-block; font-weight: 600; margin-left: 5px; } .apexcharts-tooltip-text-z-label:empty, .apexcharts-tooltip-text-z-value:empty { display: none; } .apexcharts-tooltip-text-value, .apexcharts-tooltip-text-z-value { font-weight: 600; } .apexcharts-tooltip-marker { width: 12px; height: 12px; position: relative; top: 0px; margin-right: 10px; border-radius: 50%; } .apexcharts-tooltip-series-group { padding: 0 10px; display: none; text-align: left; justify-content: left; align-items: center; } .apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker { opacity: 1; } .apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child { padding-bottom: 4px; } .apexcharts-tooltip-series-group-hidden { opacity: 0; height: 0; line-height: 0; padding: 0 !important; } .apexcharts-tooltip-y-group { padding: 6px 0 5px; } .apexcharts-tooltip-candlestick { padding: 4px 8px; } .apexcharts-tooltip-candlestick > div { margin: 4px 0; } .apexcharts-tooltip-candlestick span.value { font-weight: bold; } .apexcharts-tooltip-rangebar { padding: 5px 8px; } .apexcharts-tooltip-rangebar .category { font-weight: 600; color: #777; } .apexcharts-tooltip-rangebar .series-name { font-weight: bold; display: block; margin-bottom: 5px; } .apexcharts-xaxistooltip { opacity: 0; padding: 9px 10px; pointer-events: none; color: #373d3f; font-size: 13px; text-align: center; border-radius: 2px; position: absolute; z-index: 10; background: #ECEFF1; border: 1px solid #90A4AE; transition: 0.15s ease all; } .apexcharts-xaxistooltip.dark { background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(0, 0, 0, 0.5); color: #fff; } .apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before { left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .apexcharts-xaxistooltip:after { border-color: rgba(236, 239, 241, 0); border-width: 6px; margin-left: -6px; } .apexcharts-xaxistooltip:before { border-color: rgba(144, 164, 174, 0); border-width: 7px; margin-left: -7px; } .apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before { bottom: 100%; } .apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before { top: 100%; } .apexcharts-xaxistooltip-bottom:after { border-bottom-color: #ECEFF1; } .apexcharts-xaxistooltip-bottom:before { border-bottom-color: #90A4AE; } .apexcharts-xaxistooltip-bottom.dark:after { border-bottom-color: rgba(0, 0, 0, 0.5); } .apexcharts-xaxistooltip-bottom.dark:before { border-bottom-color: rgba(0, 0, 0, 0.5); } .apexcharts-xaxistooltip-top:after { border-top-color:#ECEFF1 } .apexcharts-xaxistooltip-top:before { border-top-color: #90A4AE; } .apexcharts-xaxistooltip-top.dark:after { border-top-color:rgba(0, 0, 0, 0.5); } .apexcharts-xaxistooltip-top.dark:before { border-top-color: rgba(0, 0, 0, 0.5); } .apexcharts-xaxistooltip.active { opacity: 1; transition: 0.15s ease all; } .apexcharts-yaxistooltip { opacity: 0; padding: 4px 10px; pointer-events: none; color: #373d3f; font-size: 13px; text-align: center; border-radius: 2px; position: absolute; z-index: 10; background: #ECEFF1; border: 1px solid #90A4AE; } .apexcharts-yaxistooltip.dark { background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(0, 0, 0, 0.5); color: #fff; } .apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before { top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .apexcharts-yaxistooltip:after { border-color: rgba(236, 239, 241, 0); border-width: 6px; margin-top: -6px; } .apexcharts-yaxistooltip:before { border-color: rgba(144, 164, 174, 0); border-width: 7px; margin-top: -7px; } .apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before { left: 100%; } .apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before { right: 100%; } .apexcharts-yaxistooltip-left:after { border-left-color: #ECEFF1; } .apexcharts-yaxistooltip-left:before { border-left-color: #90A4AE; } .apexcharts-yaxistooltip-left.dark:after { border-left-color: rgba(0, 0, 0, 0.5); } .apexcharts-yaxistooltip-left.dark:before { border-left-color: rgba(0, 0, 0, 0.5); } .apexcharts-yaxistooltip-right:after { border-right-color: #ECEFF1; } .apexcharts-yaxistooltip-right:before { border-right-color: #90A4AE; } .apexcharts-yaxistooltip-right.dark:after { border-right-color: rgba(0, 0, 0, 0.5); } .apexcharts-yaxistooltip-right.dark:before { border-right-color: rgba(0, 0, 0, 0.5); } .apexcharts-yaxistooltip.active { opacity: 1; } .apexcharts-yaxistooltip-hidden { display: none; } .apexcharts-xcrosshairs, .apexcharts-ycrosshairs { pointer-events: none; opacity: 0; transition: 0.15s ease all; } .apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active { opacity: 1; transition: 0.15s ease all; } .apexcharts-ycrosshairs-hidden { opacity: 0; } .apexcharts-zoom-rect { pointer-events: none; } .apexcharts-selection-rect { cursor: move; } .svg_select_points, .svg_select_points_rot { opacity: 0; visibility: hidden; } .svg_select_points_l, .svg_select_points_r { cursor: ew-resize; opacity: 1; visibility: visible; fill: #888; } .apexcharts-canvas.zoomable .hovering-zoom { cursor: crosshair } .apexcharts-canvas.zoomable .hovering-pan { cursor: move } .apexcharts-xaxis, .apexcharts-yaxis { pointer-events: none; } .apexcharts-zoom-icon, .apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon, .apexcharts-reset-zoom-icon, .apexcharts-pan-icon, .apexcharts-selection-icon, .apexcharts-menu-icon, .apexcharts-toolbar-custom-icon { cursor: pointer; width: 20px; height: 20px; line-height: 24px; color: #6E8192; text-align: center; } .apexcharts-zoom-icon svg, .apexcharts-zoom-in-icon svg, .apexcharts-zoom-out-icon svg, .apexcharts-reset-zoom-icon svg, .apexcharts-menu-icon svg { fill: #6E8192; } .apexcharts-selection-icon svg { fill: #444; transform: scale(0.76) } .dark .apexcharts-zoom-icon svg, .dark .apexcharts-zoom-in-icon svg, .dark .apexcharts-zoom-out-icon svg, .dark .apexcharts-reset-zoom-icon svg, .dark .apexcharts-pan-icon svg, .dark .apexcharts-selection-icon svg, .dark .apexcharts-menu-icon svg, .dark .apexcharts-toolbar-custom-icon svg{ fill: #f3f4f5; } .apexcharts-canvas .apexcharts-zoom-icon.selected svg, .apexcharts-canvas .apexcharts-selection-icon.selected svg, .apexcharts-canvas .apexcharts-reset-zoom-icon.selected svg { fill: #008FFB; } .light .apexcharts-selection-icon:not(.selected):hover svg, .light .apexcharts-zoom-icon:not(.selected):hover svg, .light .apexcharts-zoom-in-icon:hover svg, .light .apexcharts-zoom-out-icon:hover svg, .light .apexcharts-reset-zoom-icon:hover svg, .light .apexcharts-menu-icon:hover svg { fill: #333; } .apexcharts-selection-icon, .apexcharts-menu-icon { position: relative; } .apexcharts-reset-zoom-icon { margin-left: 5px; } .apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon { transform: scale(0.85); } .apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon { transform: scale(0.7) } .apexcharts-zoom-out-icon { margin-right: 3px; } .apexcharts-pan-icon { transform: scale(0.62); position: relative; left: 1px; top: 0px; } .apexcharts-pan-icon svg { fill: #fff; stroke: #6E8192; stroke-width: 2; } .apexcharts-pan-icon.selected svg { stroke: #008FFB; } .apexcharts-pan-icon:not(.selected):hover svg { stroke: #333; } .apexcharts-toolbar { position: absolute; z-index: 11; top: 0px; right: 3px; max-width: 176px; text-align: right; border-radius: 3px; padding: 0px 6px 2px 6px; display: flex; justify-content: space-between; align-items: center; } .apexcharts-toolbar svg { pointer-events: none; } .apexcharts-menu { background: #fff; position: absolute; top: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 3px; right: 10px; opacity: 0; min-width: 110px; transition: 0.15s ease all; pointer-events: none; } .apexcharts-menu.open { opacity: 1; pointer-events: all; transition: 0.15s ease all; } .apexcharts-menu-item { padding: 6px 7px; font-size: 12px; cursor: pointer; } .light .apexcharts-menu-item:hover { background: #eee; } .dark .apexcharts-menu { background: rgba(0, 0, 0, 0.7); color: #fff; } @media screen and (min-width: 768px) { .apexcharts-toolbar { /*opacity: 0;*/ } .apexcharts-canvas:hover .apexcharts-toolbar { opacity: 1; } } .apexcharts-datalabel.hidden { opacity: 0; } .apexcharts-pie-label, .apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value { cursor: default; pointer-events: none; } .apexcharts-pie-label-delay { opacity: 0; animation-name: opaque; animation-duration: 0.3s; animation-fill-mode: forwards; animation-timing-function: ease; } .apexcharts-canvas .hidden { opacity: 0; } .apexcharts-hide .apexcharts-series-points { opacity: 0; } .apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon { pointer-events: none; } /* markers */ .apexcharts-marker { transition: 0.15s ease all; } @keyframes opaque { 0% { opacity: 0; } 100% { opacity: 1; } } ================================================ FILE: public/backend/vendors/css/documentation.css ================================================ /*================================================================================================ File Name: documentation.scss Description: This is only documentation related css file, this is theme related css. ---------------------------------------------------------------------------------------------- Item Name: Vusax - Vuejs, HTML & Laravel Admin Dashboard Template Version: 1.0 Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ================================================================================================*/ body { position: relative; } /* Right Sidebar */ .affix { position: fixed; margin: 0 1.5rem 0 0; width: 240px; } /* navbar buttons */ .btn-doc-header{ margin-right: 1rem; } ul#page-navigation-list{ display: block !important; } ul#page-navigation-list li ul.nav{ display:none; } ul#page-navigation-list li ul.nav{ display:none; } ul#page-navigation-list li a.active + ul.nav{ display:block; } ul#page-navigation-list li a.nav-link{ padding:0; padding-left:10px; line-height: 1.8; color: #626262; } ul#page-navigation-list li a{ border-left:2px solid #fff; } ul#page-navigation-list li a.active{ border-left:2px solid black; } ul#page-navigation-list li ul li a{ border-left:1px solid #fff; padding-left:30px; font-size: 85%; } ul#page-navigation-list li ul li a.active{ border-left:1px solid black; } .token.footer, .token.content{ margin:0 !important; } .sidebar-right .component-sidebar .card-content{ position: relative; height: calc(100vh - 230px); overflow-y: auto; } ================================================ FILE: public/backend/vendors/css/extensions/dataTables.checkboxes.css ================================================ table.dataTable.dt-checkboxes-select tbody tr, table.dataTable thead th.dt-checkboxes-select-all, table.dataTable tbody td.dt-checkboxes-cell { cursor: pointer; } table.dataTable thead th.dt-checkboxes-select-all, table.dataTable tbody td.dt-checkboxes-cell { text-align: center; } div.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item { margin-left: 0.5em; } @media screen and (max-width: 640px) { div.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item { margin-left: 0; display: block; } } ================================================ FILE: public/backend/vendors/css/extensions/pace.css ================================================ .pace { -webkit-pointer-events: none; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .pace-inactive { display: none; } .pace .pace-progress { background: #ff6275; position: fixed; z-index: 2000; top: 0; right: 100%; width: 100%; height: 3px; } ================================================ FILE: public/backend/vendors/css/extensions/plyr.css ================================================ @keyframes plyr-progress{to{background-position:25px 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:subpixel-antialiased;direction:ltr;font-family:Avenir,"Avenir Next","Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;font-variant-numeric:tabular-nums;font-weight:500;line-height:1.7;max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease}.plyr audio,.plyr video{border-radius:inherit;height:auto;vertical-align:middle;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui ::after,.plyr--full-ui ::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4f5b5f;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;color:#fff;display:none;font-size:14px;left:0;padding:10px;position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions .plyr__caption{background:rgba(0,0,0,.8);border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__captions .plyr__caption div{display:inline}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:16px;padding:20px}}@media (min-width:768px){.plyr__captions{font-size:18px}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px)}.plyr__control{background:0 0;border:0;border-radius:3px;color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease}.plyr__control svg{display:block;fill:currentColor;height:18px;pointer-events:none;width:18px}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{box-shadow:0 0 0 5px rgba(26,175,255,.5);outline:0}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed{display:none}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#1aafff;color:#fff}.plyr--video .plyr__control svg{filter:drop-shadow(0 1px 1px rgba(0, 0, 0, .15))}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#1aafff;color:#fff}.plyr__control--overlaid{background:rgba(26,175,255,.8);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15);color:#fff;display:none;left:50%;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{background:#1aafff}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1}.plyr__controls .plyr__controls__item{margin-left:2.5px}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr__controls .plyr__controls__item.plyr__volume{padding-right:5px}.plyr__controls .plyr__controls__item.plyr__volume:first-child{padding-right:0}.plyr__controls:empty{display:none}.plyr--audio .plyr__controls{background:#fff;border-radius:inherit;color:#4f5b5f;padding:10px}.plyr--video .plyr__controls{background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.7));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;left:0;padding:20px 5px 5px;position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:35px 10px 10px}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip]{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:rgba(255,255,255,.9);border-radius:4px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);color:#4f5b5f;font-size:16px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container::after{border:4px solid transparent;border-top-color:rgba(255,255,255,.9);content:'';height:0;position:absolute;right:15px;top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4f5b5f;display:flex;font-size:14px;padding:4px 11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:4px solid transparent;content:'';position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px}.plyr__menu__container .plyr__control--forward::after{border-left-color:rgba(79,91,95,.8);right:5px}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:500;margin:7px;margin-bottom:3px;padding-left:28px;position:relative;width:calc(100% - 14px)}.plyr__menu__container .plyr__control--back::after{border-right-color:rgba(79,91,95,.8);left:7px}.plyr__menu__container .plyr__control--back::before{background:#b7c5cd;box-shadow:0 1px 0 #fff;content:'';height:1px;left:0;margin-top:4px;overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px}.plyr__menu__container .plyr__control[role=menuitemradio]::after,.plyr__menu__container .plyr__control[role=menuitemradio]::before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0,0,0,.1);content:'';display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:#1aafff}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(0,0,0,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-5px;overflow:hidden;padding-left:25px;pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:0 0;border:0;border-radius:26px;color:#1aafff;display:block;height:19px;margin:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none;background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2);height:13px;position:relative;transition:all .2s ease;width:13px;-webkit-appearance:none;margin-top:-4px}.plyr--full-ui input[type=range]::-moz-range-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-moz-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2);height:13px;position:relative;transition:all .2s ease;width:13px}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.plyr--full-ui input[type=range]::-ms-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2);height:13px;position:relative;transition:all .2s ease;width:13px;margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{box-shadow:0 0 0 5px rgba(26,175,255,.5);outline:0}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{box-shadow:0 0 0 5px rgba(26,175,255,.5);outline:0}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{box-shadow:0 0 0 5px rgba(26,175,255,.5);outline:0}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(183,197,205,.66)}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(183,197,205,.66)}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(183,197,205,.66)}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(47,52,61,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr__poster{background-color:#000;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:14px}.plyr__time+.plyr__time::before{content:'\2044';margin-right:10px}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr--video .plyr__time{text-shadow:0 1px 1px rgba(0,0,0,.15)}.plyr__tooltip{background:rgba(255,255,255,.9);border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);color:#4f5b5f;font-size:14px;font-weight:500;left:50%;line-height:1.3;margin-bottom:10px;opacity:0;padding:5px 7.5px;pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(255,255,255,.9);bottom:-4px;content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%,0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0,10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:16px}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0,10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:16px;transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0,0) scale(1)}.plyr--video{background:#000;overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;border-radius:inherit;overflow:hidden;position:relative;z-index:0}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr__progress{left:6.5px;margin-right:13px;position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-6.5px;margin-right:-6.5px;width:calc(100% + 13px)}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:14px;left:0}.plyr__progress__buffer{-webkit-appearance:none;background:0 0;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:0 0}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width .2s ease}.plyr--video .plyr__progress__buffer{box-shadow:0 1px 1px rgba(0,0,0,.15);color:rgba(255,255,255,.25)}.plyr--audio .plyr__progress__buffer{color:rgba(183,197,205,.66)}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(47,52,61,.6) 25%,transparent 25%,transparent 50%,rgba(47,52,61,.6) 50%,rgba(47,52,61,.6) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(183,197,205,.66)}.plyr__volume{align-items:center;display:flex;flex:1;position:relative}.plyr__volume input[type=range]{margin-left:5px;position:relative;z-index:2}@media (min-width:480px){.plyr__volume{max-width:90px}}@media (min-width:768px){.plyr__volume{max-width:110px}}.plyr--is-ios .plyr__volume{display:none!important}.plyr--is-ios.plyr--vimeo [data-plyr=mute]{display:none!important}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:fullscreen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;width:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;width:100%}.plyr:fullscreen .plyr__video-wrapper{height:100%;width:100%}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px}.plyr:-ms-fullscreen .plyr__captions{font-size:21px}.plyr:fullscreen .plyr__captions{font-size:21px}}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;width:100%}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px}}.plyr:-moz-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;width:100%}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-moz-full-screen .plyr__captions{font-size:21px}}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;width:100%}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:21px}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;margin:0;width:100%;bottom:0;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;width:100%}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;top:50%;transform:translateY(-50%)}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:rgba(47,52,61,.8);border-radius:2px;bottom:10px;color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:5px;left:0;margin:-2.5px 0 0;opacity:.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:rgba(255,255,255,.9);border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);margin-bottom:10px;opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translate(0,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0,0) scale(1)}.plyr__preview-thumb::before{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(255,255,255,.9);bottom:-4px;content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#b7c5cd;border-radius:2px;overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0,0,0,.55);border-radius:2px;color:#fff;font-size:14px;padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;-o-object-fit:contain;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);overflow:hidden;border:0!important;height:1px!important;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important} ================================================ FILE: public/backend/vendors/css/extensions/shepherd-theme-default.css ================================================ @charset "UTF-8";#shepherdModalOverlayContainer{-ms-filter:"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";filter:alpha(opacity=50);height:100vh;left:0;opacity:.5;position:fixed;top:0;transition:all .3s ease-out;width:100vw;z-index:9997}#shepherdModalOverlayContainer #shepherdModalMask,#shepherdModalOverlayContainer #shepherdModalMaskRect{height:100vh;width:100vw}.shepherd-modal.shepherd-enabled{position:relative;z-index:9998}.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target){pointer-events:none}.shepherd-active.shepherd-modal-is-visible .shepherd-button,.shepherd-active.shepherd-modal-is-visible .shepherd-button *,.shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link,.shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *,.shepherd-active.shepherd-modal-is-visible .shepherd-element,.shepherd-active.shepherd-modal-is-visible .shepherd-element *,.shepherd-active.shepherd-modal-is-visible .shepherd-target,.shepherd-active.shepherd-modal-is-visible .shepherd-target *{pointer-events:auto}.tippy-arrow{transform:scale(2)}.tippy-popper{z-index:9999}.tippy-popper .tippy-arrow{border:16px solid transparent;content:"";display:block;height:0;pointer-events:none;position:absolute;width:0}.tippy-popper[x-placement^=top]{margin-bottom:16px}.tippy-popper[x-placement^=top] .tippy-arrow{border-bottom:0;border-top-color:#f6f6f6;left:calc(50% - 16px)}.tippy-popper[x-placement^=bottom]{margin-top:16px}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom-color:#e6e6e6;border-top:0;left:calc(50% - 16px)}.tippy-popper[x-placement^=left]{margin-right:16px}.tippy-popper[x-placement^=left] .tippy-arrow{border-left-color:#f6f6f6;border-right:0;margin-top:-16px;top:calc(50% - 16px)}.tippy-popper[x-placement^=right]{margin-left:16px}.tippy-popper[x-placement^=right] .tippy-arrow{border-left:0;border-right-color:#f6f6f6;top:calc(50% - 16px)}.tippy-popper .tippy-tooltip{background-color:transparent;max-height:100%;max-width:100%;padding:0;width:400px}.shepherd-element,.shepherd-element *,.shepherd-element:after,.shepherd-element :after,.shepherd-element:before,.shepherd-element :before{box-sizing:border-box}.shepherd-element{filter:drop-shadow(0 1px 4px rgba(0,0,0,.2))}.shepherd-element.shepherd-has-title .shepherd-content header{background:#e6e6e6;padding:1em}.shepherd-element .shepherd-content{background:#f6f6f6;font-size:inherit;padding:0}.shepherd-element .shepherd-content header{*zoom:1;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex;justify-content:center;line-height:2em;padding:.75em .75em 0}.shepherd-element .shepherd-content header:after{clear:both;content:"";display:table}.shepherd-element .shepherd-content header .shepherd-cancel-link,.shepherd-element .shepherd-content header .shepherd-title{font-weight:400;margin:0;padding:0;position:relative;vertical-align:middle}.shepherd-element .shepherd-content header .shepherd-title{color:rgba(0,0,0,.75);display:flex;flex:1 0 auto;font-size:1.1em}.shepherd-element .shepherd-content header .shepherd-cancel-link{color:hsla(0,0%,70.2%,.75);font-size:2em;margin-left:auto;text-decoration:none;transition:color .5s ease}.shepherd-element .shepherd-content header .shepherd-cancel-link:before{content:"×"}.shepherd-element .shepherd-content header .shepherd-cancel-link:hover{color:rgba(0,0,0,.75)}.shepherd-element .shepherd-content .shepherd-text{color:rgba(0,0,0,.75);line-height:1.3em;padding:.75em}.shepherd-element .shepherd-content .shepherd-text a,.shepherd-element .shepherd-content .shepherd-text a:active,.shepherd-element .shepherd-content .shepherd-text a:visited{border-bottom:1px dotted rgba(0,0,0,.75);color:rgba(0,0,0,.75);text-decoration:none}.shepherd-element .shepherd-content .shepherd-text a:active:hover,.shepherd-element .shepherd-content .shepherd-text a:hover,.shepherd-element .shepherd-content .shepherd-text a:visited:hover{border-bottom-style:solid}.shepherd-element .shepherd-content .shepherd-text p{margin-top:0}.shepherd-element .shepherd-content .shepherd-text p:last-child{margin-bottom:0}.shepherd-element .shepherd-content footer{border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:0 .75em .75em}.shepherd-element .shepherd-content footer .shepherd-buttons{list-style:none;margin:0;padding:0;text-align:right}.shepherd-element .shepherd-content footer .shepherd-buttons li{display:inline;margin:0 .5em 0 0}.shepherd-element .shepherd-content footer .shepherd-buttons li:last-child{margin-right:0}.shepherd-element .shepherd-content footer .shepherd-buttons li .shepherd-button{display:inline-block;*display:inline;vertical-align:middle;*vertical-align:auto;*zoom:1;background:#3288e6;border:0;border-radius:3px;color:hsla(0,0%,100%,.75);cursor:pointer;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;padding:.75em 2em;text-transform:uppercase;transition:all .5s ease}.shepherd-element .shepherd-content footer .shepherd-buttons li .shepherd-button:hover{background:#196fcc}.shepherd-element .shepherd-content footer .shepherd-buttons li .shepherd-button.shepherd-button-secondary{background:#f1f2f3;color:rgba(0,0,0,.75)}.shepherd-element .shepherd-content footer .shepherd-buttons li .shepherd-button.shepherd-button-secondary:hover{background:#d5d8dc;color:rgba(0,0,0,.75)} ================================================ FILE: public/backend/vendors/css/extensions/tether-theme-arrows.css ================================================ .tether-element, .tether-element:after, .tether-element:before, .tether-element *, .tether-element *:after, .tether-element *:before { box-sizing: border-box; } .tether-element { position: absolute; display: none; } .tether-element.tether-open { display: block; } .tether-element.tether-theme-arrows { max-width: 100%; max-height: 100%; } .tether-element.tether-theme-arrows .tether-content { border-radius: 5px; position: relative; font-family: inherit; background: #fff; color: inherit; padding: 1em; font-size: 1.1em; line-height: 1.5em; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2)); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2)); } .tether-element.tether-theme-arrows .tether-content:before { content: ""; display: block; position: absolute; width: 0; height: 0; border-color: transparent; border-width: 16px; border-style: solid; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-center .tether-content { margin-bottom: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-center .tether-content:before { top: 100%; left: 50%; margin-left: -16px; border-top-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-center .tether-content { margin-top: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-center .tether-content:before { bottom: 100%; left: 50%; margin-left: -16px; border-bottom-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-right.tether-element-attached-middle .tether-content { margin-right: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-right.tether-element-attached-middle .tether-content:before { left: 100%; top: 50%; margin-top: -16px; border-left-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-left.tether-element-attached-middle .tether-content { margin-left: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-left.tether-element-attached-middle .tether-content:before { right: 100%; top: 50%; margin-top: -16px; border-right-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-left.tether-target-attached-center .tether-content { left: -32px; } .tether-element.tether-theme-arrows.tether-element-attached-right.tether-target-attached-center .tether-content { left: 32px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-middle .tether-content { margin-top: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-middle .tether-content:before { bottom: 100%; left: 16px; border-bottom-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-middle .tether-content { margin-top: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-middle .tether-content:before { bottom: 100%; right: 16px; border-bottom-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-middle .tether-content { margin-bottom: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-middle .tether-content:before { top: 100%; left: 16px; border-top-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-middle .tether-content { margin-bottom: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-middle .tether-content:before { top: 100%; right: 16px; border-top-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-bottom .tether-content { margin-top: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-bottom .tether-content:before { bottom: 100%; left: 16px; border-bottom-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-bottom .tether-content { margin-top: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-bottom .tether-content:before { bottom: 100%; right: 16px; border-bottom-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-top .tether-content { margin-bottom: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-top .tether-content:before { top: 100%; left: 16px; border-top-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-top .tether-content { margin-bottom: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-top .tether-content:before { top: 100%; right: 16px; border-top-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-left .tether-content { margin-right: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-right.tether-target-attached-left .tether-content:before { top: 16px; left: 100%; border-left-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-right .tether-content { margin-left: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-top.tether-element-attached-left.tether-target-attached-right .tether-content:before { top: 16px; right: 100%; border-right-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-left .tether-content { margin-right: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-right.tether-target-attached-left .tether-content:before { bottom: 16px; left: 100%; border-left-color: #fff; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-right .tether-content { margin-left: 16px; } .tether-element.tether-theme-arrows.tether-element-attached-bottom.tether-element-attached-left.tether-target-attached-right .tether-content:before { bottom: 16px; right: 100%; border-right-color: #fff; } ================================================ FILE: public/backend/vendors/css/extensions/toastr.css ================================================ /* Version 2.1.4 */ .toast-title { font-weight: bold; } .toast-message { -ms-word-wrap: break-word; word-wrap: break-word; } .toast-message a, .toast-message label { color: #FFFFFF; } .toast-message a:hover { color: #CCCCCC; text-decoration: none; } .toast-close-button { position: relative; right: -0.3em; top: -0.3em; float: right; font-size: 20px; font-weight: bold; color: #FFFFFF; -webkit-text-shadow: 0 1px 0 #ffffff; text-shadow: 0 1px 0 #ffffff; opacity: 0.8; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); filter: alpha(opacity=80); line-height: 1; } .toast-close-button:hover, .toast-close-button:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.4; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); filter: alpha(opacity=40); } .rtl .toast-close-button { left: -0.3em; float: left; right: 0.3em; } /*Additional properties for button version iOS requires the button element instead of an anchor tag. If you want the anchor version, it requires `href="#"`.*/ button.toast-close-button { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .toast-top-center { top: 0; right: 0; width: 100%; } .toast-bottom-center { bottom: 0; right: 0; width: 100%; } .toast-top-full-width { top: 0; right: 0; width: 100%; } .toast-bottom-full-width { bottom: 0; right: 0; width: 100%; } .toast-top-left { top: 12px; left: 12px; } .toast-top-right { top: 12px; right: 12px; } .toast-bottom-right { right: 12px; bottom: 12px; } .toast-bottom-left { bottom: 12px; left: 12px; } .toast-container { position: fixed; z-index: 999999; pointer-events: none; /*overrides*/ } .toast-container * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .toast-container > div { position: relative; pointer-events: auto; overflow: hidden; margin: 0 0 6px; padding: 15px 15px 15px 50px; width: 300px; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; background-position: 15px center; background-repeat: no-repeat; -moz-box-shadow: 0 0 12px #999999; -webkit-box-shadow: 0 0 12px #999999; box-shadow: 0 0 12px #999999; color: #FFFFFF; opacity: 0.8; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); filter: alpha(opacity=80); } .toast-container > div.rtl { direction: rtl; padding: 15px 50px 15px 15px; background-position: right 15px center; } .toast-container > div:hover { -moz-box-shadow: 0 0 12px #000000; -webkit-box-shadow: 0 0 12px #000000; box-shadow: 0 0 12px #000000; opacity: 1; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); filter: alpha(opacity=100); cursor: pointer; } .toast-container > .toast-info { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important; } .toast-container > .toast-error { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important; } .toast-container > .toast-success { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important; } .toast-container > .toast-warning { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important; } .toast-container.toast-top-center > div, .toast-container.toast-bottom-center > div { width: 300px; margin-left: auto; margin-right: auto; } .toast-container.toast-top-full-width > div, .toast-container.toast-bottom-full-width > div { width: 96%; margin-left: auto; margin-right: auto; } .toast { background-color: #030303; } .toast-success { background-color: #51A351; } .toast-error { background-color: #BD362F; } .toast-info { background-color: #2F96B4; } .toast-warning { background-color: #F89406; } .toast-progress { position: absolute; left: 0; bottom: 0; height: 4px; background-color: #000000; opacity: 0.4; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); filter: alpha(opacity=40); } /*Responsive Design*/ @media all and (max-width: 240px) { .toast-container > div { padding: 8px 8px 8px 50px; width: 11em; } .toast-container > div.rtl { padding: 8px 50px 8px 8px; } .toast-container .toast-close-button { right: -0.2em; top: -0.2em; } .toast-container .rtl .toast-close-button { left: -0.2em; right: 0.2em; } } @media all and (min-width: 241px) and (max-width: 480px) { .toast-container > div { padding: 8px 8px 8px 50px; width: 18em; } .toast-container > div.rtl { padding: 8px 50px 8px 8px; } .toast-container .toast-close-button { right: -0.2em; top: -0.2em; } .toast-container .rtl .toast-close-button { left: -0.2em; right: 0.2em; } } @media all and (min-width: 481px) and (max-width: 768px) { .toast-container > div { padding: 15px 15px 15px 50px; width: 25em; } .toast-container > div.rtl { padding: 15px 50px 15px 15px; } } ================================================ FILE: public/backend/vendors/css/extensions/unslider.css ================================================ /** * Here's where everything gets included. You don't need * to change anything here, and doing so might break * stuff. Here be dragons and all that. */ /** * Default variables * * While these can be set with JavaScript, it's probably * better and faster to just set them here, compile to * CSS and include that instead to use some of that * hardware-accelerated goodness. */ .unslider { position: relative; text-align: center; overflow: auto; margin: 0; padding: 0; } .unslider-wrap { position: relative; } .unslider-wrap.unslider-carousel > li { float: left; } .unslider-vertical > ul { height: 100%; } .unslider-vertical li { float: none; width: 100%; } .unslider-fade { position: relative; } .unslider-fade .unslider-wrap li { position: absolute; left: 0; top: 0; right: 0; z-index: 8; } .unslider-fade .unslider-wrap li.unslider-active { z-index: 10; } .unslider ul, .unslider ol, .unslider li { list-style: none; /* Reset any weird spacing */ margin: 0; padding: 0; border: none; } .unslider-arrow { position: absolute; left: 20px; z-index: 10; cursor: pointer; } .unslider-arrow.next { left: auto; right: 20px; } .unslider-nav ol { list-style: none; text-align: center; } .unslider-nav ol li { display: inline-block; width: 6px; height: 6px; margin: 0 4px; background: transparent; border-radius: 5px; overflow: hidden; text-indent: -999em; border: 2px solid #1D2B36; cursor: pointer; } .unslider-nav ol li.unslider-active { background: #1D2B36; cursor: default; } .unslider-arrow { display: block; width: 32px; height: 32px; top: 50%; right: -50px; left: auto; margin-top: -16px; overflow: hidden; border-radius: 32px; background: rgba(0,0,0,.2); /*text-indent: -999em;*/ font-size: 0; opacity: .6; transition: opacity .2s; text-align: center; line-height: 32px; } .unslider-arrow.prev { left: 20px; right: auto; } .unslider-arrow.prev:before { font-family: 'icomoon'; font-size: 1.3rem; content: '\ea07'; color: #1D2B36; } .unslider-arrow.next:before { font-family: 'icomoon'; font-size: 1.3rem; content: '\ea09'; color: #1D2B36; } ================================================ FILE: public/backend/vendors/css/forms/select/select2.css ================================================ .select2-container { box-sizing: border-box; display: inline-block; margin: 0; position: relative; vertical-align: middle; } .select2-container .select2-selection--single { box-sizing: border-box; cursor: pointer; display: block; height: 28px; user-select: none; -webkit-user-select: none; } .select2-container .select2-selection--single .select2-selection__rendered { display: block; padding-left: 8px; padding-right: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .select2-container .select2-selection--single .select2-selection__clear { position: relative; } .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered { padding-right: 8px; padding-left: 20px; } .select2-container .select2-selection--multiple { box-sizing: border-box; cursor: pointer; display: block; min-height: 32px; user-select: none; -webkit-user-select: none; } .select2-container .select2-selection--multiple .select2-selection__rendered { display: inline-block; overflow: hidden; padding-left: 8px; text-overflow: ellipsis; white-space: nowrap; } .select2-container .select2-search--inline { float: left; } .select2-container .select2-search--inline .select2-search__field { box-sizing: border-box; border: none; font-size: 100%; margin-top: 5px; padding: 0; } .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button { -webkit-appearance: none; } .select2-dropdown { background-color: white; border: 1px solid #aaa; border-radius: 4px; box-sizing: border-box; display: block; position: absolute; left: -100000px; width: 100%; z-index: 1051; } .select2-results { display: block; } .select2-results__options { list-style: none; margin: 0; padding: 0; } .select2-results__option { padding: 6px; user-select: none; -webkit-user-select: none; } .select2-results__option[aria-selected] { cursor: pointer; } .select2-container--open .select2-dropdown { left: 0; } .select2-container--open .select2-dropdown--above { border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .select2-container--open .select2-dropdown--below { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; } .select2-search--dropdown { display: block; padding: 4px; } .select2-search--dropdown .select2-search__field { padding: 4px; width: 100%; box-sizing: border-box; } .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button { -webkit-appearance: none; } .select2-search--dropdown.select2-search--hide { display: none; } .select2-close-mask { border: 0; margin: 0; padding: 0; display: block; position: fixed; left: 0; top: 0; min-height: 100%; min-width: 100%; height: auto; width: auto; opacity: 0; z-index: 99; background-color: #fff; filter: alpha(opacity=0); } .select2-hidden-accessible { border: 0 !important; clip: rect(0 0 0 0) !important; -webkit-clip-path: inset(50%) !important; clip-path: inset(50%) !important; height: 1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; white-space: nowrap !important; } .select2-container--default .select2-selection--single { background-color: #fff; border: 1px solid #aaa; border-radius: 4px; } .select2-container--default .select2-selection--single .select2-selection__rendered { color: #444; line-height: 28px; } .select2-container--default .select2-selection--single .select2-selection__clear { cursor: pointer; float: right; font-weight: bold; } .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #999; } .select2-container--default .select2-selection--single .select2-selection__arrow { height: 26px; position: absolute; top: 1px; right: 1px; width: 20px; } .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #888 transparent transparent transparent; border-style: solid; border-width: 5px 4px 0 4px; height: 0; left: 50%; margin-left: -4px; margin-top: -2px; position: absolute; top: 50%; width: 0; } .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear { float: left; } .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow { left: 1px; right: auto; } .select2-container--default.select2-container--disabled .select2-selection--single { background-color: #eee; cursor: default; } .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear { display: none; } .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #888 transparent; border-width: 0 4px 5px 4px; } .select2-container--default .select2-selection--multiple { background-color: white; border: 1px solid #aaa; border-radius: 4px; cursor: text; } .select2-container--default .select2-selection--multiple .select2-selection__rendered { box-sizing: border-box; list-style: none; margin: 0; padding: 0 5px; width: 100%; } .select2-container--default .select2-selection--multiple .select2-selection__rendered li { list-style: none; } .select2-container--default .select2-selection--multiple .select2-selection__clear { cursor: pointer; float: right; font-weight: bold; margin-top: 5px; margin-right: 10px; padding: 1px; } .select2-container--default .select2-selection--multiple .select2-selection__choice { background-color: #e4e4e4; border: 1px solid #aaa; border-radius: 4px; cursor: default; float: left; margin-right: 5px; margin-top: 5px; padding: 0 5px; } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #999; cursor: pointer; display: inline-block; font-weight: bold; margin-right: 2px; } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: #333; } .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline { float: right; } .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice { margin-left: 5px; margin-right: auto; } .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove { margin-left: 2px; margin-right: auto; } .select2-container--default.select2-container--focus .select2-selection--multiple { border: solid black 1px; outline: 0; } .select2-container--default.select2-container--disabled .select2-selection--multiple { background-color: #eee; cursor: default; } .select2-container--default.select2-container--disabled .select2-selection__choice__remove { display: none; } .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple { border-top-left-radius: 0; border-top-right-radius: 0; } .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #aaa; } .select2-container--default .select2-search--inline .select2-search__field { background: transparent; border: none; outline: 0; box-shadow: none; -webkit-appearance: textfield; } .select2-container--default .select2-results > .select2-results__options { max-height: 200px; overflow-y: auto; } .select2-container--default .select2-results__option[role=group] { padding: 0; } .select2-container--default .select2-results__option[aria-disabled=true] { color: #999; } .select2-container--default .select2-results__option[aria-selected=true] { background-color: #ddd; } .select2-container--default .select2-results__option .select2-results__option { padding-left: 1em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__group { padding-left: 0; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option { margin-left: -1em; padding-left: 2em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -2em; padding-left: 3em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -3em; padding-left: 4em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -4em; padding-left: 5em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -5em; padding-left: 6em; } .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: #5897fb; color: white; } .select2-container--default .select2-results__group { cursor: default; display: block; padding: 6px; } .select2-container--classic .select2-selection--single { background-color: #f7f7f7; border: 1px solid #aaa; border-radius: 4px; outline: 0; background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%); background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%); background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); } .select2-container--classic .select2-selection--single:focus { border: 1px solid #5897fb; } .select2-container--classic .select2-selection--single .select2-selection__rendered { color: #444; line-height: 28px; } .select2-container--classic .select2-selection--single .select2-selection__clear { cursor: pointer; float: right; font-weight: bold; margin-right: 10px; } .select2-container--classic .select2-selection--single .select2-selection__placeholder { color: #999; } .select2-container--classic .select2-selection--single .select2-selection__arrow { background-color: #ddd; border: none; border-left: 1px solid #aaa; border-top-right-radius: 4px; border-bottom-right-radius: 4px; height: 26px; position: absolute; top: 1px; right: 1px; width: 20px; background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%); background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%); background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); } .select2-container--classic .select2-selection--single .select2-selection__arrow b { border-color: #888 transparent transparent transparent; border-style: solid; border-width: 5px 4px 0 4px; height: 0; left: 50%; margin-left: -4px; margin-top: -2px; position: absolute; top: 50%; width: 0; } .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear { float: left; } .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow { border: none; border-right: 1px solid #aaa; border-radius: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; left: 1px; right: auto; } .select2-container--classic.select2-container--open .select2-selection--single { border: 1px solid #5897fb; } .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow { background: transparent; border: none; } .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #888 transparent; border-width: 0 4px 5px 4px; } .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%); background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%); background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); } .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single { border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%); background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%); background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); } .select2-container--classic .select2-selection--multiple { background-color: white; border: 1px solid #aaa; border-radius: 4px; cursor: text; outline: 0; } .select2-container--classic .select2-selection--multiple:focus { border: 1px solid #5897fb; } .select2-container--classic .select2-selection--multiple .select2-selection__rendered { list-style: none; margin: 0; padding: 0 5px; } .select2-container--classic .select2-selection--multiple .select2-selection__clear { display: none; } .select2-container--classic .select2-selection--multiple .select2-selection__choice { background-color: #e4e4e4; border: 1px solid #aaa; border-radius: 4px; cursor: default; float: left; margin-right: 5px; margin-top: 5px; padding: 0 5px; } .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove { color: #888; cursor: pointer; display: inline-block; font-weight: bold; margin-right: 2px; } .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover { color: #555; } .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice { float: right; margin-left: 5px; margin-right: auto; } .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove { margin-left: 2px; margin-right: auto; } .select2-container--classic.select2-container--open .select2-selection--multiple { border: 1px solid #5897fb; } .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; } .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple { border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .select2-container--classic .select2-search--dropdown .select2-search__field { border: 1px solid #aaa; outline: 0; } .select2-container--classic .select2-search--inline .select2-search__field { outline: 0; box-shadow: none; } .select2-container--classic .select2-dropdown { background-color: white; border: 1px solid transparent; } .select2-container--classic .select2-dropdown--above { border-bottom: none; } .select2-container--classic .select2-dropdown--below { border-top: none; } .select2-container--classic .select2-results > .select2-results__options { max-height: 200px; overflow-y: auto; } .select2-container--classic .select2-results__option[role=group] { padding: 0; } .select2-container--classic .select2-results__option[aria-disabled=true] { color: grey; } .select2-container--classic .select2-results__option--highlighted[aria-selected] { background-color: #3875d7; color: white; } .select2-container--classic .select2-results__group { cursor: default; display: block; padding: 6px; } .select2-container--classic.select2-container--open .select2-dropdown { border-color: #5897fb; } ================================================ FILE: public/backend/vendors/css/forms/spinner/jquery.bootstrap-touchspin.css ================================================ /* * Bootstrap TouchSpin - v4.2.5 * A mobile and touch friendly input spinner component for Bootstrap 3 & 4. * http://www.virtuosoft.eu/code/bootstrap-touchspin/ * * Made by István Ujj-Mészáros * Under Apache License v2.0 License */ /* This CSS file is unnecessary if you are not using vertical buttons functionality */ .bootstrap-touchspin .input-group-btn-vertical { position: absolute; right: 0; height: 100%; z-index: 11; } .bootstrap-touchspin .input-group-btn-vertical > .btn { position: absolute; right: 0; height: 50%; padding: 0; width: 2em; text-align: center; line-height: 1; } .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up { border-radius: 0 4px 0 0; top: 0; } .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down { border-radius: 0 0 4px 0; bottom: 0; } ================================================ FILE: public/backend/vendors/css/forms/toggle/switchery.css ================================================ /* * * Main stylesheet for Switchery. * http://abpetkov.github.io/switchery/ * */ /* Switchery defaults. */ .switchery { background-color: #fff; border: 1px solid #dfdfdf; border-radius: 20px; cursor: pointer; display: inline-block; height: 30px; position: relative; vertical-align: middle; width: 50px; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; box-sizing: content-box; background-clip: content-box; } .switchery > small { background: #fff; border-radius: 100%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); height: 30px; position: absolute; top: 0; width: 30px; } /* Switchery sizes. */ .switchery-small { border-radius: 20px; height: 20px; width: 33px; } .switchery-small > small { height: 20px; width: 20px; } .switchery-large { border-radius: 40px; height: 40px; width: 66px; } .switchery-large > small { height: 40px; width: 40px; } ================================================ FILE: public/backend/vendors/css/modal/facebook.css ================================================ .sweet-overlay { border-radius: 3px; } .sweet-alert { font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; padding: 12px; padding-top: 53px; text-align: right; box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.11), 0px 6px 30px rgba(0, 0, 0, 0.14); } .sweet-alert h2 { position: absolute; top: 0; left: 0; right: 0; height: 41px; background-color: #f6f7f8; margin: 0; font-size: 15px; text-align: left; padding-left: 12px; color: #131722; border-bottom: 1px solid #e5e5e5; } .sweet-alert p { display: block; text-align: center; color: #131722; font-weight: 400; font-size: 15px; margin-top: 7px; } .sweet-alert .sa-button-container { border-top: 1px solid #dcdee3; } .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] { padding-bottom: 10px; } .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] .sa-button-container { display: none; } .sweet-alert button { font-size: 12px; padding: 5px 10px; border-radius: 2px; box-shadow: none !important; text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3); font-weight: 500; margin: 0; margin-top: 12px; } .sweet-alert button:focus, .sweet-alert button.cancel:focus { box-shadow: 0 0 1px 2px rgba(88, 144, 255, 0.75), 0 1px 1px rgba(0, 0, 0, 0.15) !important; } .sweet-alert button.confirm { border: 1px solid #3d5586; background-color: #47639c !important; margin-left: 4px; } .sweet-alert button.cancel { color: #4e5664; background-color: #fafbfb; text-shadow: 0px -1px 0px white; border: 1px solid #c5c6c8; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.04) !important; font-weight: 600; } .sweet-alert button.cancel:hover { background-color: #fafbfb; } .sweet-alert .sa-icon:not(.sa-custom) { transform: scale(0.7); margin-bottom: -10px; margin-top: -10px; } .sweet-alert input { border: 1px solid #bdc7d8; padding: 3px; border-radius: 0; box-shadow: none; font-size: 15px; height: 33px; margin: 10px 0; } .sweet-alert input:focus { box-shadow: 0 0 1px 2px rgba(88, 144, 255, 0.75), 0 1px 1px rgba(0, 0, 0, 0.15) !important; } .sweet-alert fieldset .sa-input-error { display: none; } .sweet-alert .sa-error-container { text-align: center; background-color: #fdebe8; margin: 0; border: none; } .sweet-alert .sa-error-container.show { margin: 14px; margin-top: 0; border: 1px solid #d5512d; } .sweet-alert .sa-error-container .icon { display: none; } .sweet-alert .sa-error-container p { color: #303b44; margin-top: 3px; } @-webkit-keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } @keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } ================================================ FILE: public/backend/vendors/css/modal/google.css ================================================ .sweet-overlay { background: rgba(10, 10, 10, 0.6); } .sweet-alert { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 24px; padding-top: 64px; padding-bottom: 13px; text-align: right; border-radius: 0; box-shadow: 0 0 14px rgba(0, 0, 0, 0.24), 0 14px 28px rgba(0, 0, 0, 0.48); } .sweet-alert h2 { position: absolute; top: 0; left: 0; right: 0; height: auto; font-weight: 400; color: #212121; margin: 20px 0; font-size: 1.2em; line-height: 1.25; text-align: left; padding: 0 24px; } .sweet-alert p { display: block; text-align: center; color: #212121; font-weight: 400; font-size: 14px; margin: 20px 0; } .sweet-alert button { border-radius: 2px; box-shadow: none !important; background: none !important; border-radius: 2px; text-transform: uppercase; font-size: 14px; font-weight: 600; padding: 8px 16px; position: relative; margin-top: 0; } .sweet-alert button:hover, .sweet-alert button:focus { background-color: #f6f6f6 !important; } .sweet-alert button.confirm { color: #3c80f6; } .sweet-alert button.cancel { color: #757575; } .sweet-alert button.cancel:focus { box-shadow: none !important; } .sweet-alert .sa-icon:not(.sa-custom) { transform: scale(0.8); margin-bottom: -10px; margin-top: -10px; } .sweet-alert input { border: none; border-radius: 0; border-bottom: 1px solid #c9c9c9; color: #212121; margin-bottom: 8px; padding: 1px; padding-bottom: 8px; height: auto; box-shadow: none; font-size: 13px; margin: 10px 0; } .sweet-alert input:focus { border: none; border-bottom: 1px solid #3c80f6; box-shadow: inset 0 -1px 0 #3c80f6; } .sweet-alert fieldset { padding: 0; } .sweet-alert fieldset .sa-input-error { display: none; } .sweet-alert .sa-error-container { display: none; background: none; height: auto; padding: 0 24px; margin: 0 -20px; text-align: left; } .sweet-alert .sa-error-container.show { padding: 0 24px; display: block; } .sweet-alert .sa-error-container.show ~ fieldset input { background: red; border-bottom: 1px solid #d9453c; box-shadow: inset 0 -1px 0 #d9453c; } .sweet-alert .sa-error-container .icon { display: none; } .sweet-alert .sa-error-container p { color: #d9453c; margin-top: 0; } @-webkit-keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } @keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } ================================================ FILE: public/backend/vendors/css/modal/twitter.css ================================================ .sweet-overlay { background: rgba(41, 47, 51, 0.9); } .sweet-alert { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 15px; padding-top: 55px; text-align: right; border-radius: 6px; box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.11), 0px 6px 30px rgba(0, 0, 0, 0.14); } .sweet-alert h2 { position: absolute; top: 0; left: 0; right: 0; height: 40px; line-height: 40px; font-size: 16px; font-weight: 400; color: #8899a6; margin: 0; color: #66757f; border-bottom: 1px solid #e1e8ed; } .sweet-alert p { display: block; text-align: center; color: #66757f; font-weight: 400; font-size: 13px; margin-top: 7px; } .sweet-alert .sa-button-container { background-color: #f5f8fa; border-top: 1px solid #e1e8ed; box-shadow: 0px -1px 0px white; margin: -15px; margin-top: 0; } .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] { padding-bottom: 10px; } .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] .sa-button-container { display: none; } .sweet-alert button { border-radius: 2px; box-shadow: none !important; text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3); margin: 17px 0px; border-radius: 4px; font-size: 14px; font-weight: 600; padding: 8px 16px; position: relative; } .sweet-alert button:focus, .sweet-alert button.cancel:focus { box-shadow: none !important; } .sweet-alert button:focus::before, .sweet-alert button.cancel:focus::before { content: ""; position: absolute; left: -5px; top: -5px; right: -5px; bottom: -5px; border: 2px solid #a5b0b4; border-radius: 8px; } .sweet-alert button.confirm { background-color: #55acee !important; background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05)); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#0C000000)"; border: 1px solid #3b88c3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); margin-right: 15px; } .sweet-alert button.confirm:hover { background-color: #55acee; background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.15)); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#26000000)"; border-color: #3b88c3; } .sweet-alert button.cancel { color: #66757e; background-color: #f5f8fa; background-image: linear-gradient(#fff, #f5f8fa); text-shadow: 0px -1px 0px white; margin-right: 9px; border: 1px solid #e1e8ed; } .sweet-alert button.cancel:hover, .sweet-alert button.cancel:focus:hover { background-color: #e1e8ed; background-image: linear-gradient(#fff, #e1e8ed); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)"; border-color: #e1e8ed; } .sweet-alert button.cancel:focus { background: #fff; border-color: #fff; } .sweet-alert .sa-icon:not(.sa-custom) { transform: scale(0.72); margin-bottom: -2px; margin-top: -10px; } .sweet-alert input { border: 1px solid #e1e8ed; border-radius: 3px; padding: 10px 7px; height: auto; box-shadow: none; font-size: 13px; margin: 10px 0; } .sweet-alert input:focus { border-color: #94A1A6; box-shadow: inset 0 0 0 1px rgba(77, 99, 107, 0.7); } .sweet-alert fieldset .sa-input-error { display: none; } .sweet-alert .sa-error-container { text-align: center; border: none; background-color: #fbedc0; margin-bottom: 6px; } .sweet-alert .sa-error-container.show { border: 1px solid #f0e1b9; } .sweet-alert .sa-error-container .icon { display: none; } .sweet-alert .sa-error-container p { color: #292f33; font-weight: 600; margin-top: 0; } @-webkit-keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } @keyframes animateErrorIcon { 0% { transform: rotateX(100deg), scale(0.5); -webkit-transform: rotateX(100deg), scale(0.5); opacity: 0; } 100% { transform: rotateX(0deg), scale(0.5); -webkit-transform: rotateX(0deg), scale(0.5); opacity: 1; } } ================================================ FILE: public/backend/vendors/css/pickers/pickadate/classic.css ================================================ /* ========================================================================== $BASE-PICKER ========================================================================== */ /** * Note: the root picker element should *NOT* be styled more than what’s here. */ .picker { font-size: 16px; text-align: left; line-height: 1.2; color: #000; position: absolute; z-index: 10000; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; } /** * The picker input element. */ .picker__input { cursor: default; } /** * When the picker is opened, the input element is “activated”. */ .picker__input.picker__input--active { border-color: #0089ec; } /** * The holder is the only “scrollable” top-level container element. */ .picker__holder { width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; } /*! * Classic picker styling for pickadate.js * Demo: http://amsul.github.io/pickadate.js */ /** * Note: the root picker element should *NOT* be styled more than what’s here. */ .picker { width: 100%; } /** * The holder is the base of the picker. */ .picker__holder { position: absolute; background: #fff; border: 1px solid #aaaaaa; border-top-width: 0; border-bottom-width: 0; border-radius: 0 0 5px 5px; box-sizing: border-box; min-width: 176px; max-width: 466px; max-height: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; transform: translateY(-1em) perspective(600px) rotateX(10deg); transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s; } /** * The frame and wrap work together to ensure that * clicks within the picker don’t reach the holder. */ .picker__frame { padding: 1px; } .picker__wrap { margin: -1px; } /** * When the picker opens... */ .picker--opened .picker__holder { max-height: 25em; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); -moz-opacity: 1; opacity: 1; border-top-width: 1px; border-bottom-width: 1px; transform: translateY(0) perspective(600px) rotateX(0); transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s; box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12); } ================================================ FILE: public/backend/vendors/css/pickers/pickadate/classic.date.css ================================================ /* ========================================================================== $BASE-DATE-PICKER ========================================================================== */ /** * The picker box. */ .picker__box { padding: 0 1em; } /** * The header containing the month and year stuff. */ .picker__header { text-align: center; position: relative; margin-top: .75em; } /** * The month and year labels. */ .picker__month, .picker__year { font-weight: 500; display: inline-block; margin-left: .25em; margin-right: .25em; } .picker__year { color: #999; font-size: .8em; font-style: italic; } /** * The month and year selectors. */ .picker__select--month, .picker__select--year { border: 1px solid #b7b7b7; height: 2em; padding: .5em; margin-left: .25em; margin-right: .25em; } @media (min-width: 24.5em) { .picker__select--month, .picker__select--year { margin-top: -0.5em; } } .picker__select--month { width: 35%; } .picker__select--year { width: 22.5%; } .picker__select--month:focus, .picker__select--year:focus { border-color: #0089ec; } /** * The month navigation buttons. */ .picker__nav--prev, .picker__nav--next { position: absolute; padding: .5em 1.25em; width: 1em; height: 1em; box-sizing: content-box; top: -0.25em; } @media (min-width: 24.5em) { .picker__nav--prev, .picker__nav--next { top: -0.33em; } } .picker__nav--prev { left: -1em; padding-right: 1.25em; } @media (min-width: 24.5em) { .picker__nav--prev { padding-right: 1.5em; } } .picker__nav--next { right: -1em; padding-left: 1.25em; } @media (min-width: 24.5em) { .picker__nav--next { padding-left: 1.5em; } } .picker__nav--prev:before, .picker__nav--next:before { content: " "; border-top: .5em solid transparent; border-bottom: .5em solid transparent; border-right: 0.75em solid #000; width: 0; height: 0; display: block; margin: 0 auto; } .picker__nav--next:before { border-right: 0; border-left: 0.75em solid #000; } .picker__nav--prev:hover, .picker__nav--next:hover { cursor: pointer; color: #000; background: #b1dcfb; } .picker__nav--disabled, .picker__nav--disabled:hover, .picker__nav--disabled:before, .picker__nav--disabled:before:hover { cursor: default; background: none; border-right-color: #f5f5f5; border-left-color: #f5f5f5; } /** * The calendar table of dates */ .picker__table { text-align: center; border-collapse: collapse; border-spacing: 0; table-layout: fixed; font-size: inherit; width: 100%; margin-top: .75em; margin-bottom: .5em; } @media (min-height: 33.875em) { .picker__table { margin-bottom: .75em; } } .picker__table td { margin: 0; padding: 0; } /** * The weekday labels */ .picker__weekday { width: 14.285714286%; font-size: .75em; padding-bottom: .25em; color: #999; font-weight: 500; /* Increase the spacing a tad */ } @media (min-height: 33.875em) { .picker__weekday { padding-bottom: .5em; } } /** * The days on the calendar */ .picker__day { padding: .3125em 0; font-weight: 200; border: 1px solid transparent; } .picker__day--today { position: relative; } .picker__day--today:before { content: " "; position: absolute; top: 2px; right: 2px; width: 0; height: 0; border-top: 0.5em solid #0059bc; border-left: .5em solid transparent; } .picker__day--disabled:before { border-top-color: #aaa; } .picker__day--outfocus { color: #ddd; } .picker__day--infocus:hover, .picker__day--outfocus:hover { cursor: pointer; color: #000; background: #b1dcfb; } .picker__day--highlighted { border-color: #0089ec; } .picker__day--highlighted:hover, .picker--focused .picker__day--highlighted { cursor: pointer; color: #000; background: #b1dcfb; } .picker__day--selected, .picker__day--selected:hover, .picker--focused .picker__day--selected { background: #0089ec; color: #fff; } .picker__day--disabled, .picker__day--disabled:hover, .picker--focused .picker__day--disabled { background: #f5f5f5; border-color: #f5f5f5; color: #ddd; cursor: default; } .picker__day--highlighted.picker__day--disabled, .picker__day--highlighted.picker__day--disabled:hover { background: #bbb; } /** * The footer containing the "today", "clear", and "close" buttons. */ .picker__footer { text-align: center; } .picker__button--today, .picker__button--clear, .picker__button--close { border: 1px solid #fff; background: #fff; font-size: .8em; padding: .66em 0; font-weight: bold; width: 33%; display: inline-block; vertical-align: bottom; } .picker__button--today:hover, .picker__button--clear:hover, .picker__button--close:hover { cursor: pointer; color: #000; background: #b1dcfb; border-bottom-color: #b1dcfb; } .picker__button--today:focus, .picker__button--clear:focus, .picker__button--close:focus { background: #b1dcfb; border-color: #0089ec; outline: none; } .picker__button--today:before, .picker__button--clear:before, .picker__button--close:before { position: relative; display: inline-block; height: 0; } .picker__button--today:before, .picker__button--clear:before { content: " "; margin-right: .45em; } .picker__button--today:before { top: -0.05em; width: 0; border-top: 0.66em solid #0059bc; border-left: .66em solid transparent; } .picker__button--clear:before { top: -0.25em; width: .66em; border-top: 3px solid #e20; } .picker__button--close:before { content: "\D7"; top: -0.1em; vertical-align: top; font-size: 1.1em; margin-right: .35em; color: #777; } .picker__button--today[disabled], .picker__button--today[disabled]:hover { background: #f5f5f5; border-color: #f5f5f5; color: #ddd; cursor: default; } .picker__button--today[disabled]:before { border-top-color: #aaa; } /* ========================================================================== $CLASSIC-DATE-PICKER ========================================================================== */ ================================================ FILE: public/backend/vendors/css/pickers/pickadate/classic.time.css ================================================ /* ========================================================================== $BASE-TIME-PICKER ========================================================================== */ /** * The list of times. */ .picker__list { list-style: none; padding: 0.75em 0 4.2em; margin: 0; } /** * The times on the clock. */ .picker__list-item { border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; margin-bottom: -1px; position: relative; background: #fff; padding: .75em 1.25em; } @media (min-height: 46.75em) { .picker__list-item { padding: .5em 1em; } } /* Hovered time */ .picker__list-item:hover { cursor: pointer; color: #000; background: #b1dcfb; border-color: #0089ec; z-index: 10; } /* Highlighted and hovered/focused time */ .picker__list-item--highlighted { border-color: #0089ec; z-index: 10; } .picker__list-item--highlighted:hover, .picker--focused .picker__list-item--highlighted { cursor: pointer; color: #000; background: #b1dcfb; } /* Selected and hovered/focused time */ .picker__list-item--selected, .picker__list-item--selected:hover, .picker--focused .picker__list-item--selected { background: #0089ec; color: #fff; z-index: 10; } /* Disabled time */ .picker__list-item--disabled, .picker__list-item--disabled:hover, .picker--focused .picker__list-item--disabled { background: #f5f5f5; border-color: #f5f5f5; color: #ddd; cursor: default; border-color: #ddd; z-index: auto; } /** * The clear button */ .picker--time .picker__button--clear { display: block; width: 80%; margin: 1em auto 0; padding: 1em 1.25em; background: none; border: 0; font-weight: 500; font-size: .67em; text-align: center; text-transform: uppercase; color: #666; } .picker--time .picker__button--clear:hover, .picker--time .picker__button--clear:focus { color: #000; background: #b1dcfb; background: #e20; border-color: #e20; cursor: pointer; color: #fff; outline: none; } .picker--time .picker__button--clear:before { top: -0.25em; color: #666; font-size: 1.25em; font-weight: bold; } .picker--time .picker__button--clear:hover:before, .picker--time .picker__button--clear:focus:before { color: #fff; border-color: #fff; } /* ========================================================================== $CLASSIC-TIME-PICKER ========================================================================== */ /** * Note: the root picker element should __NOT__ be styled * more than what’s here. Style the `.picker__holder` instead. */ .picker--time { min-width: 256px; max-width: 320px; } /** * The holder is the base of the picker. */ .picker--time .picker__holder { background: #f2f2f2; } @media (min-height: 40.125em) { .picker--time .picker__holder { font-size: .875em; } } /** * The box contains the list of times. */ .picker--time .picker__box { padding: 0; position: relative; } ================================================ FILE: public/backend/vendors/css/pickers/pickadate/default.css ================================================ /* ========================================================================== $BASE-PICKER ========================================================================== */ /** * Note: the root picker element should *NOT* be styled more than what’s here. */ .picker { font-size: 16px; text-align: left; line-height: 1.2; color: #000; position: absolute; z-index: 10000; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; } /** * The picker input element. */ .picker__input { cursor: default; } /** * When the picker is opened, the input element is “activated”. */ .picker__input.picker__input--active { border-color: #0089ec; } /** * The holder is the only “scrollable” top-level container element. */ .picker__holder { width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; } /*! * Default mobile-first, responsive styling for pickadate.js * Demo: http://amsul.github.io/pickadate.js */ /** * Note: the root picker element should *NOT* be styled more than what’s here. */ /** * Make the holder and frame fullscreen. */ .picker__holder, .picker__frame { top: 0; bottom: 0; left: 0; right: 0; -ms-transform: translateY(100%); transform: translateY(100%); } /** * The holder should overlay the entire screen. */ .picker__holder { position: fixed; transition: background 0.15s ease-out, transform 0s 0.15s; -webkit-backface-visibility: hidden; } /** * The frame that bounds the box contents of the picker. */ .picker__frame { position: absolute; margin: 0 auto; min-width: 256px; max-width: 666px; width: 100%; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; transition: all 0.15s ease-out; } @media (min-height: 33.875em) { .picker__frame { overflow: visible; top: auto; bottom: -100%; max-height: 80%; } } @media (min-height: 40.125em) { .picker__frame { margin-bottom: 7.5%; } } /** * The wrapper sets the stage to vertically align the box contents. */ .picker__wrap { display: table; width: 100%; height: 100%; } @media (min-height: 33.875em) { .picker__wrap { display: block; } } /** * The box contains all the picker contents. */ .picker__box { background: #fff; display: table-cell; vertical-align: middle; } @media (min-height: 26.5em) { .picker__box { font-size: 1.25em; } } @media (min-height: 33.875em) { .picker__box { display: block; font-size: 1.33em; border: 1px solid #777; border-top-color: #898989; border-bottom-width: 0; border-radius: 5px 5px 0 0; box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24); } } @media (min-height: 40.125em) { .picker__box { font-size: 1.5em; border-bottom-width: 1px; border-radius: 5px; } } /** * When the picker opens... */ .picker--opened .picker__holder { -ms-transform: translateY(0); transform: translateY(0); background: transparent; -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#1E000000,endColorstr=#1E000000)"; zoom: 1; background: rgba(0, 0, 0, 0.32); transition: background 0.15s ease-out; } .picker--opened .picker__frame { -ms-transform: translateY(0); transform: translateY(0); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); -moz-opacity: 1; opacity: 1; } @media (min-height: 33.875em) { .picker--opened .picker__frame { top: auto; bottom: 0; } } ================================================ FILE: public/backend/vendors/css/pickers/pickadate/default.time.css ================================================ /* ========================================================================== $BASE-TIME-PICKER ========================================================================== */ /** * The list of times. */ .picker__list { list-style: none; padding: 0.75em 0 4.2em; margin: 0; } /** * The times on the clock. */ .picker__list-item { border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; margin-bottom: -1px; position: relative; background: #fff; padding: .75em 1.25em; } @media (min-height: 46.75em) { .picker__list-item { padding: .5em 1em; } } /* Hovered time */ .picker__list-item:hover { cursor: pointer; color: #000; background: #b1dcfb; border-color: #0089ec; z-index: 10; } /* Highlighted and hovered/focused time */ .picker__list-item--highlighted { border-color: #0089ec; z-index: 10; } .picker__list-item--highlighted:hover, .picker--focused .picker__list-item--highlighted { cursor: pointer; color: #000; background: #b1dcfb; } /* Selected and hovered/focused time */ .picker__list-item--selected, .picker__list-item--selected:hover, .picker--focused .picker__list-item--selected { background: #0089ec; color: #fff; z-index: 10; } /* Disabled time */ .picker__list-item--disabled, .picker__list-item--disabled:hover, .picker--focused .picker__list-item--disabled { background: #f5f5f5; border-color: #f5f5f5; color: #ddd; cursor: default; border-color: #ddd; z-index: auto; } /** * The clear button */ .picker--time .picker__button--clear { display: block; width: 80%; margin: 1em auto 0; padding: 1em 1.25em; background: none; border: 0; font-weight: 500; font-size: .67em; text-align: center; text-transform: uppercase; color: #666; } .picker--time .picker__button--clear:hover, .picker--time .picker__button--clear:focus { color: #000; background: #b1dcfb; background: #e20; border-color: #e20; cursor: pointer; color: #fff; outline: none; } .picker--time .picker__button--clear:before { top: -0.25em; color: #666; font-size: 1.25em; font-weight: bold; } .picker--time .picker__button--clear:hover:before, .picker--time .picker__button--clear:focus:before { color: #fff; border-color: #fff; } /* ========================================================================== $DEFAULT-TIME-PICKER ========================================================================== */ /** * The frame the bounds the time picker. */ .picker--time .picker__frame { min-width: 256px; max-width: 320px; } /** * The picker box. */ .picker--time .picker__box { font-size: 1em; background: #f2f2f2; padding: 0; } @media (min-height: 40.125em) { .picker--time .picker__box { margin-bottom: 5em; } } ================================================ FILE: public/backend/vendors/css/pickers/pickadate/pickadate.css ================================================ /****************************************************/ /* Pick-a-date - Picker base */ /****************************************************/ .picker { width: 100%; text-align: left; position: absolute; top: 100%; margin-top: -1px; z-index: 990; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .picker__input { cursor: default; } .picker__holder { width: 100%; overflow-y: auto; position: absolute; display: none; background-color: #fff; border: 1px solid #ddd; border-top-width: 0; border-bottom-width: 0; max-width: 280px; max-height: 0; -webkit-overflow-scrolling: touch; } .picker--opened .picker__holder { max-height: 480px; border-top-width: 1px; border-bottom-width: 1px; display: block; } /****************************************************/ /* Pick-a-date - Date picker */ /****************************************************/ .picker__box { padding: 5px; } .picker__header { text-align: center; position: relative; font-size: 15px; padding-top: 15px; padding-bottom: 15px; } .picker__month, .picker__year { font-weight: 500; display: inline-block; margin-left: 5px; margin-right: 5px; } .picker__year { color: #999999; font-size: 12px; font-weight: normal; } .picker__select--month, .picker__select--year { border-color: #ddd; height: 32px; font-size: 13px; line-height: 1.6666667; margin-left: 5px; margin-right: 5px; outline: 0; } .picker__select--month { width: 35%; } .picker__select--year { width: 22.5%; } .picker__nav--prev, .picker__nav--next { position: absolute; padding: 8px; top: 50%; margin-top: -16px; border-radius: 2px; line-height: 1; } .picker__nav--prev:before, .picker__nav--next:before { font-family: 'FontAwesome'; display: block; font-size: 14px; width: 14px; text-align: center; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .picker__nav--prev:hover, .picker__nav--next:hover { cursor: pointer; background-color: #f5f5f5; } .picker__nav--prev { left: 0; } .picker__nav--prev:before { content: '\f060'; } .picker__nav--next { right: 0; } .picker__nav--next:before { content: '\f061'; } .picker__nav--disabled, .picker__nav--disabled:hover, .picker__nav--disabled:before, .picker__nav--disabled:before:hover { cursor: default; background: none; border-right-color: #f5f5f5; border-left-color: #f5f5f5; } .picker__table { text-align: center; border-collapse: collapse; border-spacing: 0; table-layout: fixed; font-size: inherit; width: 100%; margin-bottom: 10px; } .picker__table td { margin: 0; padding: 0; } .picker__weekday { width: 14.285714286%; font-size: 12px; text-align: center; padding-bottom: 10px; color: #999999; font-weight: 400; } .picker__day { padding: 7px; } .picker__day--today { position: relative; background-color: #f5f5f5; } .picker__day--today:before { content: ""; position: absolute; top: 2px; right: 2px; width: 0; height: 0; border-top: 6px solid #4EC6E8; border-left: 6px solid transparent; } .picker__day--outfocus { color: #ccc; } .picker__day--infocus:hover, .picker__day--outfocus:hover { cursor: pointer; color: #333333; background-color: #f5f5f5; } .picker__day--highlighted:before { border-top-color: #fff; } .picker__day--highlighted, .picker__day--selected { border-radius: 3px; } .picker__day--highlighted, .picker__day--highlighted:hover, .picker--focused .picker__day--highlighted { cursor: pointer; color: #fff; background-color: #4EC6E8; } .picker__day--selected, .picker__day--selected:hover, .picker--focused .picker__day--selected { background-color: #4EC6E8; color: #fff; } .picker__day--disabled, .picker__day--disabled:hover { background: #fafafa; color: #999999; cursor: default; } .picker__day--disabled:before { border-top-color: #999; } .picker__day--highlighted .picker__day--disabled, .picker__day--highlighted .picker__day--disabled:hover { background-color: #bbbbbb; } .picker__footer { text-align: center; } .picker__footer button { border: 0; background: #fff; padding: 7px 12px; border-radius: 3px; font-weight: 500; cursor: pointer; display: inline-block; } .picker__footer button:hover, .picker__footer button:focus { outline: 0; background-color: #f5f5f5; } .picker__footer button:before { height: 0; } .picker__button--today:before { content: ''; margin-right: 5px; position: relative; display: inline-block; top: -1px; width: 0; border-top: 6px solid #2196F3; border-left: 6px solid transparent; } .picker__button--close:before { content: '\f00d'; display: inline-block; position: relative; margin-right: 5px; top: 1px; font-family: FontAwesome; font-size: 14px; color: red; } .picker__button--clear:before { content: ''; display: inline-block; position: relative; top: -3px; width: 8px; margin-right: 5px; border-top: 2px solid #F44336; } /****************************************************/ /* Pick-a-date - Time picker */ /****************************************************/ .picker--time { min-width: 256px; max-width: 320px; } .picker--time .picker__box { padding: 0; } .picker__list { list-style: none; padding: 5px 0; margin: 0; background-color: #fff; max-height: 250px; overflow-y: auto; } .picker__list-item { position: relative; padding: 7px 12px; } .picker__list-item:hover, .picker__list-item:focus { cursor: pointer; background-color: #f5f5f5; z-index: 10; } .picker--time .picker__button--clear { display: block; width: 100%; margin: 0; padding: 7px 12px; background-color: #fcfcfc; margin-top: 1px; outline: 0; border: 0; border-top: 1px solid #eeeeee; text-align: center; margin-bottom: -5px; margin-top: 5px; } .picker--time .picker__button--clear:hover, .picker--time .picker__button--clear:focus { background-color: #f5f5f5; } .picker__list-item--highlighted { z-index: 10; } .picker__list-item--highlighted, .picker__list-item--highlighted:hover, .picker--focused .picker__list-item--highlighted { cursor: pointer; color: #fff; background-color: #4EC6E8; } .picker__list-item--selected, .picker__list-item--selected:hover, .picker--focused .picker__list-item--selected { background-color: #4EC6E8; color: #fff; z-index: 10; } .picker__list-item--disabled, .picker__list-item--disabled:hover, .picker--focused .picker__list-item--disabled { background-color: #fafafa; color: #999999; cursor: default; z-index: auto; } ================================================ FILE: public/backend/vendors/css/tables/ag-grid/ag-grid.css ================================================ /** **************************** * Generic Styles **************************** */ ag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia { display: block; } .ag-hidden { display: none !important; } .ag-invisible { visibility: hidden !important; } .ag-faded { opacity: 0.3; } .ag-width-half { display: inline-block; width: 50% !important; } .ag-unselectable { -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; } .ag-selectable { -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important; } .ag-select-agg-func-popup { position: absolute; } .ag-input-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-box-align: center; -ms-flex-align: center; align-items: center; line-height: normal; position: relative; overflow: hidden; } .ag-shake-left-to-right { -webkit-animation-direction: alternate; animation-direction: alternate; -webkit-animation-duration: 0.2s; animation-duration: 0.2s; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-name: ag-shake-left-to-right; animation-name: ag-shake-left-to-right; } @-webkit-keyframes ag-shake-left-to-right { from { padding-left: 6px; padding-right: 2px; } to { padding-left: 2px; padding-right: 6px; } } @keyframes ag-shake-left-to-right { from { padding-left: 6px; padding-right: 2px; } to { padding-left: 2px; padding-right: 6px; } } .ag-root-wrapper { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; overflow: hidden; } .ag-root-wrapper.ag-layout-normal { height: 100%; } .ag-root-wrapper .ag-watermark { position: absolute; bottom: 10px; right: 25px; opacity: 0.5; -webkit-transition: opacity 1s ease-out 3s; transition: opacity 1s ease-out 3s; } .ag-root-wrapper .ag-watermark:before { content: ''; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDk0cHgiIGhlaWdodD0iMjM5cHgiIHZpZXdCb3g9IjAgMCA0OTQgMjM5IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA0Ny4xICg0NTQyMikgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+TG9nbzwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGQ9Ik0wLjYxMjg0OTkzMSwxMDggTDAuNjEyODQ5OTMxLDY3LjQ1OTYzNzQgTDAuNjEyODQ5OTMxLDY3LjQ1OTYzNzQgQzAuNjEyODQ5OTMxLDYyLjEwMDY1MzYgMy40NzE4MzM3OCw1Ny4xNDg3NDgzIDguMTEyODQ5OTMsNTQuNDY5MjU2NCBMOTguMzA2NDI1LDIuMzk1OTcxNTcgTDk4LjMwNjQyNSwyLjM5NTk3MTU3IEMxMDIuOTQ3NDQxLC0wLjI4MzUyMDM1OCAxMDguNjY1NDA5LC0wLjI4MzUyMDM1OCAxMTMuMzA2NDI1LDIuMzk1OTcxNTcgTDExMy4zMDY0MjUsMi4zOTU5NzE1NyBMMjAzLjUsNTQuNDY5MjU2NCBMMjAzLjUsNTQuNDY5MjU2NCBDMjA4LjE0MTAxNiw1Ny4xNDg3NDgzIDIxMSw2Mi4xMDA2NTM2IDIxMSw2Ny40NTk2Mzc0IEwyMTEsMTM4IEwxODEsMTM4IEwxODAuOTk3MDQxLDkzLjk5OTk5OTggTDE4MC45OTYwMzIsOTMuOTk5OTk5OSBDMTgwLjk5NTQ3NSw4NS43MTYxMjI2IDE3NC4yNzk5MDksNzkuMDAxMDA4NyAxNjUuOTk2MDMyLDc5LjAwMTAwODcgTDEyMiw3OC45OTk5OTk5IEMxMTMuNzE1NzI5LDc4Ljk5OTk5OTkgMTA3LDg1LjcxNTcyODYgMTA3LDkzLjk5OTk5OTkgTDEwNywxMzYuMDE1NjIzIEwxMDcsMTM2LjAxNTYyMyBDMTA3LDE0NC4yOTk4OTUgMTEzLjcxNTcyOSwxNTEuMDE1NjIzIDEyMiwxNTEuMDE1NjIzIEwxNjgsMTUxLjAxNTYyMyBMMTY4LDE2MyBDMTY4LDE2NC42NTY4NTQgMTY2LjY1Njg1NCwxNjYgMTY1LDE2NiBMMTIwLDE2NiBMMTIwLDE3OSBMMTY1Ljk5NjAzMiwxNzkgTDE2NS45OTYwMzIsMTc4Ljk5Nzg3NyBDMTc0LjI3OTQ3NCwxNzguOTk3ODc3IDE4MC45OTQ4NiwxNzIuMjgzNDQyIDE4MC45OTYwMzIsMTY0IEwxODEsMTUwLjk2MDU1NCBMMjExLDE1MC45NjA1NTQgTDIxMSwxNzEuNjA2MjA3IEwyMTEsMTcxLjYwNjIwNyBDMjExLDE3Ni45NjUxOTEgMjA4LjE0MTAxNiwxODEuOTE3MDk2IDIwMy41LDE4NC41OTY1ODggTDExMy4zMDY0MjUsMjM2LjY2OTg3MyBMMTEzLjMwNjQyNSwyMzYuNjY5ODczIEMxMDguNjY1NDA5LDIzOS4zNDkzNjUgMTAyLjk0NzQ0MSwyMzkuMzQ5MzY1IDk4LjMwNjQyNSwyMzYuNjY5ODczIEw4LjExMjg0OTkzLDE4NC41OTY1ODggTDguMTEyODQ5OTMsMTg0LjU5NjU4OCBDMy40NzE4MzM3OCwxODEuOTE3MDk2IDAuNjEyODQ5OTMxLDE3Ni45NjUxOTEgMC42MTI4NDk5MzEsMTcxLjYwNjIwNyBMMC42MTI4NDk5MzEsMTIxIEwyNywxMjEgTDI3LDEzNiBDMjcsMTQ0LjI4NDI3MSAzMy43MTU3Mjg3LDE1MSA0MiwxNTEgTDQyLDE1MSBMMTAwLDE1MSBMMTAwLDk0IEMxMDAsODUuNzE1NzI4OCA5My4yODQyNzEyLDc5IDg1LDc5IEwyNyw3OSBMMjcsOTIgTDg0LDkyIEM4NS42NTY4NTQyLDkyIDg3LDkzLjM0MzE0NTggODcsOTUgTDg3LDk1IEw4NywxMDggTDAuNjEyODQ5OTMxLDEwOCBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkxvZ28iPgogICAgICAgICAgICA8cGF0aCBkPSJNNDc3LDU1IEw0OTQsNTUgTDQ5NCwxNTEgTDQzNSwxNTEgQzQyNi43MTU3MjksMTUxIDQyMCwxNDQuMjg0MjcxIDQyMCwxMzYgTDQyMCw5NiBDNDIwLDg3LjcxNTcyODggNDI2LjcxNTcyOSw4MSA0MzUsODEgTDQzNSw4MSBMNDc3LDgxIEw0NzcsNTUgWiBNNDQwLDk4IEM0MzguMzQzMTQ2LDk4IDQzNyw5OS4zNDMxNDU4IDQzNywxMDEgTDQzNywxMzEgQzQzNywxMzIuNjU2ODU0IDQzOC4zNDMxNDYsMTM0IDQ0MCwxMzQgTDQ3NywxMzQgTDQ3Nyw5OCBMNDQwLDk4IFoiIGlkPSJkIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgICAgIDxnIGlkPSJpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzOTYuMDAwMDAwLCA1NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoLTYiIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iMCAyNiAxNyAyNiAxNyA5NiAwIDk2Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aC03IiBmaWxsPSIjRTExRjIyIiBwb2ludHM9IjAgMS4xMzY4NjgzOGUtMTMgMTcgMS4xMzY4NjgzOGUtMTMgMTcgMTcgMCAxNyI+PC9wb2x5Z29uPgogICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0zMzEsMTUxIEwzNDgsMTUxIEwzNDgsMTAxIEwzNDgsMTAxIEMzNDgsOTkuMzQzMTQ1OCAzNDkuMzQzMTQ2LDk4IDM1MSw5OCBMMzg5LDk4IEwzODksODEgTDM0Niw4MSBMMzQ2LDgxIEMzMzcuNzE1NzI5LDgxIDMzMSw4Ny43MTU3Mjg4IDMzMSw5NiBMMzMxLDE1MSBaIiBpZD0iciIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgICAgICAgICA8cGF0aCBkPSJNMzI0LDg2IEwzMjQsNzYgTDMyNCw3NiBDMzI0LDY3LjcxNTcyODggMzE3LjI4NDI3MSw2MSAzMDksNjEgTDI0OSw2MSBMMjQ5LDYxIEMyNDAuNzE1NzI5LDYxIDIzNCw2Ny43MTU3Mjg4IDIzNCw3NiBMMjM0LDEzNiBMMjM0LDEzNiBDMjM0LDE0NC4yODQyNzEgMjQwLjcxNTcyOSwxNTEgMjQ5LDE1MSBMMzA5LDE1MSBMMzA5LDE1MSBDMzE3LjI4NDI3MSwxNTEgMzI0LDE0NC4yODQyNzEgMzI0LDEzNiBMMzI0LDEwMCBMMjg3LDEwMCBMMjg3LDExNyBMMzA3LDExNyBMMzA3LDEzMSBMMzA3LDEzMSBDMzA3LDEzMi42NTY4NTQgMzA1LjY1Njg1NCwxMzQgMzA0LDEzNCBMMjU0LDEzNCBMMjU0LDEzNCBDMjUyLjM0MzE0NiwxMzQgMjUxLDEzMi42NTY4NTQgMjUxLDEzMSBMMjUxLDgxIEwyNTEsODEgQzI1MSw3OS4zNDMxNDU4IDI1Mi4zNDMxNDYsNzggMjU0LDc4IEwzMDQsNzggTDMwNCw3OCBDMzA1LjY1Njg1NCw3OCAzMDcsNzkuMzQzMTQ1OCAzMDcsODEgTDMwNyw4NiBMMzI0LDg2IFoiIGlkPSJHIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgICAgIDxnIGlkPSJhZyI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iQ29tYmluZWQtU2hhcGUiPgogICAgICAgICAgICAgICAgICAgIDxtYXNrIGlkPSJtYXNrLTIiIGZpbGw9IndoaXRlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHVzZSB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgICAgICA8L21hc2s+CiAgICAgICAgICAgICAgICAgICAgPHVzZSBmaWxsPSIjRTExRjIyIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJnIiBmaWxsPSIjRTExRjIyIiB4PSIxMjAiIHk9IjkyIiB3aWR0aD0iNDgiIGhlaWdodD0iNDYiIHJ4PSIzIj48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNDAsMTIxIEw4NywxMjEgTDg3LDEzOCBMNDMsMTM4IEw0MywxMzggQzQxLjM0MzE0NTgsMTM4IDQwLDEzNi42NTY4NTQgNDAsMTM1IEw0MCwxMjEgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjRTExRjIyIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==); -webkit-filter: invert(50%); filter: invert(50%); background-repeat: no-repeat; background-size: 110px 60px; display: block; height: 60px; width: 110px; } .ag-root-wrapper .ag-watermark .ag-watermark-text { opacity: 0.5; font-weight: bold; font-family: Impact; font-size: 19px; } .ag-root-wrapper-body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } .ag-root-wrapper-body.ag-layout-normal { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; height: 0; min-height: 0; } .ag-root { cursor: default; position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height { overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; width: 0; } .ag-root.ag-layout-normal { height: 100%; } /** **************************** * Viewports **************************** */ .ag-header-viewport, .ag-floating-top-viewport, .ag-body-viewport, .ag-pinned-left-cols-viewport, .ag-center-cols-viewport, .ag-pinned-right-cols-viewport, .ag-floating-bottom-viewport, .ag-body-horizontal-scroll-viewport, .ag-virtual-list-viewport { position: relative; height: 100%; min-width: 0px; overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-body-viewport { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-body-viewport.ag-layout-normal { overflow-y: auto; -webkit-overflow-scrolling: touch; } .ag-body-viewport:not(.ag-layout-print).ag-force-vertical-scroll { overflow-y: scroll; } .ag-pinned-left-cols-viewport, .ag-pinned-right-cols-viewport { -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; } .ag-center-cols-viewport { width: 100%; overflow-x: auto; } .ag-body-horizontal-scroll-viewport { overflow-x: scroll; } .ag-virtual-list-viewport { overflow: auto; width: 100%; } /** **************************** * Containers **************************** */ .ag-header-container, .ag-floating-top-container, .ag-body-container, .ag-pinned-right-cols-container, .ag-center-cols-container, .ag-pinned-left-cols-container, .ag-floating-bottom-container, .ag-body-horizontal-scroll-container, .ag-full-width-container, .ag-floating-bottom-full-width-container, .ag-virtual-list-container { position: relative; } .ag-header-container, .ag-floating-top-container, .ag-floating-bottom-container { height: 100%; white-space: nowrap; } .ag-body-viewport .ag-center-cols-clipper { min-height: 100%; } .ag-body-viewport.ag-layout-auto-height .ag-center-cols-clipper, .ag-body-viewport.ag-layout-auto-height .ag-center-cols-container { min-height: 50px; } .ag-body-viewport .ag-center-cols-container { display: block; } .ag-body-viewport.ag-layout-print { -webkit-box-flex: 0; -ms-flex: none; flex: none; } .ag-body-viewport.ag-layout-print .ag-center-cols-clipper { min-width: 100%; } .ag-pinned-right-cols-container { display: block; } .ag-body-horizontal-scroll-container { height: 100%; } .ag-full-width-container, .ag-floating-top-full-width-container, .ag-floating-bottom-full-width-container { position: absolute; top: 0px; left: 0px; pointer-events: none; } .ag-full-width-container { width: 100%; } .ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container { display: inline-block; overflow: hidden; height: 100%; width: 100%; } .ag-virtual-list-container { overflow: hidden; } /** **************************** * Scrollers **************************** */ .ag-center-cols-clipper { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; overflow: hidden; } .ag-body-horizontal-scroll { min-height: 0; min-width: 0; width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; position: relative; } .ag-layout-print .ag-body-horizontal-scroll { display: none; } .ag-horizontal-left-spacer, .ag-horizontal-right-spacer { height: 100%; min-width: 0; -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; overflow-x: scroll; } .ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner { overflow-x: hidden; } /** **************************** * Headers **************************** */ .ag-header, .ag-pinned-left-header, .ag-pinned-right-header { display: inline-block; overflow: hidden; } .ag-header .ag-header-cell-sortable, .ag-pinned-left-header .ag-header-cell-sortable, .ag-pinned-right-header .ag-header-cell-sortable { cursor: pointer; } .ag-header { display: -webkit-box; display: -ms-flexbox; display: flex; width: 100%; white-space: nowrap; } .ag-header-icon { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-pinned-left-header { height: 100%; } .ag-pinned-right-header { height: 100%; } .ag-header-row { position: absolute; overflow: hidden; } .ag-header-overlay { display: block; position: absolute; } .ag-header-cell { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: absolute; height: 100%; overflow: hidden; } .ag-header-group-cell-label, .ag-header-cell-label { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; overflow: hidden; -webkit-box-align: center; -ms-flex-align: center; align-items: center; text-overflow: ellipsis; -ms-flex-item-align: stretch; align-self: stretch; } .ag-header-cell-label .ag-header-cell-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-numeric-header .ag-header-cell-label { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } .ag-header-group-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-header-cell-resize { position: absolute; z-index: 1; height: 100%; width: 4px; } .ag-header-expand-icon { padding-left: 4px; } .ag-header-select-all { display: -webkit-box; display: -ms-flexbox; display: flex; } /** **************************** * Columns **************************** */ .ag-column-moving .ag-cell { -webkit-transition: left 0.2s; transition: left 0.2s; } .ag-column-moving .ag-header-cell { -webkit-transition: left 0.2s; transition: left 0.2s; } .ag-column-moving .ag-header-group-cell { -webkit-transition: left 0.2s, width 0.2s; transition: left 0.2s, width 0.2s; } /** **************************** * Column Panel **************************** */ .ag-column-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-column-select-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; overflow: hidden; -webkit-box-flex: 4; -ms-flex-positive: 4; flex-grow: 4; -ms-flex-negative: 1; flex-shrink: 1; -ms-flex-preferred-size: 0; flex-basis: 0; } .ag-column-select-panel .ag-primary-cols-header-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: none; flex: none; } .ag-column-select-panel .ag-primary-cols-header-panel .ag-column-name-filter { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-column-select-panel .ag-primary-cols-header-panel .ag-primary-cols-filter-wrapper { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-column-select-panel .ag-primary-cols-header-panel .ag-primary-cols-filter-wrapper input { width: 100%; } .ag-column-select-panel .ag-primary-cols-list-panel { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; overflow: auto; } .ag-column-drop { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; overflow: auto; width: 100%; } .ag-column-drop .ag-column-drop-list { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-column-drop .ag-column-drop-list .ag-column-drop-cell { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-column-drop .ag-column-drop-list .ag-column-drop-cell .ag-column-drop-cell-text { overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; text-overflow: ellipsis; white-space: nowrap; } .ag-column-drop.ag-column-drop-vertical { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1 1 0px; flex: 1 1 0; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; } .ag-column-drop.ag-column-drop-vertical > div { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-column-drop.ag-column-drop-vertical .ag-column-drop-list { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; overflow-x: auto; } .ag-column-drop.ag-column-drop-vertical .ag-column-drop-empty-message { display: block; } .ag-column-drop.ag-column-drop-horizontal { white-space: nowrap; overflow: hidden; } /** **************************** * Rows **************************** */ .ag-row-animation .ag-row { -webkit-transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s; transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s; transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s; transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s; } .ag-row-no-animation .ag-row { -webkit-transition: background-color 0.1s; transition: background-color 0.1s; } .ag-row { white-space: nowrap; width: 100%; } .ag-row-position-absolute { position: absolute; } .ag-row-position-relative { position: relative; } .ag-full-width-row { overflow: hidden; pointer-events: all; } .ag-row-inline-editing { z-index: 1; } .ag-row-dragging { z-index: 2; } .ag-stub-cell { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } /** **************************** * Cells **************************** */ .ag-cell { display: inline-block; overflow: hidden; position: absolute; text-overflow: ellipsis; white-space: nowrap; } .ag-cell-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; width: 100%; height: 100%; } .ag-cell-wrapper.ag-row-group { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } .ag-cell-wrapper .ag-cell-value, .ag-cell-wrapper .ag-group-value { overflow: hidden; text-overflow: ellipsis; } .ag-full-width-row.ag-row-group .ag-cell-wrapper { -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-cell-with-height { height: 100%; } .ag-group-cell-entire-row { display: inline-block; height: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; } .ag-footer-cell-entire-row { display: inline-block; height: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; } .ag-cell-inline-editing { z-index: 1; } .ag-cell-inline-editing .ag-cell-edit-input, .ag-cell-inline-editing .ag-input-wrapper { height: 100%; width: 100%; line-height: normal; } /** **************************** * Filters **************************** */ .ag-set-filter-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-set-filter-item > div, .ag-set-filter-item > span { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-filter .ag-filter-checkbox { pointer-events: none; } .ag-filter .ag-filter-body-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .ag-filter .ag-filter-filter { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } /** **************************** * Floating Filter **************************** */ .ag-floating-filter-full-body .ag-react-container, .ag-floating-filter-body .ag-react-container { height: 100%; } .ag-floating-filter-body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; height: 100%; } .ag-floating-filter-body input { margin: 0; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; max-height: calc(100% - 1px); } .ag-floating-filter-full-body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; height: 100%; width: 100%; } .ag-floating-filter-full-body > div { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-floating-filter-full-body input { margin: 0; width: 100%; } .ag-floating-filter-full-body input[type="range"] { height: 100%; } .ag-floating-filter { display: inline-block; position: absolute; } .ag-floating-filter-input { width: 100%; } .ag-floating-filter-input:-moz-read-only { background-color: #eee; } .ag-floating-filter-input:read-only { background-color: #eee; } .ag-floating-filter-menu { position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .ag-floating-filter-button { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: none; flex: none; } /** **************************** * Drag & Drop **************************** */ .ag-dnd-ghost { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: #e5e5e5; border: 1px solid black; cursor: move; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; overflow: hidden; padding: 3px; position: absolute; text-overflow: ellipsis; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: 10; } .ag-dnd-ghost-icon { padding: 2px; } /** **************************** * Overlay **************************** */ .ag-overlay { height: 100%; left: 0; pointer-events: none; position: absolute; top: 0; width: 100%; } .ag-overlay-panel { display: -webkit-box; display: -ms-flexbox; display: flex; height: 100%; pointer-events: none; width: 100%; } .ag-overlay-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: none; flex: none; width: 100%; height: 100%; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; text-align: center; } .ag-overlay-wrapper.ag-overlay-loading-wrapper { pointer-events: all; } .ag-overlay-no-rows-wrapper.ag-layout-auto-height { padding-top: 30px; } /** **************************** * Popup **************************** */ .ag-popup > div { z-index: 5; } .ag-popup-backdrop { height: 100%; left: 0; position: fixed; top: 0; width: 100%; } .ag-popup-editor { position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: 1; } /** **************************** * Virtual Lists **************************** */ .ag-virtual-list-item { position: absolute; width: 100%; } .ag-virtual-list-item span:empty:not(.ag-icon) { border-left: 1px solid transparent; } /** **************************** * Floating Top and Bottom **************************** */ .ag-floating-top { overflow: hidden; white-space: nowrap; width: 100%; position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-pinned-left-floating-top { display: inline-block; overflow: hidden; position: relative; min-width: 0px; -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; } .ag-pinned-right-floating-top { display: inline-block; overflow: hidden; position: relative; min-width: 0px; -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; } .ag-floating-bottom { overflow: hidden; white-space: nowrap; width: 100%; position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-pinned-left-floating-bottom { display: inline-block; overflow: hidden; position: relative; min-width: 0px; -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; } .ag-pinned-right-floating-bottom { display: inline-block; overflow: hidden; position: relative; min-width: 0px; -webkit-box-flex: 1000; -ms-flex-positive: 1000; flex-grow: 1000; } /** **************************** * Dialog **************************** */ .ag-dialog, .ag-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; position: relative; overflow: hidden; } .ag-dialog .ag-title-bar, .ag-panel .ag-title-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: none; flex: none; -webkit-box-align: center; -ms-flex-align: center; align-items: center; cursor: default; } .ag-dialog .ag-title-bar .ag-title-bar-title, .ag-panel .ag-title-bar .ag-title-bar-title { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-dialog .ag-title-bar .ag-title-bar-buttons, .ag-panel .ag-title-bar .ag-title-bar-buttons { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-dialog .ag-title-bar .ag-title-bar-buttons .ag-button, .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button { cursor: pointer; } .ag-dialog .ag-panel-content-wrapper, .ag-panel .ag-panel-content-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; position: relative; overflow: hidden; } .ag-dialog .ag-panel-content-wrapper > div, .ag-panel .ag-panel-content-wrapper > div { width: 100%; height: 100%; } .ag-dialog { position: absolute; } .ag-dialog .ag-resizer { position: absolute; pointer-events: none; z-index: 1; } .ag-dialog .ag-resizer.ag-resizer-topLeft { top: 0; left: 0; height: 5px; width: 5px; cursor: nwse-resize; } .ag-dialog .ag-resizer.ag-resizer-top { top: 0; left: 5px; right: 5px; height: 5px; cursor: ns-resize; } .ag-dialog .ag-resizer.ag-resizer-topRight { top: 0; right: 0; height: 5px; width: 5px; cursor: nesw-resize; } .ag-dialog .ag-resizer.ag-resizer-right { top: 5px; right: 0; bottom: 5px; width: 5px; cursor: ew-resize; } .ag-dialog .ag-resizer.ag-resizer-bottomRight { bottom: 0; right: 0; height: 5px; width: 5px; cursor: nwse-resize; } .ag-dialog .ag-resizer.ag-resizer-bottom { bottom: 0; left: 5px; right: 5px; height: 5px; cursor: ns-resize; } .ag-dialog .ag-resizer.ag-resizer-bottomLeft { bottom: 0; left: 0; height: 5px; width: 5px; cursor: nesw-resize; } .ag-dialog .ag-resizer.ag-resizer-left { left: 0; top: 5px; bottom: 5px; width: 5px; cursor: ew-resize; } .ag-dialog .ag-message-box { width: 100%; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .ag-dialog .ag-message-box .ag-message-box-content { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-dialog .ag-message-box .ag-message-box-button-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } /** **************************** * Tooltip **************************** */ .ag-tooltip { position: absolute; pointer-events: none; z-index: 99999; } .ag-chart-tooltip { display: table; position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; white-space: nowrap; z-index: 99999; font: 12px Verdana, sans-serif; color: black; background: #f4f4f4; border-radius: 5px; -webkit-box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25); box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25); opacity: 0; -webkit-transform: scale(0.9); transform: scale(0.9); -webkit-transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1); transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1); -webkit-transition-property: opacity, -webkit-transform; transition-property: opacity, -webkit-transform; transition-property: opacity, transform; transition-property: opacity, transform, -webkit-transform; } .ag-chart-tooltip.visible { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } .ag-chart-tooltip .title { font-weight: bold; padding: 7px; border-top-left-radius: 5px; border-top-right-radius: 5px; color: white; background-color: #888888; } .ag-chart-tooltip .content { padding: 7px; line-height: 1.7em; } /** **************************** * Animations **************************** */ .ag-value-slide-out { margin-right: 5px; opacity: 1; -webkit-transition: opacity 3s, margin-right 3s; transition: opacity 3s, margin-right 3s; -webkit-transition-timing-function: linear; transition-timing-function: linear; } .ag-value-slide-out-end { margin-right: 10px; opacity: 0; } .ag-opacity-zero { opacity: 0 !important; } /** **************************** * Menu **************************** */ .ag-menu { max-height: 100%; overflow-y: auto; position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .ag-menu-column-select-wrapper { height: 265px; overflow: auto; width: 200px; } .ag-menu-list { display: table; } .ag-menu-option, .ag-menu-separator { display: table-row; } .ag-menu-option > span, .ag-menu-separator > span { display: table-cell; vertical-align: middle; } .ag-menu-option-text { white-space: nowrap; } .ag-menu-column-select-wrapper .ag-column-select-panel { height: 100%; } /** **************************** * Rich Select **************************** */ .ag-rich-select { cursor: default; outline: none; } .ag-rich-select .ag-rich-select-value { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-rich-select .ag-rich-select-value > span { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-rich-select .ag-rich-select-value > span.ag-icon { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; -webkit-box-flex: 0; -ms-flex: none; flex: none; } .ag-rich-select .ag-rich-select-list .ag-virtual-list-item { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-rich-select .ag-rich-select-list .ag-virtual-list-item .ag-rich-select-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-box-align: center; -ms-flex-align: center; align-items: center; white-space: nowrap; } /** **************************** * Pagination **************************** */ .ag-paging-panel { -webkit-box-align: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } .ag-paging-panel .ag-paging-row-summary-panel { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-paging-panel .ag-paging-row-summary-panel span { margin: 0 3px; } .ag-paging-page-summary-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-paging-page-summary-panel .ag-disabled { pointer-events: none; } .ag-paging-page-summary-panel .ag-paging-button { position: relative; overflow: hidden; } .ag-paging-page-summary-panel .ag-paging-button button { position: absolute; } /** **************************** * Tool Panel **************************** */ .ag-tool-panel-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; overflow-y: auto; cursor: default; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; width: 200px; } .ag-tool-panel-wrapper .ag-filter-toolpanel-header { line-height: 1.5; cursor: pointer; } .ag-column-tool-panel-column, .ag-column-tool-panel-column-group { -webkit-box-align: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: nowrap; flex-wrap: nowrap; text-overflow: ellipsis; white-space: nowrap; } .ag-column-tool-panel-column .ag-column-tool-panel-column, .ag-column-tool-panel-column .ag-column-tool-panel-column-group, .ag-column-tool-panel-column-group .ag-column-tool-panel-column, .ag-column-tool-panel-column-group .ag-column-tool-panel-column-group { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; } .ag-column-select-checkbox { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-tool-panel-horizontal-resize { cursor: col-resize; height: 100%; position: absolute; top: 0; width: 5px; z-index: 1; } .ag-rtl .ag-tool-panel-horizontal-resize { -webkit-transform: translateX(3px); transform: translateX(3px); } .ag-ltr .ag-tool-panel-horizontal-resize { -webkit-transform: translateX(-3px); transform: translateX(-3px); } .loading-filter { background-color: #e6e6e6; height: 100%; padding: 5px; position: absolute; top: 34px; width: 100%; z-index: 1; } .ag-details-row { height: 100%; width: 100%; } .ag-details-grid { height: 100%; width: 100%; } .ag-header-group-cell { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; height: 100%; overflow: hidden; position: absolute; text-overflow: ellipsis; } .ag-cell-label-container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; -webkit-box-align: center; -ms-flex-align: center; align-items: center; width: 100%; } .ag-numeric-header .ag-cell-label-container { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } /** **************************** * Side Bar **************************** */ .ag-side-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } .ag-side-bar .ag-side-buttons div button { display: block; white-space: nowrap; outline: none; cursor: pointer; } .ag-side-bar .ag-side-buttons div button span:not(.ag-icon) { -webkit-writing-mode: tb; -ms-writing-mode: tb; writing-mode: tb; -webkit-writing-mode: vertical-lr; -ms-writing-mode: tb-lr; writing-mode: vertical-lr; } .ag-side-bar .panel-container { width: 180px; } .ag-side-bar.full-width .panel-container { width: 200px; } .ag-rtl .ag-side-bar .ag-side-buttons button span:not(.ag-icon) { -webkit-writing-mode: tb-rl; -ms-writing-mode: tb-rl; writing-mode: tb-rl; -webkit-writing-mode: vertical-rl; -ms-writing-mode: tb-rl; writing-mode: vertical-rl; } /** **************************** * Status Bar **************************** */ .ag-status-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; overflow: hidden; } .ag-status-bar .ag-status-panel { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; } .ag-status-bar-left { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; } .ag-status-bar-center { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; } .ag-status-bar-right { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; } /** **************************** * Widgets **************************** */ .ag-group-component { position: relative; -webkit-box-flex: 1; -ms-flex: 1 1 100%; flex: 1 1 100%; } .ag-group-component .ag-group-component-title-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-group-component .ag-group-component-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-group-component .ag-group-component-container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .ag-group-component .ag-group-component-container .ag-group-subgroup { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-item-align: stretch; align-self: stretch; } .ag-group-component .ag-group-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-group-component.ag-disabled .ag-group-component-container { pointer-events: none; } .ag-group-component.ag-collapsed .ag-group-component-toolbar, .ag-group-component.ag-collapsed .ag-group-component-container { display: none; } .ag-toggle-button .ag-input-wrapper .ag-icon { -webkit-transition: right 0.3s; transition: right 0.3s; position: absolute; top: -1px; } .ag-input-field { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-input-field input, .ag-input-field select, .ag-input-field textarea { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; width: 100%; min-width: 0; } .ag-range-field { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-picker-field > .ag-wrapper, .ag-slider > .ag-wrapper, .ag-angle-select > .ag-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-picker-field > .ag-wrapper > div, .ag-slider > .ag-wrapper > div, .ag-angle-select > .ag-wrapper > div { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; } .ag-angle-select { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-angle-select .ag-angle-select-field .ag-parent-circle { display: block; position: relative; } .ag-angle-select .ag-angle-select-field .ag-child-circle { position: absolute; } .ag-picker-field { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .ag-picker-field > .ag-wrapper > button { display: -webkit-box; display: -ms-flexbox; display: flex; border: 0; padding: 0; margin: 0; } .ag-color-picker > .ag-wrapper { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; overflow: hidden; } .ag-color-picker button { cursor: pointer; } .ag-labeled.ag-label-align-right label { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; } .ag-labeled.ag-label-align-right > div { -webkit-box-flex: 0; -ms-flex: none; flex: none; } .ag-labeled.ag-label-align-top { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } .ag-labeled.ag-label-align-top > div { -ms-flex-item-align: stretch; align-self: stretch; } .ag-color-panel { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; text-align: center; } .ag-color-panel .ag-spectrum-color { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; position: relative; overflow: hidden; cursor: default; } .ag-color-panel .ag-fill { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .ag-color-panel .ag-spectrum-val { cursor: pointer; } .ag-color-panel .ag-spectrum-dragger { position: absolute; pointer-events: none; cursor: pointer; } .ag-color-panel .ag-spectrum-hue { cursor: default; background: -webkit-gradient(linear, right top, left top, color-stop(3%, #ff0000), color-stop(17%, #ffff00), color-stop(33%, #00ff00), color-stop(50%, #00ffff), color-stop(67%, #0000ff), color-stop(83%, #ff00ff), to(#ff0000)); background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); } .ag-color-panel .ag-spectrum-alpha { cursor: default; } .ag-color-panel .ag-spectrum-hue-background { width: 100%; height: 100%; } .ag-color-panel .ag-spectrum-alpha-background { background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0)), to(black)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0), black); width: 100%; height: 100%; } .ag-color-panel .ag-hue-alpha { cursor: pointer; } .ag-color-panel .ag-spectrum-slider { position: absolute; pointer-events: none; } .ag-color-panel .ag-spectrum-text-value { display: inline-block; text-align: center; overflow: hidden; white-space: nowrap; } .ag-color-panel .ag-spectrum-text-value:focus { outline: none; outline-offset: 0; } .ag-color-panel .ag-recent-colors { display: -webkit-box; display: -ms-flexbox; display: flex; } .ag-color-panel .ag-recent-colors > div { cursor: pointer; } .ag-ltr .ag-toolpanel-indent-1 { padding-left: 10px; } .ag-rtl .ag-toolpanel-indent-1 { padding-right: 10px; } .ag-ltr .ag-row-group-indent-1 { padding-left: 10px; } .ag-rtl .ag-row-group-indent-1 { padding-right: 10px; } .ag-ltr .ag-toolpanel-indent-2 { padding-left: 20px; } .ag-rtl .ag-toolpanel-indent-2 { padding-right: 20px; } .ag-ltr .ag-row-group-indent-2 { padding-left: 20px; } .ag-rtl .ag-row-group-indent-2 { padding-right: 20px; } .ag-ltr .ag-toolpanel-indent-3 { padding-left: 30px; } .ag-rtl .ag-toolpanel-indent-3 { padding-right: 30px; } .ag-ltr .ag-row-group-indent-3 { padding-left: 30px; } .ag-rtl .ag-row-group-indent-3 { padding-right: 30px; } .ag-ltr .ag-toolpanel-indent-4 { padding-left: 40px; } .ag-rtl .ag-toolpanel-indent-4 { padding-right: 40px; } .ag-ltr .ag-row-group-indent-4 { padding-left: 40px; } .ag-rtl .ag-row-group-indent-4 { padding-right: 40px; } .ag-ltr .ag-toolpanel-indent-5 { padding-left: 50px; } .ag-rtl .ag-toolpanel-indent-5 { padding-right: 50px; } .ag-ltr .ag-row-group-indent-5 { padding-left: 50px; } .ag-rtl .ag-row-group-indent-5 { padding-right: 50px; } .ag-ltr .ag-toolpanel-indent-6 { padding-left: 60px; } .ag-rtl .ag-toolpanel-indent-6 { padding-right: 60px; } .ag-ltr .ag-row-group-indent-6 { padding-left: 60px; } .ag-rtl .ag-row-group-indent-6 { padding-right: 60px; } .ag-ltr .ag-toolpanel-indent-7 { padding-left: 70px; } .ag-rtl .ag-toolpanel-indent-7 { padding-right: 70px; } .ag-ltr .ag-row-group-indent-7 { padding-left: 70px; } .ag-rtl .ag-row-group-indent-7 { padding-right: 70px; } .ag-ltr .ag-toolpanel-indent-8 { padding-left: 80px; } .ag-rtl .ag-toolpanel-indent-8 { padding-right: 80px; } .ag-ltr .ag-row-group-indent-8 { padding-left: 80px; } .ag-rtl .ag-row-group-indent-8 { padding-right: 80px; } .ag-ltr .ag-toolpanel-indent-9 { padding-left: 90px; } .ag-rtl .ag-toolpanel-indent-9 { padding-right: 90px; } .ag-ltr .ag-row-group-indent-9 { padding-left: 90px; } .ag-rtl .ag-row-group-indent-9 { padding-right: 90px; } .ag-ltr .ag-toolpanel-indent-10 { padding-left: 100px; } .ag-rtl .ag-toolpanel-indent-10 { padding-right: 100px; } .ag-ltr .ag-row-group-indent-10 { padding-left: 100px; } .ag-rtl .ag-row-group-indent-10 { padding-right: 100px; } .ag-ltr .ag-toolpanel-indent-11 { padding-left: 110px; } .ag-rtl .ag-toolpanel-indent-11 { padding-right: 110px; } .ag-ltr .ag-row-group-indent-11 { padding-left: 110px; } .ag-rtl .ag-row-group-indent-11 { padding-right: 110px; } .ag-ltr .ag-toolpanel-indent-12 { padding-left: 120px; } .ag-rtl .ag-toolpanel-indent-12 { padding-right: 120px; } .ag-ltr .ag-row-group-indent-12 { padding-left: 120px; } .ag-rtl .ag-row-group-indent-12 { padding-right: 120px; } .ag-ltr .ag-toolpanel-indent-13 { padding-left: 130px; } .ag-rtl .ag-toolpanel-indent-13 { padding-right: 130px; } .ag-ltr .ag-row-group-indent-13 { padding-left: 130px; } .ag-rtl .ag-row-group-indent-13 { padding-right: 130px; } .ag-ltr .ag-toolpanel-indent-14 { padding-left: 140px; } .ag-rtl .ag-toolpanel-indent-14 { padding-right: 140px; } .ag-ltr .ag-row-group-indent-14 { padding-left: 140px; } .ag-rtl .ag-row-group-indent-14 { padding-right: 140px; } .ag-ltr .ag-toolpanel-indent-15 { padding-left: 150px; } .ag-rtl .ag-toolpanel-indent-15 { padding-right: 150px; } .ag-ltr .ag-row-group-indent-15 { padding-left: 150px; } .ag-rtl .ag-row-group-indent-15 { padding-right: 150px; } .ag-ltr .ag-toolpanel-indent-16 { padding-left: 160px; } .ag-rtl .ag-toolpanel-indent-16 { padding-right: 160px; } .ag-ltr .ag-row-group-indent-16 { padding-left: 160px; } .ag-rtl .ag-row-group-indent-16 { padding-right: 160px; } .ag-ltr .ag-toolpanel-indent-17 { padding-left: 170px; } .ag-rtl .ag-toolpanel-indent-17 { padding-right: 170px; } .ag-ltr .ag-row-group-indent-17 { padding-left: 170px; } .ag-rtl .ag-row-group-indent-17 { padding-right: 170px; } .ag-ltr .ag-toolpanel-indent-18 { padding-left: 180px; } .ag-rtl .ag-toolpanel-indent-18 { padding-right: 180px; } .ag-ltr .ag-row-group-indent-18 { padding-left: 180px; } .ag-rtl .ag-row-group-indent-18 { padding-right: 180px; } .ag-ltr .ag-toolpanel-indent-19 { padding-left: 190px; } .ag-rtl .ag-toolpanel-indent-19 { padding-right: 190px; } .ag-ltr .ag-row-group-indent-19 { padding-left: 190px; } .ag-rtl .ag-row-group-indent-19 { padding-right: 190px; } .ag-ltr .ag-toolpanel-indent-20 { padding-left: 200px; } .ag-rtl .ag-toolpanel-indent-20 { padding-right: 200px; } .ag-ltr .ag-row-group-indent-20 { padding-left: 200px; } .ag-rtl .ag-row-group-indent-20 { padding-right: 200px; } .ag-ltr .ag-toolpanel-indent-21 { padding-left: 210px; } .ag-rtl .ag-toolpanel-indent-21 { padding-right: 210px; } .ag-ltr .ag-row-group-indent-21 { padding-left: 210px; } .ag-rtl .ag-row-group-indent-21 { padding-right: 210px; } .ag-ltr .ag-toolpanel-indent-22 { padding-left: 220px; } .ag-rtl .ag-toolpanel-indent-22 { padding-right: 220px; } .ag-ltr .ag-row-group-indent-22 { padding-left: 220px; } .ag-rtl .ag-row-group-indent-22 { padding-right: 220px; } .ag-ltr .ag-toolpanel-indent-23 { padding-left: 230px; } .ag-rtl .ag-toolpanel-indent-23 { padding-right: 230px; } .ag-ltr .ag-row-group-indent-23 { padding-left: 230px; } .ag-rtl .ag-row-group-indent-23 { padding-right: 230px; } .ag-ltr .ag-toolpanel-indent-24 { padding-left: 240px; } .ag-rtl .ag-toolpanel-indent-24 { padding-right: 240px; } .ag-ltr .ag-row-group-indent-24 { padding-left: 240px; } .ag-rtl .ag-row-group-indent-24 { padding-right: 240px; } .ag-ltr .ag-toolpanel-indent-25 { padding-left: 250px; } .ag-rtl .ag-toolpanel-indent-25 { padding-right: 250px; } .ag-ltr .ag-row-group-indent-25 { padding-left: 250px; } .ag-rtl .ag-row-group-indent-25 { padding-right: 250px; } .ag-ltr .ag-toolpanel-indent-26 { padding-left: 260px; } .ag-rtl .ag-toolpanel-indent-26 { padding-right: 260px; } .ag-ltr .ag-row-group-indent-26 { padding-left: 260px; } .ag-rtl .ag-row-group-indent-26 { padding-right: 260px; } .ag-ltr .ag-toolpanel-indent-27 { padding-left: 270px; } .ag-rtl .ag-toolpanel-indent-27 { padding-right: 270px; } .ag-ltr .ag-row-group-indent-27 { padding-left: 270px; } .ag-rtl .ag-row-group-indent-27 { padding-right: 270px; } .ag-ltr .ag-toolpanel-indent-28 { padding-left: 280px; } .ag-rtl .ag-toolpanel-indent-28 { padding-right: 280px; } .ag-ltr .ag-row-group-indent-28 { padding-left: 280px; } .ag-rtl .ag-row-group-indent-28 { padding-right: 280px; } .ag-ltr .ag-toolpanel-indent-29 { padding-left: 290px; } .ag-rtl .ag-toolpanel-indent-29 { padding-right: 290px; } .ag-ltr .ag-row-group-indent-29 { padding-left: 290px; } .ag-rtl .ag-row-group-indent-29 { padding-right: 290px; } .ag-ltr .ag-toolpanel-indent-30 { padding-left: 300px; } .ag-rtl .ag-toolpanel-indent-30 { padding-right: 300px; } .ag-ltr .ag-row-group-indent-30 { padding-left: 300px; } .ag-rtl .ag-row-group-indent-30 { padding-right: 300px; } .ag-ltr .ag-toolpanel-indent-31 { padding-left: 310px; } .ag-rtl .ag-toolpanel-indent-31 { padding-right: 310px; } .ag-ltr .ag-row-group-indent-31 { padding-left: 310px; } .ag-rtl .ag-row-group-indent-31 { padding-right: 310px; } .ag-ltr .ag-toolpanel-indent-32 { padding-left: 320px; } .ag-rtl .ag-toolpanel-indent-32 { padding-right: 320px; } .ag-ltr .ag-row-group-indent-32 { padding-left: 320px; } .ag-rtl .ag-row-group-indent-32 { padding-right: 320px; } .ag-ltr .ag-toolpanel-indent-33 { padding-left: 330px; } .ag-rtl .ag-toolpanel-indent-33 { padding-right: 330px; } .ag-ltr .ag-row-group-indent-33 { padding-left: 330px; } .ag-rtl .ag-row-group-indent-33 { padding-right: 330px; } .ag-ltr .ag-toolpanel-indent-34 { padding-left: 340px; } .ag-rtl .ag-toolpanel-indent-34 { padding-right: 340px; } .ag-ltr .ag-row-group-indent-34 { padding-left: 340px; } .ag-rtl .ag-row-group-indent-34 { padding-right: 340px; } .ag-ltr .ag-toolpanel-indent-35 { padding-left: 350px; } .ag-rtl .ag-toolpanel-indent-35 { padding-right: 350px; } .ag-ltr .ag-row-group-indent-35 { padding-left: 350px; } .ag-rtl .ag-row-group-indent-35 { padding-right: 350px; } .ag-ltr .ag-toolpanel-indent-36 { padding-left: 360px; } .ag-rtl .ag-toolpanel-indent-36 { padding-right: 360px; } .ag-ltr .ag-row-group-indent-36 { padding-left: 360px; } .ag-rtl .ag-row-group-indent-36 { padding-right: 360px; } .ag-ltr .ag-toolpanel-indent-37 { padding-left: 370px; } .ag-rtl .ag-toolpanel-indent-37 { padding-right: 370px; } .ag-ltr .ag-row-group-indent-37 { padding-left: 370px; } .ag-rtl .ag-row-group-indent-37 { padding-right: 370px; } .ag-ltr .ag-toolpanel-indent-38 { padding-left: 380px; } .ag-rtl .ag-toolpanel-indent-38 { padding-right: 380px; } .ag-ltr .ag-row-group-indent-38 { padding-left: 380px; } .ag-rtl .ag-row-group-indent-38 { padding-right: 380px; } .ag-ltr .ag-toolpanel-indent-39 { padding-left: 390px; } .ag-rtl .ag-toolpanel-indent-39 { padding-right: 390px; } .ag-ltr .ag-row-group-indent-39 { padding-left: 390px; } .ag-rtl .ag-row-group-indent-39 { padding-right: 390px; } .ag-ltr .ag-toolpanel-indent-40 { padding-left: 400px; } .ag-rtl .ag-toolpanel-indent-40 { padding-right: 400px; } .ag-ltr .ag-row-group-indent-40 { padding-left: 400px; } .ag-rtl .ag-row-group-indent-40 { padding-right: 400px; } .ag-ltr .ag-toolpanel-indent-41 { padding-left: 410px; } .ag-rtl .ag-toolpanel-indent-41 { padding-right: 410px; } .ag-ltr .ag-row-group-indent-41 { padding-left: 410px; } .ag-rtl .ag-row-group-indent-41 { padding-right: 410px; } .ag-ltr .ag-toolpanel-indent-42 { padding-left: 420px; } .ag-rtl .ag-toolpanel-indent-42 { padding-right: 420px; } .ag-ltr .ag-row-group-indent-42 { padding-left: 420px; } .ag-rtl .ag-row-group-indent-42 { padding-right: 420px; } .ag-ltr .ag-toolpanel-indent-43 { padding-left: 430px; } .ag-rtl .ag-toolpanel-indent-43 { padding-right: 430px; } .ag-ltr .ag-row-group-indent-43 { padding-left: 430px; } .ag-rtl .ag-row-group-indent-43 { padding-right: 430px; } .ag-ltr .ag-toolpanel-indent-44 { padding-left: 440px; } .ag-rtl .ag-toolpanel-indent-44 { padding-right: 440px; } .ag-ltr .ag-row-group-indent-44 { padding-left: 440px; } .ag-rtl .ag-row-group-indent-44 { padding-right: 440px; } .ag-ltr .ag-toolpanel-indent-45 { padding-left: 450px; } .ag-rtl .ag-toolpanel-indent-45 { padding-right: 450px; } .ag-ltr .ag-row-group-indent-45 { padding-left: 450px; } .ag-rtl .ag-row-group-indent-45 { padding-right: 450px; } .ag-ltr .ag-toolpanel-indent-46 { padding-left: 460px; } .ag-rtl .ag-toolpanel-indent-46 { padding-right: 460px; } .ag-ltr .ag-row-group-indent-46 { padding-left: 460px; } .ag-rtl .ag-row-group-indent-46 { padding-right: 460px; } .ag-ltr .ag-toolpanel-indent-47 { padding-left: 470px; } .ag-rtl .ag-toolpanel-indent-47 { padding-right: 470px; } .ag-ltr .ag-row-group-indent-47 { padding-left: 470px; } .ag-rtl .ag-row-group-indent-47 { padding-right: 470px; } .ag-ltr .ag-toolpanel-indent-48 { padding-left: 480px; } .ag-rtl .ag-toolpanel-indent-48 { padding-right: 480px; } .ag-ltr .ag-row-group-indent-48 { padding-left: 480px; } .ag-rtl .ag-row-group-indent-48 { padding-right: 480px; } .ag-ltr .ag-toolpanel-indent-49 { padding-left: 490px; } .ag-rtl .ag-toolpanel-indent-49 { padding-right: 490px; } .ag-ltr .ag-row-group-indent-49 { padding-left: 490px; } .ag-rtl .ag-row-group-indent-49 { padding-right: 490px; } .ag-ltr { direction: ltr; } .ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } .ag-ltr .ag-header-cell-resize { right: -4px; } .ag-ltr .ag-pinned-right-header .ag-header-cell-resize { left: -4px; } .ag-rtl { direction: rtl; } .ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } .ag-rtl .ag-header-cell-resize { left: -4px; } .ag-rtl .ag-pinned-left-header .ag-header-cell-resize { right: -4px; } @media print { .ag-body-viewport { display: block; } .ag-row { page-break-inside: avoid; } } .ag-body .ag-pinned-left-cols-viewport, .ag-body .ag-body-viewport, .ag-body .ag-pinned-right-cols-viewport { -webkit-overflow-scrolling: touch; } .ag-chart { position: relative; display: flex; overflow: hidden; width: 100%; height: 100%; } .ag-chart .ag-chart-components-wrapper { position: relative; display: flex; flex: 1 1 auto; overflow: hidden; } .ag-chart .ag-chart-components-wrapper .ag-chart-canvas-wrapper { position: relative; flex: 1 1 auto; overflow: hidden; } .ag-chart .ag-chart-components-wrapper .ag-chart-canvas-wrapper canvas { display: block; } .ag-chart .ag-chart-components-wrapper .ag-chart-menu { position: absolute; top: 10px; right: 20px; width: 24px; overflow: hidden; display: flex; flex-direction: column; } .ag-chart:not(.ag-has-menu):hover .ag-chart-menu { opacity: 1; pointer-events: all; } .ag-chart .ag-chart-docked-container { position: relative; width: 0; min-width: 0; transition: min-width 0.4s; } .ag-chart .ag-chart-docked-container .ag-panel { border-width: 0 0 0 1px; } .ag-chart-tabbed-menu > div { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; } .ag-chart-tabbed-menu .ag-tab-header { flex: none; user-select: none; cursor: default; } .ag-chart-tabbed-menu .ag-tab-body { display: flex; flex: 1 1 auto; align-items: stretch; overflow: hidden; } .ag-chart-tabbed-menu .ag-tab-body > div { width: 100%; overflow: hidden; overflow-y: auto; } .ag-chart-tabbed-menu .ag-chart-settings { overflow-x: hidden; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper { position: relative; flex-direction: column; width: 100%; height: 100%; display: flex; overflow: hidden; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar { width: 100%; display: flex; height: 30px; align-items: center; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-nav-card-selector { display: flex; align-items: center; justify-content: space-around; flex: 1 1 auto; height: 100%; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-nav-card-selector .ag-nav-card-item { opacity: 0.2; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-nav-card-selector .ag-nav-card-item.ag-selected { opacity: 1; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-chart-settings-prev-btn, .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-chart-settings-next-btn { position: relative; flex: none; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-chart-settings-prev-btn button, .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-nav-bar .ag-chart-settings-next-btn button { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container { position: relative; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: 100%; min-height: 100%; overflow: hidden; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper .ag-group-component { flex: none; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper .ag-group-component-container { flex-direction: row; flex-wrap: wrap; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper .ag-group-component-container .ag-chart-mini-thumbnail { flex: none; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper.ag-animating, .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper.ag-animating { transition: left 0.3s; transition-timing-function: ease-in-out; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail { cursor: pointer; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-wrapper .ag-chart-settings-mini-charts-container .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail canvas { display: block; } .ag-chart-tabbed-menu .ag-chart-data-wrapper, .ag-chart-tabbed-menu .ag-chart-format-wrapper { display: flex; flex-direction: column; position: relative; user-select: none; } .ag-chart-tabbed-menu .ag-chart-data-wrapper > div, .ag-chart-tabbed-menu .ag-chart-format-wrapper > div { display: flex; margin: 0; padding-bottom: 2px; } .ag-chart-tabbed-menu .ag-chart-data-wrapper > div:not(:first-child), .ag-chart-tabbed-menu .ag-chart-format-wrapper > div:not(:first-child) { margin-top: 0; } .ag-chart-tabbed-menu .ag-chart-format-wrapper { overflow-x: hidden; } .ag-chart-tabbed-menu .ag-chart-format-wrapper .ag-group-component .ag-group-subgroup { justify-content: space-between; } .ag-chart .ag-chart-canvas-wrapper.ag-chart-empty > canvas { visibility: hidden; } .ag-chart .ag-chart-canvas-wrapper.ag-chart-empty .ag-chart-empty-text { display: flex; } .ag-chart .ag-chart-empty-text { display: none; position: absolute; top: 0; width: 100%; height: 100%; align-items: center; justify-content: center; } .ag-chart .ag-chart-menu { opacity: 0; pointer-events: none; } .ag-chart .ag-chart-menu > span { opacity: 0.5; line-height: 24px; font-size: 24px; width: 24px; height: 24px; margin: 2px 0; cursor: pointer; } .ag-chart .ag-chart-menu > span:hover { border-radius: 5px; } .ag-chart .ag-chart-docked-container { min-width: 0; width: 0; } .ag-chart-tabbed-menu .ag-tab-body { padding: 0; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-nav-bar { padding: 0 10px; user-select: none; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-nav-bar .ag-nav-card-selector { padding: 0 10px; } .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-nav-bar .ag-nav-card-selector .ag-nav-card-item { cursor: pointer; } ================================================ FILE: public/backend/vendors/css/tables/ag-grid/ag-theme-material.css ================================================ @charset "UTF-8"; @font-face { font-family: "agGridMaterial"; src: url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBlYAAAC8AAAAYGNtYXAXVtK8AAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZuX9LmgAAAF4AAASrGhlYWQVtyBHAAAUJAAAADZoaGVhB4kD+wAAFFwAAAAkaG10eN4AJ0kAABSAAAAA6GxvY2GGnoHMAAAVaAAAAHZtYXhwAEQAWQAAFeAAAAAgbmFtZVm8q3EAABYAAAABqnBvc3QAAwAAAAAXrAAAACAAAwP3AZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpNQPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6TX//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAQAAawMAAxUACwAAASEVCQEVITUhNychAwD+AAEV/usCAP7V1tYBKwMVVf8A/wBVgNXVAAAAAAQAOf/5A8cDhwAIAA8AFwAfAAABMzUzJwczFTEHIzUHFzUzJScVIxUzFTcFIxUjFzcjNQGrqnLHx3I5csfHcgJVx3Jyx/6OqnLHx3ICTnLHx3I5csfHclXHcqpyx45yx8dyAAABAKsAawNVAxUACQAAExc3ETMRFzcJAas87lbuPP6r/qsBwDzu/fkCB+89AVX+qwACAFUAFQOrA2sAHAAoAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmIxMHJwcnNyc3FzcXBwIAWE5OdCEiIiF0Tk5YWE5OdCEiIiF0Tk5Y1TyZmTyZmTyZmTyZA2siIXROTlhYTk50ISIiIXROTlhYTk50ISL9vDyZmTyZmTyZmTyZAAAAAwDVAJUDKwLrAAQACQANAAATMxEjETczESMREzMRI9WAgO94eO94eAI3/l4BorT9qgJW/qr/AAACAIAAQAOAA0AADwAWAAABISIGFREUFjMhMjY1ETQmASc3FwEXAQMr/aojMjIjAlYjMjL+XdY8mgFEPP6AA0AyI/2qIzIyIwJWIzL9q9U8mQFEPP6AAAAAAgCAAEADgANAAA8AEwAAASEiBhURFBYzITI2NRE0JgMhNSEDK/2qIzIyIwJWIzIyef5WAaoDQDIj/aojMjIjAlYjMv5VVgAAAgCAAEADgANAAAMAEwAAAREhESUhIgYVERQWMyEyNjURNCYDK/2qAlb9qiMyMiMCViMyMgLr/aoCVlUyI/2qIzIyIwJWIzIAAwBzAEgDjQM4AAYACgAWAAAJAQcXCQIhNxchBTAGFRQWMzI2NTQmAv3+VTxm/vcBRQFF/e/MzP5oAkxVMiMjMlUBjQGrPGb+9/67AUXNzUBrKiMyMiMqawAAAAACAKsAawFVAxUAAwAHAAAlIxEzNRUjNQFVqqqqawH/q1dXAAAJAKsAawNVAxUAAwAIAAwAEAAVABkAHgAiACYAABMzNSMBMzUjFSEzNSM1MzUjBTM1IxUBFTM1BTM1IxUBMzUjETM1I6uqqgEAqqr/AKqqqqoBAKqqAQCq/laqqgEAqqqqqgJrqv1WqqqqVqqqqqoBqqqqqqqq/wCq/laqAAAAAAEBYgDAAp4CwAAGAAABJwkBNyc3Ap48/wABADzDwwKEPP8A/wA8xMQAAAAAAwBr/+sDlQOVAAgAGQAdAAABISIGFREzESEXISIGFREUFjMhMjY1ETQmIxEhESECwP4AIzJVAgCA/iskMjIkAdUjMjIj/isB1QOVMiP9qwJVVTIk/asjMjIjAlUkMv1VAlUAAAEA1QCVAysC6wAMAAABJwcnBxcHFzcXNyc3Ays87+887+887+887+8Crzzv7zzv7zzv7zzv7wAABQBVABUDqwNrACUAMgA/AEsAUQAAAT4BNTQmIyIGFRQWMzI2NxcHLgEjIgYVFBYzMjY1NCYnNwEzNQEHIiY1NDYzMhYVFAYjESImNTQ2MzIWFRQGIwEiJjU0NjMyFhUUBgkBFwE1IwGbCAhkR0dkZEcTIxBlZRAjE0dkZEdHZAgIZQErgP3wmyMyMiMjMjIjIzIyIyMyMiMBAAkMDAkJDAwBIv8AVQErgAJ6ECMTR2RkR0dkCAhlZQgIZEdHZGRHEyMQZf7VKwIPDzEkJDExJCQx/gAxJCQxMSQkMQFADAkJDAwJCQwBlf8AVQEqKwAABwCXAL8DaQLBAAwAEAAdACEALQA6AD4AABMiBhUUFjMyNjU0JiMFNSEVAyIGFRQWMzI2NTQmIwUhNSEFMhYVFAYjIiY1NDY3MhYVFAYjIiY1NDYzBSE1IcISGRkSEhkZEgKn/dd+EhkZEhIZGRIB0v6sAVT+Lg0TEw0NExMNEhkZEhIZGRICp/3XAikBFRkSERoaERIZVVZWASsZEhIZGRISGVVVCxMNDRMTDQ0T4RoREhkZEhEaVlUAAAABAKsAawNVAxUACQAAAScHESMRJwcJAQNVPO5W7jwBVQFVAcA87gIH/fnvPf6rAVUAAAAAAQFiAMACngLAAAYAAAEHFwcXCQEBnjzDwzwBAP8AAsA8xMQ8AQABAAAAAAABAJMAxwNtArkARwAAAS4BIyIGByc+ATMyFx4BFxYXDgEHJz4BNyMOAQcnIxcOASMiJicjHgEzMjY3Fw4BIyInLgEnJic+ATcXDgEHMyc+ATMyFhczAqMKXD0iPRZPK2M2Pjk5XyQlFRhYOU8SGAVEBA0IK1BGBAkFIjUJRApcPhMjEEghRyY+OTlfJCUVEz4oXgUGAoYpDSQVIjQJRAHdOk8aF08ZHBMSQi4tNz5lIU8SLRoMFQkqRgEBKR86UAgISA0OExJCLi03MFQgXgoUCyoNECgfAAADAJMAxwNtArkAHAApADUAAAEiBw4BBwYHFhceARcWMzI3PgE3NjcmJy4BJyYjESImNTQ2MzIWFRQGIxEiBhUUFjMyNjU0JgIAPjk5XyQlFRUlJF85OT4+OTlfJCUVFSUkXzk5PkVhYUVFYWFFKTs7KSk7OwK5ExJCLi03Ny0uQhITExJCLi03Ny0uQhIT/mFhRUVhYUVFYQEKOykpOzspKTsAAAMAgADAA4ACwAAEAAgADAAAJTM1IxUBFSE1ASE1IQGrqqr+1QMA/YACAP4AwFVVAgBVVf7VVgAAAgD3AMADCQLAAAUACgAAJSc3JwkBATMRIxEDCcTEPP8AAQD+KlZW/MTEPP8A/wACAP4AAgAAAAACAKsBQANVAkAAAwAIAAABIRUhBSE1IRUDVf1WAqr9VgKq/VYCQFWrVVUAAAYAjgCkA3IC3AAHAAwAEwAXABsAIQAAASEUBisBNTElFSE1IScyFhUhNSEBIzUzNSM1MycjNDYzFQJVAR1DL6sBHf7jAR1yL0P+AAGO/uRycnJy5HJDLwEVL0Jx5HJy40Ivcf3IcXJyci9CcQAAAAACAJMAxwNtArkAHAApAAABIgcOAQcGBxYXHgEXFjMyNz4BNzY3JicuAScmIxEiJjU0NjMyFhUUBiMCAD45OV8kJRUVJSRfOTk+Pjk5XyQlFRUlJF85OT5FYWFFRWFhRQK5ExJCLi03Ny0uQhITExJCLi03Ny0uQhIT/mFhRUVhYUVFYQACAPcAwAMJAsAABgAKAAATFwcXCQEHJTMRI/fExDwBAP8APAG8VlYChMTEPAEAAQA8PP4AAAAAAAEAqwBrA1UDFQAJAAABITcnCQE3JyE1A1X9+e89/qsBVTzuAgcB6+48/qv+qzzuVgAAAAACAOQApAMcAtwAHAAmAAABNxcHMxUjHgEXBycVIzUHJzcjNTMnNx4BFzUzFQczNzUnIwcVHgECOWhQaJOTGjQaUGhyaFBok5NoUBo0GnJoXkNDXkMRIQJJaFBocho0GlBok5NoUGhyaFAaNBqTk/tDXkNDXhEhAAABAIAC6wOAA0AAAwAAEyEVIYADAP0AA0BVAAAAAwCAAMADgALAAAMABwALAAA3ITUhNSE1ITUVITWAAwD9AAMA/QADAMBVgFbVVVUAAQEAAEADAACVAAMAACUhFSEBAAIA/gCVVQAAAAEA1QGVAysB6wAEAAATIRUhNdUCVv2qAetWVgABAWIAwAKeAsAABgAAAQcXBxcJAQGePMPDPAEA/wACwDzExDwBAAEAAAAAAAMAgADAA4ACwAADAAcACwAANyE1IREVITUBITUhgAIA/gADAP0AAwD9AMBVAatVVf7VVgADAFUAFQOrA2sAHAArADoAAAEiBw4BBwYVFBceARcWMzI3PgE3NjU0Jy4BJyYjATQ3PgE3NjMyFhcBLgE1ASImJwEeARUUBw4BBwYjAgBYTk50ISIiIXROTlhYTk50ISIiIXROTlj+qxobXT4+RztrK/4iIiYBVTtrKwHeIiYaG10+PkcDayIhdE5OWFhOTnQhIiIhdE5OWFhOTnQhIv5VRz4+XRsaJiL+IitrO/6rJiIB3itrO0c+Pl0bGgAAAAADAID/6wOAA5UAGAAkACwAAAEjLgEjIgYHIyIGFREUFjMhMjY1ETQmIzEhMhYVFAYjIiY1NDYBIREzFSE1MwMrsw1BKipBDbMjMjIjAlYjMjIj/tUSGRkSEhkZAT39qlYBqlYDQCUwMCUyI/1VIzIyIwKrIzIZEhEZGRESGf0AAquAgAACAK0AbwNTAxEABQASAAAlByc3HgETAQcnBxcHJzcXNyc3AWOOKI4KFMYBNB8e9z5Y9lg9ex4e/Y4ojgoUAgr+zB4eez1Y9lg+9x4fAAAAAAkAOf/5A8cDhwAPABMAFwAgACQALgAyADYAOgAABSEiJjURNDYzITIWFREUBgEjFTMBIREhJQcXByc3HgEXJyMVMyUHJwcnNx4BFzEBIxUzJSMVMzcjFTMDVf1WL0NDLwKqL0ND/dGqqgIA/jkBx/7cQkIpaWkKFQrcqqoB+ChBQihqGjUa/giqqgEd5OTjqqoHQy8Cqi9DQy/9Vi9DARyqAY7+crNCQShpagoUCturMShBQShpGjUaAZaqqqqqqgAAAAABANUAlQMrAusACwAAASERIxEhNSERMxEhAyv/AFb/AAEAVgEAAZX/AAEAVgEA/wAAAAAAAQFiAMACngLAAAYAAAEnCQE3JzcCnjz/AAEAPMPDAoQ8/wD/ADzExAAAAAACAFUAFQOrA2sAHAA5AAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmIxEiJy4BJyY1NDc+ATc2MzIXHgEXFhUUBw4BBwYjAgBYTk50ISIiIXROTlhYTk50ISIiIXROTlhHPj5dGxoaG10+PkdHPj5dGxoaG10+PkcDayIhdE5OWFhOTnQhIiIhdE5OWFhOTnQhIv0AGhtdPj5HRz4+XRsaGhtdPj5HRz4+XRsaAAMAVQAVA6sDawAcADkAVgAAASIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiM1IgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmIxEiJy4BJyY1NDc+ATc2MzIXHgEXFhUUBw4BBwYjAgAsJyc6ERAQETonJywsJyc6ERAQETonJyxYTk50ISIiIXROTlhYTk50ISIiIXROTlhHPj5dGxoaG10+PkdHPj5dGxoaG10+PkcClRAROicnLCwnJzoREBAROicnLCwnJzoRENYiIXROTlhYTk50ISIiIXROTlhYTk50ISL9ABobXT4+R0c+Pl0bGhobXT4+R0c+Pl0bGgABAKsAawNVAxUACQAAAQcXIRUhBxcJAQIAPO79+QIH7jwBVf6rAxU87lbuPAFVAVUAAAAAAgCAAEADgANAAA4AGQAAAREhESMRFBYzITI2NREjBTcXByc3FxEzETEDK/2qVTIjAlYjMlX/AG481dU8blYBwP7VASv+1SMyMiMBKx1uPNXVPG4Bnf5jAAEBKwFVAtUCKwADAAABFzchASvV1f5WAivW1gABAZUA6wJrApUAAwAAAQcXEQJr1tYCldXVAaoAAQGVAOsCawKVAAMAACU3JxEBldbW69XV/lYAAAEBKwFVAtUCKwADAAABNxchASvV1f5WAVXW1gABAIkAogN3At4ABgAAAScHFwEnAQF3sjzuAgA8/jwBG7I97gIAPP49AAAAAAEBYgDAAp4CwAAGAAABBxcHFwkBAZ48w8M8AQD/AALAPMTEPAEAAQAAAAAAAQDVAZUDKwHrAAQAABMhFSE11QJW/aoB61ZWAAEBAAEiAwACXgAFAAABBycHCQECxMTEPAEAAQACXsPDPP8AAQAAAAADAFUA6wOrApUAGgAeADkAABM0NjsBNSMiBw4BBwYVFBceARcWOwE1IyImNRchNSElIxUzMhYVFAYrARUzMjc+ATc2NTQnLgEnJiOmTjeqqiwnJzoREREROicnLKqqN06vAVb+qgGAqqo3Tk43qqosJyc6ERERETonJywBwDdNURAROicnLCwnJzoREFFNNytWqlFNNzdNURAROicnLCwnJzoREAAAAAADAFUAQAOrA0AAFAAYADgAAAEjFTMyFhUUBgcXPgE1NCcuAScmIwcjFzMBFw4BFRQXHgEXFjsBNSMiJjU0NjcXIxUzFxUzFzcBBwLVqqo3TjgrPjRCERE6JycsKl5WCP2qhTpLERE6Jycsqqo3TkUxWB91YUmsNf03NwKVUU03LkYLPhplPiwnJzoREKpWAXWFGGpDLCcnOhEQUU03M0sFWFZhSas2Aso2AAAAAQAAAAEAAG2khpdfDzz1AAsEAAAAAADZaG3lAAAAANlobeUAAP/rA8cDlQAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADxwABAAAAAAAAAAAAAAAAAAAAOgQAAAAAAAAAAAAAAAIAAAAEAAEABAAAOQQAAKsEAABVBAAA1QQAAIAEAACABAAAgAQAAHMEAACrBAAAqwQAAWIEAABrBAAA1QQAAFUEAACXBAAAqwQAAWIEAACTBAAAkwQAAIAEAAD3BAAAqwQAAI4EAACTBAAA9wQAAKsEAADkBAAAgAQAAIAEAAEABAAA1QQAAWIEAACABAAAVQQAAIAEAACtBAAAOQQAANUEAAFiBAAAVQQAAFUEAACrBAAAgAQAASsEAAGVBAABlQQAASsEAACJBAABYgQAANUEAAEABAAAVQQAAFUAAAAAAAoAFAAeADoAbACEAMgA5AEQATQBWAGGAZgB2AHuAiACPAK0AxIDLANCA64EAAQcBDgETgSGBMgE5AT+BToFSAVgBW4FfAWSBawGDAZOBnYG2AbyBwgHYAfgB/oIJgg0CEIIUAheCHQIigiYCKwJAAlWAAAAAQAAADoAVwAJAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAoAAAABAAAAAAACAAcAewABAAAAAAADAAoAPwABAAAAAAAEAAoAkAABAAAAAAAFAAsAHgABAAAAAAAGAAoAXQABAAAAAAAKABoArgADAAEECQABABQACgADAAEECQACAA4AggADAAEECQADABQASQADAAEECQAEABQAmgADAAEECQAFABYAKQADAAEECQAGABQAZwADAAEECQAKADQAyEFnTWF0ZXJpYWwAQQBnAE0AYQB0AGUAcgBpAGEAbFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMEFnTWF0ZXJpYWwAQQBnAE0AYQB0AGUAcgBpAGEAbEFnTWF0ZXJpYWwAQQBnAE0AYQB0AGUAcgBpAGEAbFJlZ3VsYXIAUgBlAGcAdQBsAGEAckFnTWF0ZXJpYWwAQQBnAE0AYQB0AGUAcgBpAGEAbEZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype"); font-weight: normal; font-style: normal; } .ag-theme-material { -webkit-font-smoothing: antialiased; background-color: #fff; color: rgba(0, 0, 0, 0.87); font-family: "Roboto", sans-serif; font-weight: 400; font-size: 13px; line-height: normal; } .ag-theme-material .ag-tab-header .ag-tab.ag-tab-selected { border-bottom: 2px solid #3f51b5; } .ag-theme-material label { margin-bottom: 0; } .ag-theme-material * { box-sizing: border-box; } .ag-theme-material *:focus, .ag-theme-material * *:before, .ag-theme-material * *:after { outline: none; box-sizing: border-box; } .ag-theme-material .ag-tab { box-sizing: content-box; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-1 { padding-left: 26px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-1 { padding-right: 26px; } .ag-theme-material .ag-ltr .ag-row-group-indent-1 { padding-left: 42px; } .ag-theme-material .ag-rtl .ag-row-group-indent-1 { padding-right: 42px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-2 { padding-left: 52px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-2 { padding-right: 52px; } .ag-theme-material .ag-ltr .ag-row-group-indent-2 { padding-left: 84px; } .ag-theme-material .ag-rtl .ag-row-group-indent-2 { padding-right: 84px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-3 { padding-left: 78px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-3 { padding-right: 78px; } .ag-theme-material .ag-ltr .ag-row-group-indent-3 { padding-left: 126px; } .ag-theme-material .ag-rtl .ag-row-group-indent-3 { padding-right: 126px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-4 { padding-left: 104px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-4 { padding-right: 104px; } .ag-theme-material .ag-ltr .ag-row-group-indent-4 { padding-left: 168px; } .ag-theme-material .ag-rtl .ag-row-group-indent-4 { padding-right: 168px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-5 { padding-left: 130px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-5 { padding-right: 130px; } .ag-theme-material .ag-ltr .ag-row-group-indent-5 { padding-left: 210px; } .ag-theme-material .ag-rtl .ag-row-group-indent-5 { padding-right: 210px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-6 { padding-left: 156px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-6 { padding-right: 156px; } .ag-theme-material .ag-ltr .ag-row-group-indent-6 { padding-left: 252px; } .ag-theme-material .ag-rtl .ag-row-group-indent-6 { padding-right: 252px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-7 { padding-left: 182px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-7 { padding-right: 182px; } .ag-theme-material .ag-ltr .ag-row-group-indent-7 { padding-left: 294px; } .ag-theme-material .ag-rtl .ag-row-group-indent-7 { padding-right: 294px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-8 { padding-left: 208px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-8 { padding-right: 208px; } .ag-theme-material .ag-ltr .ag-row-group-indent-8 { padding-left: 336px; } .ag-theme-material .ag-rtl .ag-row-group-indent-8 { padding-right: 336px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-9 { padding-left: 234px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-9 { padding-right: 234px; } .ag-theme-material .ag-ltr .ag-row-group-indent-9 { padding-left: 378px; } .ag-theme-material .ag-rtl .ag-row-group-indent-9 { padding-right: 378px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-10 { padding-left: 260px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-10 { padding-right: 260px; } .ag-theme-material .ag-ltr .ag-row-group-indent-10 { padding-left: 420px; } .ag-theme-material .ag-rtl .ag-row-group-indent-10 { padding-right: 420px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-11 { padding-left: 286px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-11 { padding-right: 286px; } .ag-theme-material .ag-ltr .ag-row-group-indent-11 { padding-left: 462px; } .ag-theme-material .ag-rtl .ag-row-group-indent-11 { padding-right: 462px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-12 { padding-left: 312px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-12 { padding-right: 312px; } .ag-theme-material .ag-ltr .ag-row-group-indent-12 { padding-left: 504px; } .ag-theme-material .ag-rtl .ag-row-group-indent-12 { padding-right: 504px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-13 { padding-left: 338px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-13 { padding-right: 338px; } .ag-theme-material .ag-ltr .ag-row-group-indent-13 { padding-left: 546px; } .ag-theme-material .ag-rtl .ag-row-group-indent-13 { padding-right: 546px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-14 { padding-left: 364px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-14 { padding-right: 364px; } .ag-theme-material .ag-ltr .ag-row-group-indent-14 { padding-left: 588px; } .ag-theme-material .ag-rtl .ag-row-group-indent-14 { padding-right: 588px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-15 { padding-left: 390px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-15 { padding-right: 390px; } .ag-theme-material .ag-ltr .ag-row-group-indent-15 { padding-left: 630px; } .ag-theme-material .ag-rtl .ag-row-group-indent-15 { padding-right: 630px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-16 { padding-left: 416px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-16 { padding-right: 416px; } .ag-theme-material .ag-ltr .ag-row-group-indent-16 { padding-left: 672px; } .ag-theme-material .ag-rtl .ag-row-group-indent-16 { padding-right: 672px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-17 { padding-left: 442px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-17 { padding-right: 442px; } .ag-theme-material .ag-ltr .ag-row-group-indent-17 { padding-left: 714px; } .ag-theme-material .ag-rtl .ag-row-group-indent-17 { padding-right: 714px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-18 { padding-left: 468px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-18 { padding-right: 468px; } .ag-theme-material .ag-ltr .ag-row-group-indent-18 { padding-left: 756px; } .ag-theme-material .ag-rtl .ag-row-group-indent-18 { padding-right: 756px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-19 { padding-left: 494px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-19 { padding-right: 494px; } .ag-theme-material .ag-ltr .ag-row-group-indent-19 { padding-left: 798px; } .ag-theme-material .ag-rtl .ag-row-group-indent-19 { padding-right: 798px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-20 { padding-left: 520px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-20 { padding-right: 520px; } .ag-theme-material .ag-ltr .ag-row-group-indent-20 { padding-left: 840px; } .ag-theme-material .ag-rtl .ag-row-group-indent-20 { padding-right: 840px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-21 { padding-left: 546px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-21 { padding-right: 546px; } .ag-theme-material .ag-ltr .ag-row-group-indent-21 { padding-left: 882px; } .ag-theme-material .ag-rtl .ag-row-group-indent-21 { padding-right: 882px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-22 { padding-left: 572px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-22 { padding-right: 572px; } .ag-theme-material .ag-ltr .ag-row-group-indent-22 { padding-left: 924px; } .ag-theme-material .ag-rtl .ag-row-group-indent-22 { padding-right: 924px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-23 { padding-left: 598px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-23 { padding-right: 598px; } .ag-theme-material .ag-ltr .ag-row-group-indent-23 { padding-left: 966px; } .ag-theme-material .ag-rtl .ag-row-group-indent-23 { padding-right: 966px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-24 { padding-left: 624px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-24 { padding-right: 624px; } .ag-theme-material .ag-ltr .ag-row-group-indent-24 { padding-left: 1008px; } .ag-theme-material .ag-rtl .ag-row-group-indent-24 { padding-right: 1008px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-25 { padding-left: 650px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-25 { padding-right: 650px; } .ag-theme-material .ag-ltr .ag-row-group-indent-25 { padding-left: 1050px; } .ag-theme-material .ag-rtl .ag-row-group-indent-25 { padding-right: 1050px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-26 { padding-left: 676px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-26 { padding-right: 676px; } .ag-theme-material .ag-ltr .ag-row-group-indent-26 { padding-left: 1092px; } .ag-theme-material .ag-rtl .ag-row-group-indent-26 { padding-right: 1092px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-27 { padding-left: 702px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-27 { padding-right: 702px; } .ag-theme-material .ag-ltr .ag-row-group-indent-27 { padding-left: 1134px; } .ag-theme-material .ag-rtl .ag-row-group-indent-27 { padding-right: 1134px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-28 { padding-left: 728px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-28 { padding-right: 728px; } .ag-theme-material .ag-ltr .ag-row-group-indent-28 { padding-left: 1176px; } .ag-theme-material .ag-rtl .ag-row-group-indent-28 { padding-right: 1176px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-29 { padding-left: 754px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-29 { padding-right: 754px; } .ag-theme-material .ag-ltr .ag-row-group-indent-29 { padding-left: 1218px; } .ag-theme-material .ag-rtl .ag-row-group-indent-29 { padding-right: 1218px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-30 { padding-left: 780px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-30 { padding-right: 780px; } .ag-theme-material .ag-ltr .ag-row-group-indent-30 { padding-left: 1260px; } .ag-theme-material .ag-rtl .ag-row-group-indent-30 { padding-right: 1260px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-31 { padding-left: 806px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-31 { padding-right: 806px; } .ag-theme-material .ag-ltr .ag-row-group-indent-31 { padding-left: 1302px; } .ag-theme-material .ag-rtl .ag-row-group-indent-31 { padding-right: 1302px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-32 { padding-left: 832px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-32 { padding-right: 832px; } .ag-theme-material .ag-ltr .ag-row-group-indent-32 { padding-left: 1344px; } .ag-theme-material .ag-rtl .ag-row-group-indent-32 { padding-right: 1344px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-33 { padding-left: 858px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-33 { padding-right: 858px; } .ag-theme-material .ag-ltr .ag-row-group-indent-33 { padding-left: 1386px; } .ag-theme-material .ag-rtl .ag-row-group-indent-33 { padding-right: 1386px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-34 { padding-left: 884px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-34 { padding-right: 884px; } .ag-theme-material .ag-ltr .ag-row-group-indent-34 { padding-left: 1428px; } .ag-theme-material .ag-rtl .ag-row-group-indent-34 { padding-right: 1428px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-35 { padding-left: 910px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-35 { padding-right: 910px; } .ag-theme-material .ag-ltr .ag-row-group-indent-35 { padding-left: 1470px; } .ag-theme-material .ag-rtl .ag-row-group-indent-35 { padding-right: 1470px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-36 { padding-left: 936px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-36 { padding-right: 936px; } .ag-theme-material .ag-ltr .ag-row-group-indent-36 { padding-left: 1512px; } .ag-theme-material .ag-rtl .ag-row-group-indent-36 { padding-right: 1512px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-37 { padding-left: 962px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-37 { padding-right: 962px; } .ag-theme-material .ag-ltr .ag-row-group-indent-37 { padding-left: 1554px; } .ag-theme-material .ag-rtl .ag-row-group-indent-37 { padding-right: 1554px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-38 { padding-left: 988px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-38 { padding-right: 988px; } .ag-theme-material .ag-ltr .ag-row-group-indent-38 { padding-left: 1596px; } .ag-theme-material .ag-rtl .ag-row-group-indent-38 { padding-right: 1596px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-39 { padding-left: 1014px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-39 { padding-right: 1014px; } .ag-theme-material .ag-ltr .ag-row-group-indent-39 { padding-left: 1638px; } .ag-theme-material .ag-rtl .ag-row-group-indent-39 { padding-right: 1638px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-40 { padding-left: 1040px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-40 { padding-right: 1040px; } .ag-theme-material .ag-ltr .ag-row-group-indent-40 { padding-left: 1680px; } .ag-theme-material .ag-rtl .ag-row-group-indent-40 { padding-right: 1680px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-41 { padding-left: 1066px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-41 { padding-right: 1066px; } .ag-theme-material .ag-ltr .ag-row-group-indent-41 { padding-left: 1722px; } .ag-theme-material .ag-rtl .ag-row-group-indent-41 { padding-right: 1722px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-42 { padding-left: 1092px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-42 { padding-right: 1092px; } .ag-theme-material .ag-ltr .ag-row-group-indent-42 { padding-left: 1764px; } .ag-theme-material .ag-rtl .ag-row-group-indent-42 { padding-right: 1764px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-43 { padding-left: 1118px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-43 { padding-right: 1118px; } .ag-theme-material .ag-ltr .ag-row-group-indent-43 { padding-left: 1806px; } .ag-theme-material .ag-rtl .ag-row-group-indent-43 { padding-right: 1806px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-44 { padding-left: 1144px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-44 { padding-right: 1144px; } .ag-theme-material .ag-ltr .ag-row-group-indent-44 { padding-left: 1848px; } .ag-theme-material .ag-rtl .ag-row-group-indent-44 { padding-right: 1848px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-45 { padding-left: 1170px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-45 { padding-right: 1170px; } .ag-theme-material .ag-ltr .ag-row-group-indent-45 { padding-left: 1890px; } .ag-theme-material .ag-rtl .ag-row-group-indent-45 { padding-right: 1890px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-46 { padding-left: 1196px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-46 { padding-right: 1196px; } .ag-theme-material .ag-ltr .ag-row-group-indent-46 { padding-left: 1932px; } .ag-theme-material .ag-rtl .ag-row-group-indent-46 { padding-right: 1932px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-47 { padding-left: 1222px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-47 { padding-right: 1222px; } .ag-theme-material .ag-ltr .ag-row-group-indent-47 { padding-left: 1974px; } .ag-theme-material .ag-rtl .ag-row-group-indent-47 { padding-right: 1974px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-48 { padding-left: 1248px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-48 { padding-right: 1248px; } .ag-theme-material .ag-ltr .ag-row-group-indent-48 { padding-left: 2016px; } .ag-theme-material .ag-rtl .ag-row-group-indent-48 { padding-right: 2016px; } .ag-theme-material .ag-ltr .ag-toolpanel-indent-49 { padding-left: 1274px; } .ag-theme-material .ag-rtl .ag-toolpanel-indent-49 { padding-right: 1274px; } .ag-theme-material .ag-ltr .ag-row-group-indent-49 { padding-left: 2058px; } .ag-theme-material .ag-rtl .ag-row-group-indent-49 { padding-right: 2058px; } .ag-theme-material .ag-cell .ag-icon { display: inline-block; vertical-align: middle; } .ag-theme-material .ag-checkbox, .ag-theme-material .ag-radio-button, .ag-theme-material .ag-toggle-button { display: flex; align-items: center; cursor: default; } .ag-theme-material .ag-checkbox label, .ag-theme-material .ag-radio-button label, .ag-theme-material .ag-toggle-button label { cursor: default; } .ag-theme-material .ag-checkbox label:empty, .ag-theme-material .ag-radio-button label:empty, .ag-theme-material .ag-toggle-button label:empty { margin: 0; } .ag-theme-material .ag-checkbox:not(.ag-label-align-left) label, .ag-theme-material .ag-radio-button:not(.ag-label-align-left) label, .ag-theme-material .ag-toggle-button:not(.ag-label-align-left) label { margin-left: 8px; } .ag-theme-material .ag-cell { -webkit-font-smoothing: subpixel-antialiased; } .ag-theme-material .ag-ltr .ag-row-group-leaf-indent { margin-left: 42px; } .ag-theme-material .ag-ltr .ag-cell { border-right: 1px solid transparent; } .ag-theme-material .ag-ltr .ag-cell:not(.ag-cell-focus).ag-cell-first-right-pinned:not(.ag-cell-range-left), .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-first-right-pinned:not(.ag-cell-range-left), .ag-theme-material .ag-ltr .ag-root:not(.ag-has-focus) .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left) { border-left: 1px solid #e2e2e2; } .ag-theme-material .ag-ltr .ag-cell:not(.ag-cell-focus).ag-cell-last-left-pinned:not(.ag-cell-range-right), .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-last-left-pinned:not(.ag-cell-range-right), .ag-theme-material .ag-ltr .ag-root:not(.ag-has-focus) .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right) { border-right: 1px solid #e2e2e2; } .ag-theme-material .ag-rtl .ag-row-group-leaf-indent { margin-right: 42px; } .ag-theme-material .ag-rtl .ag-cell { border-left: 1px solid transparent; } .ag-theme-material .ag-rtl .ag-cell:not(.ag-cell-focus).ag-cell-first-right-pinned:not(.ag-cell-range-left), .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-first-right-pinned:not(.ag-cell-range-left), .ag-theme-material .ag-rtl .ag-root:not(.ag-has-focus) .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left) { border-left: 1px solid #e2e2e2; } .ag-theme-material .ag-rtl .ag-cell:not(.ag-cell-focus).ag-cell-last-left-pinned:not(.ag-cell-range-right), .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-last-left-pinned:not(.ag-cell-range-right), .ag-theme-material .ag-rtl .ag-root:not(.ag-has-focus) .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right) { border-right: 1px solid #e2e2e2; } .ag-theme-material .ag-value-change-delta { padding-right: 2px; } .ag-theme-material .ag-value-change-delta-up { color: #43a047; } .ag-theme-material .ag-value-change-delta-down { color: #e53935; } .ag-theme-material .ag-value-change-value { background-color: transparent; border-radius: 1px; padding-left: 1px; padding-right: 1px; transition: background-color 1s; } .ag-theme-material .ag-value-change-value-highlight { background-color: #00acc1; transition: background-color 0.1s; } .ag-theme-material .ag-input-wrapper input:not([type]), .ag-theme-material .ag-input-wrapper input[type="text"], .ag-theme-material .ag-input-wrapper input[type="number"], .ag-theme-material .ag-input-wrapper input[type="tel"], .ag-theme-material .ag-input-wrapper input[type="date"], .ag-theme-material .ag-input-wrapper input[type="datetime-local"] { background: transparent; color: rgba(0, 0, 0, 0.87); font-family: inherit; font-size: inherit; height: 40px; padding-bottom: 8px; border-width: 0; border-bottom: 2px solid #e2e2e2; } .ag-theme-material .ag-input-wrapper input:not([type]):focus, .ag-theme-material .ag-input-wrapper input[type="text"]:focus, .ag-theme-material .ag-input-wrapper input[type="number"]:focus, .ag-theme-material .ag-input-wrapper input[type="tel"]:focus, .ag-theme-material .ag-input-wrapper input[type="date"]:focus, .ag-theme-material .ag-input-wrapper input[type="datetime-local"]:focus { border-bottom: 2px solid #3f51b5; outline: none; } .ag-theme-material .ag-input-wrapper input:not([type])::placeholder, .ag-theme-material .ag-input-wrapper input[type="text"]::placeholder, .ag-theme-material .ag-input-wrapper input[type="number"]::placeholder, .ag-theme-material .ag-input-wrapper input[type="tel"]::placeholder, .ag-theme-material .ag-input-wrapper input[type="date"]::placeholder, .ag-theme-material .ag-input-wrapper input[type="datetime-local"]::placeholder { color: rgba(0, 0, 0, 0.38); } .ag-theme-material .ag-input-wrapper input:not([type]):disabled, .ag-theme-material .ag-input-wrapper input[type="text"]:disabled, .ag-theme-material .ag-input-wrapper input[type="number"]:disabled, .ag-theme-material .ag-input-wrapper input[type="tel"]:disabled, .ag-theme-material .ag-input-wrapper input[type="date"]:disabled, .ag-theme-material .ag-input-wrapper input[type="datetime-local"]:disabled { border-bottom: 1px solid #e2e2e2; } .ag-theme-material .ag-input-wrapper input:not([type]):disabled, .ag-theme-material .ag-input-wrapper input[type="text"]:disabled, .ag-theme-material .ag-input-wrapper input[type="number"]:disabled, .ag-theme-material .ag-input-wrapper input[type="tel"]:disabled, .ag-theme-material .ag-input-wrapper input[type="date"]:disabled, .ag-theme-material .ag-input-wrapper input[type="datetime-local"]:disabled { color: rgba(0, 0, 0, 0.38); } .ag-theme-material .ag-input-wrapper input[type="date"] { flex: 1 1 auto; } .ag-theme-material .ag-input-wrapper input[type="range"] { padding: 0; } .ag-theme-material .ag-input-wrapper textarea { background: transparent; color: rgba(0, 0, 0, 0.87); font-family: inherit; font-size: inherit; height: 40px; padding-bottom: 8px; border-width: 0; border-bottom: 2px solid #e2e2e2; } .ag-theme-material .ag-input-wrapper textarea:focus { border-bottom: 2px solid #3f51b5; outline: none; } .ag-theme-material .ag-input-wrapper textarea::placeholder { color: rgba(0, 0, 0, 0.38); } .ag-theme-material .ag-input-wrapper textarea:disabled { border-bottom: 1px solid #e2e2e2; } .ag-theme-material .ag-input-wrapper textarea:disabled { color: rgba(0, 0, 0, 0.38); } .ag-theme-material .ag-header { background-color: #fff; color: rgba(0, 0, 0, 0.54); font-weight: 700; font-size: 12px; font-family: "Roboto", sans-serif; border-bottom: 1px solid #e2e2e2; } .ag-theme-material .ag-pinned-right-header { border-left: 1px solid #e2e2e2; } .ag-theme-material .ag-pinned-left-header { border-right: 1px solid #e2e2e2; } .ag-theme-material .ag-header-row { border: none; height: 56px; } .ag-theme-material .ag-row { border-style: solid; border-color: #e2e2e2; height: 48px; border-width: 0; } .ag-theme-material .ag-row:not(.ag-row-first) { border-width: 1px 0 0; } .ag-theme-material .ag-row.ag-row-last { border-bottom-width: 1px; } .ag-theme-material .ag-horizontal-left-spacer { border-right: 1px solid #e2e2e2; } .ag-theme-material .ag-horizontal-left-spacer.ag-scroller-corner { border-right: none; } .ag-theme-material .ag-horizontal-right-spacer { border-left: 1px solid #e2e2e2; } .ag-theme-material .ag-horizontal-right-spacer.ag-scroller-corner { border-left: none; } .ag-theme-material .ag-row-hover { background-color: #fafafa; } .ag-theme-material .ag-numeric-cell { text-align: right; } .ag-theme-material .ag-header-cell-label .ag-header-icon { margin-left: 8px; opacity: 0.87; } .ag-theme-material .ag-header-cell, .ag-theme-material .ag-header-group-cell { border-style: solid; border-color: #e2e2e2; padding-left: 24px; padding-right: 24px; border-width: 0; } .ag-theme-material .ag-header-cell.ag-header-cell-moving, .ag-theme-material .ag-header-group-cell.ag-header-cell-moving { background-color: #f2f2f2; } .ag-theme-material .ag-header-cell:not(.ag-header-group-cell-no-group), .ag-theme-material .ag-header-group-cell:not(.ag-header-group-cell-no-group) { border-top-width: 1px; } .ag-theme-material .ag-header-row:first-child .ag-header-cell, .ag-theme-material .ag-header-row:first-child .ag-header-group-cell { border-top-width: 0; } .ag-theme-material .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:hover, .ag-theme-material .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell.ag-column-resizing, .ag-theme-material .ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:hover, .ag-theme-material .ag-header-cell:not(.ag-column-resizing) + .ag-header-cell.ag-column-resizing, .ag-theme-material .ag-header-group-cell:first-of-type:hover, .ag-theme-material .ag-header-group-cell:first-of-type.ag-column-resizing, .ag-theme-material .ag-header-cell:first-of-type:hover, .ag-theme-material .ag-header-cell:first-of-type.ag-column-resizing { background-color: #f2f2f2; } .ag-theme-material .ag-header-cell-resize { cursor: col-resize; } .ag-theme-material .ag-header-select-all { margin-right: 24px; } .ag-theme-material .ag-cell { line-height: 46px; padding-left: 24px; padding-right: 24px; border: 1px solid transparent; padding-left: 23px; padding-right: 23px; } .ag-theme-material .ag-row-drag { cursor: move; cursor: grab; min-width: 42px; } .ag-theme-material .ag-row-dragging, .ag-theme-material .ag-row-dragging .ag-row-drag { cursor: move; } .ag-theme-material .ag-column-drag { cursor: move; cursor: grab; } .ag-theme-material .ag-row-dragging { opacity: 0.5; } .ag-theme-material .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected), .ag-theme-material .ag-ltr .ag-has-focus .ag-cell-focus.ag-cell-range-single-cell, .ag-theme-material .ag-ltr .ag-cell-focus.ag-cell-range-single-cell.ag-cell-range-handle, .ag-theme-material .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected), .ag-theme-material .ag-rtl .ag-has-focus .ag-cell-focus.ag-cell-range-single-cell, .ag-theme-material .ag-rtl .ag-cell-focus.ag-cell-range-single-cell.ag-cell-range-handle { border: 1px solid #3f51b5; outline: initial; } .ag-theme-material .ag-header-cell-resize { width: 16px; } .ag-theme-material .ag-menu { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; padding: 0; } .ag-theme-material .ag-menu .ag-menu-list { cursor: default; margin-bottom: 8px; margin-top: 8px; width: 100%; } .ag-theme-material .ag-menu .ag-menu-option-active { background-color: #fafafa; } .ag-theme-material .ag-menu .ag-menu-option-disabled { opacity: 0.5; } .ag-theme-material .ag-menu .ag-menu-option-text { margin-left: 8px; } .ag-theme-material .ag-menu .ag-menu-option-icon { padding-left: 8px; padding-right: 8px; min-width: 34px; } .ag-theme-material .ag-menu .ag-menu-option-shortcut { padding-left: 16px; } .ag-theme-material .ag-menu .ag-menu-separator { height: 16px; } .ag-theme-material .ag-menu .ag-menu-separator > span { background-image: url("data:image/svg+xml,%3Csvg%20width%3D'1'%20height%3D'16px'%20viewBox%3D'0%200%201%2016px'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cline%20x1%3D'0'%20y1%3D'8px'%20x2%3D'1'%20y2%3D'8px'%20stroke-width%3D'1'%20stroke%3D'%23E2E2E2'%2F%3E%3C%2Fsvg%3E"); } .ag-theme-material .ag-menu .ag-menu-option-popup-pointer { width: 34px; text-align: center; } .ag-theme-material.ag-dnd-ghost { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; border: 1px solid #e2e2e2; color: rgba(0, 0, 0, 0.54); font-weight: 700; font-size: 12px; font-family: "Roboto", sans-serif; height: 56px !important; line-height: 56px; margin: 0; padding: 0 16px; transform: translateY(16px); } .ag-theme-material.ag-dnd-ghost span, .ag-theme-material.ag-dnd-ghost div { height: 100%; margin: 0; padding: 0; } .ag-theme-material.ag-dnd-ghost .ag-dnd-ghost-icon { margin-right: 8px; opacity: 0.87; } .ag-theme-material .ag-tab-header { background: #eee; min-width: 220px; width: 100%; display: flex; } .ag-theme-material .ag-tab-header .ag-tab { display: flex; border-bottom: 2px solid transparent; height: 32px; flex: none; align-items: center; justify-content: center; flex: 1 1 auto; } .ag-theme-material .ag-tab-body { padding: 4px 0; } .ag-theme-material .ag-tab-body .ag-menu-list { margin-bottom: 0; margin-top: 0; } .ag-theme-material .ag-tab-body .ag-menu-list > div:first-child > span { padding-top: 0; } .ag-theme-material .ag-tab-body .ag-menu-list > div:last-child > span { padding-bottom: 0; } .ag-theme-material .ag-tab-body .ag-menu-list > div:last-child > .ag-menu-option-popup-pointer { background-position-y: 0; } .ag-theme-material .ag-filter .ag-filter-select, .ag-theme-material .ag-filter .ag-filter-body { margin-bottom: 8px; } .ag-theme-material .ag-filter .ag-filter-body { margin-top: 0; } .ag-theme-material .ag-filter .ag-filter-filter { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-filter .ag-filter-select { margin: 8px; } .ag-theme-material .ag-filter input[type="radio"] { margin: 0 3px 0 6px; width: 12px; height: 17px; vertical-align: top; } .ag-theme-material .ag-filter input[type="text"], .ag-theme-material .ag-filter input[type="date"] { padding-left: 8px; } .ag-theme-material .ag-filter .ag-set-filter-list { height: 240px; } .ag-theme-material .ag-filter .ag-set-filter-item { height: 40px; } .ag-theme-material .ag-filter .ag-set-filter-item > div, .ag-theme-material .ag-filter .ag-set-filter-item > span { margin-left: 5px; } .ag-theme-material .ag-filter .ag-filter-header-container { border-bottom: 1px solid #e2e2e2; padding-bottom: 4px; } .ag-theme-material .ag-filter .ag-filter-apply-panel { display: flex; justify-content: flex-end; padding: 8px; padding-top: 16px; } .ag-theme-material .ag-filter .ag-filter-apply-panel button { line-height: 1.5; appearance: none; background-color: transparent; border: 0; color: #3f51b5; font-family: inherit; font-size: inherit; margin: 0; padding: 0; text-transform: uppercase; } .ag-theme-material .ag-filter .ag-filter-apply-panel button + button { margin-left: 16px; } .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column-group, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column { height: 32px; } .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column-group .ag-column-select-checkbox, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column-group .ag-column-tool-panel-column-label, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column-group .ag-column-group-icons, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column .ag-column-select-checkbox, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column .ag-column-tool-panel-column-label, .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column .ag-column-group-icons { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-column-select-panel .ag-primary-cols-list-panel { border-top: 1px solid #e2e2e2; padding-top: 8px; } .ag-theme-material .ag-column-select-panel .ag-primary-cols-list-panel > div { cursor: pointer; } .ag-theme-material .ag-column-select-panel .ag-column-tool-panel-column.ag-toolpanel-add-group-indent { margin-left: 34px; } .ag-theme-material .ag-primary-cols-header-panel { border-top: 1px solid #e2e2e2; height: 56px; align-items: center; } .ag-theme-material .ag-primary-cols-header-panel > div { cursor: pointer; margin: 0 8px; } .ag-theme-material .ag-primary-cols-header-panel .ag-filter-body { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-tool-panel-wrapper { border-right: 0; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel { width: 100%; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel .ag-filter-toolpanel-instance { color: rgba(0, 0, 0, 0.54); font-weight: 600; flex: auto; flex-direction: column; flex-wrap: nowrap; display: flex; flex-flow: column nowrap; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel .ag-filter-toolpanel-instance .ag-filter-toolpanel-header { padding: 0 5px; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel .ag-filter-toolpanel-instance .ag-filter-toolpanel-header > div { margin: auto 0; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel .ag-filter-body-wrapper { padding-top: 5px; } .ag-theme-material .ag-tool-panel-wrapper .ag-filter-panel .ag-filter-air { border: 1px solid #e2e2e2; border-left: 0; border-right: 0; padding: 8px 0; } .ag-theme-material .ag-tool-panel-wrapper .ag-pivot-mode-panel { height: 56px; display: flex; flex: none; } .ag-theme-material .ag-tool-panel-wrapper .ag-pivot-mode-panel .ag-pivot-mode-select { display: flex; align-items: center; margin-left: 8px; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-select-panel { border-bottom: 1px solid #e2e2e2; padding-bottom: 7px; padding-top: 0; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-drop { border-bottom: 1px solid #e2e2e2; padding: 8px 0; padding-bottom: 16px; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-drop .ag-column-drop-empty-message { color: rgba(0, 0, 0, 0.38); font-weight: 700; font-size: 12px; font-family: "Roboto", sans-serif; padding-left: 34px; padding-right: 8px; margin-top: 8px; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-drop .ag-column-drop-list { cursor: default; margin-top: 8px; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-drop > div:first-child > span:first-child { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-tool-panel-wrapper .ag-column-drop:last-child { border-bottom: 0; } .ag-theme-material .ag-numeric-header .ag-header-cell-label .ag-header-icon { margin-left: 0; margin-right: 8px; } .ag-theme-material .ag-paging-panel { border-top: 1px solid #e2e2e2; color: rgba(0, 0, 0, 0.54); height: 56px; padding: 0 24px; } .ag-theme-material .ag-paging-panel > span { margin-left: 32px; } .ag-theme-material .ag-paging-page-summary-panel .ag-icon { width: 18px; height: 18px; } .ag-theme-material .ag-paging-page-summary-panel .ag-paging-button button { cursor: pointer; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; padding: 0; } .ag-theme-material .ag-paging-page-summary-panel .ag-paging-button.ag-disabled .ag-icon { color: rgba(0, 0, 0, 0.38); opacity: 0.38; } .ag-theme-material .ag-paging-page-summary-panel .ag-paging-button.ag-disabled button { cursor: default; } .ag-theme-material .ag-paging-page-summary-panel span { margin: 0 8px; } .ag-theme-material .ag-row-selected { background-color: #eee; } .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell), .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell) { border: 1px solid transparent; } .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top, .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top { border-top-color: #3f51b5; } .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right, .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right { border-right-color: #3f51b5; } .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom, .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom { border-bottom-color: #3f51b5; } .ag-theme-material .ag-ltr .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left, .ag-theme-material .ag-rtl .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left { border-left-color: #3f51b5; } .ag-theme-material .ag-cell-range-selected:not(.ag-cell-focus) { background-color: rgba(122, 134, 203, 0.1); } .ag-theme-material .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart { background-color: rgba(0, 88, 255, 0.1); } .ag-theme-material .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category { background-color: rgba(0, 255, 132, 0.1); } .ag-theme-material .ag-cell-range-selected-1:not(.ag-cell-focus) { background-color: rgba(122, 134, 203, 0.2); } .ag-theme-material .ag-cell-range-selected-2:not(.ag-cell-focus) { background-color: rgba(122, 134, 203, 0.3); } .ag-theme-material .ag-cell-range-selected-3:not(.ag-cell-focus) { background-color: rgba(122, 134, 203, 0.4); } .ag-theme-material .ag-cell-range-selected-4:not(.ag-cell-focus) { background-color: rgba(122, 134, 203, 0.5); } .ag-theme-material .ag-ltr .ag-selection-fill-top, .ag-theme-material .ag-rtl .ag-selection-fill-top { border-top: 1px dashed #3f51b5; } .ag-theme-material .ag-ltr .ag-selection-fill-top.ag-cell.ag-cell-range-selected, .ag-theme-material .ag-rtl .ag-selection-fill-top.ag-cell.ag-cell-range-selected { border-top: 1px dashed #afafaf; } .ag-theme-material .ag-ltr .ag-selection-fill-right, .ag-theme-material .ag-rtl .ag-selection-fill-right { border-right: 1px dashed #3f51b5; } .ag-theme-material .ag-ltr .ag-selection-fill-right.ag-cell.ag-cell-range-selected, .ag-theme-material .ag-rtl .ag-selection-fill-right.ag-cell.ag-cell-range-selected { border-right: 1px dashed #afafaf; } .ag-theme-material .ag-ltr .ag-selection-fill-bottom, .ag-theme-material .ag-rtl .ag-selection-fill-bottom { border-bottom: 1px dashed #3f51b5; } .ag-theme-material .ag-ltr .ag-selection-fill-bottom.ag-cell.ag-cell-range-selected, .ag-theme-material .ag-rtl .ag-selection-fill-bottom.ag-cell.ag-cell-range-selected { border-bottom: 1px dashed #afafaf; } .ag-theme-material .ag-ltr .ag-selection-fill-left, .ag-theme-material .ag-rtl .ag-selection-fill-left { border-left: 1px dashed #3f51b5; } .ag-theme-material .ag-ltr .ag-selection-fill-left.ag-cell.ag-cell-range-selected, .ag-theme-material .ag-rtl .ag-selection-fill-left.ag-cell.ag-cell-range-selected { border-left: 1px dashed #afafaf; } .ag-theme-material .ag-fill-handle, .ag-theme-material .ag-range-handle { position: absolute; width: 6px; height: 6px; bottom: -1px; right: -1px; background-color: #3f51b5; } .ag-theme-material .ag-fill-handle { cursor: cell; } .ag-theme-material .ag-range-handle { cursor: nwse-resize; } .ag-theme-material .ag-cell.ag-cell-inline-editing { padding: 24px; height: 72px; } .ag-theme-material .ag-cell.ag-cell-inline-editing { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; background-color: #fafafa; } .ag-theme-material .ag-popup-editor { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; background-color: #fafafa; padding: 0; } .ag-theme-material .ag-popup-editor .ag-large-textarea textarea { height: auto; padding: 24px; } .ag-theme-material .ag-virtual-list-container .ag-virtual-list-item { height: 40px; } .ag-theme-material .ag-rich-select { background-color: #fafafa; } .ag-theme-material .ag-rich-select .ag-rich-select-list { width: 200px; height: 312px; } .ag-theme-material .ag-rich-select .ag-rich-select-value { padding: 0 8px 0 24px; height: 48px; } .ag-theme-material .ag-rich-select .ag-virtual-list-item { cursor: default; height: 48px; } .ag-theme-material .ag-rich-select .ag-virtual-list-item:hover { background-color: #fafafa; } .ag-theme-material .ag-rich-select .ag-rich-select-row { padding-left: 24px; } .ag-theme-material .ag-rich-select .ag-rich-select-row-selected { background-color: #eee; } .ag-theme-material .ag-ltr .ag-floating-filter-button { margin-left: 24px; } .ag-theme-material .ag-floating-filter-button button { appearance: none; background: transparent; border: 0; height: 18px; padding: 0; width: 18px; } .ag-theme-material .ag-selection-checkbox:not(.ag-hidden) ~ .ag-cell-value:not(:empty), .ag-theme-material .ag-selection-checkbox:not(.ag-hidden) + .ag-group-value:not(:empty), .ag-theme-material .ag-group-expanded:not(.ag-hidden) ~ .ag-cell-value:not(:empty), .ag-theme-material .ag-group-expanded:not(.ag-hidden) + .ag-group-value:not(:empty), .ag-theme-material .ag-group-contracted:not(.ag-hidden) ~ .ag-cell-value:not(:empty), .ag-theme-material .ag-group-contracted:not(.ag-hidden) + .ag-group-value:not(:empty), .ag-theme-material .ag-group-checkbox:not(.ag-invisible) ~ .ag-cell-value:not(:empty), .ag-theme-material .ag-group-checkbox:not(.ag-invisible) + .ag-group-value:not(:empty) { margin-left: 24px; } .ag-theme-material .ag-selection-checkbox:not(.ag-hidden) ~ .ag-group-checkbox, .ag-theme-material .ag-group-expanded:not(.ag-hidden) ~ .ag-group-checkbox, .ag-theme-material .ag-group-contracted:not(.ag-hidden) ~ .ag-group-checkbox, .ag-theme-material .ag-group-checkbox:not(.ag-invisible) ~ .ag-group-checkbox { margin-left: 24px; } .ag-theme-material .ag-group-child-count { margin-left: 2px; } .ag-theme-material .ag-selection-checkbox span { position: relative; } .ag-theme-material .ag-column-drop-horizontal { background-color: #eee; height: 48px; padding-left: 24px; } .ag-theme-material .ag-column-drop-horizontal .ag-icon-group, .ag-theme-material .ag-column-drop-horizontal .ag-icon-pivot { margin-right: 24px; } .ag-theme-material .ag-column-drop-horizontal .ag-icon-small-left, .ag-theme-material .ag-column-drop-horizontal .ag-icon-small-right { margin: 0 8px; opacity: 0.54; } .ag-theme-material .ag-column-drop-horizontal .ag-column-drop-empty-message { opacity: 0.38; } .ag-theme-material .ag-column-drop-cell { background: #e2e2e2; border-radius: 32px; min-height: 32px; padding: 0 4px; } .ag-theme-material .ag-column-drop-cell .ag-column-drop-cell-text { margin: 0 8px; } .ag-theme-material .ag-column-drop-cell .ag-column-drop-cell-button { min-width: 32px; margin: 0 4px; opacity: 0.54; } .ag-theme-material .ag-column-drop-cell .ag-column-drop-cell-button:hover { opacity: 0.87; } .ag-theme-material .ag-column-drop-cell .ag-column-drag { margin-left: 16px; } .ag-theme-material .ag-column-drop-vertical .ag-column-drop-cell { margin-top: 8px; } .ag-theme-material .ag-select-agg-func-popup { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; background: #fff; height: 140px; padding: 0; } .ag-theme-material .ag-select-agg-func-popup .ag-virtual-list-item { cursor: default; line-height: 40px; padding-left: 16px; } .ag-theme-material .ag-set-filter-list, .ag-theme-material .ag-menu-column-select-wrapper { width: auto; } .ag-theme-material .ag-column-drop-vertical > .ag-column-drop-cell { margin-left: 8px; margin-top: 0; } .ag-theme-material .ag-cell-data-changed { background-color: #00acc1 !important; } .ag-theme-material .ag-cell-data-changed-animation { background-color: transparent; transition: background-color 1s; } .ag-theme-material .ag-stub-cell { padding-left: 24px; padding-top: 8px; } .ag-theme-material .ag-stub-cell .ag-loading-icon { animation-name: spin; animation-duration: 1000ms; animation-iteration-count: infinite; animation-timing-function: linear; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .ag-theme-material .ag-stub-cell .ag-loading-text { margin-left: 8px; margin-top: 8px; } .ag-theme-material .ag-floating-top { border-bottom: 1px solid #e2e2e2; } .ag-theme-material .ag-floating-bottom { border-top: 1px solid #e2e2e2; } .ag-theme-material .ag-status-bar { background: #fff; border: 1px solid #e2e2e2; border-top-width: 0; color: rgba(0, 0, 0, 0.38); font-weight: 700; font-size: 12px; font-family: "Roboto", sans-serif; padding-right: 32px; padding-left: 32px; line-height: 1.5; } .ag-theme-material .ag-name-value-value { color: rgba(0, 0, 0, 0.87); } .ag-theme-material .ag-status-bar-center { text-align: center; } .ag-theme-material .ag-name-value { margin-left: 8px; margin-right: 8px; padding-top: 16px; padding-bottom: 16px; } .ag-theme-material .ag-details-row { padding: 40px; } .ag-theme-material .ag-overlay-loading-wrapper { background-color: rgba(255, 255, 255, 0.5); } .ag-theme-material .ag-overlay-loading-center { background: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); padding: 8px; } .ag-theme-material .ag-side-bar { background-color: #fafafa; border: 1px solid #e2e2e2; border-left-width: 0; position: relative; } .ag-theme-material .ag-side-bar .ag-side-buttons { padding-top: 32px; background: #fff; width: 22px; position: relative; } .ag-theme-material .ag-side-bar .ag-side-buttons .ag-side-button button { background: transparent; border: 0; color: rgba(0, 0, 0, 0.87); padding: 16px 0 16px 0; width: 100%; margin: 0; min-height: 144px; border-width: 1px 0 1px 0; border-style: solid; border-color: transparent; background-position-y: center; background-position-x: center; background-repeat: no-repeat; } .ag-theme-material .ag-side-bar .ag-side-buttons .ag-selected button { background-color: #fafafa; margin-left: -1px; padding-left: 1px; border-color: #e2e2e2; } .ag-theme-material .ag-side-bar .ag-panel-container { border-right: 1px solid #e2e2e2; } .ag-theme-material .ag-side-bar.full-width .ag-panel-container { border-right: 0; } .ag-theme-material .ag-side-bar .ag-column-drop { min-height: 50px; } .ag-theme-material .ag-primary-cols-filter-wrapper { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-group-component { background-color: #fdfdfd; padding: 0px; border: 0 solid #efefef; border-top-width: 1px; } .ag-theme-material .ag-group-component.ag-disabled > .ag-group-component-label .ag-group-component-title, .ag-theme-material .ag-group-component.ag-disabled > .ag-group-component-container { opacity: 0.5; } .ag-theme-material .ag-group-component .ag-group-component-title-bar { background-color: #f0f0f0; height: 18px; font-size: 13px; font-family: "Roboto", sans-serif; height: 26px; } .ag-theme-material .ag-group-component:not(.ag-collapsible) > div { margin-left: 0; } .ag-theme-material .ag-group-component:not(.ag-collapsible) > .ag-group-component-title-bar { margin-left: 0; padding: 8px; } .ag-theme-material .ag-group-component:not(.ag-collapsible) > .ag-group-component-title-bar .ag-column-group-icons { display: none; } .ag-theme-material .ag-group-component .ag-group-component-toolbar { background-color: #f7f7f7; padding: 8px; border: 0 solid #e2e2e2; } .ag-theme-material .ag-group-component > .ag-group-component-container { margin-left: 16px; padding: 8px; } .ag-theme-material .ag-group-component .ag-group-item { margin: 4px 0; } .ag-theme-material .ag-group-component .ag-group-item .ag-group-component-title-bar { height: 18px; } .ag-theme-material .ag-labeled label { margin-right: 8px; white-space: nowrap; } .ag-theme-material .ag-labeled.ag-label-align-top label { margin-bottom: 4px; } .ag-theme-material .ag-slider > .ag-wrapper > div:not(:first-of-type), .ag-theme-material .ag-angle-select > .ag-wrapper > div:not(:first-of-type) { margin-left: 16px; } .ag-theme-material .ag-angle-select .ag-angle-select-field .ag-parent-circle { width: 24px; height: 24px; border-radius: 12px; box-shadow: 0 0 2px rgba(0, 0, 0, 0.9); background-color: #ffffff; } .ag-theme-material .ag-angle-select .ag-angle-select-field .ag-child-circle { top: 4px; left: 12px; width: 6px; height: 6px; margin-left: -3px; margin-top: -4px; border-radius: 3px; background-color: #4c4c4c; } .ag-theme-material .ag-toggle-button .ag-input-wrapper { height: 18px; width: 40px; background-color: #fff; border: 1px solid #333; border-radius: 500rem; } .ag-theme-material .ag-toggle-button .ag-input-wrapper .ag-icon { width: 18px; height: 18px; border: 1px solid #333; border-radius: 500rem; right: calc(100% - 18px); } .ag-theme-material .ag-toggle-button.ag-selected .ag-input-wrapper { background-color: #ff4081; } .ag-theme-material .ag-toggle-button.ag-selected .ag-input-wrapper .ag-icon { background: #fff; right: -1px; } .ag-theme-material .ag-color-picker > .ag-wrapper { border: 1px solid #e2e2e2; border-radius: 5px; } .ag-theme-material .ag-color-picker > .ag-wrapper > div { width: 18px; height: 18px; } .ag-theme-material .ag-color-picker > .ag-wrapper button { background-color: #fff; } .ag-theme-material .ag-color-picker > .ag-wrapper button:hover { background-color: #fafafa; } .ag-theme-material .ag-dialog.ag-color-dialog { border-radius: 5px; } .ag-theme-material .ag-color-panel { padding: 8px; } .ag-theme-material .ag-color-panel .ag-spectrum-color { background-color: red; border-radius: 2px; } .ag-theme-material .ag-color-panel .ag-spectrum-tools { padding: 10px; } .ag-theme-material .ag-color-panel .ag-spectrum-sat { background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0)); } .ag-theme-material .ag-color-panel .ag-spectrum-val { background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0)); } .ag-theme-material .ag-color-panel .ag-spectrum-dragger { border-radius: 12px; height: 12px; width: 12px; border: 1px solid white; background: black; box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24); } .ag-theme-material .ag-color-panel .ag-spectrum-hue-background { border-radius: 2px; } .ag-theme-material .ag-color-panel .ag-spectrum-alpha-background { border-radius: 2px; } .ag-theme-material .ag-color-panel .ag-hue-alpha { margin-bottom: 10px; height: 11px; border-radius: 2px; } .ag-theme-material .ag-color-panel .ag-spectrum-slider { margin-top: -12px; width: 13px; height: 13px; border-radius: 13px; background-color: #f8f8f8; box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37); } .ag-theme-material .ag-color-panel .ag-spectrum-text-value { font-weight: bold; line-height: 20px; color: #333; } .ag-theme-material .ag-color-panel .ag-spectrum-text-value:focus { border: 1px solid #0d77e4; padding: 2px; } .ag-theme-material .ag-color-panel .ag-recent-colors > div { margin: 0 3px; } .ag-theme-material .ag-color-panel .ag-recent-colors > div:first-child { margin-left: 0; } .ag-theme-material .ag-color-panel .ag-recent-colors > div:last-child { margin-right: 0; } .ag-theme-material.ag-popup > div:not(.ag-tooltip-custom) { box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); } .ag-theme-material .ag-panel { background-color: #fff; border: 1px solid #e2e2e2; } .ag-dragging-range-handle .ag-theme-material .ag-panel.ag-dialog, .ag-dragging-fill-handle .ag-theme-material .ag-panel.ag-dialog { opacity: 0.7; pointer-events: none; } .ag-theme-material .ag-panel .ag-title-bar { background-color: #fff; border-bottom: 1px solid #fcfcfc; color: rgba(0, 0, 0, 0.54); height: 56px; font-size: 12px; font-weight: 700; font-family: "Roboto", sans-serif; padding-left: 24px; padding: 5px 10px; } .ag-theme-material .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button { height: 20px; width: 20px; border-radius: 5px; } .ag-theme-material .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button .ag-icon { line-height: 20px; font-size: 20px; } .ag-theme-material .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button:hover, .ag-theme-material .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button.ag-has-popup { background-color: #e6e6e6; } .ag-theme-material .ag-panel .ag-title-bar .ag-title-bar-buttons .ag-button:not(:last-child) { margin-right: 5px; } .ag-theme-material .ag-panel .ag-message-box .ag-message-box-button-bar { height: 30px; background-color: #fff; padding: 2px; } .ag-theme-material .ag-panel .ag-message-box .ag-message-box-button-bar button { border-radius: 2px; } .ag-theme-material .ag-tooltip { background-color: #535353; color: rgba(0, 0, 0, 0.87); border-radius: 2px; padding: 5px; border-width: 1px; border-style: solid; border-color: #ebebeb; transition: opacity 1s; } .ag-theme-material .ag-tooltip.ag-tooltip-hiding { opacity: 0; } .ag-theme-material .ag-chart .ag-chart-menu { border-radius: 5px; background: #fff; } .ag-theme-material .ag-chart .ag-chart-menu > span:hover { background-color: #e6e6e6; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-group-component-container { margin-left: 0; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail { border: 1px solid #e2e2e2; border-radius: 5px; margin: 5px; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail:nth-child(2n + 2):not(:last-child) { margin-left: auto; margin-right: auto; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail:nth-child(3n + 1) { margin-left: 2px; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail:nth-child(3n) { margin-right: 2px; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-mini-wrapper .ag-chart-mini-thumbnail.ag-selected { border-color: #3f51b5; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-nav-bar .ag-nav-card-selector .ag-nav-card-item { color: rgba(0, 0, 0, 0.87); font-size: 11px; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-settings .ag-chart-settings-nav-bar .ag-nav-card-selector .ag-nav-card-item.ag-selected { color: #3f51b5; } .ag-theme-material .ag-chart-tabbed-menu .ag-chart-format .ag-chart-format-wrapper .ag-group-item { margin: 9.6px 0; } .ag-theme-material .ag-icon { /* use !important to prevent issues with browser extensions that change fonts */ font-family: "agGridMaterial"; speak: none; font-size: 18px; color: #333; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .ag-theme-material .ag-icon-aggregation:before { content: "\E900"; } .ag-theme-material .ag-icon-arrows:before { content: "\E901"; } .ag-theme-material .ag-icon-asc:before { content: "\E902"; } .ag-theme-material .ag-icon-cancel:before { content: "\E903"; } .ag-theme-material .ag-icon-chart:before { content: "\E904"; } .ag-theme-material .ag-icon-checkbox-checked:before { content: "\E905"; } .ag-theme-material .ag-icon-checkbox-indeterminate:before { content: "\E906"; } .ag-theme-material .ag-icon-checkbox-unchecked:before { content: "\E907"; } .ag-theme-material .ag-icon-color-picker:before { content: "\E908"; } .ag-theme-material .ag-icon-column:before { content: "\E909"; } .ag-theme-material .ag-icon-columns:before { content: "\E90A"; } .ag-theme-material .ag-icon-contracted:before { content: "\E90B"; } .ag-theme-material .ag-icon-copy:before { content: "\E90C"; } .ag-theme-material .ag-icon-cross:before { content: "\E90D"; } .ag-theme-material .ag-icon-cut:before { content: "\E90E"; } .ag-theme-material .ag-icon-data:before { content: "\E90F"; } .ag-theme-material .ag-icon-desc:before { content: "\E910"; } .ag-theme-material .ag-icon-expanded:before { content: "\E911"; } .ag-theme-material .ag-icon-eye-slash:before { content: "\E912"; } .ag-theme-material .ag-icon-eye:before { content: "\E913"; } .ag-theme-material .ag-icon-filter:before { content: "\E914"; } .ag-theme-material .ag-icon-first:before { content: "\E915"; } .ag-theme-material .ag-icon-grip:before { content: "\E916"; } .ag-theme-material .ag-icon-group:before { content: "\E917"; } .ag-theme-material .ag-icon-indeterminate:before { content: "\E918"; } .ag-theme-material .ag-icon-last:before { content: "\E919"; } .ag-theme-material .ag-icon-left:before { content: "\E91A"; } .ag-theme-material .ag-icon-linked:before { content: "\E934"; } .ag-theme-material .ag-icon-loading:before { content: "\E91B"; } .ag-theme-material .ag-icon-maximize:before { content: "\E91C"; } .ag-theme-material .ag-icon-menu:before { content: "\E91D"; } .ag-theme-material .ag-icon-minimize:before { content: "\E91E"; } .ag-theme-material .ag-icon-minus:before { content: "\E91F"; } .ag-theme-material .ag-icon-next:before { content: "\E920"; } .ag-theme-material .ag-icon-none:before { content: "\E921"; } .ag-theme-material .ag-icon-not-allowed:before { content: "\E922"; } .ag-theme-material .ag-icon-paste:before { content: "\E923"; } .ag-theme-material .ag-icon-pin:before { content: "\E924"; } .ag-theme-material .ag-icon-pivot:before { content: "\E925"; } .ag-theme-material .ag-icon-plus:before { content: "\E926"; } .ag-theme-material .ag-icon-previous:before { content: "\E927"; } .ag-theme-material .ag-icon-radio-button-off:before { content: "\E928"; } .ag-theme-material .ag-icon-radio-button-on:before { content: "\E929"; } .ag-theme-material .ag-icon-right:before { content: "\E92A"; } .ag-theme-material .ag-icon-save:before { content: "\E92B"; } .ag-theme-material .ag-icon-small-down:before { content: "\E92C"; } .ag-theme-material .ag-icon-small-left:before { content: "\E92D"; } .ag-theme-material .ag-icon-small-right:before { content: "\E92E"; } .ag-theme-material .ag-icon-small-up:before { content: "\E92F"; } .ag-theme-material .ag-icon-tick:before { content: "\E930"; } .ag-theme-material .ag-icon-tree-closed:before { content: "\E931"; } .ag-theme-material .ag-icon-tree-indeterminate:before { content: "\E932"; } .ag-theme-material .ag-icon-tree-open:before { content: "\E933"; } .ag-theme-material .ag-icon-unlinked:before { content: "\E935"; } .ag-theme-material .ag-icon-checkbox-checked, .ag-theme-material .ag-icon-checkbox-indeterminate, .ag-theme-material .ag-icon-checkbox-unchecked { background-color: transparent; line-height: 18px; border-radius: 3px; } .ag-theme-material .ag-icon-checkbox-checked-readonly, .ag-theme-material .ag-icon-checkbox-indeterminate-readonly, .ag-theme-material .ag-icon-checkbox-unchecked-readonly { cursor: default; opacity: 0.38; } .ag-theme-material .ag-icon-checkbox-checked { color: #ff4081; } .ag-theme-material .ag-icon-checkbox-checked-readonly:before { content: "\E905"; } .ag-theme-material .ag-icon-checkbox-indeterminate-readonly:before { content: "\E906"; } .ag-theme-material .ag-icon-checkbox-unchecked-readonly:before { content: "\E907"; } .ag-theme-material .ag-icon-row-drag:before { content: "\E916"; } .ag-theme-material .ag-right-arrow:before { content: "\E91A"; } .ag-theme-material .ag-icon-radio-button-on { color: #ff4081; } .ag-theme-material .ag-right-arrow:before { content: "\E92A"; } .ag-theme-material .ag-rtl { text-align: right; } .ag-theme-material .ag-rtl .ag-numeric-cell { text-align: left; } .ag-theme-material .ag-rtl .ag-checkbox:not(.ag-label-align-left) label, .ag-theme-material .ag-rtl .ag-radio-button:not(.ag-label-align-left) label, .ag-theme-material .ag-rtl .ag-toggle-button:not(.ag-label-align-left) label { margin-right: 8px; margin-left: 0; } .ag-theme-material .ag-rtl .ag-tool-panel-wrapper .ag-pivot-mode-panel .ag-pivot-mode-select { margin-right: 8px; } .ag-theme-material .ag-rtl .ag-tool-panel-wrapper .ag-column-drop .ag-column-drop-empty-message { padding-left: 8px; padding-right: 32px; } .ag-theme-material .ag-rtl .ag-column-select-panel .ag-column-tool-panel-column-group .ag-column-select-checkbox, .ag-theme-material .ag-rtl .ag-column-select-panel .ag-column-tool-panel-column-group .ag-column-group-icons, .ag-theme-material .ag-rtl .ag-column-select-panel .ag-column-tool-panel-column .ag-column-select-checkbox, .ag-theme-material .ag-rtl .ag-column-select-panel .ag-column-tool-panel-column .ag-column-group-icons { margin-left: 8px; margin-right: 8px; } .ag-theme-material .ag-rtl .ag-column-select-panel .ag-column-tool-panel-column.ag-toolpanel-add-group-indent { margin-left: 0; margin-right: 34px; } .ag-theme-material .ag-rtl .ag-header-select-all { margin-left: 24px; margin-right: 0; } .ag-theme-material .ag-rtl .ag-selection-checkbox, .ag-theme-material .ag-rtl .ag-group-checkbox, .ag-theme-material .ag-rtl .ag-group-expanded, .ag-theme-material .ag-rtl .ag-group-contracted { display: inline-flex; } .ag-theme-material .ag-rtl .ag-selection-checkbox + .ag-cell-value:not(:empty), .ag-theme-material .ag-rtl .ag-selection-checkbox + .ag-group-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-checkbox + .ag-cell-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-checkbox + .ag-group-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-expanded + .ag-cell-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-expanded + .ag-group-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-contracted + .ag-cell-value:not(:empty), .ag-theme-material .ag-rtl .ag-group-contracted + .ag-group-value:not(:empty) { margin-right: 24px; margin-left: initial; } .ag-theme-material .ag-rtl .ag-selection-checkbox + .ag-group-checkbox, .ag-theme-material .ag-rtl .ag-group-checkbox + .ag-group-checkbox, .ag-theme-material .ag-rtl .ag-group-expanded + .ag-group-checkbox, .ag-theme-material .ag-rtl .ag-group-contracted + .ag-group-checkbox { margin-right: 24px; margin-left: initial; } .ag-theme-material .ag-rtl .ag-group-child-count { margin-left: unset; margin-right: 2px; } .ag-theme-material .ag-rtl .ag-column-drop-horizontal { padding-right: 24px; } .ag-theme-material .ag-rtl .ag-column-drop-horizontal .ag-icon-group, .ag-theme-material .ag-rtl .ag-column-drop-horizontal .ag-icon-pivot { margin-left: 24px; margin-right: 0; } .ag-theme-material .ag-rtl .ag-floating-filter-button { margin-right: 24px; } .ag-theme-material .ag-rtl .ag-set-filter-item > div, .ag-theme-material .ag-rtl .ag-set-filter-item > span { margin-left: 0; margin-right: 5px; } .ag-theme-material .ag-rtl .ag-header .ag-header-cell-resize::after { border-left: 1px solid #e2e2e2; border-right: 0; } .ag-theme-material .ag-rtl .ag-side-bar .ag-panel-container { border-left: 1px solid #e2e2e2; border-right: 0; } .ag-theme-material .ag-rtl .ag-side-bar.full-width .ag-panel-container { border-left: 0; } .ag-theme-material .sass-variables::after { content: '{ "autoSizePadding": "24px", "headerHeight": "56px", "groupPaddingSize": "42px", "footerPaddingAddition": "32px", "virtualItemHeight": "40px", "aggFuncPopupHeight": "140px", "checkboxIndentWidth": "26px", "leafNodePadding": "24px", "rowHeight": "48px", "gridSize": "8px", "iconSize": "18px" }'; display: none; } .ag-theme-material .ag-icon-checkbox-checked, .ag-theme-material .ag-icon-checkbox-checked-readonly, .ag-theme-material .ag-icon-checkbox-unchecked, .ag-theme-material .ag-icon-checkbox-unchecked-readonly, .ag-theme-material .ag-icon-checkbox-indeterminate, .ag-theme-material .ag-icon-checkbox-indeterminate-readonly, .ag-theme-material .ag-icon-radio-button-on, .ag-theme-material .ag-icon-radio-button-off { height: 24px; width: 24px; font-size: 24px; line-height: 24px; } .ag-theme-material .ag-header-cell, .ag-theme-material .ag-header-group-cell { -webkit-transition: background-color 0.5s; transition: background-color 0.5s; } .ag-theme-material .ag-cell-highlight { background-color: #fce4ec !important; } .ag-theme-material .ag-cell-highlight-animation { -webkit-transition: background-color 1s; transition: background-color 1s; } .ag-theme-material .ag-menu-option { height: 38px; } .ag-theme-material .ag-side-bar { border-bottom: 0; border-right: 0; border-top: 0; } .ag-theme-material .ag-side-bar .ag-side-buttons button { border: 0; color: rgba(0, 0, 0, 0.54); font-family: "Roboto", sans-serif; font-size: 12px; font-weight: 700; background: transparent; } .ag-theme-material .ag-side-bar .ag-side-buttons .ag-side-button button { background-color: transparent; border-width: 0; } .ag-theme-material .ag-side-bar .ag-side-buttons .ag-selected button { border-left: 2px solid #3f51b5; background-color: #fafafa; margin-left: -2px; padding-left: 1px; } .ag-theme-material .ag-side-bar .ag-filter-toolpanel-body { background-color: #fff; } .ag-theme-material .ag-status-bar { border-top-width: 1px; } .ag-theme-material .ag-rtl .ag-side-bar .ag-side-buttons .ag-selected button { border-left: 0; margin-left: 0; padding-left: 0; border-right: 2px solid #3f51b5; margin-right: -2px; padding-right: 1px; } .ag-theme-material .ag-group-expanded .ag-icon-contracted:empty:before { content: "\E933"; } ================================================ FILE: public/backend/vendors/css/tables/datatable/extensions/dataTables.checkboxes.css ================================================ table.dataTable.dt-checkboxes-select tbody tr, table.dataTable thead th.dt-checkboxes-select-all, table.dataTable tbody td.dt-checkboxes-cell { cursor: pointer; } table.dataTable thead th.dt-checkboxes-select-all, table.dataTable tbody td.dt-checkboxes-cell { text-align: center; } div.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item { margin-left: 0.5em; } @media screen and (max-width: 640px) { div.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item { margin-left: 0; display: block; } } ================================================ FILE: public/backend/vendors/css/ui/prism-treeview.css ================================================ .treeview-part .entry-line { position: relative; text-indent: -99em; display: inline-block; vertical-align: top; width: 1.2em; } .treeview-part .entry-line:before, .treeview-part .line-h:after { content: ''; position: absolute; top: 0; left: 50%; width: 50%; height: 100%; } .treeview-part .line-h:before, .treeview-part .line-v:before { border-left: 1px solid #ccc; } .treeview-part .line-v-last:before { height: 50%; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; } .treeview-part .line-h:after { height: 50%; border-bottom: 1px solid #ccc; } .treeview-part .entry-name { position: relative; display: inline-block; vertical-align: top; padding: 0 0 0 1.5em; } .treeview-part .entry-name:before { content: ''; position: absolute; top: 0; left: 0.25em; height: 100%; width: 1em; background: no-repeat 50% 50% / contain; } .treeview-part .entry-name.dotfile { opacity: 0.5; } .treeview-part .entry-name:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogIiAvPg0KCTwvZz4NCjwvc3ZnPg=='); } .treeview-part .entry-name.dir:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTUzNiAyMjR2NzA0cTAgNDAgLTI4IDY4dC02OCAyOGgtNzA0cS00MCAwIC02OCAyOHQtMjggNjh2NjRxMCA0MCAtMjggNjh0LTY4IDI4aC0zMjBxLTQwIDAgLTY4IC0yOHQtMjggLTY4di05NjBxMCAtNDAgMjggLTY4dDY4IC0yOGgxMjE2cTQwIDAgNjggMjh0MjggNjh6TTE2NjQgOTI4di03MDRxMCAtOTIgLTY2IC0xNTh0LTE1OCAtNjZoLTEyMTZxLTkyIDAgLTE1OCA2NnQtNjYgMTU4djk2MHEwIDkyIDY2IDE1OHQxNTggNjZoMzIwIHE5MiAwIDE1OCAtNjZ0NjYgLTE1OHYtMzJoNjcycTkyIDAgMTU4IC02NnQ2NiAtMTU4eiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-bmp:before, .treeview-part .entry-name.ext-eps:before, .treeview-part .entry-name.ext-gif:before, .treeview-part .entry-name.ext-jpe:before, .treeview-part .entry-name.ext-jpg:before, .treeview-part .entry-name.ext-jpeg:before, .treeview-part .entry-name.ext-png:before, .treeview-part .entry-name.ext-svg:before, .treeview-part .entry-name.ext-tiff:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTEyODAgMzIwdi0zMjBoLTEwMjR2MTkybDE5MiAxOTJsMTI4IC0xMjhsMzg0IDM4NHpNNDQ4IDUxMnEtODAgMCAtMTM2IDU2dC01NiAxMzZ0NTYgMTM2dDEzNiA1NnQxMzYgLTU2dDU2IC0xMzZ0LTU2IC0xMzZ0LTEzNiAtNTZ6IiAvPg0KCTwvZz4NCjwvc3ZnPg=='); } .treeview-part .entry-name.ext-cfg:before, .treeview-part .entry-name.ext-conf:before, .treeview-part .entry-name.ext-config:before, .treeview-part .entry-name.ext-csv:before, .treeview-part .entry-name.ext-ini:before, .treeview-part .entry-name.ext-log:before, .treeview-part .entry-name.ext-md:before, .treeview-part .entry-name.ext-nfo:before, .treeview-part .entry-name.ext-txt:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTM4NCA3MzZxMCAxNCA5IDIzdDIzIDloNzA0cTE0IDAgMjMgLTl0OSAtMjN2LTY0cTAgLTE0IC05IC0yM3QtMjMgLTloLTcwNHEtMTQgMCAtMjMgOXQtOSAyM3Y2NHpNMTEyMCA1MTJxMTQgMCAyMyAtOXQ5IC0yM3YtNjRxMCAtMTQgLTkgLTIzdC0yMyAtOWgtNzA0cS0xNCAwIC0yMyA5dC05IDIzdjY0cTAgMTQgOSAyM3QyMyA5aDcwNHpNMTEyMCAyNTZxMTQgMCAyMyAtOXQ5IC0yM3YtNjRxMCAtMTQgLTkgLTIzdC0yMyAtOWgtNzA0IHEtMTQgMCAtMjMgOXQtOSAyM3Y2NHEwIDE0IDkgMjN0MjMgOWg3MDR6IiAvPg0KCTwvZz4NCjwvc3ZnPg=='); } .treeview-part .entry-name.ext-asp:before, .treeview-part .entry-name.ext-aspx:before, .treeview-part .entry-name.ext-c:before, .treeview-part .entry-name.ext-cc:before, .treeview-part .entry-name.ext-cpp:before, .treeview-part .entry-name.ext-cs:before, .treeview-part .entry-name.ext-css:before, .treeview-part .entry-name.ext-h:before, .treeview-part .entry-name.ext-hh:before, .treeview-part .entry-name.ext-htm:before, .treeview-part .entry-name.ext-html:before, .treeview-part .entry-name.ext-jav:before, .treeview-part .entry-name.ext-java:before, .treeview-part .entry-name.ext-js:before, .treeview-part .entry-name.ext-php:before, .treeview-part .entry-name.ext-rb:before, .treeview-part .entry-name.ext-xml:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTQ4MCA3NjhxOCAxMSAyMSAxMi41dDI0IC02LjVsNTEgLTM4cTExIC04IDEyLjUgLTIxdC02LjUgLTI0bC0xODIgLTI0M2wxODIgLTI0M3E4IC0xMSA2LjUgLTI0dC0xMi41IC0yMWwtNTEgLTM4cS0xMSAtOCAtMjQgLTYuNXQtMjEgMTIuNWwtMjI2IDMwMXEtMTQgMTkgMCAzOHpNMTI4MiA0NjdxMTQgLTE5IDAgLTM4bC0yMjYgLTMwMXEtOCAtMTEgLTIxIC0xMi41dC0yNCA2LjVsLTUxIDM4cS0xMSA4IC0xMi41IDIxdDYuNSAyNGwxODIgMjQzIGwtMTgyIDI0M3EtOCAxMSAtNi41IDI0dDEyLjUgMjFsNTEgMzhxMTEgOCAyNCA2LjV0MjEgLTEyLjV6TTY2MiA2cS0xMyAyIC0yMC41IDEzdC01LjUgMjRsMTM4IDgzMXEyIDEzIDEzIDIwLjV0MjQgNS41bDYzIC0xMHExMyAtMiAyMC41IC0xM3Q1LjUgLTI0bC0xMzggLTgzMXEtMiAtMTMgLTEzIC0yMC41dC0yNCAtNS41eiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-7z:before, .treeview-part .entry-name.ext-bz:before, .treeview-part .entry-name.ext-bz2:before, .treeview-part .entry-name.ext-gz:before, .treeview-part .entry-name.ext-rar:before, .treeview-part .entry-name.ext-tar:before, .treeview-part .entry-name.ext-tgz:before, .treeview-part .entry-name.ext-zip:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNNjQwIDExNTJ2MTI4aC0xMjh2LTEyOGgxMjh6TTc2OCAxMDI0djEyOGgtMTI4di0xMjhoMTI4ek02NDAgODk2djEyOGgtMTI4di0xMjhoMTI4ek03NjggNzY4djEyOGgtMTI4di0xMjhoMTI4ek0xNDY4IDExNTZxMjggLTI4IDQ4IC03NnQyMCAtODh2LTExNTJxMCAtNDAgLTI4IC02OHQtNjggLTI4aC0xMzQ0cS00MCAwIC02OCAyOHQtMjggNjh2MTYwMHEwIDQwIDI4IDY4dDY4IDI4aDg5NnE0MCAwIDg4IC0yMHQ3NiAtNDh6TTEwMjQgMTQwMCB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC0xMjh2LTEyOGgtMTI4djEyOGgtNTEydi0xNTM2aDEyODB6TTc4MSA1OTNsMTA3IC0zNDlxOCAtMjcgOCAtNTJxMCAtODMgLTcyLjUgLTEzNy41dC0xODMuNSAtNTQuNXQtMTgzLjUgNTQuNXQtNzIuNSAxMzcuNXEwIDI1IDggNTJxMjEgNjMgMTIwIDM5NnYxMjhoMTI4di0xMjhoNzkgcTIyIDAgMzkgLTEzdDIzIC0zNHpNNjQwIDEyOHE1MyAwIDkwLjUgMTl0MzcuNSA0NXQtMzcuNSA0NXQtOTAuNSAxOXQtOTAuNSAtMTl0LTM3LjUgLTQ1dDM3LjUgLTQ1dDkwLjUgLTE5eiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-aac:before, .treeview-part .entry-name.ext-au:before, .treeview-part .entry-name.ext-cda:before, .treeview-part .entry-name.ext-flac:before, .treeview-part .entry-name.ext-mp3:before, .treeview-part .entry-name.ext-oga:before, .treeview-part .entry-name.ext-ogg:before, .treeview-part .entry-name.ext-wav:before, .treeview-part .entry-name.ext-wma:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTYyMCA2ODZxMjAgLTggMjAgLTMwdi01NDRxMCAtMjIgLTIwIC0zMHEtOCAtMiAtMTIgLTJxLTEyIDAgLTIzIDlsLTE2NiAxNjdoLTEzMXEtMTQgMCAtMjMgOXQtOSAyM3YxOTJxMCAxNCA5IDIzdDIzIDloMTMxbDE2NiAxNjdxMTYgMTUgMzUgN3pNMTAzNyAtM3EzMSAwIDUwIDI0cTEyOSAxNTkgMTI5IDM2M3QtMTI5IDM2M3EtMTYgMjEgLTQzIDI0dC00NyAtMTRxLTIxIC0xNyAtMjMuNSAtNDMuNXQxNC41IC00Ny41IHExMDAgLTEyMyAxMDAgLTI4MnQtMTAwIC0yODJxLTE3IC0yMSAtMTQuNSAtNDcuNXQyMy41IC00Mi41cTE4IC0xNSA0MCAtMTV6TTgyNiAxNDVxMjcgMCA0NyAyMHE4NyA5MyA4NyAyMTl0LTg3IDIxOXEtMTggMTkgLTQ1IDIwdC00NiAtMTd0LTIwIC00NC41dDE4IC00Ni41cTUyIC01NyA1MiAtMTMxdC01MiAtMTMxcS0xOSAtMjAgLTE4IC00Ni41dDIwIC00NC41cTIwIC0xNyA0NCAtMTd6IiAvPg0KCTwvZz4NCjwvc3ZnPg=='); } .treeview-part .entry-name.ext-avi:before, .treeview-part .entry-name.ext-flv:before, .treeview-part .entry-name.ext-mkv:before, .treeview-part .entry-name.ext-mov:before, .treeview-part .entry-name.ext-mp4:before, .treeview-part .entry-name.ext-mpeg:before, .treeview-part .entry-name.ext-mpg:before, .treeview-part .entry-name.ext-ogv:before, .treeview-part .entry-name.ext-webm:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTc2OCA3NjhxNTIgMCA5MCAtMzh0MzggLTkwdi0zODRxMCAtNTIgLTM4IC05MHQtOTAgLTM4aC0zODRxLTUyIDAgLTkwIDM4dC0zOCA5MHYzODRxMCA1MiAzOCA5MHQ5MCAzOGgzODR6TTEyNjAgNzY2cTIwIC04IDIwIC0zMHYtNTc2cTAgLTIyIC0yMCAtMzBxLTggLTIgLTEyIC0ycS0xNCAwIC0yMyA5bC0yNjUgMjY2djkwbDI2NSAyNjZxOSA5IDIzIDlxNCAwIDEyIC0yeiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-pdf:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTg5NCA0NjVxMzMgLTI2IDg0IC01NnE1OSA3IDExNyA3cTE0NyAwIDE3NyAtNDlxMTYgLTIyIDIgLTUycTAgLTEgLTEgLTJsLTIgLTJ2LTFxLTYgLTM4IC03MSAtMzhxLTQ4IDAgLTExNSAyMHQtMTMwIDUzcS0yMjEgLTI0IC0zOTIgLTgzcS0xNTMgLTI2MiAtMjQyIC0yNjJxLTE1IDAgLTI4IDdsLTI0IDEycS0xIDEgLTYgNXEtMTAgMTAgLTYgMzZxOSA0MCA1NiA5MS41dDEzMiA5Ni41cTE0IDkgMjMgLTZxMiAtMiAyIC00cTUyIDg1IDEwNyAxOTcgcTY4IDEzNiAxMDQgMjYycS0yNCA4MiAtMzAuNSAxNTkuNXQ2LjUgMTI3LjVxMTEgNDAgNDIgNDBoMjFoMXEyMyAwIDM1IC0xNXExOCAtMjEgOSAtNjhxLTIgLTYgLTQgLThxMSAtMyAxIC04di0zMHEtMiAtMTIzIC0xNCAtMTkycTU1IC0xNjQgMTQ2IC0yMzh6TTMxOCA1NHE1MiAyNCAxMzcgMTU4cS01MSAtNDAgLTg3LjUgLTg0dC00OS41IC03NHpNNzE2IDk3NHEtMTUgLTQyIC0yIC0xMzJxMSA3IDcgNDRxMCAzIDcgNDNxMSA0IDQgOCBxLTEgMSAtMSAydC0wLjUgMS41dC0wLjUgMS41cS0xIDIyIC0xMyAzNnEwIC0xIC0xIC0ydi0yek01OTIgMzEzcTEzNSA1NCAyODQgODFxLTIgMSAtMTMgOS41dC0xNiAxMy41cS03NiA2NyAtMTI3IDE3NnEtMjcgLTg2IC04MyAtMTk3cS0zMCAtNTYgLTQ1IC04M3pNMTIzOCAzMjlxLTI0IDI0IC0xNDAgMjRxNzYgLTI4IDEyNCAtMjhxMTQgMCAxOCAxcTAgMSAtMiAzeiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-xls:before, .treeview-part .entry-name.ext-xlsx:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTQyOSAxMDZ2LTEwNmgyODF2MTA2aC03NWwxMDMgMTYxcTUgNyAxMCAxNi41dDcuNSAxMy41dDMuNSA0aDJxMSAtNCA1IC0xMHEyIC00IDQuNSAtNy41dDYgLTh0Ni41IC04LjVsMTA3IC0xNjFoLTc2di0xMDZoMjkxdjEwNmgtNjhsLTE5MiAyNzNsMTk1IDI4Mmg2N3YxMDdoLTI3OXYtMTA3aDc0bC0xMDMgLTE1OXEtNCAtNyAtMTAgLTE2LjV0LTkgLTEzLjVsLTIgLTNoLTJxLTEgNCAtNSAxMHEtNiAxMSAtMTcgMjNsLTEwNiAxNTloNzZ2MTA3IGgtMjkwdi0xMDdoNjhsMTg5IC0yNzJsLTE5NCAtMjgzaC02OHoiIC8+DQoJPC9nPg0KPC9zdmc+'); } .treeview-part .entry-name.ext-doc:before, .treeview-part .entry-name.ext-docm:before, .treeview-part .entry-name.ext-docx:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTIzMyA3Njh2LTEwN2g3MGwxNjQgLTY2MWgxNTlsMTI4IDQ4NXE3IDIwIDEwIDQ2cTIgMTYgMiAyNGg0bDMgLTI0cTEgLTMgMy41IC0yMHQ1LjUgLTI2bDEyOCAtNDg1aDE1OWwxNjQgNjYxaDcwdjEwN2gtMzAwdi0xMDdoOTBsLTk5IC00MzhxLTUgLTIwIC03IC00NmwtMiAtMjFoLTRsLTMgMjFxLTEgNSAtNCAyMXQtNSAyNWwtMTQ0IDU0NWgtMTE0bC0xNDQgLTU0NXEtMiAtOSAtNC41IC0yNC41dC0zLjUgLTIxLjVsLTQgLTIxaC00bC0yIDIxIHEtMiAyNiAtNyA0NmwtOTkgNDM4aDkwdjEwN2gtMzAweiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } .treeview-part .entry-name.ext-pps:before, .treeview-part .entry-name.ext-ppt:before, .treeview-part .entry-name.ext-pptx:before { background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxNzkuMiIgd2lkdGg9IjE3OS4yIj4NCgk8Zz4NCgkJPHBhdGggdHJhbnNmb3JtPSJzY2FsZSgwLjEsLTAuMSkgdHJhbnNsYXRlKDAsLTE1MzYpIiBkPSJNMTQ2OCAxMTU2cTI4IC0yOCA0OCAtNzZ0MjAgLTg4di0xMTUycTAgLTQwIC0yOCAtNjh0LTY4IC0yOGgtMTM0NHEtNDAgMCAtNjggMjh0LTI4IDY4djE2MDBxMCA0MCAyOCA2OHQ2OCAyOGg4OTZxNDAgMCA4OCAtMjB0NzYgLTQ4ek0xMDI0IDE0MDB2LTM3NmgzNzZxLTEwIDI5IC0yMiA0MWwtMzEzIDMxM3EtMTIgMTIgLTQxIDIyek0xNDA4IC0xMjh2MTAyNGgtNDE2cS00MCAwIC02OCAyOHQtMjggNjh2NDE2aC03Njh2LTE1MzZoMTI4MHogTTQxNiAxMDZ2LTEwNmgzMjd2MTA2aC05M3YxNjdoMTM3cTc2IDAgMTE4IDE1cTY3IDIzIDEwNi41IDg3dDM5LjUgMTQ2cTAgODEgLTM3IDE0MXQtMTAwIDg3cS00OCAxOSAtMTMwIDE5aC0zNjh2LTEwN2g5MnYtNTU1aC05MnpNNzY5IDM4NmgtMTE5djI2OGgxMjBxNTIgMCA4MyAtMThxNTYgLTMzIDU2IC0xMTVxMCAtODkgLTYyIC0xMjBxLTMxIC0xNSAtNzggLTE1eiIgLz4NCgk8L2c+DQo8L3N2Zz4='); } ================================================ FILE: public/backend/vendors/js/charts/apexcharts.js ================================================ /*! * ApexCharts v3.8.6 * (c) 2018-2019 Juned Chhipa * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.ApexCharts = factory()); }(this, function () { 'use strict'; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } /* ** Generic functions which are not dependent on ApexCharts */ var Utils = /*#__PURE__*/ function () { function Utils() { _classCallCheck(this, Utils); } _createClass(Utils, [{ key: "shadeRGBColor", value: function shadeRGBColor(percent, color) { var f = color.split(','), t = percent < 0 ? 0 : 255, p = percent < 0 ? percent * -1 : percent, R = parseInt(f[0].slice(4)), G = parseInt(f[1]), B = parseInt(f[2]); return 'rgb(' + (Math.round((t - R) * p) + R) + ',' + (Math.round((t - G) * p) + G) + ',' + (Math.round((t - B) * p) + B) + ')'; } }, { key: "shadeHexColor", value: function shadeHexColor(percent, color) { var f = parseInt(color.slice(1), 16), t = percent < 0 ? 0 : 255, p = percent < 0 ? percent * -1 : percent, R = f >> 16, G = f >> 8 & 0x00ff, B = f & 0x0000ff; return '#' + (0x1000000 + (Math.round((t - R) * p) + R) * 0x10000 + (Math.round((t - G) * p) + G) * 0x100 + (Math.round((t - B) * p) + B)).toString(16).slice(1); } // beautiful color shading blending code // http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors }, { key: "shadeColor", value: function shadeColor(p, color) { if (color.length > 7) return this.shadeRGBColor(p, color);else return this.shadeHexColor(p, color); } }], [{ key: "bind", value: function bind(fn, me) { return function () { return fn.apply(me, arguments); }; } }, { key: "isObject", value: function isObject(item) { return item && _typeof(item) === 'object' && !Array.isArray(item) && item != null; } }, { key: "listToArray", value: function listToArray(list) { var i, array = []; for (i = 0; i < list.length; i++) { array[i] = list[i]; } return array; } // to extend defaults with user options // credit: http://stackoverflow.com/questions/27936772/deep-object-merging-in-es6-es7#answer-34749873 }, { key: "extend", value: function extend(target, source) { var _this = this; if (typeof Object.assign !== 'function') { (function () { Object.assign = function (target) { if (target === undefined || target === null) { throw new TypeError('Cannot convert undefined or null to object'); } var output = Object(target); for (var index = 1; index < arguments.length; index++) { var _source = arguments[index]; if (_source !== undefined && _source !== null) { for (var nextKey in _source) { if (_source.hasOwnProperty(nextKey)) { output[nextKey] = _source[nextKey]; } } } } return output; }; })(); } var output = Object.assign({}, target); if (this.isObject(target) && this.isObject(source)) { Object.keys(source).forEach(function (key) { if (_this.isObject(source[key])) { if (!(key in target)) { Object.assign(output, _defineProperty({}, key, source[key])); } else { output[key] = _this.extend(target[key], source[key]); } } else { Object.assign(output, _defineProperty({}, key, source[key])); } }); } return output; } }, { key: "extendArray", value: function extendArray(arrToExtend, resultArr) { var extendedArr = []; arrToExtend.map(function (item) { extendedArr.push(Utils.extend(resultArr, item)); }); arrToExtend = extendedArr; return arrToExtend; } // If month counter exceeds 12, it starts again from 1 }, { key: "monthMod", value: function monthMod(month) { return month % 12; } }, { key: "addProps", value: function addProps(obj, arr, val) { if (typeof arr === 'string') { arr = arr.split('.'); } obj[arr[0]] = obj[arr[0]] || {}; var tmpObj = obj[arr[0]]; if (arr.length > 1) { arr.shift(); this.addProps(tmpObj, arr, val); } else { obj[arr[0]] = val; } return obj; } }, { key: "clone", value: function clone(source) { if (Object.prototype.toString.call(source) === '[object Array]') { var cloneResult = []; for (var i = 0; i < source.length; i++) { cloneResult[i] = this.clone(source[i]); } return cloneResult; } else if (_typeof(source) === 'object') { var _cloneResult = {}; for (var prop in source) { if (source.hasOwnProperty(prop)) { _cloneResult[prop] = this.clone(source[prop]); } } return _cloneResult; } else { return source; } } }, { key: "log10", value: function log10(x) { return Math.log(x) / Math.LN10; } }, { key: "roundToBase10", value: function roundToBase10(x) { return Math.pow(10, Math.floor(Math.log10(x))); } }, { key: "roundToBase", value: function roundToBase(x, base) { return Math.pow(base, Math.floor(Math.log(x) / Math.log(base))); } }, { key: "parseNumber", value: function parseNumber(val) { if (val === null) return val; return parseFloat(val); } }, { key: "noExponents", value: function noExponents(val) { var data = String(val).split(/[eE]/); if (data.length == 1) return data[0]; var z = '', sign = val < 0 ? '-' : '', str = data[0].replace('.', ''), mag = Number(data[1]) + 1; if (mag < 0) { z = sign + '0.'; while (mag++) { z += '0'; } return z + str.replace(/^\-/, ''); } mag -= str.length; while (mag--) { z += '0'; } return str + z; } }, { key: "getDimensions", value: function getDimensions(el) { var computedStyle = getComputedStyle(el); var ret = []; var elementHeight = el.clientHeight; var elementWidth = el.clientWidth; elementHeight -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom); elementWidth -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight); ret.push(elementWidth); ret.push(elementHeight); return ret; } }, { key: "getBoundingClientRect", value: function getBoundingClientRect(element) { var rect = element.getBoundingClientRect(); return { top: rect.top, right: rect.right, bottom: rect.bottom, left: rect.left, width: rect.width, height: rect.height, x: rect.x, y: rect.y }; } // http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb#answer-12342275 }, { key: "hexToRgba", value: function hexToRgba() { var hex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#999999'; var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6; if (hex.substring(0, 1) !== '#') { hex = '#999999'; } var h = hex.replace('#', ''); h = h.match(new RegExp('(.{' + h.length / 3 + '})', 'g')); for (var i = 0; i < h.length; i++) { h[i] = parseInt(h[i].length === 1 ? h[i] + h[i] : h[i], 16); } if (typeof opacity !== 'undefined') h.push(opacity); return 'rgba(' + h.join(',') + ')'; } }, { key: "getOpacityFromRGBA", value: function getOpacityFromRGBA(rgba) { rgba = rgba.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); return rgba[3]; } }, { key: "rgb2hex", value: function rgb2hex(rgb) { rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); return rgb && rgb.length === 4 ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : ''; } }, { key: "isColorHex", value: function isColorHex(color) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color); } }, { key: "polarToCartesian", value: function polarToCartesian(centerX, centerY, radius, angleInDegrees) { var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; return { x: centerX + radius * Math.cos(angleInRadians), y: centerY + radius * Math.sin(angleInRadians) }; } }, { key: "escapeString", value: function escapeString(str) { var escapeWith = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'x'; var newStr = str.toString().slice(); newStr = newStr.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, escapeWith); return newStr; } }, { key: "negToZero", value: function negToZero(val) { return val < 0 ? 0 : val; } }, { key: "moveIndexInArray", value: function moveIndexInArray(arr, old_index, new_index) { if (new_index >= arr.length) { var k = new_index - arr.length + 1; while (k--) { arr.push(undefined); } } arr.splice(new_index, 0, arr.splice(old_index, 1)[0]); return arr; } }, { key: "extractNumber", value: function extractNumber(s) { return parseFloat(s.replace(/[^\d\.]*/g, '')); } }, { key: "randomString", value: function randomString(len) { var text = ''; var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; for (var i = 0; i < len; i++) { text += possible.charAt(Math.floor(Math.random() * possible.length)); } return text; } }, { key: "findAncestor", value: function findAncestor(el, cls) { while ((el = el.parentElement) && !el.classList.contains(cls)) { } return el; } }, { key: "setELstyles", value: function setELstyles(el, styles) { for (var key in styles) { if (styles.hasOwnProperty(key)) { el.style.key = styles[key]; } } } }, { key: "isNumber", value: function isNumber(value) { return !isNaN(value) && parseFloat(Number(value)) === value && !isNaN(parseInt(value, 10)); } }, { key: "isFloat", value: function isFloat(n) { return Number(n) === n && n % 1 !== 0; } }, { key: "isSafari", value: function isSafari() { return /^((?!chrome|android).)*safari/i.test(navigator.userAgent); } }, { key: "isFirefox", value: function isFirefox() { return navigator.userAgent.toLowerCase().indexOf('firefox') > -1; } }, { key: "isIE11", value: function isIE11() { if (window.navigator.userAgent.indexOf('MSIE') !== -1 || window.navigator.appVersion.indexOf('Trident/') > -1) { return true; } } }, { key: "isIE", value: function isIE() { var ua = window.navigator.userAgent; var msie = ua.indexOf('MSIE '); if (msie > 0) { // IE 10 or older => return version number return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); } var trident = ua.indexOf('Trident/'); if (trident > 0) { // IE 11 => return version number var rv = ua.indexOf('rv:'); return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); } var edge = ua.indexOf('Edge/'); if (edge > 0) { // Edge (IE 12+) => return version number return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10); } // other browser return false; } }]); return Utils; }(); /** * ApexCharts Filters Class for setting hover/active states on the paths. * * @module Formatters **/ var Filters = /*#__PURE__*/ function () { function Filters(ctx) { _classCallCheck(this, Filters); this.ctx = ctx; this.w = ctx.w; } // create a re-usable filter which can be appended other filter effects and applied to multiple elements _createClass(Filters, [{ key: "getDefaultFilter", value: function getDefaultFilter(el, i) { var w = this.w; el.unfilter(true); var filter = new window.SVG.Filter(); filter.size('120%', '180%', '-5%', '-40%'); if (w.config.states.normal.filter !== 'none') { this.applyFilter(el, i, w.config.states.normal.filter.type, w.config.states.normal.filter.value); } else { if (w.config.chart.dropShadow.enabled) { this.dropShadow(el, w.config.chart.dropShadow, i); } } } }, { key: "addNormalFilter", value: function addNormalFilter(el, i) { var w = this.w; if (w.config.chart.dropShadow.enabled) { this.dropShadow(el, w.config.chart.dropShadow, i); } } // appends dropShadow to the filter object which can be chained with other filter effects }, { key: "addLightenFilter", value: function addLightenFilter(el, i, attrs) { var _this = this; var w = this.w; var intensity = attrs.intensity; if (Utils.isFirefox()) { return; } el.unfilter(true); var filter = new window.SVG.Filter(); filter.size('120%', '180%', '-5%', '-40%'); el.filter(function (add) { var shadowAttr = w.config.chart.dropShadow; if (shadowAttr.enabled) { filter = _this.addShadow(add, i, shadowAttr); } else { filter = add; } filter.componentTransfer({ rgb: { type: 'linear', slope: 1.5, intercept: intensity } }); }); el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); } // appends dropShadow to the filter object which can be chained with other filter effects }, { key: "addDarkenFilter", value: function addDarkenFilter(el, i, attrs) { var _this2 = this; var w = this.w; var intensity = attrs.intensity; if (Utils.isFirefox()) { return; } el.unfilter(true); var filter = new window.SVG.Filter(); filter.size('120%', '180%', '-5%', '-40%'); el.filter(function (add) { var shadowAttr = w.config.chart.dropShadow; if (shadowAttr.enabled) { filter = _this2.addShadow(add, i, shadowAttr); } else { filter = add; } filter.componentTransfer({ rgb: { type: 'linear', slope: intensity } }); }); el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); } }, { key: "applyFilter", value: function applyFilter(el, i, filter) { var intensity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0.5; switch (filter) { case 'none': { this.addNormalFilter(el, i); break; } case 'lighten': { this.addLightenFilter(el, i, { intensity: intensity }); break; } case 'darken': { this.addDarkenFilter(el, i, { intensity: intensity }); break; } default: // do nothing break; } } // appends dropShadow to the filter object which can be chained with other filter effects }, { key: "addShadow", value: function addShadow(add, i, attrs) { var blur = attrs.blur, top = attrs.top, left = attrs.left, color = attrs.color, opacity = attrs.opacity; var shadowBlur = add.flood(Array.isArray(color) ? color[i] : color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); return add.blend(add.source, shadowBlur); } // directly adds dropShadow to the element and returns the same element. // the only way it is different from the addShadow() function is that addShadow is chainable to other filters, while this function discards all filters and add dropShadow }, { key: "dropShadow", value: function dropShadow(el, attrs) { var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var top = attrs.top, left = attrs.left, blur = attrs.blur, color = attrs.color, opacity = attrs.opacity, noUserSpaceOnUse = attrs.noUserSpaceOnUse; var w = this.w; el.unfilter(true); if (Utils.isIE() && w.config.chart.type === 'radialBar') { // in radialbar charts, dropshadow is clipping actual drawing in IE return el; } color = Array.isArray(color) ? color[i] : color; var filter = new window.SVG.Filter(); filter.size('120%', '180%', '-5%', '-40%'); el.filter(function (add) { var shadowBlur = null; if (Utils.isSafari() || Utils.isFirefox() || Utils.isIE()) { // safari/firefox has some alternative way to use this filter shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur); } else { shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); } add.blend(add.source, shadowBlur); }); if (!noUserSpaceOnUse) { el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); } return el; } }, { key: "setSelectionFilter", value: function setSelectionFilter(el, realIndex, dataPointIndex) { var w = this.w; if (typeof w.globals.selectedDataPoints[realIndex] !== 'undefined') { if (w.globals.selectedDataPoints[realIndex].indexOf(dataPointIndex) > -1) { el.node.setAttribute('selected', true); var activeFilter = w.config.states.active.filter; if (activeFilter !== 'none') { this.applyFilter(el, realIndex, activeFilter.type, activeFilter.value); } } } } }]); return Filters; }(); /** * ApexCharts Animation Class. * * @module Animations **/ var Animations = /*#__PURE__*/ function () { function Animations(ctx) { _classCallCheck(this, Animations); this.ctx = ctx; this.w = ctx.w; this.setEasingFunctions(); } _createClass(Animations, [{ key: "setEasingFunctions", value: function setEasingFunctions() { var easing; if (this.w.globals.easing) return; var userDefinedEasing = this.w.config.chart.animations.easing; switch (userDefinedEasing) { case 'linear': { easing = '-'; break; } case 'easein': { easing = '<'; break; } case 'easeout': { easing = '>'; break; } case 'easeinout': { easing = '<>'; break; } case 'swing': { easing = function easing(pos) { var s = 1.70158; return (pos -= 1) * pos * ((s + 1) * pos + s) + 1; }; break; } case 'bounce': { easing = function easing(pos) { if (pos < 1 / 2.75) { return 7.5625 * pos * pos; } else if (pos < 2 / 2.75) { return 7.5625 * (pos -= 1.5 / 2.75) * pos + 0.75; } else if (pos < 2.5 / 2.75) { return 7.5625 * (pos -= 2.25 / 2.75) * pos + 0.9375; } else { return 7.5625 * (pos -= 2.625 / 2.75) * pos + 0.984375; } }; break; } case 'elastic': { easing = function easing(pos) { if (pos === !!pos) return pos; return Math.pow(2, -10 * pos) * Math.sin((pos - 0.075) * (2 * Math.PI) / 0.3) + 1; }; break; } default: { easing = '<>'; } } this.w.globals.easing = easing; } }, { key: "animateLine", value: function animateLine(el, from, to, speed) { el.attr(from).animate(speed).attr(to); } /* ** Animate radius of a circle element */ }, { key: "animateCircleRadius", value: function animateCircleRadius(el, from, to, speed, easing) { if (!from) from = 0; el.attr({ r: from }).animate(speed, easing).attr({ r: to }); } /* ** Animate radius and position of a circle element */ }, { key: "animateCircle", value: function animateCircle(el, from, to, speed, easing) { el.attr({ r: from.r, cx: from.cx, cy: from.cy }).animate(speed, easing).attr({ r: to.r, cx: to.cx, cy: to.cy }); } /* ** Animate rect properties */ }, { key: "animateRect", value: function animateRect(el, from, to, speed, fn) { el.attr(from).animate(speed).attr(to).afterAll(function () { fn(); }); } }, { key: "animatePathsGradually", value: function animatePathsGradually(params) { var el = params.el, j = params.j, pathFrom = params.pathFrom, pathTo = params.pathTo, speed = params.speed, delay = params.delay, strokeWidth = params.strokeWidth; var me = this; var w = this.w; var delayFactor = 0; if (w.config.chart.animations.animateGradually.enabled) { delayFactor = w.config.chart.animations.animateGradually.delay; } if (w.config.chart.animations.dynamicAnimation.enabled && w.globals.dataChanged) { delayFactor = 0; } me.morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay * delayFactor); } }, { key: "showDelayedElements", value: function showDelayedElements() { this.w.globals.delayedElements.forEach(function (d) { var ele = d.el; ele.classList.remove('hidden'); }); } }, { key: "animationCompleted", value: function animationCompleted() { var w = this.w; w.globals.animationEnded = true; if (typeof w.config.chart.events.animationEnd === 'function') { w.config.chart.events.animationEnd(this.ctx, w); } } // SVG.js animation for morphing one path to another }, { key: "morphSVG", value: function morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay) { var _this = this; var w = this.w; if (!pathFrom) { pathFrom = el.attr('pathFrom'); } if (!pathTo) { pathTo = el.attr('pathTo'); } if (!pathFrom || pathFrom.indexOf('undefined') > -1 || pathFrom.indexOf('NaN') > -1) { pathFrom = "M 0 ".concat(w.globals.gridHeight); speed = 1; } if (pathTo.indexOf('undefined') > -1 || pathTo.indexOf('NaN') > -1) { pathTo = "M 0 ".concat(w.globals.gridHeight); speed = 1; } if (!w.globals.shouldAnimate) { speed = 1; } el.plot(pathFrom).animate(1, w.globals.easing, delay).plot(pathFrom).animate(speed, w.globals.easing, delay).plot(pathTo).afterAll(function () { // a flag to indicate that the original mount function can return true now as animation finished here if (Utils.isNumber(j)) { if (j === w.globals.series[w.globals.maxValsInArrayIndex].length - 2 && w.globals.shouldAnimate) { _this.animationCompleted(); } } else if (w.globals.shouldAnimate) { _this.animationCompleted(); } _this.showDelayedElements(); }); } }]); return Animations; }(); /** * ApexCharts Graphics Class for all drawing operations. * * @module Graphics **/ var Graphics = /*#__PURE__*/ function () { function Graphics(ctx) { _classCallCheck(this, Graphics); this.ctx = ctx; this.w = ctx.w; } _createClass(Graphics, [{ key: "drawLine", value: function drawLine(x1, y1, x2, y2) { var lineColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '#a8a8a8'; var dashArray = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; var strokeWidth = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; var w = this.w; var line = w.globals.dom.Paper.line().attr({ x1: x1, y1: y1, x2: x2, y2: y2, stroke: lineColor, 'stroke-dasharray': dashArray, 'stroke-width': strokeWidth }); return line; } }, { key: "drawRect", value: function drawRect() { var x1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var y1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var x2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var y2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; var radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; var color = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '#fefefe'; var opacity = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 1; var strokeWidth = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; var strokeColor = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : null; var strokeDashArray = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 0; var w = this.w; var rect = w.globals.dom.Paper.rect(); rect.attr({ x: x1, y: y1, width: x2 > 0 ? x2 : 0, height: y2 > 0 ? y2 : 0, rx: radius, ry: radius, fill: color, opacity: opacity, 'stroke-width': strokeWidth !== null ? strokeWidth : 0, stroke: strokeColor !== null ? strokeColor : 'none', 'stroke-dasharray': strokeDashArray }); return rect; } }, { key: "drawPolygon", value: function drawPolygon(polygonString) { var stroke = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#e1e1e1'; var fill = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none'; var w = this.w; var polygon = w.globals.dom.Paper.polygon(polygonString).attr({ fill: fill, stroke: stroke }); return polygon; } }, { key: "drawCircle", value: function drawCircle(radius) { var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var w = this.w; var c = w.globals.dom.Paper.circle(radius * 2); if (attrs !== null) { c.attr(attrs); } return c; } }, { key: "drawPath", value: function drawPath(_ref) { var _ref$d = _ref.d, d = _ref$d === void 0 ? '' : _ref$d, _ref$stroke = _ref.stroke, stroke = _ref$stroke === void 0 ? '#a8a8a8' : _ref$stroke, _ref$strokeWidth = _ref.strokeWidth, strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, fill = _ref.fill, _ref$fillOpacity = _ref.fillOpacity, fillOpacity = _ref$fillOpacity === void 0 ? 1 : _ref$fillOpacity, _ref$strokeOpacity = _ref.strokeOpacity, strokeOpacity = _ref$strokeOpacity === void 0 ? 1 : _ref$strokeOpacity, classes = _ref.classes, _ref$strokeLinecap = _ref.strokeLinecap, strokeLinecap = _ref$strokeLinecap === void 0 ? null : _ref$strokeLinecap, _ref$strokeDashArray = _ref.strokeDashArray, strokeDashArray = _ref$strokeDashArray === void 0 ? 0 : _ref$strokeDashArray; var w = this.w; if (strokeLinecap === null) { strokeLinecap = w.config.stroke.lineCap; } if (d.indexOf('undefined') > -1 || d.indexOf('NaN') > -1) { d = "M 0 ".concat(w.globals.gridHeight); } var p = w.globals.dom.Paper.path(d).attr({ fill: fill, 'fill-opacity': fillOpacity, stroke: stroke, 'stroke-opacity': strokeOpacity, 'stroke-linecap': strokeLinecap, 'stroke-width': strokeWidth, 'stroke-dasharray': strokeDashArray, class: classes }); return p; } }, { key: "group", value: function group() { var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var w = this.w; var g = w.globals.dom.Paper.group(); if (attrs !== null) { g.attr(attrs); } return g; } }, { key: "move", value: function move(x, y) { var move = ['M', x, y].join(' '); return move; } }, { key: "line", value: function line(x, y) { var hORv = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var line = null; if (hORv === null) { line = ['L', x, y].join(' '); } else if (hORv === 'H') { line = ['H', x].join(' '); } else if (hORv === 'V') { line = ['V', y].join(' '); } return line; } }, { key: "curve", value: function curve(x1, y1, x2, y2, x, y) { var curve = ['C', x1, y1, x2, y2, x, y].join(' '); return curve; } }, { key: "quadraticCurve", value: function quadraticCurve(x1, y1, x, y) { var curve = ['Q', x1, y1, x, y].join(' '); return curve; } }, { key: "arc", value: function arc(rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y) { var relative = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false; var coord = 'A'; if (relative) coord = 'a'; var arc = [coord, rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y].join(' '); return arc; } /** * @memberof Graphics * @param {object} * i = series's index * realIndex = realIndex is series's actual index when it was drawn time. After several redraws, the iterating "i" may change in loops, but realIndex doesn't * pathFrom = existing pathFrom to animateTo * pathTo = new Path to which d attr will be animated from pathFrom to pathTo * stroke = line Color * strokeWidth = width of path Line * fill = it can be gradient, single color, pattern or image * animationDelay = how much to delay when starting animation (in milliseconds) * dataChangeSpeed = for dynamic animations, when data changes * className = class attribute to add * @return {object} svg.js path object **/ }, { key: "renderPaths", value: function renderPaths(_ref2) { var j = _ref2.j, realIndex = _ref2.realIndex, pathFrom = _ref2.pathFrom, pathTo = _ref2.pathTo, stroke = _ref2.stroke, strokeWidth = _ref2.strokeWidth, strokeLinecap = _ref2.strokeLinecap, fill = _ref2.fill, animationDelay = _ref2.animationDelay, initialSpeed = _ref2.initialSpeed, dataChangeSpeed = _ref2.dataChangeSpeed, className = _ref2.className, _ref2$shouldClipToGri = _ref2.shouldClipToGrid, shouldClipToGrid = _ref2$shouldClipToGri === void 0 ? true : _ref2$shouldClipToGri, _ref2$bindEventsOnPat = _ref2.bindEventsOnPaths, bindEventsOnPaths = _ref2$bindEventsOnPat === void 0 ? true : _ref2$bindEventsOnPat, _ref2$drawShadow = _ref2.drawShadow, drawShadow = _ref2$drawShadow === void 0 ? true : _ref2$drawShadow; var w = this.w; var filters = new Filters(this.ctx); var anim = new Animations(this.ctx); var initialAnim = this.w.config.chart.animations.enabled; var dynamicAnim = initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; var d; var shouldAnimate = !!(initialAnim && !w.globals.resized || dynamicAnim && w.globals.dataChanged && w.globals.shouldAnimate); if (shouldAnimate) { d = pathFrom; } else { d = pathTo; anim.animationCompleted(); } var strokeDashArrayOpt = w.config.stroke.dashArray; var strokeDashArray = 0; if (Array.isArray(strokeDashArrayOpt)) { strokeDashArray = strokeDashArrayOpt[realIndex]; } else { strokeDashArray = w.config.stroke.dashArray; } var el = this.drawPath({ d: d, stroke: stroke, strokeWidth: strokeWidth, fill: fill, fillOpacity: 1, classes: className, strokeLinecap: strokeLinecap, strokeDashArray: strokeDashArray }); el.attr('index', realIndex); if (shouldClipToGrid) { el.attr({ 'clip-path': "url(#gridRectMask".concat(w.globals.cuid, ")") }); } // const defaultFilter = el.filterer if (w.config.states.normal.filter.type !== 'none') { filters.getDefaultFilter(el, realIndex); } else { if (w.config.chart.dropShadow.enabled && drawShadow) { if (!w.config.chart.dropShadow.enabledSeries || w.config.chart.dropShadow.enabledSeries && w.config.chart.dropShadow.enabledSeries.indexOf(realIndex) !== -1) { var shadow = w.config.chart.dropShadow; filters.dropShadow(el, shadow, realIndex); } } } if (bindEventsOnPaths) { el.node.addEventListener('mouseenter', this.pathMouseEnter.bind(this, el)); el.node.addEventListener('mouseleave', this.pathMouseLeave.bind(this, el)); el.node.addEventListener('mousedown', this.pathMouseDown.bind(this, el)); } el.attr({ pathTo: pathTo, pathFrom: pathFrom }); var defaultAnimateOpts = { el: el, j: j, pathFrom: pathFrom, pathTo: pathTo, strokeWidth: strokeWidth }; if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { speed: initialSpeed, delay: animationDelay })); } else { if (w.globals.resized || !w.globals.dataChanged) { anim.showDelayedElements(); } } if (w.globals.dataChanged && dynamicAnim && shouldAnimate) { anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { speed: dataChangeSpeed })); } return el; } }, { key: "drawPattern", value: function drawPattern(style, width, height) { var stroke = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '#a8a8a8'; var strokeWidth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; var w = this.w; var p = w.globals.dom.Paper.pattern(width, height, function (add) { if (style === 'horizontalLines') { add.line(0, 0, height, 0).stroke({ color: stroke, width: strokeWidth + 1 }); } else if (style === 'verticalLines') { add.line(0, 0, 0, width).stroke({ color: stroke, width: strokeWidth + 1 }); } else if (style === 'slantedLines') { add.line(0, 0, width, height).stroke({ color: stroke, width: strokeWidth }); } else if (style === 'squares') { add.rect(width, height).fill('none').stroke({ color: stroke, width: strokeWidth }); } else if (style === 'circles') { add.circle(width).fill('none').stroke({ color: stroke, width: strokeWidth }); } }); return p; } }, { key: "drawGradient", value: function drawGradient(style, gfrom, gto, opacityFrom, opacityTo) { var size = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; var stops = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; var colorStops = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; var i = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 0; var w = this.w; var g; gfrom = Utils.hexToRgba(gfrom, opacityFrom); gto = Utils.hexToRgba(gto, opacityTo); var stop1 = 0; var stop2 = 1; var stop3 = 1; var stop4 = null; if (stops !== null) { stop1 = typeof stops[0] !== 'undefined' ? stops[0] / 100 : 0; stop2 = typeof stops[1] !== 'undefined' ? stops[1] / 100 : 1; stop3 = typeof stops[2] !== 'undefined' ? stops[2] / 100 : 1; stop4 = typeof stops[3] !== 'undefined' ? stops[3] / 100 : null; } var radial = !!(w.config.chart.type === 'donut' || w.config.chart.type === 'pie' || w.config.chart.type === 'bubble'); if (colorStops === null || colorStops.length === 0) { g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { stop.at(stop1, gfrom, opacityFrom); stop.at(stop2, gto, opacityTo); stop.at(stop3, gto, opacityTo); if (stop4 !== null) { stop.at(stop4, gfrom, opacityFrom); } }); } else { g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { var stops = Array.isArray(colorStops[i]) ? colorStops[i] : colorStops; stops.forEach(function (s) { stop.at(s.offset / 100, s.color, s.opacity); }); }); } if (!radial) { if (style === 'vertical') { g.from(0, 0).to(0, 1); } else if (style === 'diagonal') { g.from(0, 0).to(1, 1); } else if (style === 'horizontal') { g.from(0, 1).to(1, 1); } else if (style === 'diagonal2') { g.from(0, 1).to(2, 2); } } else { var offx = w.globals.gridWidth / 2; var offy = w.globals.gridHeight / 2; if (w.config.chart.type !== 'bubble') { g.attr({ gradientUnits: 'userSpaceOnUse', cx: offx, cy: offy, r: size }); } else { g.attr({ cx: 0.5, cy: 0.5, r: 0.8, fx: 0.2, fy: 0.2 }); } } return g; } }, { key: "drawText", value: function drawText(opts) { var w = this.w; var x = opts.x, y = opts.y, text = opts.text, textAnchor = opts.textAnchor, fontSize = opts.fontSize, fontFamily = opts.fontFamily, fontWeight = opts.fontWeight, foreColor = opts.foreColor, opacity = opts.opacity; if (typeof text === 'undefined') text = ''; if (!textAnchor) { textAnchor = 'start'; } if (!foreColor) { foreColor = w.config.chart.foreColor; } fontFamily = fontFamily || w.config.chart.fontFamily; fontWeight = fontWeight || 'regular'; var elText; if (Array.isArray(text)) { elText = w.globals.dom.Paper.text(function (add) { for (var i = 0; i < text.length; i++) { add.tspan(text[i]); } }); } else { elText = w.globals.dom.Paper.plain(text); } elText.attr({ x: x, y: y, 'text-anchor': textAnchor, 'dominant-baseline': 'auto', 'font-size': fontSize, 'font-family': fontFamily, 'font-weight': fontWeight, fill: foreColor, class: 'apexcharts-text ' + opts.cssClass ? opts.cssClass : '' }); elText.node.style.fontFamily = fontFamily; elText.node.style.opacity = opacity; return elText; } }, { key: "addTspan", value: function addTspan(textEl, text, fontFamily) { var tspan = textEl.tspan(text); if (!fontFamily) { fontFamily = this.w.config.chart.fontFamily; } tspan.node.style.fontFamily = fontFamily; } }, { key: "drawMarker", value: function drawMarker(x, y, opts) { x = x || 0; var size = opts.pSize || 0; var elPoint = null; if (opts.shape === 'square') { var radius = opts.pRadius === undefined ? size / 2 : opts.pRadius; if (y === null) { size = 0; radius = 0; } var nSize = size * 1.2 + radius; var p = this.drawRect(nSize, nSize, nSize, nSize, radius); p.attr({ x: x - nSize / 2, y: y - nSize / 2, cx: x, cy: y, class: opts.class ? opts.class : '', fill: opts.pointFillColor, 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, stroke: opts.pointStrokeColor, 'stroke-width': opts.pWidth ? opts.pWidth : 0, 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 }); elPoint = p; } else if (opts.shape === 'circle') { if (!Utils.isNumber(y)) { size = 0; y = 0; } // let nSize = size - opts.pRadius / 2 < 0 ? 0 : size - opts.pRadius / 2 elPoint = this.drawCircle(size, { cx: x, cy: y, class: opts.class ? opts.class : '', stroke: opts.pointStrokeColor, fill: opts.pointFillColor, 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, 'stroke-width': opts.pWidth ? opts.pWidth : 0, 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 }); } return elPoint; } }, { key: "pathMouseEnter", value: function pathMouseEnter(path, e) { var w = this.w; var filters = new Filters(this.ctx); var i = parseInt(path.node.getAttribute('index')); var j = parseInt(path.node.getAttribute('j')); if (typeof w.config.chart.events.dataPointMouseEnter === 'function') { w.config.chart.events.dataPointMouseEnter(e, this.ctx, { seriesIndex: i, dataPointIndex: j, w: w }); } this.ctx.fireEvent('dataPointMouseEnter', [e, this.ctx, { seriesIndex: i, dataPointIndex: j, w: w }]); if (w.config.states.active.filter.type !== 'none') { if (path.node.getAttribute('selected') === 'true') { return; } } if (w.config.states.hover.filter.type !== 'none') { if (w.config.states.active.filter.type !== 'none' && !w.globals.isTouchDevice) { var hoverFilter = w.config.states.hover.filter; filters.applyFilter(path, i, hoverFilter.type, hoverFilter.value); } } } }, { key: "pathMouseLeave", value: function pathMouseLeave(path, e) { var w = this.w; var filters = new Filters(this.ctx); var i = parseInt(path.node.getAttribute('index')); var j = parseInt(path.node.getAttribute('j')); if (typeof w.config.chart.events.dataPointMouseLeave === 'function') { w.config.chart.events.dataPointMouseLeave(e, this.ctx, { seriesIndex: i, dataPointIndex: j, w: w }); } this.ctx.fireEvent('dataPointMouseLeave', [e, this.ctx, { seriesIndex: i, dataPointIndex: j, w: w }]); if (w.config.states.active.filter.type !== 'none') { if (path.node.getAttribute('selected') === 'true') { return; } } if (w.config.states.hover.filter.type !== 'none') { filters.getDefaultFilter(path, i); } } }, { key: "pathMouseDown", value: function pathMouseDown(path, e) { var w = this.w; var filters = new Filters(this.ctx); var i = parseInt(path.node.getAttribute('index')); var j = parseInt(path.node.getAttribute('j')); var selected = 'false'; if (path.node.getAttribute('selected') === 'true') { path.node.setAttribute('selected', 'false'); if (w.globals.selectedDataPoints[i].indexOf(j) > -1) { var index = w.globals.selectedDataPoints[i].indexOf(j); w.globals.selectedDataPoints[i].splice(index, 1); } } else { if (!w.config.states.active.allowMultipleDataPointsSelection && w.globals.selectedDataPoints.length > 0) { w.globals.selectedDataPoints = []; var elPaths = w.globals.dom.Paper.select('.apexcharts-series path').members; var elCircles = w.globals.dom.Paper.select('.apexcharts-series circle, .apexcharts-series rect').members; elPaths.forEach(function (elPath) { elPath.node.setAttribute('selected', 'false'); filters.getDefaultFilter(elPath, i); }); elCircles.forEach(function (circle) { circle.node.setAttribute('selected', 'false'); filters.getDefaultFilter(circle, i); }); } path.node.setAttribute('selected', 'true'); selected = 'true'; if (typeof w.globals.selectedDataPoints[i] === 'undefined') { w.globals.selectedDataPoints[i] = []; } w.globals.selectedDataPoints[i].push(j); } if (selected === 'true') { var activeFilter = w.config.states.active.filter; if (activeFilter !== 'none') { filters.applyFilter(path, i, activeFilter.type, activeFilter.value); } } else { if (w.config.states.active.filter.type !== 'none') { filters.getDefaultFilter(path, i); } } if (typeof w.config.chart.events.dataPointSelection === 'function') { w.config.chart.events.dataPointSelection(e, this.ctx, { selectedDataPoints: w.globals.selectedDataPoints, seriesIndex: i, dataPointIndex: j, w: w }); } if (e) { this.ctx.fireEvent('dataPointSelection', [e, this.ctx, { selectedDataPoints: w.globals.selectedDataPoints, seriesIndex: i, dataPointIndex: j, w: w }]); } } }, { key: "rotateAroundCenter", value: function rotateAroundCenter(el) { var coord = el.getBBox(); var x = coord.x + coord.width / 2; var y = coord.y + coord.height / 2; return { x: x, y: y }; } }, { key: "getTextRects", value: function getTextRects(text, fontSize, fontFamily, transform) { var useBBox = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; var w = this.w; var virtualText = this.drawText({ x: -200, y: -200, text: text, textAnchor: 'start', fontSize: fontSize, fontFamily: fontFamily, foreColor: '#fff', opacity: 0 }); if (transform) { virtualText.attr('transform', transform); } w.globals.dom.Paper.add(virtualText); var rect = virtualText.bbox(); if (!useBBox) { rect = virtualText.node.getBoundingClientRect(); } virtualText.remove(); return { width: rect.width, height: rect.height }; } /** * append ... to long text * http://stackoverflow.com/questions/9241315/trimming-text-to-a-given-pixel-width-in-svg * @memberof Graphics **/ }, { key: "placeTextWithEllipsis", value: function placeTextWithEllipsis(textObj, textString, width) { textObj.textContent = textString; if (textString.length > 0) { // ellipsis is needed if (textObj.getComputedTextLength() >= width) { for (var x = textString.length - 3; x > 0; x -= 3) { if (textObj.getSubStringLength(0, x) <= width) { textObj.textContent = textString.substring(0, x) + '...'; return; } } textObj.textContent = '...'; // can't place at all } } } }], [{ key: "setAttrs", value: function setAttrs(el, attrs) { for (var key in attrs) { if (attrs.hasOwnProperty(key)) { el.setAttribute(key, attrs[key]); } } } }]); return Graphics; }(); const name = "en"; const options = { months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], toolbar: { exportToSVG: "Download SVG", exportToPNG: "Download PNG", menu: "Menu", selection: "Selection", selectionZoom: "Selection Zoom", zoomIn: "Zoom In", zoomOut: "Zoom Out", pan: "Panning", reset: "Reset Zoom" } }; var en = { name: name, options: options }; var Options = /*#__PURE__*/ function () { function Options() { _classCallCheck(this, Options); this.yAxis = { show: true, showAlways: false, seriesName: undefined, opposite: false, reversed: false, logarithmic: false, tickAmount: undefined, forceNiceScale: false, max: undefined, min: undefined, floating: false, decimalsInFloat: undefined, labels: { show: true, minWidth: 0, maxWidth: 160, offsetX: 0, offsetY: 0, align: undefined, rotate: 0, padding: 20, style: { colors: [], fontSize: '11px', fontFamily: undefined, cssClass: '' }, formatter: undefined }, axisBorder: { show: false, color: '#78909C', offsetX: 0, offsetY: 0 }, axisTicks: { show: false, color: '#78909C', width: 6, offsetX: 0, offsetY: 0 }, title: { text: undefined, rotate: 90, offsetY: 0, offsetX: 0, style: { color: undefined, fontSize: '11px', fontFamily: undefined, cssClass: '' } }, tooltip: { enabled: false, offsetX: 0 }, crosshairs: { show: true, position: 'front', stroke: { color: '#b6b6b6', width: 1, dashArray: 0 } } }; this.xAxisAnnotation = { x: 0, x2: null, strokeDashArray: 1, fillColor: '#c2c2c2', borderColor: '#c2c2c2', opacity: 0.3, offsetX: 0, offsetY: 0, label: { borderColor: '#c2c2c2', borderWidth: 1, text: undefined, textAnchor: 'middle', orientation: 'vertical', position: 'top', offsetX: 0, offsetY: 0, style: { background: '#fff', color: undefined, fontSize: '11px', fontFamily: undefined, cssClass: '', padding: { left: 5, right: 5, top: 2, bottom: 2 } } } }; this.yAxisAnnotation = { y: 0, y2: null, strokeDashArray: 1, fillColor: '#c2c2c2', borderColor: '#c2c2c2', opacity: 0.3, offsetX: 0, offsetY: 0, yAxisIndex: 0, label: { borderColor: '#c2c2c2', borderWidth: 1, text: undefined, textAnchor: 'end', position: 'right', offsetX: 0, offsetY: -3, style: { background: '#fff', color: undefined, fontSize: '11px', fontFamily: undefined, cssClass: '', padding: { left: 5, right: 5, top: 0, bottom: 2 } } } }; this.pointAnnotation = { x: 0, y: null, yAxisIndex: 0, seriesIndex: 0, marker: { size: 4, fillColor: '#fff', strokeWidth: 2, strokeColor: '#333', shape: 'circle', offsetX: 0, offsetY: 0, radius: 2, cssClass: '' }, label: { borderColor: '#c2c2c2', borderWidth: 1, text: undefined, textAnchor: 'middle', offsetX: 0, offsetY: -15, style: { background: '#fff', color: undefined, fontSize: '11px', fontFamily: undefined, cssClass: '', padding: { left: 5, right: 5, top: 0, bottom: 2 } } }, customSVG: { SVG: undefined, cssClass: undefined, offsetX: 0, offsetY: 0 } }; } _createClass(Options, [{ key: "init", value: function init() { return { annotations: { position: 'front', yaxis: [this.yAxisAnnotation], xaxis: [this.xAxisAnnotation], points: [this.pointAnnotation] }, chart: { animations: { enabled: true, easing: 'easeinout', // linear, easeout, easein, easeinout, swing, bounce, elastic speed: 800, animateGradually: { delay: 150, enabled: true }, dynamicAnimation: { enabled: true, speed: 350 } }, background: 'transparent', locales: [en], defaultLocale: 'en', dropShadow: { enabled: false, enabledSeries: undefined, top: 2, left: 2, blur: 4, color: '#000', opacity: 0.35 }, events: { animationEnd: undefined, beforeMount: undefined, mounted: undefined, updated: undefined, click: undefined, mouseMove: undefined, legendClick: undefined, markerClick: undefined, selection: undefined, dataPointSelection: undefined, dataPointMouseEnter: undefined, dataPointMouseLeave: undefined, beforeZoom: undefined, zoomed: undefined, scrolled: undefined }, foreColor: '#373d3f', fontFamily: 'Helvetica, Arial, sans-serif', height: 'auto', parentHeightOffset: 15, id: undefined, group: undefined, offsetX: 0, offsetY: 0, selection: { enabled: false, type: 'x', // selectedPoints: undefined, // default datapoints that should be selected automatically fill: { color: '#24292e', opacity: 0.1 }, stroke: { width: 1, color: '#24292e', opacity: 0.4, dashArray: 3 }, xaxis: { min: undefined, max: undefined }, yaxis: { min: undefined, max: undefined } }, sparkline: { enabled: false }, brush: { enabled: false, autoScaleYaxis: true, target: undefined }, stacked: false, stackType: 'normal', toolbar: { show: true, tools: { download: true, selection: true, zoom: true, zoomin: true, zoomout: true, pan: true, reset: true, customIcons: [] }, autoSelected: 'zoom' // accepts -> zoom, pan, selection }, type: 'line', width: '100%', zoom: { enabled: true, type: 'x', autoScaleYaxis: false, zoomedArea: { fill: { color: '#90CAF9', opacity: 0.4 }, stroke: { color: '#0D47A1', opacity: 0.4, width: 1 } } } }, plotOptions: { bar: { horizontal: false, columnWidth: '70%', // should be in percent 0 - 100 barHeight: '70%', // should be in percent 0 - 100 distributed: false, endingShape: 'flat', colors: { ranges: [], backgroundBarColors: [], backgroundBarOpacity: 1 }, dataLabels: { maxItems: 100, hideOverflowingLabels: true, position: 'top' // top, center, bottom // TODO: provide stackedLabels for stacked charts which gives additions of values } }, candlestick: { colors: { upward: '#00B746', downward: '#EF403C' }, wick: { useFillColor: true } }, heatmap: { radius: 2, enableShades: true, shadeIntensity: 0.5, reverseNegativeShade: true, distributed: false, colorScale: { inverse: false, ranges: [], min: undefined, max: undefined } }, radialBar: { size: undefined, inverseOrder: false, startAngle: 0, endAngle: 360, offsetX: 0, offsetY: 0, hollow: { margin: 5, size: '50%', background: 'transparent', image: undefined, imageWidth: 150, imageHeight: 150, imageOffsetX: 0, imageOffsetY: 0, imageClipped: true, position: 'front', dropShadow: { enabled: false, top: 0, left: 0, blur: 3, color: '#000', opacity: 0.5 } }, track: { show: true, startAngle: undefined, endAngle: undefined, background: '#f2f2f2', strokeWidth: '97%', opacity: 1, margin: 5, // margin is in pixels dropShadow: { enabled: false, top: 0, left: 0, blur: 3, color: '#000', opacity: 0.5 } }, dataLabels: { show: true, name: { show: true, fontSize: '16px', fontFamily: undefined, color: undefined, offsetY: 0 }, value: { show: true, fontSize: '14px', fontFamily: undefined, color: undefined, offsetY: 16, formatter: function formatter(val) { return val + '%'; } }, total: { show: false, label: 'Total', color: undefined, formatter: function formatter(w) { return w.globals.seriesTotals.reduce(function (a, b) { return a + b; }, 0) / w.globals.series.length + '%'; } } } }, rangeBar: {}, pie: { size: undefined, customScale: 1, offsetX: 0, offsetY: 0, expandOnClick: true, dataLabels: { // These are the percentage values which are displayed on slice offset: 0, // offset by which labels will move outside minAngleToShowLabel: 10 }, donut: { size: '65%', background: 'transparent', labels: { // These are the inner labels appearing inside donut show: false, name: { show: true, fontSize: '16px', fontFamily: undefined, color: undefined, offsetY: -10 }, value: { show: true, fontSize: '20px', fontFamily: undefined, color: undefined, offsetY: 10, formatter: function formatter(val) { return val; } }, total: { show: false, label: 'Total', color: undefined, formatter: function formatter(w) { return w.globals.seriesTotals.reduce(function (a, b) { return a + b; }, 0); } } } } }, radar: { size: undefined, offsetX: 0, offsetY: 0, polygons: { // strokeColor: '#e8e8e8', // should be deprecated in the minor version i.e 3.2 strokeColors: '#e8e8e8', connectorColors: '#e8e8e8', fill: { colors: undefined } } } }, colors: undefined, dataLabels: { enabled: true, enabledOnSeries: undefined, formatter: function formatter(val) { return val !== null ? val : ''; }, textAnchor: 'middle', offsetX: 0, offsetY: 0, style: { fontSize: '12px', fontFamily: undefined, colors: undefined }, dropShadow: { enabled: false, top: 1, left: 1, blur: 1, color: '#000', opacity: 0.45 } }, fill: { type: 'solid', colors: undefined, // array of colors opacity: 0.85, gradient: { shade: 'dark', type: 'horizontal', shadeIntensity: 0.5, gradientToColors: undefined, inverseColors: true, opacityFrom: 1, opacityTo: 1, stops: [0, 50, 100], colorStops: [] }, image: { src: [], width: undefined, // optional height: undefined // optional }, pattern: { style: 'sqaures', // String | Array of Strings width: 6, height: 6, strokeWidth: 2 } }, grid: { show: true, borderColor: '#e0e0e0', strokeDashArray: 0, position: 'back', xaxis: { lines: { show: false, animate: false } }, yaxis: { lines: { show: true, animate: false } }, row: { colors: undefined, // takes as array which will be repeated on rows opacity: 0.5 }, column: { colors: undefined, // takes an array which will be repeated on columns opacity: 0.5 }, padding: { top: 0, right: 10, bottom: 0, left: 12 } }, labels: [], legend: { show: true, showForSingleSeries: false, showForNullSeries: true, showForZeroSeries: true, floating: false, position: 'bottom', // whether to position legends in 1 of 4 // direction - top, bottom, left, right horizontalAlign: 'center', // when position top/bottom, you can specify whether to align legends left, right or center inverseOrder: false, fontSize: '12px', fontFamily: undefined, width: undefined, height: undefined, formatter: undefined, tooltipHoverFormatter: undefined, offsetX: -20, offsetY: 0, labels: { colors: undefined, useSeriesColors: false }, markers: { width: 12, height: 12, strokeWidth: 0, strokeColor: '#fff', radius: 12, customHTML: undefined, offsetX: 0, offsetY: 0, onClick: undefined }, itemMargin: { horizontal: 0, vertical: 5 }, onItemClick: { toggleDataSeries: true }, onItemHover: { highlightDataSeries: true } }, markers: { discrete: [], size: 0, colors: undefined, //strokeColor: '#fff', // TODO: deprecate in major version 4.0 strokeColors: '#fff', strokeWidth: 2, strokeOpacity: 0.9, fillOpacity: 1, shape: 'circle', radius: 2, offsetX: 0, offsetY: 0, onClick: undefined, onDblClick: undefined, hover: { size: undefined, sizeOffset: 3 } }, noData: { text: undefined, align: 'center', verticalAlign: 'middle', offsetX: 0, offsetY: 0, style: { color: undefined, fontSize: '14px', fontFamily: undefined } }, responsive: [], // breakpoints should follow ascending order 400, then 700, then 1000 series: undefined, states: { normal: { filter: { type: 'none', value: 0 } }, hover: { filter: { type: 'lighten', value: 0.15 } }, active: { allowMultipleDataPointsSelection: false, filter: { type: 'darken', value: 0.65 } } }, title: { text: undefined, align: 'left', margin: 10, offsetX: 0, offsetY: 0, floating: false, style: { fontSize: '14px', fontFamily: undefined, color: undefined } }, subtitle: { text: undefined, align: 'left', margin: 10, offsetX: 0, offsetY: 30, floating: false, style: { fontSize: '12px', fontFamily: undefined, color: undefined } }, stroke: { show: true, curve: 'smooth', // "smooth" / "straight" / "stepline" lineCap: 'butt', // round, butt , square width: 2, colors: undefined, // array of colors dashArray: 0 // single value or array of values }, tooltip: { enabled: true, enabledOnSeries: undefined, shared: true, followCursor: false, // when disabled, the tooltip will show on top of the series instead of mouse position intersect: false, // when enabled, tooltip will only show when user directly hovers over point inverseOrder: false, custom: undefined, fillSeriesColor: false, theme: 'light', style: { fontSize: '12px', fontFamily: undefined }, onDatasetHover: { highlightDataSeries: false }, x: { // x value show: true, format: 'dd MMM', // dd/MM, dd MMM yy, dd MMM yyyy formatter: undefined // a custom user supplied formatter function }, y: { formatter: undefined, title: { formatter: function formatter(seriesName) { return seriesName; } } }, z: { formatter: undefined, title: 'Size: ' }, marker: { show: true }, items: { display: 'flex' }, fixed: { enabled: false, position: 'topRight', // topRight, topLeft, bottomRight, bottomLeft offsetX: 0, offsetY: 0 } }, xaxis: { type: 'category', categories: [], offsetX: 0, offsetY: 0, labels: { show: true, rotate: -45, rotateAlways: false, hideOverlappingLabels: true, trim: true, minHeight: undefined, maxHeight: 120, showDuplicates: true, style: { colors: [], fontSize: '12px', fontFamily: undefined, cssClass: '' }, offsetX: 0, offsetY: 0, format: undefined, formatter: undefined, // custom formatter function which will override format datetimeFormatter: { year: 'yyyy', month: "MMM 'yy", day: 'dd MMM', hour: 'HH:mm', minute: 'HH:mm:ss' } }, axisBorder: { show: true, color: '#78909C', width: '100%', height: 1, offsetX: 0, offsetY: 0 }, axisTicks: { show: true, color: '#78909C', height: 6, offsetX: 0, offsetY: 0 }, tickAmount: undefined, tickPlacement: 'on', min: undefined, max: undefined, range: undefined, floating: false, position: 'bottom', title: { text: undefined, offsetX: 0, offsetY: 0, style: { color: undefined, fontSize: '12px', fontFamily: undefined, cssClass: '' } }, crosshairs: { show: true, width: 1, // tickWidth/barWidth or an integer position: 'back', opacity: 0.9, stroke: { color: '#b6b6b6', width: 1, dashArray: 3 }, fill: { type: 'solid', // solid, gradient color: '#B1B9C4', gradient: { colorFrom: '#D8E3F0', colorTo: '#BED1E6', stops: [0, 100], opacityFrom: 0.4, opacityTo: 0.5 } }, dropShadow: { enabled: false, left: 0, top: 0, blur: 1, opacity: 0.4 } }, tooltip: { enabled: true, offsetY: 0, formatter: undefined, style: { fontSize: '12px', fontFamily: undefined } } }, yaxis: this.yAxis, theme: { mode: 'light', palette: 'palette1', // If defined, it will overwrite globals.colors variable monochrome: { // monochrome allows you to select just 1 color and fill out the rest with light/dark shade (intensity can be selected) enabled: false, color: '#008FFB', shadeTo: 'light', shadeIntensity: 0.65 } } }; } }]); return Options; }(); /** * ApexCharts Annotations Class for drawing lines/rects on both xaxis and yaxis. * * @module Annotations **/ var Annotations = /*#__PURE__*/ function () { function Annotations(ctx) { _classCallCheck(this, Annotations); this.ctx = ctx; this.w = ctx.w; this.graphics = new Graphics(this.ctx); if (this.w.globals.isBarHorizontal) { this.invertAxis = true; } this.xDivision = this.w.globals.gridWidth / this.w.globals.dataPoints; } _createClass(Annotations, [{ key: "drawAnnotations", value: function drawAnnotations() { var w = this.w; if (w.globals.axisCharts) { var yAnnotations = this.drawYAxisAnnotations(); var xAnnotations = this.drawXAxisAnnotations(); var pointAnnotations = this.drawPointAnnotations(); var initialAnim = w.config.chart.animations.enabled; var annoArray = [yAnnotations, xAnnotations, pointAnnotations]; var annoElArray = [xAnnotations.node, yAnnotations.node, pointAnnotations.node]; for (var i = 0; i < 3; i++) { w.globals.dom.elGraphical.add(annoArray[i]); if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { // fixes apexcharts/apexcharts.js#685 if (w.config.chart.type !== 'scatter' && w.config.chart.type !== 'bubble') { annoElArray[i].classList.add('hidden'); } } w.globals.delayedElements.push({ el: annoElArray[i], index: 0 }); } // background sizes needs to be calculated after text is drawn, so calling them last this.annotationsBackground(); } } }, { key: "getStringX", value: function getStringX(x) { var w = this.w; var rX = x; var catIndex = w.globals.labels.indexOf(x); var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); if (xLabel) { rX = parseFloat(xLabel.getAttribute('x')); } return rX; } }, { key: "addXaxisAnnotation", value: function addXaxisAnnotation(anno, parent, index) { var w = this.w; var min = this.invertAxis ? w.globals.minY : w.globals.minX; var range = this.invertAxis ? w.globals.yRange[0] : w.globals.xRange; var x1 = (anno.x - min) / (range / w.globals.gridWidth); var text = anno.label.text; if ((w.config.xaxis.type === 'category' || w.config.xaxis.convertedCatToNumeric) && !this.invertAxis && !w.globals.isXNumeric) { x1 = this.getStringX(anno.x); } var strokeDashArray = anno.strokeDashArray; if (x1 < 0 || x1 > w.globals.gridWidth) return; if (anno.x2 === null) { var line = this.graphics.drawLine(x1 + anno.offsetX, // x1 0 + anno.offsetY, // y1 x1 + anno.offsetX, // x2 w.globals.gridHeight + anno.offsetY, // y2 anno.borderColor, // lineColor strokeDashArray //dashArray ); parent.appendChild(line.node); } else { var x2 = (anno.x2 - min) / (range / w.globals.gridWidth); if ((w.config.xaxis.type === 'category' || w.config.xaxis.convertedCatToNumeric) && !this.invertAxis && !w.globals.isXNumeric) { x2 = this.getStringX(anno.x2); } if (x2 < x1) { var temp = x1; x1 = x2; x2 = temp; } if (text) { var rect = this.graphics.drawRect(x1 + anno.offsetX, // x1 0 + anno.offsetY, // y1 x2 - x1, // x2 w.globals.gridHeight + anno.offsetY, // y2 0, // radius anno.fillColor, // color anno.opacity, // opacity, 1, // strokeWidth anno.borderColor, // strokeColor strokeDashArray // stokeDashArray ); parent.appendChild(rect.node); } } var textY = anno.label.position === 'top' ? -3 : w.globals.gridHeight; var elText = this.graphics.drawText({ x: x1 + anno.label.offsetX, y: textY + anno.label.offsetY, text: text, textAnchor: anno.label.textAnchor, fontSize: anno.label.style.fontSize, fontFamily: anno.label.style.fontFamily, foreColor: anno.label.style.color, cssClass: 'apexcharts-xaxis-annotation-label ' + anno.label.style.cssClass }); elText.attr({ rel: index }); parent.appendChild(elText.node); // after placing the annotations on svg, set any vertically placed annotations this.setOrientations(anno, index); } }, { key: "drawXAxisAnnotations", value: function drawXAxisAnnotations() { var _this = this; var w = this.w; var elg = this.graphics.group({ class: 'apexcharts-xaxis-annotations' }); w.config.annotations.xaxis.map(function (anno, index) { _this.addXaxisAnnotation(anno, elg.node, index); }); return elg; } }, { key: "addYaxisAnnotation", value: function addYaxisAnnotation(anno, parent, index) { var w = this.w; var strokeDashArray = anno.strokeDashArray; var y1; var y2; if (this.invertAxis) { var catIndex = w.globals.labels.indexOf(anno.y); var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); if (xLabel) { y1 = parseFloat(xLabel.getAttribute('y')); } } else { y1 = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); if (w.config.yaxis[anno.yAxisIndex] && w.config.yaxis[anno.yAxisIndex].reversed) { y1 = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); } } var text = anno.label.text; if (anno.y2 === null) { var line = this.graphics.drawLine(0 + anno.offsetX, // x1 y1 + anno.offsetY, // y1 w.globals.gridWidth + anno.offsetX, // x2 y1 + anno.offsetY, // y2 anno.borderColor, // lineColor strokeDashArray // dashArray ); parent.appendChild(line.node); } else { if (this.invertAxis) { var _catIndex = w.globals.labels.indexOf(anno.y2); var _xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (_catIndex + 1) + ')'); if (_xLabel) { y2 = parseFloat(_xLabel.getAttribute('y')); } } else { y2 = w.globals.gridHeight - (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); if (w.config.yaxis[anno.yAxisIndex] && w.config.yaxis[anno.yAxisIndex].reversed) { y2 = (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); } } if (y2 > y1) { var temp = y1; y1 = y2; y2 = temp; } if (text) { var rect = this.graphics.drawRect(0 + anno.offsetX, // x1 y2 + anno.offsetY, // y1 w.globals.gridWidth + anno.offsetX, // x2 y1 - y2, // y2 0, // radius anno.fillColor, // color anno.opacity, // opacity, 1, // strokeWidth anno.borderColor, // strokeColor strokeDashArray // stokeDashArray ); parent.appendChild(rect.node); } } var textX = anno.label.position === 'right' ? w.globals.gridWidth : 0; var elText = this.graphics.drawText({ x: textX + anno.label.offsetX, y: (y2 || y1) + anno.label.offsetY - 3, text: text, textAnchor: anno.label.textAnchor, fontSize: anno.label.style.fontSize, fontFamily: anno.label.style.fontFamily, foreColor: anno.label.style.color, cssClass: 'apexcharts-yaxis-annotation-label ' + anno.label.style.cssClass }); elText.attr({ rel: index }); parent.appendChild(elText.node); } }, { key: "drawYAxisAnnotations", value: function drawYAxisAnnotations() { var _this2 = this; var w = this.w; var elg = this.graphics.group({ class: 'apexcharts-yaxis-annotations' }); w.config.annotations.yaxis.map(function (anno, index) { _this2.addYaxisAnnotation(anno, elg.node, index); }); return elg; } }, { key: "clearAnnotations", value: function clearAnnotations(ctx) { var w = ctx.w; var annos = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations'); annos = Utils.listToArray(annos); annos.forEach(function (a) { while (a.firstChild) { a.removeChild(a.firstChild); } }); } }, { key: "addPointAnnotation", value: function addPointAnnotation(anno, parent, index) { var w = this.w; var x = 0; var y = 0; var pointY = 0; if (this.invertAxis) { console.warn('Point annotation is not supported in horizontal bar charts.'); } if (typeof anno.x === 'string') { var catIndex = w.globals.labels.indexOf(anno.x); var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); var xPos = parseFloat(xLabel.getAttribute('x')); x = xPos; var annoY = anno.y; if (anno.y === null) { annoY = w.globals.series[anno.seriesIndex][catIndex]; } y = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; pointY = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); if (w.config.yaxis[anno.yAxisIndex] && w.config.yaxis[anno.yAxisIndex].reversed) { y = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) + parseInt(anno.label.style.fontSize) + anno.marker.size; pointY = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); } } else { x = (anno.x - w.globals.minX) / (w.globals.xRange / w.globals.gridWidth); y = w.globals.gridHeight - (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; pointY = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); if (w.config.yaxis[anno.yAxisIndex] && w.config.yaxis[anno.yAxisIndex].reversed) { y = (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; pointY = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); } } if (x < 0 || x > w.globals.gridWidth) return; var optsPoints = { pSize: anno.marker.size, pWidth: anno.marker.strokeWidth, pointFillColor: anno.marker.fillColor, pointStrokeColor: anno.marker.strokeColor, shape: anno.marker.shape, radius: anno.marker.radius, class: 'apexcharts-point-annotation-marker ' + anno.marker.cssClass }; var point = this.graphics.drawMarker(x + anno.marker.offsetX, pointY + anno.marker.offsetY, optsPoints); parent.appendChild(point.node); var text = anno.label.text ? anno.label.text : ''; var elText = this.graphics.drawText({ x: x + anno.label.offsetX, y: y + anno.label.offsetY, text: text, textAnchor: anno.label.textAnchor, fontSize: anno.label.style.fontSize, fontFamily: anno.label.style.fontFamily, foreColor: anno.label.style.color, cssClass: 'apexcharts-point-annotation-label ' + anno.label.style.cssClass }); elText.attr({ rel: index }); parent.appendChild(elText.node); if (anno.customSVG.SVG) { var g = this.graphics.group({ class: 'apexcharts-point-annotations-custom-svg ' + anno.customSVG.cssClass }); g.attr({ transform: "translate(".concat(x + anno.customSVG.offsetX, ", ").concat(y + anno.customSVG.offsetY, ")") }); g.node.innerHTML = anno.customSVG.SVG; parent.appendChild(g.node); } } }, { key: "drawPointAnnotations", value: function drawPointAnnotations() { var _this3 = this; var w = this.w; var elg = this.graphics.group({ class: 'apexcharts-point-annotations' }); w.config.annotations.points.map(function (anno, index) { _this3.addPointAnnotation(anno, elg.node, index); }); return elg; } }, { key: "setOrientations", value: function setOrientations(anno) { var annoIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var w = this.w; if (anno.label.orientation === 'vertical') { var i = annoIndex !== null ? annoIndex : 0; var xAnno = w.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i, "']")); if (xAnno !== null) { var xAnnoCoord = xAnno.getBoundingClientRect(); xAnno.setAttribute('x', parseFloat(xAnno.getAttribute('x')) - xAnnoCoord.height + 4); if (anno.label.position === 'top') { xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) + xAnnoCoord.width); } else { xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) - xAnnoCoord.width); } var annoRotatingCenter = this.graphics.rotateAroundCenter(xAnno); var x = annoRotatingCenter.x; var y = annoRotatingCenter.y; xAnno.setAttribute('transform', "rotate(-90 ".concat(x, " ").concat(y, ")")); } } } }, { key: "addBackgroundToAnno", value: function addBackgroundToAnno(annoEl, anno) { var w = this.w; if (!anno.label.text || anno.label.text && !anno.label.text.trim()) return null; var elGridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid').getBoundingClientRect(); var coords = annoEl.getBoundingClientRect(); var pleft = anno.label.style.padding.left; var pright = anno.label.style.padding.right; var ptop = anno.label.style.padding.top; var pbottom = anno.label.style.padding.bottom; if (anno.label.orientation === 'vertical') { ptop = anno.label.style.padding.left; pbottom = anno.label.style.padding.right; pleft = anno.label.style.padding.top; pright = anno.label.style.padding.bottom; } var x1 = coords.left - elGridRect.left - pleft; var y1 = coords.top - elGridRect.top - ptop; var elRect = this.graphics.drawRect(x1, y1, coords.width + pleft + pright, coords.height + ptop + pbottom, 0, anno.label.style.background, 1, anno.label.borderWidth, anno.label.borderColor, 0); return elRect; } }, { key: "annotationsBackground", value: function annotationsBackground() { var _this4 = this; var w = this.w; var add = function add(anno, i, type) { var annoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(i, "']")); if (annoLabel) { var parent = annoLabel.parentNode; var elRect = _this4.addBackgroundToAnno(annoLabel, anno); if (elRect) { parent.insertBefore(elRect.node, annoLabel); } } }; w.config.annotations.xaxis.map(function (anno, i) { add(anno, i, 'xaxis'); }); w.config.annotations.yaxis.map(function (anno, i) { add(anno, i, 'yaxis'); }); w.config.annotations.points.map(function (anno, i) { add(anno, i, 'point'); }); } }, { key: "addText", value: function addText(params, pushToMemory, context) { var x = params.x, y = params.y, text = params.text, textAnchor = params.textAnchor, _params$appendTo = params.appendTo, appendTo = _params$appendTo === void 0 ? '.apexcharts-inner' : _params$appendTo, foreColor = params.foreColor, fontSize = params.fontSize, fontFamily = params.fontFamily, cssClass = params.cssClass, backgroundColor = params.backgroundColor, borderWidth = params.borderWidth, strokeDashArray = params.strokeDashArray, radius = params.radius, borderColor = params.borderColor, _params$paddingLeft = params.paddingLeft, paddingLeft = _params$paddingLeft === void 0 ? 4 : _params$paddingLeft, _params$paddingRight = params.paddingRight, paddingRight = _params$paddingRight === void 0 ? 4 : _params$paddingRight, _params$paddingBottom = params.paddingBottom, paddingBottom = _params$paddingBottom === void 0 ? 2 : _params$paddingBottom, _params$paddingTop = params.paddingTop, paddingTop = _params$paddingTop === void 0 ? 2 : _params$paddingTop; var me = context; var w = me.w; var parentNode = w.globals.dom.baseEl.querySelector(appendTo); var elText = this.graphics.drawText({ x: x, y: y, text: text, textAnchor: textAnchor || 'start', fontSize: fontSize || '12px', fontFamily: fontFamily || w.config.chart.fontFamily, foreColor: foreColor || w.config.chart.foreColor, cssClass: 'apexcharts-text ' + cssClass ? cssClass : '' }); parentNode.appendChild(elText.node); var textRect = elText.bbox(); if (text) { var elRect = this.graphics.drawRect(textRect.x - paddingLeft, textRect.y - paddingTop, textRect.width + paddingLeft + paddingRight, textRect.height + paddingBottom + paddingTop, radius, backgroundColor, 1, borderWidth, borderColor, strokeDashArray); elText.before(elRect); } if (pushToMemory) { w.globals.memory.methodsToExec.push({ context: me, method: me.addText, params: { x: x, y: y, text: text, textAnchor: textAnchor, appendTo: appendTo, foreColor: foreColor, fontSize: fontSize, cssClass: cssClass, backgroundColor: backgroundColor, borderWidth: borderWidth, strokeDashArray: strokeDashArray, radius: radius, borderColor: borderColor, paddingLeft: paddingLeft, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingTop: paddingTop } }); } return context; } }, { key: "addPointAnnotationExternal", value: function addPointAnnotationExternal(params, pushToMemory, context) { if (typeof this.invertAxis === 'undefined') { this.invertAxis = context.w.globals.isBarHorizontal; } this.addAnnotationExternal({ params: params, pushToMemory: pushToMemory, context: context, type: 'point', contextMethod: context.addPointAnnotation }); return context; } }, { key: "addYaxisAnnotationExternal", value: function addYaxisAnnotationExternal(params, pushToMemory, context) { this.addAnnotationExternal({ params: params, pushToMemory: pushToMemory, context: context, type: 'yaxis', contextMethod: context.addYaxisAnnotation }); return context; } // The addXaxisAnnotation method requires a parent class, and user calling this method externally on the chart instance may not specify parent, hence a different method }, { key: "addXaxisAnnotationExternal", value: function addXaxisAnnotationExternal(params, pushToMemory, context) { this.addAnnotationExternal({ params: params, pushToMemory: pushToMemory, context: context, type: 'xaxis', contextMethod: context.addXaxisAnnotation }); return context; } }, { key: "addAnnotationExternal", value: function addAnnotationExternal(_ref) { var params = _ref.params, pushToMemory = _ref.pushToMemory, context = _ref.context, type = _ref.type, contextMethod = _ref.contextMethod; var me = context; var w = me.w; var parent = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations")); var index = parent.childNodes.length + 1; var opt = new Options(); var axesAnno = Object.assign({}, type === 'xaxis' ? opt.xAxisAnnotation : type === 'yaxis' ? opt.yAxisAnnotation : opt.pointAnnotation); var anno = Utils.extend(axesAnno, params); switch (type) { case 'xaxis': this.addXaxisAnnotation(anno, parent, index); break; case 'yaxis': this.addYaxisAnnotation(anno, parent, index); break; case 'point': this.addPointAnnotation(anno, parent, index); break; } // add background var axesAnnoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(index, "']")); var elRect = this.addBackgroundToAnno(axesAnnoLabel, anno); if (elRect) { parent.insertBefore(elRect.node, axesAnnoLabel); } if (pushToMemory) { w.globals.memory.methodsToExec.push({ context: me, method: contextMethod, params: params }); } return context; } }]); return Annotations; }(); /** * DateTime Class to manipulate datetime values. * * @module DateTime **/ var DateTime = /*#__PURE__*/ function () { function DateTime(ctx) { _classCallCheck(this, DateTime); this.ctx = ctx; this.w = ctx.w; this.months31 = [1, 3, 5, 7, 8, 10, 12]; this.months30 = [2, 4, 6, 9, 11]; this.daysCntOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; } _createClass(DateTime, [{ key: "isValidDate", value: function isValidDate(date) { return !isNaN(this.parseDate(date)); } }, { key: "getUTCTimeStamp", value: function getUTCTimeStamp(dateStr) { if (!Date.parse(dateStr)) { return dateStr; } return new Date(new Date(dateStr).toISOString().substr(0, 25)).getTime(); } }, { key: "parseDate", value: function parseDate(dateStr) { var parsed = Date.parse(dateStr); if (!isNaN(parsed)) { return this.getUTCTimeStamp(dateStr); } var output = Date.parse(dateStr.replace(/-/g, '/').replace(/[a-z]+/gi, ' ')); output = this.getUTCTimeStamp(output); return output; } // https://stackoverflow.com/a/11252167/6495043 }, { key: "treatAsUtc", value: function treatAsUtc(dateStr) { var result = new Date(dateStr); result.setMinutes(result.getMinutes() - result.getTimezoneOffset()); return result; } // http://stackoverflow.com/questions/14638018/current-time-formatting-with-javascript#answer-14638191 }, { key: "formatDate", value: function formatDate(date, format) { var utc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var convertToUTC = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var locale = this.w.globals.locale; var MMMM = ['\x00'].concat(_toConsumableArray(locale.months)); var MMM = ['\x01'].concat(_toConsumableArray(locale.shortMonths)); var dddd = ['\x02'].concat(_toConsumableArray(locale.days)); var ddd = ['\x03'].concat(_toConsumableArray(locale.shortDays)); function ii(i, len) { var s = i + ''; len = len || 2; while (s.length < len) { s = '0' + s; } return s; } if (convertToUTC) { date = this.treatAsUtc(date); } var y = utc ? date.getUTCFullYear() : date.getFullYear(); format = format.replace(/(^|[^\\])yyyy+/g, '$1' + y); format = format.replace(/(^|[^\\])yy/g, '$1' + y.toString().substr(2, 2)); format = format.replace(/(^|[^\\])y/g, '$1' + y); var M = (utc ? date.getUTCMonth() : date.getMonth()) + 1; format = format.replace(/(^|[^\\])MMMM+/g, '$1' + MMMM[0]); format = format.replace(/(^|[^\\])MMM/g, '$1' + MMM[0]); format = format.replace(/(^|[^\\])MM/g, '$1' + ii(M)); format = format.replace(/(^|[^\\])M/g, '$1' + M); var d = utc ? date.getUTCDate() : date.getDate(); format = format.replace(/(^|[^\\])dddd+/g, '$1' + dddd[0]); format = format.replace(/(^|[^\\])ddd/g, '$1' + ddd[0]); format = format.replace(/(^|[^\\])dd/g, '$1' + ii(d)); format = format.replace(/(^|[^\\])d/g, '$1' + d); var H = utc ? date.getUTCHours() : date.getHours(); format = format.replace(/(^|[^\\])HH+/g, '$1' + ii(H)); format = format.replace(/(^|[^\\])H/g, '$1' + H); var h = H > 12 ? H - 12 : H === 0 ? 12 : H; format = format.replace(/(^|[^\\])hh+/g, '$1' + ii(h)); format = format.replace(/(^|[^\\])h/g, '$1' + h); var m = utc ? date.getUTCMinutes() : date.getMinutes(); format = format.replace(/(^|[^\\])mm+/g, '$1' + ii(m)); format = format.replace(/(^|[^\\])m/g, '$1' + m); var s = utc ? date.getUTCSeconds() : date.getSeconds(); format = format.replace(/(^|[^\\])ss+/g, '$1' + ii(s)); format = format.replace(/(^|[^\\])s/g, '$1' + s); var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); format = format.replace(/(^|[^\\])fff+/g, '$1' + ii(f, 3)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])ff/g, '$1' + ii(f)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])f/g, '$1' + f); var T = H < 12 ? 'AM' : 'PM'; format = format.replace(/(^|[^\\])TT+/g, '$1' + T); format = format.replace(/(^|[^\\])T/g, '$1' + T.charAt(0)); var t = T.toLowerCase(); format = format.replace(/(^|[^\\])tt+/g, '$1' + t); format = format.replace(/(^|[^\\])t/g, '$1' + t.charAt(0)); var tz = -date.getTimezoneOffset(); var K = utc || !tz ? 'Z' : tz > 0 ? '+' : '-'; if (!utc) { tz = Math.abs(tz); var tzHrs = Math.floor(tz / 60); var tzMin = tz % 60; K += ii(tzHrs) + ':' + ii(tzMin); } format = format.replace(/(^|[^\\])K/g, '$1' + K); var day = (utc ? date.getUTCDay() : date.getDay()) + 1; format = format.replace(new RegExp(dddd[0], 'g'), dddd[day]); format = format.replace(new RegExp(ddd[0], 'g'), ddd[day]); format = format.replace(new RegExp(MMMM[0], 'g'), MMMM[M]); format = format.replace(new RegExp(MMM[0], 'g'), MMM[M]); format = format.replace(/\\(.)/g, '$1'); return format; } }, { key: "getTimeUnitsfromTimestamp", value: function getTimeUnitsfromTimestamp(minX, maxX) { var w = this.w; if (w.config.xaxis.min !== undefined) { minX = w.config.xaxis.min; } if (w.config.xaxis.max !== undefined) { maxX = w.config.xaxis.max; } var minYear = new Date(minX).getFullYear(); var maxYear = new Date(maxX).getFullYear(); var minMonth = new Date(minX).getMonth(); var maxMonth = new Date(maxX).getMonth(); var minDate = new Date(minX).getDate(); var maxDate = new Date(maxX).getDate(); var minHour = new Date(minX).getHours(); var maxHour = new Date(maxX).getHours(); var minMinute = new Date(minX).getMinutes(); var maxMinute = new Date(maxX).getMinutes(); return { minMinute: minMinute, maxMinute: maxMinute, minHour: minHour, maxHour: maxHour, minDate: minDate, maxDate: maxDate, minMonth: minMonth, maxMonth: maxMonth, minYear: minYear, maxYear: maxYear }; } }, { key: "isLeapYear", value: function isLeapYear(year) { return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; } }, { key: "calculcateLastDaysOfMonth", value: function calculcateLastDaysOfMonth(month, year, subtract) { var days = this.determineDaysOfMonths(month, year); // whatever days we get, subtract the number of days asked return days - subtract; } }, { key: "determineDaysOfYear", value: function determineDaysOfYear(year) { var days = 365; if (this.isLeapYear(year)) { days = 366; } return days; } }, { key: "determineRemainingDaysOfYear", value: function determineRemainingDaysOfYear(year, month, date) { var dayOfYear = this.daysCntOfYear[month] + date; if (month > 1 && this.isLeapYear()) dayOfYear++; return dayOfYear; } }, { key: "determineDaysOfMonths", value: function determineDaysOfMonths(month, year) { var days = 30; month = Utils.monthMod(month); switch (true) { case this.months30.indexOf(month) > -1: if (month === 2) { if (this.isLeapYear(year)) { days = 29; } else { days = 28; } } break; case this.months31.indexOf(month) > -1: days = 31; break; default: days = 31; break; } return days; } }]); return DateTime; }(); /** * ApexCharts Default Class for setting default options for all chart types. * * @module Defaults **/ var Defaults = /*#__PURE__*/ function () { function Defaults(opts) { _classCallCheck(this, Defaults); this.opts = opts; } _createClass(Defaults, [{ key: "line", value: function line() { return { chart: { animations: { easing: 'swing' } }, dataLabels: { enabled: false }, stroke: { width: 5, curve: 'straight' }, markers: { size: 0, hover: { sizeOffset: 6 } }, xaxis: { crosshairs: { width: 1 } } }; } }, { key: "sparkline", value: function sparkline(defaults) { this.opts.yaxis[0].labels.show = false; this.opts.yaxis[0].floating = true; var ret = { grid: { show: false, padding: { left: 0, right: 0, top: 0, bottom: 0 } }, legend: { show: false }, xaxis: { labels: { show: false }, tooltip: { enabled: false }, axisBorder: { show: false } }, chart: { toolbar: { show: false }, zoom: { enabled: false } }, dataLabels: { enabled: false } }; return Utils.extend(defaults, ret); } }, { key: "bar", value: function bar() { return { chart: { stacked: false, animations: { easing: 'swing' } }, plotOptions: { bar: { dataLabels: { position: 'center' } } }, dataLabels: { style: { colors: ['#fff'] } }, stroke: { width: 0 }, fill: { opacity: 0.85 }, legend: { markers: { shape: 'square', radius: 2, size: 8 } }, tooltip: { shared: false }, xaxis: { tooltip: { enabled: false }, crosshairs: { width: 'barWidth', position: 'back', fill: { type: 'gradient' }, dropShadow: { enabled: false }, stroke: { width: 0 } } } }; } }, { key: "candlestick", value: function candlestick() { return { stroke: { width: 1, colors: ['#333'] }, dataLabels: { enabled: false }, tooltip: { shared: true, custom: function custom(_ref) { var seriesIndex = _ref.seriesIndex, dataPointIndex = _ref.dataPointIndex, w = _ref.w; var o = w.globals.seriesCandleO[seriesIndex][dataPointIndex]; var h = w.globals.seriesCandleH[seriesIndex][dataPointIndex]; var l = w.globals.seriesCandleL[seriesIndex][dataPointIndex]; var c = w.globals.seriesCandleC[seriesIndex][dataPointIndex]; return '
    ' + '
    Open: ' + o + '
    ' + '
    High: ' + h + '
    ' + '
    Low: ' + l + '
    ' + '
    Close: ' + c + '
    ' + '
    '; } }, states: { active: { filter: { type: 'none' } } }, xaxis: { crosshairs: { width: 1 } } }; } }, { key: "rangeBar", value: function rangeBar() { return { stroke: { width: 0 }, plotOptions: { bar: { dataLabels: { position: 'center' } } }, dataLabels: { enabled: false, formatter: function formatter(val, _ref2) { var ctx = _ref2.ctx, seriesIndex = _ref2.seriesIndex, dataPointIndex = _ref2.dataPointIndex, w = _ref2.w; var start = w.globals.seriesRangeStart[seriesIndex][dataPointIndex]; var end = w.globals.seriesRangeEnd[seriesIndex][dataPointIndex]; return end - start; }, style: { colors: ['#fff'] } }, tooltip: { shared: false, followCursor: true, custom: function custom(_ref3) { var ctx = _ref3.ctx, seriesIndex = _ref3.seriesIndex, dataPointIndex = _ref3.dataPointIndex, w = _ref3.w; var start = w.globals.seriesRangeStart[seriesIndex][dataPointIndex]; var end = w.globals.seriesRangeEnd[seriesIndex][dataPointIndex]; var startVal = ''; var endVal = ''; var color = w.globals.colors[seriesIndex]; if (w.config.tooltip.x.formatter === undefined) { if (w.config.xaxis.type === 'datetime') { var datetimeObj = new DateTime(ctx); startVal = datetimeObj.formatDate(new Date(start), w.config.tooltip.x.format, true, true); endVal = datetimeObj.formatDate(new Date(end), w.config.tooltip.x.format, true, true); } else { startVal = start; endVal = end; } } else { startVal = w.config.tooltip.x.formatter(start); endVal = w.config.tooltip.x.formatter(end); } var ylabel = w.globals.labels[dataPointIndex]; return '
    ' + '
    ' + (w.config.series[seriesIndex].name ? w.config.series[seriesIndex].name : '') + '
    ' + '
    ' + ylabel + ': ' + startVal + ' - ' + endVal + '
    ' + '
    '; } }, xaxis: { tooltip: { enabled: false }, crosshairs: { stroke: { width: 0 } } } }; } }, { key: "area", value: function area() { return { stroke: { width: 4 }, fill: { type: 'gradient', gradient: { inverseColors: false, shade: 'light', type: 'vertical', opacityFrom: 0.65, opacityTo: 0.5, stops: [0, 100, 100] } }, markers: { size: 0, hover: { sizeOffset: 6 } }, tooltip: { followCursor: false } }; } }, { key: "brush", value: function brush(defaults) { var ret = { chart: { toolbar: { autoSelected: 'selection', show: false }, zoom: { enabled: false } }, dataLabels: { enabled: false }, stroke: { width: 1 }, tooltip: { enabled: false }, xaxis: { tooltip: { enabled: false } } }; return Utils.extend(defaults, ret); } }, { key: "stacked100", value: function stacked100() { var _this = this; this.opts.dataLabels = this.opts.dataLabels || {}; this.opts.dataLabels.formatter = this.opts.dataLabels.formatter || undefined; var existingDataLabelFormatter = this.opts.dataLabels.formatter; this.opts.yaxis.forEach(function (yaxe, index) { _this.opts.yaxis[index].min = 0; _this.opts.yaxis[index].max = 100; }); var isBar = this.opts.chart.type === 'bar'; if (isBar) { this.opts.dataLabels.formatter = existingDataLabelFormatter || function (val) { if (typeof val === 'number') { return val ? val.toFixed(0) + '%' : val; } return val; }; } } // This function removes the left and right spacing in chart for line/area/scatter if xaxis type = category for those charts by converting xaxis = numeric. Numeric/Datetime xaxis prevents the unnecessary spacing in the left/right of the chart area }, { key: "bubble", value: function bubble() { return { dataLabels: { style: { colors: ['#fff'] } }, tooltip: { shared: false, intersect: true }, xaxis: { crosshairs: { width: 0 } }, fill: { type: 'solid', gradient: { shade: 'light', inverse: true, shadeIntensity: 0.55, opacityFrom: 0.4, opacityTo: 0.8 } } }; } }, { key: "scatter", value: function scatter() { return { dataLabels: { enabled: false }, tooltip: { shared: false, intersect: true }, markers: { size: 6, strokeWidth: 2, hover: { sizeOffset: 2 } } }; } }, { key: "heatmap", value: function heatmap() { return { chart: { stacked: false, zoom: { enabled: false } }, fill: { opacity: 1 }, dataLabels: { style: { colors: ['#fff'] } }, stroke: { colors: ['#fff'] }, tooltip: { followCursor: true, marker: { show: false }, x: { show: false } }, legend: { position: 'top', markers: { shape: 'square', size: 10, offsetY: 2 } }, grid: { padding: { right: 20 } } }; } }, { key: "pie", value: function pie() { return { chart: { toolbar: { show: false } }, plotOptions: { pie: { donut: { labels: { show: false } } } }, dataLabels: { formatter: function formatter(val) { return val.toFixed(1) + '%'; }, style: { colors: ['#fff'] }, dropShadow: { enabled: true } }, stroke: { colors: ['#fff'] }, fill: { opacity: 1, gradient: { shade: 'dark', shadeIntensity: 0.35, inverseColors: false, stops: [0, 100, 100] } }, padding: { right: 0, left: 0 }, tooltip: { theme: 'dark', fillSeriesColor: true }, legend: { position: 'right' } }; } }, { key: "donut", value: function donut() { return { chart: { toolbar: { show: false } }, dataLabels: { formatter: function formatter(val) { return val.toFixed(1) + '%'; }, style: { colors: ['#fff'] }, dropShadow: { enabled: true } }, stroke: { colors: ['#fff'] }, fill: { opacity: 1, gradient: { shade: 'dark', shadeIntensity: 0.4, inverseColors: false, type: 'vertical', opacityFrom: 1, opacityTo: 1, stops: [70, 98, 100] } }, padding: { right: 0, left: 0 }, tooltip: { theme: 'dark', fillSeriesColor: true }, legend: { position: 'right' } }; } }, { key: "radar", value: function radar() { this.opts.yaxis[0].labels.style.fontSize = '13px'; this.opts.yaxis[0].labels.offsetY = 6; return { dataLabels: { enabled: true, style: { colors: ['#a8a8a8'], fontSize: '11px' } }, stroke: { width: 2 }, markers: { size: 3, strokeWidth: 1, strokeOpacity: 1 }, fill: { opacity: 0.2 }, tooltip: { shared: false, intersect: true, followCursor: true }, grid: { show: false }, xaxis: { tooltip: { enabled: false }, crosshairs: { show: false } } }; } }, { key: "radialBar", value: function radialBar() { return { chart: { animations: { dynamicAnimation: { enabled: true, speed: 800 } }, toolbar: { show: false } }, fill: { gradient: { shade: 'dark', shadeIntensity: 0.4, inverseColors: false, type: 'diagonal2', opacityFrom: 1, opacityTo: 1, stops: [70, 98, 100] } }, padding: { right: 0, left: 0 }, legend: { show: false, position: 'right' }, tooltip: { enabled: false, fillSeriesColor: true } }; } }], [{ key: "convertCatToNumeric", value: function convertCatToNumeric(opts) { opts.xaxis.type = 'numeric'; opts.xaxis.convertedCatToNumeric = true; opts.xaxis.labels = opts.xaxis.labels || {}; opts.xaxis.labels.formatter = opts.xaxis.labels.formatter || function (val) { return val; }; opts.chart = opts.chart || {}; opts.chart.zoom = opts.chart.zoom || window.Apex.chart && window.Apex.chart.zoom || {}; var defaultFormatter = opts.xaxis.labels.formatter; var labels = opts.xaxis.categories && opts.xaxis.categories.length ? opts.xaxis.categories : opts.labels; if (labels && labels.length) { opts.xaxis.labels.formatter = function (val) { return defaultFormatter(labels[val - 1]); }; } opts.xaxis.categories = []; opts.labels = []; opts.chart.zoom.enabled = opts.chart.zoom.enabled || false; return opts; } }]); return Defaults; }(); /* ** Util functions which are dependent on ApexCharts instance */ var CoreUtils = /*#__PURE__*/ function () { function CoreUtils(ctx) { _classCallCheck(this, CoreUtils); this.ctx = ctx; this.w = ctx.w; } _createClass(CoreUtils, [{ key: "getStackedSeriesTotals", /** * @memberof CoreUtils * returns the sum of all individual values in a multiple stacked series * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] * @return [34,36,48,13] **/ value: function getStackedSeriesTotals() { var w = this.w; var total = []; if (w.globals.series.length === 0) return total; for (var i = 0; i < w.globals.series[w.globals.maxValsInArrayIndex].length; i++) { var t = 0; for (var j = 0; j < w.globals.series.length; j++) { t += w.globals.series[j][i]; } total.push(t); } w.globals.stackedSeriesTotals = total; return total; } // get total of the all values inside all series }, { key: "getSeriesTotalByIndex", value: function getSeriesTotalByIndex() { var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; if (index === null) { // non-plot chart types - pie / donut / circle return this.w.config.series.reduce(function (acc, cur) { return acc + cur; }, 0); } else { // axis charts - supporting multiple series return this.w.globals.series[index].reduce(function (acc, cur) { return acc + cur; }, 0); } } }, { key: "isSeriesNull", value: function isSeriesNull() { var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var r = []; if (index === null) { // non-plot chart types - pie / donut / circle r = this.w.config.series.filter(function (d) { return d !== null; }); } else { // axis charts - supporting multiple series r = this.w.globals.series[index].filter(function (d) { return d !== null; }); } return r.length === 0; } }, { key: "seriesHaveSameValues", value: function seriesHaveSameValues(index) { return this.w.globals.series[index].every(function (val, i, arr) { return val === arr[0]; }); } // maxValsInArrayIndex is the index of series[] which has the largest number of items }, { key: "getLargestSeries", value: function getLargestSeries() { var w = this.w; w.globals.maxValsInArrayIndex = w.globals.series.map(function (a) { return a.length; }).indexOf(Math.max.apply(Math, w.globals.series.map(function (a) { return a.length; }))); } }, { key: "getLargestMarkerSize", value: function getLargestMarkerSize() { var w = this.w; var size = 0; w.globals.markers.size.forEach(function (m) { size = Math.max(size, m); }); w.globals.markers.largestSize = size; return size; } /** * @memberof Core * returns the sum of all values in a series * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] * @return [120, 11] **/ }, { key: "getSeriesTotals", value: function getSeriesTotals() { var w = this.w; w.globals.seriesTotals = w.globals.series.map(function (ser, index) { var total = 0; if (Array.isArray(ser)) { for (var j = 0; j < ser.length; j++) { total += ser[j]; } } else { // for pie/donuts/gauges total += ser; } return total; }); } }, { key: "getSeriesTotalsXRange", value: function getSeriesTotalsXRange(minX, maxX) { var w = this.w; var seriesTotalsXRange = w.globals.series.map(function (ser, index) { var total = 0; for (var j = 0; j < ser.length; j++) { if (w.globals.seriesX[index][j] > minX && w.globals.seriesX[index][j] < maxX) { total += ser[j]; } } return total; }); return seriesTotalsXRange; } /** * @memberof CoreUtils * returns the percentage value of all individual values which can be used in a 100% stacked series * Eg. w.globals.series = [[32, 33, 43, 12], [2, 3, 5, 1]] * @return [[94.11, 91.66, 89.58, 92.30], [5.88, 8.33, 10.41, 7.7]] **/ }, { key: "getPercentSeries", value: function getPercentSeries() { var w = this.w; w.globals.seriesPercent = w.globals.series.map(function (ser, index) { var seriesPercent = []; if (Array.isArray(ser)) { for (var j = 0; j < ser.length; j++) { var total = w.globals.stackedSeriesTotals[j]; var percent = 0; if (total) { percent = 100 * ser[j] / total; } seriesPercent.push(percent); } } else { var _total = w.globals.seriesTotals.reduce(function (acc, val) { return acc + val; }, 0); var _percent = 100 * ser / _total; seriesPercent.push(_percent); } return seriesPercent; }); } }, { key: "getCalculatedRatios", value: function getCalculatedRatios() { var gl = this.w.globals; var yRatio = []; var invertedYRatio = 0; var xRatio = 0; var initialXRatio = 0; var invertedXRatio = 0; var zRatio = 0; var baseLineY = []; var baseLineInvertedY = 0.1; var baseLineX = 0; gl.yRange = []; if (gl.isMultipleYAxis) { for (var i = 0; i < gl.minYArr.length; i++) { gl.yRange.push(Math.abs(gl.minYArr[i] - gl.maxYArr[i])); baseLineY.push(0); } } else { gl.yRange.push(Math.abs(gl.minY - gl.maxY)); } gl.xRange = Math.abs(gl.maxX - gl.minX); gl.zRange = Math.abs(gl.maxZ - gl.minZ); // multiple y axis for (var _i = 0; _i < gl.yRange.length; _i++) { yRatio.push(gl.yRange[_i] / gl.gridHeight); } xRatio = gl.xRange / gl.gridWidth; initialXRatio = Math.abs(gl.initialmaxX - gl.initialminX) / gl.gridWidth; invertedYRatio = gl.yRange / gl.gridWidth; invertedXRatio = gl.xRange / gl.gridHeight; zRatio = gl.zRange / gl.gridHeight * 16; if (gl.minY !== Number.MIN_VALUE && Math.abs(gl.minY) !== 0) { // Negative numbers present in series gl.hasNegs = true; } if (gl.isMultipleYAxis) { baseLineY = []; // baseline variables is the 0 of the yaxis which will be needed when there are negatives for (var _i2 = 0; _i2 < yRatio.length; _i2++) { baseLineY.push(-gl.minYArr[_i2] / yRatio[_i2]); } } else { baseLineY.push(-gl.minY / yRatio[0]); if (gl.minY !== Number.MIN_VALUE && Math.abs(gl.minY) !== 0) { baseLineInvertedY = -gl.minY / invertedYRatio; // this is for bar chart baseLineX = gl.minX / xRatio; } } return { yRatio: yRatio, invertedYRatio: invertedYRatio, zRatio: zRatio, xRatio: xRatio, initialXRatio: initialXRatio, invertedXRatio: invertedXRatio, baseLineInvertedY: baseLineInvertedY, baseLineY: baseLineY, baseLineX: baseLineX }; } }, { key: "getLogSeries", value: function getLogSeries(series) { var w = this.w; w.globals.seriesLog = series.map(function (s, i) { if (w.config.yaxis[i] && w.config.yaxis[i].logarithmic) { return s.map(function (d) { if (d === null) return null; var logVal = (Math.log(d) - Math.log(w.globals.minYArr[i])) / (Math.log(w.globals.maxYArr[i]) - Math.log(w.globals.minYArr[i])); return logVal; }); } else { return s; } }); return w.globals.seriesLog; } }, { key: "getLogYRatios", value: function getLogYRatios(yRatio) { var _this = this; var w = this.w; var gl = this.w.globals; gl.yLogRatio = yRatio.slice(); gl.logYRange = gl.yRange.map(function (yRange, i) { if (w.config.yaxis[i] && _this.w.config.yaxis[i].logarithmic) { var maxY = -Number.MAX_VALUE; var minY = Number.MIN_VALUE; var range = 1; gl.seriesLog.forEach(function (s, si) { s.forEach(function (v) { if (w.config.yaxis[si] && w.config.yaxis[si].logarithmic) { maxY = Math.max(v, maxY); minY = Math.min(v, minY); } }); }); range = Math.pow(gl.yRange[i], Math.abs(minY - maxY) / gl.yRange[i]); gl.yLogRatio[i] = range / gl.gridHeight; return range; } }); return gl.yLogRatio; } // Some config objects can be array - and we need to extend them correctly }], [{ key: "checkComboSeries", value: function checkComboSeries(series) { var comboCharts = false; var comboChartsHasBars = false; // if user specified a type in series too, turn on comboCharts flag if (series.length && typeof series[0].type !== 'undefined') { comboCharts = true; series.forEach(function (s) { if (s.type === 'bar' || s.type === 'column') { comboChartsHasBars = true; } }); } return { comboCharts: comboCharts, comboChartsHasBars: comboChartsHasBars }; } }, { key: "extendArrayProps", value: function extendArrayProps(configInstance, options) { if (options.yaxis) { options = configInstance.extendYAxis(options); } if (options.annotations) { if (options.annotations.yaxis) { options = configInstance.extendYAxisAnnotations(options); } if (options.annotations.xaxis) { options = configInstance.extendXAxisAnnotations(options); } if (options.annotations.points) { options = configInstance.extendPointAnnotations(options); } } return options; } }]); return CoreUtils; }(); /** * ApexCharts Config Class for extending user options with pre-defined ApexCharts config. * * @module Config **/ var Config = /*#__PURE__*/ function () { function Config(opts) { _classCallCheck(this, Config); this.opts = opts; } _createClass(Config, [{ key: "init", value: function init() { var opts = this.opts; var options = new Options(); var defaults = new Defaults(opts); this.chartType = opts.chart.type; if (this.chartType === 'histogram') { // technically, a histogram can be drawn by a column chart with no spaces in between opts.chart.type = 'bar'; opts = Utils.extend({ plotOptions: { bar: { columnWidth: '99.99%' } } }, opts); } opts = this.extendYAxis(opts); opts = this.extendAnnotations(opts); var config = options.init(); var newDefaults = {}; if (opts && _typeof(opts) === 'object') { var chartDefaults = {}; switch (this.chartType) { case 'line': chartDefaults = defaults.line(); break; case 'area': chartDefaults = defaults.area(); break; case 'bar': chartDefaults = defaults.bar(); break; case 'candlestick': chartDefaults = defaults.candlestick(); break; case 'rangeBar': chartDefaults = defaults.rangeBar(); break; case 'histogram': chartDefaults = defaults.bar(); break; case 'bubble': chartDefaults = defaults.bubble(); break; case 'scatter': chartDefaults = defaults.scatter(); break; case 'heatmap': chartDefaults = defaults.heatmap(); break; case 'pie': chartDefaults = defaults.pie(); break; case 'donut': chartDefaults = defaults.donut(); break; case 'radar': chartDefaults = defaults.radar(); break; case 'radialBar': chartDefaults = defaults.radialBar(); break; default: chartDefaults = defaults.line(); } if (opts.chart.brush && opts.chart.brush.enabled) { chartDefaults = defaults.brush(chartDefaults); } if (opts.chart.stacked && opts.chart.stackType === '100%') { defaults.stacked100(); } // If user has specified a dark theme, make the tooltip dark too this.checkForDarkTheme(window.Apex); // check global window Apex options this.checkForDarkTheme(opts); // check locally passed options opts.xaxis = opts.xaxis || window.Apex.xaxis || {}; var combo = CoreUtils.checkComboSeries(opts.series); if ((opts.chart.type === 'line' || opts.chart.type === 'area' || opts.chart.type === 'scatter') && !combo.comboChartsHasBars && opts.xaxis.type !== 'datetime' && opts.xaxis.type !== 'numeric' && opts.xaxis.tickPlacement !== 'between') { opts = Defaults.convertCatToNumeric(opts); } if (opts.chart.sparkline && opts.chart.sparkline.enabled || window.Apex.chart && window.Apex.chart.sparkline && window.Apex.chart.sparkline.enabled) { chartDefaults = defaults.sparkline(chartDefaults); } newDefaults = Utils.extend(config, chartDefaults); } // config should cascade in this fashion // default-config < global-apex-variable-config < user-defined-config // get GLOBALLY defined options and merge with the default config var mergedWithDefaultConfig = Utils.extend(newDefaults, window.Apex); // get the merged config and extend with user defined config config = Utils.extend(mergedWithDefaultConfig, opts); // some features are not supported. those mismatches should be handled config = this.handleUserInputErrors(config); return config; } }, { key: "extendYAxis", value: function extendYAxis(opts) { var options = new Options(); if (typeof opts.yaxis === 'undefined') { opts.yaxis = {}; } // extend global yaxis config (only if object is provided / not an array) if (opts.yaxis.constructor !== Array && window.Apex.yaxis && window.Apex.yaxis.constructor !== Array) { opts.yaxis = Utils.extend(opts.yaxis, window.Apex.yaxis); } // as we can't extend nested object's array with extend, we need to do it first // user can provide either an array or object in yaxis config if (opts.yaxis.constructor !== Array) { // convert the yaxis to array if user supplied object opts.yaxis = [Utils.extend(options.yAxis, opts.yaxis)]; } else { opts.yaxis = Utils.extendArray(opts.yaxis, options.yAxis); } return opts; } // annotations also accepts array, so we need to extend them manually }, { key: "extendAnnotations", value: function extendAnnotations(opts) { if (typeof opts.annotations === 'undefined') { opts.annotations = {}; opts.annotations.yaxis = []; opts.annotations.xaxis = []; opts.annotations.points = []; } opts = this.extendYAxisAnnotations(opts); opts = this.extendXAxisAnnotations(opts); opts = this.extendPointAnnotations(opts); return opts; } }, { key: "extendYAxisAnnotations", value: function extendYAxisAnnotations(opts) { var options = new Options(); opts.annotations.yaxis = Utils.extendArray(typeof opts.annotations.yaxis !== 'undefined' ? opts.annotations.yaxis : [], options.yAxisAnnotation); return opts; } }, { key: "extendXAxisAnnotations", value: function extendXAxisAnnotations(opts) { var options = new Options(); opts.annotations.xaxis = Utils.extendArray(typeof opts.annotations.xaxis !== 'undefined' ? opts.annotations.xaxis : [], options.xAxisAnnotation); return opts; } }, { key: "extendPointAnnotations", value: function extendPointAnnotations(opts) { var options = new Options(); opts.annotations.points = Utils.extendArray(typeof opts.annotations.points !== 'undefined' ? opts.annotations.points : [], options.pointAnnotation); return opts; } }, { key: "checkForDarkTheme", value: function checkForDarkTheme(opts) { if (opts.theme && opts.theme.mode === 'dark') { if (!opts.tooltip) { opts.tooltip = {}; } if (opts.tooltip.theme !== 'light') { opts.tooltip.theme = 'dark'; } if (!opts.chart.foreColor) { opts.chart.foreColor = '#f6f7f8'; } if (!opts.theme.palette) { opts.theme.palette = 'palette4'; } } } }, { key: "handleUserInputErrors", value: function handleUserInputErrors(opts) { var config = opts; // conflicting tooltip option. intersect makes sure to focus on 1 point at a time. Shared cannot be used along with it if (config.tooltip.shared && config.tooltip.intersect) { throw new Error('tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.'); } if (config.chart.scroller) { console.warn('Scroller has been deprecated since v2.0.0. Please remove the configuration for chart.scroller'); } if ((config.chart.type === 'bar' || config.chart.type === 'rangeBar') && config.plotOptions.bar.horizontal) { // No multiple yaxis for bars if (config.yaxis.length > 1) { throw new Error('Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false'); } // if yaxis is reversed in horizontal bar chart, you should draw the y-axis on right side if (config.yaxis[0].reversed) { config.yaxis[0].opposite = true; } config.xaxis.tooltip.enabled = false; // no xaxis tooltip for horizontal bar config.yaxis[0].tooltip.enabled = false; // no xaxis tooltip for horizontal bar config.chart.zoom.enabled = false; // no zooming for horz bars } if (config.chart.type === 'bar' || config.chart.type === 'rangeBar') { if (config.tooltip.shared) { if (config.xaxis.crosshairs.width === 'barWidth' && config.series.length > 1) { console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'); config.xaxis.crosshairs.width = 'tickWidth'; } if (config.plotOptions.bar.horizontal) { config.states.hover.type = 'none'; config.tooltip.shared = false; } if (!config.tooltip.followCursor) { console.warn('followCursor option in shared columns cannot be turned off. Please set %ctooltip.followCursor: true', 'color: blue;'); config.tooltip.followCursor = true; } } } if (config.chart.type === 'candlestick') { if (config.yaxis[0].reversed) { console.warn('Reversed y-axis in candlestick chart is not supported.'); config.yaxis[0].reversed = false; } } if (config.chart.group && config.yaxis[0].labels.minWidth === 0) { console.warn('It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour.'); } // if user supplied array for stroke width, it will only be applicable to line/area charts, for any other charts, revert back to Number if (Array.isArray(config.stroke.width)) { if (config.chart.type !== 'line' && config.chart.type !== 'area') { console.warn('stroke.width option accepts array only for line and area charts. Reverted back to Number'); config.stroke.width = config.stroke.width[0]; } } return config; } }]); return Config; }(); var Globals = /*#__PURE__*/ function () { function Globals() { _classCallCheck(this, Globals); } _createClass(Globals, [{ key: "globalVars", value: function globalVars(config) { return { chartID: null, // chart ID - apexcharts-cuid cuid: null, // chart ID - random numbers excluding "apexcharts" part events: { beforeMount: [], mounted: [], updated: [], clicked: [], selection: [], dataPointSelection: [], zoomed: [], scrolled: [] }, colors: [], clientX: null, clientY: null, fill: { colors: [] }, stroke: { colors: [] }, dataLabels: { style: { colors: [] } }, radarPolygons: { fill: { colors: [] } }, markers: { colors: [], size: config.markers.size, largestSize: 0 }, animationEnded: false, isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, isDirty: false, // chart has been updated after the initial render. This is different than dataChanged property. isDirty means user manually called some method to update isExecCalled: false, // whether user updated the chart through the exec method initialConfig: null, // we will store the first config user has set to go back when user finishes interactions like zooming and come out of it lastXAxis: [], lastYAxis: [], series: [], // the MAIN series array (y values) seriesRangeStart: [], // the clone of series becomes the start in range seriesRangeEnd: [], // the end values in range chart seriesPercent: [], // the percentage values of the given series seriesTotals: [], stackedSeriesTotals: [], seriesX: [], // store the numeric x values in this array (x values) seriesZ: [], // The 3rd "Z" dimension for bubbles chart (z values) labels: [], // store the text to draw on x axis // Don't mutate the labels, many things including tooltips depends on it! timelineLabels: [], // store the timeline Labels in another variable invertedTimelineLabels: [], // for rangebar timeline seriesNames: [], // same as labels, used in non axis charts noLabelsProvided: false, // if user didn't provide any categories/labels or x values, fallback to 1,2,3,4... allSeriesCollapsed: false, collapsedSeries: [], // when user collapses a series, it goes into this array collapsedSeriesIndices: [], // this stores the index of the collapsedSeries instead of whole object for quick access ancillaryCollapsedSeries: [], // when user collapses an "alwaysVisible" series, it goes into this array ancillaryCollapsedSeriesIndices: [], // this stores the index of the ancillaryCollapsedSeries whose y-axis is always visible risingSeries: [], // when user re-opens a collapsed series, it goes here dataFormatXNumeric: false, // boolean value to indicate user has passed numeric x values capturedSeriesIndex: -1, capturedDataPointIndex: -1, selectedDataPoints: [], ignoreYAxisIndexes: [], // when series are being collapsed in multiple y axes, ignore certain index yAxisSameScaleIndices: [], padHorizontal: 0, maxValsInArrayIndex: 0, radialSize: 0, zoomEnabled: config.chart.toolbar.autoSelected === 'zoom' && config.chart.toolbar.tools.zoom && config.chart.zoom.enabled, panEnabled: config.chart.toolbar.autoSelected === 'pan' && config.chart.toolbar.tools.pan, selectionEnabled: config.chart.toolbar.autoSelected === 'selection' && config.chart.toolbar.tools.selection, yaxis: null, minY: Number.MIN_VALUE, // is 5e-324, i.e. the smallest positive number // NOTE: If there are multiple y axis, the first yaxis array element will be considered for all y values calculations. Rest all will be calculated based on that maxY: -Number.MAX_VALUE, // is -1.7976931348623157e+308 // NOTE: The above note for minY applies here as well minYArr: [], maxYArr: [], maxX: -Number.MAX_VALUE, // is -1.7976931348623157e+308 initialmaxX: -Number.MAX_VALUE, minX: Number.MIN_VALUE, // is 5e-324, i.e. the smallest positive number initialminX: Number.MIN_VALUE, minZ: Number.MIN_VALUE, // Max Z value in charts with Z axis maxZ: -Number.MAX_VALUE, // Max Z value in charts with Z axis minXDiff: Number.MAX_VALUE, mousedown: false, lastClientPosition: {}, // don't reset this variable this the chart is destroyed. It is used to detect right or left mousemove in panning visibleXRange: undefined, yRange: [], // this property is the absolute sum of positive and negative values [eg (-100 + 200 = 300)] - yAxis zRange: 0, // zAxis Range (for bubble charts) xRange: 0, // xAxis range yValueDecimal: 0, // are there floating numbers in the series. If yes, this represent the len of the decimals total: 0, SVGNS: 'http://www.w3.org/2000/svg', // svg namespace svgWidth: 0, // the whole svg width svgHeight: 0, // the whole svg height noData: false, // whether there is any data to display or not locale: {}, // the current locale values will be preserved here for global access dom: {}, // for storing all dom nodes in this particular property // elWrap: null, // the element that wraps everything // elGraphical: null, // this contains lines/areas/bars/pies // elGridRect: null, // paths going outside this area will be clipped // elGridRectMask: null, // clipping will happen with this mask // elGridRectMarkerMask: null, // clipping will happen with this mask // elLegendWrap: null, // the whole legend area // elDefs: null, // [defs] element memory: { methodsToExec: [] }, shouldAnimate: true, skipLastTimelinelabel: false, // when last label is cropped, skip drawing it delayedElements: [], // element which appear after animation has finished axisCharts: true, // chart type = line or area or bar // (refer them also as plot charts in the code) isXNumeric: false, // bool: data was provided in a {[x,y], [x,y]} pattern isDataXYZ: false, // bool: data was provided in a {[x,y,z]} pattern resized: false, // bool: user has resized resizeTimer: null, // timeout function to make a small delay before // drawing when user resized comboCharts: false, // bool: whether it's a combination of line/column comboChartsHasBars: false, // bool: whether it's a combination of line/column dataChanged: false, // bool: has data changed dynamically previousPaths: [], // array: when data is changed, it will animate from // previous paths seriesXvalues: [], // we will need this in tooltip (it's x position) // when we will have unequal x values, we will need // some way to get x value depending on mouse pointer seriesYvalues: [], // we will need this when deciding which series // user hovered on seriesCandleO: [], // candle stick open values seriesCandleH: [], // candle stick high values seriesCandleL: [], // candle stick low values seriesCandleC: [], // candle stick close values allSeriesHasEqualX: true, dataPoints: 0, // the longest series length pointsArray: [], // store the points positions here to draw later on hover // format is - [[x,y],[x,y]... [x,y]] dataLabelsRects: [], // store the positions of datalabels to prevent collision lastDrawnDataLabelsIndexes: [], hasNullValues: false, // bool: whether series contains null values easing: null, // function: animation effect to apply zoomed: false, // whether user has zoomed or not gridWidth: 0, // drawable width of actual graphs (series paths) gridHeight: 0, // drawable height of actual graphs (series paths) yAxisScale: [], xAxisScale: null, xAxisTicksPositions: [], timescaleTicks: [], rotateXLabels: false, defaultLabels: false, xLabelFormatter: undefined, // formatter for x axis labels yLabelFormatters: [], xaxisTooltipFormatter: undefined, // formatter for x axis tooltip ttKeyFormatter: undefined, ttVal: undefined, ttZFormatter: undefined, LINE_HEIGHT_RATIO: 1.618, xAxisLabelsHeight: 0, yAxisLabelsWidth: 0, scaleX: 1, scaleY: 1, translateX: 0, translateY: 0, translateYAxisX: [], yLabelsCoords: [], yTitleCoords: [], yAxisWidths: [], translateXAxisY: 0, translateXAxisX: 0, tooltip: null, tooltipOpts: null }; } }, { key: "init", value: function init(config) { var globals = this.globalVars(config); globals.initialConfig = Utils.extend({}, config); globals.initialSeries = JSON.parse(JSON.stringify(globals.initialConfig.series)); globals.lastXAxis = JSON.parse(JSON.stringify(globals.initialConfig.xaxis)); globals.lastYAxis = JSON.parse(JSON.stringify(globals.initialConfig.yaxis)); return globals; } }]); return Globals; }(); /** * ApexCharts Base Class for extending user options with pre-defined ApexCharts config. * * @module Base **/ var Base = /*#__PURE__*/ function () { function Base(opts) { _classCallCheck(this, Base); this.opts = opts; } _createClass(Base, [{ key: "init", value: function init() { var config = new Config(this.opts).init(); var globals = new Globals().init(config); var w = { config: config, globals: globals }; return w; } }]); return Base; }(); /** * ApexCharts Fill Class for setting fill options of the paths. * * @module Fill **/ var Fill = /*#__PURE__*/ function () { function Fill(ctx) { _classCallCheck(this, Fill); this.ctx = ctx; this.w = ctx.w; this.opts = null; this.seriesIndex = 0; } _createClass(Fill, [{ key: "clippedImgArea", value: function clippedImgArea(params) { var w = this.w; var cnf = w.config; var svgW = parseInt(w.globals.gridWidth); var svgH = parseInt(w.globals.gridHeight); var size = svgW > svgH ? svgW : svgH; var fillImg = params.image; var imgWidth = 0; var imgHeight = 0; if (typeof params.width === 'undefined' && typeof params.height === 'undefined') { if (cnf.fill.image.width !== undefined && cnf.fill.image.height !== undefined) { imgWidth = cnf.fill.image.width + 1; imgHeight = cnf.fill.image.height; } else { imgWidth = size + 1; imgHeight = size; } } else { imgWidth = params.width; imgHeight = params.height; } var elPattern = document.createElementNS(w.globals.SVGNS, 'pattern'); Graphics.setAttrs(elPattern, { id: params.patternID, patternUnits: params.patternUnits ? params.patternUnits : 'userSpaceOnUse', width: imgWidth + 'px', height: imgHeight + 'px' }); var elImage = document.createElementNS(w.globals.SVGNS, 'image'); elPattern.appendChild(elImage); elImage.setAttributeNS('http://www.w3.org/1999/xlink', 'href', fillImg); Graphics.setAttrs(elImage, { x: 0, y: 0, preserveAspectRatio: 'none', width: imgWidth + 'px', height: imgHeight + 'px' }); elImage.style.opacity = params.opacity; w.globals.dom.elDefs.node.appendChild(elPattern); } }, { key: "getSeriesIndex", value: function getSeriesIndex(opts) { var w = this.w; if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap') { this.seriesIndex = opts.seriesNumber; } else { this.seriesIndex = opts.seriesNumber % w.globals.series.length; } return this.seriesIndex; } }, { key: "fillPath", value: function fillPath(opts) { var w = this.w; this.opts = opts; var cnf = this.w.config; var pathFill; var patternFill, gradientFill; this.seriesIndex = this.getSeriesIndex(opts); var fillColors = this.getFillColors(); var fillColor = fillColors[this.seriesIndex]; if (typeof fillColor === 'function') { fillColor = fillColor({ seriesIndex: this.seriesIndex, value: opts.value, w: w }); } var fillType = this.getFillType(this.seriesIndex); var fillOpacity = Array.isArray(cnf.fill.opacity) ? cnf.fill.opacity[this.seriesIndex] : cnf.fill.opacity; var defaultColor = fillColor; if (opts.color) { fillColor = opts.color; } if (fillColor.indexOf('rgb') === -1) { defaultColor = Utils.hexToRgba(fillColor, fillOpacity); } else { if (fillColor.indexOf('rgba') > -1) { fillOpacity = 0 + '.' + Utils.getOpacityFromRGBA(fillColor); } } if (fillType === 'pattern') { patternFill = this.handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor); } if (fillType === 'gradient') { gradientFill = this.handleGradientFill(gradientFill, fillColor, fillOpacity, this.seriesIndex); } if (cnf.fill.image.src.length > 0 && fillType === 'image') { if (opts.seriesNumber < cnf.fill.image.src.length) { this.clippedImgArea({ opacity: fillOpacity, image: cnf.fill.image.src[opts.seriesNumber], patternUnits: opts.patternUnits, patternID: "pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1) }); pathFill = "url(#pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1, ")"); } else { pathFill = defaultColor; } } else if (fillType === 'gradient') { pathFill = gradientFill; } else if (fillType === 'pattern') { pathFill = patternFill; } else { pathFill = defaultColor; } // override pattern/gradient if opts.solid is true if (opts.solid) { pathFill = defaultColor; } return pathFill; } }, { key: "getFillType", value: function getFillType(seriesIndex) { var w = this.w; if (Array.isArray(w.config.fill.type)) { return w.config.fill.type[seriesIndex]; } else { return w.config.fill.type; } } }, { key: "getFillColors", value: function getFillColors() { var w = this.w; var cnf = w.config; var opts = this.opts; var fillColors = []; if (w.globals.comboCharts) { if (w.config.series[this.seriesIndex].type === 'line') { if (w.globals.stroke.colors instanceof Array) { fillColors = w.globals.stroke.colors; } else { fillColors.push(w.globals.stroke.colors); } } else { if (w.globals.fill.colors instanceof Array) { fillColors = w.globals.fill.colors; } else { fillColors.push(w.globals.fill.colors); } } } else { if (cnf.chart.type === 'line') { if (w.globals.stroke.colors instanceof Array) { fillColors = w.globals.stroke.colors; } else { fillColors.push(w.globals.stroke.colors); } } else { if (w.globals.fill.colors instanceof Array) { fillColors = w.globals.fill.colors; } else { fillColors.push(w.globals.fill.colors); } } } // colors passed in arguments if (typeof opts.fillColors !== 'undefined') { fillColors = []; if (opts.fillColors instanceof Array) { fillColors = opts.fillColors.slice(); } else { fillColors.push(opts.fillColors); } } return fillColors; } }, { key: "handlePatternFill", value: function handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor) { var cnf = this.w.config; var opts = this.opts; var graphics = new Graphics(this.ctx); var patternStrokeWidth = cnf.fill.pattern.strokeWidth === undefined ? Array.isArray(cnf.stroke.width) ? cnf.stroke.width[this.seriesIndex] : cnf.stroke.width : Array.isArray(cnf.fill.pattern.strokeWidth) ? cnf.fill.pattern.strokeWidth[this.seriesIndex] : cnf.fill.pattern.strokeWidth; var patternLineColor = fillColor; if (cnf.fill.pattern.style instanceof Array) { if (typeof cnf.fill.pattern.style[opts.seriesNumber] !== 'undefined') { var pf = graphics.drawPattern(cnf.fill.pattern.style[opts.seriesNumber], cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); patternFill = pf; } else { patternFill = defaultColor; } } else { patternFill = graphics.drawPattern(cnf.fill.pattern.style, cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); } return patternFill; } }, { key: "handleGradientFill", value: function handleGradientFill(gradientFill, fillColor, fillOpacity, i) { var cnf = this.w.config; var opts = this.opts; var graphics = new Graphics(this.ctx); var utils = new Utils(); var type = cnf.fill.gradient.type; var gradientFrom, gradientTo; var opacityFrom = cnf.fill.gradient.opacityFrom === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityFrom) ? cnf.fill.gradient.opacityFrom[i] : cnf.fill.gradient.opacityFrom; var opacityTo = cnf.fill.gradient.opacityTo === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityTo) ? cnf.fill.gradient.opacityTo[i] : cnf.fill.gradient.opacityTo; gradientFrom = fillColor; if (cnf.fill.gradient.gradientToColors === undefined || cnf.fill.gradient.gradientToColors.length === 0) { if (cnf.fill.gradient.shade === 'dark') { gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity) * -1, fillColor); } else { gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity), fillColor); } } else { gradientTo = cnf.fill.gradient.gradientToColors[opts.seriesNumber]; } if (cnf.fill.gradient.inverseColors) { var t = gradientFrom; gradientFrom = gradientTo; gradientTo = t; } gradientFill = graphics.drawGradient(type, gradientFrom, gradientTo, opacityFrom, opacityTo, opts.size, cnf.fill.gradient.stops, cnf.fill.gradient.colorStops, i); return gradientFill; } }]); return Fill; }(); /** * ApexCharts Markers Class for drawing points on y values in axes charts. * * @module Markers **/ var Markers = /*#__PURE__*/ function () { function Markers(ctx, opts) { _classCallCheck(this, Markers); this.ctx = ctx; this.w = ctx.w; } _createClass(Markers, [{ key: "setGlobalMarkerSize", value: function setGlobalMarkerSize() { var w = this.w; w.globals.markers.size = Array.isArray(w.config.markers.size) ? w.config.markers.size : [w.config.markers.size]; if (w.globals.markers.size.length > 0) { if (w.globals.markers.size.length < w.globals.series.length + 1) { for (var i = 0; i <= w.globals.series.length; i++) { if (typeof w.globals.markers.size[i] === 'undefined') { w.globals.markers.size.push(w.globals.markers.size[0]); } } } } else { w.globals.markers.size = w.config.series.map(function (s) { return w.config.markers.size; }); } } }, { key: "plotChartMarkers", value: function plotChartMarkers(pointsPos, seriesIndex, j) { var w = this.w; var i = seriesIndex; var p = pointsPos; var elPointsWrap = null; var graphics = new Graphics(this.ctx); var point; if (w.globals.markers.size[seriesIndex] > 0) { elPointsWrap = graphics.group({ class: 'apexcharts-series-markers' }); elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); } if (p.x instanceof Array) { for (var q = 0; q < p.x.length; q++) { var dataPointIndex = j; // a small hack as we have 2 points for the first val to connect it if (j === 1 && q === 0) dataPointIndex = 0; if (j === 1 && q === 1) dataPointIndex = 1; var PointClasses = 'apexcharts-marker'; if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { PointClasses += ' no-pointer-events'; } var shouldMarkerDraw = Array.isArray(w.config.markers.size) ? w.globals.markers.size[seriesIndex] > 0 : w.config.markers.size > 0; if (shouldMarkerDraw) { if (Utils.isNumber(p.y[q])) { PointClasses += " w".concat((Math.random() + 1).toString(36).substring(4)); } else { PointClasses = 'apexcharts-nullpoint'; } var opts = this.getMarkerConfig(PointClasses, seriesIndex, dataPointIndex); if (w.config.series[i].data[j]) { if (w.config.series[i].data[j].fillColor) { opts.pointFillColor = w.config.series[i].data[j].fillColor; } if (w.config.series[i].data[j].strokeColor) { opts.pointStrokeColor = w.config.series[i].data[j].strokeColor; } } point = graphics.drawMarker(p.x[q], p.y[q], opts); point.attr('rel', dataPointIndex); point.attr('j', dataPointIndex); point.attr('index', seriesIndex); point.node.setAttribute('default-marker-size', opts.pSize); var filters = new Filters(this.ctx); filters.setSelectionFilter(point, seriesIndex, dataPointIndex); this.addEvents(point); if (elPointsWrap) { elPointsWrap.add(point); } } else { // dynamic array creation - multidimensional if (typeof w.globals.pointsArray[seriesIndex] === 'undefined') w.globals.pointsArray[seriesIndex] = []; w.globals.pointsArray[seriesIndex].push([p.x[q], p.y[q]]); } } } return elPointsWrap; } }, { key: "getMarkerConfig", value: function getMarkerConfig(cssClass, seriesIndex) { var dataPointIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var w = this.w; var pStyle = this.getMarkerStyle(seriesIndex); var pSize = w.globals.markers.size[seriesIndex]; // discrete markers is an option where user can specify a particular marker with different size and color if (dataPointIndex !== null && w.config.markers.discrete.length) { w.config.markers.discrete.map(function (marker) { if (marker.seriesIndex === seriesIndex && marker.dataPointIndex === dataPointIndex) { pStyle.pointStrokeColor = marker.strokeColor; pStyle.pointFillColor = marker.fillColor; pSize = marker.size; } }); } return { pSize: pSize, pRadius: w.config.markers.radius, pWidth: w.config.markers.strokeWidth, pointStrokeColor: pStyle.pointStrokeColor, pointFillColor: pStyle.pointFillColor, shape: w.config.markers.shape instanceof Array ? w.config.markers.shape[seriesIndex] : w.config.markers.shape, class: cssClass, pointStrokeOpacity: w.config.markers.strokeOpacity, pointFillOpacity: w.config.markers.fillOpacity, seriesIndex: seriesIndex }; } }, { key: "addEvents", value: function addEvents(circle) { var w = this.w; var graphics = new Graphics(this.ctx); circle.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this.ctx, circle)); circle.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this.ctx, circle)); circle.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this.ctx, circle)); circle.node.addEventListener('click', w.config.markers.onClick); circle.node.addEventListener('dblclick', w.config.markers.onDblClick); circle.node.addEventListener('touchstart', graphics.pathMouseDown.bind(this.ctx, circle), { passive: true }); } }, { key: "getMarkerStyle", value: function getMarkerStyle(seriesIndex) { var w = this.w; var colors = w.globals.markers.colors; var strokeColors = w.config.markers.strokeColor || w.config.markers.strokeColors; var pointStrokeColor = strokeColors instanceof Array ? strokeColors[seriesIndex] : strokeColors; var pointFillColor = colors instanceof Array ? colors[seriesIndex] : colors; return { pointStrokeColor: pointStrokeColor, pointFillColor: pointFillColor }; } }]); return Markers; }(); /** * ApexCharts Scatter Class. * This Class also handles bubbles chart as currently there is no major difference in drawing them, * @module Scatter **/ var Scatter = /*#__PURE__*/ function () { function Scatter(ctx) { _classCallCheck(this, Scatter); this.ctx = ctx; this.w = ctx.w; this.initialAnim = this.w.config.chart.animations.enabled; this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; // this array will help in centering the label in bubbles this.radiusSizes = []; } _createClass(Scatter, [{ key: "draw", value: function draw(elSeries, j, opts) { var w = this.w; var graphics = new Graphics(this.ctx); var realIndex = opts.realIndex; var pointsPos = opts.pointsPos; var zRatio = opts.zRatio; var elPointsMain = opts.elParent; var elPointsWrap = graphics.group({ class: "apexcharts-series-markers apexcharts-series-".concat(w.config.chart.type) }); elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); if (pointsPos.x instanceof Array) { for (var q = 0; q < pointsPos.x.length; q++) { var dataPointIndex = j + 1; var shouldDraw = true; // a small hack as we have 2 points for the first val to connect it if (j === 0 && q === 0) dataPointIndex = 0; if (j === 0 && q === 1) dataPointIndex = 1; var radius = 0; var finishRadius = w.globals.markers.size[realIndex]; if (zRatio !== Infinity) { // means we have a bubble finishRadius = w.globals.seriesZ[realIndex][dataPointIndex] / zRatio; if (typeof this.radiusSizes[realIndex] === 'undefined') { this.radiusSizes.push([]); } this.radiusSizes[realIndex].push(finishRadius); } if (!w.config.chart.animations.enabled) { radius = finishRadius; } var x = pointsPos.x[q]; var y = pointsPos.y[q]; radius = radius || 0; if (x === 0 && y === 0 || y === null || typeof w.globals.series[realIndex][dataPointIndex] === 'undefined') { shouldDraw = false; } if (shouldDraw) { var circle = this.drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j); elPointsWrap.add(circle); } elPointsMain.add(elPointsWrap); } } } }, { key: "drawPoint", value: function drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j) { var w = this.w; var i = realIndex; var anim = new Animations(this.ctx); var filters = new Filters(this.ctx); var fill = new Fill(this.ctx); var markers = new Markers(this.ctx); var graphics = new Graphics(this.ctx); var markerConfig = markers.getMarkerConfig('apexcharts-marker', i); var pathFillCircle = fill.fillPath({ seriesNumber: realIndex, patternUnits: 'objectBoundingBox', value: w.globals.series[realIndex][j] }); var circle = graphics.drawCircle(radius); if (w.config.series[i].data[dataPointIndex]) { if (w.config.series[i].data[dataPointIndex].fillColor) { pathFillCircle = w.config.series[i].data[dataPointIndex].fillColor; } } circle.attr({ cx: x, cy: y, fill: pathFillCircle, stroke: markerConfig.pointStrokeColor, strokeWidth: markerConfig.pWidth }); if (w.config.chart.dropShadow.enabled) { var dropShadow = w.config.chart.dropShadow; filters.dropShadow(circle, dropShadow, realIndex); } if (this.initialAnim && !w.globals.dataChanged) { var speed = 1; if (!w.globals.resized) { speed = w.config.chart.animations.speed; } anim.animateCircleRadius(circle, 0, finishRadius, speed, w.globals.easing); } if (w.globals.dataChanged) { if (this.dynamicAnim) { var _speed = w.config.chart.animations.dynamicAnimation.speed; var prevX, prevY, prevR; var prevPathJ = null; prevPathJ = w.globals.previousPaths[realIndex] && w.globals.previousPaths[realIndex][j]; if (typeof prevPathJ !== 'undefined' && prevPathJ !== null) { // series containing less elements will ignore these values and revert to 0 prevX = prevPathJ.x; prevY = prevPathJ.y; prevR = typeof prevPathJ.r !== 'undefined' ? prevPathJ.r : finishRadius; } for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { if (w.globals.collapsedSeries[cs].index === realIndex) { _speed = 1; finishRadius = 0; } } if (x === 0 && y === 0) finishRadius = 0; anim.animateCircle(circle, { cx: prevX, cy: prevY, r: prevR }, { cx: x, cy: y, r: finishRadius }, _speed, w.globals.easing); } else { circle.attr({ r: finishRadius }); } } circle.attr({ rel: dataPointIndex, j: dataPointIndex, index: realIndex, 'default-marker-size': finishRadius }); filters.setSelectionFilter(circle, realIndex, dataPointIndex); markers.addEvents(circle); circle.node.classList.add('apexcharts-marker'); return circle; } }, { key: "centerTextInBubble", value: function centerTextInBubble(y) { var w = this.w; y = y + parseInt(w.config.dataLabels.style.fontSize) / 4; return { y: y }; } }]); return Scatter; }(); /** * ApexCharts DataLabels Class for drawing dataLabels on Axes based Charts. * * @module DataLabels **/ var DataLabels = /*#__PURE__*/ function () { function DataLabels(ctx) { _classCallCheck(this, DataLabels); this.ctx = ctx; this.w = ctx.w; } // When there are many datalabels to be printed, and some of them overlaps each other in the same series, this method will take care of that // Also, when datalabels exceeds the drawable area and get clipped off, we need to adjust and move some pixels to make them visible again _createClass(DataLabels, [{ key: "dataLabelsCorrection", value: function dataLabelsCorrection(x, y, val, i, dataPointIndex, alwaysDrawDataLabel, fontSize) { var w = this.w; var graphics = new Graphics(this.ctx); var drawnextLabel = false; // var textRects = graphics.getTextRects(val, fontSize); var width = textRects.width; var height = textRects.height; // first value in series, so push an empty array if (typeof w.globals.dataLabelsRects[i] === 'undefined') w.globals.dataLabelsRects[i] = []; // then start pushing actual rects in that sub-array w.globals.dataLabelsRects[i].push({ x: x, y: y, width: width, height: height }); var len = w.globals.dataLabelsRects[i].length - 2; var lastDrawnIndex = typeof w.globals.lastDrawnDataLabelsIndexes[i] !== 'undefined' ? w.globals.lastDrawnDataLabelsIndexes[i][w.globals.lastDrawnDataLabelsIndexes[i].length - 1] : 0; if (typeof w.globals.dataLabelsRects[i][len] !== 'undefined') { var lastDataLabelRect = w.globals.dataLabelsRects[i][lastDrawnIndex]; if ( // next label forward and x not intersecting x > lastDataLabelRect.x + lastDataLabelRect.width + 2 || y > lastDataLabelRect.y + lastDataLabelRect.height + 2 || x + width < lastDataLabelRect.x // next label is going to be drawn backwards ) { // the 2 indexes don't override, so OK to draw next label drawnextLabel = true; } } if (dataPointIndex === 0 || alwaysDrawDataLabel) { drawnextLabel = true; } return { x: x, y: y, textRects: textRects, drawnextLabel: drawnextLabel }; } }, { key: "drawDataLabel", value: function drawDataLabel(pos, i, j) { var align = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'top'; // this method handles line, area, bubble, scatter charts as those charts contains markers/points which have pre-defined x/y positions // all other charts like bars / heatmaps will define their own drawDataLabel routine var w = this.w; var graphics = new Graphics(this.ctx); var dataLabelsConfig = w.config.dataLabels; var x = 0; var y = 0; var dataPointIndex = j; var elDataLabelsWrap = null; if (!dataLabelsConfig.enabled || pos.x instanceof Array !== true) { return elDataLabelsWrap; } elDataLabelsWrap = graphics.group({ class: 'apexcharts-data-labels' }); for (var q = 0; q < pos.x.length; q++) { x = pos.x[q] + dataLabelsConfig.offsetX; y = pos.y[q] + dataLabelsConfig.offsetY - w.globals.markers.size[i] - 5; if (align === 'bottom') { y = y + w.globals.markers.size[i] * 2 + parseInt(dataLabelsConfig.style.fontSize) * 1.4; } if (!isNaN(x)) { // a small hack as we have 2 points for the first val to connect it if (j === 1 && q === 0) dataPointIndex = 0; if (j === 1 && q === 1) dataPointIndex = 1; var val = w.globals.series[i][dataPointIndex]; var text = ''; if (w.config.chart.type === 'bubble') { text = w.globals.seriesZ[i][dataPointIndex]; y = pos.y[q] + w.config.dataLabels.offsetY; var scatter = new Scatter(this.ctx); var centerTextInBubbleCoords = scatter.centerTextInBubble(y, i, dataPointIndex); y = centerTextInBubbleCoords.y; } else { if (typeof val !== 'undefined') { text = w.config.dataLabels.formatter(val, { ctx: this.ctx, seriesIndex: i, dataPointIndex: dataPointIndex, w: w }); } } this.plotDataLabelsText({ x: x, y: y, text: text, i: i, j: dataPointIndex, parent: elDataLabelsWrap, offsetCorrection: true, dataLabelsConfig: w.config.dataLabels }); } } return elDataLabelsWrap; } }, { key: "plotDataLabelsText", value: function plotDataLabelsText(opts) { var w = this.w; var graphics = new Graphics(this.ctx); var x = opts.x, y = opts.y, i = opts.i, j = opts.j, text = opts.text, textAnchor = opts.textAnchor, parent = opts.parent, dataLabelsConfig = opts.dataLabelsConfig, alwaysDrawDataLabel = opts.alwaysDrawDataLabel, offsetCorrection = opts.offsetCorrection; if (Array.isArray(w.config.dataLabels.enabledOnSeries)) { if (w.config.dataLabels.enabledOnSeries.indexOf(i) < 0) { return; } } var correctedLabels = { x: x, y: y, drawnextLabel: true }; if (offsetCorrection) { correctedLabels = this.dataLabelsCorrection(x, y, text, i, j, alwaysDrawDataLabel, parseInt(dataLabelsConfig.style.fontSize)); } // when zoomed, we don't need to correct labels offsets, // but if normally, labels get cropped, correct them if (!w.globals.zoomed) { x = correctedLabels.x; y = correctedLabels.y; } if (correctedLabels.textRects) { if (x + correctedLabels.textRects.width < 10 || x > w.globals.gridWidth + 10) { // datalabels fall outside drawing area, so draw a blank label text = ''; } } if (correctedLabels.drawnextLabel) { var dataLabelText = graphics.drawText({ width: 100, height: parseInt(dataLabelsConfig.style.fontSize), x: x, y: y, foreColor: w.globals.dataLabels.style.colors[i], textAnchor: textAnchor || dataLabelsConfig.textAnchor, text: text, fontSize: dataLabelsConfig.style.fontSize, fontFamily: dataLabelsConfig.style.fontFamily }); dataLabelText.attr({ class: 'apexcharts-datalabel', cx: x, cy: y }); if (dataLabelsConfig.dropShadow.enabled) { var textShadow = dataLabelsConfig.dropShadow; var filters = new Filters(this.ctx); filters.dropShadow(dataLabelText, textShadow); } parent.add(dataLabelText); if (typeof w.globals.lastDrawnDataLabelsIndexes[i] === 'undefined') { w.globals.lastDrawnDataLabelsIndexes[i] = []; } w.globals.lastDrawnDataLabelsIndexes[i].push(j); } } }]); return DataLabels; }(); /** * ApexCharts Bar Class responsible for drawing both Columns and Bars. * * @module Bar **/ var Bar = /*#__PURE__*/ function () { function Bar(ctx, xyRatios) { _classCallCheck(this, Bar); this.ctx = ctx; this.w = ctx.w; var w = this.w; this.barOptions = w.config.plotOptions.bar; this.isHorizontal = this.barOptions.horizontal; this.strokeWidth = w.config.stroke.width; this.isNullValue = false; this.xyRatios = xyRatios; if (this.xyRatios !== null) { this.xRatio = xyRatios.xRatio; this.yRatio = xyRatios.yRatio; this.invertedXRatio = xyRatios.invertedXRatio; this.invertedYRatio = xyRatios.invertedYRatio; this.baseLineY = xyRatios.baseLineY; this.baseLineInvertedY = xyRatios.baseLineInvertedY; } this.yaxisIndex = 0; this.seriesLen = 0; } /** primary draw method which is called on bar object * @memberof Bar * @param {array} series - user supplied series values * @param {int} seriesIndex - the index by which series will be drawn on the svg * @return {node} element which is supplied to parent chart draw method for appending **/ _createClass(Bar, [{ key: "draw", value: function draw(series, seriesIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var coreUtils = new CoreUtils(this.ctx, w); series = coreUtils.getLogSeries(series); this.series = series; this.yRatio = coreUtils.getLogYRatios(this.yRatio); this.initVariables(series); var ret = graphics.group({ class: 'apexcharts-bar-series apexcharts-plot-series' }); if (w.config.dataLabels.enabled) { if (this.totalItems > w.config.plotOptions.bar.dataLabels.maxItems) { console.warn('WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.'); } } for (var i = 0, bc = 0; i < series.length; i++, bc++) { var pathTo = void 0, pathFrom = void 0; var x = void 0, y = void 0, xDivision = void 0, // xDivision is the GRIDWIDTH divided by number of datapoints (columns) yDivision = void 0, // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) zeroH = void 0, // zeroH is the baseline where 0 meets y axis zeroW = void 0; // zeroW is the baseline where 0 meets x axis var yArrj = []; // hold y values of current iterating series var xArrj = []; // hold x values of current iterating series var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn var elSeries = graphics.group({ class: "apexcharts-series", rel: i + 1, seriesName: Utils.escapeString(w.globals.seriesNames[realIndex]), 'data:realIndex': realIndex }); this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); if (series[i].length > 0) { this.visibleI = this.visibleI + 1; } var strokeWidth = 0; var barHeight = 0; var barWidth = 0; if (this.yRatio.length > 1) { this.yaxisIndex = realIndex; } this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; var initPositions = this.initialPositions(); y = initPositions.y; barHeight = initPositions.barHeight; yDivision = initPositions.yDivision; zeroW = initPositions.zeroW; x = initPositions.x; barWidth = initPositions.barWidth; xDivision = initPositions.xDivision; zeroH = initPositions.zeroH; if (!this.horizontal) { xArrj.push(x + barWidth / 2); } // eldatalabels var elDataLabelsWrap = graphics.group({ class: 'apexcharts-datalabels' }); for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { this.isNullValue = true; } else { this.isNullValue = false; } if (w.config.stroke.show) { if (this.isNullValue) { strokeWidth = 0; } else { strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; } } var paths = null; if (this.isHorizontal) { paths = this.drawBarPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, barHeight: barHeight, strokeWidth: strokeWidth, pathTo: pathTo, pathFrom: pathFrom, zeroW: zeroW, x: x, y: y, yDivision: yDivision, elSeries: elSeries }); barWidth = this.series[i][j] / this.invertedYRatio; } else { paths = this.drawColumnPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, x: x, y: y, xDivision: xDivision, pathTo: pathTo, pathFrom: pathFrom, barWidth: barWidth, zeroH: zeroH, strokeWidth: strokeWidth, elSeries: elSeries }); barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; } pathTo = paths.pathTo; pathFrom = paths.pathFrom; y = paths.y; x = paths.x; // push current X if (j > 0) { xArrj.push(x + barWidth / 2); } yArrj.push(y); var pathFill = this.getPathFillColor(series, i, j, realIndex); elSeries = this.renderSeries({ realIndex: realIndex, pathFill: pathFill, j: j, i: i, pathFrom: pathFrom, pathTo: pathTo, strokeWidth: strokeWidth, elSeries: elSeries, x: x, y: y, series: series, barHeight: barHeight, barWidth: barWidth, elDataLabelsWrap: elDataLabelsWrap, visibleSeries: this.visibleI, type: 'bar' }); } // push all x val arrays into main xArr w.globals.seriesXvalues[realIndex] = xArrj; w.globals.seriesYvalues[realIndex] = yArrj; ret.add(elSeries); } return ret; } }, { key: "getPathFillColor", value: function getPathFillColor(series, i, j, realIndex) { var w = this.w; var fill = new Fill(this.ctx); var fillColor = null; var seriesNumber = this.barOptions.distributed ? j : i; if (this.barOptions.colors.ranges.length > 0) { var colorRange = this.barOptions.colors.ranges; colorRange.map(function (range) { if (series[i][j] >= range.from && series[i][j] <= range.to) { fillColor = range.color; } }); } if (w.config.series[i].data[j] && w.config.series[i].data[j].fillColor) { fillColor = w.config.series[i].data[j].fillColor; } var pathFill = fill.fillPath({ seriesNumber: this.barOptions.distributed ? seriesNumber : realIndex, color: fillColor, value: series[i][j] }); return pathFill; } }, { key: "renderSeries", value: function renderSeries(_ref) { var realIndex = _ref.realIndex, pathFill = _ref.pathFill, lineFill = _ref.lineFill, j = _ref.j, i = _ref.i, pathFrom = _ref.pathFrom, pathTo = _ref.pathTo, strokeWidth = _ref.strokeWidth, elSeries = _ref.elSeries, x = _ref.x, y = _ref.y, series = _ref.series, barHeight = _ref.barHeight, barWidth = _ref.barWidth, elDataLabelsWrap = _ref.elDataLabelsWrap, visibleSeries = _ref.visibleSeries, type = _ref.type; var w = this.w; var graphics = new Graphics(this.ctx); if (!lineFill) { /* fix apexcharts#341 */ lineFill = this.barOptions.distributed ? w.globals.stroke.colors[j] : w.globals.stroke.colors[realIndex]; } if (w.config.series[i].data[j] && w.config.series[i].data[j].strokeColor) { lineFill = w.config.series[i].data[j].strokeColor; } if (this.isNullValue) { pathFill = 'none'; } var delay = j / w.config.chart.animations.animateGradually.delay * (w.config.chart.animations.speed / w.globals.dataPoints) / 2.4; var renderedPath = graphics.renderPaths({ i: i, j: j, realIndex: realIndex, pathFrom: pathFrom, pathTo: pathTo, stroke: lineFill, strokeWidth: strokeWidth, strokeLineCap: w.config.stroke.lineCap, fill: pathFill, animationDelay: delay, initialSpeed: w.config.chart.animations.speed, dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, className: "apexcharts-".concat(type, "-area") }); renderedPath.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); var filters = new Filters(this.ctx); filters.setSelectionFilter(renderedPath, realIndex, j); elSeries.add(renderedPath); var dataLabels = this.calculateDataLabelsPos({ x: x, y: y, i: i, j: j, series: series, realIndex: realIndex, barHeight: barHeight, barWidth: barWidth, renderedPath: renderedPath, visibleSeries: visibleSeries }); if (dataLabels !== null) { elDataLabelsWrap.add(dataLabels); } elSeries.add(elDataLabelsWrap); return elSeries; } }, { key: "initVariables", value: function initVariables(series) { var w = this.w; this.series = series; this.totalItems = 0; this.seriesLen = 0; this.visibleI = -1; this.visibleItems = 1; // number of visible bars after user zoomed in/out for (var sl = 0; sl < series.length; sl++) { if (series[sl].length > 0) { this.seriesLen = this.seriesLen + 1; this.totalItems += series[sl].length; } if (w.globals.isXNumeric) { // get max visible items for (var j = 0; j < series[sl].length; j++) { if (w.globals.seriesX[sl][j] > w.globals.minX && w.globals.seriesX[sl][j] < w.globals.maxX) { this.visibleItems++; } } } else { this.visibleItems = w.globals.dataPoints; } } if (this.seriesLen === 0) { // A small adjustment when combo charts are used this.seriesLen = 1; } } }, { key: "initialPositions", value: function initialPositions() { var w = this.w; var x, y, yDivision, xDivision, barHeight, barWidth, zeroH, zeroW; if (this.isHorizontal) { // height divided into equal parts yDivision = w.globals.gridHeight / w.globals.dataPoints; barHeight = yDivision / this.seriesLen; if (w.globals.isXNumeric) { yDivision = w.globals.gridHeight / this.totalItems; barHeight = yDivision / this.seriesLen; } barHeight = barHeight * parseInt(this.barOptions.barHeight) / 100; zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); y = (yDivision - barHeight * this.seriesLen) / 2; } else { // width divided into equal parts xDivision = w.globals.gridWidth / this.visibleItems; barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; if (w.globals.isXNumeric) { // max barwidth should be equal to minXDiff to avoid overlap if (w.globals.minXDiff) { xDivision = w.globals.minXDiff / this.xRatio; } barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; } zeroH = w.globals.gridHeight - this.baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); x = w.globals.padHorizontal + (xDivision - barWidth * this.seriesLen) / 2; } return { x: x, y: y, yDivision: yDivision, xDivision: xDivision, barHeight: barHeight, barWidth: barWidth, zeroH: zeroH, zeroW: zeroW }; } }, { key: "drawBarPaths", value: function drawBarPaths(_ref2) { var indexes = _ref2.indexes, barHeight = _ref2.barHeight, strokeWidth = _ref2.strokeWidth, pathTo = _ref2.pathTo, pathFrom = _ref2.pathFrom, zeroW = _ref2.zeroW, x = _ref2.x, y = _ref2.y, yDivision = _ref2.yDivision, elSeries = _ref2.elSeries; var w = this.w; var graphics = new Graphics(this.ctx); var i = indexes.i; var j = indexes.j; var realIndex = indexes.realIndex; var bc = indexes.bc; if (w.globals.isXNumeric) { y = (w.globals.seriesX[i][j] - w.globals.minX) / this.invertedXRatio - barHeight; } var barYPosition = y + barHeight * this.visibleI; pathTo = graphics.move(zeroW, barYPosition); pathFrom = graphics.move(zeroW, barYPosition); if (w.globals.previousPaths.length > 0) { pathFrom = this.getPathFrom(realIndex, j); } if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { x = zeroW; } else { x = zeroW + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; } var endingShapeOpts = { barHeight: barHeight, strokeWidth: strokeWidth, barYPosition: barYPosition, x: x, zeroW: zeroW }; var endingShape = this.barEndingShape(w, endingShapeOpts, this.series, i, j); pathTo = pathTo + graphics.line(endingShape.newX, barYPosition) + endingShape.path + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); pathFrom = pathFrom + graphics.line(zeroW, barYPosition) + endingShape.ending_p_from + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); if (!w.globals.isXNumeric) { y = y + yDivision; } if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { if (bc >= this.barOptions.colors.backgroundBarColors.length) { bc = 0; } var bcolor = this.barOptions.colors.backgroundBarColors[bc]; var rect = graphics.drawRect(0, barYPosition - barHeight * this.visibleI, w.globals.gridWidth, barHeight * this.seriesLen, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); elSeries.add(rect); rect.node.classList.add('apexcharts-backgroundBar'); } return { pathTo: pathTo, pathFrom: pathFrom, x: x, y: y, barYPosition: barYPosition }; } }, { key: "drawColumnPaths", value: function drawColumnPaths(_ref3) { var indexes = _ref3.indexes, x = _ref3.x, y = _ref3.y, xDivision = _ref3.xDivision, pathTo = _ref3.pathTo, pathFrom = _ref3.pathFrom, barWidth = _ref3.barWidth, zeroH = _ref3.zeroH, strokeWidth = _ref3.strokeWidth, elSeries = _ref3.elSeries; var w = this.w; var graphics = new Graphics(this.ctx); var i = indexes.i; var j = indexes.j; var realIndex = indexes.realIndex; var bc = indexes.bc; var barXPosition = x + barWidth * this.visibleI; if (w.globals.isXNumeric) { var sxI = i; if (!w.globals.seriesX[i].length) { sxI = w.globals.maxValsInArrayIndex; } x = (w.globals.seriesX[sxI][j] - w.globals.minX) / this.xRatio; barXPosition = x + barWidth * this.visibleI - barWidth * this.seriesLen / 2; } pathTo = graphics.move(barXPosition, zeroH); pathFrom = graphics.move(barXPosition, zeroH); if (w.globals.previousPaths.length > 0) { pathFrom = this.getPathFrom(realIndex, j); } if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { y = zeroH; } else { y = zeroH - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; } var endingShapeOpts = { barWidth: barWidth, strokeWidth: strokeWidth, barXPosition: barXPosition, y: y, zeroH: zeroH }; var endingShape = this.barEndingShape(w, endingShapeOpts, this.series, i, j); pathTo = pathTo + graphics.line(barXPosition, endingShape.newY) + endingShape.path + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition - strokeWidth / 2, zeroH); pathFrom = pathFrom + graphics.line(barXPosition, zeroH) + endingShape.ending_p_from + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition - strokeWidth / 2, zeroH); if (!w.globals.isXNumeric) { x = x + xDivision; } if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { if (bc >= this.barOptions.colors.backgroundBarColors.length) { bc = 0; } var bcolor = this.barOptions.colors.backgroundBarColors[bc]; var rect = graphics.drawRect(barXPosition - barWidth * this.visibleI, 0, barWidth * this.seriesLen, w.globals.gridHeight, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); elSeries.add(rect); rect.node.classList.add('apexcharts-backgroundBar'); } return { pathTo: pathTo, pathFrom: pathFrom, x: x, y: y, barXPosition: barXPosition }; } /** getPathFrom is a common function for bars/columns which is used to get previous paths when data changes. * @memberof Bar * @param {int} realIndex - current iterating i * @param {int} j - current iterating series's j index * @return {string} pathFrom is the string which will be appended in animations **/ }, { key: "getPathFrom", value: function getPathFrom(realIndex, j) { var w = this.w; var pathFrom; for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { var gpp = w.globals.previousPaths[pp]; if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { if (typeof w.globals.previousPaths[pp].paths[j] !== 'undefined') { pathFrom = w.globals.previousPaths[pp].paths[j].d; } } } return pathFrom; } /** calculateBarDataLabels is used to calculate the positions for the data-labels * It also sets the element's data attr for bars and calls drawCalculatedBarDataLabels() * @memberof Bar * @param {object} {barProps} most of the bar properties used throughout the bar * drawing function * @return {object} dataLabels node-element which you can append later **/ }, { key: "calculateDataLabelsPos", value: function calculateDataLabelsPos(_ref4) { var x = _ref4.x, y = _ref4.y, i = _ref4.i, j = _ref4.j, realIndex = _ref4.realIndex, series = _ref4.series, barHeight = _ref4.barHeight, barWidth = _ref4.barWidth, visibleSeries = _ref4.visibleSeries, renderedPath = _ref4.renderedPath; var w = this.w; var graphics = new Graphics(this.ctx); var strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; var bcx = x + parseFloat(barWidth * visibleSeries); var bcy = y + parseFloat(barHeight * visibleSeries); if (w.globals.isXNumeric && !w.globals.isBarHorizontal) { bcx = x + parseFloat(barWidth * (visibleSeries + 1)) / 2; bcy = y + parseFloat(barHeight * (visibleSeries + 1)) - strokeWidth; } var dataLabels = null; var dataLabelsX = x; var dataLabelsY = y; var dataLabelsPos = {}; var dataLabelsConfig = w.config.dataLabels; var barDataLabelsConfig = this.barOptions.dataLabels; var offX = dataLabelsConfig.offsetX; var offY = dataLabelsConfig.offsetY; var textRects = { width: 0, height: 0 }; if (w.config.dataLabels.enabled) { textRects = graphics.getTextRects(w.globals.yLabelFormatters[0](w.globals.maxY), parseInt(dataLabelsConfig.style.fontSize)); } if (this.isHorizontal) { dataLabelsPos = this.calculateBarsDataLabelsPosition({ x: x, y: y, i: i, j: j, renderedPath: renderedPath, bcy: bcy, barHeight: barHeight, barWidth: barWidth, textRects: textRects, strokeWidth: strokeWidth, dataLabelsX: dataLabelsX, dataLabelsY: dataLabelsY, barDataLabelsConfig: barDataLabelsConfig, offX: offX, offY: offY }); } else { dataLabelsPos = this.calculateColumnsDataLabelsPosition({ x: x, y: y, i: i, j: j, renderedPath: renderedPath, realIndex: realIndex, bcx: bcx, bcy: bcy, barHeight: barHeight, barWidth: barWidth, textRects: textRects, strokeWidth: strokeWidth, dataLabelsY: dataLabelsY, barDataLabelsConfig: barDataLabelsConfig, offX: offX, offY: offY }); } renderedPath.attr({ cy: dataLabelsPos.bcy, cx: dataLabelsPos.bcx, j: j, val: series[i][j], barHeight: barHeight, barWidth: barWidth }); dataLabels = this.drawCalculatedDataLabels({ x: dataLabelsPos.dataLabelsX, y: dataLabelsPos.dataLabelsY, val: series[i][j], i: realIndex, j: j, barWidth: barWidth, barHeight: barHeight, textRects: textRects, dataLabelsConfig: dataLabelsConfig }); return dataLabels; } }, { key: "calculateColumnsDataLabelsPosition", value: function calculateColumnsDataLabelsPosition(opts) { var w = this.w; var i = opts.i, j = opts.j, y = opts.y, bcx = opts.bcx, barWidth = opts.barWidth, barHeight = opts.barHeight, textRects = opts.textRects, dataLabelsY = opts.dataLabelsY, barDataLabelsConfig = opts.barDataLabelsConfig, strokeWidth = opts.strokeWidth, offX = opts.offX, offY = opts.offY; var dataLabelsX; var dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; bcx = bcx - strokeWidth / 2; if (w.globals.isXNumeric) { dataLabelsX = bcx - barWidth / 2 + offX; } else { dataLabelsX = bcx - dataPointsDividedWidth + barWidth / 2 + offX; } var valIsNegative = this.series[i][j] <= 0; if (this.isReversed) { y = y - barHeight; } switch (barDataLabelsConfig.position) { case 'center': if (valIsNegative) { dataLabelsY = y + barHeight / 2 + textRects.height / 2 + offY; } else { dataLabelsY = y + barHeight / 2 + textRects.height / 2 - offY; } break; case 'bottom': if (valIsNegative) { dataLabelsY = y + barHeight + textRects.height + strokeWidth + offY; } else { dataLabelsY = y + barHeight - textRects.height / 2 + strokeWidth - offY; } break; case 'top': if (valIsNegative) { dataLabelsY = y - textRects.height / 2 - offY; } else { dataLabelsY = y + textRects.height + offY; } break; } if (!w.config.chart.stacked) { if (dataLabelsY < 0) { dataLabelsY = 0 + strokeWidth; } else if (dataLabelsY + textRects.height / 3 > w.globals.gridHeight) { dataLabelsY = w.globals.gridHeight - strokeWidth; } } return { bcx: bcx, bcy: y, dataLabelsX: dataLabelsX, dataLabelsY: dataLabelsY }; } }, { key: "calculateBarsDataLabelsPosition", value: function calculateBarsDataLabelsPosition(opts) { var w = this.w; var x = opts.x, i = opts.i, j = opts.j, bcy = opts.bcy, barHeight = opts.barHeight, barWidth = opts.barWidth, textRects = opts.textRects, dataLabelsX = opts.dataLabelsX, strokeWidth = opts.strokeWidth, barDataLabelsConfig = opts.barDataLabelsConfig, offX = opts.offX, offY = opts.offY; var dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; var dataLabelsY = bcy - dataPointsDividedHeight + barHeight / 2 + textRects.height / 2 + offY - 3; var valIsNegative = this.series[i][j] <= 0; if (this.isReversed) { x = x + barWidth; } switch (barDataLabelsConfig.position) { case 'center': if (valIsNegative) { dataLabelsX = x - barWidth / 2 - offX; } else { dataLabelsX = x - barWidth / 2 + offX; } break; case 'bottom': if (valIsNegative) { dataLabelsX = x - barWidth - strokeWidth - Math.round(textRects.width / 2) - offX; } else { dataLabelsX = x - barWidth + strokeWidth + Math.round(textRects.width / 2) + offX; } break; case 'top': if (valIsNegative) { dataLabelsX = x - strokeWidth + Math.round(textRects.width / 2) - offX; } else { dataLabelsX = x - strokeWidth - Math.round(textRects.width / 2) + offX; } break; } if (!w.config.chart.stacked) { if (dataLabelsX < 0) { dataLabelsX = dataLabelsX + textRects.width + strokeWidth; } else if (dataLabelsX + textRects.width / 2 > w.globals.gridWidth) { dataLabelsX = w.globals.gridWidth - textRects.width - strokeWidth; } } return { bcx: x, bcy: bcy, dataLabelsX: dataLabelsX, dataLabelsY: dataLabelsY }; } }, { key: "drawCalculatedDataLabels", value: function drawCalculatedDataLabels(_ref5) { var x = _ref5.x, y = _ref5.y, val = _ref5.val, i = _ref5.i, j = _ref5.j, textRects = _ref5.textRects, barHeight = _ref5.barHeight, barWidth = _ref5.barWidth, dataLabelsConfig = _ref5.dataLabelsConfig; var w = this.w; var dataLabels = new DataLabels(this.ctx); var graphics = new Graphics(this.ctx); var formatter = dataLabelsConfig.formatter; var elDataLabelsWrap = null; var isSeriesNotCollapsed = w.globals.collapsedSeriesIndices.indexOf(i) > -1; if (dataLabelsConfig.enabled && !isSeriesNotCollapsed) { elDataLabelsWrap = graphics.group({ class: 'apexcharts-data-labels' }); var text = ''; if (typeof val !== 'undefined') { text = formatter(val, { seriesIndex: i, dataPointIndex: j, w: w }); } if (val === 0 && w.config.chart.stacked) { // in a stacked bar/column chart, 0 value should be neglected as it will overlap on the next element text = ''; } if (w.config.chart.stacked && this.barOptions.dataLabels.hideOverflowingLabels) { // if there is not enough space to draw the label in the bar/column rect, check hideOverflowingLabels property to prevent overflowing on wrong rect // Note: This issue is only seen in stacked charts if (this.isHorizontal) { barWidth = this.series[i][j] / this.yRatio[this.yaxisIndex]; // FIXED: Don't always hide the stacked negative side label // A negative value will result in a negative bar width // Only hide the text when the width is smaller (a higher negative number) than the negative bar width. if (barWidth > 0 && textRects.width / 1.6 > barWidth || barWidth < 0 && textRects.width / 1.6 < barWidth) { text = ''; } } else { barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; if (textRects.height / 1.6 > barHeight) { text = ''; } } } var modifiedDataLabelsConfig = _objectSpread({}, dataLabelsConfig); if (this.isHorizontal) { if (val < 0) { if (dataLabelsConfig.textAnchor === 'start') { modifiedDataLabelsConfig.textAnchor = 'end'; } else if (dataLabelsConfig.textAnchor === 'end') { modifiedDataLabelsConfig.textAnchor = 'start'; } } } dataLabels.plotDataLabelsText({ x: x, y: y, text: text, i: i, j: j, parent: elDataLabelsWrap, dataLabelsConfig: modifiedDataLabelsConfig, alwaysDrawDataLabel: true, offsetCorrection: true }); } return elDataLabelsWrap; } /** barEndingShape draws the various shapes on top of bars/columns * @memberof Bar * @param {object} w - chart context * @param {object} opts - consists several properties like barHeight/barWidth * @param {array} series - global primary series * @param {int} i - current iterating series's index * @param {int} j - series's j of i * @return {object} path - ending shape whether round/arrow * ending_p_from - similar to pathFrom * newY - which is calculated from existing y and new shape's top **/ }, { key: "barEndingShape", value: function barEndingShape(w, opts, series, i, j) { var graphics = new Graphics(this.ctx); if (this.isHorizontal) { var endingShape = null; var endingShapeFrom = ''; var x = opts.x; if (typeof series[i][j] !== 'undefined' || series[i][j] !== null) { var inverse = series[i][j] < 0; var eX = opts.barHeight / 2 - opts.strokeWidth; if (inverse) eX = -opts.barHeight / 2 - opts.strokeWidth; if (!w.config.chart.stacked) { if (this.barOptions.endingShape === 'rounded') { x = opts.x - eX / 2; } } switch (this.barOptions.endingShape) { case 'flat': endingShape = graphics.line(x, opts.barYPosition + opts.barHeight - opts.strokeWidth); break; case 'rounded': endingShape = graphics.quadraticCurve(x + eX, opts.barYPosition + (opts.barHeight - opts.strokeWidth) / 2, x, opts.barYPosition + opts.barHeight - opts.strokeWidth); break; } } return { path: endingShape, ending_p_from: endingShapeFrom, newX: x }; } else { var _endingShape = null; var _endingShapeFrom = ''; var y = opts.y; if (typeof series[i][j] !== 'undefined' || series[i][j] !== null) { var _inverse = series[i][j] < 0; var eY = opts.barWidth / 2 - opts.strokeWidth; if (_inverse) eY = -opts.barWidth / 2 - opts.strokeWidth; if (!w.config.chart.stacked) { // the shape exceeds the chart height, hence reduce y if (this.barOptions.endingShape === 'rounded') { y = y + eY / 2; } } switch (this.barOptions.endingShape) { case 'flat': _endingShape = graphics.line(opts.barXPosition + opts.barWidth - opts.strokeWidth, y); break; case 'rounded': _endingShape = graphics.quadraticCurve(opts.barXPosition + (opts.barWidth - opts.strokeWidth) / 2, y - eY, opts.barXPosition + opts.barWidth - opts.strokeWidth, y); break; } } return { path: _endingShape, ending_p_from: _endingShapeFrom, newY: y }; } } }]); return Bar; }(); /** * ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars. * * @module BarStacked * The whole calculation for stacked bar/column is different from normal bar/column, * hence it makes sense to derive a new class for it extending most of the props of Parent Bar **/ var BarStacked = /*#__PURE__*/ function (_Bar) { _inherits(BarStacked, _Bar); function BarStacked() { _classCallCheck(this, BarStacked); return _possibleConstructorReturn(this, _getPrototypeOf(BarStacked).apply(this, arguments)); } _createClass(BarStacked, [{ key: "draw", value: function draw(series, seriesIndex) { var w = this.w; this.graphics = new Graphics(this.ctx); this.fill = new Fill(this.ctx); this.bar = new Bar(this.ctx, this.xyRatios); var coreUtils = new CoreUtils(this.ctx, w); series = coreUtils.getLogSeries(series); this.yRatio = coreUtils.getLogYRatios(this.yRatio); this.initVariables(series); if (w.config.chart.stackType === '100%') { series = w.globals.seriesPercent.slice(); } this.series = series; this.totalItems = 0; this.prevY = []; // y position on chart this.prevX = []; // x position on chart this.prevYF = []; // y position including shapes on chart this.prevXF = []; // x position including shapes on chart this.prevYVal = []; // y values (series[i][j]) in columns this.prevXVal = []; // x values (series[i][j]) in bars this.xArrj = []; // xj indicates x position on graph in bars this.xArrjF = []; // xjF indicates bar's x position + endingshape's positions in bars this.xArrjVal = []; // x val means the actual series's y values in horizontal/bars this.yArrj = []; // yj indicates y position on graph in columns this.yArrjF = []; // yjF indicates bar's y position + endingshape's positions in columns this.yArrjVal = []; // y val means the actual series's y values in columns for (var sl = 0; sl < series.length; sl++) { if (series[sl].length > 0) { this.totalItems += series[sl].length; } } var ret = this.graphics.group({ class: 'apexcharts-bar-series apexcharts-plot-series' }); var x = 0; var y = 0; for (var i = 0, bc = 0; i < series.length; i++, bc++) { var pathTo = void 0, pathFrom = void 0; var xDivision = void 0; // xDivision is the GRIDWIDTH divided by number of datapoints (columns) var yDivision = void 0; // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) var zeroH = void 0; // zeroH is the baseline where 0 meets y axis var zeroW = void 0; // zeroW is the baseline where 0 meets x axis var xArrValues = []; var yArrValues = []; var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; if (this.yRatio.length > 1) { this.yaxisIndex = realIndex; } this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; // el to which series will be drawn var elSeries = this.graphics.group({ class: "apexcharts-series", seriesName: Utils.escapeString(w.globals.seriesNames[realIndex]), rel: i + 1, 'data:realIndex': realIndex }); // eldatalabels var elDataLabelsWrap = this.graphics.group({ class: 'apexcharts-datalabels' }); var strokeWidth = 0; var barHeight = 0; var barWidth = 0; var initPositions = this.initialPositions(x, y, xDivision, yDivision, zeroH, zeroW); y = initPositions.y; barHeight = initPositions.barHeight; yDivision = initPositions.yDivision; zeroW = initPositions.zeroW; x = initPositions.x; barWidth = initPositions.barWidth; xDivision = initPositions.xDivision; zeroH = initPositions.zeroH; this.yArrj = []; this.yArrjF = []; this.yArrjVal = []; this.xArrj = []; this.xArrjF = []; this.xArrjVal = []; // if (!this.horizontal) { // this.xArrj.push(x + barWidth / 2) // } for (var j = 0; j < w.globals.dataPoints; j++) { if (w.config.stroke.show) { if (this.isNullValue) { strokeWidth = 0; } else { strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; } } var paths = null; if (this.isHorizontal) { paths = this.drawBarPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, barHeight: barHeight, strokeWidth: strokeWidth, pathTo: pathTo, pathFrom: pathFrom, zeroW: zeroW, x: x, y: y, yDivision: yDivision, elSeries: elSeries }); barWidth = this.series[i][j] / this.invertedYRatio; } else { paths = this.drawColumnPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, x: x, y: y, xDivision: xDivision, pathTo: pathTo, pathFrom: pathFrom, barWidth: barWidth, zeroH: zeroH, strokeWidth: strokeWidth, elSeries: elSeries }); barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; } pathTo = paths.pathTo; pathFrom = paths.pathFrom; y = paths.y; x = paths.x; xArrValues.push(x); yArrValues.push(y); var pathFill = this.bar.getPathFillColor(series, i, j, realIndex); elSeries = this.renderSeries({ realIndex: realIndex, pathFill: pathFill, j: j, i: i, pathFrom: pathFrom, pathTo: pathTo, strokeWidth: strokeWidth, elSeries: elSeries, x: x, y: y, series: series, barHeight: barHeight, barWidth: barWidth, elDataLabelsWrap: elDataLabelsWrap, type: 'bar', visibleSeries: 0 }); } // push all x val arrays into main xArr w.globals.seriesXvalues[realIndex] = xArrValues; w.globals.seriesYvalues[realIndex] = yArrValues; // push all current y values array to main PrevY Array this.prevY.push(this.yArrj); this.prevYF.push(this.yArrjF); this.prevYVal.push(this.yArrjVal); this.prevX.push(this.xArrj); this.prevXF.push(this.xArrjF); this.prevXVal.push(this.xArrjVal); ret.add(elSeries); } return ret; } }, { key: "initialPositions", value: function initialPositions(x, y, xDivision, yDivision, zeroH, zeroW) { var w = this.w; var barHeight, barWidth; if (this.isHorizontal) { // height divided into equal parts yDivision = w.globals.gridHeight / w.globals.dataPoints; barHeight = yDivision; barHeight = barHeight * parseInt(w.config.plotOptions.bar.barHeight) / 100; zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); // initial y position is half of barHeight * half of number of Bars y = (yDivision - barHeight) / 2; } else { // width divided into equal parts xDivision = w.globals.gridWidth / w.globals.dataPoints; barWidth = xDivision; if (w.globals.isXNumeric) { xDivision = w.globals.minXDiff / this.xRatio; barWidth = xDivision * parseInt(this.barOptions.columnWidth) / 100; } else { barWidth = barWidth * parseInt(w.config.plotOptions.bar.columnWidth) / 100; } zeroH = this.baseLineY[this.yaxisIndex] + (this.isReversed ? w.globals.gridHeight : 0) - (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); // initial x position is one third of barWidth x = w.globals.padHorizontal + (xDivision - barWidth) / 2; } return { x: x, y: y, yDivision: yDivision, xDivision: xDivision, barHeight: barHeight, barWidth: barWidth, zeroH: zeroH, zeroW: zeroW }; } }, { key: "drawBarPaths", value: function drawBarPaths(_ref) { var indexes = _ref.indexes, barHeight = _ref.barHeight, strokeWidth = _ref.strokeWidth, pathTo = _ref.pathTo, pathFrom = _ref.pathFrom, zeroW = _ref.zeroW, x = _ref.x, y = _ref.y, yDivision = _ref.yDivision, elSeries = _ref.elSeries; var w = this.w; var barYPosition = y; var barXPosition; var i = indexes.i; var j = indexes.j; var realIndex = indexes.realIndex; var bc = indexes.bc; var prevBarW = 0; for (var k = 0; k < this.prevXF.length; k++) { prevBarW = prevBarW + this.prevXF[k][j]; } if (i > 0) { var bXP = zeroW; if (this.prevXVal[i - 1][j] < 0) { if (this.series[i][j] >= 0) { bXP = this.prevX[i - 1][j] + prevBarW - (this.isReversed ? prevBarW : 0) * 2; } else { bXP = this.prevX[i - 1][j]; } } else if (this.prevXVal[i - 1][j] >= 0) { if (this.series[i][j] >= 0) { bXP = this.prevX[i - 1][j]; } else { bXP = this.prevX[i - 1][j] - prevBarW + (this.isReversed ? prevBarW : 0) * 2; } } barXPosition = bXP; } else { // the first series will not have prevX values barXPosition = zeroW; } if (this.series[i][j] === null) { x = barXPosition; } else { x = barXPosition + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; } var endingShapeOpts = { barHeight: barHeight, strokeWidth: strokeWidth, invertedYRatio: this.invertedYRatio, barYPosition: barYPosition, x: x }; var endingShape = this.bar.barEndingShape(w, endingShapeOpts, this.series, i, j); if (this.series.length > 1 && i !== this.endingShapeOnSeriesNumber) { // revert back to flat shape if not last series endingShape.path = this.graphics.line(endingShape.newX, barYPosition + barHeight - strokeWidth); } this.xArrj.push(endingShape.newX); this.xArrjF.push(Math.abs(barXPosition - endingShape.newX)); this.xArrjVal.push(this.series[i][j]); pathTo = this.graphics.move(barXPosition, barYPosition); pathFrom = this.graphics.move(barXPosition, barYPosition); if (w.globals.previousPaths.length > 0) { pathFrom = this.bar.getPathFrom(realIndex, j, false); } pathTo = pathTo + this.graphics.line(endingShape.newX, barYPosition) + endingShape.path + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { bc = 0; } var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; var rect = this.graphics.drawRect(0, barYPosition, w.globals.gridWidth, barHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); elSeries.add(rect); rect.node.classList.add('apexcharts-backgroundBar'); } y = y + yDivision; return { pathTo: pathTo, pathFrom: pathFrom, x: x, y: y }; } }, { key: "drawColumnPaths", value: function drawColumnPaths(_ref2) { var indexes = _ref2.indexes, x = _ref2.x, y = _ref2.y, xDivision = _ref2.xDivision, pathTo = _ref2.pathTo, pathFrom = _ref2.pathFrom, barWidth = _ref2.barWidth, zeroH = _ref2.zeroH, strokeWidth = _ref2.strokeWidth, elSeries = _ref2.elSeries; var w = this.w; var i = indexes.i; var j = indexes.j; var realIndex = indexes.realIndex; var bc = indexes.bc; if (w.globals.isXNumeric) { var seriesVal = w.globals.seriesX[i][j]; if (!seriesVal) seriesVal = 0; x = (seriesVal - w.globals.minX) / this.xRatio - barWidth / 2; } var barXPosition = x; var barYPosition; var prevBarH = 0; for (var k = 0; k < this.prevYF.length; k++) { prevBarH = prevBarH + this.prevYF[k][j]; } if (i > 0 && !w.globals.isXNumeric || i > 0 && w.globals.isXNumeric && w.globals.seriesX[i - 1][j] === w.globals.seriesX[i][j]) { var bYP; var prevYValue = this.prevY[i - 1][j]; if (this.prevYVal[i - 1][j] < 0) { if (this.series[i][j] >= 0) { bYP = prevYValue - prevBarH + (this.isReversed ? prevBarH : 0) * 2; } else { bYP = prevYValue; } } else { if (this.series[i][j] >= 0) { bYP = prevYValue; } else { bYP = prevYValue + prevBarH - (this.isReversed ? prevBarH : 0) * 2; } } barYPosition = bYP; } else { // the first series will not have prevY values, also if the prev index's series X doesn't matches the current index's series X, then start from zero barYPosition = w.globals.gridHeight - zeroH; } y = barYPosition - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; var endingShapeOpts = { barWidth: barWidth, strokeWidth: strokeWidth, yRatio: this.yRatio[this.yaxisIndex], barXPosition: barXPosition, y: y }; var endingShape = this.bar.barEndingShape(w, endingShapeOpts, this.series, i, j); this.yArrj.push(endingShape.newY); this.yArrjF.push(Math.abs(barYPosition - endingShape.newY)); this.yArrjVal.push(this.series[i][j]); pathTo = this.graphics.move(barXPosition, barYPosition); pathFrom = this.graphics.move(barXPosition, barYPosition); if (w.globals.previousPaths.length > 0) { pathFrom = this.bar.getPathFrom(realIndex, j, false); } pathTo = pathTo + this.graphics.line(barXPosition, endingShape.newY) + endingShape.path + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition - strokeWidth / 2, barYPosition); pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition - strokeWidth / 2, barYPosition); if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { bc = 0; } var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; var rect = this.graphics.drawRect(barXPosition, 0, barWidth, w.globals.gridHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); elSeries.add(rect); rect.node.classList.add('apexcharts-backgroundBar'); } x = x + xDivision; return { pathTo: pathTo, pathFrom: pathFrom, x: w.globals.isXNumeric ? x - xDivision : x, y: y }; } /* * When user clicks on legends, the collapsed series will be filled with [0,0,0,...,0] * We need to make sure, that the last series is not [0,0,0,...,0] * as we need to draw shapes on the last series (for stacked bars/columns only) * Hence, we are collecting all inner arrays in series which has [0,0,0...,0] **/ }, { key: "checkZeroSeries", value: function checkZeroSeries(_ref3) { var series = _ref3.series; var w = this.w; for (var zs = 0; zs < series.length; zs++) { var total = 0; for (var zsj = 0; zsj < series[w.globals.maxValsInArrayIndex].length; zsj++) { total += series[zs][zsj]; } if (total === 0) { this.zeroSerieses.push(zs); } } // After getting all zeroserieses, we need to ensure whether endingshapeonSeries is not in that zeroseries array for (var s = series.length - 1; s >= 0; s--) { if (this.zeroSerieses.indexOf(s) > -1 && s === this.endingShapeOnSeriesNumber) { this.endingShapeOnSeriesNumber -= 1; } } } }]); return BarStacked; }(Bar); /** * ApexCharts CandleStick Class responsible for drawing both Stacked Columns and Bars. * * @module CandleStick **/ var CandleStick = /*#__PURE__*/ function (_Bar) { _inherits(CandleStick, _Bar); function CandleStick() { _classCallCheck(this, CandleStick); return _possibleConstructorReturn(this, _getPrototypeOf(CandleStick).apply(this, arguments)); } _createClass(CandleStick, [{ key: "draw", value: function draw(series, seriesIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var fill = new Fill(this.ctx); this.candlestickOptions = this.w.config.plotOptions.candlestick; var coreUtils = new CoreUtils(this.ctx, w); series = coreUtils.getLogSeries(series); this.series = series; this.yRatio = coreUtils.getLogYRatios(this.yRatio); this.initVariables(series); var ret = graphics.group({ class: 'apexcharts-candlestick-series apexcharts-plot-series' }); for (var i = 0, bc = 0; i < series.length; i++, bc++) { var pathTo = void 0, pathFrom = void 0; var x = void 0, y = void 0, xDivision = void 0, // xDivision is the GRIDWIDTH divided by number of datapoints (columns) zeroH = void 0; // zeroH is the baseline where 0 meets y axis var yArrj = []; // hold y values of current iterating series var xArrj = []; // hold x values of current iterating series var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn var elSeries = graphics.group({ class: "apexcharts-series", seriesName: Utils.escapeString(w.globals.seriesNames[realIndex]), rel: i + 1, 'data:realIndex': realIndex }); if (series[i].length > 0) { this.visibleI = this.visibleI + 1; } var strokeWidth = 0; var barHeight = 0; var barWidth = 0; if (this.yRatio.length > 1) { this.yaxisIndex = realIndex; } var initPositions = this.initialPositions(); y = initPositions.y; barHeight = initPositions.barHeight; x = initPositions.x; barWidth = initPositions.barWidth; xDivision = initPositions.xDivision; zeroH = initPositions.zeroH; xArrj.push(x + barWidth / 2); // eldatalabels var elDataLabelsWrap = graphics.group({ class: 'apexcharts-datalabels' }); for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { this.isNullValue = true; } else { this.isNullValue = false; } if (w.config.stroke.show) { if (this.isNullValue) { strokeWidth = 0; } else { strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; } } var color = void 0; var paths = this.drawCandleStickPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, x: x, y: y, xDivision: xDivision, pathTo: pathTo, pathFrom: pathFrom, barWidth: barWidth, zeroH: zeroH, strokeWidth: strokeWidth, elSeries: elSeries }); pathTo = paths.pathTo; pathFrom = paths.pathFrom; y = paths.y; x = paths.x; color = paths.color; // push current X if (j > 0) { xArrj.push(x + barWidth / 2); } yArrj.push(y); var pathFill = fill.fillPath({ seriesNumber: realIndex, color: color, value: series[i][j] }); var lineFill = this.candlestickOptions.wick.useFillColor ? color : undefined; elSeries = this.renderSeries({ realIndex: realIndex, pathFill: pathFill, lineFill: lineFill, j: j, i: i, pathFrom: pathFrom, pathTo: pathTo, strokeWidth: strokeWidth, elSeries: elSeries, x: x, y: y, series: series, barHeight: barHeight, barWidth: barWidth, elDataLabelsWrap: elDataLabelsWrap, visibleSeries: this.visibleI, type: 'candlestick' }); } // push all x val arrays into main xArr w.globals.seriesXvalues[realIndex] = xArrj; w.globals.seriesYvalues[realIndex] = yArrj; ret.add(elSeries); } return ret; } }, { key: "drawCandleStickPaths", value: function drawCandleStickPaths(_ref) { var indexes = _ref.indexes, x = _ref.x, y = _ref.y, xDivision = _ref.xDivision, pathTo = _ref.pathTo, pathFrom = _ref.pathFrom, barWidth = _ref.barWidth, zeroH = _ref.zeroH, strokeWidth = _ref.strokeWidth; var w = this.w; var graphics = new Graphics(this.ctx); var i = indexes.i; var j = indexes.j; var isPositive = true; var colorPos = w.config.plotOptions.candlestick.colors.upward; var colorNeg = w.config.plotOptions.candlestick.colors.downward; var yRatio = this.yRatio[this.yaxisIndex]; var realIndex = indexes.realIndex; var ohlc = this.getOHLCValue(realIndex, j); var l1 = zeroH; var l2 = zeroH; if (ohlc.o > ohlc.c) { isPositive = false; } var y1 = Math.min(ohlc.o, ohlc.c); var y2 = Math.max(ohlc.o, ohlc.c); if (w.globals.isXNumeric) { x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; } var barXPosition = x + barWidth * this.visibleI; if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { y1 = zeroH; } else { y1 = zeroH - y1 / yRatio; y2 = zeroH - y2 / yRatio; l1 = zeroH - ohlc.h / yRatio; l2 = zeroH - ohlc.l / yRatio; } pathTo = graphics.move(barXPosition, zeroH); pathFrom = graphics.move(barXPosition, y1); if (w.globals.previousPaths.length > 0) { pathFrom = this.getPathFrom(realIndex, j, true); } pathTo = graphics.move(barXPosition, y2) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth / 2, l1) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth, y2) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition + barWidth / 2, l2) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition, y1) + graphics.line(barXPosition, y2 - strokeWidth / 2); pathFrom = pathFrom + graphics.move(barXPosition, y1); if (!w.globals.isXNumeric) { x = x + xDivision; } return { pathTo: pathTo, pathFrom: pathFrom, x: x, y: y2, barXPosition: barXPosition, color: isPositive ? colorPos : colorNeg }; } }, { key: "getOHLCValue", value: function getOHLCValue(i, j) { var w = this.w; return { o: w.globals.seriesCandleO[i][j], h: w.globals.seriesCandleH[i][j], l: w.globals.seriesCandleL[i][j], c: w.globals.seriesCandleC[i][j] }; } }]); return CandleStick; }(Bar); var Crosshairs = /*#__PURE__*/ function () { function Crosshairs(ctx) { _classCallCheck(this, Crosshairs); this.ctx = ctx; this.w = ctx.w; } _createClass(Crosshairs, [{ key: "drawXCrosshairs", value: function drawXCrosshairs() { var w = this.w; var graphics = new Graphics(this.ctx); var filters = new Filters(this.ctx); var crosshairGradient = w.config.xaxis.crosshairs.fill.gradient; var crosshairShadow = w.config.xaxis.crosshairs.dropShadow; var fillType = w.config.xaxis.crosshairs.fill.type; var gradientFrom = crosshairGradient.colorFrom; var gradientTo = crosshairGradient.colorTo; var opacityFrom = crosshairGradient.opacityFrom; var opacityTo = crosshairGradient.opacityTo; var stops = crosshairGradient.stops; var shadow = 'none'; var dropShadow = crosshairShadow.enabled; var shadowLeft = crosshairShadow.left; var shadowTop = crosshairShadow.top; var shadowBlur = crosshairShadow.blur; var shadowColor = crosshairShadow.color; var shadowOpacity = crosshairShadow.opacity; var xcrosshairsFill = w.config.xaxis.crosshairs.fill.color; if (w.config.xaxis.crosshairs.show) { if (fillType === 'gradient') { xcrosshairsFill = graphics.drawGradient('vertical', gradientFrom, gradientTo, opacityFrom, opacityTo, null, stops, null); } var xcrosshairs = graphics.drawRect(); if (w.config.xaxis.crosshairs.width === 1) { // to prevent drawing 2 lines, convert rect to line xcrosshairs = graphics.drawLine(); } xcrosshairs.attr({ class: 'apexcharts-xcrosshairs', x: 0, y: 0, y2: w.globals.gridHeight, width: Utils.isNumber(w.config.xaxis.crosshairs.width) ? w.config.xaxis.crosshairs.width : 0, height: w.globals.gridHeight, fill: xcrosshairsFill, filter: shadow, 'fill-opacity': w.config.xaxis.crosshairs.opacity, stroke: w.config.xaxis.crosshairs.stroke.color, 'stroke-width': w.config.xaxis.crosshairs.stroke.width, 'stroke-dasharray': w.config.xaxis.crosshairs.stroke.dashArray }); if (dropShadow) { xcrosshairs = filters.dropShadow(xcrosshairs, { left: shadowLeft, top: shadowTop, blur: shadowBlur, color: shadowColor, opacity: shadowOpacity }); } w.globals.dom.elGraphical.add(xcrosshairs); } } }, { key: "drawYCrosshairs", value: function drawYCrosshairs() { var w = this.w; var graphics = new Graphics(this.ctx); var crosshair = w.config.yaxis[0].crosshairs; if (w.config.yaxis[0].crosshairs.show) { var ycrosshairs = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, crosshair.stroke.dashArray, crosshair.stroke.width); ycrosshairs.attr({ class: 'apexcharts-ycrosshairs' }); w.globals.dom.elGraphical.add(ycrosshairs); } // draw an invisible crosshair to help in positioning the yaxis tooltip var ycrosshairsHidden = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, 0, 0); ycrosshairsHidden.attr({ class: 'apexcharts-ycrosshairs-hidden' }); w.globals.dom.elGraphical.add(ycrosshairsHidden); } }]); return Crosshairs; }(); /** * ApexCharts HeatMap Class. * @module HeatMap **/ var HeatMap = /*#__PURE__*/ function () { function HeatMap(ctx, xyRatios) { _classCallCheck(this, HeatMap); this.ctx = ctx; this.w = ctx.w; this.xRatio = xyRatios.xRatio; this.yRatio = xyRatios.yRatio; this.negRange = false; this.dynamicAnim = this.w.config.chart.animations.dynamicAnimation; this.rectRadius = this.w.config.plotOptions.heatmap.radius; this.strokeWidth = this.w.config.stroke.width; } _createClass(HeatMap, [{ key: "draw", value: function draw(series) { var w = this.w; var graphics = new Graphics(this.ctx); var ret = graphics.group({ class: 'apexcharts-heatmap' }); ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); // width divided into equal parts var xDivision = w.globals.gridWidth / w.globals.dataPoints; var yDivision = w.globals.gridHeight / w.globals.series.length; var y1 = 0; var rev = false; this.checkColorRange(); var heatSeries = series.slice(); if (w.config.yaxis[0].reversed) { rev = true; heatSeries.reverse(); } for (var i = rev ? 0 : heatSeries.length - 1; rev ? i < heatSeries.length : i >= 0; rev ? i++ : i--) { // el to which series will be drawn var elSeries = graphics.group({ class: "apexcharts-series apexcharts-heatmap-series", seriesName: Utils.escapeString(w.globals.seriesNames[i]), rel: i + 1, 'data:realIndex': i }); if (w.config.chart.dropShadow.enabled) { var shadow = w.config.chart.dropShadow; var filters = new Filters(this.ctx); filters.dropShadow(elSeries, shadow, i); } var x1 = 0; for (var j = 0; j < heatSeries[i].length; j++) { var colorShadePercent = 1; var heatColorProps = this.determineHeatColor(i, j); if (w.globals.hasNegs || this.negRange) { var shadeIntensity = w.config.plotOptions.heatmap.shadeIntensity; if (w.config.plotOptions.heatmap.reverseNegativeShade) { if (heatColorProps.percent < 0) { colorShadePercent = heatColorProps.percent / 100 * (shadeIntensity * 1.25); } else { colorShadePercent = (1 - heatColorProps.percent / 100) * (shadeIntensity * 1.25); } } else { if (heatColorProps.percent < 0) { colorShadePercent = 1 - (1 + heatColorProps.percent / 100) * shadeIntensity; } else { colorShadePercent = (1 - heatColorProps.percent / 100) * shadeIntensity; } } } else { colorShadePercent = 1 - heatColorProps.percent / 100; } var color = heatColorProps.color; if (w.config.plotOptions.heatmap.enableShades) { var utils = new Utils(); color = Utils.hexToRgba(utils.shadeColor(colorShadePercent, heatColorProps.color), w.config.fill.opacity); } var radius = this.rectRadius; var rect = graphics.drawRect(x1, y1, xDivision, yDivision, radius); rect.attr({ cx: x1, cy: y1 }); rect.node.classList.add('apexcharts-heatmap-rect'); elSeries.add(rect); rect.attr({ fill: color, i: i, index: i, j: j, val: heatSeries[i][j], 'stroke-width': this.strokeWidth, stroke: w.globals.stroke.colors[0], color: color }); rect.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, rect)); rect.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, rect)); rect.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, rect)); if (w.config.chart.animations.enabled && !w.globals.dataChanged) { var speed = 1; if (!w.globals.resized) { speed = w.config.chart.animations.speed; } this.animateHeatMap(rect, x1, y1, xDivision, yDivision, speed); } if (w.globals.dataChanged) { var _speed = 1; if (this.dynamicAnim.enabled && w.globals.shouldAnimate) { _speed = this.dynamicAnim.speed; var colorFrom = w.globals.previousPaths[i] && w.globals.previousPaths[i][j] && w.globals.previousPaths[i][j].color; if (!colorFrom) colorFrom = 'rgba(255, 255, 255, 0)'; this.animateHeatColor(rect, Utils.isColorHex(colorFrom) ? colorFrom : Utils.rgb2hex(colorFrom), Utils.isColorHex(color) ? color : Utils.rgb2hex(color), _speed); } } var dataLabels = this.calculateHeatmapDataLabels({ x: x1, y: y1, i: i, j: j, series: heatSeries, rectHeight: yDivision, rectWidth: xDivision }); if (dataLabels !== null) { elSeries.add(dataLabels); } x1 = x1 + xDivision; } y1 = y1 + yDivision; ret.add(elSeries); } // adjust yaxis labels for heatmap var yAxisScale = w.globals.yAxisScale[0].result.slice(); if (w.config.yaxis[0].reversed) { yAxisScale.unshift(''); } else { yAxisScale.push(''); } w.globals.yAxisScale[0].result = yAxisScale; var divisor = w.globals.gridHeight / w.globals.series.length; w.config.yaxis[0].labels.offsetY = -(divisor / 2); return ret; } }, { key: "checkColorRange", value: function checkColorRange() { var _this = this; var w = this.w; var heatmap = w.config.plotOptions.heatmap; if (heatmap.colorScale.ranges.length > 0) { heatmap.colorScale.ranges.map(function (range, index) { if (range.from < 0) { _this.negRange = true; } }); } } }, { key: "determineHeatColor", value: function determineHeatColor(i, j) { var w = this.w; var val = w.globals.series[i][j]; var heatmap = w.config.plotOptions.heatmap; var seriesNumber = heatmap.colorScale.inverse ? j : i; var color = w.globals.colors[seriesNumber]; var min = Math.min.apply(Math, _toConsumableArray(w.globals.series[i])); var max = Math.max.apply(Math, _toConsumableArray(w.globals.series[i])); if (!heatmap.distributed) { min = w.globals.minY; max = w.globals.maxY; } if (typeof heatmap.colorScale.min !== 'undefined') { min = heatmap.colorScale.min < w.globals.minY ? heatmap.colorScale.min : w.globals.minY; max = heatmap.colorScale.max > w.globals.maxY ? heatmap.colorScale.max : w.globals.maxY; } var total = Math.abs(max) + Math.abs(min); var percent = 100 * val / (total === 0 ? total - 0.000001 : total); if (heatmap.colorScale.ranges.length > 0) { var colorRange = heatmap.colorScale.ranges; colorRange.map(function (range, index) { if (val >= range.from && val <= range.to) { color = range.color; min = range.from; max = range.to; var _total = Math.abs(max) + Math.abs(min); percent = 100 * val / (_total === 0 ? _total - 0.000001 : _total); } }); } return { color: color, percent: percent }; } }, { key: "calculateHeatmapDataLabels", value: function calculateHeatmapDataLabels(_ref) { var x = _ref.x, y = _ref.y, i = _ref.i, j = _ref.j, series = _ref.series, rectHeight = _ref.rectHeight, rectWidth = _ref.rectWidth; var w = this.w; // let graphics = new Graphics(this.ctx) var dataLabelsConfig = w.config.dataLabels; var graphics = new Graphics(this.ctx); var dataLabels = new DataLabels(this.ctx); var formatter = dataLabelsConfig.formatter; var elDataLabelsWrap = null; if (dataLabelsConfig.enabled) { elDataLabelsWrap = graphics.group({ class: 'apexcharts-data-labels' }); var offX = dataLabelsConfig.offsetX; var offY = dataLabelsConfig.offsetY; var dataLabelsX = x + rectWidth / 2 + offX; var dataLabelsY = y + rectHeight / 2 + parseInt(dataLabelsConfig.style.fontSize) / 3 + offY; var text = formatter(w.globals.series[i][j], { seriesIndex: i, dataPointIndex: j, w: w }); dataLabels.plotDataLabelsText({ x: dataLabelsX, y: dataLabelsY, text: text, i: i, j: j, parent: elDataLabelsWrap, dataLabelsConfig: dataLabelsConfig }); } return elDataLabelsWrap; } }, { key: "animateHeatMap", value: function animateHeatMap(el, x, y, width, height, speed) { var animations = new Animations(this.ctx); animations.animateRect(el, { x: x + width / 2, y: y + height / 2, width: 0, height: 0 }, { x: x, y: y, width: width, height: height }, speed, function () { animations.animationCompleted(); }); } }, { key: "animateHeatColor", value: function animateHeatColor(el, colorFrom, colorTo, speed) { el.attr({ fill: colorFrom }).animate(speed).attr({ fill: colorTo }); } }]); return HeatMap; }(); /** * ApexCharts Pie Class for drawing Pie / Donut Charts. * @module Pie **/ var Pie = /*#__PURE__*/ function () { function Pie(ctx) { _classCallCheck(this, Pie); this.ctx = ctx; this.w = ctx.w; this.chartType = this.w.config.chart.type; this.initialAnim = this.w.config.chart.animations.enabled; this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; this.animBeginArr = [0]; this.animDur = 0; this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels; var w = this.w; this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; this.centerY = this.defaultSize / 2; this.centerX = w.globals.gridWidth / 2; this.fullAngle = 360; w.globals.radialSize = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; if (w.config.plotOptions.pie.size !== undefined) { w.globals.radialSize = w.config.plotOptions.pie.size; } this.donutSize = w.globals.radialSize * parseInt(w.config.plotOptions.pie.donut.size) / 100; this.sliceLabels = []; this.prevSectorAngleArr = []; // for dynamic animations } _createClass(Pie, [{ key: "draw", value: function draw(series) { var self = this; var w = this.w; var graphics = new Graphics(this.ctx); var ret = graphics.group({ class: 'apexcharts-pie' }); if (w.globals.noData) return ret; var total = 0; for (var k = 0; k < series.length; k++) { // CALCULATE THE TOTAL total += Utils.negToZero(series[k]); } var sectorAngleArr = []; // el to which series will be drawn var elSeries = graphics.group(); // prevent division by zero error if there is no data if (total === 0) { total = 0.00001; } for (var i = 0; i < series.length; i++) { // CALCULATE THE ANGLES var angle = this.fullAngle * Utils.negToZero(series[i]) / total; sectorAngleArr.push(angle); } if (w.globals.dataChanged) { var prevTotal = 0; for (var _k = 0; _k < w.globals.previousPaths.length; _k++) { // CALCULATE THE PREV TOTAL prevTotal += Utils.negToZero(w.globals.previousPaths[_k]); } var previousAngle; for (var _i = 0; _i < w.globals.previousPaths.length; _i++) { // CALCULATE THE PREVIOUS ANGLES previousAngle = this.fullAngle * Utils.negToZero(w.globals.previousPaths[_i]) / prevTotal; this.prevSectorAngleArr.push(previousAngle); } } // on small chart size after few count of resizes browser window donutSize can be negative if (this.donutSize < 0) { this.donutSize = 0; } var scaleSize = w.config.plotOptions.pie.customScale; var halfW = w.globals.gridWidth / 2; var halfH = w.globals.gridHeight / 2; var translateX = halfW - w.globals.gridWidth / 2 * scaleSize; var translateY = halfH - w.globals.gridHeight / 2 * scaleSize; if (w.config.chart.type === 'donut') { // draw the inner circle and add some text to it var circle = graphics.drawCircle(this.donutSize); circle.attr({ cx: this.centerX, cy: this.centerY, fill: w.config.plotOptions.pie.donut.background }); elSeries.add(circle); } var elG = self.drawArcs(sectorAngleArr, series); // add slice dataLabels at the end this.sliceLabels.forEach(function (s) { elG.add(s); }); elSeries.attr({ transform: "translate(".concat(translateX, ", ").concat(translateY - 5, ") scale(").concat(scaleSize, ")") }); ret.attr({ 'data:innerTranslateX': translateX, 'data:innerTranslateY': translateY - 25 }); elSeries.add(elG); ret.add(elSeries); if (this.donutDataLabels.show) { var dataLabels = this.renderInnerDataLabels(this.donutDataLabels, { hollowSize: this.donutSize, centerX: this.centerX, centerY: this.centerY, opacity: this.donutDataLabels.show, translateX: translateX, translateY: translateY }); ret.add(dataLabels); } return ret; } // core function for drawing pie arcs }, { key: "drawArcs", value: function drawArcs(sectorAngleArr, series) { var w = this.w; var filters = new Filters(this.ctx); var graphics = new Graphics(this.ctx); var fill = new Fill(this.ctx); var g = graphics.group({ class: 'apexcharts-slices' }); var startAngle = 0; var prevStartAngle = 0; var endAngle = 0; var prevEndAngle = 0; this.strokeWidth = w.config.stroke.show ? w.config.stroke.width : 0; for (var i = 0; i < sectorAngleArr.length; i++) { // if(sectorAngleArr[i]>0) { var elPieArc = graphics.group({ class: "apexcharts-series apexcharts-pie-series", seriesName: Utils.escapeString(w.globals.seriesNames[i]), rel: i + 1, 'data:realIndex': i }); g.add(elPieArc); startAngle = endAngle; prevStartAngle = prevEndAngle; endAngle = startAngle + sectorAngleArr[i]; prevEndAngle = prevStartAngle + this.prevSectorAngleArr[i]; var angle = endAngle - startAngle; var pathFill = fill.fillPath({ seriesNumber: i, size: w.globals.radialSize, value: series[i] }); // additionaly, pass size for gradient drawing in the fillPath function var path = this.getChangedPath(prevStartAngle, prevEndAngle); var elPath = graphics.drawPath({ d: path, stroke: this.lineColorArr instanceof Array ? this.lineColorArr[i] : this.lineColorArr, strokeWidth: this.strokeWidth, fill: pathFill, fillOpacity: w.config.fill.opacity, classes: "apexcharts-pie-area apexcharts-".concat(w.config.chart.type, "-slice-").concat(i) }); elPath.attr({ index: 0, j: i }); if (w.config.chart.dropShadow.enabled) { var shadow = w.config.chart.dropShadow; filters.dropShadow(elPath, shadow, i); } this.addListeners(elPath, this.donutDataLabels); Graphics.setAttrs(elPath.node, { 'data:angle': angle, 'data:startAngle': startAngle, 'data:strokeWidth': this.strokeWidth, 'data:value': series[i] }); var labelPosition = { x: 0, y: 0 }; if (w.config.chart.type === 'pie') { labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, w.globals.radialSize / 1.25 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); } else if (w.config.chart.type === 'donut') { labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, (w.globals.radialSize + this.donutSize) / 2 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); } elPieArc.add(elPath); // Animation code starts var dur = 0; if (this.initialAnim && !w.globals.resized && !w.globals.dataChanged) { dur = (endAngle - startAngle) / this.fullAngle * w.config.chart.animations.speed; this.animDur = dur + this.animDur; this.animBeginArr.push(this.animDur); } else { this.animBeginArr.push(0); } if (this.dynamicAnim && w.globals.dataChanged) { this.animatePaths(elPath, { size: w.globals.radialSize, endAngle: endAngle, startAngle: startAngle, prevStartAngle: prevStartAngle, prevEndAngle: prevEndAngle, animateStartingPos: true, i: i, animBeginArr: this.animBeginArr, dur: w.config.chart.animations.dynamicAnimation.speed }); } else { this.animatePaths(elPath, { size: w.globals.radialSize, endAngle: endAngle, startAngle: startAngle, i: i, totalItems: sectorAngleArr.length - 1, animBeginArr: this.animBeginArr, dur: dur }); } // animation code ends if (w.config.plotOptions.pie.expandOnClick) { elPath.click(this.pieClicked.bind(this, i)); } if (w.config.dataLabels.enabled) { var xPos = labelPosition.x; var yPos = labelPosition.y; var text = 100 * (endAngle - startAngle) / 360 + '%'; if (angle !== 0 && w.config.plotOptions.pie.dataLabels.minAngleToShowLabel < sectorAngleArr[i]) { var formatter = w.config.dataLabels.formatter; if (formatter !== undefined) { text = formatter(w.globals.seriesPercent[i][0], { seriesIndex: i, w: w }); } var foreColor = w.globals.dataLabels.style.colors[i]; var elPieLabel = graphics.drawText({ x: xPos, y: yPos, text: text, textAnchor: 'middle', fontSize: w.config.dataLabels.style.fontSize, fontFamily: w.config.dataLabels.style.fontFamily, foreColor: foreColor }); if (w.config.dataLabels.dropShadow.enabled) { var textShadow = w.config.dataLabels.dropShadow; var _filters = new Filters(this.ctx); _filters.dropShadow(elPieLabel, textShadow); } elPieLabel.node.classList.add('apexcharts-pie-label'); if (w.config.chart.animations.animate && w.globals.resized === false) { elPieLabel.node.classList.add('apexcharts-pie-label-delay'); elPieLabel.node.style.animationDelay = w.config.chart.animations.speed / 940 + 's'; } this.sliceLabels.push(elPieLabel); } } // } } return g; } }, { key: "addListeners", value: function addListeners(elPath, dataLabels) { var graphics = new Graphics(this.ctx); // append filters on mouseenter and mouseleave elPath.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, elPath)); elPath.node.addEventListener('mouseenter', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); elPath.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, elPath)); elPath.node.addEventListener('mouseleave', this.revertDataLabelsInner.bind(this, elPath.node, dataLabels)); elPath.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, elPath)); elPath.node.addEventListener('mousedown', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); } // This function can be used for other circle charts too }, { key: "animatePaths", value: function animatePaths(el, opts) { var w = this.w; var me = this; var angle = opts.endAngle - opts.startAngle; var prevAngle = angle; var fromStartAngle = opts.startAngle; var toStartAngle = opts.startAngle; if (opts.prevStartAngle !== undefined && opts.prevEndAngle !== undefined) { fromStartAngle = opts.prevEndAngle; prevAngle = opts.prevEndAngle - opts.prevStartAngle; } if (opts.i === w.config.series.length - 1) { // some adjustments for the last overlapping paths if (angle + toStartAngle > this.fullAngle) { opts.endAngle = opts.endAngle - (angle + toStartAngle); } else if (angle + toStartAngle < this.fullAngle) { opts.endAngle = opts.endAngle + (this.fullAngle - (angle + toStartAngle)); } } if (angle === this.fullAngle) angle = this.fullAngle - 0.01; me.animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts); } }, { key: "animateArc", value: function animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts) { var me = this; var w = this.w; var animations = new Animations(this.ctx); var size = opts.size; var path; if (isNaN(fromStartAngle) || isNaN(prevAngle)) { fromStartAngle = toStartAngle; prevAngle = angle; opts.dur = 0; } var currAngle = angle; var startAngle = toStartAngle; var fromAngle = fromStartAngle - toStartAngle; if (w.globals.dataChanged && opts.shouldSetPrevPaths) { // to avoid flickering, set prev path first and then we will animate from there path = me.getPiePath({ me: me, startAngle: startAngle, angle: prevAngle, size: size }); el.attr({ d: path }); } if (opts.dur !== 0) { el.animate(opts.dur, w.globals.easing, opts.animBeginArr[opts.i]).afterAll(function () { if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { this.animate(300).attr({ 'stroke-width': w.config.stroke.width }); } if (opts.i === w.config.series.length - 1) { animations.animationCompleted(); } }).during(function (pos) { currAngle = fromAngle + (angle - fromAngle) * pos; if (opts.animateStartingPos) { currAngle = prevAngle + (angle - prevAngle) * pos; startAngle = fromStartAngle - prevAngle + (toStartAngle - (fromStartAngle - prevAngle)) * pos; } path = me.getPiePath({ me: me, startAngle: startAngle, angle: currAngle, size: size }); el.node.setAttribute('data:pathOrig', path); el.attr({ d: path }); }); } else { path = me.getPiePath({ me: me, startAngle: startAngle, angle: angle, size: size }); if (!opts.isTrack) { w.globals.animationEnded = true; } el.node.setAttribute('data:pathOrig', path); el.attr({ d: path }); } } }, { key: "pieClicked", value: function pieClicked(i) { var w = this.w; var me = this; var path; var size = me.w.globals.radialSize + 4; var elPath = w.globals.dom.Paper.select(".apexcharts-".concat(w.config.chart.type.toLowerCase(), "-slice-").concat(i)).members[0]; var pathFrom = elPath.attr('d'); if (elPath.attr('data:pieClicked') === 'true') { elPath.attr({ 'data:pieClicked': 'false' }); this.revertDataLabelsInner(elPath.node, this.donutDataLabels); var origPath = elPath.attr('data:pathOrig'); elPath.attr({ d: origPath }); return; } else { // reset all elems var allEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-pie-area'); Array.prototype.forEach.call(allEls, function (pieSlice) { pieSlice.setAttribute('data:pieClicked', 'false'); var origPath = pieSlice.getAttribute('data:pathOrig'); pieSlice.setAttribute('d', origPath); }); elPath.attr('data:pieClicked', 'true'); } var startAngle = parseInt(elPath.attr('data:startAngle')); var angle = parseInt(elPath.attr('data:angle')); path = me.getPiePath({ me: me, startAngle: startAngle, angle: angle, size: size }); if (angle === 360) return; elPath.plot(path).animate(1).plot(pathFrom).animate(100).plot(path); } }, { key: "getChangedPath", value: function getChangedPath(prevStartAngle, prevEndAngle) { var path = ''; if (this.dynamicAnim && this.w.globals.dataChanged) { path = this.getPiePath({ me: this, startAngle: prevStartAngle, angle: prevEndAngle - prevStartAngle, size: this.size }); } return path; } }, { key: "getPiePath", value: function getPiePath(_ref) { var me = _ref.me, startAngle = _ref.startAngle, angle = _ref.angle, size = _ref.size; var w = this.w; var path; var startDeg = startAngle; var startRadians = Math.PI * (startDeg - 90) / 180; var endDeg = angle + startAngle; if (Math.ceil(endDeg) >= 360) endDeg = 359.99; var endRadians = Math.PI * (endDeg - 90) / 180; var x1 = me.centerX + size * Math.cos(startRadians); var y1 = me.centerY + size * Math.sin(startRadians); var x2 = me.centerX + size * Math.cos(endRadians); var y2 = me.centerY + size * Math.sin(endRadians); var startInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, endDeg); var endInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, startDeg); var largeArc = angle > 180 ? 1 : 0; if (w.config.chart.type === 'donut') { path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', startInner.x, startInner.y, 'A', me.donutSize, me.donutSize, 0, largeArc, 0, endInner.x, endInner.y, 'L', x1, y1, 'z'].join(' '); } else if (w.config.chart.type === 'pie') { path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', me.centerX, me.centerY, 'L', x1, y1].join(' '); } else { path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2].join(' '); } return path; } }, { key: "renderInnerDataLabels", value: function renderInnerDataLabels(dataLabelsConfig, opts) { var w = this.w; var graphics = new Graphics(this.ctx); var g = graphics.group({ class: 'apexcharts-datalabels-group', transform: "translate(".concat(opts.translateX ? opts.translateX : 0, ", ").concat(opts.translateY ? opts.translateY : 0, ")") }); var showTotal = dataLabelsConfig.total.show; g.node.style.opacity = opts.opacity; var x = opts.centerX; var y = opts.centerY; var labelColor, valueColor; if (dataLabelsConfig.name.color === undefined) { labelColor = w.globals.colors[0]; } else { labelColor = dataLabelsConfig.name.color; } if (dataLabelsConfig.value.color === undefined) { valueColor = w.config.chart.foreColor; } else { valueColor = dataLabelsConfig.value.color; } var lbFormatter = dataLabelsConfig.value.formatter; var val = ''; var name = ''; if (showTotal) { labelColor = dataLabelsConfig.total.color; name = dataLabelsConfig.total.label; val = dataLabelsConfig.total.formatter(w); } else { if (w.globals.series.length === 1) { val = lbFormatter(w.globals.series[0], w); name = w.globals.seriesNames[0]; } } if (dataLabelsConfig.name.show) { var elLabel = graphics.drawText({ x: x, y: y + parseInt(dataLabelsConfig.name.offsetY), text: name, textAnchor: 'middle', foreColor: labelColor, fontSize: dataLabelsConfig.name.fontSize, fontFamily: dataLabelsConfig.name.fontFamily }); elLabel.node.classList.add('apexcharts-datalabel-label'); g.add(elLabel); } if (dataLabelsConfig.value.show) { var valOffset = dataLabelsConfig.name.show ? parseInt(dataLabelsConfig.value.offsetY) + 16 : dataLabelsConfig.value.offsetY; var elValue = graphics.drawText({ x: x, y: y + valOffset, text: val, textAnchor: 'middle', foreColor: valueColor, fontSize: dataLabelsConfig.value.fontSize, fontFamily: dataLabelsConfig.value.fontFamily }); elValue.node.classList.add('apexcharts-datalabel-value'); g.add(elValue); } // for a multi-series circle chart, we need to show total value instead of first series labels return g; } /** * * @param {string} name - The name of the series * @param {string} val - The value of that series * @param {object} el - Optional el (indicates which series was hovered/clicked). If this param is not present, means we need to show total */ }, { key: "printInnerLabels", value: function printInnerLabels(labelsConfig, name, val, el) { var w = this.w; var labelColor; if (el) { if (labelsConfig.name.color === undefined) { labelColor = w.globals.colors[parseInt(el.parentNode.getAttribute('rel')) - 1]; } else { labelColor = labelsConfig.name.color; } } else { if (w.globals.series.length > 1 && labelsConfig.total.show) { labelColor = labelsConfig.total.color; } } var elLabel = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-label'); var elValue = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-value'); var lbFormatter = labelsConfig.value.formatter; val = lbFormatter(val, w); // we need to show Total Val - so get the formatter of it if (!el && typeof labelsConfig.total.formatter === 'function') { val = labelsConfig.total.formatter(w); } if (elLabel !== null) { elLabel.textContent = name; } if (elValue !== null) { elValue.textContent = val; } if (elLabel !== null) { elLabel.style.fill = labelColor; } } }, { key: "printDataLabelsInner", value: function printDataLabelsInner(el, dataLabelsConfig) { var w = this.w; var val = el.getAttribute('data:value'); var name = w.globals.seriesNames[parseInt(el.parentNode.getAttribute('rel')) - 1]; if (w.globals.series.length > 1) { this.printInnerLabels(dataLabelsConfig, name, val, el); } var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); if (dataLabelsGroup !== null) { dataLabelsGroup.style.opacity = 1; } } }, { key: "revertDataLabelsInner", value: function revertDataLabelsInner(el, dataLabelsConfig, event) { var _this = this; var w = this.w; var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); if (dataLabelsConfig.total.show && w.globals.series.length > 1) { var pie = new Pie(this.ctx); pie.printInnerLabels(dataLabelsConfig, dataLabelsConfig.total.label, dataLabelsConfig.total.formatter(w)); } else { var slices = document.querySelectorAll(".apexcharts-pie-area"); var sliceOut = false; Array.prototype.forEach.call(slices, function (s) { if (s.getAttribute('data:pieClicked') === 'true') { sliceOut = true; _this.printDataLabelsInner(s, dataLabelsConfig); } }); if (!sliceOut) { if (w.globals.selectedDataPoints.length && w.globals.series.length > 1) { if (w.globals.selectedDataPoints[0].length > 0) { var index = w.globals.selectedDataPoints[0]; var _el = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(w.config.chart.type.toLowerCase(), "-slice-").concat(index)); this.printDataLabelsInner(_el, dataLabelsConfig); } else if (dataLabelsGroup && w.globals.selectedDataPoints.length && w.globals.selectedDataPoints[0].length === 0) { dataLabelsGroup.style.opacity = 0; } } else { if (dataLabelsGroup && w.globals.series.length > 1) { dataLabelsGroup.style.opacity = 0; } } } } } }]); return Pie; }(); /** * ApexCharts Radar Class for Spider/Radar Charts. * @module Radar **/ var Radar = /*#__PURE__*/ function () { function Radar(ctx) { _classCallCheck(this, Radar); this.ctx = ctx; this.w = ctx.w; this.chartType = this.w.config.chart.type; this.initialAnim = this.w.config.chart.animations.enabled; this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; this.animDur = 0; var w = this.w; this.graphics = new Graphics(this.ctx); this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; this.maxValue = this.w.globals.maxY; this.polygons = w.config.plotOptions.radar.polygons; this.maxLabelWidth = 20; var longestLabel = w.globals.labels.slice().sort(function (a, b) { return b.length - a.length; })[0]; var labelWidth = this.graphics.getTextRects(longestLabel, w.config.dataLabels.style.fontSize); this.size = this.defaultSize / 2.1 - w.config.stroke.width - w.config.chart.dropShadow.blur - labelWidth.width / 1.75; if (w.config.plotOptions.radar.size !== undefined) { this.size = w.config.plotOptions.radar.size; } this.dataRadiusOfPercent = []; this.dataRadius = []; this.angleArr = []; this.yaxisLabelsTextsPos = []; } _createClass(Radar, [{ key: "draw", value: function draw(series) { var _this = this; var w = this.w; var fill = new Fill(this.ctx); var allSeries = []; if (series.length) { this.dataPointsLen = series[w.globals.maxValsInArrayIndex].length; } this.disAngle = Math.PI * 2 / this.dataPointsLen; var halfW = w.globals.gridWidth / 2; var halfH = w.globals.gridHeight / 2; var translateX = halfW; var translateY = halfH; var ret = this.graphics.group({ class: 'apexcharts-radar-series', 'data:innerTranslateX': translateX, 'data:innerTranslateY': translateY - 25, transform: "translate(".concat(translateX || 0, ", ").concat(translateY || 0, ")") }); var dataPointsPos = []; var elPointsMain = null; this.yaxisLabels = this.graphics.group({ class: 'apexcharts-yaxis' }); series.forEach(function (s, i) { // el to which series will be drawn var elSeries = _this.graphics.group().attr({ class: "apexcharts-series", seriesName: Utils.escapeString(w.globals.seriesNames[i]), rel: i + 1, 'data:realIndex': i }); _this.dataRadiusOfPercent[i] = []; _this.dataRadius[i] = []; _this.angleArr[i] = []; s.forEach(function (dv, j) { _this.dataRadiusOfPercent[i][j] = dv / _this.maxValue; _this.dataRadius[i][j] = _this.dataRadiusOfPercent[i][j] * _this.size; _this.angleArr[i][j] = j * _this.disAngle; }); dataPointsPos = _this.getDataPointsPos(_this.dataRadius[i], _this.angleArr[i]); var paths = _this.createPaths(dataPointsPos, { x: 0, y: 0 }); // points elPointsMain = _this.graphics.group({ class: 'apexcharts-series-markers-wrap hidden' }); w.globals.delayedElements.push({ el: elPointsMain.node, index: i }); var defaultRenderedPathOptions = { i: i, realIndex: i, animationDelay: i, initialSpeed: w.config.chart.animations.speed, dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, className: "apexcharts-radar", shouldClipToGrid: false, bindEventsOnPaths: false, stroke: w.globals.stroke.colors[i], strokeLineCap: w.config.stroke.lineCap }; var pathFrom = null; if (w.globals.previousPaths.length > 0) { pathFrom = _this.getPathFrom(i); } for (var p = 0; p < paths.linePathsTo.length; p++) { var renderedLinePath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { pathFrom: pathFrom === null ? paths.linePathsFrom[p] : pathFrom, pathTo: paths.linePathsTo[p], strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width, fill: 'none', drawShadow: false })); elSeries.add(renderedLinePath); var pathFill = fill.fillPath({ seriesNumber: i }); var renderedAreaPath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { pathFrom: pathFrom === null ? paths.areaPathsFrom[p] : pathFrom, pathTo: paths.areaPathsTo[p], strokeWidth: 0, fill: pathFill, drawShadow: false })); if (w.config.chart.dropShadow.enabled) { var filters = new Filters(_this.ctx); var shadow = w.config.chart.dropShadow; filters.dropShadow(renderedAreaPath, Object.assign({}, shadow, { noUserSpaceOnUse: true }), i); } elSeries.add(renderedAreaPath); } s.forEach(function (sj, j) { var markers = new Markers(_this.ctx); var opts = markers.getMarkerConfig('apexcharts-marker', i, j); var point = _this.graphics.drawMarker(dataPointsPos[j].x, dataPointsPos[j].y, opts); point.attr('rel', j); point.attr('j', j); point.attr('index', i); point.node.setAttribute('default-marker-size', opts.pSize); var elPointsWrap = _this.graphics.group({ class: 'apexcharts-series-markers' }); if (elPointsWrap) { elPointsWrap.add(point); } elPointsMain.add(elPointsWrap); elSeries.add(elPointsMain); }); allSeries.push(elSeries); }); this.drawPolygons({ parent: ret }); if (w.config.dataLabels.enabled) { var dataLabels = this.drawLabels(); ret.add(dataLabels); } ret.add(this.yaxisLabels); allSeries.forEach(function (elS) { ret.add(elS); }); return ret; } }, { key: "drawPolygons", value: function drawPolygons(opts) { var _this2 = this; var w = this.w; var parent = opts.parent; var yaxisTexts = w.globals.yAxisScale[0].result.reverse(); var layers = yaxisTexts.length; var radiusSizes = []; var layerDis = this.size / (layers - 1); for (var i = 0; i < layers; i++) { radiusSizes[i] = layerDis * i; } radiusSizes.reverse(); var polygonStrings = []; var lines = []; radiusSizes.forEach(function (radiusSize, r) { var polygon = _this2.getPolygonPos(radiusSize); var string = ''; polygon.forEach(function (p, i) { if (r === 0) { var line = _this2.graphics.drawLine(p.x, p.y, 0, 0, Array.isArray(_this2.polygons.connectorColors) ? _this2.polygons.connectorColors[i] : _this2.polygons.connectorColors); lines.push(line); } if (i === 0) { _this2.yaxisLabelsTextsPos.push({ x: p.x, y: p.y }); } string += p.x + ',' + p.y + ' '; }); polygonStrings.push(string); }); polygonStrings.forEach(function (p, i) { var strokeColors = _this2.polygons.strokeColors; var polygon = _this2.graphics.drawPolygon(p, Array.isArray(strokeColors) ? strokeColors[i] : strokeColors, w.globals.radarPolygons.fill.colors[i]); parent.add(polygon); }); lines.forEach(function (l) { parent.add(l); }); if (w.config.yaxis[0].show) { this.yaxisLabelsTextsPos.forEach(function (p, i) { var yText = _this2.drawYAxisText(p.x, p.y, i, yaxisTexts[i]); _this2.yaxisLabels.add(yText); }); } } }, { key: "drawYAxisText", value: function drawYAxisText(x, y, i, text) { var w = this.w; var yaxisConfig = w.config.yaxis[0]; var formatter = w.globals.yLabelFormatters[0]; var yaxisLabel = this.graphics.drawText({ x: x + yaxisConfig.labels.offsetX, y: y + yaxisConfig.labels.offsetY, text: formatter(text, i), textAnchor: 'middle', fontSize: yaxisConfig.labels.style.fontSize, fontFamily: yaxisConfig.labels.style.fontFamily, foreColor: yaxisConfig.labels.style.color }); return yaxisLabel; } }, { key: "drawLabels", value: function drawLabels() { var _this3 = this; var w = this.w; var limit = 10; var textAnchor = 'middle'; var dataLabelsConfig = w.config.dataLabels; var elDataLabelsWrap = this.graphics.group({ class: 'apexcharts-datalabels' }); var polygonPos = this.getPolygonPos(this.size); var currPosX = 0; var currPosY = 0; w.globals.labels.forEach(function (label, i) { var formatter = dataLabelsConfig.formatter; var dataLabels = new DataLabels(_this3.ctx); if (polygonPos[i]) { currPosX = polygonPos[i].x; currPosY = polygonPos[i].y; if (Math.abs(polygonPos[i].x) >= limit) { if (polygonPos[i].x > 0) { textAnchor = 'start'; currPosX += 10; } else if (polygonPos[i].x < 0) { textAnchor = 'end'; currPosX -= 10; } } else { textAnchor = 'middle'; } if (Math.abs(polygonPos[i].y) >= _this3.size - limit) { if (polygonPos[i].y < 0) { currPosY -= 10; } else if (polygonPos[i].y > 0) { currPosY += 10; } } var text = formatter(label, { seriesIndex: -1, dataPointIndex: i, w: w }); dataLabels.plotDataLabelsText({ x: currPosX, y: currPosY, text: text, textAnchor: textAnchor, i: i, j: i, parent: elDataLabelsWrap, dataLabelsConfig: dataLabelsConfig, offsetCorrection: false }); } }); return elDataLabelsWrap; } }, { key: "createPaths", value: function createPaths(pos, origin) { var _this4 = this; var linePathsTo = []; var linePathsFrom = []; var areaPathsTo = []; var areaPathsFrom = []; if (pos.length) { linePathsFrom = [this.graphics.move(origin.x, origin.y)]; areaPathsFrom = [this.graphics.move(origin.x, origin.y)]; var linePathTo = this.graphics.move(pos[0].x, pos[0].y); var areaPathTo = this.graphics.move(pos[0].x, pos[0].y); pos.forEach(function (p, i) { linePathTo += _this4.graphics.line(p.x, p.y); areaPathTo += _this4.graphics.line(p.x, p.y); if (i === pos.length - 1) { linePathTo += 'Z'; areaPathTo += 'Z'; } }); linePathsTo.push(linePathTo); areaPathsTo.push(areaPathTo); } return { linePathsFrom: linePathsFrom, linePathsTo: linePathsTo, areaPathsFrom: areaPathsFrom, areaPathsTo: areaPathsTo }; } }, { key: "getPathFrom", value: function getPathFrom(realIndex) { var w = this.w; var pathFrom = null; for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { var gpp = w.globals.previousPaths[pp]; if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { if (typeof w.globals.previousPaths[pp].paths[0] !== 'undefined') { pathFrom = w.globals.previousPaths[pp].paths[0].d; } } } return pathFrom; } }, { key: "getDataPointsPos", value: function getDataPointsPos(dataRadiusArr, angleArr) { var dataPointsLen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dataPointsLen; dataRadiusArr = dataRadiusArr || []; angleArr = angleArr || []; var dataPointsPosArray = []; for (var j = 0; j < dataPointsLen; j++) { var curPointPos = {}; curPointPos.x = dataRadiusArr[j] * Math.sin(angleArr[j]); curPointPos.y = -dataRadiusArr[j] * Math.cos(angleArr[j]); dataPointsPosArray.push(curPointPos); } return dataPointsPosArray; } }, { key: "getPolygonPos", value: function getPolygonPos(size) { var dotsArray = []; var angle = Math.PI * 2 / this.dataPointsLen; for (var i = 0; i < this.dataPointsLen; i++) { var curPos = {}; curPos.x = size * Math.sin(i * angle); curPos.y = -size * Math.cos(i * angle); dotsArray.push(curPos); } return dotsArray; } }]); return Radar; }(); /** * ApexCharts Radial Class for drawing Circle / Semi Circle Charts. * @module Radial **/ var Radial = /*#__PURE__*/ function (_Pie) { _inherits(Radial, _Pie); function Radial(ctx) { var _this; _classCallCheck(this, Radial); _this = _possibleConstructorReturn(this, _getPrototypeOf(Radial).call(this, ctx)); _this.ctx = ctx; _this.w = ctx.w; _this.animBeginArr = [0]; _this.animDur = 0; var w = _this.w; _this.startAngle = w.config.plotOptions.radialBar.startAngle; _this.endAngle = w.config.plotOptions.radialBar.endAngle; _this.trackStartAngle = w.config.plotOptions.radialBar.track.startAngle; _this.trackEndAngle = w.config.plotOptions.radialBar.track.endAngle; _this.radialDataLabels = w.config.plotOptions.radialBar.dataLabels; if (!_this.trackStartAngle) _this.trackStartAngle = _this.startAngle; if (!_this.trackEndAngle) _this.trackEndAngle = _this.endAngle; if (_this.endAngle === 360) _this.endAngle = 359.99; _this.fullAngle = 360 - w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle; _this.margin = parseInt(w.config.plotOptions.radialBar.track.margin); return _this; } _createClass(Radial, [{ key: "draw", value: function draw(series) { var w = this.w; var graphics = new Graphics(this.ctx); var ret = graphics.group({ class: 'apexcharts-radialbar' }); if (w.globals.noData) return ret; var elSeries = graphics.group(); var centerY = this.defaultSize / 2; var centerX = w.globals.gridWidth / 2; var size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; if (w.config.plotOptions.radialBar.size !== undefined) { size = w.config.plotOptions.radialBar.size; } var colorArr = w.globals.fill.colors; if (w.config.plotOptions.radialBar.track.show) { var elTracks = this.drawTracks({ size: size, centerX: centerX, centerY: centerY, colorArr: colorArr, series: series }); elSeries.add(elTracks); } var elG = this.drawArcs({ size: size, centerX: centerX, centerY: centerY, colorArr: colorArr, series: series }); var totalAngle = 360; if (w.config.plotOptions.radialBar.startAngle < 0) { totalAngle = Math.abs(w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle); } w.globals.radialSize = size - size / (360 / (360 - totalAngle)); elSeries.add(elG.g); if (w.config.plotOptions.radialBar.hollow.position === 'front') { elG.g.add(elG.elHollow); if (elG.dataLabels) { elG.g.add(elG.dataLabels); } } ret.add(elSeries); return ret; } }, { key: "drawTracks", value: function drawTracks(opts) { var w = this.w; var graphics = new Graphics(this.ctx); var g = graphics.group({ class: 'apexcharts-tracks' }); var filters = new Filters(this.ctx); var fill = new Fill(this.ctx); var strokeWidth = this.getStrokeWidth(opts); opts.size = opts.size - strokeWidth / 2; for (var i = 0; i < opts.series.length; i++) { var elRadialBarTrack = graphics.group({ class: 'apexcharts-radialbar-track apexcharts-track' }); g.add(elRadialBarTrack); elRadialBarTrack.attr({ rel: i + 1 }); opts.size = opts.size - strokeWidth - this.margin; var trackConfig = w.config.plotOptions.radialBar.track; var pathFill = fill.fillPath({ seriesNumber: 0, size: opts.size, fillColors: Array.isArray(trackConfig.background) ? trackConfig.background[i] : trackConfig.background, solid: true }); var startAngle = this.trackStartAngle; var endAngle = this.trackEndAngle; if (Math.abs(endAngle) + Math.abs(startAngle) >= 360) endAngle = 360 - Math.abs(this.startAngle) - 0.1; var elPath = graphics.drawPath({ d: '', stroke: pathFill, strokeWidth: strokeWidth * parseInt(trackConfig.strokeWidth) / 100, fill: 'none', strokeOpacity: trackConfig.opacity, classes: 'apexcharts-radialbar-area' }); if (trackConfig.dropShadow.enabled) { var shadow = trackConfig.dropShadow; filters.dropShadow(elPath, shadow); } elRadialBarTrack.add(elPath); elPath.attr('id', 'apexcharts-radialbarTrack-' + i); this.animatePaths(elPath, { centerX: opts.centerX, centerY: opts.centerY, endAngle: endAngle, startAngle: startAngle, size: opts.size, i: i, totalItems: 2, animBeginArr: 0, dur: 0, isTrack: true, easing: w.globals.easing }); } return g; } }, { key: "drawArcs", value: function drawArcs(opts) { var w = this.w; // size, donutSize, centerX, centerY, colorArr, lineColorArr, sectorAngleArr, series var graphics = new Graphics(this.ctx); var fill = new Fill(this.ctx); var filters = new Filters(this.ctx); var g = graphics.group(); var strokeWidth = this.getStrokeWidth(opts); opts.size = opts.size - strokeWidth / 2; var hollowFillID = w.config.plotOptions.radialBar.hollow.background; var hollowSize = opts.size - strokeWidth * opts.series.length - this.margin * opts.series.length - strokeWidth * parseInt(w.config.plotOptions.radialBar.track.strokeWidth) / 100 / 2; var hollowRadius = hollowSize - w.config.plotOptions.radialBar.hollow.margin; if (w.config.plotOptions.radialBar.hollow.image !== undefined) { hollowFillID = this.drawHollowImage(opts, g, hollowSize, hollowFillID); } var elHollow = this.drawHollow({ size: hollowRadius, centerX: opts.centerX, centerY: opts.centerY, fill: hollowFillID }); if (w.config.plotOptions.radialBar.hollow.dropShadow.enabled) { var shadow = w.config.plotOptions.radialBar.hollow.dropShadow; filters.dropShadow(elHollow, shadow); } var shown = 1; if (!this.radialDataLabels.total.show && w.globals.series.length > 1) { shown = 0; } var dataLabels = null; if (this.radialDataLabels.show) { dataLabels = this.renderInnerDataLabels(this.radialDataLabels, { hollowSize: hollowSize, centerX: opts.centerX, centerY: opts.centerY, opacity: shown }); } if (w.config.plotOptions.radialBar.hollow.position === 'back') { g.add(elHollow); if (dataLabels) { g.add(dataLabels); } } var reverseLoop = false; if (w.config.plotOptions.radialBar.inverseOrder) { reverseLoop = true; } for (var i = reverseLoop ? opts.series.length - 1 : 0; reverseLoop ? i >= 0 : i < opts.series.length; reverseLoop ? i-- : i++) { var elRadialBarArc = graphics.group({ class: "apexcharts-series apexcharts-radial-series", seriesName: Utils.escapeString(w.globals.seriesNames[i]) }); g.add(elRadialBarArc); elRadialBarArc.attr({ rel: i + 1, 'data:realIndex': i }); this.ctx.series.addCollapsedClassToSeries(elRadialBarArc, i); opts.size = opts.size - strokeWidth - this.margin; var pathFill = fill.fillPath({ seriesNumber: i, size: opts.size, value: opts.series[i] }); var startAngle = this.startAngle; var prevStartAngle = void 0; var totalAngle = Math.abs(w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle); // if data exceeds 100, make it 100 var dataValue = Utils.negToZero(opts.series[i] > 100 ? 100 : opts.series[i]) / 100; var endAngle = Math.round(totalAngle * dataValue) + this.startAngle; var prevEndAngle = void 0; if (w.globals.dataChanged) { prevStartAngle = this.startAngle; prevEndAngle = Math.round(totalAngle * Utils.negToZero(w.globals.previousPaths[i]) / 100) + prevStartAngle; } var currFullAngle = Math.abs(endAngle) + Math.abs(startAngle); if (currFullAngle >= 360) { endAngle = endAngle - 0.01; } var prevFullAngle = Math.abs(prevEndAngle) + Math.abs(prevStartAngle); if (prevFullAngle >= 360) { prevEndAngle = prevEndAngle - 0.01; } var angle = endAngle - startAngle; var dashArray = Array.isArray(w.config.stroke.dashArray) ? w.config.stroke.dashArray[i] : w.config.stroke.dashArray; var elPath = graphics.drawPath({ d: '', stroke: pathFill, strokeWidth: strokeWidth, fill: 'none', fillOpacity: w.config.fill.opacity, classes: 'apexcharts-radialbar-area apexcharts-radialbar-slice-' + i, strokeDashArray: dashArray }); Graphics.setAttrs(elPath.node, { 'data:angle': angle, 'data:value': opts.series[i] }); if (w.config.chart.dropShadow.enabled) { var _shadow = w.config.chart.dropShadow; filters.dropShadow(elPath, _shadow, i); } this.addListeners(elPath, this.radialDataLabels); elRadialBarArc.add(elPath); elPath.attr({ index: 0, j: i }); var dur = 0; if (this.initialAnim && !w.globals.resized && !w.globals.dataChanged) { dur = (endAngle - startAngle) / 360 * w.config.chart.animations.speed; this.animDur = dur / (opts.series.length * 1.2) + this.animDur; this.animBeginArr.push(this.animDur); } if (w.globals.dataChanged) { dur = (endAngle - startAngle) / 360 * w.config.chart.animations.dynamicAnimation.speed; this.animDur = dur / (opts.series.length * 1.2) + this.animDur; this.animBeginArr.push(this.animDur); } this.animatePaths(elPath, { centerX: opts.centerX, centerY: opts.centerY, endAngle: endAngle, startAngle: startAngle, prevEndAngle: prevEndAngle, prevStartAngle: prevStartAngle, size: opts.size, i: i, totalItems: 2, animBeginArr: this.animBeginArr, dur: dur, shouldSetPrevPaths: true, easing: w.globals.easing }); } return { g: g, elHollow: elHollow, dataLabels: dataLabels }; } }, { key: "drawHollow", value: function drawHollow(opts) { var graphics = new Graphics(this.ctx); var circle = graphics.drawCircle(opts.size * 2); circle.attr({ class: 'apexcharts-radialbar-hollow', cx: opts.centerX, cy: opts.centerY, r: opts.size, fill: opts.fill }); return circle; } }, { key: "drawHollowImage", value: function drawHollowImage(opts, g, hollowSize, hollowFillID) { var w = this.w; var fill = new Fill(this.ctx); var randID = (Math.random() + 1).toString(36).substring(4); var hollowFillImg = w.config.plotOptions.radialBar.hollow.image; if (w.config.plotOptions.radialBar.hollow.imageClipped) { fill.clippedImgArea({ width: hollowSize, height: hollowSize, image: hollowFillImg, patternID: "pattern".concat(w.globals.cuid).concat(randID) }); hollowFillID = "url(#pattern".concat(w.globals.cuid).concat(randID, ")"); } else { var imgWidth = w.config.plotOptions.radialBar.hollow.imageWidth; var imgHeight = w.config.plotOptions.radialBar.hollow.imageHeight; if (imgWidth === undefined && imgHeight === undefined) { var image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { this.move(opts.centerX - loader.width / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - loader.height / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); }); g.add(image); } else { var _image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { this.move(opts.centerX - imgWidth / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - imgHeight / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); this.size(imgWidth, imgHeight); }); g.add(_image); } } return hollowFillID; } }, { key: "getStrokeWidth", value: function getStrokeWidth(opts) { var w = this.w; return opts.size * (100 - parseInt(w.config.plotOptions.radialBar.hollow.size)) / 100 / (opts.series.length + 1) - this.margin; } }]); return Radial; }(Pie); /** * ApexCharts RangeBar Class responsible for drawing Range/Timeline Bars. * * @module RangeBar **/ var RangeBar = /*#__PURE__*/ function (_Bar) { _inherits(RangeBar, _Bar); function RangeBar() { _classCallCheck(this, RangeBar); return _possibleConstructorReturn(this, _getPrototypeOf(RangeBar).apply(this, arguments)); } _createClass(RangeBar, [{ key: "draw", value: function draw(series, seriesIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var fill = new Fill(this.ctx); this.rangeBarOptions = this.w.config.plotOptions.rangeBar; this.series = series; this.seriesRangeStart = w.globals.seriesRangeStart; this.seriesRangeEnd = w.globals.seriesRangeEnd; this.initVariables(series); var ret = graphics.group({ class: 'apexcharts-rangebar-series apexcharts-plot-series' }); for (var i = 0, bc = 0; i < series.length; i++, bc++) { var pathTo = void 0, pathFrom = void 0; var x = void 0, y = void 0, xDivision = void 0, // xDivision is the GRIDWIDTH divided by number of datapoints (columns) yDivision = void 0, // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) zeroH = void 0, // zeroH is the baseline where 0 meets y axis zeroW = void 0; // zeroW is the baseline where 0 meets x axis var yArrj = []; // hold y values of current iterating series var xArrj = []; // hold x values of current iterating series var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn var elSeries = graphics.group({ class: "apexcharts-series", seriesName: Utils.escapeString(w.globals.seriesNames[realIndex]), rel: i + 1, 'data:realIndex': realIndex }); if (series[i].length > 0) { this.visibleI = this.visibleI + 1; } var strokeWidth = 0; var barHeight = 0; var barWidth = 0; if (this.yRatio.length > 1) { this.yaxisIndex = realIndex; } var initPositions = this.initialPositions(); y = initPositions.y; yDivision = initPositions.yDivision; barHeight = initPositions.barHeight; zeroW = initPositions.zeroW; x = initPositions.x; barWidth = initPositions.barWidth; xDivision = initPositions.xDivision; zeroH = initPositions.zeroH; xArrj.push(x + barWidth / 2); // eldatalabels var elDataLabelsWrap = graphics.group({ class: 'apexcharts-datalabels' }); for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { this.isNullValue = true; } else { this.isNullValue = false; } if (w.config.stroke.show) { if (this.isNullValue) { strokeWidth = 0; } else { strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; } } var paths = null; if (this.isHorizontal) { paths = this.drawRangeBarPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, barHeight: barHeight, strokeWidth: strokeWidth, pathTo: pathTo, pathFrom: pathFrom, zeroW: zeroW, x: x, y: y, yDivision: yDivision, elSeries: elSeries }); barWidth = paths.barWidth; } else { paths = this.drawRangeColumnPaths({ indexes: { i: i, j: j, realIndex: realIndex, bc: bc }, x: x, y: y, xDivision: xDivision, pathTo: pathTo, pathFrom: pathFrom, barWidth: barWidth, zeroH: zeroH, strokeWidth: strokeWidth, elSeries: elSeries }); barHeight = paths.barHeight; } pathTo = paths.pathTo; pathFrom = paths.pathFrom; y = paths.y; x = paths.x; // push current X if (j > 0) { xArrj.push(x + barWidth / 2); } yArrj.push(y); var pathFill = fill.fillPath({ seriesNumber: realIndex }); var lineFill = w.globals.stroke.colors[realIndex]; elSeries = this.renderSeries({ realIndex: realIndex, pathFill: pathFill, lineFill: lineFill, j: j, i: i, pathFrom: pathFrom, pathTo: pathTo, strokeWidth: strokeWidth, elSeries: elSeries, x: x, y: y, series: series, barHeight: barHeight, barWidth: barWidth, elDataLabelsWrap: elDataLabelsWrap, visibleSeries: this.visibleI, type: 'rangebar' }); } // push all x val arrays into main xArr w.globals.seriesXvalues[realIndex] = xArrj; w.globals.seriesYvalues[realIndex] = yArrj; ret.add(elSeries); } return ret; } }, { key: "drawRangeColumnPaths", value: function drawRangeColumnPaths(_ref) { var indexes = _ref.indexes, x = _ref.x, y = _ref.y, strokeWidth = _ref.strokeWidth, xDivision = _ref.xDivision, pathTo = _ref.pathTo, pathFrom = _ref.pathFrom, barWidth = _ref.barWidth, zeroH = _ref.zeroH; var w = this.w; var graphics = new Graphics(this.ctx); var i = indexes.i; var j = indexes.j; var yRatio = this.yRatio[this.yaxisIndex]; var realIndex = indexes.realIndex; var range = this.getRangeValue(realIndex, j); var y1 = Math.min(range.start, range.end); var y2 = Math.max(range.start, range.end); if (w.globals.isXNumeric) { x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; } var barXPosition = x + barWidth * this.visibleI; if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { y1 = zeroH; } else { y1 = zeroH - y1 / yRatio; y2 = zeroH - y2 / yRatio; } var barHeight = Math.abs(y2 - y1); pathTo = graphics.move(barXPosition, zeroH); pathFrom = graphics.move(barXPosition, y1); if (w.globals.previousPaths.length > 0) { pathFrom = this.getPathFrom(realIndex, j, true); } pathTo = graphics.move(barXPosition, y2) + graphics.line(barXPosition + barWidth, y2) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition, y1) + graphics.line(barXPosition, y2 - strokeWidth / 2); pathFrom = pathFrom + graphics.move(barXPosition, y1) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition, y1); if (!w.globals.isXNumeric) { x = x + xDivision; } return { pathTo: pathTo, pathFrom: pathFrom, barHeight: barHeight, x: x, y: y2, barXPosition: barXPosition }; } }, { key: "drawRangeBarPaths", value: function drawRangeBarPaths(_ref2) { var indexes = _ref2.indexes, x = _ref2.x, y = _ref2.y, yDivision = _ref2.yDivision, pathTo = _ref2.pathTo, pathFrom = _ref2.pathFrom, barHeight = _ref2.barHeight, zeroW = _ref2.zeroW; var w = this.w; var graphics = new Graphics(this.ctx); var i = indexes.i; var j = indexes.j; var realIndex = indexes.realIndex; var x1 = zeroW; var x2 = zeroW; if (w.globals.isXNumeric) { y = (w.globals.seriesX[i][j] - w.globals.minX) / this.invertedXRatio - barHeight; } var barYPosition = y + barHeight * this.visibleI; if (typeof this.series[i][j] !== 'undefined' && this.series[i][j] !== null) { x1 = zeroW + this.seriesRangeStart[i][j] / this.invertedYRatio; x2 = zeroW + this.seriesRangeEnd[i][j] / this.invertedYRatio; } pathTo = graphics.move(zeroW, barYPosition); pathFrom = graphics.move(zeroW, barYPosition); if (w.globals.previousPaths.length > 0) { pathFrom = this.getPathFrom(realIndex, j); } var barWidth = Math.abs(x2 - x1); pathTo = graphics.move(x1, barYPosition) + graphics.line(x2, barYPosition) + graphics.line(x2, barYPosition + barHeight) + graphics.line(x1, barYPosition + barHeight) + graphics.line(x1, barYPosition); pathFrom = pathFrom + graphics.line(x1, barYPosition) + graphics.line(x1, barYPosition + barHeight) + graphics.line(x1, barYPosition + barHeight) + graphics.line(x1, barYPosition); if (!w.globals.isXNumeric) { y = y + yDivision; } return { pathTo: pathTo, pathFrom: pathFrom, barWidth: barWidth, x: x2, y: y, barYPosition: barYPosition }; } }, { key: "getRangeValue", value: function getRangeValue(i, j) { var w = this.w; return { start: w.globals.seriesRangeStart[i][j], end: w.globals.seriesRangeEnd[i][j] }; } }]); return RangeBar; }(Bar); /** * ApexCharts Formatter Class for setting value formatters for axes as well as tooltips. * * @module Formatters **/ var Formatters = /*#__PURE__*/ function () { function Formatters(ctx) { _classCallCheck(this, Formatters); this.ctx = ctx; this.w = ctx.w; this.tooltipKeyFormat = 'dd MMM'; } _createClass(Formatters, [{ key: "xLabelFormat", value: function xLabelFormat(fn, val, timestamp) { var w = this.w; if (w.config.xaxis.type === 'datetime') { if (w.config.xaxis.labels.formatter === undefined) { // if user has not specified a custom formatter, use the default tooltip.x.format if (w.config.tooltip.x.formatter === undefined) { var datetimeObj = new DateTime(this.ctx); return datetimeObj.formatDate(new Date(val), w.config.tooltip.x.format, true, true); } } } return fn(val, timestamp); } }, { key: "setLabelFormatters", value: function setLabelFormatters() { var w = this.w; w.globals.xLabelFormatter = function (val) { return val; }; w.globals.xaxisTooltipFormatter = function (val) { return val; }; w.globals.ttKeyFormatter = function (val) { return val; }; w.globals.ttZFormatter = function (val) { return val; }; w.globals.legendFormatter = function (val) { return val; }; // formatter function will always overwrite format property if (w.config.xaxis.labels.formatter !== undefined) { w.globals.xLabelFormatter = w.config.xaxis.labels.formatter; } else { w.globals.xLabelFormatter = function (val) { if (Utils.isNumber(val)) { // numeric xaxis may have smaller range, so defaulting to 1 decimal if (w.config.xaxis.type === 'numeric' && w.globals.dataPoints < 50) { return val.toFixed(1); } if (w.globals.isBarHorizontal) { var range = w.globals.maxY - w.globals.minYArr; if (range < 4) { return val.toFixed(1); } } return val.toFixed(0); } return val; }; } if (typeof w.config.tooltip.x.formatter === 'function') { w.globals.ttKeyFormatter = w.config.tooltip.x.formatter; } else { w.globals.ttKeyFormatter = w.globals.xLabelFormatter; } if (typeof w.config.xaxis.tooltip.formatter === 'function') { w.globals.xaxisTooltipFormatter = w.config.xaxis.tooltip.formatter; } if (Array.isArray(w.config.tooltip.y)) { w.globals.ttVal = w.config.tooltip.y; } else { if (w.config.tooltip.y.formatter !== undefined) { w.globals.ttVal = w.config.tooltip.y; } } if (w.config.tooltip.z.formatter !== undefined) { w.globals.ttZFormatter = w.config.tooltip.z.formatter; } // legend formatter - if user wants to append any global values of series to legend text if (w.config.legend.formatter !== undefined) { w.globals.legendFormatter = w.config.legend.formatter; } // formatter function will always overwrite format property w.config.yaxis.forEach(function (yaxe, i) { if (yaxe.labels.formatter !== undefined) { w.globals.yLabelFormatters[i] = yaxe.labels.formatter; } else { w.globals.yLabelFormatters[i] = function (val) { if (!w.globals.xyCharts) return val; if (Utils.isNumber(val)) { if (w.globals.yValueDecimal !== 0) { return val.toFixed(yaxe.decimalsInFloat !== undefined ? yaxe.decimalsInFloat : w.globals.yValueDecimal); } else if (w.globals.maxYArr[i] - w.globals.minYArr[i] < 10) { return val.toFixed(1); } else { return val.toFixed(0); } } return val; }; } }); return w.globals; } }, { key: "heatmapLabelFormatters", value: function heatmapLabelFormatters() { var w = this.w; if (w.config.chart.type === 'heatmap') { w.globals.yAxisScale[0].result = w.globals.seriesNames.slice(); // get the longest string from the labels array and also apply label formatter to it var longest = w.globals.seriesNames.reduce(function (a, b) { return a.length > b.length ? a : b; }, 0); w.globals.yAxisScale[0].niceMax = longest; w.globals.yAxisScale[0].niceMin = longest; } } }]); return Formatters; }(); var AxesUtils = /*#__PURE__*/ function () { function AxesUtils(ctx) { _classCallCheck(this, AxesUtils); this.ctx = ctx; this.w = ctx.w; } // Based on the formatter function, get the label text and position _createClass(AxesUtils, [{ key: "getLabel", value: function getLabel(labels, timelineLabels, x, i) { var drawnLabels = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; var w = this.w; var rawLabel = typeof labels[i] === 'undefined' ? '' : labels[i]; var label; var xlbFormatter = w.globals.xLabelFormatter; var customFormatter = w.config.xaxis.labels.formatter; var isBold = false; var xFormat = new Formatters(this.ctx); var timestamp = rawLabel; label = xFormat.xLabelFormat(xlbFormatter, rawLabel, timestamp); if (customFormatter !== undefined) { label = customFormatter(rawLabel, labels[i], i); } var determineHighestUnit = function determineHighestUnit(unit) { var highestUnit = null; timelineLabels.forEach(function (t) { if (t.unit === 'month') { highestUnit = 'year'; } else if (t.unit === 'day') { highestUnit = 'month'; } else if (t.unit === 'hour') { highestUnit = 'day'; } else if (t.unit === 'minute') { highestUnit = 'hour'; } }); return highestUnit === unit; }; if (timelineLabels.length > 0) { isBold = determineHighestUnit(timelineLabels[i].unit); x = timelineLabels[i].position; label = timelineLabels[i].value; } else { if (w.config.xaxis.type === 'datetime' && customFormatter === undefined) { label = ''; } } if (typeof label === 'undefined') label = ''; label = label.toString(); if (label.indexOf('NaN') === 0 || label.toLowerCase().indexOf('invalid') === 0 || label.toLowerCase().indexOf('infinity') >= 0 || drawnLabels.indexOf(label) >= 0 && !w.config.xaxis.labels.showDuplicates) { label = ''; } return { x: x, text: label, isBold: isBold }; } }, { key: "drawYAxisTicks", value: function drawYAxisTicks(x, tickAmount, axisBorder, axisTicks, realIndex, labelsDivider, elYaxis) { var w = this.w; var graphics = new Graphics(this.ctx); // initial label position = 0; var t = w.globals.translateY; if (axisTicks.show) { if (w.config.yaxis[realIndex].opposite === true) x = x + axisTicks.width; for (var i = tickAmount; i >= 0; i--) { var tY = t + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY - 1; if (w.globals.isBarHorizontal) { tY = labelsDivider * i; } var elTick = graphics.drawLine(x + axisBorder.offsetX - axisTicks.width + axisTicks.offsetX, tY + axisTicks.offsetY, x + axisBorder.offsetX + axisTicks.offsetX, tY + axisTicks.offsetY, axisBorder.color); elYaxis.add(elTick); t = t + labelsDivider; } } } }]); return AxesUtils; }(); /** * ApexCharts YAxis Class for drawing Y-Axis. * * @module YAxis **/ var YAxis = /*#__PURE__*/ function () { function YAxis(ctx) { _classCallCheck(this, YAxis); this.ctx = ctx; this.w = ctx.w; var w = this.w; this.xaxisFontSize = w.config.xaxis.labels.style.fontSize; this.axisFontFamily = w.config.xaxis.labels.style.fontFamily; this.xaxisForeColors = w.config.xaxis.labels.style.colors; this.xAxisoffX = 0; if (w.config.xaxis.position === 'bottom') { this.xAxisoffX = w.globals.gridHeight; } this.drawnLabels = []; this.axesUtils = new AxesUtils(ctx); } _createClass(YAxis, [{ key: "drawYaxis", value: function drawYaxis(realIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var yaxisFontSize = w.config.yaxis[realIndex].labels.style.fontSize; var yaxisFontFamily = w.config.yaxis[realIndex].labels.style.fontFamily; var elYaxis = graphics.group({ class: 'apexcharts-yaxis', rel: realIndex, transform: 'translate(' + w.globals.translateYAxisX[realIndex] + ', 0)' }); if (!w.config.yaxis[realIndex].show) { return elYaxis; } var elYaxisTexts = graphics.group({ class: 'apexcharts-yaxis-texts-g' }); elYaxis.add(elYaxisTexts); var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg height/number of ticks var labelsDivider = w.globals.gridHeight / tickAmount + 0.1; // initial label position = 0; var l = w.globals.translateY; var lbFormatter = w.globals.yLabelFormatters[realIndex]; var labels = w.globals.yAxisScale[realIndex].result.slice(); if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].reversed) { labels.reverse(); } if (w.config.yaxis[realIndex].labels.show) { for (var i = tickAmount; i >= 0; i--) { var val = labels[i]; val = lbFormatter(val, i); var xPad = w.config.yaxis[realIndex].labels.padding; if (w.config.yaxis[realIndex].opposite && w.config.yaxis.length !== 0) { xPad = xPad * -1; } var label = graphics.drawText({ x: xPad, y: l + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY + 1, text: val, textAnchor: w.config.yaxis[realIndex].opposite ? 'start' : 'end', fontSize: yaxisFontSize, fontFamily: yaxisFontFamily, foreColor: w.config.yaxis[realIndex].labels.style.color, cssClass: 'apexcharts-yaxis-label ' + w.config.yaxis[realIndex].labels.style.cssClass }); elYaxisTexts.add(label); var labelRotatingCenter = graphics.rotateAroundCenter(label.node); if (w.config.yaxis[realIndex].labels.rotate !== 0) { label.node.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].labels.rotate, " ").concat(labelRotatingCenter.x, " ").concat(labelRotatingCenter.y, ")")); } l = l + labelsDivider; } } if (w.config.yaxis[realIndex].title.text !== undefined) { var elYaxisTitle = graphics.group({ class: 'apexcharts-yaxis-title' }); var x = 0; if (w.config.yaxis[realIndex].opposite) { x = w.globals.translateYAxisX[realIndex]; } var elYAxisTitleText = graphics.drawText({ x: x, y: w.globals.gridHeight / 2 + w.globals.translateY, text: w.config.yaxis[realIndex].title.text, textAnchor: 'end', foreColor: w.config.yaxis[realIndex].title.style.color, fontSize: w.config.yaxis[realIndex].title.style.fontSize, fontFamily: w.config.yaxis[realIndex].title.style.fontFamily, cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[realIndex].title.style.cssClass }); elYaxisTitle.add(elYAxisTitleText); elYaxis.add(elYaxisTitle); } var axisBorder = w.config.yaxis[realIndex].axisBorder; if (axisBorder.show) { var _x = 31 + axisBorder.offsetX; if (w.config.yaxis[realIndex].opposite) { _x = -31 - axisBorder.offsetX; } var elVerticalLine = graphics.drawLine(_x, w.globals.translateY + axisBorder.offsetY - 2, _x, w.globals.gridHeight + w.globals.translateY + axisBorder.offsetY + 2, axisBorder.color); elYaxis.add(elVerticalLine); this.axesUtils.drawYAxisTicks(_x, tickAmount, axisBorder, w.config.yaxis[realIndex].axisTicks, realIndex, labelsDivider, elYaxis); } return elYaxis; } // This actually becomes horizonal axis (for bar charts) }, { key: "drawYaxisInversed", value: function drawYaxisInversed(realIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var elXaxis = graphics.group({ class: 'apexcharts-xaxis apexcharts-yaxis-inversed' }); var elXaxisTexts = graphics.group({ class: 'apexcharts-xaxis-texts-g', transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") }); elXaxis.add(elXaxisTexts); var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg width/number of ticks var labelsDivider = w.globals.gridWidth / tickAmount + 0.1; // initial label position; var l = labelsDivider + w.config.xaxis.labels.offsetX; var lbFormatter = w.globals.xLabelFormatter; var labels = w.globals.yAxisScale[realIndex].result.slice(); var timelineLabels = w.globals.invertedTimelineLabels; if (timelineLabels.length > 0) { this.xaxisLabels = timelineLabels.slice(); labels = timelineLabels.slice(); tickAmount = labels.length; } if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].reversed) { labels.reverse(); } var tl = timelineLabels.length; if (w.config.xaxis.labels.show) { for (var i = tl ? 0 : tickAmount; tl ? i < tl - 1 : i >= 0; tl ? i++ : i--) { var val = labels[i]; val = lbFormatter(val, i); var x = w.globals.gridWidth + w.globals.padHorizontal - (l - labelsDivider + w.config.xaxis.labels.offsetX); if (timelineLabels.length) { var label = this.axesUtils.getLabel(labels, timelineLabels, x, i, this.drawnLabels); x = label.x; val = label.text; this.drawnLabels.push(label.text); } var elTick = graphics.drawText({ x: x, y: this.xAxisoffX + w.config.xaxis.labels.offsetY + 30, text: '', textAnchor: 'middle', foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[realIndex] : this.xaxisForeColors, fontSize: this.xaxisFontSize, fontFamily: this.xaxisFontFamily, cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass }); elXaxisTexts.add(elTick); elTick.tspan(val); var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); elTooltipTitle.textContent = val; elTick.node.appendChild(elTooltipTitle); l = l + labelsDivider; } } if (w.config.xaxis.title.text !== undefined) { var elYaxisTitle = graphics.group({ class: 'apexcharts-xaxis-title apexcharts-yaxis-title-inversed' }); var elYAxisTitleText = graphics.drawText({ x: w.globals.gridWidth / 2, y: this.xAxisoffX + parseInt(this.xaxisFontSize) + parseInt(w.config.xaxis.title.style.fontSize) + 20, text: w.config.xaxis.title.text, textAnchor: 'middle', fontSize: w.config.xaxis.title.style.fontSize, fontFamily: w.config.xaxis.title.style.fontFamily, cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass }); elYaxisTitle.add(elYAxisTitleText); elXaxis.add(elYaxisTitle); } var axisBorder = w.config.yaxis[realIndex].axisBorder; if (axisBorder.show) { var elVerticalLine = graphics.drawLine(w.globals.padHorizontal + axisBorder.offsetX, 1 + axisBorder.offsetY, w.globals.padHorizontal + axisBorder.offsetX, w.globals.gridHeight + axisBorder.offsetY, axisBorder.color); elXaxis.add(elVerticalLine); } return elXaxis; } }, { key: "yAxisTitleRotate", value: function yAxisTitleRotate(realIndex, yAxisOpposite) { var w = this.w; var graphics = new Graphics(this.ctx); var yAxisLabelsCoord = { width: 0, height: 0 }; var yAxisTitleCoord = { width: 0, height: 0 }; var elYAxisLabelsWrap = w.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-texts-g")); if (elYAxisLabelsWrap !== null) { yAxisLabelsCoord = elYAxisLabelsWrap.getBoundingClientRect(); } var yAxisTitle = w.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-title text")); if (yAxisTitle !== null) { yAxisTitleCoord = yAxisTitle.getBoundingClientRect(); } if (yAxisTitle !== null) { var x = this.xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite); yAxisTitle.setAttribute('x', x.xPos - (yAxisOpposite ? 10 : 0)); } if (yAxisTitle !== null) { var titleRotatingCenter = graphics.rotateAroundCenter(yAxisTitle); if (!yAxisOpposite) { yAxisTitle.setAttribute('transform', "rotate(-".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); } else { yAxisTitle.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); } } } }, { key: "xPaddingForYAxisTitle", value: function xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite) { var w = this.w; var oppositeAxisCount = 0; var x = 0; var padd = 10; if (w.config.yaxis[realIndex].title.text === undefined || realIndex < 0) { return { xPos: x, padd: 0 }; } if (yAxisOpposite) { x = yAxisLabelsCoord.width + w.config.yaxis[realIndex].title.offsetX + yAxisTitleCoord.width / 2 + padd / 2; oppositeAxisCount += 1; if (oppositeAxisCount === 0) { x = x - padd / 2; } } else { x = yAxisLabelsCoord.width * -1 + w.config.yaxis[realIndex].title.offsetX + padd / 2 + yAxisTitleCoord.width / 2; if (w.globals.isBarHorizontal) { padd = 25; x = yAxisLabelsCoord.width * -1 - w.config.yaxis[realIndex].title.offsetX - padd; } } return { xPos: x, padd: padd }; } // sets the x position of the y-axis by counting the labels width, title width and any offset }, { key: "setYAxisXPosition", value: function setYAxisXPosition(yaxisLabelCoords, yTitleCoords) { var w = this.w; var xLeft = 0; var xRight = 0; var leftOffsetX = 21; var rightOffsetX = 1; if (w.config.yaxis.length > 1) { this.multipleYs = true; } w.config.yaxis.map(function (yaxe, index) { var shouldNotDrawAxis = w.globals.ignoreYAxisIndexes.indexOf(index) > -1 || !yaxe.show || yaxe.floating || yaxisLabelCoords[index].width === 0; var axisWidth = yaxisLabelCoords[index].width + yTitleCoords[index].width; if (!yaxe.opposite) { xLeft = w.globals.translateX - leftOffsetX; if (!shouldNotDrawAxis) { leftOffsetX = leftOffsetX + axisWidth + 20; } w.globals.translateYAxisX[index] = xLeft + yaxe.labels.offsetX; } else { if (w.globals.isBarHorizontal) { xRight = w.globals.gridWidth + w.globals.translateX - 1; w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX; } else { xRight = w.globals.gridWidth + w.globals.translateX + rightOffsetX; if (!shouldNotDrawAxis) { rightOffsetX = rightOffsetX + axisWidth + 20; } w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX + 20; } } }); } }, { key: "setYAxisTextAlignments", value: function setYAxisTextAlignments() { var w = this.w; var yaxis = w.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis"); yaxis = Utils.listToArray(yaxis); yaxis.forEach(function (y, index) { var yaxe = w.config.yaxis[index]; // proceed only if user has specified alignment if (yaxe.labels.align !== undefined) { var yAxisInner = w.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(index, "'] .apexcharts-yaxis-texts-g")); var yAxisTexts = w.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(index, "'] .apexcharts-yaxis-label")); yAxisTexts = Utils.listToArray(yAxisTexts); var rect = yAxisInner.getBoundingClientRect(); if (yaxe.labels.align === 'left') { yAxisTexts.forEach(function (label, lI) { label.setAttribute('text-anchor', 'start'); }); if (!yaxe.opposite) { yAxisInner.setAttribute('transform', "translate(-".concat(rect.width, ", 0)")); } } else if (yaxe.labels.align === 'center') { yAxisTexts.forEach(function (label, lI) { label.setAttribute('text-anchor', 'middle'); }); yAxisInner.setAttribute('transform', "translate(".concat(rect.width / 2 * (!yaxe.opposite ? -1 : 1), ", 0)")); } else if (yaxe.labels.align === 'right') { yAxisTexts.forEach(function (label, lI) { label.setAttribute('text-anchor', 'end'); }); if (yaxe.opposite) { yAxisInner.setAttribute('transform', "translate(".concat(rect.width, ", 0)")); } } } }); } }]); return YAxis; }(); /** * ApexCharts Dimensions Class for calculating rects of all elements that are drawn and will be drawn. * * @module Dimensions **/ var Dimensions = /*#__PURE__*/ function () { function Dimensions(ctx) { _classCallCheck(this, Dimensions); this.ctx = ctx; this.w = ctx.w; this.lgRect = {}; this.yAxisWidth = 0; this.xAxisHeight = 0; this.isSparkline = this.w.config.chart.sparkline.enabled; this.xPadRight = 0; this.xPadLeft = 0; } /** * @memberof Dimensions * @param {object} w - chart context **/ _createClass(Dimensions, [{ key: "plotCoords", value: function plotCoords() { var w = this.w; var gl = w.globals; var lgRect = this.getLegendsRect(); if (gl.axisCharts) { // for line / area / scatter / column this.setGridCoordsForAxisCharts(lgRect); } else { // for pie / donuts / circle this.setGridCoordsForNonAxisCharts(lgRect); } this.titleSubtitleOffset(); // after calculating everything, apply padding set by user gl.gridHeight = gl.gridHeight - w.config.grid.padding.top - w.config.grid.padding.bottom; gl.gridWidth = gl.gridWidth - w.config.grid.padding.left - w.config.grid.padding.right - this.xPadRight - this.xPadLeft; gl.translateX = gl.translateX + w.config.grid.padding.left + this.xPadLeft; gl.translateY = gl.translateY + w.config.grid.padding.top; } }, { key: "conditionalChecksForAxisCoords", value: function conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords) { var w = this.w; this.xAxisHeight = (xaxisLabelCoords.height + xtitleCoords.height) * w.globals.LINE_HEIGHT_RATIO + 15; this.xAxisWidth = xaxisLabelCoords.width; if (this.xAxisHeight - xtitleCoords.height > w.config.xaxis.labels.maxHeight) { this.xAxisHeight = w.config.xaxis.labels.maxHeight; } if (w.config.xaxis.labels.minHeight && this.xAxisHeight < w.config.xaxis.labels.minHeight) { this.xAxisHeight = w.config.xaxis.labels.minHeight; } if (w.config.xaxis.floating) { this.xAxisHeight = 0; } if (!w.globals.isBarHorizontal) { this.yAxisWidth = this.getTotalYAxisWidth(); } else { this.yAxisWidth = w.globals.yLabelsCoords[0].width + w.globals.yTitleCoords[0].width + 15; } var minYAxisWidth = 0; var maxYAxisWidth = 0; w.config.yaxis.forEach(function (y) { minYAxisWidth += y.labels.minWidth; maxYAxisWidth += y.labels.maxWidth; }); if (this.yAxisWidth < minYAxisWidth) { this.yAxisWidth = minYAxisWidth; } if (this.yAxisWidth > maxYAxisWidth) { this.yAxisWidth = maxYAxisWidth; } } }, { key: "setGridCoordsForAxisCharts", value: function setGridCoordsForAxisCharts(lgRect) { var w = this.w; var gl = w.globals; var yaxisLabelCoords = this.getyAxisLabelsCoords(); var xaxisLabelCoords = this.getxAxisLabelsCoords(); var yTitleCoords = this.getyAxisTitleCoords(); var xtitleCoords = this.getxAxisTitleCoords(); w.globals.yLabelsCoords = []; w.globals.yTitleCoords = []; w.config.yaxis.map(function (yaxe, index) { // store the labels and titles coords in global vars w.globals.yLabelsCoords.push({ width: yaxisLabelCoords[index].width, index: index }); w.globals.yTitleCoords.push({ width: yTitleCoords[index].width, index: index }); }); this.conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords); gl.translateXAxisY = w.globals.rotateXLabels ? this.xAxisHeight / 8 : -4; gl.translateXAxisX = w.globals.rotateXLabels && w.globals.isXNumeric && w.config.xaxis.labels.rotate <= -45 ? -this.xAxisWidth / 4 : 0; if (w.globals.isBarHorizontal) { gl.rotateXLabels = false; gl.translateXAxisY = -1 * (parseInt(w.config.xaxis.labels.style.fontSize) / 1.5); } gl.translateXAxisY = gl.translateXAxisY + w.config.xaxis.labels.offsetY; gl.translateXAxisX = gl.translateXAxisX + w.config.xaxis.labels.offsetX; var yAxisWidth = this.yAxisWidth; var xAxisHeight = this.xAxisHeight; gl.xAxisLabelsHeight = this.xAxisHeight; gl.xAxisHeight = this.xAxisHeight; var translateY = 10; if (!w.config.grid.show || w.config.chart.type === 'radar') { yAxisWidth = 0; xAxisHeight = 35; } if (this.isSparkline) { lgRect = { height: 0, width: 0 }; xAxisHeight = 0; yAxisWidth = 0; translateY = 0; } this.additionalPaddingXLabels(xaxisLabelCoords); switch (w.config.legend.position) { case 'bottom': gl.translateY = translateY; gl.translateX = yAxisWidth; gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); gl.gridWidth = gl.svgWidth - yAxisWidth; break; case 'top': gl.translateY = lgRect.height + translateY; gl.translateX = yAxisWidth; gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); gl.gridWidth = gl.svgWidth - yAxisWidth; break; case 'left': gl.translateY = translateY; gl.translateX = lgRect.width + yAxisWidth; gl.gridHeight = gl.svgHeight - xAxisHeight - 12; gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth; break; case 'right': gl.translateY = translateY; gl.translateX = yAxisWidth; gl.gridHeight = gl.svgHeight - xAxisHeight - 12; gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth - 5; break; default: throw new Error('Legend position not supported'); } this.setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords); // after drawing everything, set the Y axis positions var objyAxis = new YAxis(this.ctx); objyAxis.setYAxisXPosition(yaxisLabelCoords, yTitleCoords); } }, { key: "setGridCoordsForNonAxisCharts", value: function setGridCoordsForNonAxisCharts(lgRect) { var w = this.w; var gl = w.globals; var xPad = 0; if (w.config.legend.show && !w.config.legend.floating) { xPad = 20; } var offY = 10; var offX = 0; if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { offY = offY + w.config.plotOptions.pie.offsetY; offX = offX + w.config.plotOptions.pie.offsetX; } else if (w.config.chart.type === 'radialBar') { offY = offY + w.config.plotOptions.radialBar.offsetY; offX = offX + w.config.plotOptions.radialBar.offsetX; } if (!w.config.legend.show) { gl.gridHeight = gl.svgHeight - 35; gl.gridWidth = gl.gridHeight; gl.translateY = offY - 10; gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; return; } switch (w.config.legend.position) { case 'bottom': gl.gridHeight = gl.svgHeight - lgRect.height - 35; gl.gridWidth = gl.gridHeight; gl.translateY = offY - 20; gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; break; case 'top': gl.gridHeight = gl.svgHeight - lgRect.height - 35; gl.gridWidth = gl.gridHeight; gl.translateY = lgRect.height + offY + 10; gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; break; case 'left': gl.gridWidth = gl.svgWidth - lgRect.width - xPad; gl.gridHeight = gl.gridWidth; gl.translateY = offY; gl.translateX = offX + lgRect.width + xPad; break; case 'right': gl.gridWidth = gl.svgWidth - lgRect.width - xPad - 5; gl.gridHeight = gl.gridWidth; gl.translateY = offY; gl.translateX = offX + 10; break; default: throw new Error('Legend position not supported'); } } }, { key: "setGridXPosForDualYAxis", value: function setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords) { var w = this.w; w.config.yaxis.map(function (yaxe, index) { if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1 && !w.config.yaxis[index].floating && w.config.yaxis[index].show) { if (yaxe.opposite) { w.globals.translateX = w.globals.translateX - (yaxisLabelCoords[index].width + yTitleCoords[index].width) - parseInt(w.config.yaxis[index].labels.style.fontSize) / 1.2 - 12; } } }); } // Sometimes, the last labels gets cropped in category/numeric xaxis. // Hence, we add some additional padding based on the label length to avoid the last label being cropped. // NOTE: datetime x-axis won't have any effect with this as we don't know the label length there due to many constraints. }, { key: "additionalPaddingXLabels", value: function additionalPaddingXLabels(xaxisLabelCoords) { var _this = this; var w = this.w; if (w.config.xaxis.type === 'category' && w.globals.isBarHorizontal || w.config.xaxis.type === 'numeric' || w.config.xaxis.type === 'datetime') { var rightPad = function rightPad(labels) { if (_this.timescaleLabels) { // for timeline labels, we take the last label and check if it exceeds gridWidth var lastTimescaleLabel = _this.timescaleLabels[_this.timescaleLabels.length - 1]; var labelPosition = lastTimescaleLabel.position + labels.width; if (labelPosition > w.globals.gridWidth) { w.globals.skipLastTimelinelabel = true; } else { // we have to make it false again in case of zooming/panning w.globals.skipLastTimelinelabel = false; } } else if (w.config.xaxis.type === 'datetime') { if (w.config.grid.padding.right < labels.width) { w.globals.skipLastTimelinelabel = true; } } else if (w.config.xaxis.type !== 'datetime') { if (w.config.grid.padding.right < labels.width) { _this.xPadRight = labels.width / 2 + 1; } } }; var leftPad = function leftPad(labels) { if (w.config.grid.padding.left < labels.width) { _this.xPadLeft = labels.width / 2 + 1; } }; var isXNumeric = w.globals.isXNumeric; w.config.yaxis.forEach(function (yaxe, i) { var shouldPad = !yaxe.show || yaxe.floating || w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || isXNumeric || yaxe.opposite && w.globals.isBarHorizontal; if (shouldPad) { if (isXNumeric && w.globals.isMultipleYAxis && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || w.globals.isBarHorizontal && yaxe.opposite) { leftPad(xaxisLabelCoords); } if (!w.globals.isBarHorizontal && yaxe.opposite && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || isXNumeric && !w.globals.isMultipleYAxis) { rightPad(xaxisLabelCoords); } } }); } } }, { key: "titleSubtitleOffset", value: function titleSubtitleOffset() { var w = this.w; var gl = w.globals; var gridShrinkOffset = this.isSparkline || !w.globals.axisCharts ? 0 : 10; if (w.config.title.text !== undefined) { gridShrinkOffset += w.config.title.margin; } else { gridShrinkOffset += this.isSparkline || !w.globals.axisCharts ? 0 : 5; } if (w.config.subtitle.text !== undefined) { gridShrinkOffset += w.config.subtitle.margin; } else { gridShrinkOffset += this.isSparkline || !w.globals.axisCharts ? 0 : 5; } if (w.config.legend.show && w.config.legend.position === 'bottom' && !w.config.legend.floating && (w.config.series.length > 1 || !w.globals.axisCharts || w.config.legend.showForSingleSeries)) { gridShrinkOffset += 10; } var titleCoords = this.getTitleSubtitleCoords('title'); var subtitleCoords = this.getTitleSubtitleCoords('subtitle'); gl.gridHeight = gl.gridHeight - titleCoords.height - subtitleCoords.height - gridShrinkOffset; gl.translateY = gl.translateY + titleCoords.height + subtitleCoords.height + gridShrinkOffset; } }, { key: "getTotalYAxisWidth", value: function getTotalYAxisWidth() { var w = this.w; var yAxisWidth = 0; var padding = 10; var isHiddenYAxis = function isHiddenYAxis(index) { return w.globals.ignoreYAxisIndexes.indexOf(index) > -1; }; w.globals.yLabelsCoords.map(function (yLabelCoord, index) { var floating = w.config.yaxis[index].floating; if (yLabelCoord.width > 0 && !floating) { yAxisWidth = yAxisWidth + yLabelCoord.width + padding; if (isHiddenYAxis(index)) { yAxisWidth = yAxisWidth - yLabelCoord.width - padding; } } else { yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); } }); w.globals.yTitleCoords.map(function (yTitleCoord, index) { var floating = w.config.yaxis[index].floating; padding = parseInt(w.config.yaxis[index].title.style.fontSize); if (yTitleCoord.width > 0 && !floating) { yAxisWidth = yAxisWidth + yTitleCoord.width + padding; if (isHiddenYAxis(index)) { yAxisWidth = yAxisWidth - yTitleCoord.width - padding; } } else { yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); } }); return yAxisWidth; } }, { key: "getxAxisTimeScaleLabelsCoords", value: function getxAxisTimeScaleLabelsCoords() { var w = this.w; var rect; this.timescaleLabels = w.globals.timelineLabels.slice(); if (w.globals.isBarHorizontal && w.config.xaxis.type === 'datetime') { this.timescaleLabels = w.globals.invertedTimelineLabels.slice(); } var labels = this.timescaleLabels.map(function (label) { return label.value; }); // get the longest string from the labels array and also apply label formatter to it var val = labels.reduce(function (a, b) { // if undefined, maybe user didn't pass the datetime(x) values if (typeof a === 'undefined') { console.error('You have possibly supplied invalid Date format. Please supply a valid JavaScript Date'); return 0; } else { return a.length > b.length ? a : b; } }, 0); var graphics = new Graphics(this.ctx); rect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); var totalWidthRotated = rect.width * 1.05 * labels.length; if (totalWidthRotated > w.globals.gridWidth && w.config.xaxis.labels.rotate !== 0) { w.globals.overlappingXLabels = true; } return rect; } /** * Get X Axis Dimensions * @memberof Dimensions * @return {{width, height}} **/ }, { key: "getxAxisLabelsCoords", value: function getxAxisLabelsCoords() { var w = this.w; var xaxisLabels = w.globals.labels.slice(); var rect; if (w.globals.timelineLabels.length > 0) { var coords = this.getxAxisTimeScaleLabelsCoords(); rect = { width: coords.width, height: coords.height }; } else { var lgWidthForSideLegends = w.config.legend.position === 'left' && w.config.legend.position === 'right' && !w.config.legend.floating ? this.lgRect.width : 0; // get the longest string from the labels array and also apply label formatter var xlbFormatter = w.globals.xLabelFormatter; // prevent changing xaxisLabels to avoid issues in multi-yaxies - fix #522 var val = xaxisLabels.reduce(function (a, b) { return a.length > b.length ? a : b; }, 0); // the labels gets changed for bar charts if (w.globals.isBarHorizontal) { val = w.globals.yAxisScale[0].result.reduce(function (a, b) { return a.length > b.length ? a : b; }, 0); } var xFormat = new Formatters(this.ctx); var timestamp = val; val = xFormat.xLabelFormat(xlbFormatter, val, timestamp); var graphics = new Graphics(this.ctx); var xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); rect = { width: xLabelrect.width, height: xLabelrect.height }; if (rect.width * xaxisLabels.length > w.globals.svgWidth - lgWidthForSideLegends - this.yAxisWidth && w.config.xaxis.labels.rotate !== 0) { if (!w.globals.isBarHorizontal) { w.globals.rotateXLabels = true; xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize, w.config.xaxis.labels.style.fontFamily, "rotate(".concat(w.config.xaxis.labels.rotate, " 0 0)"), false); rect.height = xLabelrect.height / 1.66; } } else { w.globals.rotateXLabels = false; } } if (!w.config.xaxis.labels.show) { rect = { width: 0, height: 0 }; } return { width: rect.width, height: rect.height }; } /** * Get Y Axis Dimensions * @memberof Dimensions * @return {{width, height}} **/ }, { key: "getyAxisLabelsCoords", value: function getyAxisLabelsCoords() { var _this2 = this; var w = this.w; var width = 0; var height = 0; var ret = []; var labelPad = 10; w.config.yaxis.map(function (yaxe, index) { if (yaxe.show && yaxe.labels.show && w.globals.yAxisScale[index].result.length) { var lbFormatter = w.globals.yLabelFormatters[index]; // the second parameter -1 is the index of tick which user can use in the formatter var val = lbFormatter(w.globals.yAxisScale[index].niceMax, -1); // if user has specified a custom formatter, and the result is null or empty, we need to discard the formatter and take the value as it is. if (typeof val === 'undefined' || val.length === 0) { val = w.globals.yAxisScale[index].niceMax; } if (w.globals.isBarHorizontal) { labelPad = 0; var barYaxisLabels = w.globals.labels.slice(); // get the longest string from the labels array and also apply label formatter to it val = barYaxisLabels.reduce(function (a, b) { return a.length > b.length ? a : b; }, 0); val = lbFormatter(val, -1); } var graphics = new Graphics(_this2.ctx); var rect = graphics.getTextRects(val, yaxe.labels.style.fontSize); ret.push({ width: rect.width + labelPad, height: rect.height }); } else { ret.push({ width: width, height: height }); } }); return ret; } /** * Get X Axis Title Dimensions * @memberof Dimensions * @return {{width, height}} **/ }, { key: "getxAxisTitleCoords", value: function getxAxisTitleCoords() { var w = this.w; var width = 0; var height = 0; if (w.config.xaxis.title.text !== undefined) { var graphics = new Graphics(this.ctx); var rect = graphics.getTextRects(w.config.xaxis.title.text, w.config.xaxis.title.style.fontSize); width = rect.width; height = rect.height; } return { width: width, height: height }; } /** * Get Y Axis Dimensions * @memberof Dimensions * @return {{width, height}} **/ }, { key: "getyAxisTitleCoords", value: function getyAxisTitleCoords() { var _this3 = this; var w = this.w; var ret = []; w.config.yaxis.map(function (yaxe, index) { if (yaxe.show && yaxe.title.text !== undefined) { var graphics = new Graphics(_this3.ctx); var rect = graphics.getTextRects(yaxe.title.text, yaxe.title.style.fontSize, yaxe.title.style.fontFamily, 'rotate(-90 0 0)', false); ret.push({ width: rect.width, height: rect.height }); } else { ret.push({ width: 0, height: 0 }); } }); return ret; } /** * Get Chart Title/Subtitle Dimensions * @memberof Dimensions * @return {{width, height}} **/ }, { key: "getTitleSubtitleCoords", value: function getTitleSubtitleCoords(type) { var w = this.w; var width = 0; var height = 0; var floating = type === 'title' ? w.config.title.floating : w.config.subtitle.floating; var el = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-text")); if (el !== null && !floating) { var coord = el.getBoundingClientRect(); width = coord.width; height = w.globals.axisCharts ? coord.height + 5 : coord.height; } return { width: width, height: height }; } }, { key: "getLegendsRect", value: function getLegendsRect() { var w = this.w; var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); var lgRect = Object.assign({}, Utils.getBoundingClientRect(elLegendWrap)); if (elLegendWrap !== null && !w.config.legend.floating && w.config.legend.show) { this.lgRect = { x: lgRect.x, y: lgRect.y, height: lgRect.height, width: lgRect.height === 0 ? 0 : lgRect.width }; } else { this.lgRect = { x: 0, y: 0, height: 0, width: 0 }; } return this.lgRect; } }]); return Dimensions; }(); /** * ApexCharts Series Class for interation with the Series of the chart. * * @module Series **/ var Series = /*#__PURE__*/ function () { function Series(ctx) { _classCallCheck(this, Series); this.ctx = ctx; this.w = ctx.w; } _createClass(Series, [{ key: "getAllSeriesEls", value: function getAllSeriesEls() { return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); } }, { key: "getSeriesByName", value: function getSeriesByName(seriesName) { return this.w.globals.dom.baseEl.querySelector("[seriesName='".concat(Utils.escapeString(seriesName), "']")); } }, { key: "addCollapsedClassToSeries", value: function addCollapsedClassToSeries(elSeries, index) { var w = this.w; function iterateOnAllCollapsedSeries(series) { for (var cs = 0; cs < series.length; cs++) { if (series[cs].index === index) { elSeries.node.classList.add('apexcharts-series-collapsed'); } } } iterateOnAllCollapsedSeries(w.globals.collapsedSeries); iterateOnAllCollapsedSeries(w.globals.ancillaryCollapsedSeries); } }, { key: "resetSeries", value: function resetSeries() { var shouldUpdateChart = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; var w = this.w; var series = w.globals.initialSeries.slice(); w.config.series = series; w.globals.collapsedSeries = []; w.globals.ancillaryCollapsedSeries = []; w.globals.collapsedSeriesIndices = []; w.globals.ancillaryCollapsedSeriesIndices = []; w.globals.previousPaths = []; if (shouldUpdateChart) { this.ctx._updateSeries(series, w.config.chart.animations.dynamicAnimation.enabled); } } }, { key: "toggleSeriesOnHover", value: function toggleSeriesOnHover(e, targetElement) { var w = this.w; var allSeriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); if (e.type === 'mousemove') { var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; var seriesEl = null; if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { if (w.globals.axisCharts) { seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); } else { seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); } } else { seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); } for (var se = 0; se < allSeriesEls.length; se++) { allSeriesEls[se].classList.add('legend-mouseover-inactive'); } if (seriesEl !== null) { if (!w.globals.axisCharts) { seriesEl.parentNode.classList.remove('legend-mouseover-inactive'); } seriesEl.classList.remove('legend-mouseover-inactive'); } } else if (e.type === 'mouseout') { for (var _se = 0; _se < allSeriesEls.length; _se++) { allSeriesEls[_se].classList.remove('legend-mouseover-inactive'); } } } }, { key: "highlightRangeInSeries", value: function highlightRangeInSeries(e, targetElement) { var w = this.w; var allHeatMapElements = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap-rect'); var allActive = function allActive() { for (var i = 0; i < allHeatMapElements.length; i++) { allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); } }; var allInactive = function allInactive() { for (var i = 0; i < allHeatMapElements.length; i++) { allHeatMapElements[i].classList.add('legend-mouseover-inactive'); } }; var selectedActive = function selectedActive(range) { for (var i = 0; i < allHeatMapElements.length; i++) { var val = parseInt(allHeatMapElements[i].getAttribute('val')); if (val >= range.from && val <= range.to) { allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); } } }; if (e.type === 'mousemove') { var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; allActive(); allInactive(); var range = w.config.plotOptions.heatmap.colorScale.ranges[seriesCnt]; selectedActive(range); } else if (e.type === 'mouseout') { allActive(); } } }, { key: "getActiveSeriesIndex", value: function getActiveSeriesIndex() { var w = this.w; var activeIndex = 0; if (w.globals.series.length > 1) { // active series flag is required to know if user has not deactivated via legend click var firstActiveSeriesIndex = w.globals.series.map(function (series, index) { if (series.length > 0 && w.config.series[index].type !== 'bar' && w.config.series[index].type !== 'column') { return index; } else { return -1; } }); for (var a = 0; a < firstActiveSeriesIndex.length; a++) { if (firstActiveSeriesIndex[a] !== -1) { activeIndex = firstActiveSeriesIndex[a]; break; } } } return activeIndex; } }, { key: "getActiveConfigSeriesIndex", value: function getActiveConfigSeriesIndex() { var w = this.w; var activeIndex = 0; if (w.config.series.length > 1) { // active series flag is required to know if user has not deactivated via legend click var firstActiveSeriesIndex = w.config.series.map(function (series, index) { if (series.data && series.data.length > 0) { return index; } else { return -1; } }); for (var a = 0; a < firstActiveSeriesIndex.length; a++) { if (firstActiveSeriesIndex[a] !== -1) { activeIndex = firstActiveSeriesIndex[a]; break; } } } return activeIndex; } }, { key: "getPreviousPaths", value: function getPreviousPaths() { var w = this.w; w.globals.previousPaths = []; function pushPaths(seriesEls, i, type) { var paths = seriesEls[i].childNodes; var dArr = { type: type, paths: [], realIndex: seriesEls[i].getAttribute('data:realIndex') }; for (var j = 0; j < paths.length; j++) { if (paths[j].hasAttribute('pathTo')) { var d = paths[j].getAttribute('pathTo'); dArr.paths.push({ d: d }); } } w.globals.previousPaths.push(dArr); } var linePaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-series'); if (linePaths.length > 0) { for (var p = linePaths.length - 1; p >= 0; p--) { pushPaths(linePaths, p, 'line'); } } var areapaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-series'); if (areapaths.length > 0) { for (var i = areapaths.length - 1; i >= 0; i--) { pushPaths(areapaths, i, 'area'); } } var barPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series .apexcharts-series'); if (barPaths.length > 0) { for (var _p = 0; _p < barPaths.length; _p++) { pushPaths(barPaths, _p, 'bar'); } } var candlestickPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-candlestick-series .apexcharts-series'); if (candlestickPaths.length > 0) { for (var _p2 = 0; _p2 < candlestickPaths.length; _p2++) { pushPaths(candlestickPaths, _p2, 'candlestick'); } } var radarPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-radar-series .apexcharts-series'); if (radarPaths.length > 0) { for (var _p3 = 0; _p3 < radarPaths.length; _p3++) { pushPaths(radarPaths, _p3, 'radar'); } } var bubblepaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bubble-series .apexcharts-series'); if (bubblepaths.length > 0) { for (var s = 0; s < bubblepaths.length; s++) { var seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='".concat(s, "'] circle")); var dArr = []; for (var _i = 0; _i < seriesEls.length; _i++) { dArr.push({ x: seriesEls[_i].getAttribute('cx'), y: seriesEls[_i].getAttribute('cy'), r: seriesEls[_i].getAttribute('r') }); } w.globals.previousPaths.push(dArr); } } var scatterpaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-scatter-series .apexcharts-series'); if (scatterpaths.length > 0) { for (var _s = 0; _s < scatterpaths.length; _s++) { var _seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='".concat(_s, "'] circle")); var _dArr = []; for (var _i2 = 0; _i2 < _seriesEls.length; _i2++) { _dArr.push({ x: _seriesEls[_i2].getAttribute('cx'), y: _seriesEls[_i2].getAttribute('cy'), r: _seriesEls[_i2].getAttribute('r') }); } w.globals.previousPaths.push(_dArr); } } var heatmapColors = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap .apexcharts-series'); if (heatmapColors.length > 0) { for (var h = 0; h < heatmapColors.length; h++) { var _seriesEls2 = w.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='".concat(h, "'] rect")); var _dArr2 = []; for (var _i3 = 0; _i3 < _seriesEls2.length; _i3++) { _dArr2.push({ color: _seriesEls2[_i3].getAttribute('color') }); } w.globals.previousPaths.push(_dArr2); } } if (!w.globals.axisCharts) { // for non-axis charts (i.e., circular charts, pathFrom is not usable. We need whole series) w.globals.previousPaths = w.globals.series; } } }, { key: "handleNoData", value: function handleNoData() { var w = this.w; var me = this; var noDataOpts = w.config.noData; var graphics = new Graphics(me.ctx); var x = w.globals.svgWidth / 2; var y = w.globals.svgHeight / 2; var textAnchor = 'middle'; w.globals.noData = true; w.globals.animationEnded = true; if (noDataOpts.align === 'left') { x = 10; textAnchor = 'start'; } else if (noDataOpts.align === 'right') { x = w.globals.svgWidth - 10; textAnchor = 'end'; } if (noDataOpts.verticalAlign === 'top') { y = 50; } else if (noDataOpts.verticalAlign === 'bottom') { y = w.globals.svgHeight - 50; } x = x + noDataOpts.offsetX; y = y + parseInt(noDataOpts.style.fontSize) + 2; if (noDataOpts.text !== undefined && noDataOpts.text !== '') { var titleText = graphics.drawText({ x: x, y: y, text: noDataOpts.text, textAnchor: textAnchor, fontSize: noDataOpts.style.fontSize, fontFamily: noDataOpts.style.fontFamily, foreColor: noDataOpts.style.color, opacity: 1, class: 'apexcharts-text-nodata' }); titleText.node.setAttribute('class', 'apexcharts-title-text'); w.globals.dom.Paper.add(titleText); } } // When user clicks on legends, the collapsed series is filled with [0,0,0,...,0] // This is because we don't want to alter the series' length as it is used at many places }, { key: "setNullSeriesToZeroValues", value: function setNullSeriesToZeroValues(series) { var w = this.w; for (var sl = 0; sl < series.length; sl++) { if (series[sl].length === 0) { for (var j = 0; j < series[w.globals.maxValsInArrayIndex].length; j++) { series[sl].push(0); } } } return series; } }, { key: "hasAllSeriesEqualX", value: function hasAllSeriesEqualX() { var equalLen = true; var w = this.w; var filteredSerX = this.filteredSeriesX(); for (var i = 0; i < filteredSerX.length - 1; i++) { if (filteredSerX[i][0] !== filteredSerX[i + 1][0]) { equalLen = false; break; } } w.globals.allSeriesHasEqualX = equalLen; return equalLen; } }, { key: "filteredSeriesX", value: function filteredSeriesX() { var w = this.w; var filteredSeriesX = w.globals.seriesX.map(function (ser, index) { if (ser.length > 0) { return ser; } else { return []; } }); return filteredSeriesX; } }]); return Series; }(); /** * ApexCharts Legend Class to draw legend. * * @module Legend **/ var Legend = /*#__PURE__*/ function () { function Legend(ctx, opts) { _classCallCheck(this, Legend); this.ctx = ctx; this.w = ctx.w; this.onLegendClick = this.onLegendClick.bind(this); this.onLegendHovered = this.onLegendHovered.bind(this); } _createClass(Legend, [{ key: "init", value: function init() { var w = this.w; var gl = w.globals; var cnf = w.config; var showLegendAlways = cnf.legend.showForSingleSeries && gl.series.length === 1 || gl.series.length > 1; if ((showLegendAlways || !gl.axisCharts) && cnf.legend.show) { while (gl.dom.elLegendWrap.firstChild) { gl.dom.elLegendWrap.removeChild(gl.dom.elLegendWrap.firstChild); } this.drawLegends(); if (!Utils.isIE11()) { this.appendToForeignObject(); } else { // IE11 doesn't supports foreignObject, hence append it to document.getElementsByTagName('head')[0].appendChild(this.getLegendStyles()); } if (cnf.legend.position === 'bottom' || cnf.legend.position === 'top') { this.legendAlignHorizontal(); } else if (cnf.legend.position === 'right' || cnf.legend.position === 'left') { this.legendAlignVertical(); } } } }, { key: "appendToForeignObject", value: function appendToForeignObject() { var gl = this.w.globals; gl.dom.elLegendForeign = document.createElementNS(gl.SVGNS, 'foreignObject'); var elForeign = gl.dom.elLegendForeign; elForeign.setAttribute('x', 0); elForeign.setAttribute('y', 0); elForeign.setAttribute('width', gl.svgWidth); elForeign.setAttribute('height', gl.svgHeight); gl.dom.elLegendWrap.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); elForeign.appendChild(gl.dom.elLegendWrap); elForeign.appendChild(this.getLegendStyles()); gl.dom.Paper.node.insertBefore(elForeign, gl.dom.elGraphical.node); } }, { key: "drawLegends", value: function drawLegends() { var self = this; var w = this.w; var fontFamily = w.config.legend.fontFamily; var legendNames = w.globals.seriesNames; var fillcolor = w.globals.colors.slice(); if (w.config.chart.type === 'heatmap') { var ranges = w.config.plotOptions.heatmap.colorScale.ranges; legendNames = ranges.map(function (colorScale) { return colorScale.name ? colorScale.name : colorScale.from + ' - ' + colorScale.to; }); fillcolor = ranges.map(function (color) { return color.color; }); } var legendFormatter = w.globals.legendFormatter; var isLegendInversed = w.config.legend.inverseOrder; for (var i = isLegendInversed ? legendNames.length - 1 : 0; isLegendInversed ? i >= 0 : i <= legendNames.length - 1; isLegendInversed ? i-- : i++) { var text = legendFormatter(legendNames[i], { seriesIndex: i, w: w }); var collapsedSeries = false; var ancillaryCollapsedSeries = false; if (w.globals.collapsedSeries.length > 0) { for (var c = 0; c < w.globals.collapsedSeries.length; c++) { if (w.globals.collapsedSeries[c].index === i) { collapsedSeries = true; } } } if (w.globals.ancillaryCollapsedSeriesIndices.length > 0) { for (var _c = 0; _c < w.globals.ancillaryCollapsedSeriesIndices.length; _c++) { if (w.globals.ancillaryCollapsedSeriesIndices[_c] === i) { ancillaryCollapsedSeries = true; } } } var elMarker = document.createElement('span'); elMarker.classList.add('apexcharts-legend-marker'); var mOffsetX = w.config.legend.markers.offsetX; var mOffsetY = w.config.legend.markers.offsetY; var mHeight = w.config.legend.markers.height; var mWidth = w.config.legend.markers.width; var mBorderWidth = w.config.legend.markers.strokeWidth; var mBorderColor = w.config.legend.markers.strokeColor; var mBorderRadius = w.config.legend.markers.radius; var mStyle = elMarker.style; mStyle.background = fillcolor[i]; mStyle.color = fillcolor[i]; mStyle.height = Array.isArray(mHeight) ? parseFloat(mHeight[i]) + 'px' : parseFloat(mHeight) + 'px'; mStyle.width = Array.isArray(mWidth) ? parseFloat(mWidth[i]) + 'px' : parseFloat(mWidth) + 'px'; mStyle.left = Array.isArray(mOffsetX) ? mOffsetX[i] : mOffsetX; mStyle.top = Array.isArray(mOffsetY) ? mOffsetY[i] : mOffsetY; mStyle.borderWidth = Array.isArray(mBorderWidth) ? mBorderWidth[i] : mBorderWidth; mStyle.borderColor = Array.isArray(mBorderColor) ? mBorderColor[i] : mBorderColor; mStyle.borderRadius = Array.isArray(mBorderRadius) ? parseFloat(mBorderRadius[i]) + 'px' : parseFloat(mBorderRadius) + 'px'; if (w.config.legend.markers.customHTML) { if (Array.isArray(w.config.legend.markers.customHTML)) { elMarker.innerHTML = w.config.legend.markers.customHTML[i](); } else { elMarker.innerHTML = w.config.legend.markers.customHTML(); } } Graphics.setAttrs(elMarker, { rel: i + 1, 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries }); if (collapsedSeries || ancillaryCollapsedSeries) { elMarker.classList.add('inactive-legend'); } var elLegend = document.createElement('div'); var elLegendText = document.createElement('span'); elLegendText.classList.add('apexcharts-legend-text'); elLegendText.innerHTML = text; var textColor = w.config.legend.labels.useSeriesColors ? w.globals.colors[i] : w.config.legend.labels.colors; if (!textColor) { textColor = w.config.chart.foreColor; } elLegendText.style.color = textColor; elLegendText.style.fontSize = parseFloat(w.config.legend.fontSize) + 'px'; elLegendText.style.fontFamily = fontFamily || w.config.chart.fontFamily; Graphics.setAttrs(elLegendText, { rel: i + 1, i: i, 'data:default-text': text, 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries }); elLegend.appendChild(elMarker); elLegend.appendChild(elLegendText); var coreUtils = new CoreUtils(this.ctx); if (!w.config.legend.showForZeroSeries) { var total = coreUtils.getSeriesTotalByIndex(i); if (total === 0 && coreUtils.seriesHaveSameValues(i) && !coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { elLegend.classList.add('apexcharts-hidden-zero-series'); } } if (!w.config.legend.showForNullSeries) { if (coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { elLegend.classList.add('apexcharts-hidden-null-series'); } } w.globals.dom.elLegendWrap.appendChild(elLegend); w.globals.dom.elLegendWrap.classList.add(w.config.legend.horizontalAlign); // w.globals.dom.elLegendWrap.classList.add(w.config.legend.verticalAlign) w.globals.dom.elLegendWrap.classList.add('position-' + w.config.legend.position); elLegend.classList.add('apexcharts-legend-series'); elLegend.style.margin = "".concat(w.config.legend.itemMargin.horizontal, "px ").concat(w.config.legend.itemMargin.vertical, "px"); w.globals.dom.elLegendWrap.style.width = w.config.legend.width ? w.config.legend.width + 'px' : ''; w.globals.dom.elLegendWrap.style.height = w.config.legend.height ? w.config.legend.height + 'px' : ''; Graphics.setAttrs(elLegend, { rel: i + 1, 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries }); if (collapsedSeries || ancillaryCollapsedSeries) { elLegend.classList.add('inactive-legend'); } if (!w.config.legend.onItemClick.toggleDataSeries) { elLegend.classList.add('no-click'); } } // for now - just prevent click on heatmap legend - and allow hover only var clickAllowed = w.config.chart.type !== 'heatmap'; if (clickAllowed && w.config.legend.onItemClick.toggleDataSeries) { w.globals.dom.elWrap.addEventListener('click', self.onLegendClick, true); } if (w.config.legend.onItemHover.highlightDataSeries) { w.globals.dom.elWrap.addEventListener('mousemove', self.onLegendHovered, true); w.globals.dom.elWrap.addEventListener('mouseout', self.onLegendHovered, true); } } }, { key: "getLegendBBox", value: function getLegendBBox() { var w = this.w; var currLegendsWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); var currLegendsWrapRect = currLegendsWrap.getBoundingClientRect(); var currLegendsWrapWidth = currLegendsWrapRect.width; var currLegendsWrapHeight = currLegendsWrapRect.height; return { clwh: currLegendsWrapHeight, clww: currLegendsWrapWidth }; } }, { key: "setLegendWrapXY", value: function setLegendWrapXY(offsetX, offsetY) { var w = this.w; var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); var legendRect = elLegendWrap.getBoundingClientRect(); var x = 0; var y = 0; if (w.config.legend.position === 'bottom') { y = y + (w.globals.svgHeight - legendRect.height / 2); } else if (w.config.legend.position === 'top') { var dim = new Dimensions(this.ctx); var titleH = dim.getTitleSubtitleCoords('title').height; var subtitleH = dim.getTitleSubtitleCoords('subtitle').height; y = y + (titleH > 0 ? titleH - 10 : 0) + (subtitleH > 0 ? subtitleH - 10 : 0); } elLegendWrap.style.position = 'absolute'; x = x + offsetX + w.config.legend.offsetX; y = y + offsetY + w.config.legend.offsetY; elLegendWrap.style.left = x + 'px'; elLegendWrap.style.top = y + 'px'; if (w.config.legend.position === 'bottom') { elLegendWrap.style.top = 'auto'; elLegendWrap.style.bottom = 10 + w.config.legend.offsetY + 'px'; } else if (w.config.legend.position === 'right') { elLegendWrap.style.left = 'auto'; elLegendWrap.style.right = 25 + w.config.legend.offsetX + 'px'; } if (elLegendWrap.style.width) { elLegendWrap.style.width = parseInt(w.config.legend.width) + 'px'; } if (elLegendWrap.style.height) { elLegendWrap.style.height = parseInt(w.config.legend.height) + 'px'; } } }, { key: "legendAlignHorizontal", value: function legendAlignHorizontal() { var w = this.w; var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); elLegendWrap.style.right = 0; var lRect = this.getLegendBBox(); var dimensions = new Dimensions(this.ctx); var titleRect = dimensions.getTitleSubtitleCoords('title'); var subtitleRect = dimensions.getTitleSubtitleCoords('subtitle'); var offsetX = 20; var offsetY = 0; // the whole legend box is set to bottom if (w.config.legend.position === 'bottom') { offsetY = -lRect.clwh / 1.8; } else if (w.config.legend.position === 'top') { offsetY = titleRect.height + subtitleRect.height + w.config.title.margin + w.config.subtitle.margin - 15; } this.setLegendWrapXY(offsetX, offsetY); } }, { key: "legendAlignVertical", value: function legendAlignVertical() { var w = this.w; var lRect = this.getLegendBBox(); var offsetY = 20; var offsetX = 0; if (w.config.legend.position === 'left') { offsetX = 20; } if (w.config.legend.position === 'right') { offsetX = w.globals.svgWidth - lRect.clww - 10; } this.setLegendWrapXY(offsetX, offsetY); } }, { key: "onLegendHovered", value: function onLegendHovered(e) { var w = this.w; var hoverOverLegend = e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker'); if (w.config.chart.type !== 'heatmap') { if (!e.target.classList.contains('inactive-legend') && hoverOverLegend) { var series = new Series(this.ctx); series.toggleSeriesOnHover(e, e.target); } } else { // for heatmap handling if (hoverOverLegend) { var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; this.ctx.fireEvent('legendHover', [this.ctx, seriesCnt, this.w]); var _series = new Series(this.ctx); _series.highlightRangeInSeries(e, e.target); } } } }, { key: "onLegendClick", value: function onLegendClick(e) { if (e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker')) { var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; var isHidden = e.target.getAttribute('data:collapsed') === 'true'; var legendClick = this.w.config.chart.events.legendClick; if (typeof legendClick === 'function') { legendClick(this.ctx, seriesCnt, this.w); } this.ctx.fireEvent('legendClick', [this.ctx, seriesCnt, this.w]); var markerClick = this.w.config.legend.markers.onClick; if (typeof markerClick === 'function' && e.target.classList.contains('apexcharts-legend-marker')) { markerClick(this.ctx, seriesCnt, this.w); this.ctx.fireEvent('legendMarkerClick', [this.ctx, seriesCnt, this.w]); } this.toggleDataSeries(seriesCnt, isHidden); } } }, { key: "getLegendStyles", value: function getLegendStyles() { var stylesheet = document.createElement('style'); stylesheet.setAttribute('type', 'text/css'); var text = "\n \n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n flex-direction: column;\n bottom: 0;\n }\n\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n justify-content: flex-start;\n }\n\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\n justify-content: center; \n }\n\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\n justify-content: flex-end;\n }\n\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n }\n \n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\n display: inline-block;\n }\n\n .apexcharts-legend-series.no-click {\n cursor: auto;\n }\n\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n\n .inactive-legend {\n opacity: 0.45;\n }"; var rules = document.createTextNode(text); stylesheet.appendChild(rules); return stylesheet; } }, { key: "toggleDataSeries", value: function toggleDataSeries(seriesCnt, isHidden) { var w = this.w; if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { w.globals.resized = true; // we don't want initial animations again var seriesEl = null; var realIndex = null; // yes, make it null. 1 series will rise at a time w.globals.risingSeries = []; if (w.globals.axisCharts) { seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); realIndex = parseInt(seriesEl.getAttribute('data:realIndex')); } else { seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); realIndex = parseInt(seriesEl.getAttribute('rel')) - 1; } if (isHidden) { this.riseCollapsedSeries(w.globals.collapsedSeries, w.globals.collapsedSeriesIndices, realIndex); this.riseCollapsedSeries(w.globals.ancillaryCollapsedSeries, w.globals.ancillaryCollapsedSeriesIndices, realIndex); } else { if (w.globals.axisCharts) { var shouldNotHideYAxis = false; if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].show && w.config.yaxis[realIndex].showAlways) { shouldNotHideYAxis = true; if (w.globals.ancillaryCollapsedSeriesIndices.indexOf(realIndex) < 0) { w.globals.ancillaryCollapsedSeries.push({ index: realIndex, data: w.config.series[realIndex].data.slice(), type: seriesEl.parentNode.className.baseVal.split('-')[1] }); w.globals.ancillaryCollapsedSeriesIndices.push(realIndex); } } if (!shouldNotHideYAxis) { w.globals.collapsedSeries.push({ index: realIndex, data: w.config.series[realIndex].data.slice(), type: seriesEl.parentNode.className.baseVal.split('-')[1] }); w.globals.collapsedSeriesIndices.push(realIndex); var removeIndexOfRising = w.globals.risingSeries.indexOf(realIndex); w.globals.risingSeries.splice(removeIndexOfRising, 1); } // TODO: AVOID mutating the user's config object below w.config.series[realIndex].data = []; } else { w.globals.collapsedSeries.push({ index: realIndex, data: w.config.series[realIndex] }); w.globals.collapsedSeriesIndices.push(realIndex); w.config.series[realIndex] = 0; } var seriesChildren = seriesEl.childNodes; for (var sc = 0; sc < seriesChildren.length; sc++) { if (seriesChildren[sc].classList.contains('apexcharts-series-markers-wrap')) { if (seriesChildren[sc].classList.contains('apexcharts-hide')) { seriesChildren[sc].classList.remove('apexcharts-hide'); } else { seriesChildren[sc].classList.add('apexcharts-hide'); } } } w.globals.allSeriesCollapsed = w.globals.collapsedSeries.length === w.globals.series.length; this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); } } else { // for non-axis charts i.e pie / donuts var _seriesEl = w.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); var type = w.config.chart.type; if (type === 'pie' || type === 'donut') { var dataLabels = w.config.plotOptions.pie.donut.labels; var graphics = new Graphics(this.ctx); var pie = new Pie(this.ctx); graphics.pathMouseDown(_seriesEl.members[0], null); pie.printDataLabelsInner(_seriesEl.members[0].node, dataLabels); } _seriesEl.fire('click'); } } }, { key: "riseCollapsedSeries", value: function riseCollapsedSeries(series, seriesIndices, realIndex) { var w = this.w; if (series.length > 0) { for (var c = 0; c < series.length; c++) { if (series[c].index === realIndex) { if (w.globals.axisCharts) { w.config.series[realIndex].data = series[c].data.slice(); series.splice(c, 1); seriesIndices.splice(c, 1); w.globals.risingSeries.push(realIndex); } else { w.config.series[realIndex] = series[c].data; series.splice(c, 1); seriesIndices.splice(c, 1); w.globals.risingSeries.push(realIndex); } this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); } } } } }]); return Legend; }(); /** * ApexCharts Line Class responsible for drawing Line / Area Charts. * This class is also responsible for generating values for Bubble/Scatter charts, so need to rename it to Axis Charts to avoid confusions * @module Line **/ var Line = /*#__PURE__*/ function () { function Line(ctx, xyRatios, isPointsChart) { _classCallCheck(this, Line); this.ctx = ctx; this.w = ctx.w; this.xyRatios = xyRatios; this.pointsChart = !(this.w.config.chart.type !== 'bubble' && this.w.config.chart.type !== 'scatter') || isPointsChart; this.scatter = new Scatter(this.ctx); this.noNegatives = this.w.globals.minX === Number.MAX_VALUE; this.yaxisIndex = 0; } _createClass(Line, [{ key: "draw", value: function draw(series, ptype, seriesIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var fill = new Fill(this.ctx); var type = w.globals.comboCharts ? ptype : w.config.chart.type; var ret = graphics.group({ class: "apexcharts-".concat(type, "-series apexcharts-plot-series") }); var coreUtils = new CoreUtils(this.ctx, w); series = coreUtils.getLogSeries(series); var yRatio = this.xyRatios.yRatio; yRatio = coreUtils.getLogYRatios(yRatio); var zRatio = this.xyRatios.zRatio; var xRatio = this.xyRatios.xRatio; var baseLineY = this.xyRatios.baseLineY; // push all series in an array, so we can draw in reverse order (for stacked charts) var allSeries = []; var prevSeriesY = []; var categoryAxisCorrection = 0; for (var i = 0; i < series.length; i++) { // width divided into equal parts if (type === 'line' && (w.config.fill.type === 'gradient' || w.config.fill.type[i] === 'gradient')) { // a small adjustment to allow gradient line to draw correctly for all same values /* #fix https://github.com/apexcharts/apexcharts.js/issues/358 */ if (coreUtils.seriesHaveSameValues(i)) { var gSeries = series[i].slice(); gSeries[gSeries.length - 1] = gSeries[gSeries.length - 1] + 0.000001; series[i] = gSeries; } } var xDivision = w.globals.gridWidth / w.globals.dataPoints; var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; if (yRatio.length > 1) { this.yaxisIndex = realIndex; } this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; var yArrj = []; // hold y values of current iterating series var xArrj = []; // hold x values of current iterating series // zeroY is the 0 value in y series which can be used in negative charts var zeroY = w.globals.gridHeight - baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? baseLineY[this.yaxisIndex] * 2 : 0); var areaBottomY = zeroY; if (zeroY > w.globals.gridHeight) { areaBottomY = w.globals.gridHeight; } categoryAxisCorrection = xDivision / 2; var x = w.globals.padHorizontal + categoryAxisCorrection; var y = 1; if (w.globals.isXNumeric && w.globals.seriesX.length > 0) { x = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio; } xArrj.push(x); var linePath = void 0, areaPath = void 0, pathFromLine = void 0, pathFromArea = void 0; var linePaths = []; var areaPaths = []; // el to which series will be drawn var elSeries = graphics.group({ class: "apexcharts-series", seriesName: Utils.escapeString(w.globals.seriesNames[realIndex]) }); // points var elPointsMain = graphics.group({ class: 'apexcharts-series-markers-wrap' }); // eldatalabels var elDataLabelsWrap = graphics.group({ class: 'apexcharts-datalabels' }); this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); var longestSeries = series[i].length === w.globals.dataPoints; elSeries.attr({ 'data:longestSeries': longestSeries, rel: i + 1, 'data:realIndex': realIndex }); this.appendPathFrom = true; var pX = x; var pY = void 0; var prevX = pX; var prevY = zeroY; // w.globals.svgHeight; var lineYPosition = 0; // the first value in the current series is not null or undefined var firstPrevY = this.determineFirstPrevY({ i: i, series: series, yRatio: yRatio[this.yaxisIndex], zeroY: zeroY, prevY: prevY, prevSeriesY: prevSeriesY, lineYPosition: lineYPosition }); prevY = firstPrevY.prevY; yArrj.push(prevY); pY = prevY; if (series[i][0] === null) { // when the first value itself is null, we need to move the pointer to a location where a null value is not found for (var s = 0; s < series[i].length; s++) { if (series[i][s] !== null) { prevX = xDivision * s; prevY = zeroY - series[i][s] / yRatio[this.yaxisIndex]; linePath = graphics.move(prevX, prevY); areaPath = graphics.move(prevX, areaBottomY); break; } } } else { linePath = graphics.move(prevX, prevY); areaPath = graphics.move(prevX, areaBottomY) + graphics.line(prevX, prevY); } pathFromLine = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); pathFromArea = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); if (w.globals.previousPaths.length > 0) { var pathFrom = this.checkPreviousPaths({ pathFromLine: pathFromLine, pathFromArea: pathFromArea, realIndex: realIndex }); pathFromLine = pathFrom.pathFromLine; pathFromArea = pathFrom.pathFromArea; } var iterations = w.globals.dataPoints > 1 ? w.globals.dataPoints - 1 : w.globals.dataPoints; for (var j = 0; j < iterations; j++) { if (w.globals.isXNumeric) { var sX = w.globals.seriesX[realIndex][j + 1]; if (typeof w.globals.seriesX[realIndex][j + 1] === 'undefined') { /* fix #374 */ sX = w.globals.seriesX[realIndex][iterations - 1]; } x = (sX - w.globals.minX) / xRatio; } else { x = x + xDivision; } var minY = Utils.isNumber(w.globals.minYArr[realIndex]) ? w.globals.minYArr[realIndex] : w.globals.minY; if (w.config.chart.stacked) { if (i > 0 && w.globals.collapsedSeries.length < w.config.series.length - 1) { lineYPosition = prevSeriesY[i - 1][j + 1]; } else { // the first series will not have prevY values lineYPosition = zeroY; } if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { y = lineYPosition - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; } else { y = lineYPosition - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; } } else { if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { y = zeroY - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; } else { y = zeroY - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; } } // push current X xArrj.push(x); // push current Y that will be used as next series's bottom position yArrj.push(y); var calculatedPaths = this.createPaths({ series: series, i: i, j: j, x: x, y: y, xDivision: xDivision, pX: pX, pY: pY, areaBottomY: areaBottomY, linePath: linePath, areaPath: areaPath, linePaths: linePaths, areaPaths: areaPaths, seriesIndex: seriesIndex }); areaPaths = calculatedPaths.areaPaths; linePaths = calculatedPaths.linePaths; pX = calculatedPaths.pX; pY = calculatedPaths.pY; areaPath = calculatedPaths.areaPath; linePath = calculatedPaths.linePath; if (this.appendPathFrom) { pathFromLine = pathFromLine + graphics.line(x, zeroY); pathFromArea = pathFromArea + graphics.line(x, zeroY); } var pointsPos = this.calculatePoints({ series: series, x: x, y: y, realIndex: realIndex, i: i, j: j, prevY: prevY, categoryAxisCorrection: categoryAxisCorrection, xRatio: xRatio }); if (!this.pointsChart) { var markers = new Markers(this.ctx); if (w.globals.dataPoints > 1) { elPointsMain.node.classList.add('hidden'); } var elPointsWrap = markers.plotChartMarkers(pointsPos, realIndex, j + 1); if (elPointsWrap !== null) { elPointsMain.add(elPointsWrap); } } else { // scatter / bubble chart points creation this.scatter.draw(elSeries, j, { realIndex: realIndex, pointsPos: pointsPos, zRatio: zRatio, elParent: elPointsMain }); } var dataLabelAlign = !series[i][j + 1] || series[i][j + 1] > series[i][j] ? 'top' : 'bottom'; var dataLabels = new DataLabels(this.ctx); var drawnLabels = dataLabels.drawDataLabel(pointsPos, realIndex, j + 1, null, dataLabelAlign); if (drawnLabels !== null) { elDataLabelsWrap.add(drawnLabels); } } // push all current y values array to main PrevY Array prevSeriesY.push(yArrj); // push all x val arrays into main xArr w.globals.seriesXvalues[realIndex] = xArrj; w.globals.seriesYvalues[realIndex] = yArrj; // these elements will be shown after area path animation completes if (!this.pointsChart) { w.globals.delayedElements.push({ el: elPointsMain.node, index: realIndex }); } var defaultRenderedPathOptions = { i: i, realIndex: realIndex, animationDelay: i, initialSpeed: w.config.chart.animations.speed, dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, className: "apexcharts-".concat(type) }; if (type === 'area') { var pathFill = fill.fillPath({ seriesNumber: realIndex }); for (var p = 0; p < areaPaths.length; p++) { var renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { pathFrom: pathFromArea, pathTo: areaPaths[p], stroke: 'none', strokeWidth: 0, strokeLineCap: null, fill: pathFill })); elSeries.add(renderedPath); } } if (w.config.stroke.show && !this.pointsChart) { var lineFill = null; if (type === 'line') { // fillable lines only for lineChart lineFill = fill.fillPath({ seriesNumber: realIndex, i: i }); } else { lineFill = w.globals.stroke.colors[realIndex]; } for (var _p = 0; _p < linePaths.length; _p++) { var _renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { pathFrom: pathFromLine, pathTo: linePaths[_p], stroke: lineFill, strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[realIndex] : w.config.stroke.width, strokeLineCap: w.config.stroke.lineCap, fill: 'none' })); elSeries.add(_renderedPath); } } elSeries.add(elPointsMain); elSeries.add(elDataLabelsWrap); allSeries.push(elSeries); } for (var _s = allSeries.length; _s > 0; _s--) { ret.add(allSeries[_s - 1]); } return ret; } }, { key: "createPaths", value: function createPaths(_ref) { var series = _ref.series, i = _ref.i, j = _ref.j, x = _ref.x, y = _ref.y, pX = _ref.pX, pY = _ref.pY, xDivision = _ref.xDivision, areaBottomY = _ref.areaBottomY, linePath = _ref.linePath, areaPath = _ref.areaPath, linePaths = _ref.linePaths, areaPaths = _ref.areaPaths, seriesIndex = _ref.seriesIndex; var w = this.w; var graphics = new Graphics(this.ctx); var curve = w.config.stroke.curve; if (Array.isArray(w.config.stroke.curve)) { if (Array.isArray(seriesIndex)) { curve = w.config.stroke.curve[seriesIndex[i]]; } else { curve = w.config.stroke.curve[i]; } } // logic of smooth curve derived from chartist // CREDITS: https://gionkunz.github.io/chartist-js/ if (curve === 'smooth') { var length = (x - pX) * 0.35; if (w.globals.hasNullValues) { if (series[i][j] !== null) { if (series[i][j + 1] !== null) { linePath = graphics.move(pX, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y); areaPath = graphics.move(pX + 1, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y) + graphics.line(x, areaBottomY) + graphics.line(pX, areaBottomY) + 'z'; } else { linePath = graphics.move(pX, pY); areaPath = graphics.move(pX, pY) + 'z'; } } linePaths.push(linePath); areaPaths.push(areaPath); } else { linePath = linePath + graphics.curve(pX + length, pY, x - length, y, x, y); areaPath = areaPath + graphics.curve(pX + length, pY, x - length, y, x, y); } pX = x; pY = y; if (j === series[i].length - 2) { // last loop, close path areaPath = areaPath + graphics.curve(pX, pY, x, y, x, areaBottomY) + graphics.move(x, y) + 'z'; if (!w.globals.hasNullValues) { linePaths.push(linePath); areaPaths.push(areaPath); } } } else { if (series[i][j + 1] === null) { linePath = linePath + graphics.move(x, y); areaPath = areaPath + graphics.line(x - xDivision, areaBottomY) + graphics.move(x, y); } if (series[i][j] === null) { linePath = linePath + graphics.move(x, y); areaPath = areaPath + graphics.move(x, areaBottomY); } if (curve === 'stepline') { linePath = linePath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); areaPath = areaPath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); } else if (curve === 'straight') { linePath = linePath + graphics.line(x, y); areaPath = areaPath + graphics.line(x, y); } if (j === series[i].length - 2) { // last loop, close path areaPath = areaPath + graphics.line(x, areaBottomY) + graphics.move(x, y) + 'z'; linePaths.push(linePath); areaPaths.push(areaPath); } } return { linePaths: linePaths, areaPaths: areaPaths, pX: pX, pY: pY, linePath: linePath, areaPath: areaPath }; } }, { key: "calculatePoints", value: function calculatePoints(_ref2) { var series = _ref2.series, realIndex = _ref2.realIndex, x = _ref2.x, y = _ref2.y, i = _ref2.i, j = _ref2.j, prevY = _ref2.prevY, categoryAxisCorrection = _ref2.categoryAxisCorrection, xRatio = _ref2.xRatio; var w = this.w; var ptX = []; var ptY = []; if (j === 0) { var xPT1st = categoryAxisCorrection + w.config.markers.offsetX; // the first point for line series // we need to check whether it's not a time series, because a time series may // start from the middle of the x axis if (w.globals.isXNumeric) { xPT1st = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio + w.config.markers.offsetX; } // push 2 points for the first data values ptX.push(xPT1st); ptY.push(Utils.isNumber(series[i][0]) ? prevY + w.config.markers.offsetY : null); ptX.push(x + w.config.markers.offsetX); ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); } else { ptX.push(x + w.config.markers.offsetX); ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); } var pointsPos = { x: ptX, y: ptY }; return pointsPos; } }, { key: "checkPreviousPaths", value: function checkPreviousPaths(_ref3) { var pathFromLine = _ref3.pathFromLine, pathFromArea = _ref3.pathFromArea, realIndex = _ref3.realIndex; var w = this.w; for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { var gpp = w.globals.previousPaths[pp]; if ((gpp.type === 'line' || gpp.type === 'area') && gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { if (gpp.type === 'line') { this.appendPathFrom = false; pathFromLine = w.globals.previousPaths[pp].paths[0].d; } else if (gpp.type === 'area') { this.appendPathFrom = false; pathFromArea = w.globals.previousPaths[pp].paths[0].d; if (w.config.stroke.show) { pathFromLine = w.globals.previousPaths[pp].paths[1].d; } } } } return { pathFromLine: pathFromLine, pathFromArea: pathFromArea }; } }, { key: "determineFirstPrevY", value: function determineFirstPrevY(_ref4) { var i = _ref4.i, series = _ref4.series, yRatio = _ref4.yRatio, zeroY = _ref4.zeroY, prevY = _ref4.prevY, prevSeriesY = _ref4.prevSeriesY, lineYPosition = _ref4.lineYPosition; var w = this.w; if (typeof series[i][0] !== 'undefined') { if (w.config.chart.stacked) { if (i > 0) { // 1st y value of previous series lineYPosition = prevSeriesY[i - 1][0]; } else { // the first series will not have prevY values lineYPosition = zeroY; } prevY = lineYPosition - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; } else { prevY = zeroY - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; } } else { // the first value in the current series is null if (w.config.chart.stacked && i > 0 && typeof series[i][0] === 'undefined') { // check for undefined value (undefined value will occur when we clear the series while user clicks on legend to hide serieses) for (var s = i - 1; s >= 0; s--) { // for loop to get to 1st previous value until we get it if (series[s][0] !== null && typeof series[s][0] !== 'undefined') { lineYPosition = prevSeriesY[s][0]; prevY = lineYPosition; break; } } } } return { prevY: prevY, lineYPosition: lineYPosition }; } }]); return Line; }(); /** * ApexCharts XAxis Class for drawing X-Axis. * * @module XAxis **/ var XAxis = /*#__PURE__*/ function () { function XAxis(ctx) { _classCallCheck(this, XAxis); this.ctx = ctx; this.w = ctx.w; var w = this.w; this.xaxisLabels = w.globals.labels.slice(); if (w.globals.timelineLabels.length > 0) { // timeline labels are there this.xaxisLabels = w.globals.timelineLabels.slice(); } this.drawnLabels = []; if (w.config.xaxis.position === 'top') { this.offY = 0; } else { this.offY = w.globals.gridHeight + 1; } this.offY = this.offY + w.config.xaxis.axisBorder.offsetY; this.xaxisFontSize = w.config.xaxis.labels.style.fontSize; this.xaxisFontFamily = w.config.xaxis.labels.style.fontFamily; this.xaxisForeColors = w.config.xaxis.labels.style.colors; this.xaxisBorderWidth = w.config.xaxis.axisBorder.width; if (this.xaxisBorderWidth.indexOf('%') > -1) { this.xaxisBorderWidth = w.globals.gridWidth * parseInt(this.xaxisBorderWidth) / 100; } else { this.xaxisBorderWidth = parseInt(this.xaxisBorderWidth); } this.xaxisBorderHeight = w.config.xaxis.axisBorder.height; // For bars, we will only consider single y xais, // as we are not providing multiple yaxis for bar charts this.yaxis = w.config.yaxis[0]; this.axesUtils = new AxesUtils(ctx); } _createClass(XAxis, [{ key: "drawXaxis", value: function drawXaxis() { var w = this.w; var graphics = new Graphics(this.ctx); var elXaxis = graphics.group({ class: 'apexcharts-xaxis', transform: "translate(".concat(w.config.xaxis.offsetX, ", ").concat(w.config.xaxis.offsetY, ")") }); var elXaxisTexts = graphics.group({ class: 'apexcharts-xaxis-texts-g', transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") }); elXaxis.add(elXaxisTexts); var colWidth; // initial x Position (keep adding column width in the loop) var xPos = w.globals.padHorizontal; var labels = []; for (var i = 0; i < this.xaxisLabels.length; i++) { labels.push(this.xaxisLabels[i]); } if (w.globals.isXNumeric) { colWidth = w.globals.gridWidth / (labels.length - 1); xPos = xPos + colWidth / 2 + w.config.xaxis.labels.offsetX; } else { colWidth = w.globals.gridWidth / labels.length; xPos = xPos + colWidth + w.config.xaxis.labels.offsetX; } var labelsLen = labels.length; if (w.config.xaxis.labels.show) { for (var _i = 0; _i <= labelsLen - 1; _i++) { var x = xPos - colWidth / 2 + w.config.xaxis.labels.offsetX; var label = this.axesUtils.getLabel(labels, w.globals.timelineLabels, x, _i, this.drawnLabels); this.drawnLabels.push(label.text); var offsetYCorrection = 28; if (w.globals.rotateXLabels) { offsetYCorrection = 22; } var elTick = graphics.drawText({ x: label.x, y: this.offY + w.config.xaxis.labels.offsetY + offsetYCorrection, text: '', textAnchor: 'middle', fontWeight: label.isBold ? 600 : 400, fontSize: this.xaxisFontSize, fontFamily: this.xaxisFontFamily, foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[_i] : this.xaxisForeColors, cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass }); if (_i === labelsLen - 1) { if (w.globals.skipLastTimelinelabel) { label.text = ''; } } elXaxisTexts.add(elTick); graphics.addTspan(elTick, label.text, this.xaxisFontFamily); var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); elTooltipTitle.textContent = label.text; elTick.node.appendChild(elTooltipTitle); xPos = xPos + colWidth; } } if (w.config.xaxis.title.text !== undefined) { var elXaxisTitle = graphics.group({ class: 'apexcharts-xaxis-title' }); var elXAxisTitleText = graphics.drawText({ x: w.globals.gridWidth / 2 + w.config.xaxis.title.offsetX, y: this.offY - parseInt(this.xaxisFontSize) + w.globals.xAxisLabelsHeight + w.config.xaxis.title.offsetY, text: w.config.xaxis.title.text, textAnchor: 'middle', fontSize: w.config.xaxis.title.style.fontSize, fontFamily: w.config.xaxis.title.style.fontFamily, foreColor: w.config.xaxis.title.style.color, cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass }); elXaxisTitle.add(elXAxisTitleText); elXaxis.add(elXaxisTitle); } if (w.config.xaxis.axisBorder.show) { var lineCorrection = 0; if (w.config.chart.type === 'bar' && w.globals.isXNumeric) { lineCorrection = lineCorrection - 15; } var elHorzLine = graphics.drawLine(w.globals.padHorizontal + lineCorrection + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, w.config.xaxis.axisBorder.color, 0, this.xaxisBorderHeight); elXaxis.add(elHorzLine); } return elXaxis; } // this actually becomes the vertical axis (for bar charts) }, { key: "drawXaxisInversed", value: function drawXaxisInversed(realIndex) { var w = this.w; var graphics = new Graphics(this.ctx); var translateYAxisX = w.config.yaxis[0].opposite ? w.globals.translateYAxisX[realIndex] : 0; var elYaxis = graphics.group({ class: 'apexcharts-yaxis apexcharts-xaxis-inversed', rel: realIndex }); var elYaxisTexts = graphics.group({ class: 'apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g', transform: 'translate(' + translateYAxisX + ', 0)' }); elYaxis.add(elYaxisTexts); var colHeight; // initial x Position (keep adding column width in the loop) var yPos; var labels = []; for (var i = 0; i < this.xaxisLabels.length; i++) { labels.push(this.xaxisLabels[i]); } colHeight = w.globals.gridHeight / labels.length; yPos = -(colHeight / 2.2); var lbFormatter = w.globals.yLabelFormatters[0]; var ylabels = w.config.yaxis[0].labels; if (ylabels.show) { for (var _i2 = 0; _i2 <= labels.length - 1; _i2++) { var label = typeof labels[_i2] === 'undefined' ? '' : labels[_i2]; label = lbFormatter(label); var elLabel = graphics.drawText({ x: ylabels.offsetX - 15, y: yPos + colHeight + ylabels.offsetY, text: label, textAnchor: this.yaxis.opposite ? 'start' : 'end', foreColor: ylabels.style.color ? ylabels.style.color : ylabels.style.colors[_i2], fontSize: ylabels.style.fontSize, fontFamily: ylabels.style.fontFamily, cssClass: 'apexcharts-yaxis-label ' + ylabels.style.cssClass }); elYaxisTexts.add(elLabel); if (w.config.yaxis[realIndex].labels.rotate !== 0) { var labelRotatingCenter = graphics.rotateAroundCenter(elLabel.node); elLabel.node.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].labels.rotate, " ").concat(labelRotatingCenter.x, " ").concat(labelRotatingCenter.y, ")")); } yPos = yPos + colHeight; } } if (w.config.yaxis[0].title.text !== undefined) { var elXaxisTitle = graphics.group({ class: 'apexcharts-yaxis-title apexcharts-xaxis-title-inversed', transform: 'translate(' + translateYAxisX + ', 0)' }); var elXAxisTitleText = graphics.drawText({ x: 0, y: w.globals.gridHeight / 2, text: w.config.yaxis[0].title.text, textAnchor: 'middle', foreColor: w.config.yaxis[0].title.style.color, fontSize: w.config.yaxis[0].title.style.fontSize, fontFamily: w.config.yaxis[0].title.style.fontFamily, cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[0].title.style.cssClass }); elXaxisTitle.add(elXAxisTitleText); elYaxis.add(elXaxisTitle); } if (w.config.xaxis.axisBorder.show) { var elHorzLine = graphics.drawLine(w.globals.padHorizontal + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, this.yaxis.axisBorder.color, 0, this.xaxisBorderHeight); elYaxis.add(elHorzLine); this.axesUtils.drawYAxisTicks(0, labels.length, w.config.yaxis[0].axisBorder, w.config.yaxis[0].axisTicks, 0, colHeight, elYaxis); } return elYaxis; } }, { key: "drawXaxisTicks", value: function drawXaxisTicks(x1, appendToElement) { var w = this.w; var x2 = x1; if (x1 < 0 || x1 > w.globals.gridWidth) return; var y1 = this.offY + w.config.xaxis.axisTicks.offsetY; var y2 = y1 + w.config.xaxis.axisTicks.height; if (w.config.xaxis.axisTicks.show) { var graphics = new Graphics(this.ctx); var line = graphics.drawLine(x1 + w.config.xaxis.axisTicks.offsetX, y1 + w.config.xaxis.offsetY, x2 + w.config.xaxis.axisTicks.offsetX, y2 + w.config.xaxis.offsetY, w.config.xaxis.axisTicks.color); // we are not returning anything, but appending directly to the element pased in param appendToElement.add(line); line.node.classList.add('apexcharts-xaxis-tick'); } } }, { key: "getXAxisTicksPositions", value: function getXAxisTicksPositions() { var w = this.w; var xAxisTicksPositions = []; var xCount = this.xaxisLabels.length; var x1 = w.globals.padHorizontal; if (w.globals.timelineLabels.length > 0) { for (var i = 0; i < xCount; i++) { x1 = this.xaxisLabels[i].position; xAxisTicksPositions.push(x1); } } else { var xCountForCategoryCharts = xCount; for (var _i3 = 0; _i3 < xCountForCategoryCharts; _i3++) { var x1Count = xCountForCategoryCharts; if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { x1Count -= 1; } x1 = x1 + w.globals.gridWidth / x1Count; xAxisTicksPositions.push(x1); } } return xAxisTicksPositions; } // to rotate x-axis labels or to put ... for longer text in xaxis }, { key: "xAxisLabelCorrections", value: function xAxisLabelCorrections() { var w = this.w; var graphics = new Graphics(this.ctx); var xAxis = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g'); var xAxisTexts = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-texts-g text'); var yAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-inversed text'); var xAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-inversed-texts-g text'); if (w.globals.rotateXLabels || w.config.xaxis.labels.rotateAlways) { for (var xat = 0; xat < xAxisTexts.length; xat++) { var textRotatingCenter = graphics.rotateAroundCenter(xAxisTexts[xat]); textRotatingCenter.y = textRotatingCenter.y - 1; // + tickWidth/4; textRotatingCenter.x = textRotatingCenter.x + 1; xAxisTexts[xat].setAttribute('transform', "rotate(".concat(w.config.xaxis.labels.rotate, " ").concat(textRotatingCenter.x, " ").concat(textRotatingCenter.y, ")")); xAxisTexts[xat].setAttribute('text-anchor', "end"); var offsetHeight = 10; xAxis.setAttribute('transform', "translate(0, ".concat(-offsetHeight, ")")); var tSpan = xAxisTexts[xat].childNodes; if (w.config.xaxis.labels.trim) { graphics.placeTextWithEllipsis(tSpan[0], tSpan[0].textContent, w.config.xaxis.labels.maxHeight - 40); } } } else { var width = w.globals.gridWidth / w.globals.labels.length; for (var _xat = 0; _xat < xAxisTexts.length; _xat++) { var _tSpan = xAxisTexts[_xat].childNodes; if (w.config.xaxis.labels.trim && w.config.xaxis.type !== 'datetime') { graphics.placeTextWithEllipsis(_tSpan[0], _tSpan[0].textContent, width); } } } if (yAxisTextsInversed.length > 0) { // truncate rotated y axis in bar chart (x axis) var firstLabelPosX = yAxisTextsInversed[yAxisTextsInversed.length - 1].getBBox(); var lastLabelPosX = yAxisTextsInversed[0].getBBox(); if (firstLabelPosX.x < -20) { yAxisTextsInversed[yAxisTextsInversed.length - 1].parentNode.removeChild(yAxisTextsInversed[yAxisTextsInversed.length - 1]); } if (lastLabelPosX.x + lastLabelPosX.width > w.globals.gridWidth) { yAxisTextsInversed[0].parentNode.removeChild(yAxisTextsInversed[0]); } // truncate rotated x axis in bar chart (y axis) for (var _xat2 = 0; _xat2 < xAxisTextsInversed.length; _xat2++) { graphics.placeTextWithEllipsis(xAxisTextsInversed[_xat2], xAxisTextsInversed[_xat2].textContent, w.config.yaxis[0].labels.maxWidth - parseInt(w.config.yaxis[0].title.style.fontSize) * 2 - 20); } } } // renderXAxisBands() { // let w = this.w; // let plotBand = document.createElementNS(w.globals.SVGNS, 'rect') // w.globals.dom.elGraphical.add(plotBand) // } }]); return XAxis; }(); var Range = /*#__PURE__*/ function () { function Range(ctx) { _classCallCheck(this, Range); this.ctx = ctx; this.w = ctx.w; } // http://stackoverflow.com/questions/326679/choosing-an-attractive-linear-scale-for-a-graphs-y-axiss // This routine creates the Y axis values for a graph. _createClass(Range, [{ key: "niceScale", value: function niceScale(yMin, yMax, diff) { var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; var ticks = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 10; var w = this.w; var NO_MIN_MAX_PROVIDED = this.w.config.yaxis[index].max === undefined && this.w.config.yaxis[index].min === undefined || this.w.config.yaxis[index].forceNiceScale; if (yMin === Number.MIN_VALUE && yMax === 0 || !Utils.isNumber(yMin) && !Utils.isNumber(yMax) || yMin === Number.MIN_VALUE && yMax === -Number.MAX_VALUE) { // when all values are 0 yMin = 0; yMax = ticks; var linearScale = this.linearScale(yMin, yMax, ticks); return linearScale; } if (yMin > yMax) { // if somehow due to some wrong config, user sent max less than min, // adjust the min/max again console.warn('yaxis.min cannot be greater than yaxis.max'); yMax = yMin + 0.1; } else if (yMin === yMax) { // If yMin and yMax are identical, then // adjust the yMin and yMax values to actually // make a graph. Also avoids division by zero errors. yMin = yMin === 0 ? 0 : yMin - 0.5; // some small value yMax = yMax === 0 ? 2 : yMax + 0.5; // some small value } // Calculate Min amd Max graphical labels and graph // increments. The number of ticks defaults to // 10 which is the SUGGESTED value. Any tick value // entered is used as a suggested value which is // adjusted to be a 'pretty' value. // // Output will be an array of the Y axis values that // encompass the Y values. var result = []; // Determine Range var range = Math.abs(yMax - yMin); if (range < 1 && NO_MIN_MAX_PROVIDED && (w.config.chart.type === 'candlestick' || w.config.series[index].type === 'candlestick' || w.globals.isRangeData)) { /* fix https://github.com/apexcharts/apexcharts.js/issues/430 */ yMax = yMax * 1.01; } var tiks = ticks + 1; // Adjust ticks if needed if (tiks < 2) { tiks = 2; } else if (tiks > 2) { tiks -= 2; } // Get raw step value var tempStep = range / tiks; // Calculate pretty step value var mag = Math.floor(Utils.log10(tempStep)); var magPow = Math.pow(10, mag); var magMsd = Math.round(tempStep / magPow); if (magMsd < 1) { magMsd = 1; } var stepSize = magMsd * magPow; // build Y label array. // Lower and upper bounds calculations var lb = stepSize * Math.floor(yMin / stepSize); var ub = stepSize * Math.ceil(yMax / stepSize); // Build array var val = lb; if (NO_MIN_MAX_PROVIDED && range > 2) { while (1) { result.push(val); val += stepSize; if (val > ub) { break; } } return { result: result, niceMin: result[0], niceMax: result[result.length - 1] }; } else { result = []; var v = yMin; result.push(v); var valuesDivider = Math.abs(yMax - yMin) / ticks; for (var i = 0; i <= ticks; i++) { v = v + valuesDivider; result.push(v); } if (result[result.length - 2] >= yMax) { result.pop(); } return { result: result, niceMin: result[0], niceMax: result[result.length - 1] }; } } }, { key: "linearScale", value: function linearScale(yMin, yMax) { var ticks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; var range = Math.abs(yMax - yMin); var step = range / ticks; if (ticks === Number.MAX_VALUE) { ticks = 10; step = 1; } var result = []; var v = yMin; while (ticks >= 0) { result.push(v); v = v + step; ticks -= 1; } return { result: result, niceMin: result[0], niceMax: result[result.length - 1] }; } }, { key: "logarithmicScale", value: function logarithmicScale(index, yMin, yMax, ticks) { if (yMin < 0 || yMin === Number.MIN_VALUE) yMin = 0.01; var base = 10; var min = Math.log(yMin) / Math.log(base); var max = Math.log(yMax) / Math.log(base); var range = Math.abs(yMax - yMin); var step = range / ticks; var result = []; var v = yMin; while (ticks >= 0) { result.push(v); v = v + step; ticks -= 1; } var logs = result.map(function (niceNumber, i) { if (niceNumber <= 0) { niceNumber = 0.01; } // calculate adjustment factor var scale = (max - min) / (yMax - yMin); var logVal = Math.pow(base, min + scale * (niceNumber - min)); return Math.round(logVal / Utils.roundToBase(logVal, base)) * Utils.roundToBase(logVal, base); }); // Math.floor may have rounded the value to 0, revert back to 1 if (logs[0] === 0) logs[0] = 1; return { result: logs, niceMin: logs[0], niceMax: logs[logs.length - 1] }; } }, { key: "setYScaleForIndex", value: function setYScaleForIndex(index, minY, maxY) { var gl = this.w.globals; var cnf = this.w.config; var y = gl.isBarHorizontal ? cnf.xaxis : cnf.yaxis[index]; if (typeof gl.yAxisScale[index] === 'undefined') { gl.yAxisScale[index] = []; } if (y.logarithmic) { gl.allSeriesCollapsed = false; gl.yAxisScale[index] = this.logarithmicScale(index, minY, maxY, y.tickAmount ? y.tickAmount : Math.floor(Math.log10(maxY))); } else { if (maxY === -Number.MAX_VALUE || !Utils.isNumber(maxY)) { // no data in the chart. Either all series collapsed or user passed a blank array gl.yAxisScale[index] = this.linearScale(0, 5, 5); } else { // there is some data. Turn off the allSeriesCollapsed flag gl.allSeriesCollapsed = false; if ((y.min !== undefined || y.max !== undefined) && !y.forceNiceScale) { // fix https://github.com/apexcharts/apexcharts.js/issues/492 gl.yAxisScale[index] = this.linearScale(minY, maxY, y.tickAmount); } else { var diff = Math.abs(maxY - minY); gl.yAxisScale[index] = this.niceScale(minY, maxY, diff, index, // fix https://github.com/apexcharts/apexcharts.js/issues/397 y.tickAmount ? y.tickAmount : diff < 5 && diff > 1 ? diff + 1 : 5); } } } } }, { key: "setMultipleYScales", value: function setMultipleYScales() { var _this = this; var gl = this.w.globals; var cnf = this.w.config; var minYArr = gl.minYArr.concat([]); var maxYArr = gl.maxYArr.concat([]); var scalesIndices = []; // here, we loop through the yaxis array and find the item which has "seriesName" property cnf.yaxis.forEach(function (yaxe, i) { var index = i; cnf.series.forEach(function (s, si) { // if seriesName matches and that series is not collapsed, we use that scale if (s.name === yaxe.seriesName && gl.collapsedSeriesIndices.indexOf(si) === -1) { index = si; if (i !== si) { scalesIndices.push({ index: si, similarIndex: i, alreadyExists: true }); } else { scalesIndices.push({ index: si }); } } }); var minY = minYArr[index]; var maxY = maxYArr[index]; _this.setYScaleForIndex(i, minY, maxY); }); this.sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices); } }, { key: "sameScaleInMultipleAxes", value: function sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices) { var _this2 = this; var cnf = this.w.config; var gl = this.w.globals; // we got the scalesIndices array in the above code, but we need to filter out the items which doesn't have same scales var similarIndices = []; scalesIndices.forEach(function (scale) { if (scale.alreadyExists) { if (typeof similarIndices[scale.index] === 'undefined') { similarIndices[scale.index] = []; } similarIndices[scale.index].push(scale.index); similarIndices[scale.index].push(scale.similarIndex); } }); function intersect(a, b) { return a.filter(function (value) { return b.indexOf(value) !== -1; }); } gl.yAxisSameScaleIndices = similarIndices; similarIndices.forEach(function (si, i) { similarIndices.forEach(function (sj, j) { if (i !== j) { if (intersect(si, sj).length > 0) { similarIndices[i] = similarIndices[i].concat(similarIndices[j]); } } }); }); // then, we remove duplicates from the similarScale array var uniqueSimilarIndices = similarIndices.map(function (item) { return item.filter(function (i, pos) { return item.indexOf(i) === pos; }); }); // sort further to remove whole duplicate arrays later var sortedIndices = uniqueSimilarIndices.map(function (s) { return s.sort(); }); // remove undefined items similarIndices = similarIndices.filter(function (s) { return !!s; }); var indices = sortedIndices.slice(); var stringIndices = indices.map(function (ind) { return JSON.stringify(ind); }); indices = indices.filter(function (ind, p) { return stringIndices.indexOf(JSON.stringify(ind)) === p; }); var sameScaleMinYArr = []; var sameScaleMaxYArr = []; minYArr.forEach(function (minYValue, yi) { indices.forEach(function (scale, i) { // we compare only the yIndex which exists in the indices array if (scale.indexOf(yi) > -1) { if (typeof sameScaleMinYArr[i] === 'undefined') { sameScaleMinYArr[i] = []; sameScaleMaxYArr[i] = []; } sameScaleMinYArr[i].push({ key: yi, value: minYValue }); sameScaleMaxYArr[i].push({ key: yi, value: maxYArr[yi] }); } }); }); var sameScaleMin = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, Number.MIN_VALUE); var sameScaleMax = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, -Number.MAX_VALUE); sameScaleMinYArr.forEach(function (s, i) { s.forEach(function (sc, j) { sameScaleMin[i] = Math.min(sc.value, sameScaleMin[i]); }); }); sameScaleMaxYArr.forEach(function (s, i) { s.forEach(function (sc, j) { sameScaleMax[i] = Math.max(sc.value, sameScaleMax[i]); }); }); minYArr.forEach(function (min, i) { sameScaleMaxYArr.forEach(function (s, si) { var minY = sameScaleMin[si]; var maxY = sameScaleMax[si]; if (cnf.chart.stacked) { // for stacked charts, we need to add the values maxY = 0; s.forEach(function (ind, k) { maxY += ind.value; if (minY !== Number.MIN_VALUE) { minY += sameScaleMinYArr[si][k].value; } }); } s.forEach(function (ind, k) { if (s[k].key === i) { if (cnf.yaxis[i].min !== undefined) { if (typeof cnf.yaxis[i].min === 'function') { minY = cnf.yaxis[i].min(gl.minY); } else { minY = cnf.yaxis[i].min; } } if (cnf.yaxis[i].max !== undefined) { if (typeof cnf.yaxis[i].max === 'function') { maxY = cnf.yaxis[i].max(gl.maxY); } else { maxY = cnf.yaxis[i].max; } } _this2.setYScaleForIndex(i, minY, maxY); } }); }); }); } }, { key: "autoScaleY", value: function autoScaleY(ctx, yaxis, e) { if (!ctx) { ctx = this; } var w = ctx.w; if (w.globals.isMultipleYAxis || w.globals.collapsedSeries.length) { // The autoScale option for multiple y-axis is turned off as it leads to buggy behavior. // Also, when a series is collapsed, it results in incorrect behavior. Hence turned it off for that too - fixes apexcharts.js#795 return yaxis; } var seriesX = w.globals.seriesX[0]; var isStacked = w.config.chart.stacked; yaxis.forEach(function (yaxe, yI) { var firstXIndex = 0; for (var xi = 0; xi < seriesX.length; xi++) { if (seriesX[xi] >= e.xaxis.min) { firstXIndex = xi; break; } } var initialMin = w.globals.minYArr[yI]; var initialMax = w.globals.maxYArr[yI]; var min, max; var stackedSer = w.globals.stackedSeriesTotals; w.globals.series.forEach(function (serie, sI) { var firstValue = serie[firstXIndex]; if (isStacked) { firstValue = stackedSer[firstXIndex]; min = max = firstValue; stackedSer.forEach(function (y, yI) { if (seriesX[yI] <= e.xaxis.max && seriesX[yI] >= e.xaxis.min) { if (y > max && y !== null) max = y; if (serie[yI] < min && serie[yI] !== null) min = serie[yI]; } }); } else { min = max = firstValue; serie.forEach(function (y, yI) { if (seriesX[yI] <= e.xaxis.max && seriesX[yI] >= e.xaxis.min) { var valMin = y; var valMax = y; w.globals.series.forEach(function (wS, wSI) { if (y !== null) { valMin = Math.min(wS[yI], valMin); valMax = Math.max(wS[yI], valMax); } }); if (valMax > max && valMax !== null) max = valMax; if (valMin < min && valMin !== null) min = valMin; } }); } if (min === undefined && max === undefined) { min = initialMin; max = initialMax; } min *= min < 0 ? 1.1 : 0.9; max *= max < 0 ? 0.9 : 1.1; if (max < 0 && max < initialMax) { max = initialMax; } if (min < 0 && min > initialMin) { min = initialMin; } if (yaxis.length > 1) { yaxis[sI].min = yaxe.min === undefined ? min : yaxe.min; yaxis[sI].max = yaxe.max === undefined ? max : yaxe.max; } else { yaxis[0].min = yaxe.min === undefined ? min : yaxe.min; yaxis[0].max = yaxe.max === undefined ? max : yaxe.max; } }); }); return yaxis; } }]); return Range; }(); /** * Range is used to generates values between min and max. * * @module Range **/ var Range$1 = /*#__PURE__*/ function () { function Range$$1(ctx) { _classCallCheck(this, Range$$1); this.ctx = ctx; this.w = ctx.w; this.scales = new Range(ctx); } _createClass(Range$$1, [{ key: "init", value: function init() { this.setYRange(); this.setXRange(); this.setZRange(); } }, { key: "getMinYMaxY", value: function getMinYMaxY(startingIndex) { var lowestY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE; var highestY = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -Number.MAX_VALUE; var len = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var gl = this.w.globals; var maxY = -Number.MAX_VALUE; var minY = Number.MIN_VALUE; if (len === null) { len = startingIndex + 1; } var series = gl.series; var seriesMin = series; var seriesMax = series; if (this.w.config.chart.type === 'candlestick') { seriesMin = gl.seriesCandleL; seriesMax = gl.seriesCandleH; } else if (gl.isRangeData) { seriesMin = gl.seriesRangeStart; seriesMax = gl.seriesRangeEnd; } for (var i = startingIndex; i < len; i++) { gl.dataPoints = Math.max(gl.dataPoints, series[i].length); for (var j = 0; j < gl.series[i].length; j++) { var val = series[i][j]; if (val !== null && Utils.isNumber(val)) { maxY = Math.max(maxY, seriesMax[i][j]); lowestY = Math.min(lowestY, seriesMin[i][j]); highestY = Math.max(highestY, seriesMin[i][j]); if (this.w.config.chart.type === 'candlestick') { maxY = Math.max(maxY, gl.seriesCandleO[i][j]); maxY = Math.max(maxY, gl.seriesCandleH[i][j]); maxY = Math.max(maxY, gl.seriesCandleL[i][j]); maxY = Math.max(maxY, gl.seriesCandleC[i][j]); highestY = maxY; } if (Utils.isFloat(val)) { val = Utils.noExponents(val); gl.yValueDecimal = Math.max(gl.yValueDecimal, val.toString().split('.')[1].length); } if (minY > seriesMin[i][j] && seriesMin[i][j] < 0) { minY = seriesMin[i][j]; } } else { gl.hasNullValues = true; } } } return { minY: minY, maxY: maxY, lowestY: lowestY, highestY: highestY }; } }, { key: "setYRange", value: function setYRange() { var gl = this.w.globals; var cnf = this.w.config; gl.maxY = -Number.MAX_VALUE; gl.minY = Number.MIN_VALUE; var lowestYInAllSeries = Number.MAX_VALUE; if (gl.isMultipleYAxis) { // we need to get minY and maxY for multiple y axis for (var i = 0; i < gl.series.length; i++) { var minYMaxYArr = this.getMinYMaxY(i, lowestYInAllSeries, null, i + 1); gl.minYArr.push(minYMaxYArr.minY); gl.maxYArr.push(minYMaxYArr.maxY); lowestYInAllSeries = minYMaxYArr.lowestY; } } // and then, get the minY and maxY from all series var minYMaxY = this.getMinYMaxY(0, lowestYInAllSeries, null, gl.series.length); gl.minY = minYMaxY.minY; gl.maxY = minYMaxY.maxY; lowestYInAllSeries = minYMaxY.lowestY; if (cnf.chart.stacked) { // for stacked charts, we calculate each series's parallel values. i.e, series[0][j] + series[1][j] .... [series[i.length][j]] and get the max out of it var stackedPoss = []; var stackedNegs = []; if (gl.series.length) { for (var j = 0; j < gl.series[gl.maxValsInArrayIndex].length; j++) { var poss = 0; var negs = 0; for (var _i = 0; _i < gl.series.length; _i++) { if (gl.series[_i][j] !== null && Utils.isNumber(gl.series[_i][j])) { if (gl.series[_i][j] > 0) { // 0.0001 fixes #185 when values are very small poss = poss + parseFloat(gl.series[_i][j]) + 0.0001; } else { negs = negs + parseFloat(gl.series[_i][j]); } } if (_i === gl.series.length - 1) { // push all the totals to the array for future use stackedPoss.push(poss); stackedNegs.push(negs); } } } } // get the max/min out of the added parallel values for (var z = 0; z < stackedPoss.length; z++) { gl.maxY = Math.max(gl.maxY, stackedPoss[z]); gl.minY = Math.min(gl.minY, stackedNegs[z]); } } // if the numbers are too big, reduce the range // for eg, if number is between 100000-110000, putting 0 as the lowest value is not so good idea. So change the gl.minY for line/area/candlesticks if (cnf.chart.type === 'line' || cnf.chart.type === 'area' || cnf.chart.type === 'candlestick') { if (gl.minY === Number.MIN_VALUE && lowestYInAllSeries !== -Number.MAX_VALUE && lowestYInAllSeries !== gl.maxY // single value possibility ) { var diff = gl.maxY - lowestYInAllSeries; if (lowestYInAllSeries >= 0 && lowestYInAllSeries <= 10) { // if minY is already 0/low value, we don't want to go negatives here - so this check is essential. diff = 0; } gl.minY = lowestYInAllSeries - diff * 5 / 100; // if (lowestYInAllSeries > 0 && gl.minY < 0) { /* fix https://github.com/apexcharts/apexcharts.js/issues/614 */ // gl.minY = 0 // } /* fix https://github.com/apexcharts/apexcharts.js/issues/426 */ gl.maxY = gl.maxY + diff * 5 / 100; } } cnf.yaxis.map(function (yaxe, index) { // override all min/max values by user defined values (y axis) if (yaxe.max !== undefined) { if (typeof yaxe.max === 'number') { gl.maxYArr[index] = yaxe.max; } else if (typeof yaxe.max === 'function') { gl.maxYArr[index] = yaxe.max(gl.maxY); } // gl.maxY is for single y-axis chart, it will be ignored in multi-yaxis gl.maxY = gl.maxYArr[index]; } if (yaxe.min !== undefined) { if (typeof yaxe.min === 'number') { gl.minYArr[index] = yaxe.min; } else if (typeof yaxe.min === 'function') { gl.minYArr[index] = yaxe.min(gl.minY); } // gl.minY is for single y-axis chart, it will be ignored in multi-yaxis gl.minY = gl.minYArr[index]; } }); // for horizontal bar charts, we need to check xaxis min/max as user may have specified there if (gl.isBarHorizontal) { if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { gl.minY = cnf.xaxis.min; } if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { gl.maxY = cnf.xaxis.max; } } // for multi y-axis we need different scales for each if (gl.isMultipleYAxis) { this.scales.setMultipleYScales(); gl.minY = lowestYInAllSeries; gl.yAxisScale.forEach(function (scale, i) { gl.minYArr[i] = scale.niceMin; gl.maxYArr[i] = scale.niceMax; }); } else { this.scales.setYScaleForIndex(0, gl.minY, gl.maxY); gl.minY = gl.yAxisScale[0].niceMin; gl.maxY = gl.yAxisScale[0].niceMax; gl.minYArr[0] = gl.yAxisScale[0].niceMin; gl.maxYArr[0] = gl.yAxisScale[0].niceMax; } return { minY: gl.minY, maxY: gl.maxY, minYArr: gl.minYArr, maxYArr: gl.maxYArr }; } }, { key: "setXRange", value: function setXRange() { var gl = this.w.globals; var cnf = this.w.config; var isXNumeric = cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'datetime' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided || gl.noLabelsProvided || gl.isXNumeric; // minX maxX starts here if (gl.isXNumeric) { for (var i = 0; i < gl.series.length; i++) { if (gl.labels[i]) { for (var j = 0; j < gl.labels[i].length; j++) { if (gl.labels[i][j] !== null && Utils.isNumber(gl.labels[i][j])) { gl.maxX = Math.max(gl.maxX, gl.labels[i][j]); gl.initialmaxX = Math.max(gl.maxX, gl.labels[i][j]); gl.minX = Math.min(gl.minX, gl.labels[i][j]); gl.initialminX = Math.min(gl.minX, gl.labels[i][j]); } } } } } if (gl.noLabelsProvided) { if (cnf.xaxis.categories.length === 0) { gl.maxX = gl.labels[gl.labels.length - 1]; gl.initialmaxX = gl.labels[gl.labels.length - 1]; gl.minX = 1; gl.initialminX = 1; } } // bar chart specific // for numeric xaxis, we need to adjust some padding left and right for bar charts if (gl.comboChartsHasBars || cnf.chart.type === 'candlestick' || cnf.chart.type === 'bar' && gl.isXNumeric) { if (cnf.xaxis.type !== 'category' || gl.isXNumeric) { var t = gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth); // some padding to the left to prevent cropping of the bars var minX = gl.minX - t / 2; gl.minX = minX; gl.initialminX = minX; // some padding to the right to prevent cropping of the bars var maxX = gl.maxX + t / ((gl.series.length + 1) / gl.series.length); gl.maxX = maxX; gl.initialmaxX = maxX; } } if ((gl.isXNumeric || gl.noLabelsProvided) && (!cnf.xaxis.convertedCatToNumeric || gl.dataFormatXNumeric)) { var ticks; if (cnf.xaxis.tickAmount === undefined) { ticks = Math.round(gl.svgWidth / 150); // no labels provided and total number of dataPoints is less than 20 if (cnf.xaxis.type === 'numeric' && gl.dataPoints < 20) { ticks = gl.dataPoints - 1; } // this check is for when ticks exceeds total datapoints and that would result in duplicate labels if (ticks > gl.dataPoints && gl.dataPoints !== 0) { ticks = gl.dataPoints - 1; } } else if (cnf.xaxis.tickAmount === 'dataPoints') { ticks = gl.series[gl.maxValsInArrayIndex].length - 1; } else { ticks = cnf.xaxis.tickAmount; } // override all min/max values by user defined values (x axis) if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { gl.maxX = cnf.xaxis.max; } if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { gl.minX = cnf.xaxis.min; } // if range is provided, adjust the new minX if (cnf.xaxis.range !== undefined) { gl.minX = gl.maxX - cnf.xaxis.range; } if (gl.minX !== Number.MAX_VALUE && gl.maxX !== -Number.MAX_VALUE) { gl.xAxisScale = this.scales.linearScale(gl.minX, gl.maxX, ticks); } else { gl.xAxisScale = this.scales.linearScale(1, ticks, ticks); if (gl.noLabelsProvided && gl.labels.length > 0) { gl.xAxisScale = this.scales.linearScale(1, gl.labels.length, ticks - 1); // this is the only place seriesX is again mutated gl.seriesX = gl.labels.slice(); } } // we will still store these labels as the count for this will be different (to draw grid and labels placement) if (isXNumeric) { gl.labels = gl.xAxisScale.result.slice(); } } if (gl.minX === gl.maxX) { // single dataPoint if (cnf.xaxis.type === 'datetime') { var newMinX = new Date(gl.minX); newMinX.setDate(newMinX.getDate() - 2); gl.minX = new Date(newMinX).getTime(); var newMaxX = new Date(gl.maxX); newMaxX.setDate(newMaxX.getDate() + 2); gl.maxX = new Date(newMaxX).getTime(); } else if (cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided) { gl.minX = gl.minX - 2; gl.maxX = gl.maxX + 2; } } if (gl.isXNumeric) { // get the least x diff if numeric x axis is present gl.seriesX.forEach(function (sX, i) { if (sX.length === 1) { // a small hack to prevent overlapping multiple bars when there is just 1 datapoint in bar series. // fix #811 sX.push(gl.seriesX[gl.maxValsInArrayIndex][gl.seriesX[gl.maxValsInArrayIndex].length - 1]); } sX.forEach(function (s, j) { if (j > 0) { var xDiff = s - gl.seriesX[i][j - 1]; gl.minXDiff = Math.min(xDiff, gl.minXDiff); } }); }); this.calcMinXDiffForTinySeries(); } return { minX: gl.minX, maxX: gl.maxX }; } }, { key: "calcMinXDiffForTinySeries", value: function calcMinXDiffForTinySeries() { var w = this.w; var len = w.globals.labels.length; if (w.globals.labels.length === 1) { w.globals.minXDiff = (w.globals.maxX - w.globals.minX) / len / 3; } else { if (w.globals.minXDiff === Number.MAX_VALUE) { // possibly a single dataPoint (fixes react-apexcharts/issue#34) if (w.globals.timelineLabels.length > 0) { len = w.globals.timelineLabels.length; } if (len < 3) { len = 3; } w.globals.minXDiff = (w.globals.maxX - w.globals.minX) / len; } } return w.globals.minXDiff; } }, { key: "setZRange", value: function setZRange() { var gl = this.w.globals; // minZ, maxZ starts here if (gl.isDataXYZ) { for (var i = 0; i < gl.series.length; i++) { if (typeof gl.seriesZ[i] !== 'undefined') { for (var j = 0; j < gl.seriesZ[i].length; j++) { if (gl.seriesZ[i][j] !== null && Utils.isNumber(gl.seriesZ[i][j])) { gl.maxZ = Math.max(gl.maxZ, gl.seriesZ[i][j]); gl.minZ = Math.min(gl.minZ, gl.seriesZ[i][j]); } } } } } } }]); return Range$$1; }(); /** * ApexCharts TimeScale Class for generating time ticks for x-axis. * * @module TimeScale **/ var TimeScale = /*#__PURE__*/ function () { function TimeScale(ctx) { _classCallCheck(this, TimeScale); this.ctx = ctx; this.w = ctx.w; this.timeScaleArray = []; } _createClass(TimeScale, [{ key: "calculateTimeScaleTicks", value: function calculateTimeScaleTicks(minX, maxX) { var _this = this; var w = this.w; // null check when no series to show if (w.globals.allSeriesCollapsed) { w.globals.labels = []; w.globals.timelineLabels = []; return []; } var dt = new DateTime(this.ctx); var daysDiff = (maxX - minX) / (1000 * 60 * 60 * 24); this.determineInterval(daysDiff); w.globals.disableZoomIn = false; w.globals.disableZoomOut = false; if (daysDiff < 0.005) { w.globals.disableZoomIn = true; } else if (daysDiff > 50000) { w.globals.disableZoomOut = true; } var timeIntervals = dt.getTimeUnitsfromTimestamp(minX, maxX); var daysWidthOnXAxis = w.globals.gridWidth / daysDiff; var hoursWidthOnXAxis = daysWidthOnXAxis / 24; var minutesWidthOnXAxis = hoursWidthOnXAxis / 60; var numberOfHours = Math.floor(daysDiff * 24); var numberOfMinutes = Math.floor(daysDiff * 24 * 60); var numberOfDays = Math.floor(daysDiff); var numberOfMonths = Math.floor(daysDiff / 30); var numberOfYears = Math.floor(daysDiff / 365); var firstVal = { minMinute: timeIntervals.minMinute, minHour: timeIntervals.minHour, minDate: timeIntervals.minDate, minMonth: timeIntervals.minMonth, minYear: timeIntervals.minYear }; var currentMinute = firstVal.minMinute; var currentHour = firstVal.minHour; var currentMonthDate = firstVal.minDate; var currentDate = firstVal.minDate; var currentMonth = firstVal.minMonth; var currentYear = firstVal.minYear; var params = { firstVal: firstVal, currentMinute: currentMinute, currentHour: currentHour, currentMonthDate: currentMonthDate, currentDate: currentDate, currentMonth: currentMonth, currentYear: currentYear, daysWidthOnXAxis: daysWidthOnXAxis, hoursWidthOnXAxis: hoursWidthOnXAxis, minutesWidthOnXAxis: minutesWidthOnXAxis, numberOfMinutes: numberOfMinutes, numberOfHours: numberOfHours, numberOfDays: numberOfDays, numberOfMonths: numberOfMonths, numberOfYears: numberOfYears }; switch (this.tickInterval) { case 'years': { this.generateYearScale(params); break; } case 'months': case 'half_year': { this.generateMonthScale(params); break; } case 'months_days': case 'months_fortnight': case 'days': case 'week_days': { this.generateDayScale(params); break; } case 'hours': { this.generateHourScale(params); break; } case 'minutes': this.generateMinuteScale(params); break; } // first, we will adjust the month values index // as in the upper function, it is starting from 0 // we will start them from 1 var adjustedMonthInTimeScaleArray = this.timeScaleArray.map(function (ts) { var defaultReturn = { position: ts.position, unit: ts.unit, year: ts.year, day: ts.day ? ts.day : 1, hour: ts.hour ? ts.hour : 0, month: ts.month + 1 }; if (ts.unit === 'month') { return _objectSpread({}, defaultReturn, { day: 1, value: ts.value + 1 }); } else if (ts.unit === 'day' || ts.unit === 'hour') { return _objectSpread({}, defaultReturn, { value: ts.value }); } else if (ts.unit === 'minute') { return _objectSpread({}, defaultReturn, { value: ts.value, minute: ts.value }); } return ts; }); var filteredTimeScale = adjustedMonthInTimeScaleArray.filter(function (ts) { var modulo = 1; var ticks = Math.ceil(w.globals.gridWidth / 120); var value = ts.value; if (w.config.xaxis.tickAmount !== undefined) { ticks = w.config.xaxis.tickAmount; } if (adjustedMonthInTimeScaleArray.length > ticks) { modulo = Math.floor(adjustedMonthInTimeScaleArray.length / ticks); } var shouldNotSkipUnit = false; // there is a big change in unit i.e days to months var shouldNotPrint = false; // should skip these values switch (_this.tickInterval) { case 'half_year': modulo = 7; if (ts.unit === 'year') { shouldNotSkipUnit = true; } break; case 'months': modulo = 1; if (ts.unit === 'year') { shouldNotSkipUnit = true; } break; case 'months_fortnight': modulo = 15; if (ts.unit === 'year' || ts.unit === 'month') { shouldNotSkipUnit = true; } if (value === 30) { shouldNotPrint = true; } break; case 'months_days': modulo = 10; if (ts.unit === 'month') { shouldNotSkipUnit = true; } if (value === 30) { shouldNotPrint = true; } break; case 'week_days': modulo = 8; if (ts.unit === 'month') { shouldNotSkipUnit = true; } break; case 'days': modulo = 1; if (ts.unit === 'month') { shouldNotSkipUnit = true; } break; case 'hours': if (ts.unit === 'day') { shouldNotSkipUnit = true; } break; case 'minutes': if (value % 5 !== 0) { shouldNotPrint = true; } break; } if (_this.tickInterval === 'minutes' || _this.tickInterval === 'hours') { if (!shouldNotPrint) { return true; } } else { if ((value % modulo === 0 || shouldNotSkipUnit) && !shouldNotPrint) { return true; } } }); return filteredTimeScale; } }, { key: "recalcDimensionsBasedOnFormat", value: function recalcDimensionsBasedOnFormat(filteredTimeScale, inverted) { var w = this.w; var reformattedTimescaleArray = this.formatDates(filteredTimeScale); var removedOverlappingTS = this.removeOverlappingTS(reformattedTimescaleArray); if (!inverted) { w.globals.timelineLabels = removedOverlappingTS.slice(); } else { w.globals.invertedTimelineLabels = removedOverlappingTS.slice(); } // at this stage, we need to re-calculate coords of the grid as timeline labels may have altered the xaxis labels coords // The reason we can't do this prior to this stage is because timeline labels depends on gridWidth, and as the ticks are calculated based on available gridWidth, there can be unknown number of ticks generated for different minX and maxX // Dependency on Dimensions(), need to refactor correctly // TODO - find an alternate way to avoid calling this Heavy method twice var dimensions = new Dimensions(this.ctx); dimensions.plotCoords(); } }, { key: "determineInterval", value: function determineInterval(daysDiff) { switch (true) { case daysDiff > 1825: // difference is more than 5 years this.tickInterval = 'years'; break; case daysDiff > 800 && daysDiff <= 1825: this.tickInterval = 'half_year'; break; case daysDiff > 180 && daysDiff <= 800: this.tickInterval = 'months'; break; case daysDiff > 90 && daysDiff <= 180: this.tickInterval = 'months_fortnight'; break; case daysDiff > 60 && daysDiff <= 90: this.tickInterval = 'months_days'; break; case daysDiff > 30 && daysDiff <= 60: this.tickInterval = 'week_days'; break; case daysDiff > 2 && daysDiff <= 30: this.tickInterval = 'days'; break; case daysDiff > 0.1 && daysDiff <= 2: // less than 2 days this.tickInterval = 'hours'; break; case daysDiff < 0.1: this.tickInterval = 'minutes'; break; default: this.tickInterval = 'days'; break; } } }, { key: "generateYearScale", value: function generateYearScale(params) { var firstVal = params.firstVal, currentMonth = params.currentMonth, currentYear = params.currentYear, daysWidthOnXAxis = params.daysWidthOnXAxis, numberOfYears = params.numberOfYears; var firstTickValue = firstVal.minYear; var firstTickPosition = 0; var dt = new DateTime(this.ctx); var unit = 'year'; if (firstVal.minDate > 1 && firstVal.minMonth > 0) { var remainingDays = dt.determineRemainingDaysOfYear(firstVal.minYear, firstVal.minMonth, firstVal.minDate); // remainingDaysofFirstMonth is used to reacht the 2nd tick position var remainingDaysOfFirstYear = dt.determineDaysOfYear(firstVal.minYear) - remainingDays + 1; // calculate the first tick position firstTickPosition = remainingDaysOfFirstYear * daysWidthOnXAxis; firstTickValue = firstVal.minYear + 1; // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: firstTickValue, unit: unit, year: firstTickValue, month: Utils.monthMod(currentMonth + 1) }); } else if (firstVal.minDate === 1 && firstVal.minMonth === 0) { // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: firstTickValue, unit: unit, year: currentYear, month: Utils.monthMod(currentMonth + 1) }); } var year = firstTickValue; var pos = firstTickPosition; // keep drawing rest of the ticks for (var i = 0; i < numberOfYears; i++) { year++; pos = dt.determineDaysOfYear(year - 1) * daysWidthOnXAxis + pos; this.timeScaleArray.push({ position: pos, value: year, unit: unit, year: year, month: 1 }); } } }, { key: "generateMonthScale", value: function generateMonthScale(params) { var firstVal = params.firstVal, currentMonthDate = params.currentMonthDate, currentMonth = params.currentMonth, currentYear = params.currentYear, daysWidthOnXAxis = params.daysWidthOnXAxis, numberOfMonths = params.numberOfMonths; var firstTickValue = currentMonth; var firstTickPosition = 0; var dt = new DateTime(this.ctx); var unit = 'month'; var yrCounter = 0; if (firstVal.minDate > 1) { // remainingDaysofFirstMonth is used to reacht the 2nd tick position var remainingDaysOfFirstMonth = dt.determineDaysOfMonths(currentMonth + 1, firstVal.minYear) - currentMonthDate + 1; // calculate the first tick position firstTickPosition = remainingDaysOfFirstMonth * daysWidthOnXAxis; firstTickValue = Utils.monthMod(currentMonth + 1); var year = currentYear + yrCounter; var _month = Utils.monthMod(firstTickValue); var value = firstTickValue; // it's Jan, so update the year if (firstTickValue === 0) { unit = 'year'; value = year; _month = 1; yrCounter += 1; year = year + yrCounter; } // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: value, unit: unit, year: year, month: _month }); } else { // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: firstTickValue, unit: unit, year: currentYear, month: Utils.monthMod(currentMonth) }); } var month = firstTickValue + 1; var pos = firstTickPosition; // keep drawing rest of the ticks for (var i = 0, j = 1; i < numberOfMonths; i++, j++) { month = Utils.monthMod(month); if (month === 0) { unit = 'year'; yrCounter += 1; } else { unit = 'month'; } var _year = currentYear + Math.floor(month / 12) + yrCounter; pos = dt.determineDaysOfMonths(month, _year) * daysWidthOnXAxis + pos; var monthVal = month === 0 ? _year : month; this.timeScaleArray.push({ position: pos, value: monthVal, unit: unit, year: _year, month: month === 0 ? 1 : month }); month++; } } }, { key: "generateDayScale", value: function generateDayScale(params) { var firstVal = params.firstVal, currentMonth = params.currentMonth, currentYear = params.currentYear, hoursWidthOnXAxis = params.hoursWidthOnXAxis, numberOfDays = params.numberOfDays; var dt = new DateTime(this.ctx); var unit = 'day'; var remainingHours = 24 - firstVal.minHour; var yrCounter = 0; // calculate the first tick position var firstTickPosition = remainingHours * hoursWidthOnXAxis; var firstTickValue = firstVal.minDate + 1; var val = firstTickValue; var changeMonth = function changeMonth(dateVal, month, year) { var monthdays = dt.determineDaysOfMonths(month + 1, year); if (dateVal > monthdays) { month = month + 1; date = 1; unit = 'month'; val = month; return month; } return month; }; var date = firstTickValue; var month = changeMonth(date, currentMonth, currentYear); // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: val, unit: unit, year: currentYear, month: Utils.monthMod(month), day: date }); var pos = firstTickPosition; // keep drawing rest of the ticks for (var i = 0; i < numberOfDays; i++) { date += 1; unit = 'day'; month = changeMonth(date, month, currentYear + Math.floor(month / 12) + yrCounter); var year = currentYear + Math.floor(month / 12) + yrCounter; pos = 24 * hoursWidthOnXAxis + pos; var _val = date === 1 ? Utils.monthMod(month) : date; this.timeScaleArray.push({ position: pos, value: _val, unit: unit, year: year, month: Utils.monthMod(month), day: _val }); } } }, { key: "generateHourScale", value: function generateHourScale(params) { var firstVal = params.firstVal, currentDate = params.currentDate, currentMonth = params.currentMonth, currentYear = params.currentYear, minutesWidthOnXAxis = params.minutesWidthOnXAxis, numberOfHours = params.numberOfHours; var dt = new DateTime(this.ctx); var yrCounter = 0; var unit = 'hour'; var changeDate = function changeDate(dateVal, month) { var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); if (dateVal > monthdays) { date = 1; month = month + 1; } return { month: month, date: date }; }; var changeMonth = function changeMonth(dateVal, month) { var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); if (dateVal > monthdays) { month = month + 1; return month; } return month; }; var remainingMins = 60 - firstVal.minMinute; var firstTickPosition = remainingMins * minutesWidthOnXAxis; var firstTickValue = firstVal.minHour + 1; var hour = firstTickValue + 1; if (remainingMins === 60) { firstTickPosition = 0; firstTickValue = firstVal.minHour; hour = firstTickValue + 1; } var date = currentDate; var month = changeMonth(date, currentMonth); // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: firstTickValue, unit: unit, day: date, hour: hour, year: currentYear, month: Utils.monthMod(month) }); var pos = firstTickPosition; // keep drawing rest of the ticks for (var i = 0; i < numberOfHours; i++) { unit = 'hour'; if (hour >= 24) { hour = 0; date += 1; unit = 'day'; var checkNextMonth = changeDate(date, month); month = checkNextMonth.month; month = changeMonth(date, month); } var year = currentYear + Math.floor(month / 12) + yrCounter; pos = hour === 0 && i === 0 ? remainingMins * minutesWidthOnXAxis : 60 * minutesWidthOnXAxis + pos; var val = hour === 0 ? date : hour; this.timeScaleArray.push({ position: pos, value: val, unit: unit, hour: hour, day: date, year: year, month: Utils.monthMod(month) }); hour++; } } }, { key: "generateMinuteScale", value: function generateMinuteScale(params) { var firstVal = params.firstVal, currentMinute = params.currentMinute, currentHour = params.currentHour, currentDate = params.currentDate, currentMonth = params.currentMonth, currentYear = params.currentYear, minutesWidthOnXAxis = params.minutesWidthOnXAxis, numberOfMinutes = params.numberOfMinutes; var yrCounter = 0; var unit = 'minute'; var remainingMins = currentMinute - firstVal.minMinute; var firstTickPosition = minutesWidthOnXAxis - remainingMins; var firstTickValue = firstVal.minMinute + 1; var minute = firstTickValue + 1; var date = currentDate; var month = currentMonth; var year = currentYear; var hour = currentHour; // push the first tick in the array this.timeScaleArray.push({ position: firstTickPosition, value: firstTickValue, unit: unit, day: date, hour: hour, minute: minute, year: year, month: Utils.monthMod(month) }); var pos = firstTickPosition; // keep drawing rest of the ticks for (var i = 0; i < numberOfMinutes; i++) { if (minute >= 60) { minute = 0; hour += 1; if (hour === 24) { hour = 0; } } var _year2 = currentYear + Math.floor(month / 12) + yrCounter; pos = minutesWidthOnXAxis + pos; var val = minute; this.timeScaleArray.push({ position: pos, value: val, unit: unit, hour: hour, minute: minute, day: date, year: _year2, month: Utils.monthMod(month) }); minute++; } } }, { key: "createRawDateString", value: function createRawDateString(ts, value) { var raw = ts.year; raw += '-' + ('0' + ts.month.toString()).slice(-2); // unit is day if (ts.unit === 'day') { raw += ts.unit === 'day' ? '-' + ('0' + value).slice(-2) : '-01'; } else { raw += '-' + ('0' + (ts.day ? ts.day : '1')).slice(-2); } // unit is hour if (ts.unit === 'hour') { raw += ts.unit === 'hour' ? 'T' + ('0' + value).slice(-2) : 'T00'; } else { raw += 'T' + ('0' + (ts.hour ? ts.hour : '0')).slice(-2); } // unit is minute raw += ts.unit === 'minute' ? ':' + ('0' + value).slice(-2) + ':00.000Z' : ':00:00.000Z'; return raw; } }, { key: "formatDates", value: function formatDates(filteredTimeScale) { var _this2 = this; var w = this.w; var reformattedTimescaleArray = filteredTimeScale.map(function (ts) { var value = ts.value.toString(); var dt = new DateTime(_this2.ctx); var raw = _this2.createRawDateString(ts, value); // parse the whole ISO datestring var dateString = new Date(Date.parse(raw)); if (w.config.xaxis.labels.format === undefined) { var customFormat = 'dd MMM'; var dtFormatter = w.config.xaxis.labels.datetimeFormatter; if (ts.unit === 'year') customFormat = dtFormatter.year; if (ts.unit === 'month') customFormat = dtFormatter.month; if (ts.unit === 'day') customFormat = dtFormatter.day; if (ts.unit === 'hour') customFormat = dtFormatter.hour; if (ts.unit === 'minute') customFormat = dtFormatter.minute; value = dt.formatDate(dateString, customFormat, true, false); } else { value = dt.formatDate(dateString, w.config.xaxis.labels.format); } return { dateString: raw, position: ts.position, value: value, unit: ts.unit, year: ts.year, month: ts.month }; }); return reformattedTimescaleArray; } }, { key: "removeOverlappingTS", value: function removeOverlappingTS(arr) { var _this3 = this; var graphics = new Graphics(this.ctx); var lastDrawnIndex = 0; var filteredArray = arr.map(function (item, index) { if (index > 0 && _this3.w.config.xaxis.labels.hideOverlappingLabels) { var prevLabelWidth = graphics.getTextRects(arr[lastDrawnIndex].value).width; var prevPos = arr[lastDrawnIndex].position; var pos = item.position; if (pos > prevPos + prevLabelWidth + 10) { lastDrawnIndex = index; return item; } else { return null; } } else { return item; } }); filteredArray = filteredArray.filter(function (f) { return f !== null; }); return filteredArray; } }]); return TimeScale; }(); /** * ApexCharts Core Class responsible for major calculations and creating elements. * * @module Core **/ var Core = /*#__PURE__*/ function () { function Core(el, ctx) { _classCallCheck(this, Core); this.ctx = ctx; this.w = ctx.w; this.el = el; this.coreUtils = new CoreUtils(this.ctx); this.twoDSeries = []; this.threeDSeries = []; this.twoDSeriesX = []; } // get data and store into appropriate vars _createClass(Core, [{ key: "setupElements", value: function setupElements() { var gl = this.w.globals; var cnf = this.w.config; // const graphics = new Graphics(this.ctx) var ct = cnf.chart.type; var axisChartsArrTypes = ['line', 'area', 'bar', 'rangeBar', // 'rangeArea', 'candlestick', 'radar', 'scatter', 'bubble', 'heatmap']; var xyChartsArrTypes = ['line', 'area', 'bar', 'rangeBar', // 'rangeArea', 'candlestick', 'scatter', 'bubble']; gl.axisCharts = axisChartsArrTypes.indexOf(ct) > -1; gl.xyCharts = xyChartsArrTypes.indexOf(ct) > -1; gl.isBarHorizontal = (cnf.chart.type === 'bar' || cnf.chart.type === 'rangeBar') && cnf.plotOptions.bar.horizontal; gl.chartClass = '.apexcharts' + gl.cuid; gl.dom.baseEl = this.el; gl.dom.elWrap = document.createElement('div'); Graphics.setAttrs(gl.dom.elWrap, { id: gl.chartClass.substring(1), class: 'apexcharts-canvas ' + gl.chartClass.substring(1) }); this.el.appendChild(gl.dom.elWrap); gl.dom.Paper = new window.SVG.Doc(gl.dom.elWrap); gl.dom.Paper.attr({ class: 'apexcharts-svg', 'xmlns:data': 'ApexChartsNS', transform: "translate(".concat(cnf.chart.offsetX, ", ").concat(cnf.chart.offsetY, ")") }); gl.dom.Paper.node.style.background = cnf.chart.background; this.setSVGDimensions(); gl.dom.elGraphical = gl.dom.Paper.group().attr({ class: 'apexcharts-inner apexcharts-graphical' }); gl.dom.elDefs = gl.dom.Paper.defs(); gl.dom.elLegendWrap = document.createElement('div'); gl.dom.elLegendWrap.classList.add('apexcharts-legend'); gl.dom.elWrap.appendChild(gl.dom.elLegendWrap); // gl.dom.Paper.add(gl.dom.elLegendWrap) gl.dom.Paper.add(gl.dom.elGraphical); gl.dom.elGraphical.add(gl.dom.elDefs); } }, { key: "plotChartType", value: function plotChartType(ser, xyRatios) { var w = this.w; var cnf = w.config; var gl = w.globals; var lineSeries = { series: [], i: [] }; var areaSeries = { series: [], i: [] }; var scatterSeries = { series: [], i: [] }; var columnSeries = { series: [], i: [] }; var candlestickSeries = { series: [], i: [] }; gl.series.map(function (series, st) { // if user has specified a particular type for particular series if (typeof ser[st].type !== 'undefined') { if (ser[st].type === 'column' || ser[st].type === 'bar') { w.config.plotOptions.bar.horizontal = false; // horizontal bars not supported in mixed charts, hence forcefully set to false columnSeries.series.push(series); columnSeries.i.push(st); } else if (ser[st].type === 'area') { areaSeries.series.push(series); areaSeries.i.push(st); } else if (ser[st].type === 'line') { lineSeries.series.push(series); lineSeries.i.push(st); } else if (ser[st].type === 'scatter') { scatterSeries.series.push(series); scatterSeries.i.push(st); } else if (ser[st].type === 'bubble') ; else if (ser[st].type === 'candlestick') { candlestickSeries.series.push(series); candlestickSeries.i.push(st); } else { // user has specified type, but it is not valid (other than line/area/column) console.warn('You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble'); } gl.comboCharts = true; } else { lineSeries.series.push(series); lineSeries.i.push(st); } }); var line = new Line(this.ctx, xyRatios); var candlestick = new CandleStick(this.ctx, xyRatios); var pie = new Pie(this.ctx); var radialBar = new Radial(this.ctx); var rangeBar = new RangeBar(this.ctx, xyRatios); var radar = new Radar(this.ctx); var elGraph = []; if (gl.comboCharts) { if (areaSeries.series.length > 0) { elGraph.push(line.draw(areaSeries.series, 'area', areaSeries.i)); } if (columnSeries.series.length > 0) { if (w.config.chart.stacked) { var barStacked = new BarStacked(this.ctx, xyRatios); elGraph.push(barStacked.draw(columnSeries.series, columnSeries.i)); } else { var bar = new Bar(this.ctx, xyRatios); elGraph.push(bar.draw(columnSeries.series, columnSeries.i)); } } if (lineSeries.series.length > 0) { elGraph.push(line.draw(lineSeries.series, 'line', lineSeries.i)); } if (candlestickSeries.series.length > 0) { elGraph.push(candlestick.draw(candlestickSeries.series, candlestickSeries.i)); } if (scatterSeries.series.length > 0) { var scatterLine = new Line(this.ctx, xyRatios, true); elGraph.push(scatterLine.draw(scatterSeries.series, 'scatter', scatterSeries.i)); } // TODO: allow bubble series in a combo chart // if (bubbleSeries.series.length > 0) { // const bubbleLine = new Line(this.ctx, xyRatios, true) // elGraph.push( // bubbleLine.draw(bubbleSeries.series, 'bubble', bubbleSeries.i) // ) // } } else { switch (cnf.chart.type) { case 'line': elGraph = line.draw(gl.series, 'line'); break; case 'area': elGraph = line.draw(gl.series, 'area'); break; case 'bar': if (cnf.chart.stacked) { var _barStacked = new BarStacked(this.ctx, xyRatios); elGraph = _barStacked.draw(gl.series); } else { var _bar = new Bar(this.ctx, xyRatios); elGraph = _bar.draw(gl.series); } break; case 'candlestick': var candleStick = new CandleStick(this.ctx, xyRatios); elGraph = candleStick.draw(gl.series); break; case 'rangeBar': elGraph = rangeBar.draw(gl.series); break; case 'heatmap': var heatmap = new HeatMap(this.ctx, xyRatios); elGraph = heatmap.draw(gl.series); break; case 'pie': case 'donut': elGraph = pie.draw(gl.series); break; case 'radialBar': elGraph = radialBar.draw(gl.series); break; case 'radar': elGraph = radar.draw(gl.series); break; default: elGraph = line.draw(gl.series); } } return elGraph; } }, { key: "setSVGDimensions", value: function setSVGDimensions() { var gl = this.w.globals; var cnf = this.w.config; gl.svgWidth = cnf.chart.width; gl.svgHeight = cnf.chart.height; var elDim = Utils.getDimensions(this.el); var widthUnit = cnf.chart.width.toString().split(/[0-9]+/g).pop(); if (widthUnit === '%') { if (Utils.isNumber(elDim[0])) { if (elDim[0].width === 0) { elDim = Utils.getDimensions(this.el.parentNode); } gl.svgWidth = elDim[0] * parseInt(cnf.chart.width) / 100; } } else if (widthUnit === 'px' || widthUnit === '') { gl.svgWidth = parseInt(cnf.chart.width); } if (gl.svgHeight !== 'auto' && gl.svgHeight !== '') { var heightUnit = cnf.chart.height.toString().split(/[0-9]+/g).pop(); if (heightUnit === '%') { var elParentDim = Utils.getDimensions(this.el.parentNode); gl.svgHeight = elParentDim[1] * parseInt(cnf.chart.height) / 100; } else { gl.svgHeight = parseInt(cnf.chart.height); } } else { if (gl.axisCharts) { gl.svgHeight = gl.svgWidth / 1.61; } else { gl.svgHeight = gl.svgWidth; } } if (gl.svgWidth < 0) gl.svgWidth = 0; if (gl.svgHeight < 0) gl.svgHeight = 0; Graphics.setAttrs(gl.dom.Paper.node, { width: gl.svgWidth, height: gl.svgHeight }); // gl.dom.Paper.node.parentNode.parentNode.style.minWidth = gl.svgWidth + "px"; var offsetY = cnf.chart.sparkline.enabled ? 0 : gl.axisCharts ? cnf.chart.parentHeightOffset : 0; gl.dom.Paper.node.parentNode.parentNode.style.minHeight = gl.svgHeight + offsetY + 'px'; gl.dom.elWrap.style.width = gl.svgWidth + 'px'; gl.dom.elWrap.style.height = gl.svgHeight + 'px'; } }, { key: "shiftGraphPosition", value: function shiftGraphPosition() { var gl = this.w.globals; var tY = gl.translateY; var tX = gl.translateX; var scalingAttrs = { transform: 'translate(' + tX + ', ' + tY + ')' }; Graphics.setAttrs(gl.dom.elGraphical.node, scalingAttrs); } // To prevent extra spacings in the bottom of the chart, we need to recalculate the height for pie/donut/radialbar charts }, { key: "resizeNonAxisCharts", value: function resizeNonAxisCharts() { var w = this.w; var gl = w.globals; var legendHeight = 0; var offY = 20; if (w.config.legend.position === 'top' || w.config.legend.position === 'bottom') { legendHeight = new Legend(this.ctx).getLegendBBox().clwh + 10; } var radialEl = w.globals.dom.baseEl.querySelector('.apexcharts-radialbar'); var elRadialSize = w.globals.radialSize * 2; if (radialEl && w.config.plotOptions.radialBar.startAngle !== -90) { elRadialSize = Utils.getBoundingClientRect(radialEl).height; } var chartInnerDimensions = Math.max(elRadialSize, w.globals.radialSize * 2); var newHeight = chartInnerDimensions + gl.translateY + legendHeight + offY; if (gl.dom.elLegendForeign) { gl.dom.elLegendForeign.setAttribute('height', newHeight); } gl.dom.elWrap.style.height = newHeight + 'px'; Graphics.setAttrs(gl.dom.Paper.node, { height: newHeight }); gl.dom.Paper.node.parentNode.parentNode.style.minHeight = newHeight + 'px'; } /* ** All the calculations for setting range in charts will be done here */ }, { key: "coreCalculations", value: function coreCalculations() { var range = new Range$1(this.ctx); range.init(); } }, { key: "resetGlobals", value: function resetGlobals() { var _this = this; var gl = this.w.globals; gl.series = []; gl.seriesCandleO = []; gl.seriesCandleH = []; gl.seriesCandleL = []; gl.seriesCandleC = []; gl.seriesRangeStart = []; gl.seriesRangeEnd = []; gl.seriesPercent = []; gl.seriesX = []; gl.seriesZ = []; gl.seriesNames = []; gl.seriesTotals = []; gl.stackedSeriesTotals = []; gl.labels = []; gl.timelineLabels = []; gl.noLabelsProvided = false; gl.timescaleTicks = []; gl.resizeTimer = null; gl.selectionResizeTimer = null; gl.seriesXvalues = function () { return _this.w.config.series.map(function (s) { return []; }); }(); gl.seriesYvalues = function () { return _this.w.config.series.map(function (s) { return []; }); }(); gl.delayedElements = []; gl.pointsArray = []; gl.dataLabelsRects = []; gl.isXNumeric = false; gl.isDataXYZ = false; gl.maxY = -Number.MAX_VALUE; gl.minY = Number.MIN_VALUE; gl.minYArr = []; gl.maxYArr = []; gl.maxX = -Number.MAX_VALUE; gl.minX = Number.MAX_VALUE; gl.initialmaxX = -Number.MAX_VALUE; gl.initialminX = Number.MAX_VALUE; gl.maxDate = 0; gl.minDate = Number.MAX_VALUE; gl.minZ = Number.MAX_VALUE; gl.maxZ = -Number.MAX_VALUE; gl.minXDiff = Number.MAX_VALUE; gl.yAxisScale = []; gl.xAxisScale = null; gl.xAxisTicksPositions = []; gl.yLabelsCoords = []; gl.yTitleCoords = []; gl.xRange = 0; gl.yRange = []; gl.zRange = 0; gl.dataPoints = 0; } }, { key: "isMultipleY", value: function isMultipleY() { // user has supplied an array in yaxis property. So, turn on multipleYAxis flag if (this.w.config.yaxis.constructor === Array && this.w.config.yaxis.length > 1) { this.w.globals.isMultipleYAxis = true; return true; } } }, { key: "excludeCollapsedSeriesInYAxis", value: function excludeCollapsedSeriesInYAxis() { var _this2 = this; var w = this.w; w.globals.ignoreYAxisIndexes = w.globals.collapsedSeries.map(function (collapsed, i) { if (_this2.w.globals.isMultipleYAxis) { return collapsed.index; } }); } }, { key: "isMultiFormat", value: function isMultiFormat() { return this.isFormatXY() || this.isFormat2DArray(); } // given format is [{x, y}, {x, y}] }, { key: "isFormatXY", value: function isFormatXY() { var series = this.w.config.series.slice(); var sr = new Series(this.ctx); this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && series[this.activeSeriesIndex].data[0] !== null && typeof series[this.activeSeriesIndex].data[0].x !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null) { return true; } } // given format is [[x, y], [x, y]] }, { key: "isFormat2DArray", value: function isFormat2DArray() { var series = this.w.config.series.slice(); var sr = new Series(this.ctx); this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && typeof series[this.activeSeriesIndex].data[0] !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null && series[this.activeSeriesIndex].data[0].constructor === Array) { return true; } } }, { key: "handleFormat2DArray", value: function handleFormat2DArray(ser, i) { var cnf = this.w.config; var gl = this.w.globals; for (var j = 0; j < ser[i].data.length; j++) { if (typeof ser[i].data[j][1] !== 'undefined') { if (Array.isArray(ser[i].data[j][1]) && ser[i].data[j][1].length === 4) { this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1][3])); } else { this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1])); } gl.dataFormatXNumeric = true; } if (cnf.xaxis.type === 'datetime') { // if timestamps are provided and xaxis type is datettime, var ts = new Date(ser[i].data[j][0]); ts = new Date(ts).getTime(); this.twoDSeriesX.push(ts); } else { this.twoDSeriesX.push(ser[i].data[j][0]); } } for (var _j = 0; _j < ser[i].data.length; _j++) { if (typeof ser[i].data[_j][2] !== 'undefined') { this.threeDSeries.push(ser[i].data[_j][2]); gl.isDataXYZ = true; } } } }, { key: "handleFormatXY", value: function handleFormatXY(ser, i) { var cnf = this.w.config; var gl = this.w.globals; var dt = new DateTime(this.ctx); var activeI = i; if (gl.collapsedSeriesIndices.indexOf(i) > -1) { // fix #368 activeI = this.activeSeriesIndex; } // get series for (var j = 0; j < ser[i].data.length; j++) { if (typeof ser[i].data[j].y !== 'undefined') { if (Array.isArray(ser[i].data[j].y)) { this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y[ser[i].data[j].y.length - 1])); } else { this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y)); } } } // get seriesX for (var _j2 = 0; _j2 < ser[activeI].data.length; _j2++) { var isXString = typeof ser[activeI].data[_j2].x === 'string'; var isXDate = !!dt.isValidDate(ser[activeI].data[_j2].x.toString()); if (isXString || isXDate) { // user supplied '01/01/2017' or a date string (a JS date object is not supported) if (isXString) { if (cnf.xaxis.type === 'datetime' && !gl.isRangeData) { this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x)); } else { // a category and not a numeric x value this.fallbackToCategory = true; this.twoDSeriesX.push(ser[activeI].data[_j2].x); } } else { if (cnf.xaxis.type === 'datetime') { this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x.toString())); } else { gl.dataFormatXNumeric = true; gl.isXNumeric = true; this.twoDSeriesX.push(parseFloat(ser[activeI].data[_j2].x)); } } } else { // a numeric value in x property gl.isXNumeric = true; gl.dataFormatXNumeric = true; this.twoDSeriesX.push(ser[activeI].data[_j2].x); } } if (ser[i].data[0] && typeof ser[i].data[0].z !== 'undefined') { for (var t = 0; t < ser[i].data.length; t++) { this.threeDSeries.push(ser[i].data[t].z); } gl.isDataXYZ = true; } } }, { key: "handleRangeData", value: function handleRangeData(ser, i) { var gl = this.w.globals; var range = {}; if (this.isFormat2DArray()) { range = this.handleRangeDataFormat('array', ser, i); } else if (this.isFormatXY()) { range = this.handleRangeDataFormat('xy', ser, i); } gl.seriesRangeStart.push(range.start); gl.seriesRangeEnd.push(range.end); return range; } }, { key: "handleCandleStickData", value: function handleCandleStickData(ser, i) { var gl = this.w.globals; var ohlc = {}; if (this.isFormat2DArray()) { ohlc = this.handleCandleStickDataFormat('array', ser, i); } else if (this.isFormatXY()) { ohlc = this.handleCandleStickDataFormat('xy', ser, i); } gl.seriesCandleO.push(ohlc.o); gl.seriesCandleH.push(ohlc.h); gl.seriesCandleL.push(ohlc.l); gl.seriesCandleC.push(ohlc.c); return ohlc; } }, { key: "handleRangeDataFormat", value: function handleRangeDataFormat(format, ser, i) { var rangeStart = []; var rangeEnd = []; var err = 'Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts'; var serObj = new Series(this.ctx); var activeIndex = serObj.getActiveConfigSeriesIndex(); if (format === 'array') { if (ser[activeIndex].data[0][1].length !== 2) { throw new Error(err); } for (var j = 0; j < ser[i].data.length; j++) { rangeStart.push(ser[i].data[j][1][0]); rangeEnd.push(ser[i].data[j][1][1]); } } else if (format === 'xy') { if (ser[activeIndex].data[0].y.length !== 2) { throw new Error(err); } for (var _j3 = 0; _j3 < ser[i].data.length; _j3++) { rangeStart.push(ser[i].data[_j3].y[0]); rangeEnd.push(ser[i].data[_j3].y[1]); } } return { start: rangeStart, end: rangeEnd }; } }, { key: "handleCandleStickDataFormat", value: function handleCandleStickDataFormat(format, ser, i) { var serO = []; var serH = []; var serL = []; var serC = []; var err = 'Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick'; if (format === 'array') { if (ser[i].data[0][1].length !== 4) { throw new Error(err); } for (var j = 0; j < ser[i].data.length; j++) { serO.push(ser[i].data[j][1][0]); serH.push(ser[i].data[j][1][1]); serL.push(ser[i].data[j][1][2]); serC.push(ser[i].data[j][1][3]); } } else if (format === 'xy') { if (ser[i].data[0].y.length !== 4) { throw new Error(err); } for (var _j4 = 0; _j4 < ser[i].data.length; _j4++) { serO.push(ser[i].data[_j4].y[0]); serH.push(ser[i].data[_j4].y[1]); serL.push(ser[i].data[_j4].y[2]); serC.push(ser[i].data[_j4].y[3]); } } return { o: serO, h: serH, l: serL, c: serC }; } }, { key: "parseDataAxisCharts", value: function parseDataAxisCharts(ser) { var ctx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.ctx; var cnf = this.w.config; var gl = this.w.globals; var dt = new DateTime(ctx); for (var i = 0; i < ser.length; i++) { this.twoDSeries = []; this.twoDSeriesX = []; this.threeDSeries = []; if (typeof ser[i].data === 'undefined') { console.error("It is a possibility that you may have not included 'data' property in series."); return; } if (cnf.chart.type === 'rangeBar' || cnf.chart.type === 'rangeArea' || ser[i].type === 'rangeBar' || ser[i].type === 'rangeArea') { gl.isRangeData = true; this.handleRangeData(ser, i); } if (this.isMultiFormat()) { if (this.isFormat2DArray()) { this.handleFormat2DArray(ser, i); } else if (this.isFormatXY()) { this.handleFormatXY(ser, i); } if (cnf.chart.type === 'candlestick' || ser[i].type === 'candlestick') { this.handleCandleStickData(ser, i); } gl.series.push(this.twoDSeries); gl.labels.push(this.twoDSeriesX); gl.seriesX.push(this.twoDSeriesX); if (!this.fallbackToCategory) { gl.isXNumeric = true; } } else { if (cnf.xaxis.type === 'datetime') { // user didn't supplied [{x,y}] or [[x,y]], but single array in data. // Also labels/categories were supplied differently gl.isXNumeric = true; var dates = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); for (var j = 0; j < dates.length; j++) { if (typeof dates[j] === 'string') { // user provided date strings var isDate = dt.isValidDate(dates[j]); if (isDate) { this.twoDSeriesX.push(dt.parseDate(dates[j])); } else { throw new Error('You have provided invalid Date format. Please provide a valid JavaScript Date'); } } else { // user provided timestamps if (String(dates[j]).length !== 13) { throw new Error('Please provide a valid JavaScript timestamp'); } else { this.twoDSeriesX.push(dates[j]); } } } gl.seriesX.push(this.twoDSeriesX); } else if (cnf.xaxis.type === 'numeric') { gl.isXNumeric = true; var x = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); if (x.length > 0) { this.twoDSeriesX = x; gl.seriesX.push(this.twoDSeriesX); } } gl.labels.push(this.twoDSeriesX); var singleArray = ser[i].data.map(function (d) { return Utils.parseNumber(d); }); gl.series.push(singleArray); } gl.seriesZ.push(this.threeDSeries); if (ser[i].name !== undefined) { gl.seriesNames.push(ser[i].name); } else { gl.seriesNames.push('series-' + parseInt(i + 1)); } } return this.w; } }, { key: "parseDataNonAxisCharts", value: function parseDataNonAxisCharts(ser) { var gl = this.w.globals; var cnf = this.w.config; gl.series = ser.slice(); gl.seriesNames = cnf.labels.slice(); for (var i = 0; i < gl.series.length; i++) { if (gl.seriesNames[i] === undefined) { gl.seriesNames.push('series-' + (i + 1)); } } return this.w; } /** User possibly set string categories in xaxis.categories or labels prop * Or didn't set xaxis labels at all - in which case we manually do it. * If user passed series data as [[3, 2], [4, 5]] or [{ x: 3, y: 55 }], * this shouldn't be called * @param {array} ser - the series which user passed to the config */ }, { key: "handleExternalLabelsData", value: function handleExternalLabelsData(ser) { var cnf = this.w.config; var gl = this.w.globals; if (cnf.xaxis.categories.length > 0) { // user provided labels in xaxis.category prop gl.labels = cnf.xaxis.categories; } else if (cnf.labels.length > 0) { // user provided labels in labels props gl.labels = cnf.labels.slice(); } else if (this.fallbackToCategory) { // user provided labels in x prop in [{ x: 3, y: 55 }] data, and those labels are already stored in gl.labels[0], so just re-arrange the gl.labels array gl.labels = gl.labels[0]; } else { // user didn't provided any labels, fallback to 1-2-3-4-5 var labelArr = []; if (gl.axisCharts) { // for axis charts, we get the longest series and create labels from it if (gl.series.length > 0) { for (var i = 0; i < gl.series[gl.maxValsInArrayIndex].length; i++) { labelArr.push(i + 1); } } // create gl.seriesX as it will be used in calculations of x positions for (var _i = 0; _i < ser.length; _i++) { gl.seriesX.push(labelArr); } // turn on the isXNumeric flag to allow minX and maxX to function properly gl.isXNumeric = true; } // no series to pull labels from, put a 0-10 series // possibly, user collapsed all series. Hence we can't work with above calc if (labelArr.length === 0) { labelArr = [0, 10]; for (var _i2 = 0; _i2 < ser.length; _i2++) { gl.seriesX.push(labelArr); } } // Finally, pass the labelArr in gl.labels which will be printed on x-axis gl.labels = labelArr; // Turn on this global flag to indicate no labels were provided by user gl.noLabelsProvided = true; } } // Segregate user provided data into appropriate vars }, { key: "parseData", value: function parseData(ser) { var w = this.w; var cnf = w.config; var gl = w.globals; this.excludeCollapsedSeriesInYAxis(); // If we detected string in X prop of series, we fallback to category x-axis this.fallbackToCategory = false; this.resetGlobals(); this.isMultipleY(); if (gl.axisCharts) { // axisCharts includes line / area / column / scatter this.parseDataAxisCharts(ser); } else { // non-axis charts are pie / donut this.parseDataNonAxisCharts(ser); } this.coreUtils.getLargestSeries(); // set Null values to 0 in all series when user hides/shows some series if (cnf.chart.type === 'bar' && cnf.chart.stacked) { var series = new Series(this.ctx); gl.series = series.setNullSeriesToZeroValues(gl.series); } this.coreUtils.getSeriesTotals(); if (gl.axisCharts) { this.coreUtils.getStackedSeriesTotals(); } this.coreUtils.getPercentSeries(); if (!gl.dataFormatXNumeric && (!gl.isXNumeric || cnf.xaxis.type === 'numeric' && cnf.labels.length === 0 && cnf.xaxis.categories.length === 0)) { // x-axis labels couldn't be detected; hence try searching every option in config this.handleExternalLabelsData(ser); } } }, { key: "xySettings", value: function xySettings() { var xyRatios = null; var w = this.w; if (w.globals.axisCharts) { if (w.config.xaxis.crosshairs.position === 'back') { var crosshairs = new Crosshairs(this.ctx); crosshairs.drawXCrosshairs(); } if (w.config.yaxis[0].crosshairs.position === 'back') { var _crosshairs = new Crosshairs(this.ctx); _crosshairs.drawYCrosshairs(); } xyRatios = this.coreUtils.getCalculatedRatios(); if (w.config.xaxis.type === 'datetime' && w.config.xaxis.labels.formatter === undefined) { var ts = new TimeScale(this.ctx); var formattedTimeScale; if (isFinite(w.globals.minX) && isFinite(w.globals.maxX) && !w.globals.isBarHorizontal) { formattedTimeScale = ts.calculateTimeScaleTicks(w.globals.minX, w.globals.maxX); ts.recalcDimensionsBasedOnFormat(formattedTimeScale, false); } else if (w.globals.isBarHorizontal) { formattedTimeScale = ts.calculateTimeScaleTicks(w.globals.minY, w.globals.maxY); ts.recalcDimensionsBasedOnFormat(formattedTimeScale, true); } } } return xyRatios; } }, { key: "drawAxis", value: function drawAxis(type, xyRatios) { var gl = this.w.globals; var cnf = this.w.config; var xAxis = new XAxis(this.ctx); var yAxis = new YAxis(this.ctx); if (gl.axisCharts && type !== 'radar') { var elXaxis, elYaxis; if (gl.isBarHorizontal) { elYaxis = yAxis.drawYaxisInversed(0); elXaxis = xAxis.drawXaxisInversed(0); gl.dom.elGraphical.add(elXaxis); gl.dom.elGraphical.add(elYaxis); } else { elXaxis = xAxis.drawXaxis(); gl.dom.elGraphical.add(elXaxis); cnf.yaxis.map(function (yaxe, index) { if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { elYaxis = yAxis.drawYaxis(index); gl.dom.Paper.add(elYaxis); } }); } } cnf.yaxis.map(function (yaxe, index) { if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { yAxis.yAxisTitleRotate(index, yaxe.opposite); } }); } }, { key: "setupBrushHandler", value: function setupBrushHandler() { var _this3 = this; var w = this.w; // only for brush charts if (!w.config.chart.brush.enabled) { return; } // if user has not defined a custom function for selection - we handle the brush chart // otherwise we leave it to the user to define the functionality for selection if (typeof w.config.chart.events.selection !== 'function') { var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // retro compatibility with single target option targets.forEach(function (target) { var targetChart = ApexCharts.getChartByID(target); targetChart.w.globals.brushSource = _this3.ctx; var updateSourceChart = function updateSourceChart() { _this3.ctx._updateOptions({ chart: { selection: { xaxis: { min: targetChart.w.globals.minX, max: targetChart.w.globals.maxX } } } }, false, false); }; if (typeof targetChart.w.config.chart.events.zoomed !== 'function') { targetChart.w.config.chart.events.zoomed = function () { updateSourceChart(); }; } if (typeof targetChart.w.config.chart.events.scrolled !== 'function') { targetChart.w.config.chart.events.scrolled = function () { updateSourceChart(); }; } }); w.config.chart.events.selection = function (chart, e) { targets.forEach(function (target) { var targetChart = ApexCharts.getChartByID(target); var yaxis = Utils.clone(w.config.yaxis); if (w.config.chart.brush.autoScaleYaxis) { var scale = new Range(targetChart); yaxis = scale.autoScaleY(targetChart, yaxis, e); } targetChart._updateOptions({ xaxis: { min: e.xaxis.min, max: e.xaxis.max }, yaxis: yaxis }, false, false, false, false); }); }; } } }]); return Core; }(); /** * @this {Promise} */ function finallyConstructor(callback) { var constructor = this.constructor; return this.then( function(value) { return constructor.resolve(callback()).then(function() { return value; }); }, function(reason) { return constructor.resolve(callback()).then(function() { return constructor.reject(reason); }); } ); } // Store setTimeout reference so promise-polyfill will be unaffected by // other code modifying setTimeout (like sinon.useFakeTimers()) var setTimeoutFunc = setTimeout; function noop() {} // Polyfill for Function.prototype.bind function bind(fn, thisArg) { return function() { fn.apply(thisArg, arguments); }; } /** * @constructor * @param {Function} fn */ function Promise$1(fn) { if (!(this instanceof Promise$1)) throw new TypeError('Promises must be constructed via new'); if (typeof fn !== 'function') throw new TypeError('not a function'); /** @type {!number} */ this._state = 0; /** @type {!boolean} */ this._handled = false; /** @type {Promise|undefined} */ this._value = undefined; /** @type {!Array} */ this._deferreds = []; doResolve(fn, this); } function handle(self, deferred) { while (self._state === 3) { self = self._value; } if (self._state === 0) { self._deferreds.push(deferred); return; } self._handled = true; Promise$1._immediateFn(function() { var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; if (cb === null) { (self._state === 1 ? resolve : reject)(deferred.promise, self._value); return; } var ret; try { ret = cb(self._value); } catch (e) { reject(deferred.promise, e); return; } resolve(deferred.promise, ret); }); } function resolve(self, newValue) { try { // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure if (newValue === self) throw new TypeError('A promise cannot be resolved with itself.'); if ( newValue && (typeof newValue === 'object' || typeof newValue === 'function') ) { var then = newValue.then; if (newValue instanceof Promise$1) { self._state = 3; self._value = newValue; finale(self); return; } else if (typeof then === 'function') { doResolve(bind(then, newValue), self); return; } } self._state = 1; self._value = newValue; finale(self); } catch (e) { reject(self, e); } } function reject(self, newValue) { self._state = 2; self._value = newValue; finale(self); } function finale(self) { if (self._state === 2 && self._deferreds.length === 0) { Promise$1._immediateFn(function() { if (!self._handled) { Promise$1._unhandledRejectionFn(self._value); } }); } for (var i = 0, len = self._deferreds.length; i < len; i++) { handle(self, self._deferreds[i]); } self._deferreds = null; } /** * @constructor */ function Handler(onFulfilled, onRejected, promise) { this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; this.onRejected = typeof onRejected === 'function' ? onRejected : null; this.promise = promise; } /** * Take a potentially misbehaving resolver function and make sure * onFulfilled and onRejected are only called once. * * Makes no guarantees about asynchrony. */ function doResolve(fn, self) { var done = false; try { fn( function(value) { if (done) return; done = true; resolve(self, value); }, function(reason) { if (done) return; done = true; reject(self, reason); } ); } catch (ex) { if (done) return; done = true; reject(self, ex); } } Promise$1.prototype['catch'] = function(onRejected) { return this.then(null, onRejected); }; Promise$1.prototype.then = function(onFulfilled, onRejected) { // @ts-ignore var prom = new this.constructor(noop); handle(this, new Handler(onFulfilled, onRejected, prom)); return prom; }; Promise$1.prototype['finally'] = finallyConstructor; Promise$1.all = function(arr) { return new Promise$1(function(resolve, reject) { if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array'); var args = Array.prototype.slice.call(arr); if (args.length === 0) return resolve([]); var remaining = args.length; function res(i, val) { try { if (val && (typeof val === 'object' || typeof val === 'function')) { var then = val.then; if (typeof then === 'function') { then.call( val, function(val) { res(i, val); }, reject ); return; } } args[i] = val; if (--remaining === 0) { resolve(args); } } catch (ex) { reject(ex); } } for (var i = 0; i < args.length; i++) { res(i, args[i]); } }); }; Promise$1.resolve = function(value) { if (value && typeof value === 'object' && value.constructor === Promise$1) { return value; } return new Promise$1(function(resolve) { resolve(value); }); }; Promise$1.reject = function(value) { return new Promise$1(function(resolve, reject) { reject(value); }); }; Promise$1.race = function(values) { return new Promise$1(function(resolve, reject) { for (var i = 0, len = values.length; i < len; i++) { values[i].then(resolve, reject); } }); }; // Use polyfill for setImmediate for performance gains Promise$1._immediateFn = (typeof setImmediate === 'function' && function(fn) { setImmediate(fn); }) || function(fn) { setTimeoutFunc(fn, 0); }; Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) { if (typeof console !== 'undefined' && console) { console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console } }; var Exports = /*#__PURE__*/ function () { function Exports(ctx) { _classCallCheck(this, Exports); this.ctx = ctx; this.w = ctx.w; } _createClass(Exports, [{ key: "getSvgString", value: function getSvgString() { return this.w.globals.dom.Paper.svg(); } }, { key: "cleanup", value: function cleanup() { var w = this.w; // hide some elements to avoid printing them on exported svg var xcrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); var ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); if (xcrosshairs) { xcrosshairs.setAttribute('x', -500); } if (ycrosshairs) { ycrosshairs.setAttribute('y1', -100); ycrosshairs.setAttribute('y2', -100); } } }, { key: "svgUrl", value: function svgUrl() { this.cleanup(); var svgData = this.getSvgString(); var svgBlob = new Blob([svgData], { type: 'image/svg+xml;charset=utf-8' }); return URL.createObjectURL(svgBlob); } }, { key: "dataURI", value: function dataURI() { var _this = this; return new Promise$1(function (resolve) { var w = _this.w; _this.cleanup(); var canvas = document.createElement('canvas'); canvas.width = w.globals.svgWidth; canvas.height = parseInt(w.globals.dom.elWrap.style.height); // because of resizeNonAxisCharts var canvasBg = w.config.chart.background === 'transparent' ? '#fff' : w.config.chart.background; var ctx = canvas.getContext('2d'); ctx.fillStyle = canvasBg; ctx.fillRect(0, 0, canvas.width, canvas.height); var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); img.crossOrigin = 'anonymous'; var svgData = _this.getSvgString(); var svgUrl = 'data:image/svg+xml,' + encodeURIComponent(svgData); img.onload = function () { ctx.drawImage(img, 0, 0); DOMURL.revokeObjectURL(svgUrl); var imgURI = canvas.toDataURL('image/png'); resolve(imgURI); }; img.src = svgUrl; }); } }, { key: "exportToSVG", value: function exportToSVG() { this.triggerDownload(this.svgUrl(), '.svg'); } }, { key: "exportToPng", value: function exportToPng() { var _this2 = this; this.dataURI().then(function (imgURI) { _this2.triggerDownload(imgURI, '.png'); }); } }, { key: "triggerDownload", value: function triggerDownload(href, ext) { var downloadLink = document.createElement('a'); downloadLink.href = href; downloadLink.download = this.w.globals.chartID + ext; document.body.appendChild(downloadLink); downloadLink.click(); document.body.removeChild(downloadLink); } }]); return Exports; }(); /** * ApexCharts Grid Class for drawing Cartesian Grid. * * @module Grid **/ var Grid = /*#__PURE__*/ function () { function Grid(ctx) { _classCallCheck(this, Grid); this.ctx = ctx; this.w = ctx.w; var w = this.w; this.anim = new Animations(this.ctx); this.xaxisLabels = w.globals.labels.slice(); this.animX = w.config.grid.xaxis.lines.animate && w.config.chart.animations.enabled; this.animY = w.config.grid.yaxis.lines.animate && w.config.chart.animations.enabled; if (w.globals.timelineLabels.length > 0) { // timeline labels are there this.xaxisLabels = w.globals.timelineLabels.slice(); } } // .when using sparklines or when showing no grid, we need to have a grid area which is reused at many places for other calculations as well _createClass(Grid, [{ key: "drawGridArea", value: function drawGridArea() { var elGrid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var w = this.w; var graphics = new Graphics(this.ctx); if (elGrid === null) { elGrid = graphics.group({ class: 'apexcharts-grid' }); } var elVerticalLine = graphics.drawLine(w.globals.padHorizontal, 1, w.globals.padHorizontal, w.globals.gridHeight, 'transparent'); var elHorzLine = graphics.drawLine(w.globals.padHorizontal, w.globals.gridHeight, w.globals.gridWidth, w.globals.gridHeight, 'transparent'); elGrid.add(elHorzLine); elGrid.add(elVerticalLine); return elGrid; } }, { key: "drawGrid", value: function drawGrid() { var w = this.w; var xAxis = new XAxis(this.ctx); var yaxis = new YAxis(this.ctx); var gl = this.w.globals; var elgrid = null; if (gl.axisCharts) { if (w.config.grid.show) { // grid is drawn after xaxis and yaxis are drawn elgrid = this.renderGrid(); gl.dom.elGraphical.add(elgrid.el); this.drawGridArea(elgrid.el); } else { var elgridArea = this.drawGridArea(); gl.dom.elGraphical.add(elgridArea); } if (elgrid !== null) { xAxis.xAxisLabelCorrections(elgrid.xAxisTickWidth); } yaxis.setYAxisTextAlignments(); } } // This mask will clip off overflowing graphics from the drawable area }, { key: "createGridMask", value: function createGridMask() { var w = this.w; var gl = w.globals; var graphics = new Graphics(this.ctx); var strokeSize = Array.isArray(w.config.stroke.width) ? 0 : w.config.stroke.width; if (Array.isArray(w.config.stroke.width)) { var strokeMaxSize = 0; w.config.stroke.width.forEach(function (m) { strokeMaxSize = Math.max(strokeMaxSize, m); }); strokeSize = strokeMaxSize; } gl.dom.elGridRectMask = document.createElementNS(gl.SVGNS, 'clipPath'); gl.dom.elGridRectMask.setAttribute('id', "gridRectMask".concat(gl.cuid)); gl.dom.elGridRectMarkerMask = document.createElementNS(gl.SVGNS, 'clipPath'); gl.dom.elGridRectMarkerMask.setAttribute('id', "gridRectMarkerMask".concat(gl.cuid)); gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2, -strokeSize / 2, gl.gridWidth + strokeSize, gl.gridHeight + strokeSize, 0, '#fff'); var coreUtils = new CoreUtils(this); coreUtils.getLargestMarkerSize(); var markerSize = w.globals.markers.largestSize + 1; gl.dom.elGridRectMarker = graphics.drawRect(-markerSize, -markerSize, gl.gridWidth + markerSize * 2, gl.gridHeight + markerSize * 2, 0, '#fff'); gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node); gl.dom.elGridRectMarkerMask.appendChild(gl.dom.elGridRectMarker.node); var defs = gl.dom.baseEl.querySelector('defs'); defs.appendChild(gl.dom.elGridRectMask); defs.appendChild(gl.dom.elGridRectMarkerMask); } // actual grid rendering }, { key: "renderGrid", value: function renderGrid() { var w = this.w; var graphics = new Graphics(this.ctx); var strokeDashArray = w.config.grid.strokeDashArray; var elg = graphics.group({ class: 'apexcharts-grid' }); var elgridLinesH = graphics.group({ class: 'apexcharts-gridlines-horizontal' }); var elgridLinesV = graphics.group({ class: 'apexcharts-gridlines-vertical' }); elg.add(elgridLinesH); elg.add(elgridLinesV); var tickAmount = 8; for (var i = 0; i < w.globals.series.length; i++) { if (typeof w.globals.yAxisScale[i] !== 'undefined') { tickAmount = w.globals.yAxisScale[i].result.length - 1; } if (tickAmount > 2) break; } var xCount; if (!w.globals.isBarHorizontal) { xCount = this.xaxisLabels.length; // draw vertical lines if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { var x1 = w.globals.padHorizontal; var y1 = 0; var x2; var y2 = w.globals.gridHeight; if (w.globals.timelineLabels.length > 0) { for (var _i = 0; _i < xCount; _i++) { x1 = this.xaxisLabels[_i].position; x2 = this.xaxisLabels[_i].position; if (w.config.grid.xaxis.lines.show && x1 > 0 && x1 < w.globals.gridWidth) { var line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); line.node.classList.add('apexcharts-gridline'); elgridLinesV.add(line); if (this.animX) { this.animateLine(line, { x1: 0, x2: 0 }, { x1: x1, x2: x2 }); } } var xAxis = new XAxis(this.ctx); if (_i === xCount - 1) { if (!w.globals.skipLastTimelinelabel) { // skip drawing last label here xAxis.drawXaxisTicks(x1, elg); } } else { xAxis.drawXaxisTicks(x1, elg); } } } else { var xCountForCategoryCharts = xCount; for (var _i2 = 0; _i2 < xCountForCategoryCharts; _i2++) { var x1Count = xCountForCategoryCharts; if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { x1Count -= 1; } x1 = x1 + w.globals.gridWidth / x1Count; x2 = x1; // skip the last line if (_i2 === x1Count - 1) break; if (w.config.grid.xaxis.lines.show) { var _line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); _line.node.classList.add('apexcharts-gridline'); elgridLinesV.add(_line); if (this.animX) { this.animateLine(_line, { x1: 0, x2: 0 }, { x1: x1, x2: x2 }); } } var _xAxis = new XAxis(this.ctx); _xAxis.drawXaxisTicks(x1, elg); } } } // draw horizontal lines if (w.config.grid.yaxis.lines.show) { var _x = 0; var _y = 0; var _y2 = 0; var _x2 = w.globals.gridWidth; for (var _i3 = 0; _i3 < tickAmount + 1; _i3++) { var _line2 = graphics.drawLine(_x, _y, _x2, _y2, w.config.grid.borderColor, strokeDashArray); elgridLinesH.add(_line2); _line2.node.classList.add('apexcharts-gridline'); if (this.animY) { this.animateLine(_line2, { y1: _y + 20, y2: _y2 + 20 }, { y1: _y, y2: _y2 }); } _y = _y + w.globals.gridHeight / tickAmount; _y2 = _y; } } } else { xCount = tickAmount; // draw vertical lines if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { var _x3 = w.globals.padHorizontal; var _y3 = 0; var _x4; var _y4 = w.globals.gridHeight; for (var _i4 = 0; _i4 < xCount + 1; _i4++) { _x3 = _x3 + w.globals.gridWidth / xCount + 0.3; _x4 = _x3; // skip the last vertical line if (_i4 === xCount - 1) break; if (w.config.grid.xaxis.lines.show) { var _line3 = graphics.drawLine(_x3, _y3, _x4, _y4, w.config.grid.borderColor, strokeDashArray); _line3.node.classList.add('apexcharts-gridline'); elgridLinesV.add(_line3); if (this.animX) { this.animateLine(_line3, { x1: 0, x2: 0 }, { x1: _x3, x2: _x4 }); } } // skip the first vertical line var _xAxis2 = new XAxis(this.ctx); _xAxis2.drawXaxisTicks(_x3, elg); } } // draw horizontal lines if (w.config.grid.yaxis.lines.show) { var _x5 = 0; var _y5 = 0; var _y6 = 0; var _x6 = w.globals.gridWidth; for (var _i5 = 0; _i5 < w.globals.dataPoints + 1; _i5++) { var _line4 = graphics.drawLine(_x5, _y5, _x6, _y6, w.config.grid.borderColor, strokeDashArray); elgridLinesH.add(_line4); _line4.node.classList.add('apexcharts-gridline'); if (this.animY) { this.animateLine(_line4, { y1: _y5 + 20, y2: _y6 + 20 }, { y1: _y5, y2: _y6 }); } _y5 = _y5 + w.globals.gridHeight / w.globals.dataPoints; _y6 = _y5; } } } this.drawGridBands(elg, xCount, tickAmount); return { el: elg, xAxisTickWidth: w.globals.gridWidth / xCount }; } }, { key: "drawGridBands", value: function drawGridBands(elg, xCount, tickAmount) { var w = this.w; var graphics = new Graphics(this.ctx); // rows background bands if (w.config.grid.row.colors !== undefined && w.config.grid.row.colors.length > 0) { var x1 = 0; var y1 = 0; var y2 = w.globals.gridHeight / tickAmount; var x2 = w.globals.gridWidth; for (var i = 0, c = 0; i < tickAmount; i++, c++) { if (c >= w.config.grid.row.colors.length) { c = 0; } var color = w.config.grid.row.colors[c]; var rect = graphics.drawRect(x1, y1, x2, y2, 0, color, w.config.grid.row.opacity); elg.add(rect); rect.node.classList.add('apexcharts-gridRow'); y1 = y1 + w.globals.gridHeight / tickAmount; } } // columns background bands if (w.config.grid.column.colors !== undefined && w.config.grid.column.colors.length > 0) { var _x7 = w.globals.padHorizontal; var _y7 = 0; var _x8 = w.globals.padHorizontal + w.globals.gridWidth / xCount; var _y8 = w.globals.gridHeight; for (var _i6 = 0, _c = 0; _i6 < xCount; _i6++, _c++) { if (_c >= w.config.grid.column.colors.length) { _c = 0; } var _color = w.config.grid.column.colors[_c]; var _rect = graphics.drawRect(_x7, _y7, _x8, _y8, 0, _color, w.config.grid.column.opacity); _rect.node.classList.add('apexcharts-gridColumn'); elg.add(_rect); _x7 = _x7 + w.globals.gridWidth / xCount; } } } }, { key: "animateLine", value: function animateLine(line, from, to) { var w = this.w; var initialAnim = w.config.chart.animations; if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { var speed = initialAnim.speed; this.anim.animateLine(line, from, to, speed); } } }]); return Grid; }(); /** * ApexCharts Responsive Class to override options for different screen sizes. * * @module Responsive **/ var Responsive = /*#__PURE__*/ function () { function Responsive(ctx) { _classCallCheck(this, Responsive); this.ctx = ctx; this.w = ctx.w; } // the opts parameter if not null has to be set overriding everything // as the opts is set by user externally _createClass(Responsive, [{ key: "checkResponsiveConfig", value: function checkResponsiveConfig(opts) { var _this = this; var w = this.w; var cnf = w.config; // check if responsive config exists if (cnf.responsive.length === 0) return; var res = cnf.responsive.slice(); res.sort(function (a, b) { return a.breakpoint > b.breakpoint ? 1 : b.breakpoint > a.breakpoint ? -1 : 0; }).reverse(); var config = new Config({}); var iterateResponsiveOptions = function iterateResponsiveOptions() { var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var largestBreakpoint = res[0].breakpoint; var width = window.innerWidth > 0 ? window.innerWidth : screen.width; if (width > largestBreakpoint) { var options = CoreUtils.extendArrayProps(config, w.globals.initialConfig); newOptions = Utils.extend(options, newOptions); newOptions = Utils.extend(w.config, newOptions); _this.overrideResponsiveOptions(newOptions); } else { for (var i = 0; i < res.length; i++) { if (width < res[i].breakpoint) { newOptions = CoreUtils.extendArrayProps(config, res[i].options); newOptions = Utils.extend(w.config, newOptions); _this.overrideResponsiveOptions(newOptions); } } } }; if (opts) { var options = CoreUtils.extendArrayProps(config, opts); options = Utils.extend(w.config, options); options = Utils.extend(options, opts); iterateResponsiveOptions(options); } else { iterateResponsiveOptions({}); } } }, { key: "overrideResponsiveOptions", value: function overrideResponsiveOptions(newOptions) { var newConfig = new Config(newOptions).init(); this.w.config = newConfig; } }]); return Responsive; }(); /** * ApexCharts Theme Class for setting the colors and palettes. * * @module Theme **/ var Theme = /*#__PURE__*/ function () { function Theme(ctx) { _classCallCheck(this, Theme); this.ctx = ctx; this.w = ctx.w; this.colors = []; } _createClass(Theme, [{ key: "init", value: function init() { this.setDefaultColors(); } }, { key: "setDefaultColors", value: function setDefaultColors() { var w = this.w; var utils = new Utils(); w.globals.dom.elWrap.classList.add(w.config.theme.mode); if (w.config.colors === undefined) { w.globals.colors = this.predefined(); } else { w.globals.colors = w.config.colors; } if (w.config.theme.monochrome.enabled) { var monoArr = []; var glsCnt = w.globals.series.length; if (w.config.plotOptions.bar.distributed && w.config.chart.type === 'bar') { glsCnt = w.globals.series[0].length * w.globals.series.length; } var mainColor = w.config.theme.monochrome.color; var part = 1 / (glsCnt / w.config.theme.monochrome.shadeIntensity); var shade = w.config.theme.monochrome.shadeTo; var percent = 0; for (var gsl = 0; gsl < glsCnt; gsl++) { var newColor = void 0; if (shade === 'dark') { newColor = utils.shadeColor(percent * -1, mainColor); percent = percent + part; } else { newColor = utils.shadeColor(percent, mainColor); percent = percent + part; } monoArr.push(newColor); } w.globals.colors = monoArr.slice(); } var defaultColors = w.globals.colors.slice(); // if user specfied less colors than no. of series, push the same colors again this.pushExtraColors(w.globals.colors); // The Border colors if (w.config.stroke.colors === undefined) { w.globals.stroke.colors = defaultColors; } else { w.globals.stroke.colors = w.config.stroke.colors; } this.pushExtraColors(w.globals.stroke.colors); // The FILL colors if (w.config.fill.colors === undefined) { w.globals.fill.colors = defaultColors; } else { w.globals.fill.colors = w.config.fill.colors; } this.pushExtraColors(w.globals.fill.colors); if (w.config.dataLabels.style.colors === undefined) { w.globals.dataLabels.style.colors = defaultColors; } else { w.globals.dataLabels.style.colors = w.config.dataLabels.style.colors; } this.pushExtraColors(w.globals.dataLabels.style.colors, 50); if (w.config.plotOptions.radar.polygons.fill.colors === undefined) { w.globals.radarPolygons.fill.colors = [w.config.theme.mode === 'dark' ? '#202D48' : '#fff']; } else { w.globals.radarPolygons.fill.colors = w.config.plotOptions.radar.polygons.fill.colors; } this.pushExtraColors(w.globals.radarPolygons.fill.colors, 20); // The point colors if (w.config.markers.colors === undefined) { w.globals.markers.colors = defaultColors; } else { w.globals.markers.colors = w.config.markers.colors; } this.pushExtraColors(w.globals.markers.colors); } // When the number of colors provided is less than the number of series, this method // will push same colors to the list // params: // distributed is only valid for distributed column/bar charts }, { key: "pushExtraColors", value: function pushExtraColors(colorSeries, length) { var distributed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var w = this.w; var len = length || w.globals.series.length; if (distributed === null) { distributed = w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap' && w.config.plotOptions.heatmap.colorScale.inverse; } if (distributed) { len = w.globals.series[0].length * w.globals.series.length; } if (colorSeries.length < len) { var diff = len - colorSeries.length; for (var i = 0; i < diff; i++) { colorSeries.push(colorSeries[i]); } } } }, { key: "updateThemeOptions", value: function updateThemeOptions(options) { options.chart = options.chart || {}; options.tooltip = options.tooltip || {}; var mode = options.theme.mode || 'light'; var palette = options.theme.palette ? options.theme.palette : mode === 'dark' ? 'palette4' : 'palette1'; var foreColor = options.chart.foreColor ? options.chart.foreColor : mode === 'dark' ? '#f6f7f8' : '#373d3f'; options.tooltip.theme = mode; options.chart.foreColor = foreColor; options.theme.palette = palette; return options; } }, { key: "predefined", value: function predefined() { var palette = this.w.config.theme.palette; // D6E3F8, FCEFEF, DCE0D9, A5978B, EDDDD4, D6E3F8, FEF5EF switch (palette) { case 'palette1': this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; break; case 'palette2': this.colors = ['#3f51b5', '#03a9f4', '#4caf50', '#f9ce1d', '#FF9800']; break; case 'palette3': this.colors = ['#33b2df', '#546E7A', '#d4526e', '#13d8aa', '#A5978B']; break; case 'palette4': this.colors = ['#4ecdc4', '#c7f464', '#81D4FA', '#fd6a6a', '#546E7A']; break; case 'palette5': this.colors = ['#2b908f', '#f9a3a4', '#90ee7e', '#fa4443', '#69d2e7']; break; case 'palette6': this.colors = ['#449DD1', '#F86624', '#EA3546', '#662E9B', '#C5D86D']; break; case 'palette7': this.colors = ['#D7263D', '#1B998B', '#2E294E', '#F46036', '#E2C044']; break; case 'palette8': this.colors = ['#662E9B', '#F86624', '#F9C80E', '#EA3546', '#43BCCD']; break; case 'palette9': this.colors = ['#5C4742', '#A5978B', '#8D5B4C', '#5A2A27', '#C4BBAF']; break; case 'palette10': this.colors = ['#A300D6', '#7D02EB', '#5653FE', '#2983FF', '#00B1F2']; break; default: this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; break; } return this.colors; } }]); return Theme; }(); var Utils$1 = /*#__PURE__*/ function () { function Utils(tooltipContext) { _classCallCheck(this, Utils); this.w = tooltipContext.w; this.ttCtx = tooltipContext; this.ctx = tooltipContext.ctx; } /** ** When hovering over series, you need to capture which series is being hovered on. ** This function will return both capturedseries index as well as inner index of that series * @memberof Utils * @param {object} * - hoverArea = the rect on which user hovers * - elGrid = dimensions of the hover rect (it can be different than hoverarea) */ _createClass(Utils, [{ key: "getNearestValues", value: function getNearestValues(_ref) { var hoverArea = _ref.hoverArea, elGrid = _ref.elGrid, clientX = _ref.clientX, clientY = _ref.clientY, hasBars = _ref.hasBars; var w = this.w; var hoverWidth = w.globals.gridWidth; var xDivisor = hoverWidth / (w.globals.dataPoints - 1); var seriesBound = elGrid.getBoundingClientRect(); if (hasBars && w.globals.comboCharts || hasBars) { xDivisor = hoverWidth / w.globals.dataPoints; } var hoverX = clientX - seriesBound.left; var hoverY = clientY - seriesBound.top; var notInRect = hoverX < 0 || hoverY < 0 || hoverX > w.globals.gridWidth || hoverY > w.globals.gridHeight; if (notInRect) { hoverArea.classList.remove('hovering-zoom'); hoverArea.classList.remove('hovering-pan'); } else { if (w.globals.zoomEnabled) { hoverArea.classList.remove('hovering-pan'); hoverArea.classList.add('hovering-zoom'); } else if (w.globals.panEnabled) { hoverArea.classList.remove('hovering-zoom'); hoverArea.classList.add('hovering-pan'); } } var j = Math.round(hoverX / xDivisor); if (hasBars) { j = Math.ceil(hoverX / xDivisor); j = j - 1; } var capturedSeries = null; var closest = null; var seriesXValArr = []; var seriesYValArr = []; for (var s = 0; s < w.globals.seriesXvalues.length; s++) { seriesXValArr.push([w.globals.seriesXvalues[s][0] - 0.000001].concat(w.globals.seriesXvalues[s])); } seriesXValArr = seriesXValArr.map(function (seriesXVal) { return seriesXVal.filter(function (s) { return s; }); }); seriesYValArr = w.globals.seriesYvalues.map(function (seriesYVal) { return seriesYVal.filter(function (s) { return s; }); }); // if X axis type is not category and tooltip is not shared, then we need to find the cursor position and get the nearest value if (w.globals.isXNumeric) { closest = this.closestInMultiArray(hoverX, hoverY, seriesXValArr, seriesYValArr); capturedSeries = closest.index; j = closest.j; if (capturedSeries !== null) { // initial push, it should be a little smaller than the 1st val seriesXValArr = w.globals.seriesXvalues[capturedSeries]; closest = this.closestInArray(hoverX, seriesXValArr); j = closest.index; } } w.globals.capturedSeriesIndex = capturedSeries === null ? -1 : capturedSeries; w.globals.capturedDataPointIndex = j === null ? -1 : j; if (!j || j < 1) j = 0; return { capturedSeries: capturedSeries, j: j, hoverX: hoverX, hoverY: hoverY }; } }, { key: "closestInMultiArray", value: function closestInMultiArray(hoverX, hoverY, Xarrays, Yarrays) { var w = this.w; var activeIndex = 0; var currIndex = null; var j = -1; if (w.globals.series.length > 1) { activeIndex = this.getFirstActiveXArray(Xarrays); } else { currIndex = 0; } var currY = Yarrays[activeIndex][0]; var currX = Xarrays[activeIndex][0]; var diffX = Math.abs(hoverX - currX); var diffY = Math.abs(hoverY - currY); var diff = diffY + diffX; Yarrays.map(function (arrY, arrIndex) { arrY.map(function (y, innerKey) { var newdiffY = Math.abs(hoverY - Yarrays[arrIndex][innerKey]); var newdiffX = Math.abs(hoverX - Xarrays[arrIndex][innerKey]); var newdiff = newdiffX + newdiffY; if (newdiff < diff) { diff = newdiff; diffX = newdiffX; diffY = newdiffY; currIndex = arrIndex; j = innerKey; } }); }); return { index: currIndex, j: j }; } }, { key: "getFirstActiveXArray", value: function getFirstActiveXArray(Xarrays) { var activeIndex = 0; var coreUtils = new CoreUtils(this.ctx); var firstActiveSeriesIndex = Xarrays.map(function (xarr, index) { if (xarr.length > 0) { return index; } else { return -1; } }); for (var a = 0; a < firstActiveSeriesIndex.length; a++) { var total = coreUtils.getSeriesTotalByIndex(a); if (firstActiveSeriesIndex[a] !== -1 && total !== 0 && !coreUtils.seriesHaveSameValues(a)) { activeIndex = firstActiveSeriesIndex[a]; break; } } return activeIndex; } }, { key: "closestInArray", value: function closestInArray(val, arr) { var curr = arr[0]; var currIndex = null; var diff = Math.abs(val - curr); for (var i = 0; i < arr.length; i++) { var newdiff = Math.abs(val - arr[i]); if (newdiff < diff) { diff = newdiff; currIndex = i; } } return { index: currIndex }; } /** * When there are multiple series, it is possible to have different x values for each series. * But it may be possible in those multiple series, that there is same x value for 2 or more * series. * @memberof Utils * @param {int} * - j = is the inner index of series -> (series[i][j]) * @return {bool} */ }, { key: "isXoverlap", value: function isXoverlap(j) { var w = this.w; var xSameForAllSeriesJArr = []; var seriesX = w.globals.seriesX.filter(function (s) { return typeof s[0] !== 'undefined'; }); if (seriesX.length > 0) { for (var i = 0; i < seriesX.length - 1; i++) { if (typeof seriesX[i][j] !== 'undefined' && typeof seriesX[i + 1][j] !== 'undefined') { if (seriesX[i][j] !== seriesX[i + 1][j]) { xSameForAllSeriesJArr.push('unEqual'); } } } } if (xSameForAllSeriesJArr.length === 0) { return true; } return false; } }, { key: "isInitialSeriesSameLen", value: function isInitialSeriesSameLen() { var sameLen = true; var initialSeries = this.w.globals.initialSeries; for (var i = 0; i < initialSeries.length - 1; i++) { if (initialSeries[i].data.length !== initialSeries[i + 1].data.length) { sameLen = false; break; } } return sameLen; } }, { key: "getBarsHeight", value: function getBarsHeight(allbars) { var bars = _toConsumableArray(allbars); var totalHeight = bars.reduce(function (acc, bar) { return acc + bar.getBBox().height; }, 0); return totalHeight; } }, { key: "toggleAllTooltipSeriesGroups", value: function toggleAllTooltipSeriesGroups(state) { var w = this.w; var ttCtx = this.ttCtx; if (ttCtx.allTooltipSeriesGroups.length === 0) { ttCtx.allTooltipSeriesGroups = w.globals.dom.baseEl.querySelectorAll('.apexcharts-tooltip-series-group'); } var allTooltipSeriesGroups = ttCtx.allTooltipSeriesGroups; for (var i = 0; i < allTooltipSeriesGroups.length; i++) { if (state === 'enable') { allTooltipSeriesGroups[i].classList.add('active'); allTooltipSeriesGroups[i].style.display = w.config.tooltip.items.display; } else { allTooltipSeriesGroups[i].classList.remove('active'); allTooltipSeriesGroups[i].style.display = 'none'; } } } }]); return Utils; }(); /** * ApexCharts Tooltip.Labels Class to draw texts on the tooltip. * * @module Tooltip.Labels **/ var Labels = /*#__PURE__*/ function () { function Labels(tooltipContext) { _classCallCheck(this, Labels); this.w = tooltipContext.w; this.ctx = tooltipContext.ctx; this.ttCtx = tooltipContext; this.tooltipUtil = new Utils$1(tooltipContext); } _createClass(Labels, [{ key: "drawSeriesTexts", value: function drawSeriesTexts(_ref) { var _ref$shared = _ref.shared, shared = _ref$shared === void 0 ? true : _ref$shared, ttItems = _ref.ttItems, _ref$i = _ref.i, i = _ref$i === void 0 ? 0 : _ref$i, _ref$j = _ref.j, j = _ref$j === void 0 ? null : _ref$j; var w = this.w; if (w.config.tooltip.custom !== undefined) { this.handleCustomTooltip({ i: i, j: j }); } else { this.toggleActiveInactiveSeries(shared); } var values = this.getValuesToPrint({ i: i, j: j }); this.printLabels({ i: i, j: j, values: values, ttItems: ttItems, shared: shared }); // Re-calculate tooltip dimensions now that we have drawn the text var tooltipEl = this.ttCtx.getElTooltip(); this.ttCtx.tooltipRect.ttWidth = tooltipEl.getBoundingClientRect().width; this.ttCtx.tooltipRect.ttHeight = tooltipEl.getBoundingClientRect().height; } }, { key: "printLabels", value: function printLabels(_ref2) { var i = _ref2.i, j = _ref2.j, values = _ref2.values, ttItems = _ref2.ttItems, shared = _ref2.shared; var w = this.w; var val; var xVal = values.xVal, zVal = values.zVal, xAxisTTVal = values.xAxisTTVal; var seriesName = ''; var pColor = w.globals.colors[i]; if (j !== null && w.config.plotOptions.bar.distributed) { pColor = w.globals.colors[j]; } for (var t = 0, inverset = w.globals.series.length - 1; t < w.globals.series.length; t++, inverset--) { var f = this.getFormatters(i); seriesName = this.getSeriesName({ fn: f.yLbTitleFormatter, index: i, seriesIndex: i, j: j }); if (shared) { var tIndex = w.config.tooltip.inverseOrder ? inverset : t; f = this.getFormatters(tIndex); seriesName = this.getSeriesName({ fn: f.yLbTitleFormatter, index: tIndex, seriesIndex: i, j: j }); pColor = w.globals.colors[tIndex]; // for plot charts, not for pie/donuts val = f.yLbFormatter(w.globals.series[tIndex][j], { series: w.globals.series, seriesIndex: tIndex, dataPointIndex: j, w: w }); // discard 0 values in BARS if (this.ttCtx.hasBars() && w.config.chart.stacked && w.globals.series[tIndex][j] === 0 || typeof w.globals.series[tIndex][j] === 'undefined') { val = undefined; } } else { val = f.yLbFormatter(w.globals.series[i][j], { series: w.globals.series, seriesIndex: i, dataPointIndex: j, w: w }); } // for pie / donuts if (j === null) { val = f.yLbFormatter(w.globals.series[i], w); } this.DOMHandling({ t: t, ttItems: ttItems, values: { val: val, xVal: xVal, xAxisTTVal: xAxisTTVal, zVal: zVal }, seriesName: seriesName, shared: shared, pColor: pColor }); } } }, { key: "getFormatters", value: function getFormatters(i) { var w = this.w; var yLbFormatter = w.globals.yLabelFormatters[i]; var yLbTitleFormatter; if (w.globals.ttVal !== undefined) { if (Array.isArray(w.globals.ttVal)) { yLbFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].formatter; yLbTitleFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].title && w.globals.ttVal[i].title.formatter; } else { yLbFormatter = w.globals.ttVal.formatter; if (typeof w.globals.ttVal.title.formatter === 'function') { yLbTitleFormatter = w.globals.ttVal.title.formatter; } } } else { yLbTitleFormatter = w.config.tooltip.y.title.formatter; } if (typeof yLbFormatter !== 'function') { if (w.globals.yLabelFormatters[0]) { yLbFormatter = w.globals.yLabelFormatters[0]; } else { yLbFormatter = function yLbFormatter(label) { return label; }; } } if (typeof yLbTitleFormatter !== 'function') { yLbTitleFormatter = function yLbTitleFormatter(label) { return label; }; } return { yLbFormatter: yLbFormatter, yLbTitleFormatter: yLbTitleFormatter }; } }, { key: "getSeriesName", value: function getSeriesName(_ref3) { var fn = _ref3.fn, index = _ref3.index, seriesIndex = _ref3.seriesIndex, j = _ref3.j; var w = this.w; return fn(String(w.globals.seriesNames[index]), { series: w.globals.series, seriesIndex: seriesIndex, dataPointIndex: j, w: w }); } }, { key: "DOMHandling", value: function DOMHandling(_ref4) { var t = _ref4.t, ttItems = _ref4.ttItems, values = _ref4.values, seriesName = _ref4.seriesName, shared = _ref4.shared, pColor = _ref4.pColor; var w = this.w; var ttCtx = this.ttCtx; var val = values.val, xVal = values.xVal, xAxisTTVal = values.xAxisTTVal, zVal = values.zVal; var ttItemsChildren = null; ttItemsChildren = ttItems[t].children; if (w.config.tooltip.fillSeriesColor) { // elTooltip.style.backgroundColor = pColor ttItems[t].style.backgroundColor = pColor; ttItemsChildren[0].style.display = 'none'; } if (ttCtx.showTooltipTitle) { if (ttCtx.tooltipTitle === null) { // get it once if null, and store it in class property ttCtx.tooltipTitle = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-title'); } ttCtx.tooltipTitle.innerHTML = xVal; } // if xaxis tooltip is constructed, we need to replace the innerHTML if (ttCtx.blxaxisTooltip) { ttCtx.xaxisTooltipText.innerHTML = xAxisTTVal !== '' ? xAxisTTVal : xVal; } var ttYLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-label'); if (ttYLabel) { ttYLabel.innerHTML = seriesName ? seriesName + ': ' : ''; } var ttYVal = ttItems[t].querySelector('.apexcharts-tooltip-text-value'); if (ttYVal) { ttYVal.innerHTML = val; } if (ttItemsChildren[0] && ttItemsChildren[0].classList.contains('apexcharts-tooltip-marker')) { ttItemsChildren[0].style.backgroundColor = pColor; } if (!w.config.tooltip.marker.show) { ttItemsChildren[0].style.display = 'none'; } if (zVal !== null) { var ttZLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-z-label'); ttZLabel.innerHTML = w.config.tooltip.z.title; var ttZVal = ttItems[t].querySelector('.apexcharts-tooltip-text-z-value'); ttZVal.innerHTML = zVal; } if (shared && ttItemsChildren[0]) { // hide when no Val or series collapsed if (typeof val === 'undefined' || val === null || w.globals.collapsedSeriesIndices.indexOf(t) > -1) { ttItemsChildren[0].parentNode.style.display = 'none'; } else { ttItemsChildren[0].parentNode.style.display = w.config.tooltip.items.display; } } } }, { key: "toggleActiveInactiveSeries", value: function toggleActiveInactiveSeries(shared) { var w = this.w; if (shared) { // make all tooltips active this.tooltipUtil.toggleAllTooltipSeriesGroups('enable'); } else { // disable all tooltip text groups this.tooltipUtil.toggleAllTooltipSeriesGroups('disable'); // enable the first tooltip text group var firstTooltipSeriesGroup = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-series-group'); if (firstTooltipSeriesGroup) { firstTooltipSeriesGroup.classList.add('active'); firstTooltipSeriesGroup.style.display = w.config.tooltip.items.display; } } } }, { key: "getValuesToPrint", value: function getValuesToPrint(_ref5) { var i = _ref5.i, j = _ref5.j; var w = this.w; var filteredSeriesX = this.ctx.series.filteredSeriesX(); var xVal = ''; var xAxisTTVal = ''; var zVal = null; var val = null; var customFormatterOpts = { series: w.globals.series, seriesIndex: i, dataPointIndex: j, w: w }; var zFormatter = w.globals.ttZFormatter; if (j === null) { val = w.globals.series[i]; } else { if (w.globals.isXNumeric) { xVal = filteredSeriesX[i][j]; if (filteredSeriesX[i].length === 0) { // a series (possibly the first one) might be collapsed, so get the next active index var firstActiveSeriesIndex = this.tooltipUtil.getFirstActiveXArray(filteredSeriesX); xVal = filteredSeriesX[firstActiveSeriesIndex][j]; } } else { xVal = typeof w.globals.labels[j] !== 'undefined' ? w.globals.labels[j] : ''; } } var bufferXVal = xVal; if (w.globals.isXNumeric && w.config.xaxis.type === 'datetime') { var xFormat = new Formatters(this.ctx); xVal = xFormat.xLabelFormat(w.globals.ttKeyFormatter, bufferXVal, bufferXVal); } else { if (!w.globals.isBarHorizontal) { xVal = w.globals.xLabelFormatter(bufferXVal, customFormatterOpts); } } // override default x-axis formatter with tooltip formatter if (w.config.tooltip.x.formatter !== undefined) { xVal = w.globals.ttKeyFormatter(bufferXVal, customFormatterOpts); } if (w.globals.seriesZ.length > 0 && w.globals.seriesZ[0].length > 0) { zVal = zFormatter(w.globals.seriesZ[i][j], w); } if (typeof w.config.xaxis.tooltip.formatter === 'function') { xAxisTTVal = w.globals.xaxisTooltipFormatter(bufferXVal, customFormatterOpts); } else { xAxisTTVal = xVal; } return { val: val, xVal: xVal, xAxisTTVal: xAxisTTVal, zVal: zVal }; } }, { key: "handleCustomTooltip", value: function handleCustomTooltip(_ref6) { var i = _ref6.i, j = _ref6.j; var w = this.w; var tooltipEl = this.ttCtx.getElTooltip(); // override everything with a custom html tooltip and replace it tooltipEl.innerHTML = w.config.tooltip.custom({ ctx: this.ctx, series: w.globals.series, seriesIndex: i, dataPointIndex: j, w: w }); } }]); return Labels; }(); /** * ApexCharts Tooltip.Position Class to move the tooltip based on x and y position. * * @module Tooltip.Position **/ var Position = /*#__PURE__*/ function () { function Position(tooltipContext) { _classCallCheck(this, Position); this.ttCtx = tooltipContext; this.ctx = tooltipContext.ctx; this.w = tooltipContext.w; } /** * This will move the crosshair (the vertical/horz line that moves along with mouse) * Along with this, this function also calls the xaxisMove function * @memberof Position * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair */ _createClass(Position, [{ key: "moveXCrosshairs", value: function moveXCrosshairs(cx) { var j = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var ttCtx = this.ttCtx; var w = this.w; var xcrosshairs = ttCtx.getElXCrosshairs(); var x = cx - ttCtx.xcrosshairsWidth / 2; var tickAmount = w.globals.labels.slice().length; if (j !== null) { x = w.globals.gridWidth / tickAmount * j; } if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { if (x + ttCtx.xcrosshairsWidth > w.globals.gridWidth) { x = w.globals.gridWidth - ttCtx.xcrosshairsWidth; } } else { if (j !== null) { x = x + w.globals.gridWidth / tickAmount / 2; } } if (x < 0) { x = 0; } if (x > w.globals.gridWidth) { x = w.globals.gridWidth; } if (xcrosshairs !== null) { xcrosshairs.setAttribute('x', x); xcrosshairs.setAttribute('x1', x); xcrosshairs.setAttribute('x2', x); xcrosshairs.setAttribute('y2', w.globals.gridHeight); xcrosshairs.classList.add('active'); } if (ttCtx.blxaxisTooltip) { var tx = x; if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { tx = x + ttCtx.xcrosshairsWidth / 2; } this.moveXAxisTooltip(tx); } } /** * This will move the crosshair (the vertical/horz line that moves along with mouse) * Along with this, this function also calls the xaxisMove function * @memberof Position * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair */ }, { key: "moveYCrosshairs", value: function moveYCrosshairs(cy) { var ttCtx = this.ttCtx; if (ttCtx.ycrosshairs !== null) { Graphics.setAttrs(ttCtx.ycrosshairs, { y1: cy, y2: cy }); Graphics.setAttrs(ttCtx.ycrosshairsHidden, { y1: cy, y2: cy }); } } /** ** AxisTooltip is the small rectangle which appears on x axis with x value, when user moves * @memberof Position * @param {int} - cx = point's x position, wherever point's x is, you need to move */ }, { key: "moveXAxisTooltip", value: function moveXAxisTooltip(cx) { var w = this.w; var ttCtx = this.ttCtx; if (ttCtx.xaxisTooltip !== null) { ttCtx.xaxisTooltip.classList.add('active'); var cy = ttCtx.xaxisOffY + w.config.xaxis.tooltip.offsetY + w.globals.translateY + 1 + w.config.xaxis.offsetY; var xaxisTTText = ttCtx.xaxisTooltip.getBoundingClientRect(); var xaxisTTTextWidth = xaxisTTText.width; cx = cx - xaxisTTTextWidth / 2; if (!isNaN(cx)) { cx = cx + w.globals.translateX; var textRect = 0; var graphics = new Graphics(this.ctx); textRect = graphics.getTextRects(ttCtx.xaxisTooltipText.innerHTML); ttCtx.xaxisTooltipText.style.minWidth = textRect.width + 'px'; ttCtx.xaxisTooltip.style.left = cx + 'px'; ttCtx.xaxisTooltip.style.top = cy + 'px'; } } } }, { key: "moveYAxisTooltip", value: function moveYAxisTooltip(index) { var w = this.w; var ttCtx = this.ttCtx; if (ttCtx.yaxisTTEls === null) { ttCtx.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); } var ycrosshairsHiddenRectY1 = parseInt(ttCtx.ycrosshairsHidden.getAttribute('y1')); var cy = w.globals.translateY + ycrosshairsHiddenRectY1; var yAxisTTRect = ttCtx.yaxisTTEls[index].getBoundingClientRect(); var yAxisTTHeight = yAxisTTRect.height; var cx = w.globals.translateYAxisX[index] - 2; if (w.config.yaxis[index].opposite) { cx = cx - 26; } cy = cy - yAxisTTHeight / 2; if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1) { ttCtx.yaxisTTEls[index].classList.add('active'); ttCtx.yaxisTTEls[index].style.top = cy + 'px'; ttCtx.yaxisTTEls[index].style.left = cx + w.config.yaxis[index].tooltip.offsetX + 'px'; } else { ttCtx.yaxisTTEls[index].classList.remove('active'); } } /** ** moves the whole tooltip by changing x, y attrs * @memberof Position * @param {int} - cx = point's x position, wherever point's x is, you need to move tooltip * @param {int} - cy = point's y position, wherever point's y is, you need to move tooltip * @param {int} - r = point's radius */ }, { key: "moveTooltip", value: function moveTooltip(cx, cy) { var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var w = this.w; var ttCtx = this.ttCtx; var tooltipEl = ttCtx.getElTooltip(); var tooltipRect = ttCtx.tooltipRect; var pointR = r !== null ? parseInt(r) : 1; var x = parseInt(cx) + pointR + 5; var y = parseInt(cy) + pointR / 2; // - tooltipRect.ttHeight / 2 if (x > w.globals.gridWidth / 2) { x = x - tooltipRect.ttWidth - pointR - 15; } if (x > w.globals.gridWidth - tooltipRect.ttWidth - 10) { x = w.globals.gridWidth - tooltipRect.ttWidth; } if (x < -20) { x = -20; } if (w.config.tooltip.followCursor) { var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); y = ttCtx.e.clientY + w.globals.translateY - seriesBound.top - tooltipRect.ttHeight / 2; } var newPositions = this.positionChecks(tooltipRect, x, y); x = newPositions.x; y = newPositions.y; if (!isNaN(x)) { x = x + w.globals.translateX; tooltipEl.style.left = x + 'px'; tooltipEl.style.top = y + 'px'; } } }, { key: "positionChecks", value: function positionChecks(tooltipRect, x, y) { var w = this.w; if (tooltipRect.ttHeight + y > w.globals.gridHeight) { y = w.globals.gridHeight - tooltipRect.ttHeight + w.globals.translateY; } if (y < 0) { y = 0; } return { x: x, y: y }; } }, { key: "moveMarkers", value: function moveMarkers(i, j) { var w = this.w; var ttCtx = this.ttCtx; if (w.globals.markers.size[i] > 0) { var allPoints = w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(i, "'] .apexcharts-marker")); for (var p = 0; p < allPoints.length; p++) { if (parseInt(allPoints[p].getAttribute('rel')) === j) { ttCtx.marker.resetPointsSize(); ttCtx.marker.enlargeCurrentPoint(j, allPoints[p]); } } } else { ttCtx.marker.resetPointsSize(); this.moveDynamicPointOnHover(j, i); } } // This function is used when you need to show markers/points only on hover - // DIFFERENT X VALUES in multiple series }, { key: "moveDynamicPointOnHover", value: function moveDynamicPointOnHover(j, capturedSeries) { var w = this.w; var ttCtx = this.ttCtx; var cx = 0; var cy = 0; var pointsArr = w.globals.pointsArray; var hoverSize = w.config.markers.hover.size; if (hoverSize === undefined) { hoverSize = w.globals.markers.size[capturedSeries] + w.config.markers.hover.sizeOffset; } if (w.config.series[capturedSeries].type && w.config.series[capturedSeries].type === 'column') { // fix error mentioned in #811 return; } cx = pointsArr[capturedSeries][j][0]; cy = pointsArr[capturedSeries][j][1] ? pointsArr[capturedSeries][j][1] : 0; var point = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(capturedSeries, "'] .apexcharts-series-markers circle")); if (point) { point.setAttribute('r', hoverSize); point.setAttribute('cx', cx); point.setAttribute('cy', cy); } // point.style.opacity = w.config.markers.hover.opacity this.moveXCrosshairs(cx); if (!ttCtx.fixedTooltip) { this.moveTooltip(cx, cy, hoverSize); } } // This function is used when you need to show markers/points only on hover - // SAME X VALUES in multiple series }, { key: "moveDynamicPointsOnHover", value: function moveDynamicPointsOnHover(j) { var ttCtx = this.ttCtx; var w = ttCtx.w; var cx = 0; var cy = 0; var activeSeries = 0; var pointsArr = w.globals.pointsArray; var series = new Series(this.ctx); activeSeries = series.getActiveSeriesIndex(); var hoverSize = w.config.markers.hover.size; if (hoverSize === undefined) { hoverSize = w.globals.markers.size[activeSeries] + w.config.markers.hover.sizeOffset; } if (pointsArr[activeSeries]) { cx = pointsArr[activeSeries][j][0]; cy = pointsArr[activeSeries][j][1]; } var points = null; var allPoints = ttCtx.getAllMarkers(); if (allPoints !== null) { points = allPoints; } else { points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers circle'); } if (points !== null) { for (var p = 0; p < points.length; p++) { var pointArr = pointsArr[p]; if (pointArr && pointArr.length) { var pcy = pointsArr[p][j][1]; points[p].setAttribute('cx', cx); var realIndex = parseInt(points[p].parentNode.parentNode.parentNode.getAttribute('data:realIndex')); if (pcy !== null) { points[realIndex] && points[realIndex].setAttribute('r', hoverSize); points[realIndex] && points[realIndex].setAttribute('cy', pcy); } else { points[realIndex] && points[realIndex].setAttribute('r', 0); } } } } this.moveXCrosshairs(cx); if (!ttCtx.fixedTooltip) { var tcy = cy || w.globals.gridHeight; this.moveTooltip(cx, tcy, hoverSize); } } }, { key: "moveStickyTooltipOverBars", value: function moveStickyTooltipOverBars(j) { var w = this.w; var ttCtx = this.ttCtx; var i = w.globals.maxValsInArrayIndex + 1; var jBar = w.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(i, "'] path[j='").concat(j, "'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(i, "'] path[j='").concat(j, "'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(i, "'] path[j='").concat(j, "']")); var bcx = jBar ? parseFloat(jBar.getAttribute('cx')) : 0; var bcy = 0; var bw = jBar ? parseFloat(jBar.getAttribute('barWidth')) : 0; if (w.globals.isXNumeric) { bcx = bcx - bw / 2; } else { bcx = ttCtx.xAxisTicksPositions[j - 1] + ttCtx.dataPointsDividedWidth / 2; if (isNaN(bcx)) { bcx = ttCtx.xAxisTicksPositions[j] - ttCtx.dataPointsDividedWidth / 2; } } // tooltip will move vertically along with mouse as it is a shared tooltip var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); bcy = ttCtx.e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2; this.moveXCrosshairs(bcx); if (!ttCtx.fixedTooltip) { var tcy = bcy || w.globals.gridHeight; this.moveTooltip(bcx, tcy); } } }]); return Position; }(); /** * ApexCharts Tooltip.Marker Class to draw texts on the tooltip. * * @module Tooltip.Marker **/ var Marker = /*#__PURE__*/ function () { function Marker(tooltipContext) { _classCallCheck(this, Marker); this.w = tooltipContext.w; this.ttCtx = tooltipContext; this.ctx = tooltipContext.ctx; this.tooltipPosition = new Position(tooltipContext); } _createClass(Marker, [{ key: "drawDynamicPoints", value: function drawDynamicPoints() { var w = this.w; var graphics = new Graphics(this.ctx); var marker = new Markers(this.ctx); var elsSeries = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); for (var i = 0; i < elsSeries.length; i++) { var seriesIndex = parseInt(elsSeries[i].getAttribute('data:realIndex')); var pointsMain = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "'] .apexcharts-series-markers-wrap")); if (pointsMain !== null) { // it can be null as we have tooltips in donut/bar charts var point = void 0; var PointClasses = "apexcharts-marker w".concat((Math.random() + 1).toString(36).substring(4)); if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { PointClasses += ' no-pointer-events'; } var elPointOptions = marker.getMarkerConfig(PointClasses, seriesIndex); point = graphics.drawMarker(0, 0, elPointOptions); point.node.setAttribute('default-marker-size', 0); var elPointsG = document.createElementNS(w.globals.SVGNS, 'g'); elPointsG.classList.add('apexcharts-series-markers'); elPointsG.appendChild(point.node); pointsMain.appendChild(elPointsG); } } } }, { key: "enlargeCurrentPoint", value: function enlargeCurrentPoint(rel, point) { var x = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var y = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var w = this.w; if (w.config.chart.type !== 'bubble') { this.newPointSize(rel, point); } var cx = point.getAttribute('cx'); var cy = point.getAttribute('cy'); if (x !== null && y !== null) { cx = x; cy = y; } this.tooltipPosition.moveXCrosshairs(cx); if (!this.fixedTooltip) { if (w.config.chart.type === 'radar') { var elGrid = this.ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); cx = this.ttCtx.e.clientX - seriesBound.left; } this.tooltipPosition.moveTooltip(cx, cy, w.config.markers.hover.size); } } }, { key: "enlargePoints", value: function enlargePoints(j) { var w = this.w; var me = this; var ttCtx = this.ttCtx; var col = j; var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); var newSize = w.config.markers.hover.size; for (var p = 0; p < points.length; p++) { var rel = points[p].getAttribute('rel'); var index = points[p].getAttribute('index'); if (newSize === undefined) { newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; } if (col === parseInt(rel)) { me.newPointSize(col, points[p]); var cx = points[p].getAttribute('cx'); var cy = points[p].getAttribute('cy'); me.tooltipPosition.moveXCrosshairs(cx); if (!ttCtx.fixedTooltip) { me.tooltipPosition.moveTooltip(cx, cy, newSize); } } else { me.oldPointSize(points[p]); } } } }, { key: "newPointSize", value: function newPointSize(rel, point) { var w = this.w; var newSize = w.config.markers.hover.size; var elPoint = null; if (rel === 0) { elPoint = point.parentNode.firstChild; } else { elPoint = point.parentNode.lastChild; } var index = parseInt(elPoint.getAttribute('index')); if (newSize === undefined) { newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; } elPoint.setAttribute('r', newSize); } }, { key: "oldPointSize", value: function oldPointSize(point) { var size = parseInt(point.getAttribute('default-marker-size')); point.setAttribute('r', size); } }, { key: "resetPointsSize", value: function resetPointsSize() { var w = this.w; var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); for (var p = 0; p < points.length; p++) { var size = parseInt(points[p].getAttribute('default-marker-size')); if (Utils.isNumber(size)) { points[p].setAttribute('r', size); } else { points[p].setAttribute('r', 0); } } } }]); return Marker; }(); /** * ApexCharts Tooltip.Intersect Class. * * @module Tooltip.Intersect **/ var Intersect = /*#__PURE__*/ function () { function Intersect(tooltipContext) { _classCallCheck(this, Intersect); this.w = tooltipContext.w; this.ttCtx = tooltipContext; } _createClass(Intersect, [{ key: "getAttr", value: function getAttr(e, attr) { return parseFloat(e.target.getAttribute(attr)); } }, { key: "handleHeatTooltip", value: function handleHeatTooltip(_ref) { var e = _ref.e, opt = _ref.opt, x = _ref.x, y = _ref.y; var ttCtx = this.ttCtx; var w = this.w; if (e.target.classList.contains('apexcharts-heatmap-rect')) { var i = this.getAttr(e, 'i'); var j = this.getAttr(e, 'j'); var cx = this.getAttr(e, 'cx'); var cy = this.getAttr(e, 'cy'); var width = this.getAttr(e, 'width'); var height = this.getAttr(e, 'height'); ttCtx.tooltipLabels.drawSeriesTexts({ ttItems: opt.ttItems, i: i, j: j, shared: false }); w.globals.capturedSeriesIndex = i; w.globals.capturedDataPointIndex = j; x = cx + ttCtx.tooltipRect.ttWidth / 2 + width; y = cy + ttCtx.tooltipRect.ttHeight / 2 - height / 2; ttCtx.tooltipPosition.moveXCrosshairs(cx + width / 2); if (x > w.globals.gridWidth / 2) { x = cx - ttCtx.tooltipRect.ttWidth / 2 + width; } if (ttCtx.w.config.tooltip.followCursor) { var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); // x = ttCtx.e.clientX - seriesBound.left y = ttCtx.e.clientY - seriesBound.top + w.globals.translateY / 2 - 10; } } return { x: x, y: y }; } }, { key: "handleMarkerTooltip", value: function handleMarkerTooltip(_ref2) { var e = _ref2.e, opt = _ref2.opt, x = _ref2.x, y = _ref2.y; var w = this.w; var ttCtx = this.ttCtx; var i; var j; if (e.target.classList.contains('apexcharts-marker')) { var cx = parseInt(opt.paths.getAttribute('cx')); var cy = parseInt(opt.paths.getAttribute('cy')); var val = parseFloat(opt.paths.getAttribute('val')); j = parseInt(opt.paths.getAttribute('rel')); i = parseInt(opt.paths.parentNode.parentNode.parentNode.getAttribute('rel')) - 1; if (ttCtx.intersect) { var el = Utils.findAncestor(opt.paths, 'apexcharts-series'); if (el) { i = parseInt(el.getAttribute('data:realIndex')); } } ttCtx.tooltipLabels.drawSeriesTexts({ ttItems: opt.ttItems, i: i, j: j, shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared }); if (e.type === 'mouseup') { ttCtx.markerClick(e, i, j); } w.globals.capturedSeriesIndex = i; w.globals.capturedDataPointIndex = j; x = cx; y = cy + w.globals.translateY - ttCtx.tooltipRect.ttHeight * 1.4; if (ttCtx.w.config.tooltip.followCursor) { var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); y = ttCtx.e.clientY + w.globals.translateY - seriesBound.top; } if (val < 0) { y = cy; } ttCtx.marker.enlargeCurrentPoint(j, opt.paths, x, y); } return { x: x, y: y }; } }, { key: "handleBarTooltip", value: function handleBarTooltip(_ref3) { var e = _ref3.e, opt = _ref3.opt; var w = this.w; var ttCtx = this.ttCtx; var tooltipEl = ttCtx.getElTooltip(); var bx = 0; var x = 0; var y = 0; // let bW = 0 var i = 0; var strokeWidth; var barXY = this.getBarTooltipXY({ e: e, opt: opt }); i = barXY.i; var barHeight = barXY.barHeight; var j = barXY.j; w.globals.capturedSeriesIndex = i; w.globals.capturedDataPointIndex = j; if (w.globals.isBarHorizontal && ttCtx.hasBars() || !w.config.tooltip.shared) { x = barXY.x; y = barXY.y; strokeWidth = Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width; // bW = barXY.barWidth bx = x; } else { if (!w.globals.comboCharts && !w.config.tooltip.shared) { bx = bx / 2; } } // y is NaN, make it touch the bottom of grid area if (isNaN(y)) { y = w.globals.svgHeight - ttCtx.tooltipRect.ttHeight; } // x exceeds gridWidth if (x + ttCtx.tooltipRect.ttWidth > w.globals.gridWidth) { x = x - ttCtx.tooltipRect.ttWidth; } else if (x < 0) { x = x + ttCtx.tooltipRect.ttWidth; } if (ttCtx.w.config.tooltip.followCursor) { var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); y = ttCtx.e.clientY - seriesBound.top; } // if tooltip is still null, querySelector if (ttCtx.tooltip === null) { ttCtx.tooltip = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); } if (!w.config.tooltip.shared) { if (w.globals.comboChartsHasBars) { ttCtx.tooltipPosition.moveXCrosshairs(bx + strokeWidth / 2); } else { ttCtx.tooltipPosition.moveXCrosshairs(bx); } } // move tooltip here if (!ttCtx.fixedTooltip && (!w.config.tooltip.shared || w.globals.isBarHorizontal && ttCtx.hasBars())) { if (isReversed) { x = w.globals.gridWidth - x; } tooltipEl.style.left = x + w.globals.translateX + 'px'; var seriesIndex = parseInt(opt.paths.parentNode.getAttribute('data:realIndex')); var isReversed = w.globals.isMultipleYAxis ? w.config.yaxis[seriesIndex] && w.config.yaxis[seriesIndex].reversed : w.config.yaxis[0].reversed; if (isReversed && !(w.globals.isBarHorizontal && ttCtx.hasBars())) { y = y + barHeight - (w.globals.series[i][j] < 0 ? barHeight : 0) * 2; } if (ttCtx.tooltipRect.ttHeight + y > w.globals.gridHeight) { y = w.globals.gridHeight - ttCtx.tooltipRect.ttHeight + w.globals.translateY; tooltipEl.style.top = y + 'px'; } else { tooltipEl.style.top = y + w.globals.translateY - ttCtx.tooltipRect.ttHeight / 2 + 'px'; } } } }, { key: "getBarTooltipXY", value: function getBarTooltipXY(_ref4) { var e = _ref4.e, opt = _ref4.opt; var w = this.w; var j = null; var ttCtx = this.ttCtx; var i = 0; var x = 0; var y = 0; var barWidth = 0; var barHeight = 0; var cl = e.target.classList; if (cl.contains('apexcharts-bar-area') || cl.contains('apexcharts-candlestick-area') || cl.contains('apexcharts-rangebar-area')) { var bar = e.target; var barRect = bar.getBoundingClientRect(); var seriesBound = opt.elGrid.getBoundingClientRect(); var bh = barRect.height; barHeight = barRect.height; var bw = barRect.width; var cx = parseInt(bar.getAttribute('cx')); var cy = parseInt(bar.getAttribute('cy')); barWidth = parseFloat(bar.getAttribute('barWidth')); var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; j = parseInt(bar.getAttribute('j')); i = parseInt(bar.parentNode.getAttribute('rel')) - 1; if (w.globals.comboCharts) { i = parseInt(bar.parentNode.getAttribute('data:realIndex')); } // if (w.config.tooltip.shared) { // this check not needed at the moment // const yDivisor = w.globals.gridHeight / (w.globals.series.length) // const hoverY = ttCtx.clientY - ttCtx.seriesBound.top // j = Math.ceil(hoverY / yDivisor) // } ttCtx.tooltipLabels.drawSeriesTexts({ ttItems: opt.ttItems, i: i, j: j, shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared }); if (w.config.tooltip.followCursor) { if (w.globals.isBarHorizontal) { x = clientX - seriesBound.left + 15; y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; } else { if (w.globals.isXNumeric) { x = cx - bw / 2; } else { x = cx - ttCtx.dataPointsDividedWidth + bw / 2; } y = e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2 - 15; } } else { if (w.globals.isBarHorizontal) { x = cx; if (x < ttCtx.xyRatios.baseLineInvertedY) { x = cx - ttCtx.tooltipRect.ttWidth; } y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; } else { // if columns if (w.globals.isXNumeric) { x = cx - bw / 2; } else { x = cx - ttCtx.dataPointsDividedWidth + bw / 2; } y = cy; // - ttCtx.tooltipRect.ttHeight / 2 + 10 } } } return { x: x, y: y, barHeight: barHeight, barWidth: barWidth, i: i, j: j }; } }]); return Intersect; }(); /** * ApexCharts Tooltip.AxesTooltip Class. * * @module Tooltip.AxesTooltip **/ var AxesTooltip = /*#__PURE__*/ function () { function AxesTooltip(tooltipContext) { _classCallCheck(this, AxesTooltip); this.w = tooltipContext.w; this.ttCtx = tooltipContext; } /** * This method adds the secondary tooltip which appears below x axis * @memberof Tooltip **/ _createClass(AxesTooltip, [{ key: "drawXaxisTooltip", value: function drawXaxisTooltip() { var w = this.w; var ttCtx = this.ttCtx; var isBottom = w.config.xaxis.position === 'bottom'; ttCtx.xaxisOffY = isBottom ? w.globals.gridHeight + 1 : 1; var tooltipCssClass = isBottom ? 'apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom' : 'apexcharts-xaxistooltip apexcharts-xaxistooltip-top'; var renderTo = w.globals.dom.elWrap; if (ttCtx.blxaxisTooltip) { var xaxisTooltip = w.globals.dom.baseEl.querySelector('.apexcharts-xaxistooltip'); if (xaxisTooltip === null) { ttCtx.xaxisTooltip = document.createElement('div'); ttCtx.xaxisTooltip.setAttribute('class', tooltipCssClass + ' ' + w.config.tooltip.theme); renderTo.appendChild(ttCtx.xaxisTooltip); ttCtx.xaxisTooltipText = document.createElement('div'); ttCtx.xaxisTooltipText.classList.add('apexcharts-xaxistooltip-text'); ttCtx.xaxisTooltipText.style.fontFamily = w.config.xaxis.tooltip.style.fontFamily || w.config.chart.fontFamily; ttCtx.xaxisTooltipText.style.fontSize = w.config.xaxis.tooltip.style.fontSize; ttCtx.xaxisTooltip.appendChild(ttCtx.xaxisTooltipText); } } } /** * This method adds the secondary tooltip which appears below x axis * @memberof Tooltip **/ }, { key: "drawYaxisTooltip", value: function drawYaxisTooltip() { var w = this.w; var ttCtx = this.ttCtx; var _loop = function _loop(i) { var isRight = w.config.yaxis[i].opposite || w.config.yaxis[i].crosshairs.opposite; ttCtx.yaxisOffX = isRight ? w.globals.gridWidth + 1 : 1; var tooltipCssClass = isRight ? "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-right") : "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-left"); w.globals.yAxisSameScaleIndices.map(function (samescales, ssi) { samescales.map(function (s, si) { if (si === i) { tooltipCssClass += w.config.yaxis[si].show ? " " : " apexcharts-yaxistooltip-hidden"; } }); }); var renderTo = w.globals.dom.elWrap; if (ttCtx.blyaxisTooltip) { var yaxisTooltip = w.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i)); if (yaxisTooltip === null) { ttCtx.yaxisTooltip = document.createElement('div'); ttCtx.yaxisTooltip.setAttribute('class', tooltipCssClass + ' ' + w.config.tooltip.theme); renderTo.appendChild(ttCtx.yaxisTooltip); if (i === 0) ttCtx.yaxisTooltipText = []; ttCtx.yaxisTooltipText.push(document.createElement('div')); ttCtx.yaxisTooltipText[i].classList.add('apexcharts-yaxistooltip-text'); ttCtx.yaxisTooltip.appendChild(ttCtx.yaxisTooltipText[i]); } } }; for (var i = 0; i < w.config.yaxis.length; i++) { _loop(i); } } /** * @memberof Tooltip **/ }, { key: "setXCrosshairWidth", value: function setXCrosshairWidth() { var w = this.w; var ttCtx = this.ttCtx; // set xcrosshairs width var xcrosshairs = ttCtx.getElXCrosshairs(); ttCtx.xcrosshairsWidth = parseInt(w.config.xaxis.crosshairs.width); if (!w.globals.comboCharts) { if (w.config.xaxis.crosshairs.width === 'tickWidth') { var count = w.globals.labels.length; ttCtx.xcrosshairsWidth = w.globals.gridWidth / count; } else if (w.config.xaxis.crosshairs.width === 'barWidth') { var bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); if (bar !== null) { var barWidth = parseFloat(bar.getAttribute('barWidth')); ttCtx.xcrosshairsWidth = barWidth; } else { ttCtx.xcrosshairsWidth = 1; } } } else { var _bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); if (_bar !== null && w.config.xaxis.crosshairs.width === 'barWidth') { var _barWidth = parseFloat(_bar.getAttribute('barWidth')); ttCtx.xcrosshairsWidth = _barWidth; } else { if (w.config.xaxis.crosshairs.width === 'tickWidth') { var _count = w.globals.labels.length; ttCtx.xcrosshairsWidth = w.globals.gridWidth / _count; } } } if (w.globals.isBarHorizontal) { ttCtx.xcrosshairsWidth = 0; } if (xcrosshairs !== null && ttCtx.xcrosshairsWidth > 0) { xcrosshairs.setAttribute('width', ttCtx.xcrosshairsWidth); } } }, { key: "handleYCrosshair", value: function handleYCrosshair() { var w = this.w; var ttCtx = this.ttCtx; // set ycrosshairs height ttCtx.ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); ttCtx.ycrosshairsHidden = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs-hidden'); } }, { key: "drawYaxisTooltipText", value: function drawYaxisTooltipText(index, clientY, xyRatios) { var ttCtx = this.ttCtx; var w = this.w; var lbFormatter = w.globals.yLabelFormatters[index]; if (ttCtx.blyaxisTooltip) { var elGrid = ttCtx.getElGrid(); var seriesBound = elGrid.getBoundingClientRect(); var hoverY = (clientY - seriesBound.top) * xyRatios.yRatio[index]; var height = w.globals.maxYArr[index] - w.globals.minYArr[index]; var val = w.globals.minYArr[index] + (height - hoverY); ttCtx.tooltipPosition.moveYCrosshairs(clientY - seriesBound.top); ttCtx.yaxisTooltipText[index].innerHTML = lbFormatter(val); ttCtx.tooltipPosition.moveYAxisTooltip(index); } } }]); return AxesTooltip; }(); /** * ApexCharts Core Tooltip Class to handle the tooltip generation. * * @module Tooltip **/ var Tooltip = /*#__PURE__*/ function () { function Tooltip(ctx) { _classCallCheck(this, Tooltip); this.ctx = ctx; this.w = ctx.w; var w = this.w; this.tConfig = w.config.tooltip; this.tooltipUtil = new Utils$1(this); this.tooltipLabels = new Labels(this); this.tooltipPosition = new Position(this); this.marker = new Marker(this); this.intersect = new Intersect(this); this.axesTooltip = new AxesTooltip(this); this.showOnIntersect = this.tConfig.intersect; this.showTooltipTitle = this.tConfig.x.show; this.fixedTooltip = this.tConfig.fixed.enabled; this.xaxisTooltip = null; this.yaxisTTEls = null; this.isBarShared = !w.globals.isBarHorizontal && this.tConfig.shared; } _createClass(Tooltip, [{ key: "getElTooltip", value: function getElTooltip(ctx) { if (!ctx) ctx = this; return ctx.w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); } }, { key: "getElXCrosshairs", value: function getElXCrosshairs() { return this.w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); } }, { key: "getElGrid", value: function getElGrid() { return this.w.globals.dom.baseEl.querySelector('.apexcharts-grid'); } }, { key: "drawTooltip", value: function drawTooltip(xyRatios) { var w = this.w; this.xyRatios = xyRatios; this.blxaxisTooltip = w.config.xaxis.tooltip.enabled && w.globals.axisCharts; this.blyaxisTooltip = w.config.yaxis[0].tooltip.enabled && w.globals.axisCharts; this.allTooltipSeriesGroups = []; if (!w.globals.axisCharts) { this.showTooltipTitle = false; } var tooltipEl = document.createElement('div'); tooltipEl.classList.add('apexcharts-tooltip'); tooltipEl.classList.add(this.tConfig.theme); w.globals.dom.elWrap.appendChild(tooltipEl); if (w.globals.axisCharts) { this.axesTooltip.drawXaxisTooltip(); this.axesTooltip.drawYaxisTooltip(); this.axesTooltip.setXCrosshairWidth(); this.axesTooltip.handleYCrosshair(); var xAxis = new XAxis(this.ctx); this.xAxisTicksPositions = xAxis.getXAxisTicksPositions(); } // we forcefully set intersect true for these conditions if (w.globals.comboCharts && !this.tConfig.shared || this.tConfig.intersect && !this.tConfig.shared || (w.config.chart.type === 'bar' || w.config.chart.type === 'rangeBar') && !this.tConfig.shared) { this.showOnIntersect = true; } if (w.config.markers.size === 0 || w.globals.markers.largestSize === 0) { // when user don't want to show points all the time, but only on when hovering on series this.marker.drawDynamicPoints(this); } // no visible series, exit if (w.globals.collapsedSeries.length === w.globals.series.length) return; this.dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; this.dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; if (this.showTooltipTitle) { this.tooltipTitle = document.createElement('div'); this.tooltipTitle.classList.add('apexcharts-tooltip-title'); this.tooltipTitle.style.fontFamily = this.tConfig.style.fontFamily || w.config.chart.fontFamily; this.tooltipTitle.style.fontSize = this.tConfig.style.fontSize; tooltipEl.appendChild(this.tooltipTitle); } var ttItemsCnt = w.globals.series.length; // whether shared or not, default is shared if ((w.globals.xyCharts || w.globals.comboCharts) && this.tConfig.shared) { if (!this.showOnIntersect) { ttItemsCnt = w.globals.series.length; } else { ttItemsCnt = 1; } } this.legendLabels = w.globals.dom.baseEl.querySelectorAll('.apexcharts-legend-text'); this.ttItems = this.createTTElements(ttItemsCnt); this.addSVGEvents(); } }, { key: "createTTElements", value: function createTTElements(ttItemsCnt) { var w = this.w; var ttItems = []; var tooltipEl = this.getElTooltip(); for (var i = 0; i < ttItemsCnt; i++) { var gTxt = document.createElement('div'); gTxt.classList.add('apexcharts-tooltip-series-group'); if (this.tConfig.shared && this.tConfig.enabledOnSeries && Array.isArray(this.tConfig.enabledOnSeries)) { if (this.tConfig.enabledOnSeries.indexOf(i) < 0) { gTxt.classList.add('apexcharts-tooltip-series-group-hidden'); } } var point = document.createElement('span'); point.classList.add('apexcharts-tooltip-marker'); point.style.backgroundColor = w.globals.colors[i]; gTxt.appendChild(point); var gYZ = document.createElement('div'); gYZ.classList.add('apexcharts-tooltip-text'); gYZ.style.fontFamily = this.tConfig.style.fontFamily || w.config.chart.fontFamily; gYZ.style.fontSize = this.tConfig.style.fontSize; // y values group var gYValText = document.createElement('div'); gYValText.classList.add('apexcharts-tooltip-y-group'); var txtLabel = document.createElement('span'); txtLabel.classList.add('apexcharts-tooltip-text-label'); gYValText.appendChild(txtLabel); var txtValue = document.createElement('span'); txtValue.classList.add('apexcharts-tooltip-text-value'); gYValText.appendChild(txtValue); // z values group var gZValText = document.createElement('div'); gZValText.classList.add('apexcharts-tooltip-z-group'); var txtZLabel = document.createElement('span'); txtZLabel.classList.add('apexcharts-tooltip-text-z-label'); gZValText.appendChild(txtZLabel); var txtZValue = document.createElement('span'); txtZValue.classList.add('apexcharts-tooltip-text-z-value'); gZValText.appendChild(txtZValue); gYZ.appendChild(gYValText); gYZ.appendChild(gZValText); gTxt.appendChild(gYZ); tooltipEl.appendChild(gTxt); ttItems.push(gTxt); } return ttItems; } }, { key: "addSVGEvents", value: function addSVGEvents() { var w = this.w; var type = w.config.chart.type; var tooltipEl = this.getElTooltip(); var commonBar = !!(type === 'bar' || type === 'candlestick' || type === 'rangeBar'); var hoverArea = w.globals.dom.Paper.node; var elGrid = this.getElGrid(); if (elGrid) { this.seriesBound = elGrid.getBoundingClientRect(); } var tooltipY = []; var tooltipX = []; var seriesHoverParams = { hoverArea: hoverArea, elGrid: elGrid, tooltipEl: tooltipEl, tooltipY: tooltipY, tooltipX: tooltipX, ttItems: this.ttItems }; var points; if (w.globals.axisCharts) { if (type === 'area' || type === 'line' || type === 'scatter' || type === 'bubble') { points = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"); } else if (commonBar) { points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-rangebar-area'); } else if (type === 'heatmap') { points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-heatmap'); } else if (type === 'radar') { points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-marker'); } if (points && points.length) { for (var p = 0; p < points.length; p++) { tooltipY.push(points[p].getAttribute('cy')); tooltipX.push(points[p].getAttribute('cx')); } } } var validSharedChartTypes = w.globals.xyCharts && !this.showOnIntersect || w.globals.comboCharts && !this.showOnIntersect || commonBar && this.hasBars() && this.tConfig.shared; if (validSharedChartTypes) { this.addPathsEventListeners([hoverArea], seriesHoverParams); } else if (commonBar && !w.globals.comboCharts) { this.addBarsEventListeners(seriesHoverParams); } else if (type === 'bubble' || type === 'scatter' || type === 'radar' || this.showOnIntersect && (type === 'area' || type === 'line')) { this.addPointsEventsListeners(seriesHoverParams); } else if (!w.globals.axisCharts || type === 'heatmap') { var seriesAll = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); this.addPathsEventListeners(seriesAll, seriesHoverParams); } if (this.showOnIntersect) { var linePoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-marker'); if (linePoints.length > 0) { // if we find any lineSeries, addEventListeners for them this.addPathsEventListeners(linePoints, seriesHoverParams); } var areaPoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-marker'); if (areaPoints.length > 0) { // if we find any areaSeries, addEventListeners for them this.addPathsEventListeners(areaPoints, seriesHoverParams); } // combo charts may have bars, so add event listeners here too if (this.hasBars() && !this.tConfig.shared) { this.addBarsEventListeners(seriesHoverParams); } } } }, { key: "drawFixedTooltipRect", value: function drawFixedTooltipRect() { var w = this.w; var tooltipEl = this.getElTooltip(); var tooltipRect = tooltipEl.getBoundingClientRect(); var ttWidth = tooltipRect.width + 10; var ttHeight = tooltipRect.height + 10; var x = this.tConfig.fixed.offsetX; var y = this.tConfig.fixed.offsetY; if (this.tConfig.fixed.position.toLowerCase().indexOf('right') > -1) { x = x + w.globals.svgWidth - ttWidth + 10; } if (this.tConfig.fixed.position.toLowerCase().indexOf('bottom') > -1) { y = y + w.globals.svgHeight - ttHeight - 10; } tooltipEl.style.left = x + 'px'; tooltipEl.style.top = y + 'px'; return { x: x, y: y, ttWidth: ttWidth, ttHeight: ttHeight }; } }, { key: "addPointsEventsListeners", value: function addPointsEventsListeners(seriesHoverParams) { var w = this.w; var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); this.addPathsEventListeners(points, seriesHoverParams); } }, { key: "addBarsEventListeners", value: function addBarsEventListeners(seriesHoverParams) { var w = this.w; var bars = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-rangebar-area'); this.addPathsEventListeners(bars, seriesHoverParams); } }, { key: "addPathsEventListeners", value: function addPathsEventListeners(paths, opts) { var _this = this; var self = this; var _loop = function _loop(p) { var extendedOpts = { paths: paths[p], tooltipEl: opts.tooltipEl, tooltipY: opts.tooltipY, tooltipX: opts.tooltipX, elGrid: opts.elGrid, hoverArea: opts.hoverArea, ttItems: opts.ttItems }; _this.w.globals.tooltipOpts = extendedOpts; var events = ['mousemove', 'mouseup', 'touchmove', 'mouseout', 'touchend']; events.map(function (ev) { return paths[p].addEventListener(ev, self.seriesHover.bind(self, extendedOpts), { capture: false, passive: true }); }); }; for (var p = 0; p < paths.length; p++) { _loop(p); } } /* ** The actual series hover function */ }, { key: "seriesHover", value: function seriesHover(opt, e) { var _this2 = this; var chartGroups = []; var w = this.w; // if user has more than one charts in group, we need to sync if (w.config.chart.group) { chartGroups = this.ctx.getGroupedCharts(); } if (w.globals.axisCharts && (w.globals.minX === -Infinity && w.globals.maxX === Infinity || w.globals.dataPoints === 0)) { return; } if (chartGroups.length) { chartGroups.forEach(function (ch) { var tooltipEl = _this2.getElTooltip(ch); var newOpts = { paths: opt.paths, tooltipEl: tooltipEl, tooltipY: opt.tooltipY, tooltipX: opt.tooltipX, elGrid: opt.elGrid, hoverArea: opt.hoverArea, ttItems: ch.w.globals.tooltip.ttItems // all the charts should have the same minX and maxX (same xaxis) for multiple tooltips to work correctly }; if (ch.w.globals.minX === _this2.w.globals.minX && ch.w.globals.maxX === _this2.w.globals.maxX) { ch.w.globals.tooltip.seriesHoverByContext({ chartCtx: ch, ttCtx: ch.w.globals.tooltip, opt: newOpts, e: e }); } }); } else { this.seriesHoverByContext({ chartCtx: this.ctx, ttCtx: this.w.globals.tooltip, opt: opt, e: e }); } } }, { key: "seriesHoverByContext", value: function seriesHoverByContext(_ref) { var chartCtx = _ref.chartCtx, ttCtx = _ref.ttCtx, opt = _ref.opt, e = _ref.e; var w = chartCtx.w; var tooltipEl = this.getElTooltip(); // tooltipRect is calculated on every mousemove, because the text is dynamic ttCtx.tooltipRect = { x: 0, y: 0, ttWidth: tooltipEl.getBoundingClientRect().width, ttHeight: tooltipEl.getBoundingClientRect().height }; ttCtx.e = e; // highlight the current hovered bars if (ttCtx.hasBars() && !w.globals.comboCharts && !ttCtx.isBarShared) { if (this.tConfig.onDatasetHover.highlightDataSeries) { var series = new Series(chartCtx); series.toggleSeriesOnHover(e, e.target.parentNode); } } if (ttCtx.fixedTooltip) { ttCtx.drawFixedTooltipRect(); } if (w.globals.axisCharts) { ttCtx.axisChartsTooltips({ e: e, opt: opt, tooltipRect: ttCtx.tooltipRect }); } else { // non-plot charts i.e pie/donut/circle ttCtx.nonAxisChartsTooltips({ e: e, opt: opt, tooltipRect: ttCtx.tooltipRect }); } } // tooltip handling for line/area/bar/columns/scatter }, { key: "axisChartsTooltips", value: function axisChartsTooltips(_ref2) { var e = _ref2.e, opt = _ref2.opt; var w = this.w; var j, x, y; var capj = null; var seriesBound = opt.elGrid.getBoundingClientRect(); var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; var clientY = e.type === 'touchmove' ? e.touches[0].clientY : e.clientY; this.clientY = clientY; this.clientX = clientX; w.globals.capturedSeriesIndex = -1; w.globals.capturedDataPointIndex = -1; if (clientY < seriesBound.top || clientY > seriesBound.top + seriesBound.height) { this.handleMouseOut(opt); return; } if (Array.isArray(this.tConfig.enabledOnSeries) && !w.config.tooltip.shared) { var index = parseInt(opt.paths.getAttribute('index')); if (this.tConfig.enabledOnSeries.indexOf(index) < 0) { this.handleMouseOut(opt); return; } } var tooltipEl = this.getElTooltip(); var xcrosshairs = this.getElXCrosshairs(); var isStickyTooltip = w.globals.xyCharts || w.config.chart.type === 'bar' && !w.globals.isBarHorizontal && this.hasBars() && this.tConfig.shared || w.globals.comboCharts && this.hasBars; if (w.globals.isBarHorizontal && this.hasBars()) { isStickyTooltip = false; } if (e.type === 'mousemove' || e.type === 'touchmove' || e.type === 'mouseup') { if (xcrosshairs !== null) { xcrosshairs.classList.add('active'); } if (this.ycrosshairs !== null && this.blyaxisTooltip) { this.ycrosshairs.classList.add('active'); } if (isStickyTooltip && !this.showOnIntersect) { capj = this.tooltipUtil.getNearestValues({ context: this, hoverArea: opt.hoverArea, elGrid: opt.elGrid, clientX: clientX, clientY: clientY, hasBars: this.hasBars }); j = capj.j; var capturedSeries = capj.capturedSeries; if (capj.hoverX < 0 || capj.hoverX > w.globals.gridWidth) { this.handleMouseOut(opt); return; } if (capturedSeries !== null) { var ignoreNull = w.globals.series[capturedSeries][j] === null; if (ignoreNull) { this.handleMouseOut(opt); return; } if (typeof w.globals.series[capturedSeries][j] !== 'undefined') { if (this.tConfig.shared && this.tooltipUtil.isXoverlap(j) && this.tooltipUtil.isInitialSeriesSameLen()) { this.create(e, this, capturedSeries, j, opt.ttItems); } else { this.create(e, this, capturedSeries, j, opt.ttItems, false); } } else { if (this.tooltipUtil.isXoverlap(j)) { this.create(e, this, 0, j, opt.ttItems); } } } else { // couldn't capture any series. check if shared X is same, // if yes, draw a grouped tooltip if (this.tooltipUtil.isXoverlap(j)) { this.create(e, this, 0, j, opt.ttItems); } } } else { if (w.config.chart.type === 'heatmap') { var markerXY = this.intersect.handleHeatTooltip({ e: e, opt: opt, x: x, y: y }); x = markerXY.x; y = markerXY.y; tooltipEl.style.left = x + 'px'; tooltipEl.style.top = y + 'px'; } else { if (this.hasBars) { this.intersect.handleBarTooltip({ e: e, opt: opt }); } if (this.hasMarkers) { // intersect - line/area/scatter/bubble this.intersect.handleMarkerTooltip({ e: e, opt: opt, x: x, y: y }); } } } if (this.blyaxisTooltip) { for (var yt = 0; yt < w.config.yaxis.length; yt++) { this.axesTooltip.drawYaxisTooltipText(yt, clientY, this.xyRatios); } } opt.tooltipEl.classList.add('active'); } else if (e.type === 'mouseout' || e.type === 'touchend') { this.handleMouseOut(opt); } } // tooltip handling for pie/donuts }, { key: "nonAxisChartsTooltips", value: function nonAxisChartsTooltips(_ref3) { var e = _ref3.e, opt = _ref3.opt, tooltipRect = _ref3.tooltipRect; var w = this.w; var rel = opt.paths.getAttribute('rel'); var tooltipEl = this.getElTooltip(); var seriesBound = w.globals.dom.elWrap.getBoundingClientRect(); if (e.type === 'mousemove' || e.type === 'touchmove') { tooltipEl.classList.add('active'); this.tooltipLabels.drawSeriesTexts({ ttItems: opt.ttItems, i: parseInt(rel) - 1, shared: false }); var x = w.globals.clientX - seriesBound.left - tooltipRect.ttWidth / 2; var y = w.globals.clientY - seriesBound.top - tooltipRect.ttHeight - 10; tooltipEl.style.left = x + 'px'; tooltipEl.style.top = y + 'px'; } else if (e.type === 'mouseout' || e.type === 'touchend') { tooltipEl.classList.remove('active'); } } }, { key: "deactivateHoverFilter", value: function deactivateHoverFilter() { var w = this.w; var graphics = new Graphics(this.ctx); var allPaths = w.globals.dom.Paper.select(".apexcharts-bar-area"); for (var b = 0; b < allPaths.length; b++) { graphics.pathMouseLeave(allPaths[b]); } } }, { key: "handleMouseOut", value: function handleMouseOut(opt) { var w = this.w; var xcrosshairs = this.getElXCrosshairs(); opt.tooltipEl.classList.remove('active'); this.deactivateHoverFilter(); if (w.config.chart.type !== 'bubble') { this.marker.resetPointsSize(); } if (xcrosshairs !== null) { xcrosshairs.classList.remove('active'); } if (this.ycrosshairs !== null) { this.ycrosshairs.classList.remove('active'); } if (this.blxaxisTooltip) { this.xaxisTooltip.classList.remove('active'); } if (this.blyaxisTooltip) { if (this.yaxisTTEls === null) { this.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); } for (var i = 0; i < this.yaxisTTEls.length; i++) { this.yaxisTTEls[i].classList.remove('active'); } } if (w.config.legend.tooltipHoverFormatter) { this.legendLabels.forEach(function (l) { var defaultText = l.getAttribute('data:default-text'); l.innerHTML = defaultText; }); } } }, { key: "getElMarkers", value: function getElMarkers() { return this.w.globals.dom.baseEl.querySelectorAll(' .apexcharts-series-markers'); } }, { key: "getAllMarkers", value: function getAllMarkers() { return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); } }, { key: "hasMarkers", value: function hasMarkers() { var markers = this.getElMarkers(); return markers.length > 0; } }, { key: "getElBars", value: function getElBars() { return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-rangebar-series'); } }, { key: "hasBars", value: function hasBars() { var bars = this.getElBars(); return bars.length > 0; } }, { key: "markerClick", value: function markerClick(e, seriesIndex, dataPointIndex) { var w = this.w; if (typeof w.config.chart.events.markerClick === 'function') { w.config.chart.events.markerClick(e, this.ctx, { seriesIndex: seriesIndex, dataPointIndex: dataPointIndex, w: w }); } this.ctx.fireEvent('markerClick', [e, this.ctx, { seriesIndex: seriesIndex, dataPointIndex: dataPointIndex, w: w }]); } }, { key: "create", value: function create(e, context, capturedSeries, j, ttItems) { var shared = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; var w = this.w; var ttCtx = context; if (e.type === 'mouseup') { this.markerClick(e, capturedSeries, j); } if (shared === null) shared = this.tConfig.shared; var hasMarkers = this.hasMarkers(); var bars = this.getElBars(); if (w.config.legend.tooltipHoverFormatter) { var legendFormatter = w.config.legend.tooltipHoverFormatter; var els = Array.from(this.legendLabels); // reset all legend values first els.forEach(function (l) { var legendName = l.getAttribute('data:default-text'); l.innerHTML = legendName; }); // for irregular time series for (var i = 0; i < els.length; i++) { var l = els[i]; var lsIndex = parseInt(l.getAttribute('i')); var legendName = l.getAttribute('data:default-text'); var text = legendFormatter(legendName, { seriesIndex: shared ? lsIndex : capturedSeries, dataPointIndex: j, w: w }); if (!shared) { l.innerHTML = lsIndex === capturedSeries ? text : legendName; if (capturedSeries === lsIndex) { break; } } else { l.innerHTML = w.globals.collapsedSeriesIndices.indexOf(lsIndex) < 0 ? text : legendName; } } } if (shared) { ttCtx.tooltipLabels.drawSeriesTexts({ ttItems: ttItems, i: capturedSeries, j: j, shared: this.showOnIntersect ? false : this.tConfig.shared }); if (hasMarkers) { if (w.globals.markers.largestSize > 0) { ttCtx.marker.enlargePoints(j); } else { ttCtx.tooltipPosition.moveDynamicPointsOnHover(j); } } if (this.hasBars()) { this.barSeriesHeight = this.tooltipUtil.getBarsHeight(bars); if (this.barSeriesHeight > 0) { // hover state, activate snap filter var graphics = new Graphics(this.ctx); var paths = w.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(j, "']")); // de-activate first this.deactivateHoverFilter(); this.tooltipPosition.moveStickyTooltipOverBars(j); for (var b = 0; b < paths.length; b++) { graphics.pathMouseEnter(paths[b]); } } } } else { ttCtx.tooltipLabels.drawSeriesTexts({ shared: false, ttItems: ttItems, i: capturedSeries, j: j }); if (this.hasBars()) { ttCtx.tooltipPosition.moveStickyTooltipOverBars(j); } if (hasMarkers) { ttCtx.tooltipPosition.moveMarkers(capturedSeries, j); } } } }]); return Tooltip; }(); var icoPan = "\n \n \n \n \n \n \n \n"; var icoZoom = "\n \n \n \n"; var icoReset = "\n \n \n"; var icoZoomIn = "\n \n \n\n"; var icoZoomOut = "\n \n \n\n"; var icoSelect = "\n \n \n"; var icoMenu = ""; /** * ApexCharts Toolbar Class for creating toolbar in axis based charts. * * @module Toolbar **/ var Toolbar = /*#__PURE__*/ function () { function Toolbar(ctx) { _classCallCheck(this, Toolbar); this.ctx = ctx; this.w = ctx.w; this.ev = this.w.config.chart.events; this.localeValues = this.w.globals.locale.toolbar; } _createClass(Toolbar, [{ key: "createToolbar", value: function createToolbar() { var w = this.w; var elToolbarWrap = document.createElement('div'); elToolbarWrap.setAttribute('class', 'apexcharts-toolbar'); w.globals.dom.elWrap.appendChild(elToolbarWrap); this.elZoom = document.createElement('div'); this.elZoomIn = document.createElement('div'); this.elZoomOut = document.createElement('div'); this.elPan = document.createElement('div'); this.elSelection = document.createElement('div'); this.elZoomReset = document.createElement('div'); this.elMenuIcon = document.createElement('div'); this.elMenu = document.createElement('div'); this.elCustomIcons = []; this.t = w.config.chart.toolbar.tools; if (Array.isArray(this.t.customIcons)) { for (var i = 0; i < this.t.customIcons.length; i++) { this.elCustomIcons.push(document.createElement('div')); } } this.elMenuItems = []; var toolbarControls = []; if (this.t.zoomin && w.config.chart.zoom.enabled) { toolbarControls.push({ el: this.elZoomIn, icon: typeof this.t.zoomin === 'string' ? this.t.zoomin : icoZoomIn, title: this.localeValues.zoomIn, class: 'apexcharts-zoom-in-icon' }); } if (this.t.zoomout && w.config.chart.zoom.enabled) { toolbarControls.push({ el: this.elZoomOut, icon: typeof this.t.zoomout === 'string' ? this.t.zoomout : icoZoomOut, title: this.localeValues.zoomOut, class: 'apexcharts-zoom-out-icon' }); } if (this.t.zoom && w.config.chart.zoom.enabled) { toolbarControls.push({ el: this.elZoom, icon: typeof this.t.zoom === 'string' ? this.t.zoom : icoZoom, title: this.localeValues.selectionZoom, class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-zoom-icon' }); } if (this.t.selection && w.config.chart.selection.enabled) { toolbarControls.push({ el: this.elSelection, icon: typeof this.t.selection === 'string' ? this.t.selection : icoSelect, title: this.localeValues.selection, class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-selection-icon' }); } if (this.t.pan && w.config.chart.zoom.enabled) { toolbarControls.push({ el: this.elPan, icon: typeof this.t.pan === 'string' ? this.t.pan : icoPan, title: this.localeValues.pan, class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-pan-icon' }); } if (this.t.reset && w.config.chart.zoom.enabled) { toolbarControls.push({ el: this.elZoomReset, icon: typeof this.t.reset === 'string' ? this.t.reset : icoReset, title: this.localeValues.reset, class: 'apexcharts-reset-zoom-icon' }); } if (this.t.download) { toolbarControls.push({ el: this.elMenuIcon, icon: typeof this.t.download === 'string' ? this.t.download : icoMenu, title: this.localeValues.menu, class: 'apexcharts-menu-icon' }); } for (var _i = 0; _i < this.elCustomIcons.length; _i++) { toolbarControls.push({ el: this.elCustomIcons[_i], icon: this.t.customIcons[_i].icon, title: this.t.customIcons[_i].title, index: this.t.customIcons[_i].index, class: 'apexcharts-toolbar-custom-icon ' + this.t.customIcons[_i].class }); } toolbarControls.forEach(function (t, index) { if (t.index) { Utils.moveIndexInArray(toolbarControls, index, t.index); } }); for (var _i2 = 0; _i2 < toolbarControls.length; _i2++) { Graphics.setAttrs(toolbarControls[_i2].el, { class: toolbarControls[_i2].class, title: toolbarControls[_i2].title }); toolbarControls[_i2].el.innerHTML = toolbarControls[_i2].icon; elToolbarWrap.appendChild(toolbarControls[_i2].el); } elToolbarWrap.appendChild(this.elMenu); Graphics.setAttrs(this.elMenu, { class: 'apexcharts-menu' }); var menuItems = [{ name: 'exportSVG', title: this.localeValues.exportToSVG }, { name: 'exportPNG', title: this.localeValues.exportToPNG }]; for (var _i3 = 0; _i3 < menuItems.length; _i3++) { this.elMenuItems.push(document.createElement('div')); this.elMenuItems[_i3].innerHTML = menuItems[_i3].title; Graphics.setAttrs(this.elMenuItems[_i3], { class: "apexcharts-menu-item ".concat(menuItems[_i3].name), title: menuItems[_i3].title }); this.elMenu.appendChild(this.elMenuItems[_i3]); } if (w.globals.zoomEnabled) { this.elZoom.classList.add('selected'); } else if (w.globals.panEnabled) { this.elPan.classList.add('selected'); } else if (w.globals.selectionEnabled) { this.elSelection.classList.add('selected'); } this.addToolbarEventListeners(); } }, { key: "addToolbarEventListeners", value: function addToolbarEventListeners() { var _this = this; this.elZoomReset.addEventListener('click', this.handleZoomReset.bind(this)); this.elSelection.addEventListener('click', this.toggleSelection.bind(this)); this.elZoom.addEventListener('click', this.toggleZooming.bind(this)); this.elZoomIn.addEventListener('click', this.handleZoomIn.bind(this)); this.elZoomOut.addEventListener('click', this.handleZoomOut.bind(this)); this.elPan.addEventListener('click', this.togglePanning.bind(this)); this.elMenuIcon.addEventListener('click', this.toggleMenu.bind(this)); this.elMenuItems.forEach(function (m) { if (m.classList.contains('exportSVG')) { m.addEventListener('click', _this.downloadSVG.bind(_this)); } else if (m.classList.contains('exportPNG')) { m.addEventListener('click', _this.downloadPNG.bind(_this)); } }); for (var i = 0; i < this.t.customIcons.length; i++) { this.elCustomIcons[i].addEventListener('click', this.t.customIcons[i].click.bind(this, this.ctx, this.ctx.w)); } } }, { key: "toggleSelection", value: function toggleSelection() { this.toggleOtherControls(); this.w.globals.selectionEnabled = !this.w.globals.selectionEnabled; if (!this.elSelection.classList.contains('selected')) { this.elSelection.classList.add('selected'); } else { this.elSelection.classList.remove('selected'); } } }, { key: "toggleZooming", value: function toggleZooming() { this.toggleOtherControls(); this.w.globals.zoomEnabled = !this.w.globals.zoomEnabled; if (!this.elZoom.classList.contains('selected')) { this.elZoom.classList.add('selected'); } else { this.elZoom.classList.remove('selected'); } } }, { key: "getToolbarIconsReference", value: function getToolbarIconsReference() { var w = this.w; if (!this.elZoom) { this.elZoom = w.globals.dom.baseEl.querySelector('.apexcharts-zoom-icon'); } if (!this.elPan) { this.elPan = w.globals.dom.baseEl.querySelector('.apexcharts-pan-icon'); } if (!this.elSelection) { this.elSelection = w.globals.dom.baseEl.querySelector('.apexcharts-selection-icon'); } } }, { key: "enableZooming", value: function enableZooming() { this.toggleOtherControls(); this.w.globals.zoomEnabled = true; if (this.elZoom) { this.elZoom.classList.add('selected'); } if (this.elPan) { this.elPan.classList.remove('selected'); } } }, { key: "enablePanning", value: function enablePanning() { this.toggleOtherControls(); this.w.globals.panEnabled = true; if (this.elPan) { this.elPan.classList.add('selected'); } if (this.elZoom) { this.elZoom.classList.remove('selected'); } } }, { key: "togglePanning", value: function togglePanning() { this.toggleOtherControls(); this.w.globals.panEnabled = !this.w.globals.panEnabled; if (!this.elPan.classList.contains('selected')) { this.elPan.classList.add('selected'); } else { this.elPan.classList.remove('selected'); } } }, { key: "toggleOtherControls", value: function toggleOtherControls() { var w = this.w; w.globals.panEnabled = false; w.globals.zoomEnabled = false; w.globals.selectionEnabled = false; this.getToolbarIconsReference(); if (this.elPan) { this.elPan.classList.remove('selected'); } if (this.elSelection) { this.elSelection.classList.remove('selected'); } if (this.elZoom) { this.elZoom.classList.remove('selected'); } } }, { key: "handleZoomIn", value: function handleZoomIn() { var w = this.w; var centerX = (w.globals.minX + w.globals.maxX) / 2; var newMinX = (w.globals.minX + centerX) / 2; var newMaxX = (w.globals.maxX + centerX) / 2; if (!w.globals.disableZoomIn) { this.zoomUpdateOptions(newMinX, newMaxX); } } }, { key: "handleZoomOut", value: function handleZoomOut() { var w = this.w; // avoid zooming out beyond 1000 which may result in NaN values being printed on x-axis if (w.config.xaxis.type === 'datetime' && new Date(w.globals.minX).getUTCFullYear() < 1000) { return; } var centerX = (w.globals.minX + w.globals.maxX) / 2; var newMinX = w.globals.minX - (centerX - w.globals.minX); var newMaxX = w.globals.maxX - (centerX - w.globals.maxX); if (!w.globals.disableZoomOut) { this.zoomUpdateOptions(newMinX, newMaxX); } } }, { key: "zoomUpdateOptions", value: function zoomUpdateOptions(newMinX, newMaxX) { var xaxis = { min: newMinX, max: newMaxX }; var beforeZoomRange = this.getBeforeZoomRange(xaxis); if (beforeZoomRange) { xaxis = beforeZoomRange.xaxis; } this.w.globals.zoomed = true; this.ctx._updateOptions({ xaxis: xaxis }, false, this.w.config.chart.animations.dynamicAnimation.enabled); this.zoomCallback(xaxis); } }, { key: "zoomCallback", value: function zoomCallback(xaxis, yaxis) { if (typeof this.ev.zoomed === 'function') { this.ev.zoomed(this.ctx, { xaxis: xaxis, yaxis: yaxis }); } } }, { key: "getBeforeZoomRange", value: function getBeforeZoomRange(xaxis, yaxis) { var newRange = null; if (typeof this.ev.beforeZoom === 'function') { newRange = this.ev.beforeZoom(this, { xaxis: xaxis, yaxis: yaxis }); } return newRange; } }, { key: "toggleMenu", value: function toggleMenu() { if (this.elMenu.classList.contains('open')) { this.elMenu.classList.remove('open'); } else { this.elMenu.classList.add('open'); } } }, { key: "downloadPNG", value: function downloadPNG() { var downloadPNG = new Exports(this.ctx); downloadPNG.exportToPng(this.ctx); this.toggleMenu(); } }, { key: "downloadSVG", value: function downloadSVG() { var downloadSVG = new Exports(this.ctx); downloadSVG.exportToSVG(); this.toggleMenu(); } }, { key: "handleZoomReset", value: function handleZoomReset(e) { var _this2 = this; var charts = this.ctx.getSyncedCharts(); charts.forEach(function (ch) { var w = ch.w; if (w.globals.minX !== w.globals.initialminX && w.globals.maxX !== w.globals.initialmaxX) { ch.revertDefaultAxisMinMax(); if (typeof w.config.chart.events.zoomed === 'function') { _this2.zoomCallback({ min: w.config.xaxis.min, max: w.config.xaxis.max }); } w.globals.zoomed = false; ch._updateSeries(w.globals.initialSeries, w.config.chart.animations.dynamicAnimation.enabled); } }); } }, { key: "destroy", value: function destroy() { this.elZoom = null; this.elZoomIn = null; this.elZoomOut = null; this.elPan = null; this.elSelection = null; this.elZoomReset = null; this.elMenuIcon = null; } }]); return Toolbar; }(); /** * ApexCharts Zoom Class for handling zooming and panning on axes based charts. * * @module ZoomPanSelection **/ var ZoomPanSelection = /*#__PURE__*/ function (_Toolbar) { _inherits(ZoomPanSelection, _Toolbar); function ZoomPanSelection(ctx) { var _this; _classCallCheck(this, ZoomPanSelection); _this = _possibleConstructorReturn(this, _getPrototypeOf(ZoomPanSelection).call(this, ctx)); _this.ctx = ctx; _this.w = ctx.w; _this.dragged = false; _this.graphics = new Graphics(_this.ctx); _this.eventList = ['mousedown', 'mouseleave', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; _this.clientX = 0; _this.clientY = 0; _this.startX = 0; _this.endX = 0; _this.dragX = 0; _this.startY = 0; _this.endY = 0; _this.dragY = 0; return _this; } _createClass(ZoomPanSelection, [{ key: "init", value: function init(_ref) { var _this2 = this; var xyRatios = _ref.xyRatios; var w = this.w; var me = this; this.xyRatios = xyRatios; this.zoomRect = this.graphics.drawRect(0, 0, 0, 0); this.selectionRect = this.graphics.drawRect(0, 0, 0, 0); this.gridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid'); this.zoomRect.node.classList.add('apexcharts-zoom-rect'); this.selectionRect.node.classList.add('apexcharts-selection-rect'); w.globals.dom.elGraphical.add(this.zoomRect); w.globals.dom.elGraphical.add(this.selectionRect); if (w.config.chart.selection.type === 'x') { this.slDraggableRect = this.selectionRect.draggable({ minX: 0, minY: 0, maxX: w.globals.gridWidth, maxY: w.globals.gridHeight }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); } else if (w.config.chart.selection.type === 'y') { this.slDraggableRect = this.selectionRect.draggable({ minX: 0, maxX: w.globals.gridWidth }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); } else { this.slDraggableRect = this.selectionRect.draggable().on('dragmove', this.selectionDragging.bind(this, 'dragging')); } this.preselectedSelection(); this.hoverArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); this.hoverArea.classList.add('zoomable'); this.eventList.forEach(function (event) { _this2.hoverArea.addEventListener(event, me.svgMouseEvents.bind(me, xyRatios), { capture: false, passive: true }); }); } // remove the event listeners which were previously added on hover area }, { key: "destroy", value: function destroy() { if (this.slDraggableRect) { this.slDraggableRect.draggable(false); this.slDraggableRect.off(); this.selectionRect.off(); } this.selectionRect = null; this.zoomRect = null; this.gridRect = null; } }, { key: "svgMouseEvents", value: function svgMouseEvents(xyRatios, e) { var w = this.w; var me = this; var toolbar = this.ctx.toolbar; var zoomtype = w.globals.zoomEnabled ? w.config.chart.zoom.type : w.config.chart.selection.type; if (e.shiftKey) { this.shiftWasPressed = true; toolbar.enablePanning(); } else { if (this.shiftWasPressed) { toolbar.enableZooming(); this.shiftWasPressed = false; } } var falsePositives = e.target.classList.contains('apexcharts-selection-rect') || e.target.parentNode.classList.contains('apexcharts-toolbar'); if (falsePositives) return; me.clientX = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientX : e.type === 'touchend' ? e.changedTouches[0].clientX : e.clientX; me.clientY = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientY : e.type === 'touchend' ? e.changedTouches[0].clientY : e.clientY; if (e.type === 'mousedown' && e.which === 1) { var gridRectDim = me.gridRect.getBoundingClientRect(); me.startX = me.clientX - gridRectDim.left; me.startY = me.clientY - gridRectDim.top; me.dragged = false; me.w.globals.mousedown = true; } if (e.type === 'mousemove' && e.which === 1 || e.type === 'touchmove') { me.dragged = true; if (w.globals.panEnabled) { w.globals.selection = null; if (me.w.globals.mousedown) { me.panDragging({ context: me, zoomtype: zoomtype, xyRatios: xyRatios }); } } else { if (me.w.globals.mousedown && w.globals.zoomEnabled || me.w.globals.mousedown && w.globals.selectionEnabled) { me.selection = me.selectionDrawing({ context: me, zoomtype: zoomtype }); } } } if (e.type === 'mouseup' || e.type === 'touchend' || e.type === 'mouseleave') { // we will be calling getBoundingClientRect on each mousedown/mousemove/mouseup var _gridRectDim = me.gridRect.getBoundingClientRect(); if (me.w.globals.mousedown) { // user released the drag, now do all the calculations me.endX = me.clientX - _gridRectDim.left; me.endY = me.clientY - _gridRectDim.top; me.dragX = Math.abs(me.endX - me.startX); me.dragY = Math.abs(me.endY - me.startY); if (w.globals.zoomEnabled || w.globals.selectionEnabled) { me.selectionDrawn({ context: me, zoomtype: zoomtype }); } } if (w.globals.zoomEnabled) { me.hideSelectionRect(this.selectionRect); } me.dragged = false; me.w.globals.mousedown = false; } this.makeSelectionRectDraggable(); } }, { key: "makeSelectionRectDraggable", value: function makeSelectionRectDraggable() { var w = this.w; if (!this.selectionRect) return; var rectDim = this.selectionRect.node.getBoundingClientRect(); if (rectDim.width > 0 && rectDim.height > 0) { this.slDraggableRect.selectize().resize({ constraint: { minX: 0, minY: 0, maxX: w.globals.gridWidth, maxY: w.globals.gridHeight } }).on('resizing', this.selectionDragging.bind(this, 'resizing')); } } }, { key: "preselectedSelection", value: function preselectedSelection() { var w = this.w; var xyRatios = this.xyRatios; if (!w.globals.zoomEnabled) { if (typeof w.globals.selection !== 'undefined' && w.globals.selection !== null) { this.drawSelectionRect(w.globals.selection); } else { if (w.config.chart.selection.xaxis.min !== undefined && w.config.chart.selection.xaxis.max !== undefined) { var x = (w.config.chart.selection.xaxis.min - w.globals.minX) / xyRatios.xRatio; var width = w.globals.gridWidth - (w.globals.maxX - w.config.chart.selection.xaxis.max) / xyRatios.xRatio - x; var selectionRect = { x: x, y: 0, width: width, height: w.globals.gridHeight, translateX: 0, translateY: 0, selectionEnabled: true }; this.drawSelectionRect(selectionRect); this.makeSelectionRectDraggable(); if (typeof w.config.chart.events.selection === 'function') { w.config.chart.events.selection(this.ctx, { xaxis: { min: w.config.chart.selection.xaxis.min, max: w.config.chart.selection.xaxis.max }, yaxis: {} }); } } } } } }, { key: "drawSelectionRect", value: function drawSelectionRect(_ref2) { var x = _ref2.x, y = _ref2.y, width = _ref2.width, height = _ref2.height, translateX = _ref2.translateX, translateY = _ref2.translateY; var w = this.w; var zoomRect = this.zoomRect; var selectionRect = this.selectionRect; if (this.dragged || w.globals.selection !== null) { var scalingAttrs = { transform: 'translate(' + translateX + ', ' + translateY + ')' // change styles based on zoom or selection // zoom is Enabled and user has dragged, so draw blue rect }; if (w.globals.zoomEnabled && this.dragged) { zoomRect.attr({ x: x, y: y, width: width, height: height, fill: w.config.chart.zoom.zoomedArea.fill.color, 'fill-opacity': w.config.chart.zoom.zoomedArea.fill.opacity, stroke: w.config.chart.zoom.zoomedArea.stroke.color, 'stroke-width': w.config.chart.zoom.zoomedArea.stroke.width, 'stroke-opacity': w.config.chart.zoom.zoomedArea.stroke.opacity }); Graphics.setAttrs(zoomRect.node, scalingAttrs); } // selection is enabled if (w.globals.selectionEnabled) { selectionRect.attr({ x: x, y: y, width: width > 0 ? width : 0, height: height > 0 ? height : 0, fill: w.config.chart.selection.fill.color, 'fill-opacity': w.config.chart.selection.fill.opacity, stroke: w.config.chart.selection.stroke.color, 'stroke-width': w.config.chart.selection.stroke.width, 'stroke-dasharray': w.config.chart.selection.stroke.dashArray, 'stroke-opacity': w.config.chart.selection.stroke.opacity }); Graphics.setAttrs(selectionRect.node, scalingAttrs); } } } }, { key: "hideSelectionRect", value: function hideSelectionRect(rect) { if (rect) { rect.attr({ x: 0, y: 0, width: 0, height: 0 }); } } }, { key: "selectionDrawing", value: function selectionDrawing(_ref3) { var context = _ref3.context, zoomtype = _ref3.zoomtype; var w = this.w; var me = context; var gridRectDim = this.gridRect.getBoundingClientRect(); var startX = me.startX - 1; var startY = me.startY; var selectionWidth = me.clientX - gridRectDim.left - startX; var selectionHeight = me.clientY - gridRectDim.top - startY; var translateX = 0; var translateY = 0; var selectionRect = {}; if (Math.abs(selectionWidth + startX) > w.globals.gridWidth) { // user dragged the mouse outside drawing area to the right selectionWidth = w.globals.gridWidth - startX; } else if (me.clientX - gridRectDim.left < 0) { // user dragged the mouse outside drawing area to the left selectionWidth = startX; } // inverse selection X if (startX > me.clientX - gridRectDim.left) { selectionWidth = Math.abs(selectionWidth); translateX = -selectionWidth; } // inverse selection Y if (startY > me.clientY - gridRectDim.top) { selectionHeight = Math.abs(selectionHeight); translateY = -selectionHeight; } if (zoomtype === 'x') { selectionRect = { x: startX, y: 0, width: selectionWidth, height: w.globals.gridHeight, translateX: translateX, translateY: 0 }; } else if (zoomtype === 'y') { selectionRect = { x: 0, y: startY, width: w.globals.gridWidth, height: selectionHeight, translateX: 0, translateY: translateY }; } else { selectionRect = { x: startX, y: startY, width: selectionWidth, height: selectionHeight, translateX: translateX, translateY: translateY }; } me.drawSelectionRect(selectionRect); me.selectionDragging('resizing'); return selectionRect; } }, { key: "selectionDragging", value: function selectionDragging(type, e) { var _this3 = this; var w = this.w; var xyRatios = this.xyRatios; var selRect = this.selectionRect; var timerInterval = 0; if (type === 'resizing') { timerInterval = 30; } if (typeof w.config.chart.events.selection === 'function' && w.globals.selectionEnabled) { // a small debouncer is required when resizing to avoid freezing the chart clearTimeout(this.w.globals.selectionResizeTimer); this.w.globals.selectionResizeTimer = window.setTimeout(function () { var gridRectDim = _this3.gridRect.getBoundingClientRect(); var selectionRect = selRect.node.getBoundingClientRect(); var minX = w.globals.xAxisScale.niceMin + (selectionRect.left - gridRectDim.left) * xyRatios.xRatio; var maxX = w.globals.xAxisScale.niceMin + (selectionRect.right - gridRectDim.left) * xyRatios.xRatio; var minY = w.globals.yAxisScale[0].niceMin + (gridRectDim.bottom - selectionRect.bottom) * xyRatios.yRatio[0]; var maxY = w.globals.yAxisScale[0].niceMax - (selectionRect.top - gridRectDim.top) * xyRatios.yRatio[0]; w.config.chart.events.selection(_this3.ctx, { xaxis: { min: minX, max: maxX }, yaxis: { min: minY, max: maxY } }); }, timerInterval); } } }, { key: "selectionDrawn", value: function selectionDrawn(_ref4) { var context = _ref4.context, zoomtype = _ref4.zoomtype; var w = this.w; var me = context; var xyRatios = this.xyRatios; var toolbar = this.ctx.toolbar; if (me.startX > me.endX) { var tempX = me.startX; me.startX = me.endX; me.endX = tempX; } if (me.startY > me.endY) { var tempY = me.startY; me.startY = me.endY; me.endY = tempY; } var xLowestValue = w.globals.xAxisScale.niceMin + me.startX * xyRatios.xRatio; var xHighestValue = w.globals.xAxisScale.niceMin + me.endX * xyRatios.xRatio; // TODO: we will consider the 1st y axis values here for getting highest and lowest y var yHighestValue = []; var yLowestValue = []; w.config.yaxis.forEach(function (yaxe, index) { yHighestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.startY)); yLowestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.endY)); }); if (me.dragged && (me.dragX > 10 || me.dragY > 10) && xLowestValue !== xHighestValue) { if (w.globals.zoomEnabled) { var yaxis = Utils.clone(w.globals.initialConfig.yaxis); // before zooming in/out, store the last yaxis and xaxis range, so that when user hits the RESET button, we get the original range // also - make sure user is not already zoomed in/out - otherwise we will store zoomed values in lastAxis if (!w.globals.zoomed) { w.globals.lastXAxis = Utils.clone(w.config.xaxis); w.globals.lastYAxis = Utils.clone(w.config.yaxis); } var xaxis = { min: xLowestValue, max: xHighestValue }; if (zoomtype === 'xy' || zoomtype === 'y') { yaxis.forEach(function (yaxe, index) { yaxis[index].min = yLowestValue[index]; yaxis[index].max = yHighestValue[index]; }); } if (w.config.chart.zoom.autoScaleYaxis) { var scale = new Range(me.ctx); yaxis = scale.autoScaleY(me.ctx, yaxis, { xaxis: xaxis }); } if (toolbar) { var beforeZoomRange = toolbar.getBeforeZoomRange(xaxis, yaxis); if (beforeZoomRange) { xaxis = beforeZoomRange.xaxis ? beforeZoomRange.xaxis : xaxis; yaxis = beforeZoomRange.yaxis ? beforeZoomRange.yaxe : yaxis; } } var options = { xaxis: xaxis }; if (!w.config.chart.group) { // if chart in a group, prevent yaxis update here // fix issue #650 options.yaxis = yaxis; } me.ctx._updateOptions(options, false, me.w.config.chart.animations.dynamicAnimation.enabled); if (typeof w.config.chart.events.zoomed === 'function') { toolbar.zoomCallback(xaxis, yaxis); } w.globals.zoomed = true; } else if (w.globals.selectionEnabled) { var _yaxis = null; var _xaxis = null; _xaxis = { min: xLowestValue, max: xHighestValue }; if (zoomtype === 'xy' || zoomtype === 'y') { _yaxis = Utils.clone(w.config.yaxis); _yaxis.forEach(function (yaxe, index) { _yaxis[index].min = yLowestValue[index]; _yaxis[index].max = yHighestValue[index]; }); } w.globals.selection = me.selection; if (typeof w.config.chart.events.selection === 'function') { w.config.chart.events.selection(me.ctx, { xaxis: _xaxis, yaxis: _yaxis }); } } } } }, { key: "panDragging", value: function panDragging(_ref5) { var context = _ref5.context; var w = this.w; var me = context; var moveDirection; // check to make sure there is data to compare against if (typeof w.globals.lastClientPosition.x !== 'undefined') { // get the change from last position to this position var deltaX = w.globals.lastClientPosition.x - me.clientX; var deltaY = w.globals.lastClientPosition.y - me.clientY; // check which direction had the highest amplitude and then figure out direction by checking if the value is greater or less than zero if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX > 0) { moveDirection = 'left'; } else if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX < 0) { moveDirection = 'right'; } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY > 0) { moveDirection = 'up'; } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY < 0) { moveDirection = 'down'; } } // set the new last position to the current for next time (to get the position of drag) w.globals.lastClientPosition = { x: me.clientX, y: me.clientY }; var xLowestValue = w.globals.minX; var xHighestValue = w.globals.maxX; me.panScrolled(moveDirection, xLowestValue, xHighestValue); } }, { key: "panScrolled", value: function panScrolled(moveDirection, xLowestValue, xHighestValue) { var w = this.w; var xyRatios = this.xyRatios; var yaxis = Utils.clone(w.globals.initialConfig.yaxis); if (moveDirection === 'left') { xLowestValue = w.globals.minX + w.globals.gridWidth / 15 * xyRatios.xRatio; xHighestValue = w.globals.maxX + w.globals.gridWidth / 15 * xyRatios.xRatio; } else if (moveDirection === 'right') { xLowestValue = w.globals.minX - w.globals.gridWidth / 15 * xyRatios.xRatio; xHighestValue = w.globals.maxX - w.globals.gridWidth / 15 * xyRatios.xRatio; } if (xLowestValue < w.globals.initialminX || xHighestValue > w.globals.initialmaxX) { xLowestValue = w.globals.minX; xHighestValue = w.globals.maxX; } var xaxis = { min: xLowestValue, max: xHighestValue }; if (w.config.chart.zoom.autoScaleYaxis) { var scale = new Range(this.ctx); yaxis = scale.autoScaleY(this.ctx, yaxis, { xaxis: xaxis }); } var options = { xaxis: { min: xLowestValue, max: xHighestValue } }; if (!w.config.chart.group) { // if chart in a group, prevent yaxis update here // fix issue #650 options.yaxis = yaxis; } this.ctx._updateOptions(options, false, false); if (typeof w.config.chart.events.scrolled === 'function') { w.config.chart.events.scrolled(this.ctx, { xaxis: { min: xLowestValue, max: xHighestValue } }); } } }]); return ZoomPanSelection; }(Toolbar); var TitleSubtitle = /*#__PURE__*/ function () { function TitleSubtitle(ctx) { _classCallCheck(this, TitleSubtitle); this.ctx = ctx; this.w = ctx.w; } _createClass(TitleSubtitle, [{ key: "draw", value: function draw() { this.drawTitleSubtitle('title'); this.drawTitleSubtitle('subtitle'); } }, { key: "drawTitleSubtitle", value: function drawTitleSubtitle(type) { var w = this.w; var tsConfig = type === 'title' ? w.config.title : w.config.subtitle; var x = w.globals.svgWidth / 2; var y = tsConfig.offsetY; var textAnchor = 'middle'; if (tsConfig.align === 'left') { x = 10; textAnchor = 'start'; } else if (tsConfig.align === 'right') { x = w.globals.svgWidth - 10; textAnchor = 'end'; } x = x + tsConfig.offsetX; y = y + parseInt(tsConfig.style.fontSize) + 2; if (tsConfig.text !== undefined) { var graphics = new Graphics(this.ctx); var titleText = graphics.drawText({ x: x, y: y, text: tsConfig.text, textAnchor: textAnchor, fontSize: tsConfig.style.fontSize, fontFamily: tsConfig.style.fontFamily, foreColor: tsConfig.style.color, opacity: 1 }); titleText.node.setAttribute('class', "apexcharts-".concat(type, "-text")); w.globals.dom.Paper.add(titleText); } } }]); return TitleSubtitle; }(); (function (root, factory) { /* istanbul ignore next */ if (typeof define === 'function' && define.amd) { define(function () { return factory(root, root.document); }); /* below check fixes #412 */ } else if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined') { module.exports = root.document ? factory(root, root.document) : function (w) { return factory(w, w.document); }; } else { root.SVG = factory(root, root.document); } })(typeof window !== 'undefined' ? window : undefined, function (window, document) { // Find global reference - uses 'this' by default when available, // falls back to 'window' otherwise (for bundlers like Webpack) var globalRef = typeof this !== 'undefined' ? this : window; // The main wrapping element var SVG = globalRef.SVG = function (element) { if (SVG.supported) { element = new SVG.Doc(element); if (!SVG.parser.draw) { SVG.prepare(); } return element; } }; // Default namespaces SVG.ns = 'http://www.w3.org/2000/svg'; SVG.xmlns = 'http://www.w3.org/2000/xmlns/'; SVG.xlink = 'http://www.w3.org/1999/xlink'; SVG.svgjs = 'http://svgjs.com/svgjs'; // Svg support test SVG.supported = function () { return true; // !!document.createElementNS && // !! document.createElementNS(SVG.ns,'svg').createSVGRect }(); // Don't bother to continue if SVG is not supported if (!SVG.supported) return false; // Element id sequence SVG.did = 1000; // Get next named element id SVG.eid = function (name) { return 'Svgjs' + capitalize(name) + SVG.did++; }; // Method for element creation SVG.create = function (name) { // create element var element = document.createElementNS(this.ns, name); // apply unique id element.setAttribute('id', this.eid(name)); return element; }; // Method for extending objects SVG.extend = function () { var modules, methods, key, i; // Get list of modules modules = [].slice.call(arguments); // Get object with extensions methods = modules.pop(); for (i = modules.length - 1; i >= 0; i--) { if (modules[i]) { for (key in methods) { modules[i].prototype[key] = methods[key]; } } } // Make sure SVG.Set inherits any newly added methods if (SVG.Set && SVG.Set.inherit) { SVG.Set.inherit(); } }; // Invent new element SVG.invent = function (config) { // Create element initializer var initializer = typeof config.create === 'function' ? config.create : function () { this.constructor.call(this, SVG.create(config.create)); }; // Inherit prototype if (config.inherit) { initializer.prototype = new config.inherit(); } // Extend with methods if (config.extend) { SVG.extend(initializer, config.extend); } // Attach construct method to parent if (config.construct) { SVG.extend(config.parent || SVG.Container, config.construct); } return initializer; }; // Adopt existing svg elements SVG.adopt = function (node) { // check for presence of node if (!node) return null; // make sure a node isn't already adopted if (node.instance) return node.instance; // initialize variables var element; // adopt with element-specific settings if (node.nodeName == 'svg') { element = node.parentNode instanceof window.SVGElement ? new SVG.Nested() : new SVG.Doc(); } else if (node.nodeName == 'linearGradient') { element = new SVG.Gradient('linear'); } else if (node.nodeName == 'radialGradient') { element = new SVG.Gradient('radial'); } else if (SVG[capitalize(node.nodeName)]) { element = new SVG[capitalize(node.nodeName)](); } else { element = new SVG.Element(node); } // ensure references element.type = node.nodeName; element.node = node; node.instance = element; // SVG.Class specific preparations if (element instanceof SVG.Doc) { element.namespace().defs(); } // pull svgjs data from the dom (getAttributeNS doesn't work in html5) element.setData(JSON.parse(node.getAttribute('svgjs:data')) || {}); return element; }; // Initialize parsing element SVG.prepare = function () { // Select document body and create invisible svg element var body = document.getElementsByTagName('body')[0], draw = (body ? new SVG.Doc(body) : SVG.adopt(document.documentElement).nested()).size(2, 0); // Create parser object SVG.parser = { body: body || document.documentElement, draw: draw.style('opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden').node, poly: draw.polyline().node, path: draw.path().node, native: SVG.create('svg') }; }; SVG.parser = { native: SVG.create('svg') }; document.addEventListener('DOMContentLoaded', function () { if (!SVG.parser.draw) { SVG.prepare(); } }, false); // Storage for regular expressions SVG.regex = { // Parse unit value numberAndUnit: /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i, // Parse hex value hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, // Parse rgb value rgb: /rgb\((\d+),(\d+),(\d+)\)/, // Parse reference id reference: /#([a-z0-9\-_]+)/i, // splits a transformation chain transforms: /\)\s*,?\s*/, // Whitespace whitespace: /\s/g, // Test hex value isHex: /^#[a-f0-9]{3,6}$/i, // Test rgb value isRgb: /^rgb\(/, // Test css declaration isCss: /[^:]+:[^;]+;?/, // Test for blank string isBlank: /^(\s+)?$/, // Test for numeric string isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, // Test for percent value isPercent: /^-?[\d\.]+%$/, // Test for image url isImage: /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i, // split at whitespace and comma delimiter: /[\s,]+/, // The following regex are used to parse the d attribute of a path // Matches all hyphens which are not after an exponent hyphen: /([^e])\-/gi, // Replaces and tests for all path letters pathLetters: /[MLHVCSQTAZ]/gi, // yes we need this one, too isPathLetter: /[MLHVCSQTAZ]/i, // matches 0.154.23.45 numbersWithDots: /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi, // matches . dots: /\./g }; SVG.utils = { // Map function map: function map(array, block) { var i, il = array.length, result = []; for (i = 0; i < il; i++) { result.push(block(array[i])); } return result; }, // Filter function filter: function filter(array, block) { var i, il = array.length, result = []; for (i = 0; i < il; i++) { if (block(array[i])) { result.push(array[i]); } } return result; }, // Degrees to radians radians: function radians(d) { return d % 360 * Math.PI / 180; }, // Radians to degrees degrees: function degrees(r) { return r * 180 / Math.PI % 360; }, filterSVGElements: function filterSVGElements(nodes) { return this.filter(nodes, function (el) { return el instanceof window.SVGElement; }); } }; SVG.defaults = { // Default attribute values attrs: { // fill and stroke 'fill-opacity': 1, 'stroke-opacity': 1, 'stroke-width': 0, 'stroke-linejoin': 'miter', 'stroke-linecap': 'butt', fill: '#000000', stroke: '#000000', opacity: 1, // position x: 0, y: 0, cx: 0, cy: 0, // size width: 0, height: 0, // radius r: 0, rx: 0, ry: 0, // gradient offset: 0, 'stop-opacity': 1, 'stop-color': '#000000', // text 'font-size': 16, 'font-family': 'Helvetica, Arial, sans-serif', 'text-anchor': 'start' } // Module for color convertions }; SVG.Color = function (color) { var match; // initialize defaults this.r = 0; this.g = 0; this.b = 0; if (!color) return; // parse color if (typeof color === 'string') { if (SVG.regex.isRgb.test(color)) { // get rgb values match = SVG.regex.rgb.exec(color.replace(SVG.regex.whitespace, '')); // parse numeric values this.r = parseInt(match[1]); this.g = parseInt(match[2]); this.b = parseInt(match[3]); } else if (SVG.regex.isHex.test(color)) { // get hex values match = SVG.regex.hex.exec(fullHex(color)); // parse numeric values this.r = parseInt(match[1], 16); this.g = parseInt(match[2], 16); this.b = parseInt(match[3], 16); } } else if (_typeof(color) === 'object') { this.r = color.r; this.g = color.g; this.b = color.b; } }; SVG.extend(SVG.Color, { // Default to hex conversion toString: function toString() { return this.toHex(); }, // Build hex value toHex: function toHex() { return '#' + compToHex(this.r) + compToHex(this.g) + compToHex(this.b); }, // Build rgb value toRgb: function toRgb() { return 'rgb(' + [this.r, this.g, this.b].join() + ')'; }, // Calculate true brightness brightness: function brightness() { return this.r / 255 * 0.30 + this.g / 255 * 0.59 + this.b / 255 * 0.11; }, // Make color morphable morph: function morph(color) { this.destination = new SVG.Color(color); return this; }, // Get morphed color at given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; // normalise pos pos = pos < 0 ? 0 : pos > 1 ? 1 : pos; // generate morphed color return new SVG.Color({ r: ~~(this.r + (this.destination.r - this.r) * pos), g: ~~(this.g + (this.destination.g - this.g) * pos), b: ~~(this.b + (this.destination.b - this.b) * pos) }); } }); // Testers // Test if given value is a color string SVG.Color.test = function (color) { color += ''; return SVG.regex.isHex.test(color) || SVG.regex.isRgb.test(color); }; // Test if given value is a rgb object SVG.Color.isRgb = function (color) { return color && typeof color.r === 'number' && typeof color.g === 'number' && typeof color.b === 'number'; }; // Test if given value is a color SVG.Color.isColor = function (color) { return SVG.Color.isRgb(color) || SVG.Color.test(color); }; // Module for array conversion SVG.Array = function (array, fallback) { array = (array || []).valueOf(); // if array is empty and fallback is provided, use fallback if (array.length == 0 && fallback) { array = fallback.valueOf(); } // parse array this.value = this.parse(array); }; SVG.extend(SVG.Array, { // Make array morphable morph: function morph(array) { this.destination = this.parse(array); // normalize length of arrays if (this.value.length != this.destination.length) { var lastValue = this.value[this.value.length - 1], lastDestination = this.destination[this.destination.length - 1]; while (this.value.length > this.destination.length) { this.destination.push(lastDestination); } while (this.value.length < this.destination.length) { this.value.push(lastValue); } } return this; }, // Clean up any duplicate points settle: function settle() { // find all unique values for (var i = 0, il = this.value.length, seen = []; i < il; i++) { if (seen.indexOf(this.value[i]) == -1) { seen.push(this.value[i]); } } // set new value return this.value = seen; }, // Get morphed array at given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; // generate morphed array for (var i = 0, il = this.value.length, array = []; i < il; i++) { array.push(this.value[i] + (this.destination[i] - this.value[i]) * pos); } return new SVG.Array(array); }, // Convert array to string toString: function toString() { return this.value.join(' '); }, // Real value valueOf: function valueOf() { return this.value; }, // Parse whitespace separated string parse: function parse(array) { array = array.valueOf(); // if already is an array, no need to parse it if (Array.isArray(array)) return array; return this.split(array); }, // Strip unnecessary whitespace split: function split(string) { return string.trim().split(SVG.regex.delimiter).map(parseFloat); }, // Reverse array reverse: function reverse() { this.value.reverse(); return this; }, clone: function clone() { var clone = new this.constructor(); clone.value = array_clone(this.value); return clone; } }); // Poly points array SVG.PointArray = function (array, fallback) { SVG.Array.call(this, array, fallback || [[0, 0]]); }; // Inherit from SVG.Array SVG.PointArray.prototype = new SVG.Array(); SVG.PointArray.prototype.constructor = SVG.PointArray; SVG.extend(SVG.PointArray, { // Convert array to string toString: function toString() { // convert to a poly point string for (var i = 0, il = this.value.length, array = []; i < il; i++) { array.push(this.value[i].join(',')); } return array.join(' '); }, // Convert array to line object toLine: function toLine() { return { x1: this.value[0][0], y1: this.value[0][1], x2: this.value[1][0], y2: this.value[1][1] }; }, // Get morphed array at given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; // generate morphed point string for (var i = 0, il = this.value.length, array = []; i < il; i++) { array.push([this.value[i][0] + (this.destination[i][0] - this.value[i][0]) * pos, this.value[i][1] + (this.destination[i][1] - this.value[i][1]) * pos]); } return new SVG.PointArray(array); }, // Parse point string and flat array parse: function parse(array) { var points = []; array = array.valueOf(); // if it is an array if (Array.isArray(array)) { // and it is not flat, there is no need to parse it if (Array.isArray(array[0])) { // make sure to use a clone return array.map(function (el) { return el.slice(); }); } else if (array[0].x != null) { // allow point objects to be passed return array.map(function (el) { return [el.x, el.y]; }); } } else { // Else, it is considered as a string // parse points array = array.trim().split(SVG.regex.delimiter).map(parseFloat); } // validate points - https://svgwg.org/svg2-draft/shapes.html#DataTypePoints // Odd number of coordinates is an error. In such cases, drop the last odd coordinate. if (array.length % 2 !== 0) array.pop(); // wrap points in two-tuples and parse points as floats for (var i = 0, len = array.length; i < len; i = i + 2) { points.push([array[i], array[i + 1]]); } return points; }, // Move point string move: function move(x, y) { var box = this.bbox(); // get relative offset x -= box.x; y -= box.y; // move every point if (!isNaN(x) && !isNaN(y)) { for (var i = this.value.length - 1; i >= 0; i--) { this.value[i] = [this.value[i][0] + x, this.value[i][1] + y]; } } return this; }, // Resize poly string size: function size(width, height) { var i, box = this.bbox(); // recalculate position of all points according to new size for (i = this.value.length - 1; i >= 0; i--) { if (box.width) this.value[i][0] = (this.value[i][0] - box.x) * width / box.width + box.x; if (box.height) this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; } return this; }, // Get bounding box of points bbox: function bbox() { if (!SVG.parser.draw) { SVG.prepare(); } SVG.parser.poly.setAttribute('points', this.toString()); return SVG.parser.poly.getBBox(); } }); var pathHandlers = { M: function M(c, p, p0) { p.x = p0.x = c[0]; p.y = p0.y = c[1]; return ['M', p.x, p.y]; }, L: function L(c, p) { p.x = c[0]; p.y = c[1]; return ['L', c[0], c[1]]; }, H: function H(c, p) { p.x = c[0]; return ['H', c[0]]; }, V: function V(c, p) { p.y = c[0]; return ['V', c[0]]; }, C: function C(c, p) { p.x = c[4]; p.y = c[5]; return ['C', c[0], c[1], c[2], c[3], c[4], c[5]]; }, S: function S(c, p) { p.x = c[2]; p.y = c[3]; return ['S', c[0], c[1], c[2], c[3]]; }, Q: function Q(c, p) { p.x = c[2]; p.y = c[3]; return ['Q', c[0], c[1], c[2], c[3]]; }, T: function T(c, p) { p.x = c[0]; p.y = c[1]; return ['T', c[0], c[1]]; }, Z: function Z(c, p, p0) { p.x = p0.x; p.y = p0.y; return ['Z']; }, A: function A(c, p) { p.x = c[5]; p.y = c[6]; return ['A', c[0], c[1], c[2], c[3], c[4], c[5], c[6]]; } }; var mlhvqtcsa = 'mlhvqtcsaz'.split(''); for (var i = 0, il = mlhvqtcsa.length; i < il; ++i) { pathHandlers[mlhvqtcsa[i]] = function (i) { return function (c, p, p0) { if (i == 'H') c[0] = c[0] + p.x;else if (i == 'V') c[0] = c[0] + p.y;else if (i == 'A') { c[5] = c[5] + p.x, c[6] = c[6] + p.y; } else { for (var j = 0, jl = c.length; j < jl; ++j) { c[j] = c[j] + (j % 2 ? p.y : p.x); } } return pathHandlers[i](c, p, p0); }; }(mlhvqtcsa[i].toUpperCase()); } // Path points array SVG.PathArray = function (array, fallback) { SVG.Array.call(this, array, fallback || [['M', 0, 0]]); }; // Inherit from SVG.Array SVG.PathArray.prototype = new SVG.Array(); SVG.PathArray.prototype.constructor = SVG.PathArray; SVG.extend(SVG.PathArray, { // Convert array to string toString: function toString() { return arrayToString(this.value); }, // Move path string move: function move(x, y) { // get bounding box of current situation var box = this.bbox(); // get relative offset x -= box.x; y -= box.y; if (!isNaN(x) && !isNaN(y)) { // move every point for (var l, i = this.value.length - 1; i >= 0; i--) { l = this.value[i][0]; if (l == 'M' || l == 'L' || l == 'T') { this.value[i][1] += x; this.value[i][2] += y; } else if (l == 'H') { this.value[i][1] += x; } else if (l == 'V') { this.value[i][1] += y; } else if (l == 'C' || l == 'S' || l == 'Q') { this.value[i][1] += x; this.value[i][2] += y; this.value[i][3] += x; this.value[i][4] += y; if (l == 'C') { this.value[i][5] += x; this.value[i][6] += y; } } else if (l == 'A') { this.value[i][6] += x; this.value[i][7] += y; } } } return this; }, // Resize path string size: function size(width, height) { // get bounding box of current situation var i, l, box = this.bbox(); // recalculate position of all points according to new size for (i = this.value.length - 1; i >= 0; i--) { l = this.value[i][0]; if (l == 'M' || l == 'L' || l == 'T') { this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; } else if (l == 'H') { this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; } else if (l == 'V') { this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; } else if (l == 'C' || l == 'S' || l == 'Q') { this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; this.value[i][3] = (this.value[i][3] - box.x) * width / box.width + box.x; this.value[i][4] = (this.value[i][4] - box.y) * height / box.height + box.y; if (l == 'C') { this.value[i][5] = (this.value[i][5] - box.x) * width / box.width + box.x; this.value[i][6] = (this.value[i][6] - box.y) * height / box.height + box.y; } } else if (l == 'A') { // resize radii this.value[i][1] = this.value[i][1] * width / box.width; this.value[i][2] = this.value[i][2] * height / box.height; // move position values this.value[i][6] = (this.value[i][6] - box.x) * width / box.width + box.x; this.value[i][7] = (this.value[i][7] - box.y) * height / box.height + box.y; } } return this; }, // Test if the passed path array use the same path data commands as this path array equalCommands: function equalCommands(pathArray) { var i, il, equalCommands; pathArray = new SVG.PathArray(pathArray); equalCommands = this.value.length === pathArray.value.length; for (i = 0, il = this.value.length; equalCommands && i < il; i++) { equalCommands = this.value[i][0] === pathArray.value[i][0]; } return equalCommands; }, // Make path array morphable morph: function morph(pathArray) { pathArray = new SVG.PathArray(pathArray); if (this.equalCommands(pathArray)) { this.destination = pathArray; } else { this.destination = null; } return this; }, // Get morphed path array at given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; var sourceArray = this.value, destinationArray = this.destination.value, array = [], pathArray = new SVG.PathArray(), i, il, j, jl; // Animate has specified in the SVG spec // See: https://www.w3.org/TR/SVG11/paths.html#PathElement for (i = 0, il = sourceArray.length; i < il; i++) { array[i] = [sourceArray[i][0]]; for (j = 1, jl = sourceArray[i].length; j < jl; j++) { array[i][j] = sourceArray[i][j] + (destinationArray[i][j] - sourceArray[i][j]) * pos; } // For the two flags of the elliptical arc command, the SVG spec say: // Flags and booleans are interpolated as fractions between zero and one, with any non-zero value considered to be a value of one/true // Elliptical arc command as an array followed by corresponding indexes: // ['A', rx, ry, x-axis-rotation, large-arc-flag, sweep-flag, x, y] // 0 1 2 3 4 5 6 7 if (array[i][0] === 'A') { array[i][4] = +(array[i][4] != 0); array[i][5] = +(array[i][5] != 0); } } // Directly modify the value of a path array, this is done this way for performance pathArray.value = array; return pathArray; }, // Absolutize and parse path to array parse: function parse(array) { // if it's already a patharray, no need to parse it if (array instanceof SVG.PathArray) return array.valueOf(); // prepare for parsing var s, arr, paramCnt = { 'M': 2, 'L': 2, 'H': 1, 'V': 1, 'C': 6, 'S': 4, 'Q': 4, 'T': 2, 'A': 7, 'Z': 0 }; if (typeof array === 'string') { array = array.replace(SVG.regex.numbersWithDots, pathRegReplace) // convert 45.123.123 to 45.123 .123 .replace(SVG.regex.pathLetters, ' $& ') // put some room between letters and numbers .replace(SVG.regex.hyphen, '$1 -') // add space before hyphen .trim() // trim .split(SVG.regex.delimiter); // split into array } else { array = array.reduce(function (prev, curr) { return [].concat.call(prev, curr); }, []); } // array now is an array containing all parts of a path e.g. ['M', '0', '0', 'L', '30', '30' ...] var arr = [], p = new SVG.Point(), p0 = new SVG.Point(), index = 0, len = array.length; do { // Test if we have a path letter if (SVG.regex.isPathLetter.test(array[index])) { s = array[index]; ++index; // If last letter was a move command and we got no new, it defaults to [L]ine } else if (s == 'M') { s = 'L'; } else if (s == 'm') { s = 'l'; } arr.push(pathHandlers[s].call(null, array.slice(index, index = index + paramCnt[s.toUpperCase()]).map(parseFloat), p, p0)); } while (len > index); return arr; }, // Get bounding box of path bbox: function bbox() { if (!SVG.parser.draw) { SVG.prepare(); } SVG.parser.path.setAttribute('d', this.toString()); return SVG.parser.path.getBBox(); } }); // Module for unit convertions SVG.Number = SVG.invent({ // Initialize create: function create(value, unit) { // initialize defaults this.value = 0; this.unit = unit || ''; // parse value if (typeof value === 'number') { // ensure a valid numeric value this.value = isNaN(value) ? 0 : !isFinite(value) ? value < 0 ? -3.4e+38 : +3.4e+38 : value; } else if (typeof value === 'string') { unit = value.match(SVG.regex.numberAndUnit); if (unit) { // make value numeric this.value = parseFloat(unit[1]); // normalize if (unit[5] == '%') { this.value /= 100; } else if (unit[5] == 's') { this.value *= 1000; } // store unit this.unit = unit[5]; } } else { if (value instanceof SVG.Number) { this.value = value.valueOf(); this.unit = value.unit; } } }, // Add methods extend: { // Stringalize toString: function toString() { return (this.unit == '%' ? ~~(this.value * 1e8) / 1e6 : this.unit == 's' ? this.value / 1e3 : this.value) + this.unit; }, toJSON: function toJSON() { return this.toString(); }, // Convert to primitive valueOf: function valueOf() { return this.value; }, // Add number plus: function plus(number) { number = new SVG.Number(number); return new SVG.Number(this + number, this.unit || number.unit); }, // Subtract number minus: function minus(number) { number = new SVG.Number(number); return new SVG.Number(this - number, this.unit || number.unit); }, // Multiply number times: function times(number) { number = new SVG.Number(number); return new SVG.Number(this * number, this.unit || number.unit); }, // Divide number divide: function divide(number) { number = new SVG.Number(number); return new SVG.Number(this / number, this.unit || number.unit); }, // Convert to different unit to: function to(unit) { var number = new SVG.Number(this); if (typeof unit === 'string') { number.unit = unit; } return number; }, // Make number morphable morph: function morph(number) { this.destination = new SVG.Number(number); if (number.relative) { this.destination.value += this.value; } return this; }, // Get morphed number at given position at: function at(pos) { // Make sure a destination is defined if (!this.destination) return this; // Generate new morphed number return new SVG.Number(this.destination).minus(this).times(pos).plus(this); } } }); SVG.Element = SVG.invent({ // Initialize node create: function create(node) { // make stroke value accessible dynamically this._stroke = SVG.defaults.attrs.stroke; this._event = null; // initialize data object this.dom = {}; // create circular reference if (this.node = node) { this.type = node.nodeName; this.node.instance = this; // store current attribute value this._stroke = node.getAttribute('stroke') || this._stroke; } }, // Add class methods extend: { // Move over x-axis x: function x(_x) { return this.attr('x', _x); }, // Move over y-axis y: function y(_y) { return this.attr('y', _y); }, // Move by center over x-axis cx: function cx(x) { return x == null ? this.x() + this.width() / 2 : this.x(x - this.width() / 2); }, // Move by center over y-axis cy: function cy(y) { return y == null ? this.y() + this.height() / 2 : this.y(y - this.height() / 2); }, // Move element to given x and y values move: function move(x, y) { return this.x(x).y(y); }, // Move element by its center center: function center(x, y) { return this.cx(x).cy(y); }, // Set width of element width: function width(_width) { return this.attr('width', _width); }, // Set height of element height: function height(_height) { return this.attr('height', _height); }, // Set element size to given width and height size: function size(width, height) { var p = proportionalSize(this, width, height); return this.width(new SVG.Number(p.width)).height(new SVG.Number(p.height)); }, // Clone element clone: function clone(parent) { // write dom data to the dom so the clone can pickup the data this.writeDataToDom(); // clone element and assign new id var clone = assignNewId(this.node.cloneNode(true)); // insert the clone in the given parent or after myself if (parent) parent.add(clone);else this.after(clone); return clone; }, // Remove element remove: function remove() { if (this.parent()) { this.parent().removeElement(this); } return this; }, // Replace element replace: function replace(element) { this.after(element).remove(); return element; }, // Add element to given container and return self addTo: function addTo(parent) { return parent.put(this); }, // Add element to given container and return container putIn: function putIn(parent) { return parent.add(this); }, // Get / set id id: function id(_id) { return this.attr('id', _id); }, // Checks whether the given point inside the bounding box of the element inside: function inside(x, y) { var box = this.bbox(); return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height; }, // Show element show: function show() { return this.style('display', ''); }, // Hide element hide: function hide() { return this.style('display', 'none'); }, // Is element visible? visible: function visible() { return this.style('display') != 'none'; }, // Return id on string conversion toString: function toString() { return this.attr('id'); }, // Return array of classes on the node classes: function classes() { var attr = this.attr('class'); return attr == null ? [] : attr.trim().split(SVG.regex.delimiter); }, // Return true if class exists on the node, false otherwise hasClass: function hasClass(name) { return this.classes().indexOf(name) != -1; }, // Add class to the node addClass: function addClass(name) { if (!this.hasClass(name)) { var array = this.classes(); array.push(name); this.attr('class', array.join(' ')); } return this; }, // Remove class from the node removeClass: function removeClass(name) { if (this.hasClass(name)) { this.attr('class', this.classes().filter(function (c) { return c != name; }).join(' ')); } return this; }, // Toggle the presence of a class on the node toggleClass: function toggleClass(name) { return this.hasClass(name) ? this.removeClass(name) : this.addClass(name); }, // Get referenced element form attribute value reference: function reference(attr) { return SVG.get(this.attr(attr)); }, // Returns the parent element instance parent: function parent(type) { var parent = this; // check for parent if (!parent.node.parentNode) return null; // get parent element parent = SVG.adopt(parent.node.parentNode); if (!type) return parent; // loop trough ancestors if type is given while (parent && parent.node instanceof window.SVGElement) { if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent; if (!parent.node.parentNode || parent.node.parentNode.nodeName == '#document') return null; // #759, #720 parent = SVG.adopt(parent.node.parentNode); } }, // Get parent document doc: function doc() { return this instanceof SVG.Doc ? this : this.parent(SVG.Doc); }, // return array of all ancestors of given type up to the root svg parents: function parents(type) { var parents = [], parent = this; do { parent = parent.parent(type); if (!parent || !parent.node) break; parents.push(parent); } while (parent.parent); return parents; }, // matches the element vs a css selector matches: function matches(selector) { return _matches(this.node, selector); }, // Returns the svg node to call native svg methods on it native: function native() { return this.node; }, // Import raw svg svg: function svg(_svg) { // create temporary holder var well = document.createElement('svg'); // act as a setter if svg is given if (_svg && this instanceof SVG.Parent) { // dump raw svg well.innerHTML = '' + _svg.replace(/\n/, '').replace(/<([\w:-]+)([^<]+?)\/>/g, '<$1$2>') + ''; // transplant nodes for (var i = 0, il = well.firstChild.childNodes.length; i < il; i++) { this.node.appendChild(well.firstChild.firstChild); } // otherwise act as a getter } else { // create a wrapping svg element in case of partial content well.appendChild(_svg = document.createElement('svg')); // write svgjs data to the dom this.writeDataToDom(); // insert a copy of this node _svg.appendChild(this.node.cloneNode(true)); // return target element return well.innerHTML.replace(/^/, '').replace(/<\/svg>$/, ''); } return this; }, // write svgjs data to the dom writeDataToDom: function writeDataToDom() { // dump variables recursively if (this.each || this.lines) { var fn = this.each ? this : this.lines(); fn.each(function () { this.writeDataToDom(); }); } // remove previously set data this.node.removeAttribute('svgjs:data'); if (Object.keys(this.dom).length) { this.node.setAttribute('svgjs:data', JSON.stringify(this.dom)); } // see #428 return this; }, // set given data to the elements data property setData: function setData(o) { this.dom = o; return this; }, is: function is(obj) { return _is(this, obj); } } }); SVG.easing = { '-': function _(pos) { return pos; }, '<>': function _(pos) { return -Math.cos(pos * Math.PI) / 2 + 0.5; }, '>': function _(pos) { return Math.sin(pos * Math.PI / 2); }, '<': function _(pos) { return -Math.cos(pos * Math.PI / 2) + 1; } }; SVG.morph = function (pos) { return function (from, to) { return new SVG.MorphObj(from, to).at(pos); }; }; SVG.Situation = SVG.invent({ create: function create(o) { this.init = false; this.reversed = false; this.reversing = false; this.duration = new SVG.Number(o.duration).valueOf(); this.delay = new SVG.Number(o.delay).valueOf(); this.start = +new Date() + this.delay; this.finish = this.start + this.duration; this.ease = o.ease; // this.loop is incremented from 0 to this.loops // it is also incremented when in an infinite loop (when this.loops is true) this.loop = 0; this.loops = false; this.animations = {// functionToCall: [list of morphable objects] // e.g. move: [SVG.Number, SVG.Number] }; this.attrs = {// holds all attributes which are not represented from a function svg.js provides // e.g. someAttr: SVG.Number }; this.styles = {// holds all styles which should be animated // e.g. fill-color: SVG.Color }; this.transforms = [// holds all transformations as transformation objects // e.g. [SVG.Rotate, SVG.Translate, SVG.Matrix] ]; this.once = {// functions to fire at a specific position // e.g. "0.5": function foo(){} }; } }); SVG.FX = SVG.invent({ create: function create(element) { this._target = element; this.situations = []; this.active = false; this.situation = null; this.paused = false; this.lastPos = 0; this.pos = 0; // The absolute position of an animation is its position in the context of its complete duration (including delay and loops) // When performing a delay, absPos is below 0 and when performing a loop, its value is above 1 this.absPos = 0; this._speed = 1; }, extend: { /** * sets or returns the target of this animation * @param o object || number In case of Object it holds all parameters. In case of number its the duration of the animation * @param ease function || string Function which should be used for easing or easing keyword * @param delay Number indicating the delay before the animation starts * @return target || this */ animate: function animate(o, ease, delay) { if (_typeof(o) === 'object') { ease = o.ease; delay = o.delay; o = o.duration; } var situation = new SVG.Situation({ duration: o || 1000, delay: delay || 0, ease: SVG.easing[ease || '-'] || ease }); this.queue(situation); return this; }, /** * sets a delay before the next element of the queue is called * @param delay Duration of delay in milliseconds * @return this.target() */ delay: function delay(_delay) { // The delay is performed by an empty situation with its duration // attribute set to the duration of the delay var situation = new SVG.Situation({ duration: _delay, delay: 0, ease: SVG.easing['-'] }); return this.queue(situation); }, /** * sets or returns the target of this animation * @param null || target SVG.Element which should be set as new target * @return target || this */ target: function target(_target) { if (_target && _target instanceof SVG.Element) { this._target = _target; return this; } return this._target; }, // returns the absolute position at a given time timeToAbsPos: function timeToAbsPos(timestamp) { return (timestamp - this.situation.start) / (this.situation.duration / this._speed); }, // returns the timestamp from a given absolute positon absPosToTime: function absPosToTime(absPos) { return this.situation.duration / this._speed * absPos + this.situation.start; }, // starts the animationloop startAnimFrame: function startAnimFrame() { this.stopAnimFrame(); this.animationFrame = window.requestAnimationFrame(function () { this.step(); }.bind(this)); }, // cancels the animationframe stopAnimFrame: function stopAnimFrame() { window.cancelAnimationFrame(this.animationFrame); }, // kicks off the animation - only does something when the queue is currently not active and at least one situation is set start: function start() { // dont start if already started if (!this.active && this.situation) { this.active = true; this.startCurrent(); } return this; }, // start the current situation startCurrent: function startCurrent() { this.situation.start = +new Date() + this.situation.delay / this._speed; this.situation.finish = this.situation.start + this.situation.duration / this._speed; return this.initAnimations().step(); }, /** * adds a function / Situation to the animation queue * @param fn function / situation to add * @return this */ queue: function queue(fn) { if (typeof fn === 'function' || fn instanceof SVG.Situation) { this.situations.push(fn); } if (!this.situation) this.situation = this.situations.shift(); return this; }, /** * pulls next element from the queue and execute it * @return this */ dequeue: function dequeue() { // stop current animation this.stop(); // get next animation from queue this.situation = this.situations.shift(); if (this.situation) { if (this.situation instanceof SVG.Situation) { this.start(); } else { // If it is not a SVG.Situation, then it is a function, we execute it this.situation.call(this); } } return this; }, // updates all animations to the current state of the element // this is important when one property could be changed from another property initAnimations: function initAnimations() { var i, j, source; var s = this.situation; if (s.init) return this; for (i in s.animations) { source = this.target()[i](); if (!Array.isArray(source)) { source = [source]; } if (!Array.isArray(s.animations[i])) { s.animations[i] = [s.animations[i]]; } // if(s.animations[i].length > source.length) { // source.concat = source.concat(s.animations[i].slice(source.length, s.animations[i].length)) // } for (j = source.length; j--;) { // The condition is because some methods return a normal number instead // of a SVG.Number if (s.animations[i][j] instanceof SVG.Number) { source[j] = new SVG.Number(source[j]); } s.animations[i][j] = source[j].morph(s.animations[i][j]); } } for (i in s.attrs) { s.attrs[i] = new SVG.MorphObj(this.target().attr(i), s.attrs[i]); } for (i in s.styles) { s.styles[i] = new SVG.MorphObj(this.target().style(i), s.styles[i]); } s.initialTransformation = this.target().matrixify(); s.init = true; return this; }, clearQueue: function clearQueue() { this.situations = []; return this; }, clearCurrent: function clearCurrent() { this.situation = null; return this; }, /** stops the animation immediately * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. * @param clearQueue A Boolean indicating whether to remove queued animation as well. * @return this */ stop: function stop(jumpToEnd, clearQueue) { var active = this.active; this.active = false; if (clearQueue) { this.clearQueue(); } if (jumpToEnd && this.situation) { // initialize the situation if it was not !active && this.startCurrent(); this.atEnd(); } this.stopAnimFrame(); return this.clearCurrent(); }, /** resets the element to the state where the current element has started * @return this */ reset: function reset() { if (this.situation) { var temp = this.situation; this.stop(); this.situation = temp; this.atStart(); } return this; }, // Stop the currently-running animation, remove all queued animations, and complete all animations for the element. finish: function finish() { this.stop(true, false); while (this.dequeue().situation && this.stop(true, false)) { } this.clearQueue().clearCurrent(); return this; }, // set the internal animation pointer at the start position, before any loops, and updates the visualisation atStart: function atStart() { return this.at(0, true); }, // set the internal animation pointer at the end position, after all the loops, and updates the visualisation atEnd: function atEnd() { if (this.situation.loops === true) { // If in a infinite loop, we end the current iteration this.situation.loops = this.situation.loop + 1; } if (typeof this.situation.loops === 'number') { // If performing a finite number of loops, we go after all the loops return this.at(this.situation.loops, true); } else { // If no loops, we just go at the end return this.at(1, true); } }, // set the internal animation pointer to the specified position and updates the visualisation // if isAbsPos is true, pos is treated as an absolute position at: function at(pos, isAbsPos) { var durDivSpd = this.situation.duration / this._speed; this.absPos = pos; // If pos is not an absolute position, we convert it into one if (!isAbsPos) { if (this.situation.reversed) this.absPos = 1 - this.absPos; this.absPos += this.situation.loop; } this.situation.start = +new Date() - this.absPos * durDivSpd; this.situation.finish = this.situation.start + durDivSpd; return this.step(true); }, /** * sets or returns the speed of the animations * @param speed null || Number The new speed of the animations * @return Number || this */ speed: function speed(_speed) { if (_speed === 0) return this.pause(); if (_speed) { this._speed = _speed; // We use an absolute position here so that speed can affect the delay before the animation return this.at(this.absPos, true); } else return this._speed; }, // Make loopable loop: function loop(times, reverse) { var c = this.last(); // store total loops c.loops = times != null ? times : true; c.loop = 0; if (reverse) c.reversing = true; return this; }, // pauses the animation pause: function pause() { this.paused = true; this.stopAnimFrame(); return this; }, // unpause the animation play: function play() { if (!this.paused) return this; this.paused = false; // We use an absolute position here so that the delay before the animation can be paused return this.at(this.absPos, true); }, /** * toggle or set the direction of the animation * true sets direction to backwards while false sets it to forwards * @param reversed Boolean indicating whether to reverse the animation or not (default: toggle the reverse status) * @return this */ reverse: function reverse(reversed) { var c = this.last(); if (typeof reversed === 'undefined') c.reversed = !c.reversed;else c.reversed = reversed; return this; }, /** * returns a float from 0-1 indicating the progress of the current animation * @param eased Boolean indicating whether the returned position should be eased or not * @return number */ progress: function progress(easeIt) { return easeIt ? this.situation.ease(this.pos) : this.pos; }, /** * adds a callback function which is called when the current animation is finished * @param fn Function which should be executed as callback * @return number */ after: function after(fn) { var c = this.last(), wrapper = function wrapper(e) { if (e.detail.situation == c) { fn.call(this, c); this.off('finished.fx', wrapper); // prevent memory leak } }; this.target().on('finished.fx', wrapper); return this._callStart(); }, // adds a callback which is called whenever one animation step is performed during: function during(fn) { var c = this.last(), wrapper = function wrapper(e) { if (e.detail.situation == c) { fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, c); } }; // see above this.target().off('during.fx', wrapper).on('during.fx', wrapper); this.after(function () { this.off('during.fx', wrapper); }); return this._callStart(); }, // calls after ALL animations in the queue are finished afterAll: function afterAll(fn) { var wrapper = function wrapper(e) { fn.call(this); this.off('allfinished.fx', wrapper); }; // see above this.target().off('allfinished.fx', wrapper).on('allfinished.fx', wrapper); return this._callStart(); }, // calls on every animation step for all animations duringAll: function duringAll(fn) { var wrapper = function wrapper(e) { fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, e.detail.situation); }; this.target().off('during.fx', wrapper).on('during.fx', wrapper); this.afterAll(function () { this.off('during.fx', wrapper); }); return this._callStart(); }, last: function last() { return this.situations.length ? this.situations[this.situations.length - 1] : this.situation; }, // adds one property to the animations add: function add(method, args, type) { this.last()[type || 'animations'][method] = args; return this._callStart(); }, /** perform one step of the animation * @param ignoreTime Boolean indicating whether to ignore time and use position directly or recalculate position based on time * @return this */ step: function step(ignoreTime) { // convert current time to an absolute position if (!ignoreTime) this.absPos = this.timeToAbsPos(+new Date()); // This part convert an absolute position to a position if (this.situation.loops !== false) { var absPos, absPosInt, lastLoop; // If the absolute position is below 0, we just treat it as if it was 0 absPos = Math.max(this.absPos, 0); absPosInt = Math.floor(absPos); if (this.situation.loops === true || absPosInt < this.situation.loops) { this.pos = absPos - absPosInt; lastLoop = this.situation.loop; this.situation.loop = absPosInt; } else { this.absPos = this.situation.loops; this.pos = 1; // The -1 here is because we don't want to toggle reversed when all the loops have been completed lastLoop = this.situation.loop - 1; this.situation.loop = this.situation.loops; } if (this.situation.reversing) { // Toggle reversed if an odd number of loops as occured since the last call of step this.situation.reversed = this.situation.reversed != Boolean((this.situation.loop - lastLoop) % 2); } } else { // If there are no loop, the absolute position must not be above 1 this.absPos = Math.min(this.absPos, 1); this.pos = this.absPos; } // while the absolute position can be below 0, the position must not be below 0 if (this.pos < 0) this.pos = 0; if (this.situation.reversed) this.pos = 1 - this.pos; // apply easing var eased = this.situation.ease(this.pos); // call once-callbacks for (var i in this.situation.once) { if (i > this.lastPos && i <= eased) { this.situation.once[i].call(this.target(), this.pos, eased); delete this.situation.once[i]; } } // fire during callback with position, eased position and current situation as parameter if (this.active) this.target().fire('during', { pos: this.pos, eased: eased, fx: this, situation: this.situation }); // the user may call stop or finish in the during callback // so make sure that we still have a valid situation if (!this.situation) { return this; } // apply the actual animation to every property this.eachAt(); // do final code when situation is finished if (this.pos == 1 && !this.situation.reversed || this.situation.reversed && this.pos == 0) { // stop animation callback this.stopAnimFrame(); // fire finished callback with current situation as parameter this.target().fire('finished', { fx: this, situation: this.situation }); if (!this.situations.length) { this.target().fire('allfinished'); // Recheck the length since the user may call animate in the afterAll callback if (!this.situations.length) { this.target().off('.fx'); // there shouldnt be any binding left, but to make sure... this.active = false; } } // start next animation if (this.active) this.dequeue();else this.clearCurrent(); } else if (!this.paused && this.active) { // we continue animating when we are not at the end this.startAnimFrame(); } // save last eased position for once callback triggering this.lastPos = eased; return this; }, // calculates the step for every property and calls block with it eachAt: function eachAt() { var i, len, at, self = this, target = this.target(), s = this.situation; // apply animations which can be called trough a method for (i in s.animations) { at = [].concat(s.animations[i]).map(function (el) { return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; }); target[i].apply(target, at); } // apply animation which has to be applied with attr() for (i in s.attrs) { at = [i].concat(s.attrs[i]).map(function (el) { return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; }); target.attr.apply(target, at); } // apply animation which has to be applied with style() for (i in s.styles) { at = [i].concat(s.styles[i]).map(function (el) { return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; }); target.style.apply(target, at); } // animate initialTransformation which has to be chained if (s.transforms.length) { // get initial initialTransformation at = s.initialTransformation; for (i = 0, len = s.transforms.length; i < len; i++) { // get next transformation in chain var a = s.transforms[i]; // multiply matrix directly if (a instanceof SVG.Matrix) { if (a.relative) { at = at.multiply(new SVG.Matrix().morph(a).at(s.ease(this.pos))); } else { at = at.morph(a).at(s.ease(this.pos)); } continue; } // when transformation is absolute we have to reset the needed transformation first if (!a.relative) { a.undo(at.extract()); } // and reapply it after at = at.multiply(a.at(s.ease(this.pos))); } // set new matrix on element target.matrix(at); } return this; }, // adds an once-callback which is called at a specific position and never again once: function once(pos, fn, isEased) { var c = this.last(); if (!isEased) pos = c.ease(pos); c.once[pos] = fn; return this; }, _callStart: function _callStart() { setTimeout(function () { this.start(); }.bind(this), 0); return this; } }, parent: SVG.Element, // Add method to parent elements construct: { // Get fx module or create a new one, then animate with given duration and ease animate: function animate(o, ease, delay) { return (this.fx || (this.fx = new SVG.FX(this))).animate(o, ease, delay); }, delay: function delay(_delay2) { return (this.fx || (this.fx = new SVG.FX(this))).delay(_delay2); }, stop: function stop(jumpToEnd, clearQueue) { if (this.fx) { this.fx.stop(jumpToEnd, clearQueue); } return this; }, finish: function finish() { if (this.fx) { this.fx.finish(); } return this; }, // Pause current animation pause: function pause() { if (this.fx) { this.fx.pause(); } return this; }, // Play paused current animation play: function play() { if (this.fx) { this.fx.play(); } return this; }, // Set/Get the speed of the animations speed: function speed(_speed2) { if (this.fx) { if (_speed2 == null) { return this.fx.speed(); } else { this.fx.speed(_speed2); } } return this; } } }); // MorphObj is used whenever no morphable object is given SVG.MorphObj = SVG.invent({ create: function create(from, to) { // prepare color for morphing if (SVG.Color.isColor(to)) return new SVG.Color(from).morph(to); // check if we have a list of values if (SVG.regex.delimiter.test(from)) { // prepare path for morphing if (SVG.regex.pathLetters.test(from)) return new SVG.PathArray(from).morph(to); // prepare value list for morphing else return new SVG.Array(from).morph(to); } // prepare number for morphing if (SVG.regex.numberAndUnit.test(to)) return new SVG.Number(from).morph(to); // prepare for plain morphing this.value = from; this.destination = to; }, extend: { at: function at(pos, real) { return real < 1 ? this.value : this.destination; }, valueOf: function valueOf() { return this.value; } } }); SVG.extend(SVG.FX, { // Add animatable attributes attr: function attr(a, v, relative) { // apply attributes individually if (_typeof(a) === 'object') { for (var key in a) { this.attr(key, a[key]); } } else { this.add(a, v, 'attrs'); } return this; }, // Add animatable styles style: function style(s, v) { if (_typeof(s) === 'object') { for (var key in s) { this.style(key, s[key]); } } else { this.add(s, v, 'styles'); } return this; }, // Animatable x-axis x: function x(_x2, relative) { if (this.target() instanceof SVG.G) { this.transform({ x: _x2 }, relative); return this; } var num = new SVG.Number(_x2); num.relative = relative; return this.add('x', num); }, // Animatable y-axis y: function y(_y2, relative) { if (this.target() instanceof SVG.G) { this.transform({ y: _y2 }, relative); return this; } var num = new SVG.Number(_y2); num.relative = relative; return this.add('y', num); }, // Animatable center x-axis cx: function cx(x) { return this.add('cx', new SVG.Number(x)); }, // Animatable center y-axis cy: function cy(y) { return this.add('cy', new SVG.Number(y)); }, // Add animatable move move: function move(x, y) { return this.x(x).y(y); }, // Add animatable center center: function center(x, y) { return this.cx(x).cy(y); }, // Add animatable size size: function size(width, height) { if (this.target() instanceof SVG.Text) { // animate font size for Text elements this.attr('font-size', width); } else { // animate bbox based size for all other elements var box; if (!width || !height) { box = this.target().bbox(); } if (!width) { width = box.width / box.height * height; } if (!height) { height = box.height / box.width * width; } this.add('width', new SVG.Number(width)).add('height', new SVG.Number(height)); } return this; }, // Add animatable width width: function width(_width2) { return this.add('width', new SVG.Number(_width2)); }, // Add animatable height height: function height(_height2) { return this.add('height', new SVG.Number(_height2)); }, // Add animatable plot plot: function plot(a, b, c, d) { // Lines can be plotted with 4 arguments if (arguments.length == 4) { return this.plot([a, b, c, d]); } return this.add('plot', new (this.target().morphArray)(a)); }, // Add leading method leading: function leading(value) { return this.target().leading ? this.add('leading', new SVG.Number(value)) : this; }, // Add animatable viewbox viewbox: function viewbox(x, y, width, height) { if (this.target() instanceof SVG.Container) { this.add('viewbox', new SVG.ViewBox(x, y, width, height)); } return this; }, update: function update(o) { if (this.target() instanceof SVG.Stop) { if (typeof o === 'number' || o instanceof SVG.Number) { return this.update({ offset: arguments[0], color: arguments[1], opacity: arguments[2] }); } if (o.opacity != null) this.attr('stop-opacity', o.opacity); if (o.color != null) this.attr('stop-color', o.color); if (o.offset != null) this.attr('offset', o.offset); } return this; } }); SVG.Box = SVG.invent({ create: function create(x, y, width, height) { if (_typeof(x) === 'object' && !(x instanceof SVG.Element)) { // chromes getBoundingClientRect has no x and y property return SVG.Box.call(this, x.left != null ? x.left : x.x, x.top != null ? x.top : x.y, x.width, x.height); } else if (arguments.length == 4) { this.x = x; this.y = y; this.width = width; this.height = height; } // add center, right, bottom... fullBox(this); }, extend: { // Merge rect box with another, return a new instance merge: function merge(box) { var b = new this.constructor(); // merge boxes b.x = Math.min(this.x, box.x); b.y = Math.min(this.y, box.y); b.width = Math.max(this.x + this.width, box.x + box.width) - b.x; b.height = Math.max(this.y + this.height, box.y + box.height) - b.y; return fullBox(b); }, transform: function transform(m) { var xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, bbox; var pts = [new SVG.Point(this.x, this.y), new SVG.Point(this.x2, this.y), new SVG.Point(this.x, this.y2), new SVG.Point(this.x2, this.y2)]; pts.forEach(function (p) { p = p.transform(m); xMin = Math.min(xMin, p.x); xMax = Math.max(xMax, p.x); yMin = Math.min(yMin, p.y); yMax = Math.max(yMax, p.y); }); bbox = new this.constructor(); bbox.x = xMin; bbox.width = xMax - xMin; bbox.y = yMin; bbox.height = yMax - yMin; fullBox(bbox); return bbox; } } }); SVG.BBox = SVG.invent({ // Initialize create: function create(element) { SVG.Box.apply(this, [].slice.call(arguments)); // get values if element is given if (element instanceof SVG.Element) { var box; // yes this is ugly, but Firefox can be a pain when it comes to elements that are not yet rendered try { if (!document.documentElement.contains) { // This is IE - it does not support contains() for top-level SVGs var topParent = element.node; while (topParent.parentNode) { topParent = topParent.parentNode; } if (topParent != document) throw new Error('Element not in the dom'); } // the element is NOT in the dom, throw error // disabling the check below which fixes issue #76 // if (!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom') // find native bbox box = element.node.getBBox(); } catch (e) { if (element instanceof SVG.Shape) { if (!SVG.parser.draw) { // fixes apexcharts/vue-apexcharts #14 SVG.prepare(); } var clone = element.clone(SVG.parser.draw.instance).show(); box = clone.node.getBBox(); clone.remove(); } else { box = { x: element.node.clientLeft, y: element.node.clientTop, width: element.node.clientWidth, height: element.node.clientHeight }; } } SVG.Box.call(this, box); } }, // Define ancestor inherit: SVG.Box, // Define Parent parent: SVG.Element, // Constructor construct: { // Get bounding box bbox: function bbox() { return new SVG.BBox(this); } } }); SVG.BBox.prototype.constructor = SVG.BBox; SVG.extend(SVG.Element, { tbox: function tbox() { console.warn('Use of TBox is deprecated and mapped to RBox. Use .rbox() instead.'); return this.rbox(this.doc()); } }); SVG.RBox = SVG.invent({ // Initialize create: function create(element) { SVG.Box.apply(this, [].slice.call(arguments)); if (element instanceof SVG.Element) { SVG.Box.call(this, element.node.getBoundingClientRect()); } }, inherit: SVG.Box, // define Parent parent: SVG.Element, extend: { addOffset: function addOffset() { // offset by window scroll position, because getBoundingClientRect changes when window is scrolled this.x += window.pageXOffset; this.y += window.pageYOffset; return this; } }, // Constructor construct: { // Get rect box rbox: function rbox(el) { if (el) return new SVG.RBox(this).transform(el.screenCTM().inverse()); return new SVG.RBox(this).addOffset(); } } }); SVG.RBox.prototype.constructor = SVG.RBox; SVG.Matrix = SVG.invent({ // Initialize create: function create(source) { var i, base = arrayToMatrix([1, 0, 0, 1, 0, 0]); // ensure source as object source = source instanceof SVG.Element ? source.matrixify() : typeof source === 'string' ? arrayToMatrix(source.split(SVG.regex.delimiter).map(parseFloat)) : arguments.length == 6 ? arrayToMatrix([].slice.call(arguments)) : Array.isArray(source) ? arrayToMatrix(source) : _typeof(source) === 'object' ? source : base; // merge source for (i = abcdef.length - 1; i >= 0; --i) { this[abcdef[i]] = source[abcdef[i]] != null ? source[abcdef[i]] : base[abcdef[i]]; } }, // Add methods extend: { // Extract individual transformations extract: function extract() { // find delta transform points var px = deltaTransformPoint(this, 0, 1), py = deltaTransformPoint(this, 1, 0), skewX = 180 / Math.PI * Math.atan2(px.y, px.x) - 90; return { // translation x: this.e, y: this.f, transformedX: (this.e * Math.cos(skewX * Math.PI / 180) + this.f * Math.sin(skewX * Math.PI / 180)) / Math.sqrt(this.a * this.a + this.b * this.b), transformedY: (this.f * Math.cos(skewX * Math.PI / 180) + this.e * Math.sin(-skewX * Math.PI / 180)) / Math.sqrt(this.c * this.c + this.d * this.d), // skew skewX: -skewX, skewY: 180 / Math.PI * Math.atan2(py.y, py.x), // scale scaleX: Math.sqrt(this.a * this.a + this.b * this.b), scaleY: Math.sqrt(this.c * this.c + this.d * this.d), // rotation rotation: skewX, a: this.a, b: this.b, c: this.c, d: this.d, e: this.e, f: this.f, matrix: new SVG.Matrix(this) }; }, // Clone matrix clone: function clone() { return new SVG.Matrix(this); }, // Morph one matrix into another morph: function morph(matrix) { // store new destination this.destination = new SVG.Matrix(matrix); return this; }, // Get morphed matrix at a given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; // calculate morphed matrix at a given position var matrix = new SVG.Matrix({ a: this.a + (this.destination.a - this.a) * pos, b: this.b + (this.destination.b - this.b) * pos, c: this.c + (this.destination.c - this.c) * pos, d: this.d + (this.destination.d - this.d) * pos, e: this.e + (this.destination.e - this.e) * pos, f: this.f + (this.destination.f - this.f) * pos }); return matrix; }, // Multiplies by given matrix multiply: function multiply(matrix) { return new SVG.Matrix(this.native().multiply(parseMatrix(matrix).native())); }, // Inverses matrix inverse: function inverse() { return new SVG.Matrix(this.native().inverse()); }, // Translate matrix translate: function translate(x, y) { return new SVG.Matrix(this.native().translate(x || 0, y || 0)); }, // Scale matrix scale: function scale(x, y, cx, cy) { // support uniformal scale if (arguments.length == 1) { y = x; } else if (arguments.length == 3) { cy = cx; cx = y; y = x; } return this.around(cx, cy, new SVG.Matrix(x, 0, 0, y, 0, 0)); }, // Rotate matrix rotate: function rotate(r, cx, cy) { // convert degrees to radians r = SVG.utils.radians(r); return this.around(cx, cy, new SVG.Matrix(Math.cos(r), Math.sin(r), -Math.sin(r), Math.cos(r), 0, 0)); }, // Flip matrix on x or y, at a given offset flip: function flip(a, o) { return a == 'x' ? this.scale(-1, 1, o, 0) : a == 'y' ? this.scale(1, -1, 0, o) : this.scale(-1, -1, a, o != null ? o : a); }, // Skew skew: function skew(x, y, cx, cy) { // support uniformal skew if (arguments.length == 1) { y = x; } else if (arguments.length == 3) { cy = cx; cx = y; y = x; } // convert degrees to radians x = SVG.utils.radians(x); y = SVG.utils.radians(y); return this.around(cx, cy, new SVG.Matrix(1, Math.tan(y), Math.tan(x), 1, 0, 0)); }, // SkewX skewX: function skewX(x, cx, cy) { return this.skew(x, 0, cx, cy); }, // SkewY skewY: function skewY(y, cx, cy) { return this.skew(0, y, cx, cy); }, // Transform around a center point around: function around(cx, cy, matrix) { return this.multiply(new SVG.Matrix(1, 0, 0, 1, cx || 0, cy || 0)).multiply(matrix).multiply(new SVG.Matrix(1, 0, 0, 1, -cx || 0, -cy || 0)); }, // Convert to native SVGMatrix native: function native() { // create new matrix var matrix = SVG.parser.native.createSVGMatrix(); // update with current values for (var i = abcdef.length - 1; i >= 0; i--) { matrix[abcdef[i]] = this[abcdef[i]]; } return matrix; }, // Convert matrix to string toString: function toString() { // Construct the matrix directly, avoid values that are too small return 'matrix(' + float32String(this.a) + ',' + float32String(this.b) + ',' + float32String(this.c) + ',' + float32String(this.d) + ',' + float32String(this.e) + ',' + float32String(this.f) + ')'; } }, // Define parent parent: SVG.Element, // Add parent method construct: { // Get current matrix ctm: function ctm() { return new SVG.Matrix(this.node.getCTM()); }, // Get current screen matrix screenCTM: function screenCTM() { /* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537 This is needed because FF does not return the transformation matrix for the inner coordinate system when getScreenCTM() is called on nested svgs. However all other Browsers do that */ if (this instanceof SVG.Nested) { var rect = this.rect(1, 1); var m = rect.node.getScreenCTM(); rect.remove(); return new SVG.Matrix(m); } return new SVG.Matrix(this.node.getScreenCTM()); } } }); SVG.Point = SVG.invent({ // Initialize create: function create(x, y) { var source, base = { x: 0, y: 0 // ensure source as object }; source = Array.isArray(x) ? { x: x[0], y: x[1] } : _typeof(x) === 'object' ? { x: x.x, y: x.y } : x != null ? { x: x, y: y != null ? y : x } : base; // If y has no value, then x is used has its value // merge source this.x = source.x; this.y = source.y; }, // Add methods extend: { // Clone point clone: function clone() { return new SVG.Point(this); }, // Morph one point into another morph: function morph(x, y) { // store new destination this.destination = new SVG.Point(x, y); return this; }, // Get morphed point at a given position at: function at(pos) { // make sure a destination is defined if (!this.destination) return this; // calculate morphed matrix at a given position var point = new SVG.Point({ x: this.x + (this.destination.x - this.x) * pos, y: this.y + (this.destination.y - this.y) * pos }); return point; }, // Convert to native SVGPoint native: function native() { // create new point var point = SVG.parser.native.createSVGPoint(); // update with current values point.x = this.x; point.y = this.y; return point; }, // transform point with matrix transform: function transform(matrix) { return new SVG.Point(this.native().matrixTransform(matrix.native())); } } }); SVG.extend(SVG.Element, { // Get point point: function point(x, y) { return new SVG.Point(x, y).transform(this.screenCTM().inverse()); } }); SVG.extend(SVG.Element, { // Set svg element attribute attr: function attr(a, v, n) { // act as full getter if (a == null) { // get an object of attributes a = {}; v = this.node.attributes; for (n = v.length - 1; n >= 0; n--) { a[v[n].nodeName] = SVG.regex.isNumber.test(v[n].nodeValue) ? parseFloat(v[n].nodeValue) : v[n].nodeValue; } return a; } else if (_typeof(a) === 'object') { // apply every attribute individually if an object is passed for (v in a) { this.attr(v, a[v]); } } else if (v === null) { // remove value this.node.removeAttribute(a); } else if (v == null) { // act as a getter if the first and only argument is not an object v = this.node.getAttribute(a); return v == null ? SVG.defaults.attrs[a] : SVG.regex.isNumber.test(v) ? parseFloat(v) : v; } else { // BUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 if (a == 'stroke-width') { this.attr('stroke', parseFloat(v) > 0 ? this._stroke : null); } else if (a == 'stroke') { this._stroke = v; } // convert image fill and stroke to patterns if (a == 'fill' || a == 'stroke') { if (SVG.regex.isImage.test(v)) { v = this.doc().defs().image(v, 0, 0); } if (v instanceof SVG.Image) { v = this.doc().defs().pattern(0, 0, function () { this.add(v); }); } } // ensure correct numeric values (also accepts NaN and Infinity) if (typeof v === 'number') { v = new SVG.Number(v); } // ensure full hex color else if (SVG.Color.isColor(v)) { v = new SVG.Color(v); } // parse array values else if (Array.isArray(v)) { v = new SVG.Array(v); } // if the passed attribute is leading... if (a == 'leading') { // ... call the leading method instead if (this.leading) { this.leading(v); } } else { // set given attribute on node typeof n === 'string' ? this.node.setAttributeNS(n, a, v.toString()) : this.node.setAttribute(a, v.toString()); } // rebuild if required if (this.rebuild && (a == 'font-size' || a == 'x')) { this.rebuild(a, v); } } return this; } }); SVG.extend(SVG.Element, { // Add transformations transform: function transform(o, relative) { // get target in case of the fx module, otherwise reference this var target = this, matrix, bbox; // act as a getter if (_typeof(o) !== 'object') { // get current matrix matrix = new SVG.Matrix(target).extract(); return typeof o === 'string' ? matrix[o] : matrix; } // get current matrix matrix = new SVG.Matrix(target); // ensure relative flag relative = !!relative || !!o.relative; // act on matrix if (o.a != null) { matrix = relative // relative ? matrix.multiply(new SVG.Matrix(o)) // absolute : new SVG.Matrix(o); // act on rotation } else if (o.rotation != null) { // ensure centre point ensureCentre(o, target); // apply transformation matrix = relative // relative ? matrix.rotate(o.rotation, o.cx, o.cy) // absolute : matrix.rotate(o.rotation - matrix.extract().rotation, o.cx, o.cy); // act on scale } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { // ensure centre point ensureCentre(o, target); // ensure scale values on both axes o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; if (!relative) { // absolute; multiply inversed values var e = matrix.extract(); o.scaleX = o.scaleX * 1 / e.scaleX; o.scaleY = o.scaleY * 1 / e.scaleY; } matrix = matrix.scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew } else if (o.skew != null || o.skewX != null || o.skewY != null) { // ensure centre point ensureCentre(o, target); // ensure skew values on both axes o.skewX = o.skew != null ? o.skew : o.skewX != null ? o.skewX : 0; o.skewY = o.skew != null ? o.skew : o.skewY != null ? o.skewY : 0; if (!relative) { // absolute; reset skew values var e = matrix.extract(); matrix = matrix.multiply(new SVG.Matrix().skew(e.skewX, e.skewY, o.cx, o.cy).inverse()); } matrix = matrix.skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip } else if (o.flip) { if (o.flip == 'x' || o.flip == 'y') { o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; } else { if (o.offset == null) { bbox = target.bbox(); o.flip = bbox.cx; o.offset = bbox.cy; } else { o.flip = o.offset; } } matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate } else if (o.x != null || o.y != null) { if (relative) { // relative matrix = matrix.translate(o.x, o.y); } else { // absolute if (o.x != null) matrix.e = o.x; if (o.y != null) matrix.f = o.y; } } return this.attr('transform', matrix); } }); SVG.extend(SVG.FX, { transform: function transform(o, relative) { // get target in case of the fx module, otherwise reference this var target = this.target(), matrix, bbox; // act as a getter if (_typeof(o) !== 'object') { // get current matrix matrix = new SVG.Matrix(target).extract(); return typeof o === 'string' ? matrix[o] : matrix; } // ensure relative flag relative = !!relative || !!o.relative; // act on matrix if (o.a != null) { matrix = new SVG.Matrix(o); // act on rotation } else if (o.rotation != null) { // ensure centre point ensureCentre(o, target); // apply transformation matrix = new SVG.Rotate(o.rotation, o.cx, o.cy); // act on scale } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { // ensure centre point ensureCentre(o, target); // ensure scale values on both axes o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; matrix = new SVG.Scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew } else if (o.skewX != null || o.skewY != null) { // ensure centre point ensureCentre(o, target); // ensure skew values on both axes o.skewX = o.skewX != null ? o.skewX : 0; o.skewY = o.skewY != null ? o.skewY : 0; matrix = new SVG.Skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip } else if (o.flip) { if (o.flip == 'x' || o.flip == 'y') { o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; } else { if (o.offset == null) { bbox = target.bbox(); o.flip = bbox.cx; o.offset = bbox.cy; } else { o.flip = o.offset; } } matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate } else if (o.x != null || o.y != null) { matrix = new SVG.Translate(o.x, o.y); } if (!matrix) return this; matrix.relative = relative; this.last().transforms.push(matrix); return this._callStart(); } }); SVG.extend(SVG.Element, { // Reset all transformations untransform: function untransform() { return this.attr('transform', null); }, // merge the whole transformation chain into one matrix and returns it matrixify: function matrixify() { var matrix = (this.attr('transform') || ''). // split transformations split(SVG.regex.transforms).slice(0, -1).map(function (str) { // generate key => value pairs var kv = str.trim().split('('); return [kv[0], kv[1].split(SVG.regex.delimiter).map(function (str) { return parseFloat(str); })]; }) // merge every transformation into one matrix .reduce(function (matrix, transform) { if (transform[0] == 'matrix') return matrix.multiply(arrayToMatrix(transform[1])); return matrix[transform[0]].apply(matrix, transform[1]); }, new SVG.Matrix()); return matrix; }, // add an element to another parent without changing the visual representation on the screen toParent: function toParent(parent) { if (this == parent) return this; var ctm = this.screenCTM(); var pCtm = parent.screenCTM().inverse(); this.addTo(parent).untransform().transform(pCtm.multiply(ctm)); return this; }, // same as above with parent equals root-svg toDoc: function toDoc() { return this.toParent(this.doc()); } }); SVG.Transformation = SVG.invent({ create: function create(source, inversed) { if (arguments.length > 1 && typeof inversed !== 'boolean') { return this.constructor.call(this, [].slice.call(arguments)); } if (Array.isArray(source)) { for (var i = 0, len = this.arguments.length; i < len; ++i) { this[this.arguments[i]] = source[i]; } } else if (_typeof(source) === 'object') { for (var i = 0, len = this.arguments.length; i < len; ++i) { this[this.arguments[i]] = source[this.arguments[i]]; } } this.inversed = false; if (inversed === true) { this.inversed = true; } }, extend: { arguments: [], method: '', at: function at(pos) { var params = []; for (var i = 0, len = this.arguments.length; i < len; ++i) { params.push(this[this.arguments[i]]); } var m = this._undo || new SVG.Matrix(); m = new SVG.Matrix().morph(SVG.Matrix.prototype[this.method].apply(m, params)).at(pos); return this.inversed ? m.inverse() : m; }, undo: function undo(o) { for (var i = 0, len = this.arguments.length; i < len; ++i) { o[this.arguments[i]] = typeof this[this.arguments[i]] === 'undefined' ? 0 : o[this.arguments[i]]; } // The method SVG.Matrix.extract which was used before calling this // method to obtain a value for the parameter o doesn't return a cx and // a cy so we use the ones that were provided to this object at its creation o.cx = this.cx; o.cy = this.cy; this._undo = new SVG[capitalize(this.method)](o, true).at(1); return this; } } }); SVG.Translate = SVG.invent({ parent: SVG.Matrix, inherit: SVG.Transformation, create: function create(source, inversed) { this.constructor.apply(this, [].slice.call(arguments)); }, extend: { arguments: ['transformedX', 'transformedY'], method: 'translate' } }); SVG.Rotate = SVG.invent({ parent: SVG.Matrix, inherit: SVG.Transformation, create: function create(source, inversed) { this.constructor.apply(this, [].slice.call(arguments)); }, extend: { arguments: ['rotation', 'cx', 'cy'], method: 'rotate', at: function at(pos) { var m = new SVG.Matrix().rotate(new SVG.Number().morph(this.rotation - (this._undo ? this._undo.rotation : 0)).at(pos), this.cx, this.cy); return this.inversed ? m.inverse() : m; }, undo: function undo(o) { this._undo = o; return this; } } }); SVG.Scale = SVG.invent({ parent: SVG.Matrix, inherit: SVG.Transformation, create: function create(source, inversed) { this.constructor.apply(this, [].slice.call(arguments)); }, extend: { arguments: ['scaleX', 'scaleY', 'cx', 'cy'], method: 'scale' } }); SVG.Skew = SVG.invent({ parent: SVG.Matrix, inherit: SVG.Transformation, create: function create(source, inversed) { this.constructor.apply(this, [].slice.call(arguments)); }, extend: { arguments: ['skewX', 'skewY', 'cx', 'cy'], method: 'skew' } }); SVG.extend(SVG.Element, { // Dynamic style generator style: function style(s, v) { if (arguments.length == 0) { // get full style return this.node.style.cssText || ''; } else if (arguments.length < 2) { // apply every style individually if an object is passed if (_typeof(s) === 'object') { for (v in s) { this.style(v, s[v]); } } else if (SVG.regex.isCss.test(s)) { // parse css string s = s.split(/\s*;\s*/) // filter out suffix ; and stuff like ;; .filter(function (e) { return !!e; }).map(function (e) { return e.split(/\s*:\s*/); }); // apply every definition individually while (v = s.pop()) { this.style(v[0], v[1]); } } else { // act as a getter if the first and only argument is not an object return this.node.style[camelCase(s)]; } } else { this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v; } return this; } }); SVG.Parent = SVG.invent({ // Initialize node create: function create(element) { this.constructor.call(this, element); }, // Inherit from inherit: SVG.Element, // Add class methods extend: { // Returns all child elements children: function children() { return SVG.utils.map(SVG.utils.filterSVGElements(this.node.childNodes), function (node) { return SVG.adopt(node); }); }, // Add given element at a position add: function add(element, i) { if (i == null) { this.node.appendChild(element.node); } else if (element.node != this.node.childNodes[i]) { this.node.insertBefore(element.node, this.node.childNodes[i]); } return this; }, // Basically does the same as `add()` but returns the added element instead put: function put(element, i) { this.add(element, i); return element; }, // Checks if the given element is a child has: function has(element) { return this.index(element) >= 0; }, // Gets index of given element index: function index(element) { return [].slice.call(this.node.childNodes).indexOf(element.node); }, // Get a element at the given index get: function get(i) { return SVG.adopt(this.node.childNodes[i]); }, // Get first child first: function first() { return this.get(0); }, // Get the last child last: function last() { return this.get(this.node.childNodes.length - 1); }, // Iterates over all children and invokes a given block each: function each(block, deep) { var i, il, children = this.children(); for (i = 0, il = children.length; i < il; i++) { if (children[i] instanceof SVG.Element) { block.apply(children[i], [i, children]); } if (deep && children[i] instanceof SVG.Container) { children[i].each(block, deep); } } return this; }, // Remove a given child removeElement: function removeElement(element) { this.node.removeChild(element.node); return this; }, // Remove all elements in this container clear: function clear() { // remove children while (this.node.hasChildNodes()) { this.node.removeChild(this.node.lastChild); } // remove defs reference delete this._defs; return this; }, // Get defs defs: function defs() { return this.doc().defs(); } } }); SVG.extend(SVG.Parent, { ungroup: function ungroup(parent, depth) { if (depth === 0 || this instanceof SVG.Defs || this.node == SVG.parser.draw) return this; parent = parent || (this instanceof SVG.Doc ? this : this.parent(SVG.Parent)); depth = depth || Infinity; this.each(function () { if (this instanceof SVG.Defs) return this; if (this instanceof SVG.Parent) return this.ungroup(parent, depth - 1); return this.toParent(parent); }); this.node.firstChild || this.remove(); return this; }, flatten: function flatten(parent, depth) { return this.ungroup(parent, depth); } }); SVG.Container = SVG.invent({ // Initialize node create: function create(element) { this.constructor.call(this, element); }, // Inherit from inherit: SVG.Parent }); SVG.ViewBox = SVG.invent({ create: function create(source) { var base = [0, 0, 0, 0]; var x, y, width, height, box, view, we, he, wm = 1, // width multiplier hm = 1, // height multiplier reg = /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi; if (source instanceof SVG.Element) { we = source; he = source; view = (source.attr('viewBox') || '').match(reg); box = source.bbox; // get dimensions of current node width = new SVG.Number(source.width()); height = new SVG.Number(source.height()); // find nearest non-percentual dimensions while (width.unit == '%') { wm *= width.value; width = new SVG.Number(we instanceof SVG.Doc ? we.parent().offsetWidth : we.parent().width()); we = we.parent(); } while (height.unit == '%') { hm *= height.value; height = new SVG.Number(he instanceof SVG.Doc ? he.parent().offsetHeight : he.parent().height()); he = he.parent(); } // ensure defaults this.x = 0; this.y = 0; this.width = width * wm; this.height = height * hm; this.zoom = 1; if (view) { // get width and height from viewbox x = parseFloat(view[0]); y = parseFloat(view[1]); width = parseFloat(view[2]); height = parseFloat(view[3]); // calculate zoom accoring to viewbox this.zoom = this.width / this.height > width / height ? this.height / height : this.width / width; // calculate real pixel dimensions on parent SVG.Doc element this.x = x; this.y = y; this.width = width; this.height = height; } } else { // ensure source as object source = typeof source === 'string' ? source.match(reg).map(function (el) { return parseFloat(el); }) : Array.isArray(source) ? source : _typeof(source) === 'object' ? [source.x, source.y, source.width, source.height] : arguments.length == 4 ? [].slice.call(arguments) : base; this.x = source[0]; this.y = source[1]; this.width = source[2]; this.height = source[3]; } }, extend: { toString: function toString() { return this.x + ' ' + this.y + ' ' + this.width + ' ' + this.height; }, morph: function morph(x, y, width, height) { this.destination = new SVG.ViewBox(x, y, width, height); return this; }, at: function at(pos) { if (!this.destination) return this; return new SVG.ViewBox([this.x + (this.destination.x - this.x) * pos, this.y + (this.destination.y - this.y) * pos, this.width + (this.destination.width - this.width) * pos, this.height + (this.destination.height - this.height) * pos]); } }, // Define parent parent: SVG.Container, // Add parent method construct: { // get/set viewbox viewbox: function viewbox(x, y, width, height) { if (arguments.length == 0) // act as a getter if there are no arguments { return new SVG.ViewBox(this); } // otherwise act as a setter return this.attr('viewBox', new SVG.ViewBox(x, y, width, height)); } } }) // Add events to elements ; ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove', // , 'mouseenter' -> not supported by IE // , 'mouseleave' -> not supported by IE 'touchstart', 'touchmove', 'touchleave', 'touchend', 'touchcancel'].forEach(function (event) { // add event to SVG.Element SVG.Element.prototype[event] = function (f) { // bind event to element rather than element node SVG.on(this.node, event, f); return this; }; }); // Initialize listeners stack SVG.listeners = []; SVG.handlerMap = []; SVG.listenerId = 0; // Add event binder in the SVG namespace SVG.on = function (node, event, listener, binding, options) { // create listener, get object-index var l = listener.bind(binding || node.instance || node), index = (SVG.handlerMap.indexOf(node) + 1 || SVG.handlerMap.push(node)) - 1, ev = event.split('.')[0], ns = event.split('.')[1] || '*'; // ensure valid object SVG.listeners[index] = SVG.listeners[index] || {}; SVG.listeners[index][ev] = SVG.listeners[index][ev] || {}; SVG.listeners[index][ev][ns] = SVG.listeners[index][ev][ns] || {}; if (!listener._svgjsListenerId) { listener._svgjsListenerId = ++SVG.listenerId; } // reference listener SVG.listeners[index][ev][ns][listener._svgjsListenerId] = l; // add listener node.addEventListener(ev, l, options || false); }; // Add event unbinder in the SVG namespace SVG.off = function (node, event, listener) { var index = SVG.handlerMap.indexOf(node), ev = event && event.split('.')[0], ns = event && event.split('.')[1], namespace = ''; if (index == -1) return; if (listener) { if (typeof listener === 'function') listener = listener._svgjsListenerId; if (!listener) return; // remove listener reference if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns || '*']) { // remove listener node.removeEventListener(ev, SVG.listeners[index][ev][ns || '*'][listener], false); delete SVG.listeners[index][ev][ns || '*'][listener]; } } else if (ns && ev) { // remove all listeners for a namespaced event if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns]) { for (listener in SVG.listeners[index][ev][ns]) { SVG.off(node, [ev, ns].join('.'), listener); } delete SVG.listeners[index][ev][ns]; } } else if (ns) { // remove all listeners for a specific namespace for (event in SVG.listeners[index]) { for (namespace in SVG.listeners[index][event]) { if (ns === namespace) { SVG.off(node, [event, ns].join('.')); } } } } else if (ev) { // remove all listeners for the event if (SVG.listeners[index][ev]) { for (namespace in SVG.listeners[index][ev]) { SVG.off(node, [ev, namespace].join('.')); } delete SVG.listeners[index][ev]; } } else { // remove all listeners on a given node for (event in SVG.listeners[index]) { SVG.off(node, event); } delete SVG.listeners[index]; delete SVG.handlerMap[index]; } }; // SVG.extend(SVG.Element, { // Bind given event to listener on: function on(event, listener, binding, options) { SVG.on(this.node, event, listener, binding, options); return this; }, // Unbind event from listener off: function off(event, listener) { SVG.off(this.node, event, listener); return this; }, // Fire given event fire: function fire(event, data) { // Dispatch event if (event instanceof window.Event) { this.node.dispatchEvent(event); } else { this.node.dispatchEvent(event = new SVG.CustomEvent(event, { detail: data, cancelable: true })); } this._event = event; return this; }, event: function event() { return this._event; } }); SVG.Defs = SVG.invent({ // Initialize node create: 'defs', // Inherit from inherit: SVG.Container }); SVG.G = SVG.invent({ // Initialize node create: 'g', // Inherit from inherit: SVG.Container, // Add class methods extend: { // Move over x-axis x: function x(_x3) { return _x3 == null ? this.transform('x') : this.transform({ x: _x3 - this.x() }, true); }, // Move over y-axis y: function y(_y3) { return _y3 == null ? this.transform('y') : this.transform({ y: _y3 - this.y() }, true); }, // Move by center over x-axis cx: function cx(x) { return x == null ? this.gbox().cx : this.x(x - this.gbox().width / 2); }, // Move by center over y-axis cy: function cy(y) { return y == null ? this.gbox().cy : this.y(y - this.gbox().height / 2); }, gbox: function gbox() { var bbox = this.bbox(), trans = this.transform(); bbox.x += trans.x; bbox.x2 += trans.x; bbox.cx += trans.x; bbox.y += trans.y; bbox.y2 += trans.y; bbox.cy += trans.y; return bbox; } }, // Add parent method construct: { // Create a group element group: function group() { return this.put(new SVG.G()); } } }); SVG.Doc = SVG.invent({ // Initialize node create: function create(element) { if (element) { // ensure the presence of a dom element element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper. // This allows svg.js to work with svg documents as well. if (element.nodeName == 'svg') { this.constructor.call(this, element); } else { this.constructor.call(this, SVG.create('svg')); element.appendChild(this.node); this.size('100%', '100%'); } // set svg element attributes and ensure defs node this.namespace().defs(); } }, // Inherit from inherit: SVG.Container, // Add class methods extend: { // Add namespaces namespace: function namespace() { return this.attr({ xmlns: SVG.ns, version: '1.1' }).attr('xmlns:xlink', SVG.xlink, SVG.xmlns).attr('xmlns:svgjs', SVG.svgjs, SVG.xmlns); }, // Creates and returns defs element defs: function defs() { if (!this._defs) { var defs; // Find or create a defs element in this instance if (defs = this.node.getElementsByTagName('defs')[0]) { this._defs = SVG.adopt(defs); } else { this._defs = new SVG.Defs(); } // Make sure the defs node is at the end of the stack this.node.appendChild(this._defs.node); } return this._defs; }, // custom parent method parent: function parent() { if (!this.node.parentNode || this.node.parentNode.nodeName == '#document') return null; return this.node.parentNode; }, // Fix for possible sub-pixel offset. See: // https://bugzilla.mozilla.org/show_bug.cgi?id=608812 spof: function spof() { var pos = this.node.getScreenCTM(); if (pos) { this.style('left', -pos.e % 1 + 'px').style('top', -pos.f % 1 + 'px'); } return this; }, // Removes the doc from the DOM remove: function remove() { if (this.parent()) { this.parent().removeChild(this.node); } return this; }, clear: function clear() { // remove children while (this.node.hasChildNodes()) { this.node.removeChild(this.node.lastChild); } // remove defs reference delete this._defs; // add back parser if (SVG.parser.draw && !SVG.parser.draw.parentNode) { this.node.appendChild(SVG.parser.draw); } return this; }, clone: function clone(parent) { // write dom data to the dom so the clone can pickup the data this.writeDataToDom(); // get reference to node var node = this.node; // clone element and assign new id var clone = assignNewId(node.cloneNode(true)); // insert the clone in the given parent or after myself if (parent) { (parent.node || parent).appendChild(clone.node); } else { node.parentNode.insertBefore(clone.node, node.nextSibling); } return clone; } } }); // ### This module adds backward / forward functionality to elements. // SVG.extend(SVG.Element, { // Get all siblings, including myself siblings: function siblings() { return this.parent().children(); }, // Get the curent position siblings position: function position() { return this.parent().index(this); }, // Get the next element (will return null if there is none) next: function next() { return this.siblings()[this.position() + 1]; }, // Get the next element (will return null if there is none) previous: function previous() { return this.siblings()[this.position() - 1]; }, // Send given element one step forward forward: function forward() { var i = this.position() + 1, p = this.parent(); // move node one step forward p.removeElement(this).add(this, i); // make sure defs node is always at the top if (p instanceof SVG.Doc) { p.node.appendChild(p.defs().node); } return this; }, // Send given element one step backward backward: function backward() { var i = this.position(); if (i > 0) { this.parent().removeElement(this).add(this, i - 1); } return this; }, // Send given element all the way to the front front: function front() { var p = this.parent(); // Move node forward p.node.appendChild(this.node); // Make sure defs node is always at the top if (p instanceof SVG.Doc) { p.node.appendChild(p.defs().node); } return this; }, // Send given element all the way to the back back: function back() { if (this.position() > 0) { this.parent().removeElement(this).add(this, 0); } return this; }, // Inserts a given element before the targeted element before: function before(element) { element.remove(); var i = this.position(); this.parent().add(element, i); return this; }, // Insters a given element after the targeted element after: function after(element) { element.remove(); var i = this.position(); this.parent().add(element, i + 1); return this; } }); SVG.Mask = SVG.invent({ // Initialize node create: function create() { this.constructor.call(this, SVG.create('mask')); // keep references to masked elements this.targets = []; }, // Inherit from inherit: SVG.Container, // Add class methods extend: { // Unmask all masked elements and remove itself remove: function remove() { // unmask all targets for (var i = this.targets.length - 1; i >= 0; i--) { if (this.targets[i]) { this.targets[i].unmask(); } } this.targets = []; // remove mask from parent SVG.Element.prototype.remove.call(this); return this; } }, // Add parent method construct: { // Create masking element mask: function mask() { return this.defs().put(new SVG.Mask()); } } }); SVG.extend(SVG.Element, { // Distribute mask to svg element maskWith: function maskWith(element) { // use given mask or create a new one this.masker = element instanceof SVG.Mask ? element : this.parent().mask().add(element); // store reverence on self in mask this.masker.targets.push(this); // apply mask return this.attr('mask', 'url("#' + this.masker.attr('id') + '")'); }, // Unmask element unmask: function unmask() { delete this.masker; return this.attr('mask', null); } }); SVG.ClipPath = SVG.invent({ // Initialize node create: function create() { this.constructor.call(this, SVG.create('clipPath')); // keep references to clipped elements this.targets = []; }, // Inherit from inherit: SVG.Container, // Add class methods extend: { // Unclip all clipped elements and remove itself remove: function remove() { // unclip all targets for (var i = this.targets.length - 1; i >= 0; i--) { if (this.targets[i]) { this.targets[i].unclip(); } } this.targets = []; // remove clipPath from parent this.parent().removeElement(this); return this; } }, // Add parent method construct: { // Create clipping element clip: function clip() { return this.defs().put(new SVG.ClipPath()); } } }); // SVG.extend(SVG.Element, { // Distribute clipPath to svg element clipWith: function clipWith(element) { // use given clip or create a new one this.clipper = element instanceof SVG.ClipPath ? element : this.parent().clip().add(element); // store reverence on self in mask this.clipper.targets.push(this); // apply mask return this.attr('clip-path', 'url("#' + this.clipper.attr('id') + '")'); }, // Unclip element unclip: function unclip() { delete this.clipper; return this.attr('clip-path', null); } }); SVG.Gradient = SVG.invent({ // Initialize node create: function create(type) { this.constructor.call(this, SVG.create(type + 'Gradient')); // store type this.type = type; }, // Inherit from inherit: SVG.Container, // Add class methods extend: { // Add a color stop at: function at(offset, color, opacity) { return this.put(new SVG.Stop()).update(offset, color, opacity); }, // Update gradient update: function update(block) { // remove all stops this.clear(); // invoke passed block if (typeof block === 'function') { block.call(this, this); } return this; }, // Return the fill id fill: function fill() { return 'url(#' + this.id() + ')'; }, // Alias string convertion to fill toString: function toString() { return this.fill(); }, // custom attr to handle transform attr: function attr(a, b, c) { if (a == 'transform') a = 'gradientTransform'; return SVG.Container.prototype.attr.call(this, a, b, c); } }, // Add parent method construct: { // Create gradient element in defs gradient: function gradient(type, block) { return this.defs().gradient(type, block); } } }); // Add animatable methods to both gradient and fx module SVG.extend(SVG.Gradient, SVG.FX, { // From position from: function from(x, y) { return (this._target || this).type == 'radial' ? this.attr({ fx: new SVG.Number(x), fy: new SVG.Number(y) }) : this.attr({ x1: new SVG.Number(x), y1: new SVG.Number(y) }); }, // To position to: function to(x, y) { return (this._target || this).type == 'radial' ? this.attr({ cx: new SVG.Number(x), cy: new SVG.Number(y) }) : this.attr({ x2: new SVG.Number(x), y2: new SVG.Number(y) }); } }); // Base gradient generation SVG.extend(SVG.Defs, { // define gradient gradient: function gradient(type, block) { return this.put(new SVG.Gradient(type)).update(block); } }); SVG.Stop = SVG.invent({ // Initialize node create: 'stop', // Inherit from inherit: SVG.Element, // Add class methods extend: { // add color stops update: function update(o) { if (typeof o === 'number' || o instanceof SVG.Number) { o = { offset: arguments[0], color: arguments[1], opacity: arguments[2] }; } // set attributes if (o.opacity != null) this.attr('stop-opacity', o.opacity); if (o.color != null) this.attr('stop-color', o.color); if (o.offset != null) this.attr('offset', new SVG.Number(o.offset)); return this; } } }); SVG.Pattern = SVG.invent({ // Initialize node create: 'pattern', // Inherit from inherit: SVG.Container, // Add class methods extend: { // Return the fill id fill: function fill() { return 'url(#' + this.id() + ')'; }, // Update pattern by rebuilding update: function update(block) { // remove content this.clear(); // invoke passed block if (typeof block === 'function') { block.call(this, this); } return this; }, // Alias string convertion to fill toString: function toString() { return this.fill(); }, // custom attr to handle transform attr: function attr(a, b, c) { if (a == 'transform') a = 'patternTransform'; return SVG.Container.prototype.attr.call(this, a, b, c); } }, // Add parent method construct: { // Create pattern element in defs pattern: function pattern(width, height, block) { return this.defs().pattern(width, height, block); } } }); SVG.extend(SVG.Defs, { // Define gradient pattern: function pattern(width, height, block) { return this.put(new SVG.Pattern()).update(block).attr({ x: 0, y: 0, width: width, height: height, patternUnits: 'userSpaceOnUse' }); } }); SVG.Shape = SVG.invent({ // Initialize node create: function create(element) { this.constructor.call(this, element); }, // Inherit from inherit: SVG.Element }); SVG.Bare = SVG.invent({ // Initialize create: function create(element, inherit) { // construct element this.constructor.call(this, SVG.create(element)); // inherit custom methods if (inherit) { for (var method in inherit.prototype) { if (typeof inherit.prototype[method] === 'function') { this[method] = inherit.prototype[method]; } } } }, // Inherit from inherit: SVG.Element, // Add methods extend: { // Insert some plain text words: function words(text) { // remove contents while (this.node.hasChildNodes()) { this.node.removeChild(this.node.lastChild); } // create text node this.node.appendChild(document.createTextNode(text)); return this; } } }); SVG.extend(SVG.Parent, { // Create an element that is not described by SVG.js element: function element(_element, inherit) { return this.put(new SVG.Bare(_element, inherit)); } }); SVG.Symbol = SVG.invent({ // Initialize node create: 'symbol', // Inherit from inherit: SVG.Container, construct: { // create symbol symbol: function symbol() { return this.put(new SVG.Symbol()); } } }); SVG.Use = SVG.invent({ // Initialize node create: 'use', // Inherit from inherit: SVG.Shape, // Add class methods extend: { // Use element as a reference element: function element(_element2, file) { // Set lined element return this.attr('href', (file || '') + '#' + _element2, SVG.xlink); } }, // Add parent method construct: { // Create a use element use: function use(element, file) { return this.put(new SVG.Use()).element(element, file); } } }); SVG.Rect = SVG.invent({ // Initialize node create: 'rect', // Inherit from inherit: SVG.Shape, // Add parent method construct: { // Create a rect element rect: function rect(width, height) { return this.put(new SVG.Rect()).size(width, height); } } }); SVG.Circle = SVG.invent({ // Initialize node create: 'circle', // Inherit from inherit: SVG.Shape, // Add parent method construct: { // Create circle element, based on ellipse circle: function circle(size) { return this.put(new SVG.Circle()).rx(new SVG.Number(size).divide(2)).move(0, 0); } } }); SVG.extend(SVG.Circle, SVG.FX, { // Radius x value rx: function rx(_rx) { return this.attr('r', _rx); }, // Alias radius x value ry: function ry(_ry) { return this.rx(_ry); } }); SVG.Ellipse = SVG.invent({ // Initialize node create: 'ellipse', // Inherit from inherit: SVG.Shape, // Add parent method construct: { // Create an ellipse ellipse: function ellipse(width, height) { return this.put(new SVG.Ellipse()).size(width, height).move(0, 0); } } }); SVG.extend(SVG.Ellipse, SVG.Rect, SVG.FX, { // Radius x value rx: function rx(_rx2) { return this.attr('rx', _rx2); }, // Radius y value ry: function ry(_ry2) { return this.attr('ry', _ry2); } }); // Add common method SVG.extend(SVG.Circle, SVG.Ellipse, { // Move over x-axis x: function x(_x4) { return _x4 == null ? this.cx() - this.rx() : this.cx(_x4 + this.rx()); }, // Move over y-axis y: function y(_y4) { return _y4 == null ? this.cy() - this.ry() : this.cy(_y4 + this.ry()); }, // Move by center over x-axis cx: function cx(x) { return x == null ? this.attr('cx') : this.attr('cx', x); }, // Move by center over y-axis cy: function cy(y) { return y == null ? this.attr('cy') : this.attr('cy', y); }, // Set width of element width: function width(_width3) { return _width3 == null ? this.rx() * 2 : this.rx(new SVG.Number(_width3).divide(2)); }, // Set height of element height: function height(_height3) { return _height3 == null ? this.ry() * 2 : this.ry(new SVG.Number(_height3).divide(2)); }, // Custom size function size: function size(width, height) { var p = proportionalSize(this, width, height); return this.rx(new SVG.Number(p.width).divide(2)).ry(new SVG.Number(p.height).divide(2)); } }); SVG.Line = SVG.invent({ // Initialize node create: 'line', // Inherit from inherit: SVG.Shape, // Add class methods extend: { // Get array array: function array() { return new SVG.PointArray([[this.attr('x1'), this.attr('y1')], [this.attr('x2'), this.attr('y2')]]); }, // Overwrite native plot() method plot: function plot(x1, y1, x2, y2) { if (x1 == null) { return this.array(); } else if (typeof y1 !== 'undefined') { x1 = { x1: x1, y1: y1, x2: x2, y2: y2 }; } else { x1 = new SVG.PointArray(x1).toLine(); } return this.attr(x1); }, // Move by left top corner move: function move(x, y) { return this.attr(this.array().move(x, y).toLine()); }, // Set element size to given width and height size: function size(width, height) { var p = proportionalSize(this, width, height); return this.attr(this.array().size(p.width, p.height).toLine()); } }, // Add parent method construct: { // Create a line element line: function line(x1, y1, x2, y2) { // make sure plot is called as a setter // x1 is not necessarily a number, it can also be an array, a string and a SVG.PointArray return SVG.Line.prototype.plot.apply(this.put(new SVG.Line()), x1 != null ? [x1, y1, x2, y2] : [0, 0, 0, 0]); } } }); SVG.Polyline = SVG.invent({ // Initialize node create: 'polyline', // Inherit from inherit: SVG.Shape, // Add parent method construct: { // Create a wrapped polyline element polyline: function polyline(p) { // make sure plot is called as a setter return this.put(new SVG.Polyline()).plot(p || new SVG.PointArray()); } } }); SVG.Polygon = SVG.invent({ // Initialize node create: 'polygon', // Inherit from inherit: SVG.Shape, // Add parent method construct: { // Create a wrapped polygon element polygon: function polygon(p) { // make sure plot is called as a setter return this.put(new SVG.Polygon()).plot(p || new SVG.PointArray()); } } }); // Add polygon-specific functions SVG.extend(SVG.Polyline, SVG.Polygon, { // Get array array: function array() { return this._array || (this._array = new SVG.PointArray(this.attr('points'))); }, // Plot new path plot: function plot(p) { return p == null ? this.array() : this.clear().attr('points', typeof p === 'string' ? p : this._array = new SVG.PointArray(p)); }, // Clear array cache clear: function clear() { delete this._array; return this; }, // Move by left top corner move: function move(x, y) { return this.attr('points', this.array().move(x, y)); }, // Set element size to given width and height size: function size(width, height) { var p = proportionalSize(this, width, height); return this.attr('points', this.array().size(p.width, p.height)); } }); // unify all point to point elements SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, { // Define morphable array morphArray: SVG.PointArray, // Move by left top corner over x-axis x: function x(_x5) { return _x5 == null ? this.bbox().x : this.move(_x5, this.bbox().y); }, // Move by left top corner over y-axis y: function y(_y5) { return _y5 == null ? this.bbox().y : this.move(this.bbox().x, _y5); }, // Set width of element width: function width(_width4) { var b = this.bbox(); return _width4 == null ? b.width : this.size(_width4, b.height); }, // Set height of element height: function height(_height4) { var b = this.bbox(); return _height4 == null ? b.height : this.size(b.width, _height4); } }); SVG.Path = SVG.invent({ // Initialize node create: 'path', // Inherit from inherit: SVG.Shape, // Add class methods extend: { // Define morphable array morphArray: SVG.PathArray, // Get array array: function array() { return this._array || (this._array = new SVG.PathArray(this.attr('d'))); }, // Plot new path plot: function plot(d) { return d == null ? this.array() : this.clear().attr('d', typeof d === 'string' ? d : this._array = new SVG.PathArray(d)); }, // Clear array cache clear: function clear() { delete this._array; return this; }, // Move by left top corner move: function move(x, y) { return this.attr('d', this.array().move(x, y)); }, // Move by left top corner over x-axis x: function x(_x6) { return _x6 == null ? this.bbox().x : this.move(_x6, this.bbox().y); }, // Move by left top corner over y-axis y: function y(_y6) { return _y6 == null ? this.bbox().y : this.move(this.bbox().x, _y6); }, // Set element size to given width and height size: function size(width, height) { var p = proportionalSize(this, width, height); return this.attr('d', this.array().size(p.width, p.height)); }, // Set width of element width: function width(_width5) { return _width5 == null ? this.bbox().width : this.size(_width5, this.bbox().height); }, // Set height of element height: function height(_height5) { return _height5 == null ? this.bbox().height : this.size(this.bbox().width, _height5); } }, // Add parent method construct: { // Create a wrapped path element path: function path(d) { // make sure plot is called as a setter return this.put(new SVG.Path()).plot(d || new SVG.PathArray()); } } }); SVG.Image = SVG.invent({ // Initialize node create: 'image', // Inherit from inherit: SVG.Shape, // Add class methods extend: { // (re)load image load: function load(url) { if (!url) return this; var self = this, img = new window.Image(); // preload image SVG.on(img, 'load', function () { SVG.off(img); var p = self.parent(SVG.Pattern); if (p === null) return; // ensure image size if (self.width() == 0 && self.height() == 0) { self.size(img.width, img.height); } // ensure pattern size if not set if (p && p.width() == 0 && p.height() == 0) { p.size(self.width(), self.height()); } // callback if (typeof self._loaded === 'function') { self._loaded.call(self, { width: img.width, height: img.height, ratio: img.width / img.height, url: url }); } }); SVG.on(img, 'error', function (e) { SVG.off(img); if (typeof self._error === 'function') { self._error.call(self, e); } }); return this.attr('href', img.src = this.src = url, SVG.xlink); }, // Add loaded callback loaded: function loaded(_loaded) { this._loaded = _loaded; return this; }, error: function error(_error) { this._error = _error; return this; } }, // Add parent method construct: { // create image element, load image and set its size image: function image(source, width, height) { return this.put(new SVG.Image()).load(source).size(width || 0, height || width || 0); } } }); SVG.Text = SVG.invent({ // Initialize node create: function create() { this.constructor.call(this, SVG.create('text')); this.dom.leading = new SVG.Number(1.3); // store leading value for rebuilding this._rebuild = true; // enable automatic updating of dy values this._build = false; // disable build mode for adding multiple lines // set default font this.attr('font-family', SVG.defaults.attrs['font-family']); }, // Inherit from inherit: SVG.Shape, // Add class methods extend: { // Move over x-axis x: function x(_x7) { // act as getter if (_x7 == null) { return this.attr('x'); } return this.attr('x', _x7); }, // Move over y-axis y: function y(_y7) { var oy = this.attr('y'), o = typeof oy === 'number' ? oy - this.bbox().y : 0; // act as getter if (_y7 == null) { return typeof oy === 'number' ? oy - o : oy; } return this.attr('y', typeof _y7.valueOf() === 'number' ? _y7 + o : _y7); }, // Move center over x-axis cx: function cx(x) { return x == null ? this.bbox().cx : this.x(x - this.bbox().width / 2); }, // Move center over y-axis cy: function cy(y) { return y == null ? this.bbox().cy : this.y(y - this.bbox().height / 2); }, // Set the text content text: function text(_text) { // act as getter if (typeof _text === 'undefined') { var _text = ''; var children = this.node.childNodes; for (var i = 0, len = children.length; i < len; ++i) { // add newline if its not the first child and newLined is set to true if (i != 0 && children[i].nodeType != 3 && SVG.adopt(children[i]).dom.newLined == true) { _text += '\n'; } // add content of this node _text += children[i].textContent; } return _text; } // remove existing content this.clear().build(true); if (typeof _text === 'function') { // call block _text.call(this, this); } else { // store text and make sure text is not blank _text = _text.split('\n'); // build new lines for (var i = 0, il = _text.length; i < il; i++) { this.tspan(_text[i]).newLine(); } } // disable build mode and rebuild lines return this.build(false).rebuild(); }, // Set font size size: function size(_size) { return this.attr('font-size', _size).rebuild(); }, // Set / get leading leading: function leading(value) { // act as getter if (value == null) { return this.dom.leading; } // act as setter this.dom.leading = new SVG.Number(value); return this.rebuild(); }, // Get all the first level lines lines: function lines() { var node = (this.textPath && this.textPath() || this).node; // filter tspans and map them to SVG.js instances var lines = SVG.utils.map(SVG.utils.filterSVGElements(node.childNodes), function (el) { return SVG.adopt(el); }); // return an instance of SVG.set return new SVG.Set(lines); }, // Rebuild appearance type rebuild: function rebuild(_rebuild) { // store new rebuild flag if given if (typeof _rebuild === 'boolean') { this._rebuild = _rebuild; } // define position of all lines if (this._rebuild) { var self = this, blankLineOffset = 0, dy = this.dom.leading * new SVG.Number(this.attr('font-size')); this.lines().each(function () { if (this.dom.newLined) { if (!self.textPath()) { this.attr('x', self.attr('x')); } if (this.text() == '\n') { blankLineOffset += dy; } else { this.attr('dy', dy + blankLineOffset); blankLineOffset = 0; } } }); this.fire('rebuild'); } return this; }, // Enable / disable build mode build: function build(_build) { this._build = !!_build; return this; }, // overwrite method from parent to set data properly setData: function setData(o) { this.dom = o; this.dom.leading = new SVG.Number(o.leading || 1.3); return this; } }, // Add parent method construct: { // Create text element text: function text(_text2) { return this.put(new SVG.Text()).text(_text2); }, // Create plain text element plain: function plain(text) { return this.put(new SVG.Text()).plain(text); } } }); SVG.Tspan = SVG.invent({ // Initialize node create: 'tspan', // Inherit from inherit: SVG.Shape, // Add class methods extend: { // Set text content text: function text(_text3) { if (_text3 == null) return this.node.textContent + (this.dom.newLined ? '\n' : ''); typeof _text3 === 'function' ? _text3.call(this, this) : this.plain(_text3); return this; }, // Shortcut dx dx: function dx(_dx) { return this.attr('dx', _dx); }, // Shortcut dy dy: function dy(_dy) { return this.attr('dy', _dy); }, // Create new line newLine: function newLine() { // fetch text parent var t = this.parent(SVG.Text); // mark new line this.dom.newLined = true; // apply new hy¡n return this.dy(t.dom.leading * t.attr('font-size')).attr('x', t.x()); } } }); SVG.extend(SVG.Text, SVG.Tspan, { // Create plain text node plain: function plain(text) { // clear if build mode is disabled if (this._build === false) { this.clear(); } // create text node this.node.appendChild(document.createTextNode(text)); return this; }, // Create a tspan tspan: function tspan(text) { var node = (this.textPath && this.textPath() || this).node, tspan = new SVG.Tspan(); // clear if build mode is disabled if (this._build === false) { this.clear(); } // add new tspan node.appendChild(tspan.node); return tspan.text(text); }, // Clear all lines clear: function clear() { var node = (this.textPath && this.textPath() || this).node; // remove existing child nodes while (node.hasChildNodes()) { node.removeChild(node.lastChild); } return this; }, // Get length of text element length: function length() { return this.node.getComputedTextLength(); } }); SVG.TextPath = SVG.invent({ // Initialize node create: 'textPath', // Inherit from inherit: SVG.Parent, // Define parent class parent: SVG.Text, // Add parent method construct: { morphArray: SVG.PathArray, // Create path for text to run on path: function path(d) { // create textPath element var path = new SVG.TextPath(), track = this.doc().defs().path(d); // move lines to textpath while (this.node.hasChildNodes()) { path.node.appendChild(this.node.firstChild); } // add textPath element as child node this.node.appendChild(path.node); // link textPath to path and add content path.attr('href', '#' + track, SVG.xlink); return this; }, // return the array of the path track element array: function array() { var track = this.track(); return track ? track.array() : null; }, // Plot path if any plot: function plot(d) { var track = this.track(), pathArray = null; if (track) { pathArray = track.plot(d); } return d == null ? pathArray : this; }, // Get the path track element track: function track() { var path = this.textPath(); if (path) { return path.reference('href'); } }, // Get the textPath child textPath: function textPath() { if (this.node.firstChild && this.node.firstChild.nodeName == 'textPath') { return SVG.adopt(this.node.firstChild); } } } }); SVG.Nested = SVG.invent({ // Initialize node create: function create() { this.constructor.call(this, SVG.create('svg')); this.style('overflow', 'visible'); }, // Inherit from inherit: SVG.Container, // Add parent method construct: { // Create nested svg document nested: function nested() { return this.put(new SVG.Nested()); } } }); SVG.A = SVG.invent({ // Initialize node create: 'a', // Inherit from inherit: SVG.Container, // Add class methods extend: { // Link url to: function to(url) { return this.attr('href', url, SVG.xlink); }, // Link show attribute show: function show(target) { return this.attr('show', target, SVG.xlink); }, // Link target attribute target: function target(_target2) { return this.attr('target', _target2); } }, // Add parent method construct: { // Create a hyperlink element link: function link(url) { return this.put(new SVG.A()).to(url); } } }); SVG.extend(SVG.Element, { // Create a hyperlink element linkTo: function linkTo(url) { var link = new SVG.A(); if (typeof url === 'function') { url.call(link, link); } else { link.to(url); } return this.parent().put(link).put(this); } }); SVG.Marker = SVG.invent({ // Initialize node create: 'marker', // Inherit from inherit: SVG.Container, // Add class methods extend: { // Set width of element width: function width(_width6) { return this.attr('markerWidth', _width6); }, // Set height of element height: function height(_height6) { return this.attr('markerHeight', _height6); }, // Set marker refX and refY ref: function ref(x, y) { return this.attr('refX', x).attr('refY', y); }, // Update marker update: function update(block) { // remove all content this.clear(); // invoke passed block if (typeof block === 'function') { block.call(this, this); } return this; }, // Return the fill id toString: function toString() { return 'url(#' + this.id() + ')'; } }, // Add parent method construct: { marker: function marker(width, height, block) { // Create marker element in defs return this.defs().marker(width, height, block); } } }); SVG.extend(SVG.Defs, { // Create marker marker: function marker(width, height, block) { // Set default viewbox to match the width and height, set ref to cx and cy and set orient to auto return this.put(new SVG.Marker()).size(width, height).ref(width / 2, height / 2).viewbox(0, 0, width, height).attr('orient', 'auto').update(block); } }); SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, SVG.Path, { // Create and attach markers marker: function marker(_marker, width, height, block) { var attr = ['marker']; // Build attribute name if (_marker != 'all') attr.push(_marker); attr = attr.join('-'); // Set marker attribute _marker = arguments[1] instanceof SVG.Marker ? arguments[1] : this.doc().marker(width, height, block); return this.attr(attr, _marker); } }); // Define list of available attributes for stroke and fill var sugar = { stroke: ['color', 'width', 'opacity', 'linecap', 'linejoin', 'miterlimit', 'dasharray', 'dashoffset'], fill: ['color', 'opacity', 'rule'], prefix: function prefix(t, a) { return a == 'color' ? t : t + '-' + a; } // Add sugar for fill and stroke }; ['fill', 'stroke'].forEach(function (m) { var i, extension = {}; extension[m] = function (o) { if (typeof o === 'undefined') { return this; } if (typeof o === 'string' || SVG.Color.isRgb(o) || o && typeof o.fill === 'function') { this.attr(m, o); } else // set all attributes from sugar.fill and sugar.stroke list { for (i = sugar[m].length - 1; i >= 0; i--) { if (o[sugar[m][i]] != null) { this.attr(sugar.prefix(m, sugar[m][i]), o[sugar[m][i]]); } } } return this; }; SVG.extend(SVG.Element, SVG.FX, extension); }); SVG.extend(SVG.Element, SVG.FX, { // Map rotation to transform rotate: function rotate(d, cx, cy) { return this.transform({ rotation: d, cx: cx, cy: cy }); }, // Map skew to transform skew: function skew(x, y, cx, cy) { return arguments.length == 1 || arguments.length == 3 ? this.transform({ skew: x, cx: y, cy: cx }) : this.transform({ skewX: x, skewY: y, cx: cx, cy: cy }); }, // Map scale to transform scale: function scale(x, y, cx, cy) { return arguments.length == 1 || arguments.length == 3 ? this.transform({ scale: x, cx: y, cy: cx }) : this.transform({ scaleX: x, scaleY: y, cx: cx, cy: cy }); }, // Map translate to transform translate: function translate(x, y) { return this.transform({ x: x, y: y }); }, // Map flip to transform flip: function flip(a, o) { o = typeof a === 'number' ? a : o; return this.transform({ flip: a || 'both', offset: o }); }, // Map matrix to transform matrix: function matrix(m) { return this.attr('transform', new SVG.Matrix(arguments.length == 6 ? [].slice.call(arguments) : m)); }, // Opacity opacity: function opacity(value) { return this.attr('opacity', value); }, // Relative move over x axis dx: function dx(x) { return this.x(new SVG.Number(x).plus(this instanceof SVG.FX ? 0 : this.x()), true); }, // Relative move over y axis dy: function dy(y) { return this.y(new SVG.Number(y).plus(this instanceof SVG.FX ? 0 : this.y()), true); }, // Relative move over x and y axes dmove: function dmove(x, y) { return this.dx(x).dy(y); } }); SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.Gradient, SVG.FX, { // Add x and y radius radius: function radius(x, y) { var type = (this._target || this).type; return type == 'radial' || type == 'circle' ? this.attr('r', new SVG.Number(x)) : this.rx(x).ry(y == null ? x : y); } }); SVG.extend(SVG.Path, { // Get path length length: function length() { return this.node.getTotalLength(); }, // Get point at length pointAt: function pointAt(length) { return this.node.getPointAtLength(length); } }); SVG.extend(SVG.Parent, SVG.Text, SVG.Tspan, SVG.FX, { // Set font font: function font(a, v) { if (_typeof(a) === 'object') { for (v in a) { this.font(v, a[v]); } } return a == 'leading' ? this.leading(v) : a == 'anchor' ? this.attr('text-anchor', v) : a == 'size' || a == 'family' || a == 'weight' || a == 'stretch' || a == 'variant' || a == 'style' ? this.attr('font-' + a, v) : this.attr(a, v); } }); SVG.Set = SVG.invent({ // Initialize create: function create(members) { // Set initial state Array.isArray(members) ? this.members = members : this.clear(); }, // Add class methods extend: { // Add element to set add: function add() { var i, il, elements = [].slice.call(arguments); for (i = 0, il = elements.length; i < il; i++) { this.members.push(elements[i]); } return this; }, // Remove element from set remove: function remove(element) { var i = this.index(element); // remove given child if (i > -1) { this.members.splice(i, 1); } return this; }, // Iterate over all members each: function each(block) { for (var i = 0, il = this.members.length; i < il; i++) { block.apply(this.members[i], [i, this.members]); } return this; }, // Restore to defaults clear: function clear() { // initialize store this.members = []; return this; }, // Get the length of a set length: function length() { return this.members.length; }, // Checks if a given element is present in set has: function has(element) { return this.index(element) >= 0; }, // retuns index of given element in set index: function index(element) { return this.members.indexOf(element); }, // Get member at given index get: function get(i) { return this.members[i]; }, // Get first member first: function first() { return this.get(0); }, // Get last member last: function last() { return this.get(this.members.length - 1); }, // Default value valueOf: function valueOf() { return this.members; }, // Get the bounding box of all members included or empty box if set has no items bbox: function bbox() { // return an empty box of there are no members if (this.members.length == 0) { return new SVG.RBox(); } // get the first rbox and update the target bbox var rbox = this.members[0].rbox(this.members[0].doc()); this.each(function () { // user rbox for correct position and visual representation rbox = rbox.merge(this.rbox(this.doc())); }); return rbox; } }, // Add parent method construct: { // Create a new set set: function set(members) { return new SVG.Set(members); } } }); SVG.FX.Set = SVG.invent({ // Initialize node create: function create(set) { // store reference to set this.set = set; } }); // Alias methods SVG.Set.inherit = function () { var m, methods = []; // gather shape methods for (var m in SVG.Shape.prototype) { if (typeof SVG.Shape.prototype[m] === 'function' && typeof SVG.Set.prototype[m] !== 'function') { methods.push(m); } } // apply shape aliasses methods.forEach(function (method) { SVG.Set.prototype[method] = function () { for (var i = 0, il = this.members.length; i < il; i++) { if (this.members[i] && typeof this.members[i][method] === 'function') { this.members[i][method].apply(this.members[i], arguments); } } return method == 'animate' ? this.fx || (this.fx = new SVG.FX.Set(this)) : this; }; }); // clear methods for the next round methods = []; // gather fx methods for (var m in SVG.FX.prototype) { if (typeof SVG.FX.prototype[m] === 'function' && typeof SVG.FX.Set.prototype[m] !== 'function') { methods.push(m); } } // apply fx aliasses methods.forEach(function (method) { SVG.FX.Set.prototype[method] = function () { for (var i = 0, il = this.set.members.length; i < il; i++) { this.set.members[i].fx[method].apply(this.set.members[i].fx, arguments); } return this; }; }); }; SVG.extend(SVG.Element, { // Store data values on svg nodes data: function data(a, v, r) { if (_typeof(a) === 'object') { for (v in a) { this.data(v, a[v]); } } else if (arguments.length < 2) { try { return JSON.parse(this.attr('data-' + a)); } catch (e) { return this.attr('data-' + a); } } else { this.attr('data-' + a, v === null ? null : r === true || typeof v === 'string' || typeof v === 'number' ? v : JSON.stringify(v)); } return this; } }); SVG.extend(SVG.Element, { // Remember arbitrary data remember: function remember(k, v) { // remember every item in an object individually if (_typeof(arguments[0]) === 'object') { for (var v in k) { this.remember(v, k[v]); } } // retrieve memory else if (arguments.length == 1) { return this.memory()[k]; } // store memory else { this.memory()[k] = v; } return this; }, // Erase a given memory forget: function forget() { if (arguments.length == 0) { this._memory = {}; } else { for (var i = arguments.length - 1; i >= 0; i--) { delete this.memory()[arguments[i]]; } } return this; }, // Initialize or return local memory object memory: function memory() { return this._memory || (this._memory = {}); } }); // Method for getting an element by id SVG.get = function (id) { var node = document.getElementById(idFromReference(id) || id); return SVG.adopt(node); }; // Select elements by query string SVG.select = function (query, parent) { return new SVG.Set(SVG.utils.map((parent || document).querySelectorAll(query), function (node) { return SVG.adopt(node); })); }; SVG.extend(SVG.Parent, { // Scoped select method select: function select(query) { return SVG.select(query, this.node); } }); function pathRegReplace(a, b, c, d) { return c + d.replace(SVG.regex.dots, ' .'); } // creates deep clone of array function array_clone(arr) { var clone = arr.slice(0); for (var i = clone.length; i--;) { if (Array.isArray(clone[i])) { clone[i] = array_clone(clone[i]); } } return clone; } // tests if a given element is instance of an object function _is(el, obj) { return el instanceof obj; } // tests if a given selector matches an element function _matches(el, selector) { return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); } // Convert dash-separated-string to camelCase function camelCase(s) { return s.toLowerCase().replace(/-(.)/g, function (m, g) { return g.toUpperCase(); }); } // Capitalize first letter of a string function capitalize(s) { return s.charAt(0).toUpperCase() + s.slice(1); } // Ensure to six-based hex function fullHex(hex) { return hex.length == 4 ? ['#', hex.substring(1, 2), hex.substring(1, 2), hex.substring(2, 3), hex.substring(2, 3), hex.substring(3, 4), hex.substring(3, 4)].join('') : hex; } // Component to hex value function compToHex(comp) { var hex = comp.toString(16); return hex.length == 1 ? '0' + hex : hex; } // Calculate proportional width and height values when necessary function proportionalSize(element, width, height) { if (width == null || height == null) { var box = element.bbox(); if (width == null) { width = box.width / box.height * height; } else if (height == null) { height = box.height / box.width * width; } } return { width: width, height: height }; } // Delta transform point function deltaTransformPoint(matrix, x, y) { return { x: x * matrix.a + y * matrix.c + 0, y: x * matrix.b + y * matrix.d + 0 }; } // Map matrix array to object function arrayToMatrix(a) { return { a: a[0], b: a[1], c: a[2], d: a[3], e: a[4], f: a[5] }; } // Parse matrix if required function parseMatrix(matrix) { if (!(matrix instanceof SVG.Matrix)) { matrix = new SVG.Matrix(matrix); } return matrix; } // Add centre point to transform object function ensureCentre(o, target) { o.cx = o.cx == null ? target.bbox().cx : o.cx; o.cy = o.cy == null ? target.bbox().cy : o.cy; } // PathArray Helpers function arrayToString(a) { for (var i = 0, il = a.length, s = ''; i < il; i++) { s += a[i][0]; if (a[i][1] != null) { s += a[i][1]; if (a[i][2] != null) { s += ' '; s += a[i][2]; if (a[i][3] != null) { s += ' '; s += a[i][3]; s += ' '; s += a[i][4]; if (a[i][5] != null) { s += ' '; s += a[i][5]; s += ' '; s += a[i][6]; if (a[i][7] != null) { s += ' '; s += a[i][7]; } } } } } } return s + ' '; } // Deep new id assignment function assignNewId(node) { // do the same for SVG child nodes as well for (var i = node.childNodes.length - 1; i >= 0; i--) { if (node.childNodes[i] instanceof window.SVGElement) { assignNewId(node.childNodes[i]); } } return SVG.adopt(node).id(SVG.eid(node.nodeName)); } // Add more bounding box properties function fullBox(b) { if (b.x == null) { b.x = 0; b.y = 0; b.width = 0; b.height = 0; } b.w = b.width; b.h = b.height; b.x2 = b.x + b.width; b.y2 = b.y + b.height; b.cx = b.x + b.width / 2; b.cy = b.y + b.height / 2; return b; } // Get id from reference string function idFromReference(url) { var m = (url || '').toString().match(SVG.regex.reference); if (m) return m[1]; } // If values like 1e-88 are passed, this is not a valid 32 bit float, // but in those cases, we are so close to 0 that 0 works well! function float32String(v) { return Math.abs(v) > 1e-37 ? v : 0; } // Create matrix array for looping var abcdef = 'abcdef'.split(''); // Add CustomEvent to IE9 and IE10 if (typeof window.CustomEvent !== 'function') { // Code from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent var CustomEventPoly = function CustomEventPoly(event, options) { options = options || { bubbles: false, cancelable: false, detail: undefined }; var e = document.createEvent('CustomEvent'); e.initCustomEvent(event, options.bubbles, options.cancelable, options.detail); return e; }; CustomEventPoly.prototype = window.Event.prototype; SVG.CustomEvent = CustomEventPoly; } else { SVG.CustomEvent = window.CustomEvent; } // requestAnimationFrame / cancelAnimationFrame Polyfill with fallback based on Paul Irish (function (w) { var lastTime = 0; var vendors = ['moz', 'webkit']; for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { w.requestAnimationFrame = w[vendors[x] + 'RequestAnimationFrame']; w.cancelAnimationFrame = w[vendors[x] + 'CancelAnimationFrame'] || w[vendors[x] + 'CancelRequestAnimationFrame']; } w.requestAnimationFrame = w.requestAnimationFrame || function (callback) { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = w.setTimeout(function () { callback(currTime + timeToCall); }, timeToCall); lastTime = currTime + timeToCall; return id; }; w.cancelAnimationFrame = w.cancelAnimationFrame || w.clearTimeout; })(window); return SVG; }); /*! svg.filter.js - v2.0.2 - 2016-02-24 * https://github.com/wout/svg.filter.js * Copyright (c) 2016 Wout Fierens; Licensed MIT */ (function() { // Main filter class SVG.Filter = SVG.invent({ create: 'filter', inherit: SVG.Parent, extend: { // Static strings source: 'SourceGraphic', sourceAlpha: 'SourceAlpha', background: 'BackgroundImage', backgroundAlpha: 'BackgroundAlpha', fill: 'FillPaint', stroke: 'StrokePaint', autoSetIn: true, // Custom put method for leaner code put: function(element, i) { this.add(element, i); if(!element.attr('in') && this.autoSetIn){ element.attr('in',this.source); } if(!element.attr('result')){ element.attr('result',element); } return element }, // Blend effect blend: function(in1, in2, mode) { return this.put(new SVG.BlendEffect(in1, in2, mode)) }, // ColorMatrix effect colorMatrix: function(type, values) { return this.put(new SVG.ColorMatrixEffect(type, values)) }, // ConvolveMatrix effect convolveMatrix: function(matrix) { return this.put(new SVG.ConvolveMatrixEffect(matrix)) }, // ComponentTransfer effect componentTransfer: function(components) { return this.put(new SVG.ComponentTransferEffect(components)) }, // Composite effect composite: function(in1, in2, operator) { return this.put(new SVG.CompositeEffect(in1, in2, operator)) }, // Flood effect flood: function(color, opacity) { return this.put(new SVG.FloodEffect(color, opacity)) }, // Offset effect offset: function(x, y) { return this.put(new SVG.OffsetEffect(x,y)) }, // Image effect image: function(src) { return this.put(new SVG.ImageEffect(src)) }, // Merge effect merge: function() { //pass the array of arguments to the constructor because we dont know if the user gave us an array as the first arguemnt or wether they listed the effects in the arguments var args = [undefined]; for(var i in arguments) args.push(arguments[i]); return this.put(new (SVG.MergeEffect.bind.apply(SVG.MergeEffect,args))) }, // Gaussian Blur effect gaussianBlur: function(x,y) { return this.put(new SVG.GaussianBlurEffect(x,y)) }, // Morphology effect morphology: function(operator,radius){ return this.put(new SVG.MorphologyEffect(operator,radius)) }, // DiffuseLighting effect diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ return this.put(new SVG.DiffuseLightingEffect(surfaceScale,diffuseConstant,kernelUnitLength)) }, // DisplacementMap effect displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ return this.put(new SVG.DisplacementMapEffect(in1,in2,scale,xChannelSelector,yChannelSelector)) }, // SpecularLighting effect specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ return this.put(new SVG.SpecularLightingEffect(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength)) }, // Tile effect tile: function(){ return this.put(new SVG.TileEffect()); }, // Turbulence effect turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ return this.put(new SVG.TurbulenceEffect(baseFrequency,numOctaves,seed,stitchTiles,type)) }, // Default string value toString: function() { return 'url(#' + this.attr('id') + ')' } } }); //add .filter function SVG.extend(SVG.Defs, { // Define filter filter: function(block) { var filter = this.put(new SVG.Filter); /* invoke passed block */ if (typeof block === 'function') block.call(filter, filter); return filter } }); SVG.extend(SVG.Container, { // Define filter on defs filter: function(block) { return this.defs().filter(block) } }); SVG.extend(SVG.Element, SVG.G, SVG.Nested, { // Create filter element in defs and store reference filter: function(block) { this.filterer = block instanceof SVG.Element ? block : this.doc().filter(block); if(this.doc() && this.filterer.doc() !== this.doc()){ this.doc().defs().add(this.filterer); } this.attr('filter', this.filterer); return this.filterer }, // Remove filter unfilter: function(remove) { /* also remove the filter node */ if (this.filterer && remove === true) this.filterer.remove(); /* delete reference to filterer */ delete this.filterer; /* remove filter attribute */ return this.attr('filter', null) } }); // Create SVG.Effect class SVG.Effect = SVG.invent({ create: function(){ this.constructor.call(this); }, inherit: SVG.Element, extend: { // Set in attribute in: function(effect) { return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) }, // Named result result: function(result) { return result == null? this.attr('result') : this.attr('result',result) }, // Stringification toString: function() { return this.result() } } }); // create class for parent effects like merge // Inherit from SVG.Parent SVG.ParentEffect = SVG.invent({ create: function(){ this.constructor.call(this); }, inherit: SVG.Parent, extend: { // Set in attribute in: function(effect) { return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) }, // Named result result: function(result) { return result == null? this.attr('result') : this.attr('result',result) }, // Stringification toString: function() { return this.result() } } }); //chaining var chainingEffects = { // Blend effect blend: function(in2, mode) { return this.parent() && this.parent().blend(this, in2, mode) //pass this as the first input }, // ColorMatrix effect colorMatrix: function(type, values) { return this.parent() && this.parent().colorMatrix(type, values).in(this) }, // ConvolveMatrix effect convolveMatrix: function(matrix) { return this.parent() && this.parent().convolveMatrix(matrix).in(this) }, // ComponentTransfer effect componentTransfer: function(components) { return this.parent() && this.parent().componentTransfer(components).in(this) }, // Composite effect composite: function(in2, operator) { return this.parent() && this.parent().composite(this, in2, operator) //pass this as the first input }, // Flood effect flood: function(color, opacity) { return this.parent() && this.parent().flood(color, opacity) //this effect dont have inputs }, // Offset effect offset: function(x, y) { return this.parent() && this.parent().offset(x,y).in(this) }, // Image effect image: function(src) { return this.parent() && this.parent().image(src) //this effect dont have inputs }, // Merge effect merge: function() { return this.parent() && this.parent().merge.apply(this.parent(),[this].concat(arguments)) //pass this as the first argument }, // Gaussian Blur effect gaussianBlur: function(x,y) { return this.parent() && this.parent().gaussianBlur(x,y).in(this) }, // Morphology effect morphology: function(operator,radius){ return this.parent() && this.parent().morphology(operator,radius).in(this) }, // DiffuseLighting effect diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ return this.parent() && this.parent().diffuseLighting(surfaceScale,diffuseConstant,kernelUnitLength).in(this) }, // DisplacementMap effect displacementMap: function(in2,scale,xChannelSelector,yChannelSelector){ return this.parent() && this.parent().displacementMap(this,in2,scale,xChannelSelector,yChannelSelector) //pass this as the first input }, // SpecularLighting effect specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ return this.parent() && this.parent().specularLighting(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength).in(this) }, // Tile effect tile: function(){ return this.parent() && this.parent().tile().in(this) }, // Turbulence effect turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ return this.parent() && this.parent().turbulence(baseFrequency,numOctaves,seed,stitchTiles,type).in(this) } }; SVG.extend(SVG.Effect,chainingEffects); SVG.extend(SVG.ParentEffect,chainingEffects); //crea class for child effects, like MergeNode, FuncR and lights SVG.ChildEffect = SVG.invent({ create: function(){ this.constructor.call(this); }, inherit: SVG.Element, extend: { in: function(effect){ this.attr('in',effect); } //dont include any "result" functions because these types of nodes dont have them } }); // Create all different effects var effects = { blend: function(in1,in2,mode){ this.attr({ in: in1, in2: in2, mode: mode || 'normal' }); }, colorMatrix: function(type,values){ if (type == 'matrix') values = normaliseMatrix(values); this.attr({ type: type , values: typeof values == 'undefined' ? null : values }); }, convolveMatrix: function(matrix){ matrix = normaliseMatrix(matrix); this.attr({ order: Math.sqrt(matrix.split(' ').length) , kernelMatrix: matrix }); }, composite: function(in1, in2, operator){ this.attr({ in: in1, in2: in2, operator: operator }); }, flood: function(color,opacity){ this.attr('flood-color',color); if(opacity != null) this.attr('flood-opacity',opacity); }, offset: function(x,y){ this.attr({ dx: x, dy: y }); }, image: function(src){ this.attr('href', src, SVG.xlink); }, displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ this.attr({ in: in1, in2: in2, scale: scale, xChannelSelector: xChannelSelector, yChannelSelector: yChannelSelector }); }, gaussianBlur: function(x,y){ if(x != null || y != null) this.attr('stdDeviation', listString(Array.prototype.slice.call(arguments))); else this.attr('stdDeviation', '0 0'); }, morphology: function(operator,radius){ this.attr({ operator: operator, radius: radius }); }, tile: function(){ }, turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ this.attr({ numOctaves: numOctaves, seed: seed, stitchTiles: stitchTiles, baseFrequency: baseFrequency, type: type }); } }; // Create all parent effects var parentEffects = { merge: function(){ var children; //test to see if we have a set if(arguments[0] instanceof SVG.Set){ var that = this; arguments[0].each(function(i){ if(this instanceof SVG.MergeNode) that.put(this); else if(this instanceof SVG.Effect || this instanceof SVG.ParentEffect) that.put(new SVG.MergeNode(this)); }); } else{ //if the first argument is an array use it if(Array.isArray(arguments[0])) children = arguments[0]; else children = arguments; for(var i = 0; i < children.length; i++){ if(children[i] instanceof SVG.MergeNode){ this.put(children[i]); } else this.put(new SVG.MergeNode(children[i])); } } }, componentTransfer: function(compontents){ /* create rgb set */ this.rgb = new SVG.Set /* create components */ ;(['r', 'g', 'b', 'a']).forEach(function(c) { /* create component */ this[c] = new SVG['Func' + c.toUpperCase()]('identity'); /* store component in set */ this.rgb.add(this[c]); /* add component node */ this.node.appendChild(this[c].node); }.bind(this)); //lost context in foreach /* set components */ if (compontents) { if (compontents.rgb) { (['r', 'g', 'b']).forEach(function(c) { this[c].attr(compontents.rgb); }.bind(this)); delete compontents.rgb; } /* set individual components */ for (var c in compontents) this[c].attr(compontents[c]); } }, diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ this.attr({ surfaceScale: surfaceScale, diffuseConstant: diffuseConstant, kernelUnitLength: kernelUnitLength }); }, specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ this.attr({ surfaceScale: surfaceScale, diffuseConstant: diffuseConstant, specularExponent: specularExponent, kernelUnitLength: kernelUnitLength }); }, }; // Create child effects like PointLight and MergeNode var childEffects = { distantLight: function(azimuth, elevation){ this.attr({ azimuth: azimuth, elevation: elevation }); }, pointLight: function(x,y,z){ this.attr({ x: x, y: y, z: z }); }, spotLight: function(x,y,z,pointsAtX,pointsAtY,pointsAtZ){ this.attr({ x: x, y: y, z: z, pointsAtX: pointsAtX, pointsAtY: pointsAtY, pointsAtZ: pointsAtZ }); }, mergeNode: function(in1){ this.attr('in',in1); } } // Create compontent functions ;(['r', 'g', 'b', 'a']).forEach(function(c) { /* create class */ childEffects['Func' + c.toUpperCase()] = function(type) { this.attr('type',type); // take diffent arguments based on the type switch(type){ case 'table': this.attr('tableValues',arguments[1]); break case 'linear': this.attr('slope',arguments[1]); this.attr('intercept',arguments[2]); break case 'gamma': this.attr('amplitude',arguments[1]); this.attr('exponent',arguments[2]); this.attr('offset',arguments[2]); break } }; }); //create effects foreach(effects,function(effect,i){ /* capitalize name */ var name = i.charAt(0).toUpperCase() + i.slice(1); var proto = {}; /* create class */ SVG[name + 'Effect'] = SVG.invent({ create: function() { //call super this.constructor.call(this, SVG.create('fe' + name)); //call constructor for this effect effect.apply(this,arguments); //set the result this.result(this.attr('id') + 'Out'); }, inherit: SVG.Effect, extend: proto }); }); //create parent effects foreach(parentEffects,function(effect,i){ /* capitalize name */ var name = i.charAt(0).toUpperCase() + i.slice(1); var proto = {}; /* create class */ SVG[name + 'Effect'] = SVG.invent({ create: function() { //call super this.constructor.call(this, SVG.create('fe' + name)); //call constructor for this effect effect.apply(this,arguments); //set the result this.result(this.attr('id') + 'Out'); }, inherit: SVG.ParentEffect, extend: proto }); }); //create child effects foreach(childEffects,function(effect,i){ /* capitalize name */ var name = i.charAt(0).toUpperCase() + i.slice(1); var proto = {}; /* create class */ SVG[name] = SVG.invent({ create: function() { //call super this.constructor.call(this, SVG.create('fe' + name)); //call constructor for this effect effect.apply(this,arguments); }, inherit: SVG.ChildEffect, extend: proto }); }); // Effect-specific extensions SVG.extend(SVG.MergeEffect,{ in: function(effect){ if(effect instanceof SVG.MergeNode) this.add(effect,0); else this.add(new SVG.MergeNode(effect),0); return this } }); SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{ in2: function(effect){ return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in2')+'"]').get(0) || this.attr('in2') : this.attr('in2', effect) } }); // Presets SVG.filter = { sepiatone: [ .343, .669, .119, 0, 0 , .249, .626, .130, 0, 0 , .172, .334, .111, 0, 0 , .000, .000, .000, 1, 0 ] }; // Helpers function normaliseMatrix(matrix) { /* convert possible array value to string */ if (Array.isArray(matrix)) matrix = new SVG.Array(matrix); /* ensure there are no leading, tailing or double spaces */ return matrix.toString().replace(/^\s+/, '').replace(/\s+$/, '').replace(/\s+/g, ' ') } function listString(list) { if (!Array.isArray(list)) return list for (var i = 0, l = list.length, s = []; i < l; i++) s.push(list[i]); return s.join(' ') } function foreach(){ //loops through mutiple objects var fn = function(){}; if(typeof arguments[arguments.length-1] == 'function'){ fn = arguments[arguments.length-1]; Array.prototype.splice.call(arguments,arguments.length-1,1); } for(var k in arguments){ for(var i in arguments[k]){ fn(arguments[k][i],i,arguments[k]); } } } }).call(undefined); (function() { SVG.extend(SVG.PathArray, { morph: function(array) { var startArr = this.value , destArr = this.parse(array); var startOffsetM = 0 , destOffsetM = 0; var startOffsetNextM = false , destOffsetNextM = false; while(true){ // stop if there is no M anymore if(startOffsetM === false && destOffsetM === false) break // find the next M in path array startOffsetNextM = findNextM(startArr, startOffsetM === false ? false : startOffsetM+1); destOffsetNextM = findNextM( destArr, destOffsetM === false ? false : destOffsetM+1); // We have to add one M to the startArray if(startOffsetM === false){ var bbox = new SVG.PathArray(result.start).bbox(); // when the last block had no bounding box we simply take the first M we got if(bbox.height == 0 || bbox.width == 0){ startOffsetM = startArr.push(startArr[0]) - 1; }else{ // we take the middle of the bbox instead when we got one startOffsetM = startArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; } } // We have to add one M to the destArray if( destOffsetM === false){ var bbox = new SVG.PathArray(result.dest).bbox(); if(bbox.height == 0 || bbox.width == 0){ destOffsetM = destArr.push(destArr[0]) - 1; }else{ destOffsetM = destArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; } } // handle block from M to next M var result = handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM); // update the arrays to their new values startArr = startArr.slice(0, startOffsetM).concat(result.start, startOffsetNextM === false ? [] : startArr.slice(startOffsetNextM)); destArr = destArr.slice(0, destOffsetM).concat(result.dest , destOffsetNextM === false ? [] : destArr.slice( destOffsetNextM)); // update offsets startOffsetM = startOffsetNextM === false ? false : startOffsetM + result.start.length; destOffsetM = destOffsetNextM === false ? false : destOffsetM + result.dest.length; } // copy back arrays this.value = startArr; this.destination = new SVG.PathArray(); this.destination.value = destArr; return this } }); // sorry for the long declaration // slices out one block (from M to M) and syncronize it so the types and length match function handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM, undefined){ // slice out the block we need var startArrTemp = startArr.slice(startOffsetM, startOffsetNextM || undefined) , destArrTemp = destArr.slice( destOffsetM, destOffsetNextM || undefined); var i = 0 , posStart = {pos:[0,0], start:[0,0]} , posDest = {pos:[0,0], start:[0,0]}; do{ // convert shorthand types to long form startArrTemp[i] = simplyfy.call(posStart, startArrTemp[i]); destArrTemp[i] = simplyfy.call(posDest , destArrTemp[i]); // check if both shape types match // 2 elliptical arc curve commands ('A'), are considered different if the // flags (large-arc-flag, sweep-flag) don't match if(startArrTemp[i][0] != destArrTemp[i][0] || startArrTemp[i][0] == 'M' || (startArrTemp[i][0] == 'A' && (startArrTemp[i][4] != destArrTemp[i][4] || startArrTemp[i][5] != destArrTemp[i][5]) ) ) { // if not, convert shapes to beziere Array.prototype.splice.apply(startArrTemp, [i, 1].concat(toBeziere.call(posStart, startArrTemp[i]))); Array.prototype.splice.apply(destArrTemp, [i, 1].concat(toBeziere.call(posDest, destArrTemp[i]))); } else { // only update positions otherwise startArrTemp[i] = setPosAndReflection.call(posStart, startArrTemp[i]); destArrTemp[i] = setPosAndReflection.call(posDest , destArrTemp[i]); } // we are at the end at both arrays. stop here if(++i == startArrTemp.length && i == destArrTemp.length) break // destArray is longer. Add one element if(i == startArrTemp.length){ startArrTemp.push([ 'C', posStart.pos[0], posStart.pos[1], posStart.pos[0], posStart.pos[1], posStart.pos[0], posStart.pos[1], ]); } // startArr is longer. Add one element if(i == destArrTemp.length){ destArrTemp.push([ 'C', posDest.pos[0], posDest.pos[1], posDest.pos[0], posDest.pos[1], posDest.pos[0], posDest.pos[1] ]); } }while(true) // return the updated block return {start:startArrTemp, dest:destArrTemp} } // converts shorthand types to long form function simplyfy(val){ switch(val[0]){ case 'z': // shorthand line to start case 'Z': val[0] = 'L'; val[1] = this.start[0]; val[2] = this.start[1]; break case 'H': // shorthand horizontal line val[0] = 'L'; val[2] = this.pos[1]; break case 'V': // shorthand vertical line val[0] = 'L'; val[2] = val[1]; val[1] = this.pos[0]; break case 'T': // shorthand quadratic beziere val[0] = 'Q'; val[3] = val[1]; val[4] = val[2]; val[1] = this.reflection[1]; val[2] = this.reflection[0]; break case 'S': // shorthand cubic beziere val[0] = 'C'; val[6] = val[4]; val[5] = val[3]; val[4] = val[2]; val[3] = val[1]; val[2] = this.reflection[1]; val[1] = this.reflection[0]; break } return val } // updates reflection point and current position function setPosAndReflection(val){ var len = val.length; this.pos = [ val[len-2], val[len-1] ]; if('SCQT'.indexOf(val[0]) != -1) this.reflection = [ 2 * this.pos[0] - val[len-4], 2 * this.pos[1] - val[len-3] ]; return val } // converts all types to cubic beziere function toBeziere(val){ var retVal = [val]; switch(val[0]){ case 'M': // special handling for M this.pos = this.start = [val[1], val[2]]; return retVal case 'L': val[5] = val[3] = val[1]; val[6] = val[4] = val[2]; val[1] = this.pos[0]; val[2] = this.pos[1]; break case 'Q': val[6] = val[4]; val[5] = val[3]; val[4] = val[4] * 1/3 + val[2] * 2/3; val[3] = val[3] * 1/3 + val[1] * 2/3; val[2] = this.pos[1] * 1/3 + val[2] * 2/3; val[1] = this.pos[0] * 1/3 + val[1] * 2/3; break case 'A': retVal = arcToBeziere(this.pos, val); val = retVal[0]; break } val[0] = 'C'; this.pos = [val[5], val[6]]; this.reflection = [2 * val[5] - val[3], 2 * val[6] - val[4]]; return retVal } // finds the next position of type M function findNextM(arr, offset){ if(offset === false) return false for(var i = offset, len = arr.length;i < len;++i){ if(arr[i][0] == 'M') return i } return false } // Convert an arc segment into equivalent cubic Bezier curves // Depending on the arc, up to 4 curves might be used to represent it since a // curve gives a good approximation for only a quarter of an ellipse // The curves are returned as an array of SVG curve commands: // [ ['C', x1, y1, x2, y2, x, y] ... ] function arcToBeziere(pos, val) { // Parameters extraction, handle out-of-range parameters as specified in the SVG spec // See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360 , largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7] , A = new SVG.Point(pos), B = new SVG.Point(x, y) , primedCoord, lambda, mat, k, c, cSquare, t, O, OA, OB, tetaStart, tetaEnd , deltaTeta, nbSectors, f, arcSegPoints, angle, sinAngle, cosAngle, pt, i, il , retVal = [], x1, y1, x2, y2; // Ensure radii are non-zero if(rx === 0 || ry === 0 || (A.x === B.x && A.y === B.y)) { // treat this arc as a straight line segment return [['C', A.x, A.y, B.x, B.y, B.x, B.y]] } // Ensure radii are large enough using the algorithm provided in the SVG spec // See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii primedCoord = new SVG.Point((A.x-B.x)/2, (A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation)); lambda = (primedCoord.x * primedCoord.x) / (rx * rx) + (primedCoord.y * primedCoord.y) / (ry * ry); if(lambda > 1) { lambda = Math.sqrt(lambda); rx = lambda*rx; ry = lambda*ry; } // To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse mat = new SVG.Matrix().rotate(xAxisRotation).scale(1/rx, 1/ry).rotate(-xAxisRotation); A = A.transform(mat); B = B.transform(mat); // Calculate the horizontal and vertical distance between the initial and final point of the arc k = [B.x-A.x, B.y-A.y]; // Find the length of the chord formed by A and B cSquare = k[0]*k[0] + k[1]*k[1]; c = Math.sqrt(cSquare); // Calculate the ratios of the horizontal and vertical distance on the length of the chord k[0] /= c; k[1] /= c; // Calculate the distance between the circle center and the chord midpoint // using this formula: t = sqrt(r^2 - c^2 / 4) // where t is the distance between the cirle center and the chord midpoint, // r is the rayon of the circle and c is the chord length // From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php // Because of the imprecision of floating point numbers, cSquare might end // up being slightly above 4 which would result in a negative radicand // To prevent that, a test is made before computing the square root t = (cSquare < 4) ? Math.sqrt(1 - cSquare/4) : 0; // For most situations, there are actually two different ellipses that // satisfy the constraints imposed by the points A and B, the radii rx and ry, // and the xAxisRotation // When the flags largeArcFlag and sweepFlag are equal, it means that the // second ellipse is used as a solution // See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands if(largeArcFlag === sweepFlag) { t *= -1; } // Calculate the coordinates of the center of the circle from the midpoint of the chord // This is done by multiplying the ratios calculated previously by the distance between // the circle center and the chord midpoint and using these values to go from the midpoint // to the center of the circle // The negative of the vertical distance ratio is used to modify the x coordinate while // the horizontal distance ratio is used to modify the y coordinate // That is because the center of the circle is perpendicular to the chord and perpendicular // lines are negative reciprocals O = new SVG.Point((B.x+A.x)/2 + t*-k[1], (B.y+A.y)/2 + t*k[0]); // Move the center of the circle at the origin OA = new SVG.Point(A.x-O.x, A.y-O.y); OB = new SVG.Point(B.x-O.x, B.y-O.y); // Calculate the start and end angle tetaStart = Math.acos(OA.x/Math.sqrt(OA.x*OA.x + OA.y*OA.y)); if (OA.y < 0) { tetaStart *= -1; } tetaEnd = Math.acos(OB.x/Math.sqrt(OB.x*OB.x + OB.y*OB.y)); if (OB.y < 0) { tetaEnd *= -1; } // If sweep-flag is '1', then the arc will be drawn in a "positive-angle" direction, // make sure that the end angle is above the start angle if (sweepFlag && tetaStart > tetaEnd) { tetaEnd += 2*Math.PI; } // If sweep-flag is '0', then the arc will be drawn in a "negative-angle" direction, // make sure that the end angle is below the start angle if (!sweepFlag && tetaStart < tetaEnd) { tetaEnd -= 2*Math.PI; } // Find the number of Bezier curves that are required to represent the arc // A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle nbSectors = Math.ceil(Math.abs(tetaStart-tetaEnd) * 2/Math.PI); // Calculate the coordinates of the points of all the Bezier curves required to represent the arc // For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic arcSegPoints = []; angle = tetaStart; deltaTeta = (tetaEnd-tetaStart)/nbSectors; f = 4*Math.tan(deltaTeta/4)/3; for (i = 0; i <= nbSectors; i++) { // The <= is because a Bezier curve have a start and a endpoint cosAngle = Math.cos(angle); sinAngle = Math.sin(angle); pt = new SVG.Point(O.x+cosAngle, O.y+sinAngle); arcSegPoints[i] = [new SVG.Point(pt.x+f*sinAngle, pt.y-f*cosAngle), pt, new SVG.Point(pt.x-f*sinAngle, pt.y+f*cosAngle)]; angle += deltaTeta; } // Remove the first control point of the first segment point and remove the second control point of the last segment point // These two control points are not used in the approximation of the arc, that is why they are removed arcSegPoints[0][0] = arcSegPoints[0][1].clone(); arcSegPoints[arcSegPoints.length-1][2] = arcSegPoints[arcSegPoints.length-1][1].clone(); // Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse mat = new SVG.Matrix().rotate(xAxisRotation).scale(rx, ry).rotate(-xAxisRotation); for (i = 0, il = arcSegPoints.length; i < il; i++) { arcSegPoints[i][0] = arcSegPoints[i][0].transform(mat); arcSegPoints[i][1] = arcSegPoints[i][1].transform(mat); arcSegPoints[i][2] = arcSegPoints[i][2].transform(mat); } // Convert the segments points to SVG curve commands for (i = 1, il = arcSegPoints.length; i < il; i++) { pt = arcSegPoints[i-1][2]; x1 = pt.x; y1 = pt.y; pt = arcSegPoints[i][0]; x2 = pt.x; y2 = pt.y; pt = arcSegPoints[i][1]; x = pt.x; y = pt.y; retVal.push(['C', x1, y1, x2, y2, x, y]); } return retVal } }()); /*! svg.draggable.js - v2.2.2 - 2019-01-08 * https://github.com/svgdotjs/svg.draggable.js * Copyright (c) 2019 Wout Fierens; Licensed MIT */ (function() { // creates handler, saves it function DragHandler(el){ el.remember('_draggable', this); this.el = el; } // Sets new parameter, starts dragging DragHandler.prototype.init = function(constraint, val){ var _this = this; this.constraint = constraint; this.value = val; this.el.on('mousedown.drag', function(e){ _this.start(e); }); this.el.on('touchstart.drag', function(e){ _this.start(e); }); }; // transforms one point from screen to user coords DragHandler.prototype.transformPoint = function(event, offset){ event = event || window.event; var touches = event.changedTouches && event.changedTouches[0] || event; this.p.x = touches.clientX - (offset || 0); this.p.y = touches.clientY; return this.p.matrixTransform(this.m) }; // gets elements bounding box with special handling of groups, nested and use DragHandler.prototype.getBBox = function(){ var box = this.el.bbox(); if(this.el instanceof SVG.Nested) box = this.el.rbox(); if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { box.x = this.el.x(); box.y = this.el.y(); } return box }; // start dragging DragHandler.prototype.start = function(e){ // check for left button if(e.type == 'click'|| e.type == 'mousedown' || e.type == 'mousemove'){ if((e.which || e.buttons) != 1){ return } } var _this = this; // fire beforedrag event this.el.fire('beforedrag', { event: e, handler: this }); if(this.el.event().defaultPrevented) return; // prevent browser drag behavior as soon as possible e.preventDefault(); // prevent propagation to a parent that might also have dragging enabled e.stopPropagation(); // search for parent on the fly to make sure we can call // draggable() even when element is not in the dom currently this.parent = this.parent || this.el.parent(SVG.Nested) || this.el.parent(SVG.Doc); this.p = this.parent.node.createSVGPoint(); // save current transformation matrix this.m = this.el.node.getScreenCTM().inverse(); var box = this.getBBox(); var anchorOffset; // fix text-anchor in text-element (#37) if(this.el instanceof SVG.Text){ anchorOffset = this.el.node.getComputedTextLength(); switch(this.el.attr('text-anchor')){ case 'middle': anchorOffset /= 2; break case 'start': anchorOffset = 0; break; } } this.startPoints = { // We take absolute coordinates since we are just using a delta here point: this.transformPoint(e, anchorOffset), box: box, transform: this.el.transform() }; // add drag and end events to window SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); SVG.on(window, 'touchmove.drag', function(e){ _this.drag(e); }); SVG.on(window, 'mouseup.drag', function(e){ _this.end(e); }); SVG.on(window, 'touchend.drag', function(e){ _this.end(e); }); // fire dragstart event this.el.fire('dragstart', {event: e, p: this.startPoints.point, m: this.m, handler: this}); }; // while dragging DragHandler.prototype.drag = function(e){ var box = this.getBBox() , p = this.transformPoint(e) , x = this.startPoints.box.x + p.x - this.startPoints.point.x , y = this.startPoints.box.y + p.y - this.startPoints.point.y , c = this.constraint , gx = p.x - this.startPoints.point.x , gy = p.y - this.startPoints.point.y; this.el.fire('dragmove', { event: e , p: p , m: this.m , handler: this }); if(this.el.event().defaultPrevented) return p // move the element to its new position, if possible by constraint if (typeof c == 'function') { var coord = c.call(this.el, x, y, this.m); // bool, just show us if movement is allowed or not if (typeof coord == 'boolean') { coord = { x: coord, y: coord }; } // if true, we just move. If !false its a number and we move it there if (coord.x === true) { this.el.x(x); } else if (coord.x !== false) { this.el.x(coord.x); } if (coord.y === true) { this.el.y(y); } else if (coord.y !== false) { this.el.y(coord.y); } } else if (typeof c == 'object') { // keep element within constrained box if (c.minX != null && x < c.minX) { x = c.minX; gx = x - this.startPoints.box.x; } else if (c.maxX != null && x > c.maxX - box.width) { x = c.maxX - box.width; gx = x - this.startPoints.box.x; } if (c.minY != null && y < c.minY) { y = c.minY; gy = y - this.startPoints.box.y; } else if (c.maxY != null && y > c.maxY - box.height) { y = c.maxY - box.height; gy = y - this.startPoints.box.y; } if (c.snapToGrid != null) { x = x - (x % c.snapToGrid); y = y - (y % c.snapToGrid); gx = gx - (gx % c.snapToGrid); gy = gy - (gy % c.snapToGrid); } if(this.el instanceof SVG.G) this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); else this.el.move(x, y); } // so we can use it in the end-method, too return p }; DragHandler.prototype.end = function(e){ // final drag var p = this.drag(e); // fire dragend event this.el.fire('dragend', { event: e, p: p, m: this.m, handler: this }); // unbind events SVG.off(window, 'mousemove.drag'); SVG.off(window, 'touchmove.drag'); SVG.off(window, 'mouseup.drag'); SVG.off(window, 'touchend.drag'); }; SVG.extend(SVG.Element, { // Make element draggable // Constraint might be an object (as described in readme.md) or a function in the form "function (x, y)" that gets called before every move. // The function can return a boolean or an object of the form {x, y}, to which the element will be moved. "False" skips moving, true moves to raw x, y. draggable: function(value, constraint) { // Check the parameters and reassign if needed if (typeof value == 'function' || typeof value == 'object') { constraint = value; value = true; } var dragHandler = this.remember('_draggable') || new DragHandler(this); // When no parameter is given, value is true value = typeof value === 'undefined' ? true : value; if(value) dragHandler.init(constraint || {}, value); else { this.off('mousedown.drag'); this.off('touchstart.drag'); } return this } }); }).call(undefined); (function() { function SelectHandler(el) { this.el = el; el.remember('_selectHandler', this); this.pointSelection = {isSelected: false}; this.rectSelection = {isSelected: false}; } SelectHandler.prototype.init = function (value, options) { var bbox = this.el.bbox(); this.options = {}; // Merging the defaults and the options-object together for (var i in this.el.selectize.defaults) { this.options[i] = this.el.selectize.defaults[i]; if (options[i] !== undefined) { this.options[i] = options[i]; } } this.parent = this.el.parent(); this.nested = (this.nested || this.parent.group()); this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); // When deepSelect is enabled and the element is a line/polyline/polygon, draw only points for moving if (this.options.deepSelect && ['line', 'polyline', 'polygon'].indexOf(this.el.type) !== -1) { this.selectPoints(value); } else { this.selectRect(value); } this.observe(); this.cleanup(); }; SelectHandler.prototype.selectPoints = function (value) { this.pointSelection.isSelected = value; // When set is already there we dont have to create one if (this.pointSelection.set) { return this; } // Create our set of elements this.pointSelection.set = this.parent.set(); // draw the circles and mark the element as selected this.drawCircles(); return this; }; // create the point-array which contains the 2 points of a line or simply the points-array of polyline/polygon SelectHandler.prototype.getPointArray = function () { var bbox = this.el.bbox(); return this.el.array().valueOf().map(function (el) { return [el[0] - bbox.x, el[1] - bbox.y]; }); }; // The function to draw the circles SelectHandler.prototype.drawCircles = function () { var _this = this, array = this.getPointArray(); // go through the array of points for (var i = 0, len = array.length; i < len; ++i) { var curriedEvent = (function (k) { return function (ev) { ev = ev || window.event; ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; ev.stopPropagation(); var x = ev.pageX || ev.touches[0].pageX; var y = ev.pageY || ev.touches[0].pageY; _this.el.fire('point', {x: x, y: y, i: k, event: ev}); }; })(i); // add every point to the set this.pointSelection.set.add( // a circle with our css-classes and a touchstart-event which fires our event for moving points this.nested.circle(this.options.radius) .center(array[i][0], array[i][1]) .addClass(this.options.classPoints) .addClass(this.options.classPoints + '_point') .on('touchstart', curriedEvent) .on('mousedown', curriedEvent) ); } }; // every time a circle is moved, we have to update the positions of our circle SelectHandler.prototype.updatePointSelection = function () { var array = this.getPointArray(); this.pointSelection.set.each(function (i) { if (this.cx() === array[i][0] && this.cy() === array[i][1]) { return; } this.center(array[i][0], array[i][1]); }); }; SelectHandler.prototype.updateRectSelection = function () { var bbox = this.el.bbox(); this.rectSelection.set.get(0).attr({ width: bbox.width, height: bbox.height }); // set.get(1) is always in the upper left corner. no need to move it if (this.options.points) { this.rectSelection.set.get(2).center(bbox.width, 0); this.rectSelection.set.get(3).center(bbox.width, bbox.height); this.rectSelection.set.get(4).center(0, bbox.height); this.rectSelection.set.get(5).center(bbox.width / 2, 0); this.rectSelection.set.get(6).center(bbox.width, bbox.height / 2); this.rectSelection.set.get(7).center(bbox.width / 2, bbox.height); this.rectSelection.set.get(8).center(0, bbox.height / 2); } if (this.options.rotationPoint) { if (this.options.points) { this.rectSelection.set.get(9).center(bbox.width / 2, 20); } else { this.rectSelection.set.get(1).center(bbox.width / 2, 20); } } }; SelectHandler.prototype.selectRect = function (value) { var _this = this, bbox = this.el.bbox(); this.rectSelection.isSelected = value; // when set is already p this.rectSelection.set = this.rectSelection.set || this.parent.set(); // helperFunction to create a mouse-down function which triggers the event specified in `eventName` function getMoseDownFunc(eventName) { return function (ev) { ev = ev || window.event; ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; ev.stopPropagation(); var x = ev.pageX || ev.touches[0].pageX; var y = ev.pageY || ev.touches[0].pageY; _this.el.fire(eventName, {x: x, y: y, event: ev}); }; } // create the selection-rectangle and add the css-class if (!this.rectSelection.set.get(0)) { this.rectSelection.set.add(this.nested.rect(bbox.width, bbox.height).addClass(this.options.classRect)); } // Draw Points at the edges, if enabled if (this.options.points && !this.rectSelection.set.get(1)) { var ename ="touchstart", mname = "mousedown"; this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, 0).attr('class', this.options.classPoints + '_lt').on(mname, getMoseDownFunc('lt')).on(ename, getMoseDownFunc('lt'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, 0).attr('class', this.options.classPoints + '_rt').on(mname, getMoseDownFunc('rt')).on(ename, getMoseDownFunc('rt'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height).attr('class', this.options.classPoints + '_rb').on(mname, getMoseDownFunc('rb')).on(ename, getMoseDownFunc('rb'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height).attr('class', this.options.classPoints + '_lb').on(mname, getMoseDownFunc('lb')).on(ename, getMoseDownFunc('lb'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 0).attr('class', this.options.classPoints + '_t').on(mname, getMoseDownFunc('t')).on(ename, getMoseDownFunc('t'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height / 2).attr('class', this.options.classPoints + '_r').on(mname, getMoseDownFunc('r')).on(ename, getMoseDownFunc('r'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, bbox.height).attr('class', this.options.classPoints + '_b').on(mname, getMoseDownFunc('b')).on(ename, getMoseDownFunc('b'))); this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height / 2).attr('class', this.options.classPoints + '_l').on(mname, getMoseDownFunc('l')).on(ename, getMoseDownFunc('l'))); this.rectSelection.set.each(function () { this.addClass(_this.options.classPoints); }); } // draw rotationPint, if enabled if (this.options.rotationPoint && ((this.options.points && !this.rectSelection.set.get(9)) || (!this.options.points && !this.rectSelection.set.get(1)))) { var curriedEvent = function (ev) { ev = ev || window.event; ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; ev.stopPropagation(); var x = ev.pageX || ev.touches[0].pageX; var y = ev.pageY || ev.touches[0].pageY; _this.el.fire('rot', {x: x, y: y, event: ev}); }; this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 20).attr('class', this.options.classPoints + '_rot') .on("touchstart", curriedEvent).on("mousedown", curriedEvent)); } }; SelectHandler.prototype.handler = function () { var bbox = this.el.bbox(); this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); if (this.rectSelection.isSelected) { this.updateRectSelection(); } if (this.pointSelection.isSelected) { this.updatePointSelection(); } }; SelectHandler.prototype.observe = function () { var _this = this; if (MutationObserver) { if (this.rectSelection.isSelected || this.pointSelection.isSelected) { this.observerInst = this.observerInst || new MutationObserver(function () { _this.handler(); }); this.observerInst.observe(this.el.node, {attributes: true}); } else { try { this.observerInst.disconnect(); delete this.observerInst; } catch (e) { } } } else { this.el.off('DOMAttrModified.select'); if (this.rectSelection.isSelected || this.pointSelection.isSelected) { this.el.on('DOMAttrModified.select', function () { _this.handler(); }); } } }; SelectHandler.prototype.cleanup = function () { //var _this = this; if (!this.rectSelection.isSelected && this.rectSelection.set) { // stop watching the element, remove the selection this.rectSelection.set.each(function () { this.remove(); }); this.rectSelection.set.clear(); delete this.rectSelection.set; } if (!this.pointSelection.isSelected && this.pointSelection.set) { // Remove all points, clear the set, stop watching the element this.pointSelection.set.each(function () { this.remove(); }); this.pointSelection.set.clear(); delete this.pointSelection.set; } if (!this.pointSelection.isSelected && !this.rectSelection.isSelected) { this.nested.remove(); delete this.nested; } }; SVG.extend(SVG.Element, { // Select element with mouse selectize: function (value, options) { // Check the parameters and reassign if needed if (typeof value === 'object') { options = value; value = true; } var selectHandler = this.remember('_selectHandler') || new SelectHandler(this); selectHandler.init(value === undefined ? true : value, options || {}); return this; } }); SVG.Element.prototype.selectize.defaults = { points: true, // If true, points at the edges are drawn. Needed for resize! classRect: 'svg_select_boundingRect', // Css-class added to the rect classPoints: 'svg_select_points', // Css-class added to the points radius: 7, // radius of the points rotationPoint: true, // If true, rotation point is drawn. Needed for rotation! deepSelect: false // If true, moving of single points is possible (only line, polyline, polyon) }; }()); (function() { (function () { function ResizeHandler(el) { el.remember('_resizeHandler', this); this.el = el; this.parameters = {}; this.lastUpdateCall = null; this.p = el.doc().node.createSVGPoint(); } ResizeHandler.prototype.transformPoint = function(x, y, m){ this.p.x = x - (this.offset.x - window.pageXOffset); this.p.y = y - (this.offset.y - window.pageYOffset); return this.p.matrixTransform(m || this.m); }; ResizeHandler.prototype._extractPosition = function(event) { // Extract a position from a mouse/touch event. // Returns { x: .., y: .. } return { x: event.clientX != null ? event.clientX : event.touches[0].clientX, y: event.clientY != null ? event.clientY : event.touches[0].clientY } }; ResizeHandler.prototype.init = function (options) { var _this = this; this.stop(); if (options === 'stop') { return; } this.options = {}; // Merge options and defaults for (var i in this.el.resize.defaults) { this.options[i] = this.el.resize.defaults[i]; if (typeof options[i] !== 'undefined') { this.options[i] = options[i]; } } // We listen to all these events which are specifying different edges this.el.on('lt.resize', function(e){ _this.resize(e || window.event); }); // Left-Top this.el.on('rt.resize', function(e){ _this.resize(e || window.event); }); // Right-Top this.el.on('rb.resize', function(e){ _this.resize(e || window.event); }); // Right-Bottom this.el.on('lb.resize', function(e){ _this.resize(e || window.event); }); // Left-Bottom this.el.on('t.resize', function(e){ _this.resize(e || window.event); }); // Top this.el.on('r.resize', function(e){ _this.resize(e || window.event); }); // Right this.el.on('b.resize', function(e){ _this.resize(e || window.event); }); // Bottom this.el.on('l.resize', function(e){ _this.resize(e || window.event); }); // Left this.el.on('rot.resize', function(e){ _this.resize(e || window.event); }); // Rotation this.el.on('point.resize', function(e){ _this.resize(e || window.event); }); // Point-Moving // This call ensures, that the plugin reacts to a change of snapToGrid immediately this.update(); }; ResizeHandler.prototype.stop = function(){ this.el.off('lt.resize'); this.el.off('rt.resize'); this.el.off('rb.resize'); this.el.off('lb.resize'); this.el.off('t.resize'); this.el.off('r.resize'); this.el.off('b.resize'); this.el.off('l.resize'); this.el.off('rot.resize'); this.el.off('point.resize'); return this; }; ResizeHandler.prototype.resize = function (event) { var _this = this; this.m = this.el.node.getScreenCTM().inverse(); this.offset = { x: window.pageXOffset, y: window.pageYOffset }; var txPt = this._extractPosition(event.detail.event); this.parameters = { type: this.el.type, // the type of element p: this.transformPoint(txPt.x, txPt.y), x: event.detail.x, // x-position of the mouse when resizing started y: event.detail.y, // y-position of the mouse when resizing started box: this.el.bbox(), // The bounding-box of the element rotation: this.el.transform().rotation // The current rotation of the element }; // Add font-size parameter if the element type is text if (this.el.type === "text") { this.parameters.fontSize = this.el.attr()["font-size"]; } // the i-param in the event holds the index of the point which is moved, when using `deepSelect` if (event.detail.i !== undefined) { // get the point array var array = this.el.array().valueOf(); // Save the index and the point which is moved this.parameters.i = event.detail.i; this.parameters.pointCoords = [array[event.detail.i][0], array[event.detail.i][1]]; } // Lets check which edge of the bounding-box was clicked and resize the this.el according to this switch (event.type) { // Left-Top-Edge case 'lt': // We build a calculating function for every case which gives us the new position of the this.el this.calc = function (diffX, diffY) { // The procedure is always the same // First we snap the edge to the given grid (snapping to 1px grid is normal resizing) var snap = this.snapToGrid(diffX, diffY); // Now we check if the new height and width still valid (> 0) if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { // ...if valid, we resize the this.el (which can include moving because the coord-system starts at the left-top and this edge is moving sometimes when resized) /* * but first check if the element is text box, so we can change the font size instead of * the width and height */ if (this.parameters.type === "text") { this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); this.el.attr("font-size", this.parameters.fontSize - snap[0]); return; } snap = this.checkAspectRatio(snap); this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y + snap[1]).size(this.parameters.box.width - snap[0], this.parameters.box.height - snap[1]); } }; break; // Right-Top case 'rt': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 1 << 1); if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { if (this.parameters.type === "text") { this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); this.el.attr("font-size", this.parameters.fontSize + snap[0]); return; } snap = this.checkAspectRatio(snap, true); this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).size(this.parameters.box.width + snap[0], this.parameters.box.height - snap[1]); } }; break; // Right-Bottom case 'rb': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 0); if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { if (this.parameters.type === "text") { this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); this.el.attr("font-size", this.parameters.fontSize + snap[0]); return; } snap = this.checkAspectRatio(snap); this.el.move(this.parameters.box.x, this.parameters.box.y).size(this.parameters.box.width + snap[0], this.parameters.box.height + snap[1]); } }; break; // Left-Bottom case 'lb': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 1); if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { if (this.parameters.type === "text") { this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); this.el.attr("font-size", this.parameters.fontSize - snap[0]); return; } snap = this.checkAspectRatio(snap, true); this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).size(this.parameters.box.width - snap[0], this.parameters.box.height + snap[1]); } }; break; // Top case 't': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 1 << 1); if (this.parameters.box.height - snap[1] > 0) { // Disable the font-resizing if it is not from the corner of bounding-box if (this.parameters.type === "text") { return; } this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).height(this.parameters.box.height - snap[1]); } }; break; // Right case 'r': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 0); if (this.parameters.box.width + snap[0] > 0) { if (this.parameters.type === "text") { return; } this.el.move(this.parameters.box.x, this.parameters.box.y).width(this.parameters.box.width + snap[0]); } }; break; // Bottom case 'b': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 0); if (this.parameters.box.height + snap[1] > 0) { if (this.parameters.type === "text") { return; } this.el.move(this.parameters.box.x, this.parameters.box.y).height(this.parameters.box.height + snap[1]); } }; break; // Left case 'l': // s.a. this.calc = function (diffX, diffY) { var snap = this.snapToGrid(diffX, diffY, 1); if (this.parameters.box.width - snap[0] > 0) { if (this.parameters.type === "text") { return; } this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).width(this.parameters.box.width - snap[0]); } }; break; // Rotation case 'rot': // s.a. this.calc = function (diffX, diffY) { // yes this is kinda stupid but we need the mouse coords back... var current = {x: diffX + this.parameters.p.x, y: diffY + this.parameters.p.y}; // start minus middle var sAngle = Math.atan2((this.parameters.p.y - this.parameters.box.y - this.parameters.box.height / 2), (this.parameters.p.x - this.parameters.box.x - this.parameters.box.width / 2)); // end minus middle var pAngle = Math.atan2((current.y - this.parameters.box.y - this.parameters.box.height / 2), (current.x - this.parameters.box.x - this.parameters.box.width / 2)); var angle = this.parameters.rotation + (pAngle - sAngle) * 180 / Math.PI + this.options.snapToAngle / 2; // We have to move the element to the center of the box first and change the rotation afterwards // because rotation always works around a rotation-center, which is changed when moving the element // We also set the new rotation center to the center of the box. this.el.center(this.parameters.box.cx, this.parameters.box.cy).rotate(angle - (angle % this.options.snapToAngle), this.parameters.box.cx, this.parameters.box.cy); }; break; // Moving one single Point (needed when an element is deepSelected which means you can move every single point of the object) case 'point': this.calc = function (diffX, diffY) { // Snapping the point to the grid var snap = this.snapToGrid(diffX, diffY, this.parameters.pointCoords[0], this.parameters.pointCoords[1]); // Get the point array var array = this.el.array().valueOf(); // Changing the moved point in the array array[this.parameters.i][0] = this.parameters.pointCoords[0] + snap[0]; array[this.parameters.i][1] = this.parameters.pointCoords[1] + snap[1]; // And plot the new this.el this.el.plot(array); }; } this.el.fire('resizestart', {dx: this.parameters.x, dy: this.parameters.y, event: event}); // When resizing started, we have to register events for... // Touches. SVG.on(window, 'touchmove.resize', function(e) { _this.update(e || window.event); }); SVG.on(window, 'touchend.resize', function() { _this.done(); }); // Mouse. SVG.on(window, 'mousemove.resize', function (e) { _this.update(e || window.event); }); SVG.on(window, 'mouseup.resize', function () { _this.done(); }); }; // The update-function redraws the element every time the mouse is moving ResizeHandler.prototype.update = function (event) { if (!event) { if (this.lastUpdateCall) { this.calc(this.lastUpdateCall[0], this.lastUpdateCall[1]); } return; } // Calculate the difference between the mouseposition at start and now var txPt = this._extractPosition(event); var p = this.transformPoint(txPt.x, txPt.y); var diffX = p.x - this.parameters.p.x, diffY = p.y - this.parameters.p.y; this.lastUpdateCall = [diffX, diffY]; // Calculate the new position and height / width of the element this.calc(diffX, diffY); // Emit an event to say we have changed. this.el.fire('resizing', {dx: diffX, dy: diffY, event: event}); }; // Is called on mouseup. // Removes the update-function from the mousemove event ResizeHandler.prototype.done = function () { this.lastUpdateCall = null; SVG.off(window, 'mousemove.resize'); SVG.off(window, 'mouseup.resize'); SVG.off(window, 'touchmove.resize'); SVG.off(window, 'touchend.resize'); this.el.fire('resizedone'); }; // The flag is used to determine whether the resizing is used with a left-Point (first bit) and top-point (second bit) // In this cases the temp-values are calculated differently ResizeHandler.prototype.snapToGrid = function (diffX, diffY, flag, pointCoordsY) { var temp; // If `pointCoordsY` is given, a single Point has to be snapped (deepSelect). That's why we need a different temp-value if (typeof pointCoordsY !== 'undefined') { // Note that flag = pointCoordsX in this case temp = [(flag + diffX) % this.options.snapToGrid, (pointCoordsY + diffY) % this.options.snapToGrid]; } else { // We check if the flag is set and if not we set a default-value (both bits set - which means upper-left-edge) flag = flag == null ? 1 | 1 << 1 : flag; temp = [(this.parameters.box.x + diffX + (flag & 1 ? 0 : this.parameters.box.width)) % this.options.snapToGrid, (this.parameters.box.y + diffY + (flag & (1 << 1) ? 0 : this.parameters.box.height)) % this.options.snapToGrid]; } if(diffX < 0) { temp[0] -= this.options.snapToGrid; } if(diffY < 0) { temp[1] -= this.options.snapToGrid; } diffX -= (Math.abs(temp[0]) < this.options.snapToGrid / 2 ? temp[0] : temp[0] - (diffX < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); diffY -= (Math.abs(temp[1]) < this.options.snapToGrid / 2 ? temp[1] : temp[1] - (diffY < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); return this.constraintToBox(diffX, diffY, flag, pointCoordsY); }; // keep element within constrained box ResizeHandler.prototype.constraintToBox = function (diffX, diffY, flag, pointCoordsY) { //return [diffX, diffY] var c = this.options.constraint || {}; var orgX, orgY; if (typeof pointCoordsY !== 'undefined') { orgX = flag; orgY = pointCoordsY; } else { orgX = this.parameters.box.x + (flag & 1 ? 0 : this.parameters.box.width); orgY = this.parameters.box.y + (flag & (1<<1) ? 0 : this.parameters.box.height); } if (typeof c.minX !== 'undefined' && orgX + diffX < c.minX) { diffX = c.minX - orgX; } if (typeof c.maxX !== 'undefined' && orgX + diffX > c.maxX) { diffX = c.maxX - orgX; } if (typeof c.minY !== 'undefined' && orgY + diffY < c.minY) { diffY = c.minY - orgY; } if (typeof c.maxY !== 'undefined' && orgY + diffY > c.maxY) { diffY = c.maxY - orgY; } return [diffX, diffY]; }; ResizeHandler.prototype.checkAspectRatio = function (snap, isReverse) { if (!this.options.saveAspectRatio) { return snap; } var updatedSnap = snap.slice(); var aspectRatio = this.parameters.box.width / this.parameters.box.height; var newW = this.parameters.box.width + snap[0]; var newH = this.parameters.box.height - snap[1]; var newAspectRatio = newW / newH; if (newAspectRatio < aspectRatio) { // Height is too big. Adapt it updatedSnap[1] = newW / aspectRatio - this.parameters.box.height; isReverse && (updatedSnap[1] = -updatedSnap[1]); } else if (newAspectRatio > aspectRatio) { // Width is too big. Adapt it updatedSnap[0] = this.parameters.box.width - newH * aspectRatio; isReverse && (updatedSnap[0] = -updatedSnap[0]); } return updatedSnap; }; SVG.extend(SVG.Element, { // Resize element with mouse resize: function (options) { (this.remember('_resizeHandler') || new ResizeHandler(this)).init(options || {}); return this; } }); SVG.Element.prototype.resize.defaults = { snapToAngle: 0.1, // Specifies the speed the rotation is happening when moving the mouse snapToGrid: 1, // Snaps to a grid of `snapToGrid` Pixels constraint: {}, // keep element within constrained box saveAspectRatio: false // Save aspect ratio when resizing using lt, rt, rb or lb points }; }).call(this); }()); function styleInject(css, ref) { if ( ref === void 0 ) ref = {}; var insertAt = ref.insertAt; if (!css || typeof document === 'undefined') { return; } var head = document.head || document.getElementsByTagName('head')[0]; var style = document.createElement('style'); style.type = 'text/css'; if (insertAt === 'top') { if (head.firstChild) { head.insertBefore(style, head.firstChild); } else { head.appendChild(style); } } else { head.appendChild(style); } if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } } var css = ".apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n.apexcharts-canvas.dark {\n background: #343F57;\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value, \n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: bold;\n display: block;\n margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n\tleft: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-xaxistooltip-bottom.dark:before {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color:#ECEFF1\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n.apexcharts-xaxistooltip-top.dark:after {\n border-top-color:rgba(0, 0, 0, 0.5);\n}\n.apexcharts-xaxistooltip-top.dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n\ttop: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n.apexcharts-yaxistooltip-left.dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-yaxistooltip-left.dark:before {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n.apexcharts-yaxistooltip-right.dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n.apexcharts-yaxistooltip-right.dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon, \n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon, \n.apexcharts-pan-icon, \n.apexcharts-selection-icon,\n.apexcharts-menu-icon, \n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n\n.apexcharts-zoom-icon svg, \n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.dark .apexcharts-zoom-icon svg, \n.dark .apexcharts-zoom-in-icon svg,\n.dark .apexcharts-zoom-out-icon svg,\n.dark .apexcharts-reset-zoom-icon svg, \n.dark .apexcharts-pan-icon svg, \n.dark .apexcharts-selection-icon svg,\n.dark .apexcharts-menu-icon svg, \n.dark .apexcharts-toolbar-custom-icon svg{\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.selected svg, \n.apexcharts-canvas .apexcharts-selection-icon.selected svg, \n.apexcharts-canvas .apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.light .apexcharts-selection-icon:not(.selected):hover svg,\n.light .apexcharts-zoom-icon:not(.selected):hover svg, \n.light .apexcharts-zoom-in-icon:hover svg, \n.light .apexcharts-zoom-out-icon:hover svg, \n.light .apexcharts-reset-zoom-icon:hover svg, \n.light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center; \n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.light .apexcharts-menu-item:hover {\n background: #eee;\n}\n.dark .apexcharts-menu {\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n } \n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}"; styleInject(css); /* * classList.js: Cross-browser full element.classList implementation. * 1.2.20171210 * * By Eli Grey, http://eligrey.com * License: Dedicated to the public domain. * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md */ /*global self, document, DOMException */ /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ if ("document" in self) { // Full polyfill for browsers with no classList support // Including IE < Edge missing SVGElement.classList if (!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) { (function (view) { if (!('Element' in view)) return; var classListProp = "classList", protoProp = "prototype", elemCtrProto = view.Element[protoProp], objCtr = Object, strTrim = String[protoProp].trim || function () { return this.replace(/^\s+|\s+$/g, ""); }, arrIndexOf = Array[protoProp].indexOf || function (item) { var i = 0, len = this.length; for (; i < len; i++) { if (i in this && this[i] === item) { return i; } } return -1; } // Vendors: please allow content code to instantiate DOMExceptions , DOMEx = function DOMEx(type, message) { this.name = type; this.code = DOMException[type]; this.message = message; }, checkTokenAndGetIndex = function checkTokenAndGetIndex(classList, token) { if (token === "") { throw new DOMEx("SYNTAX_ERR", "The token must not be empty."); } if (/\s/.test(token)) { throw new DOMEx("INVALID_CHARACTER_ERR", "The token must not contain space characters."); } return arrIndexOf.call(classList, token); }, ClassList = function ClassList(elem) { var trimmedClasses = strTrim.call(elem.getAttribute("class") || ""), classes = trimmedClasses ? trimmedClasses.split(/\s+/) : [], i = 0, len = classes.length; for (; i < len; i++) { this.push(classes[i]); } this._updateClassName = function () { elem.setAttribute("class", this.toString()); }; }, classListProto = ClassList[protoProp] = [], classListGetter = function classListGetter() { return new ClassList(this); }; // Most DOMException implementations don't allow calling DOMException's toString() // on non-DOMExceptions. Error's toString() is sufficient here. DOMEx[protoProp] = Error[protoProp]; classListProto.item = function (i) { return this[i] || null; }; classListProto.contains = function (token) { return ~checkTokenAndGetIndex(this, token + ""); }; classListProto.add = function () { var tokens = arguments, i = 0, l = tokens.length, token, updated = false; do { token = tokens[i] + ""; if (!~checkTokenAndGetIndex(this, token)) { this.push(token); updated = true; } } while (++i < l); if (updated) { this._updateClassName(); } }; classListProto.remove = function () { var tokens = arguments, i = 0, l = tokens.length, token, updated = false, index; do { token = tokens[i] + ""; index = checkTokenAndGetIndex(this, token); while (~index) { this.splice(index, 1); updated = true; index = checkTokenAndGetIndex(this, token); } } while (++i < l); if (updated) { this._updateClassName(); } }; classListProto.toggle = function (token, force) { var result = this.contains(token), method = result ? force !== true && "remove" : force !== false && "add"; if (method) { this[method](token); } if (force === true || force === false) { return force; } else { return !result; } }; classListProto.replace = function (token, replacement_token) { var index = checkTokenAndGetIndex(token + ""); if (~index) { this.splice(index, 1, replacement_token); this._updateClassName(); } }; classListProto.toString = function () { return this.join(" "); }; if (objCtr.defineProperty) { var classListPropDesc = { get: classListGetter, enumerable: true, configurable: true }; try { objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); } catch (ex) { // IE 8 doesn't support enumerable:true // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected if (ex.number === undefined || ex.number === -0x7FF5EC54) { classListPropDesc.enumerable = false; objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); } } } else if (objCtr[protoProp].__defineGetter__) { elemCtrProto.__defineGetter__(classListProp, classListGetter); } })(self); } // There is full or partial native classList support, so just check if we need // to normalize the add/remove and toggle APIs. (function () { var testElement = document.createElement("_"); testElement.classList.add("c1", "c2"); // Polyfill for IE 10/11 and Firefox <26, where classList.add and // classList.remove exist but support only one argument at a time. if (!testElement.classList.contains("c2")) { var createMethod = function createMethod(method) { var original = DOMTokenList.prototype[method]; DOMTokenList.prototype[method] = function (token) { var i, len = arguments.length; for (i = 0; i < len; i++) { token = arguments[i]; original.call(this, token); } }; }; createMethod('add'); createMethod('remove'); } testElement.classList.toggle("c3", false); // Polyfill for IE 10 and Firefox <24, where classList.toggle does not // support the second argument. if (testElement.classList.contains("c3")) { var _toggle = DOMTokenList.prototype.toggle; DOMTokenList.prototype.toggle = function (token, force) { if (1 in arguments && !this.contains(token) === !force) { return force; } else { return _toggle.call(this, token); } }; } // replace() polyfill if (!("replace" in document.createElement("_").classList)) { DOMTokenList.prototype.replace = function (token, replacement_token) { var tokens = this.toString().split(" "), index = tokens.indexOf(token + ""); if (~index) { tokens = tokens.slice(index); this.remove.apply(this, tokens); this.add(replacement_token); this.add.apply(this, tokens.slice(1)); } }; } testElement = null; })(); } /** * Detect Element Resize * * https://github.com/sdecima/javascript-detect-element-resize * Sebastian Decima * * version: 0.5.3 **/ (function () { var stylesCreated = false; function resetTriggers(element) { var triggers = element.__resizeTriggers__, expand = triggers.firstElementChild, contract = triggers.lastElementChild, expandChild = expand.firstElementChild; contract.scrollLeft = contract.scrollWidth; contract.scrollTop = contract.scrollHeight; expandChild.style.width = expand.offsetWidth + 1 + 'px'; expandChild.style.height = expand.offsetHeight + 1 + 'px'; expand.scrollLeft = expand.scrollWidth; expand.scrollTop = expand.scrollHeight; } function checkTriggers(element) { return element.offsetWidth != element.__resizeLast__.width || element.offsetHeight != element.__resizeLast__.height; } function scrollListener(e) { var element = this; resetTriggers(this); if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__); this.__resizeRAF__ = requestFrame(function () { if (checkTriggers(element)) { element.__resizeLast__.width = element.offsetWidth; element.__resizeLast__.height = element.offsetHeight; element.__resizeListeners__.forEach(function (fn) { fn.call(e); }); } }); } function createStyles() { if (!stylesCreated) { // opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 var css = (animationKeyframes || '') + '.resize-triggers { ' + (animationStyle || '') + 'visibility: hidden; opacity: 0; } ' + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); stylesCreated = true; } } var requestFrame = function () { var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) { return window.setTimeout(fn, 20); }; return function (fn) { return raf(fn); }; }(); var cancelFrame = function () { var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; return function (id) { return cancel(id); }; }(); /* Detect CSS Animations support to detect element display/re-attach */ var animation = false, keyframeprefix = '', animationstartevent = 'animationstart', domPrefixes = 'Webkit Moz O ms'.split(' '), startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), pfx = ''; { var elm = document.createElement('fakeelement'); if (elm.style.animationName !== undefined) { animation = true; } if (animation === false) { for (var i = 0; i < domPrefixes.length; i++) { if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) { pfx = domPrefixes[i]; keyframeprefix = '-' + pfx.toLowerCase() + '-'; animationstartevent = startEvents[i]; break; } } } } var animationName = 'resizeanim'; var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; window.addResizeListener = function (element, fn) { if (!element.__resizeTriggers__) { if (getComputedStyle(element).position == 'static') element.style.position = 'relative'; createStyles(); element.__resizeLast__ = {}; element.__resizeListeners__ = []; (element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; element.__resizeTriggers__.innerHTML = '
    ' + '
    '; element.appendChild(element.__resizeTriggers__); resetTriggers(element); element.addEventListener('scroll', scrollListener, true); /* Listen for a css animation to detect element display/re-attach */ animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) { if (e.animationName == animationName) { resetTriggers(element); } }); } element.__resizeListeners__.push(fn); }; window.removeResizeListener = function (element, fn) { if (element) { element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); if (!element.__resizeListeners__.length) { element.removeEventListener('scroll', scrollListener); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); } } }; })(); window.Apex = {}; /** * * @module ApexCharts **/ var ApexCharts$1 = /*#__PURE__*/ function () { function ApexCharts(el, opts) { _classCallCheck(this, ApexCharts); this.opts = opts; this.ctx = this; // Pass the user supplied options to the Base Class where these options will be extended with defaults. The returned object from Base Class will become the config object in the entire codebase. this.w = new Base(opts).init(); this.el = el; this.w.globals.cuid = (Math.random() + 1).toString(36).substring(4); this.w.globals.chartID = this.w.config.chart.id ? this.w.config.chart.id : this.w.globals.cuid; this.eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; this.initModules(); this.create = Utils.bind(this.create, this); this.documentEvent = Utils.bind(this.documentEvent, this); this.windowResizeHandler = this.windowResize.bind(this); } /** * The primary method user will call to render the chart. */ _createClass(ApexCharts, [{ key: "render", value: function render() { var _this = this; // main method return new Promise$1(function (resolve, reject) { // only draw chart, if element found if (_this.el !== null) { if (typeof Apex._chartInstances === 'undefined') { Apex._chartInstances = []; } if (_this.w.config.chart.id) { Apex._chartInstances.push({ id: _this.w.globals.chartID, group: _this.w.config.chart.group, chart: _this }); } // set the locale here _this.setLocale(_this.w.config.chart.defaultLocale); var beforeMount = _this.w.config.chart.events.beforeMount; if (typeof beforeMount === 'function') { beforeMount(_this, _this.w); } _this.fireEvent('beforeMount', [_this, _this.w]); window.addEventListener('resize', _this.windowResizeHandler); window.addResizeListener(_this.el.parentNode, _this.parentResizeCallback.bind(_this)); var graphData = _this.create(_this.w.config.series, {}); if (!graphData) return resolve(_this); _this.mount(graphData).then(function () { resolve(graphData); if (typeof _this.w.config.chart.events.mounted === 'function') { _this.w.config.chart.events.mounted(_this, _this.w); } _this.fireEvent('mounted', [_this, _this.w]); }).catch(function (e) { reject(e); // handle error in case no data or element not found }); } else { reject(new Error('Element not found')); } }); } }, { key: "initModules", value: function initModules() { this.animations = new Animations(this); this.core = new Core(this.el, this); this.grid = new Grid(this); this.coreUtils = new CoreUtils(this); this.config = new Config({}); this.crosshairs = new Crosshairs(this); this.options = new Options(); this.responsive = new Responsive(this); this.series = new Series(this); this.theme = new Theme(this); this.formatters = new Formatters(this); this.titleSubtitle = new TitleSubtitle(this); this.legend = new Legend(this); this.toolbar = new Toolbar(this); this.dimensions = new Dimensions(this); this.zoomPanSelection = new ZoomPanSelection(this); this.w.globals.tooltip = new Tooltip(this); } }, { key: "addEventListener", value: function addEventListener(name$$1, handler) { var w = this.w; if (w.globals.events.hasOwnProperty(name$$1)) { w.globals.events[name$$1].push(handler); } else { w.globals.events[name$$1] = [handler]; } } }, { key: "removeEventListener", value: function removeEventListener(name$$1, handler) { var w = this.w; if (!w.globals.events.hasOwnProperty(name$$1)) { return; } var index = w.globals.events[name$$1].indexOf(handler); if (index !== -1) { w.globals.events[name$$1].splice(index, 1); } } }, { key: "fireEvent", value: function fireEvent(name$$1, args) { var w = this.w; if (!w.globals.events.hasOwnProperty(name$$1)) { return; } if (!args || !args.length) { args = []; } var evs = w.globals.events[name$$1]; var l = evs.length; for (var i = 0; i < l; i++) { evs[i].apply(null, args); } } }, { key: "create", value: function create(ser, opts) { var w = this.w; this.initModules(); var gl = this.w.globals; gl.noData = false; gl.animationEnded = false; this.responsive.checkResponsiveConfig(opts); if (this.el === null) { gl.animationEnded = true; return null; } this.core.setupElements(); if (gl.svgWidth === 0) { // if the element is hidden, skip drawing gl.animationEnded = true; return null; } var combo = CoreUtils.checkComboSeries(ser); gl.comboCharts = combo.comboCharts; gl.comboChartsHasBars = combo.comboChartsHasBars; if (ser.length === 0 || ser.length === 1 && ser[0].data && ser[0].data.length === 0) { this.series.handleNoData(); } this.setupEventHandlers(); // Handle the data inputted by user and set some of the global variables (for eg, if data is datetime / numeric / category). Don't calculate the range / min / max at this time this.core.parseData(ser); // this is a good time to set theme colors first this.theme.init(); // as markers accepts array, we need to setup global markers for easier access var markers = new Markers(this); markers.setGlobalMarkerSize(); // labelFormatters should be called before dimensions as in dimensions we need text labels width this.formatters.setLabelFormatters(); this.titleSubtitle.draw(); // legend is calculated here before coreCalculations because it affects the plottable area if (!w.globals.noData) { this.legend.init(); } // check whether in multiple series, all series share the same X this.series.hasAllSeriesEqualX(); // coreCalculations will give the min/max range and yaxis/axis values. It should be called here to set series variable from config to globals if (gl.axisCharts) { this.core.coreCalculations(); if (w.config.xaxis.type !== 'category') { // as we have minX and maxX values, determine the default DateTimeFormat for time series this.formatters.setLabelFormatters(); } } // we need to generate yaxis for heatmap separately as we are not showing numerics there, but seriesNames. There are some tweaks which are required for heatmap to align labels correctly which are done in below function // Also we need to do this before calcuting Dimentions plotCoords() method of Dimensions this.formatters.heatmapLabelFormatters(); // We got plottable area here, next task would be to calculate axis areas this.dimensions.plotCoords(); var xyRatios = this.core.xySettings(); this.grid.createGridMask(); var elGraph = this.core.plotChartType(ser, xyRatios); // after all the drawing calculations, shift the graphical area (actual charts/bars) excluding legends this.core.shiftGraphPosition(); var dim = { plot: { left: w.globals.translateX, top: w.globals.translateY, width: w.globals.gridWidth, height: w.globals.gridHeight } }; return { elGraph: elGraph, xyRatios: xyRatios, elInner: w.globals.dom.elGraphical, dimensions: dim }; } }, { key: "mount", value: function mount() { var graphData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var me = this; var w = me.w; return new Promise$1(function (resolve, reject) { // no data to display if (me.el === null) { return reject(new Error('Not enough data to display or target element not found')); } else if (graphData === null || w.globals.allSeriesCollapsed) { me.series.handleNoData(); } me.annotations = new Annotations(me); me.core.drawAxis(w.config.chart.type, graphData.xyRatios); me.grid = new Grid(me); if (w.config.grid.position === 'back') { me.grid.drawGrid(); } if (w.config.annotations.position === 'back') { me.annotations.drawAnnotations(); } if (graphData.elGraph instanceof Array) { for (var g = 0; g < graphData.elGraph.length; g++) { w.globals.dom.elGraphical.add(graphData.elGraph[g]); } } else { w.globals.dom.elGraphical.add(graphData.elGraph); } if (w.config.grid.position === 'front') { me.grid.drawGrid(); } if (w.config.xaxis.crosshairs.position === 'front') { me.crosshairs.drawXCrosshairs(); } if (w.config.yaxis[0].crosshairs.position === 'front') { me.crosshairs.drawYCrosshairs(); } if (w.config.annotations.position === 'front') { me.annotations.drawAnnotations(); } if (!w.globals.noData) { // draw tooltips at the end if (w.config.tooltip.enabled && !w.globals.noData) { me.w.globals.tooltip.drawTooltip(graphData.xyRatios); } if (w.globals.axisCharts && w.globals.isXNumeric) { if (w.config.chart.zoom.enabled || w.config.chart.selection && w.config.chart.selection.enabled || w.config.chart.pan && w.config.chart.pan.enabled) { me.zoomPanSelection.init({ xyRatios: graphData.xyRatios }); } } else { var tools = w.config.chart.toolbar.tools; tools.zoom = false; tools.zoomin = false; tools.zoomout = false; tools.selection = false; tools.pan = false; tools.reset = false; } if (w.config.chart.toolbar.show && !w.globals.allSeriesCollapsed) { me.toolbar.createToolbar(); } } if (w.globals.memory.methodsToExec.length > 0) { w.globals.memory.methodsToExec.forEach(function (fn) { fn.method(fn.params, false, fn.context); }); } if (!w.globals.axisCharts && !w.globals.noData) { me.core.resizeNonAxisCharts(); } resolve(me); }); } }, { key: "clearPreviousPaths", value: function clearPreviousPaths() { var w = this.w; w.globals.previousPaths = []; w.globals.allSeriesCollapsed = false; w.globals.collapsedSeries = []; w.globals.collapsedSeriesIndices = []; } /** * Allows users to update Options after the chart has rendered. * * @param {object} options - A new config object can be passed which will be merged with the existing config object * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there * @param {boolean} animate - should animate or not on updating Options */ }, { key: "updateOptions", value: function updateOptions(options$$1) { var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var updateSyncedCharts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var overwriteInitialConfig = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; var w = this.w; if (options$$1.series) { this.resetSeries(false); if (options$$1.series.length && options$$1.series[0].data) { options$$1.series = options$$1.series.map(function (s, i) { return _objectSpread({}, w.config.series[i], { name: s.name ? s.name : w.config.series[i] && w.config.series[i].name, type: s.type ? s.type : w.config.series[i] && w.config.series[i].type, data: s.data ? s.data : w.config.series[i] && w.config.series[i].data }); }); } // user updated the series via updateOptions() function. // Hence, we need to reset axis min/max to avoid zooming issues this.revertDefaultAxisMinMax(); } // user has set x-axis min/max externally - hence we need to forcefully set the xaxis min/max if (options$$1.xaxis) { if (options$$1.xaxis.min || options$$1.xaxis.max) { this.forceXAxisUpdate(options$$1); } /* fixes apexcharts.js#369 and react-apexcharts#46 */ if (options$$1.xaxis.categories && options$$1.xaxis.categories.length && w.config.xaxis.convertedCatToNumeric) { options$$1 = Defaults.convertCatToNumeric(options$$1); } } if (w.globals.collapsedSeriesIndices.length > 0) { this.clearPreviousPaths(); } /* update theme mode#459 */ if (options$$1.theme) { options$$1 = this.theme.updateThemeOptions(options$$1); } return this._updateOptions(options$$1, redraw, animate, updateSyncedCharts, overwriteInitialConfig); } /** * private method to update Options. * * @param {object} options - A new config object can be passed which will be merged with the existing config object * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there * @param {boolean} animate - should animate or not on updating Options * @param {boolean} overwriteInitialConfig - should update the initial config or not */ }, { key: "_updateOptions", value: function _updateOptions(options$$1) { var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var updateSyncedCharts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var overwriteInitialConfig = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; var charts = [this]; if (updateSyncedCharts) { charts = this.getSyncedCharts(); } if (this.w.globals.isExecCalled) { // If the user called exec method, we don't want to get grouped charts as user specifically provided a chartID to update charts = [this]; this.w.globals.isExecCalled = false; } charts.forEach(function (ch) { var w = ch.w; w.globals.shouldAnimate = animate; if (!redraw) { w.globals.resized = true; w.globals.dataChanged = true; if (animate) { ch.series.getPreviousPaths(); } } if (options$$1 && _typeof(options$$1) === 'object') { ch.config = new Config(options$$1); options$$1 = CoreUtils.extendArrayProps(ch.config, options$$1); w.config = Utils.extend(w.config, options$$1); if (overwriteInitialConfig) { // we need to forget the lastXAxis and lastYAxis is user forcefully overwriteInitialConfig. If we do not do this, and next time when user zooms the chart after setting yaxis.min/max or xaxis.min/max - the stored lastXAxis will never allow the chart to use the updated min/max by user. w.globals.lastXAxis = []; w.globals.lastYAxis = []; // After forgetting lastAxes, we need to restore the new config in initialConfig/initialSeries w.globals.initialConfig = Utils.extend({}, w.config); w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); } } return ch.update(options$$1); }); } /** * Allows users to update Series after the chart has rendered. * * @param {array} series - New series which will override the existing */ }, { key: "updateSeries", value: function updateSeries() { var newSeries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; this.resetSeries(false); this.revertDefaultAxisMinMax(); return this._updateSeries(newSeries, animate, overwriteInitialSeries); } /** * Allows users to append a new series after the chart has rendered. * * @param {array} newSerie - New serie which will be appended to the existing series */ }, { key: "appendSeries", value: function appendSeries(newSerie) { var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var newSeries = this.w.config.series.slice(); newSeries.push(newSerie); this.resetSeries(false); this.revertDefaultAxisMinMax(); return this._updateSeries(newSeries, animate, overwriteInitialSeries); } /** * Private method to update Series. * * @param {array} series - New series which will override the existing */ }, { key: "_updateSeries", value: function _updateSeries(newSeries, animate) { var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var w = this.w; this.w.globals.shouldAnimate = animate; w.globals.dataChanged = true; // if user has collapsed some series with legend, we need to clear those if (w.globals.allSeriesCollapsed) { w.globals.allSeriesCollapsed = false; } if (animate) { this.series.getPreviousPaths(); } var existingSeries; // axis charts if (w.globals.axisCharts) { existingSeries = newSeries.map(function (s, i) { return _objectSpread({}, w.config.series[i], { name: s.name ? s.name : w.config.series[i] && w.config.series[i].name, type: s.type ? s.type : w.config.series[i] && w.config.series[i].type, data: s.data ? s.data : w.config.series[i] && w.config.series[i].data }); }); if (existingSeries.length === 0) { existingSeries = [{ data: [] }]; } w.config.series = existingSeries; } else { // non-axis chart (pie/radialbar) w.config.series = newSeries.slice(); } if (overwriteInitialSeries) { w.globals.initialConfig.series = JSON.parse(JSON.stringify(w.config.series)); w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); } return this.update(); } /** * Get all charts in the same "group" (including the instance which is called upon) to sync them when user zooms in/out or pan. */ }, { key: "getSyncedCharts", value: function getSyncedCharts() { var chartGroups = this.getGroupedCharts(); var allCharts = [this]; if (chartGroups.length) { allCharts = []; chartGroups.forEach(function (ch) { allCharts.push(ch); }); } return allCharts; } /** * Get charts in the same "group" (excluding the instance which is called upon) to perform operations on the other charts of the same group (eg., tooltip hovering) */ }, { key: "getGroupedCharts", value: function getGroupedCharts() { var _this2 = this; return Apex._chartInstances.filter(function (ch) { if (ch.group) { return true; } }).map(function (ch) { return _this2.w.config.chart.group === ch.group ? ch.chart : _this2; }); } /** * Allows users to append Data to series. * * @param {array} newData - New data in the same format as series */ }, { key: "appendData", value: function appendData(newData) { var overwriteInitialSeries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var me = this; me.w.globals.dataChanged = true; me.series.getPreviousPaths(); var newSeries = me.w.config.series.slice(); for (var i = 0; i < newSeries.length; i++) { if (typeof newData[i] !== 'undefined') { for (var j = 0; j < newData[i].data.length; j++) { newSeries[i].data.push(newData[i].data[j]); } } } me.w.config.series = newSeries; if (overwriteInitialSeries) { me.w.globals.initialSeries = JSON.parse(JSON.stringify(me.w.config.series)); } return this.update(); } }, { key: "update", value: function update(options$$1) { var _this3 = this; return new Promise$1(function (resolve, reject) { _this3.clear(); var graphData = _this3.create(_this3.w.config.series, options$$1); if (!graphData) return resolve(_this3); _this3.mount(graphData).then(function () { if (typeof _this3.w.config.chart.events.updated === 'function') { _this3.w.config.chart.events.updated(_this3, _this3.w); } _this3.fireEvent('updated', [_this3, _this3.w]); _this3.w.globals.isDirty = true; resolve(_this3); }).catch(function (e) { reject(e); }); }); } }, { key: "forceXAxisUpdate", value: function forceXAxisUpdate(options$$1) { var w = this.w; if (typeof options$$1.xaxis.min !== 'undefined') { w.config.xaxis.min = options$$1.xaxis.min; w.globals.lastXAxis.min = options$$1.xaxis.min; } if (typeof options$$1.xaxis.max !== 'undefined') { w.config.xaxis.max = options$$1.xaxis.max; w.globals.lastXAxis.max = options$$1.xaxis.max; } } /** * This function reverts the yaxis and xaxis min/max values to what it was when the chart was defined. * This function fixes an important bug where a user might load a new series after zooming in/out of previous series which resulted in wrong min/max * Also, this should never be called internally on zoom/pan - the reset should only happen when user calls the updateSeries() function externally */ }, { key: "revertDefaultAxisMinMax", value: function revertDefaultAxisMinMax() { var w = this.w; w.config.xaxis.min = w.globals.lastXAxis.min; w.config.xaxis.max = w.globals.lastXAxis.max; w.config.yaxis.map(function (yaxe, index) { if (w.globals.zoomed) { // if user has zoomed, and this function is called // then we need to get the lastAxis min and max if (typeof w.globals.lastYAxis[index] !== 'undefined') { yaxe.min = w.globals.lastYAxis[index].min; yaxe.max = w.globals.lastYAxis[index].max; } } }); } }, { key: "clear", value: function clear() { if (this.zoomPanSelection) { this.zoomPanSelection.destroy(); } if (this.toolbar) { this.toolbar.destroy(); } this.animations = null; this.annotations = null; this.core = null; this.grid = null; this.series = null; this.responsive = null; this.theme = null; this.formatters = null; this.titleSubtitle = null; this.legend = null; this.dimensions = null; this.options = null; this.crosshairs = null; this.zoomPanSelection = null; this.toolbar = null; this.w.globals.tooltip = null; this.clearDomElements(); } }, { key: "killSVG", value: function killSVG(draw) { return new Promise$1(function (resolve, reject) { draw.each(function (i, children) { this.removeClass('*'); this.off(); this.stop(); }, true); draw.ungroup(); draw.clear(); resolve('done'); }); } }, { key: "clearDomElements", value: function clearDomElements() { var _this4 = this; // detach document event this.eventList.forEach(function (event) { document.removeEventListener(event, _this4.documentEvent); }); var domEls = this.w.globals.dom; if (this.el !== null) { // remove all child elements - resetting the whole chart while (this.el.firstChild) { this.el.removeChild(this.el.firstChild); } } this.killSVG(domEls.Paper); domEls.Paper.remove(); domEls.elWrap = null; domEls.elGraphical = null; domEls.elLegendWrap = null; domEls.baseEl = null; domEls.elGridRect = null; domEls.elGridRectMask = null; domEls.elGridRectMarkerMask = null; domEls.elDefs = null; } /** * Destroy the chart instance by removing all elements which also clean up event listeners on those elements. */ }, { key: "destroy", value: function destroy() { this.clear(); // remove the chart's instance from the global Apex._chartInstances var chartID = this.w.config.chart.id; if (chartID) { Apex._chartInstances.forEach(function (c, i) { if (c.id === chartID) { Apex._chartInstances.splice(i, 1); } }); } window.removeEventListener('resize', this.windowResizeHandler); window.removeResizeListener(this.el.parentNode, this.parentResizeCallback.bind(this)); } /** * Allows the user to provide data attrs in the element and the chart will render automatically when this method is called by searching for the elements containing 'data-apexcharts' attribute */ }, { key: "toggleSeries", value: function toggleSeries(seriesName) { var targetElement = this.series.getSeriesByName(seriesName); var seriesCnt = parseInt(targetElement.getAttribute('data:realIndex')); var isHidden = targetElement.classList.contains('apexcharts-series-collapsed'); this.legend.toggleDataSeries(seriesCnt, isHidden); } }, { key: "resetSeries", value: function resetSeries() { var shouldUpdateChart = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; this.series.resetSeries(shouldUpdateChart); } }, { key: "setupEventHandlers", value: function setupEventHandlers() { var _this5 = this; var w = this.w; var me = this; var clickableArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); this.eventListHandlers = []; this.eventList.forEach(function (event) { clickableArea.addEventListener(event, function (e) { var opts = Object.assign({}, w, { seriesIndex: w.globals.capturedSeriesIndex, dataPointIndex: w.globals.capturedDataPointIndex }); if (e.type === 'mousemove' || e.type === 'touchmove') { if (typeof w.config.chart.events.mouseMove === 'function') { w.config.chart.events.mouseMove(e, me, opts); } } else if (e.type === 'mouseup' && e.which === 1 || e.type === 'touchend') { if (typeof w.config.chart.events.click === 'function') { w.config.chart.events.click(e, me, opts); } me.fireEvent('click', [e, me, opts]); } }, { capture: false, passive: true }); }); this.eventList.forEach(function (event) { document.addEventListener(event, _this5.documentEvent); }); this.core.setupBrushHandler(); } }, { key: "documentEvent", value: function documentEvent(e) { var w = this.w; w.globals.clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; w.globals.clientY = e.type === 'touchmove' ? e.touches[0].clientY : e.clientY; } }, { key: "addXaxisAnnotation", value: function addXaxisAnnotation(opts) { var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; var me = this; if (context) { me = context; } me.annotations.addXaxisAnnotationExternal(opts, pushToMemory, me); } }, { key: "addYaxisAnnotation", value: function addYaxisAnnotation(opts) { var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; var me = this; if (context) { me = context; } me.annotations.addYaxisAnnotationExternal(opts, pushToMemory, me); } }, { key: "addPointAnnotation", value: function addPointAnnotation(opts) { var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; var me = this; if (context) { me = context; } me.annotations.addPointAnnotationExternal(opts, pushToMemory, me); } }, { key: "clearAnnotations", value: function clearAnnotations() { var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; var me = this; if (context) { me = context; } me.annotations.clearAnnotations(me); } // This method is never used internally and will be only called externally on the chart instance. // Hence, we need to keep all these elements in memory when the chart gets updated and redraw again }, { key: "addText", value: function addText(options$$1) { var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; var me = this; if (context) { me = context; } me.annotations.addText(options$$1, pushToMemory, me); } }, { key: "getChartArea", value: function getChartArea() { var el = this.w.globals.dom.baseEl.querySelector('.apexcharts-inner'); return el; } }, { key: "getSeriesTotalXRange", value: function getSeriesTotalXRange(minX, maxX) { return this.coreUtils.getSeriesTotalsXRange(minX, maxX); } }, { key: "getHighestValueInSeries", value: function getHighestValueInSeries() { var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var range = new Range$1(this.ctx); var minYmaxY = range.getMinYMaxY(seriesIndex); return minYmaxY.highestY; } }, { key: "getLowestValueInSeries", value: function getLowestValueInSeries() { var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var range = new Range$1(this.ctx); var minYmaxY = range.getMinYMaxY(seriesIndex); return minYmaxY.lowestY; } }, { key: "getSeriesTotal", value: function getSeriesTotal() { return this.w.globals.seriesTotals; } }, { key: "setLocale", value: function setLocale(localeName) { this.setCurrentLocaleValues(localeName); } }, { key: "toggleDataPointSelection", value: function toggleDataPointSelection(seriesIndex, dataPointIndex) { var w = this.w; var elPath = null; if (w.globals.axisCharts) { elPath = w.globals.dom.Paper.select(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "'] path[j='").concat(dataPointIndex, "'], .apexcharts-series[data\\:realIndex='").concat(seriesIndex, "'] circle[j='").concat(dataPointIndex, "'], .apexcharts-series[data\\:realIndex='").concat(seriesIndex, "'] rect[j='").concat(dataPointIndex, "']")).members[0]; } else { elPath = w.globals.dom.Paper.select(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "']")).members[0]; if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { var pie = new Pie(this.ctx); pie.pieClicked(seriesIndex); } } if (elPath) { var graphics = new Graphics(this.ctx); graphics.pathMouseDown(elPath, null); } else { console.warn('toggleDataPointSelection: Element not found'); } return elPath.node ? elPath.node : null; } }, { key: "setCurrentLocaleValues", value: function setCurrentLocaleValues(localeName) { var locales = this.w.config.chart.locales; // check if user has specified locales in global Apex variable // if yes - then extend those with local chart's locale if (window.Apex.chart && window.Apex.chart.locales && window.Apex.chart.locales.length > 0) { locales = this.w.config.chart.locales.concat(window.Apex.chart.locales); } // find the locale from the array of locales which user has set (either by chart.defaultLocale or by calling setLocale() method.) var selectedLocale = locales.filter(function (c) { return c.name === localeName; })[0]; if (selectedLocale) { // create a complete locale object by extending defaults so you don't get undefined errors. var ret = Utils.extend(en, selectedLocale); // store these locale options in global var for ease access this.w.globals.locale = ret.options; } else { throw new Error('Wrong locale name provided. Please make sure you set the correct locale name in options'); } } }, { key: "dataURI", value: function dataURI() { var exp = new Exports(this.ctx); return exp.dataURI(); } }, { key: "paper", value: function paper() { return this.w.globals.dom.Paper; } }, { key: "parentResizeCallback", value: function parentResizeCallback() { if (this.w.globals.animationEnded) { this.windowResize(); } } /** * Handle window resize and re-draw the whole chart. */ }, { key: "windowResize", value: function windowResize() { var _this6 = this; clearTimeout(this.w.globals.resizeTimer); this.w.globals.resizeTimer = window.setTimeout(function () { _this6.w.globals.resized = true; _this6.w.globals.dataChanged = false; // we need to redraw the whole chart on window resize (with a small delay). _this6.update(); }, 150); } }], [{ key: "initOnLoad", value: function initOnLoad() { var els = document.querySelectorAll('[data-apexcharts]'); for (var i = 0; i < els.length; i++) { var el = els[i]; var options$$1 = JSON.parse(els[i].getAttribute('data-options')); var apexChart = new ApexCharts(el, options$$1); apexChart.render(); } } /** * This static method allows users to call chart methods without necessarily from the * instance of the chart in case user has assigned chartID to the targetted chart. * The chartID is used for mapping the instance stored in Apex._chartInstances global variable * * This is helpful in cases when you don't have reference of the chart instance * easily and need to call the method from anywhere. * For eg, in React/Vue applications when you have many parent/child components, * and need easy reference to other charts for performing dynamic operations * * @param {string} chartID - The unique identifier which will be used to call methods * on that chart instance * @param {function} fn - The method name to call * @param {object} opts - The parameters which are accepted in the original method will be passed here in the same order. */ }, { key: "exec", value: function exec(chartID, fn) { var chart = this.getChartByID(chartID); if (!chart) return; // turn on the global exec flag to indicate this method was called chart.w.globals.isExecCalled = true; for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { opts[_key - 2] = arguments[_key]; } switch (fn) { case 'updateOptions': { return chart.updateOptions.apply(chart, opts); } case 'updateSeries': { return chart.updateSeries.apply(chart, opts); } case 'appendData': { return chart.appendData.apply(chart, opts); } case 'appendSeries': { return chart.appendSeries.apply(chart, opts); } case 'toggleSeries': { return chart.toggleSeries.apply(chart, opts); } case 'resetSeries': { return chart.resetSeries.apply(chart, opts); } case 'toggleDataPointSelection': { return chart.toggleDataPointSelection.apply(chart, opts); } case 'dataURI': { return chart.dataURI.apply(chart, opts); } case 'addXaxisAnnotation': { return chart.addXaxisAnnotation.apply(chart, opts); } case 'addYaxisAnnotation': { return chart.addYaxisAnnotation.apply(chart, opts); } case 'addPointAnnotation': { return chart.addPointAnnotation.apply(chart, opts); } case 'addText': { return chart.addText.apply(chart, opts); } case 'clearAnnotations': { return chart.clearAnnotations.apply(chart, opts); } case 'paper': { return chart.paper.apply(chart, opts); } case 'destroy': { return chart.destroy(); } } } }, { key: "merge", value: function merge(target, source) { return Utils.extend(target, source); } }, { key: "getChartByID", value: function getChartByID(chartID) { var c = Apex._chartInstances.filter(function (ch) { return ch.id === chartID; })[0]; return c.chart; } }]); return ApexCharts; }(); return ApexCharts$1; })); ================================================ FILE: public/backend/vendors/js/charts/echarts/echarts.js ================================================ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.echarts = {}))); }(this, (function (exports) { 'use strict'; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // (1) The code `if (__DEV__) ...` can be removed by build tool. // (2) If intend to use `__DEV__`, this module should be imported. Use a global // variable `__DEV__` may cause that miss the declaration (see #6535), or the // declaration is behind of the using position (for example in `Model.extent`, // And tools like rollup can not analysis the dependency if not import). var dev; // In browser if (typeof window !== 'undefined') { dev = window.__DEV__; } // In node else if (typeof global !== 'undefined') { dev = global.__DEV__; } if (typeof dev === 'undefined') { dev = true; } var __DEV__ = dev; /** * zrender: 生成唯一id * * @author errorrik (errorrik@gmail.com) */ var idStart = 0x0907; var guid = function () { return idStart++; }; /** * echarts设备环境识别 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author firede[firede@firede.us] * @desc thanks zepto. */ var env = {}; if (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') { // In Weixin Application env = { browser: {}, os: {}, node: false, wxa: true, // Weixin Application canvasSupported: true, svgSupported: false, touchEventsSupported: true, domSupported: false }; } else if (typeof document === 'undefined' && typeof self !== 'undefined') { // In worker env = { browser: {}, os: {}, node: false, worker: true, canvasSupported: true, domSupported: false }; } else if (typeof navigator === 'undefined') { // In node env = { browser: {}, os: {}, node: true, worker: false, // Assume canvas is supported canvasSupported: true, svgSupported: true, domSupported: false }; } else { env = detect(navigator.userAgent); } var env$1 = env; // Zepto.js // (c) 2010-2013 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. function detect(ua) { var os = {}; var browser = {}; // var webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/); // var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // var ipad = ua.match(/(iPad).*OS\s([\d_]+)/); // var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/); // var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/); // var webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/); // var touchpad = webos && ua.match(/TouchPad/); // var kindle = ua.match(/Kindle\/([\d.]+)/); // var silk = ua.match(/Silk\/([\d._]+)/); // var blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/); // var bb10 = ua.match(/(BB10).*Version\/([\d.]+)/); // var rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/); // var playbook = ua.match(/PlayBook/); // var chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/); var firefox = ua.match(/Firefox\/([\d.]+)/); // var safari = webkit && ua.match(/Mobile\//) && !chrome; // var webview = ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/) && !chrome; var ie = ua.match(/MSIE\s([\d.]+)/) // IE 11 Trident/7.0; rv:11.0 || ua.match(/Trident\/.+?rv:(([\d.]+))/); var edge = ua.match(/Edge\/([\d.]+)/); // IE 12 and 12+ var weChat = (/micromessenger/i).test(ua); // Todo: clean this up with a better OS/browser seperation: // - discern (more) between multiple browsers on android // - decide if kindle fire in silk mode is android or not // - Firefox on Android doesn't specify the Android version // - possibly devide in os, device and browser hashes // if (browser.webkit = !!webkit) browser.version = webkit[1]; // if (android) os.android = true, os.version = android[2]; // if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.'); // if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.'); // if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null; // if (webos) os.webos = true, os.version = webos[2]; // if (touchpad) os.touchpad = true; // if (blackberry) os.blackberry = true, os.version = blackberry[2]; // if (bb10) os.bb10 = true, os.version = bb10[2]; // if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2]; // if (playbook) browser.playbook = true; // if (kindle) os.kindle = true, os.version = kindle[1]; // if (silk) browser.silk = true, browser.version = silk[1]; // if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true; // if (chrome) browser.chrome = true, browser.version = chrome[1]; if (firefox) { browser.firefox = true; browser.version = firefox[1]; } // if (safari && (ua.match(/Safari/) || !!os.ios)) browser.safari = true; // if (webview) browser.webview = true; if (ie) { browser.ie = true; browser.version = ie[1]; } if (edge) { browser.edge = true; browser.version = edge[1]; } // It is difficult to detect WeChat in Win Phone precisely, because ua can // not be set on win phone. So we do not consider Win Phone. if (weChat) { browser.weChat = true; } // os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) || // (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/))); // os.phone = !!(!os.tablet && !os.ipod && (android || iphone || webos || // (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) || // (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/)))); return { browser: browser, os: os, node: false, // 原生canvas支持,改极端点了 // canvasSupported : !(browser.ie && parseFloat(browser.version) < 9) canvasSupported: !!document.createElement('canvas').getContext, svgSupported: typeof SVGRect !== 'undefined', // works on most browsers // IE10/11 does not support touch event, and MS Edge supports them but not by // default, so we dont check navigator.maxTouchPoints for them here. touchEventsSupported: 'ontouchstart' in window && !browser.ie && !browser.edge, // . pointerEventsSupported: 'onpointerdown' in window // Firefox supports pointer but not by default, only MS browsers are reliable on pointer // events currently. So we dont use that on other browsers unless tested sufficiently. // Although IE 10 supports pointer event, it use old style and is different from the // standard. So we exclude that. (IE 10 is hardly used on touch device) && (browser.edge || (browser.ie && browser.version >= 11)), // passiveSupported: detectPassiveSupport() domSupported: typeof document !== 'undefined' }; } // See https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection // function detectPassiveSupport() { // // Test via a getter in the options object to see if the passive property is accessed // var supportsPassive = false; // try { // var opts = Object.defineProperty({}, 'passive', { // get: function() { // supportsPassive = true; // } // }); // window.addEventListener('testPassive', function() {}, opts); // } catch (e) { // } // return supportsPassive; // } /** * @module zrender/core/util */ // 用于处理merge时无法遍历Date等对象的问题 var BUILTIN_OBJECT = { '[object Function]': 1, '[object RegExp]': 1, '[object Date]': 1, '[object Error]': 1, '[object CanvasGradient]': 1, '[object CanvasPattern]': 1, // For node-canvas '[object Image]': 1, '[object Canvas]': 1 }; var TYPED_ARRAY = { '[object Int8Array]': 1, '[object Uint8Array]': 1, '[object Uint8ClampedArray]': 1, '[object Int16Array]': 1, '[object Uint16Array]': 1, '[object Int32Array]': 1, '[object Uint32Array]': 1, '[object Float32Array]': 1, '[object Float64Array]': 1 }; var objToString = Object.prototype.toString; var arrayProto = Array.prototype; var nativeForEach = arrayProto.forEach; var nativeFilter = arrayProto.filter; var nativeSlice = arrayProto.slice; var nativeMap = arrayProto.map; var nativeReduce = arrayProto.reduce; // Avoid assign to an exported variable, for transforming to cjs. var methods = {}; function $override(name, fn) { // Clear ctx instance for different environment if (name === 'createCanvas') { _ctx = null; } methods[name] = fn; } /** * Those data types can be cloned: * Plain object, Array, TypedArray, number, string, null, undefined. * Those data types will be assgined using the orginal data: * BUILTIN_OBJECT * Instance of user defined class will be cloned to a plain object, without * properties in prototype. * Other data types is not supported (not sure what will happen). * * Caution: do not support clone Date, for performance consideration. * (There might be a large number of date in `series.data`). * So date should not be modified in and out of echarts. * * @param {*} source * @return {*} new */ function clone(source) { if (source == null || typeof source !== 'object') { return source; } var result = source; var typeStr = objToString.call(source); if (typeStr === '[object Array]') { if (!isPrimitive(source)) { result = []; for (var i = 0, len = source.length; i < len; i++) { result[i] = clone(source[i]); } } } else if (TYPED_ARRAY[typeStr]) { if (!isPrimitive(source)) { var Ctor = source.constructor; if (source.constructor.from) { result = Ctor.from(source); } else { result = new Ctor(source.length); for (var i = 0, len = source.length; i < len; i++) { result[i] = clone(source[i]); } } } } else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) { result = {}; for (var key in source) { if (source.hasOwnProperty(key)) { result[key] = clone(source[key]); } } } return result; } /** * @memberOf module:zrender/core/util * @param {*} target * @param {*} source * @param {boolean} [overwrite=false] */ function merge(target, source, overwrite) { // We should escapse that source is string // and enter for ... in ... if (!isObject$1(source) || !isObject$1(target)) { return overwrite ? clone(source) : target; } for (var key in source) { if (source.hasOwnProperty(key)) { var targetProp = target[key]; var sourceProp = source[key]; if (isObject$1(sourceProp) && isObject$1(targetProp) && !isArray(sourceProp) && !isArray(targetProp) && !isDom(sourceProp) && !isDom(targetProp) && !isBuiltInObject(sourceProp) && !isBuiltInObject(targetProp) && !isPrimitive(sourceProp) && !isPrimitive(targetProp) ) { // 如果需要递归覆盖,就递归调用merge merge(targetProp, sourceProp, overwrite); } else if (overwrite || !(key in target)) { // 否则只处理overwrite为true,或者在目标对象中没有此属性的情况 // NOTE,在 target[key] 不存在的时候也是直接覆盖 target[key] = clone(source[key], true); } } } return target; } /** * @param {Array} targetAndSources The first item is target, and the rests are source. * @param {boolean} [overwrite=false] * @return {*} target */ function mergeAll(targetAndSources, overwrite) { var result = targetAndSources[0]; for (var i = 1, len = targetAndSources.length; i < len; i++) { result = merge(result, targetAndSources[i], overwrite); } return result; } /** * @param {*} target * @param {*} source * @memberOf module:zrender/core/util */ function extend(target, source) { for (var key in source) { if (source.hasOwnProperty(key)) { target[key] = source[key]; } } return target; } /** * @param {*} target * @param {*} source * @param {boolean} [overlay=false] * @memberOf module:zrender/core/util */ function defaults(target, source, overlay) { for (var key in source) { if (source.hasOwnProperty(key) && (overlay ? source[key] != null : target[key] == null) ) { target[key] = source[key]; } } return target; } var createCanvas = function () { return methods.createCanvas(); }; methods.createCanvas = function () { return document.createElement('canvas'); }; // FIXME var _ctx; function getContext() { if (!_ctx) { // Use util.createCanvas instead of createCanvas // because createCanvas may be overwritten in different environment _ctx = createCanvas().getContext('2d'); } return _ctx; } /** * 查询数组中元素的index * @memberOf module:zrender/core/util */ function indexOf(array, value) { if (array) { if (array.indexOf) { return array.indexOf(value); } for (var i = 0, len = array.length; i < len; i++) { if (array[i] === value) { return i; } } } return -1; } /** * 构造类继承关系 * * @memberOf module:zrender/core/util * @param {Function} clazz 源类 * @param {Function} baseClazz 基类 */ function inherits(clazz, baseClazz) { var clazzPrototype = clazz.prototype; function F() {} F.prototype = baseClazz.prototype; clazz.prototype = new F(); for (var prop in clazzPrototype) { clazz.prototype[prop] = clazzPrototype[prop]; } clazz.prototype.constructor = clazz; clazz.superClass = baseClazz; } /** * @memberOf module:zrender/core/util * @param {Object|Function} target * @param {Object|Function} sorce * @param {boolean} overlay */ function mixin(target, source, overlay) { target = 'prototype' in target ? target.prototype : target; source = 'prototype' in source ? source.prototype : source; defaults(target, source, overlay); } /** * Consider typed array. * @param {Array|TypedArray} data */ function isArrayLike(data) { if (!data) { return; } if (typeof data === 'string') { return false; } return typeof data.length === 'number'; } /** * 数组或对象遍历 * @memberOf module:zrender/core/util * @param {Object|Array} obj * @param {Function} cb * @param {*} [context] */ function each$1(obj, cb, context) { if (!(obj && cb)) { return; } if (obj.forEach && obj.forEach === nativeForEach) { obj.forEach(cb, context); } else if (obj.length === +obj.length) { for (var i = 0, len = obj.length; i < len; i++) { cb.call(context, obj[i], i, obj); } } else { for (var key in obj) { if (obj.hasOwnProperty(key)) { cb.call(context, obj[key], key, obj); } } } } /** * 数组映射 * @memberOf module:zrender/core/util * @param {Array} obj * @param {Function} cb * @param {*} [context] * @return {Array} */ function map(obj, cb, context) { if (!(obj && cb)) { return; } if (obj.map && obj.map === nativeMap) { return obj.map(cb, context); } else { var result = []; for (var i = 0, len = obj.length; i < len; i++) { result.push(cb.call(context, obj[i], i, obj)); } return result; } } /** * @memberOf module:zrender/core/util * @param {Array} obj * @param {Function} cb * @param {Object} [memo] * @param {*} [context] * @return {Array} */ function reduce(obj, cb, memo, context) { if (!(obj && cb)) { return; } if (obj.reduce && obj.reduce === nativeReduce) { return obj.reduce(cb, memo, context); } else { for (var i = 0, len = obj.length; i < len; i++) { memo = cb.call(context, memo, obj[i], i, obj); } return memo; } } /** * 数组过滤 * @memberOf module:zrender/core/util * @param {Array} obj * @param {Function} cb * @param {*} [context] * @return {Array} */ function filter(obj, cb, context) { if (!(obj && cb)) { return; } if (obj.filter && obj.filter === nativeFilter) { return obj.filter(cb, context); } else { var result = []; for (var i = 0, len = obj.length; i < len; i++) { if (cb.call(context, obj[i], i, obj)) { result.push(obj[i]); } } return result; } } /** * 数组项查找 * @memberOf module:zrender/core/util * @param {Array} obj * @param {Function} cb * @param {*} [context] * @return {*} */ function find(obj, cb, context) { if (!(obj && cb)) { return; } for (var i = 0, len = obj.length; i < len; i++) { if (cb.call(context, obj[i], i, obj)) { return obj[i]; } } } /** * @memberOf module:zrender/core/util * @param {Function} func * @param {*} context * @return {Function} */ function bind(func, context) { var args = nativeSlice.call(arguments, 2); return function () { return func.apply(context, args.concat(nativeSlice.call(arguments))); }; } /** * @memberOf module:zrender/core/util * @param {Function} func * @return {Function} */ function curry(func) { var args = nativeSlice.call(arguments, 1); return function () { return func.apply(this, args.concat(nativeSlice.call(arguments))); }; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isArray(value) { return objToString.call(value) === '[object Array]'; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isFunction$1(value) { return typeof value === 'function'; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isString(value) { return objToString.call(value) === '[object String]'; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isObject$1(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; return type === 'function' || (!!value && type === 'object'); } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isBuiltInObject(value) { return !!BUILTIN_OBJECT[objToString.call(value)]; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isTypedArray(value) { return !!TYPED_ARRAY[objToString.call(value)]; } /** * @memberOf module:zrender/core/util * @param {*} value * @return {boolean} */ function isDom(value) { return typeof value === 'object' && typeof value.nodeType === 'number' && typeof value.ownerDocument === 'object'; } /** * Whether is exactly NaN. Notice isNaN('a') returns true. * @param {*} value * @return {boolean} */ function eqNaN(value) { return value !== value; } /** * If value1 is not null, then return value1, otherwise judget rest of values. * Low performance. * @memberOf module:zrender/core/util * @return {*} Final value */ function retrieve(values) { for (var i = 0, len = arguments.length; i < len; i++) { if (arguments[i] != null) { return arguments[i]; } } } function retrieve2(value0, value1) { return value0 != null ? value0 : value1; } function retrieve3(value0, value1, value2) { return value0 != null ? value0 : value1 != null ? value1 : value2; } /** * @memberOf module:zrender/core/util * @param {Array} arr * @param {number} startIndex * @param {number} endIndex * @return {Array} */ function slice() { return Function.call.apply(nativeSlice, arguments); } /** * Normalize css liked array configuration * e.g. * 3 => [3, 3, 3, 3] * [4, 2] => [4, 2, 4, 2] * [4, 3, 2] => [4, 3, 2, 3] * @param {number|Array.} val * @return {Array.} */ function normalizeCssArray(val) { if (typeof (val) === 'number') { return [val, val, val, val]; } var len = val.length; if (len === 2) { // vertical | horizontal return [val[0], val[1], val[0], val[1]]; } else if (len === 3) { // top | horizontal | bottom return [val[0], val[1], val[2], val[1]]; } return val; } /** * @memberOf module:zrender/core/util * @param {boolean} condition * @param {string} message */ function assert$1(condition, message) { if (!condition) { throw new Error(message); } } /** * @memberOf module:zrender/core/util * @param {string} str string to be trimed * @return {string} trimed string */ function trim(str) { if (str == null) { return null; } else if (typeof str.trim === 'function') { return str.trim(); } else { return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); } } var primitiveKey = '__ec_primitive__'; /** * Set an object as primitive to be ignored traversing children in clone or merge */ function setAsPrimitive(obj) { obj[primitiveKey] = true; } function isPrimitive(obj) { return obj[primitiveKey]; } /** * @constructor * @param {Object} obj Only apply `ownProperty`. */ function HashMap(obj) { var isArr = isArray(obj); // Key should not be set on this, otherwise // methods get/set/... may be overrided. this.data = {}; var thisMap = this; (obj instanceof HashMap) ? obj.each(visit) : (obj && each$1(obj, visit)); function visit(value, key) { isArr ? thisMap.set(value, key) : thisMap.set(key, value); } } HashMap.prototype = { constructor: HashMap, // Do not provide `has` method to avoid defining what is `has`. // (We usually treat `null` and `undefined` as the same, different // from ES6 Map). get: function (key) { return this.data.hasOwnProperty(key) ? this.data[key] : null; }, set: function (key, value) { // Comparing with invocation chaining, `return value` is more commonly // used in this case: `var someVal = map.set('a', genVal());` return (this.data[key] = value); }, // Although util.each can be performed on this hashMap directly, user // should not use the exposed keys, who are prefixed. each: function (cb, context) { context !== void 0 && (cb = bind(cb, context)); for (var key in this.data) { this.data.hasOwnProperty(key) && cb(this.data[key], key); } }, // Do not use this method if performance sensitive. removeKey: function (key) { delete this.data[key]; } }; function createHashMap(obj) { return new HashMap(obj); } function concatArray(a, b) { var newArray = new a.constructor(a.length + b.length); for (var i = 0; i < a.length; i++) { newArray[i] = a[i]; } var offset = a.length; for (i = 0; i < b.length; i++) { newArray[i + offset] = b[i]; } return newArray; } function noop() {} var zrUtil = (Object.freeze || Object)({ $override: $override, clone: clone, merge: merge, mergeAll: mergeAll, extend: extend, defaults: defaults, createCanvas: createCanvas, getContext: getContext, indexOf: indexOf, inherits: inherits, mixin: mixin, isArrayLike: isArrayLike, each: each$1, map: map, reduce: reduce, filter: filter, find: find, bind: bind, curry: curry, isArray: isArray, isFunction: isFunction$1, isString: isString, isObject: isObject$1, isBuiltInObject: isBuiltInObject, isTypedArray: isTypedArray, isDom: isDom, eqNaN: eqNaN, retrieve: retrieve, retrieve2: retrieve2, retrieve3: retrieve3, slice: slice, normalizeCssArray: normalizeCssArray, assert: assert$1, trim: trim, setAsPrimitive: setAsPrimitive, isPrimitive: isPrimitive, createHashMap: createHashMap, concatArray: concatArray, noop: noop }); var ArrayCtor = typeof Float32Array === 'undefined' ? Array : Float32Array; /** * 创建一个向量 * @param {number} [x=0] * @param {number} [y=0] * @return {Vector2} */ function create(x, y) { var out = new ArrayCtor(2); if (x == null) { x = 0; } if (y == null) { y = 0; } out[0] = x; out[1] = y; return out; } /** * 复制向量数据 * @param {Vector2} out * @param {Vector2} v * @return {Vector2} */ function copy(out, v) { out[0] = v[0]; out[1] = v[1]; return out; } /** * 克隆一个向量 * @param {Vector2} v * @return {Vector2} */ function clone$1(v) { var out = new ArrayCtor(2); out[0] = v[0]; out[1] = v[1]; return out; } /** * 设置向量的两个项 * @param {Vector2} out * @param {number} a * @param {number} b * @return {Vector2} 结果 */ function set(out, a, b) { out[0] = a; out[1] = b; return out; } /** * 向量相加 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function add(out, v1, v2) { out[0] = v1[0] + v2[0]; out[1] = v1[1] + v2[1]; return out; } /** * 向量缩放后相加 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 * @param {number} a */ function scaleAndAdd(out, v1, v2, a) { out[0] = v1[0] + v2[0] * a; out[1] = v1[1] + v2[1] * a; return out; } /** * 向量相减 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function sub(out, v1, v2) { out[0] = v1[0] - v2[0]; out[1] = v1[1] - v2[1]; return out; } /** * 向量长度 * @param {Vector2} v * @return {number} */ function len(v) { return Math.sqrt(lenSquare(v)); } var length = len; // jshint ignore:line /** * 向量长度平方 * @param {Vector2} v * @return {number} */ function lenSquare(v) { return v[0] * v[0] + v[1] * v[1]; } var lengthSquare = lenSquare; /** * 向量乘法 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function mul(out, v1, v2) { out[0] = v1[0] * v2[0]; out[1] = v1[1] * v2[1]; return out; } /** * 向量除法 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function div(out, v1, v2) { out[0] = v1[0] / v2[0]; out[1] = v1[1] / v2[1]; return out; } /** * 向量点乘 * @param {Vector2} v1 * @param {Vector2} v2 * @return {number} */ function dot(v1, v2) { return v1[0] * v2[0] + v1[1] * v2[1]; } /** * 向量缩放 * @param {Vector2} out * @param {Vector2} v * @param {number} s */ function scale(out, v, s) { out[0] = v[0] * s; out[1] = v[1] * s; return out; } /** * 向量归一化 * @param {Vector2} out * @param {Vector2} v */ function normalize(out, v) { var d = len(v); if (d === 0) { out[0] = 0; out[1] = 0; } else { out[0] = v[0] / d; out[1] = v[1] / d; } return out; } /** * 计算向量间距离 * @param {Vector2} v1 * @param {Vector2} v2 * @return {number} */ function distance(v1, v2) { return Math.sqrt( (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]) ); } var dist = distance; /** * 向量距离平方 * @param {Vector2} v1 * @param {Vector2} v2 * @return {number} */ function distanceSquare(v1, v2) { return (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]); } var distSquare = distanceSquare; /** * 求负向量 * @param {Vector2} out * @param {Vector2} v */ function negate(out, v) { out[0] = -v[0]; out[1] = -v[1]; return out; } /** * 插值两个点 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 * @param {number} t */ function lerp(out, v1, v2, t) { out[0] = v1[0] + t * (v2[0] - v1[0]); out[1] = v1[1] + t * (v2[1] - v1[1]); return out; } /** * 矩阵左乘向量 * @param {Vector2} out * @param {Vector2} v * @param {Vector2} m */ function applyTransform(out, v, m) { var x = v[0]; var y = v[1]; out[0] = m[0] * x + m[2] * y + m[4]; out[1] = m[1] * x + m[3] * y + m[5]; return out; } /** * 求两个向量最小值 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function min(out, v1, v2) { out[0] = Math.min(v1[0], v2[0]); out[1] = Math.min(v1[1], v2[1]); return out; } /** * 求两个向量最大值 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2 */ function max(out, v1, v2) { out[0] = Math.max(v1[0], v2[0]); out[1] = Math.max(v1[1], v2[1]); return out; } var vector = (Object.freeze || Object)({ create: create, copy: copy, clone: clone$1, set: set, add: add, scaleAndAdd: scaleAndAdd, sub: sub, len: len, length: length, lenSquare: lenSquare, lengthSquare: lengthSquare, mul: mul, div: div, dot: dot, scale: scale, normalize: normalize, distance: distance, dist: dist, distanceSquare: distanceSquare, distSquare: distSquare, negate: negate, lerp: lerp, applyTransform: applyTransform, min: min, max: max }); // TODO Draggable for group // FIXME Draggable on element which has parent rotation or scale function Draggable() { this.on('mousedown', this._dragStart, this); this.on('mousemove', this._drag, this); this.on('mouseup', this._dragEnd, this); this.on('globalout', this._dragEnd, this); // this._dropTarget = null; // this._draggingTarget = null; // this._x = 0; // this._y = 0; } Draggable.prototype = { constructor: Draggable, _dragStart: function (e) { var draggingTarget = e.target; if (draggingTarget && draggingTarget.draggable) { this._draggingTarget = draggingTarget; draggingTarget.dragging = true; this._x = e.offsetX; this._y = e.offsetY; this.dispatchToElement(param(draggingTarget, e), 'dragstart', e.event); } }, _drag: function (e) { var draggingTarget = this._draggingTarget; if (draggingTarget) { var x = e.offsetX; var y = e.offsetY; var dx = x - this._x; var dy = y - this._y; this._x = x; this._y = y; draggingTarget.drift(dx, dy, e); this.dispatchToElement(param(draggingTarget, e), 'drag', e.event); var dropTarget = this.findHover(x, y, draggingTarget).target; var lastDropTarget = this._dropTarget; this._dropTarget = dropTarget; if (draggingTarget !== dropTarget) { if (lastDropTarget && dropTarget !== lastDropTarget) { this.dispatchToElement(param(lastDropTarget, e), 'dragleave', e.event); } if (dropTarget && dropTarget !== lastDropTarget) { this.dispatchToElement(param(dropTarget, e), 'dragenter', e.event); } } } }, _dragEnd: function (e) { var draggingTarget = this._draggingTarget; if (draggingTarget) { draggingTarget.dragging = false; } this.dispatchToElement(param(draggingTarget, e), 'dragend', e.event); if (this._dropTarget) { this.dispatchToElement(param(this._dropTarget, e), 'drop', e.event); } this._draggingTarget = null; this._dropTarget = null; } }; function param(target, e) { return {target: target, topTarget: e && e.topTarget}; } /** * Event Mixin * @module zrender/mixin/Eventful * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) * pissang (https://www.github.com/pissang) */ var arrySlice = Array.prototype.slice; /** * Event dispatcher. * * @alias module:zrender/mixin/Eventful * @constructor * @param {Object} [eventProcessor] The object eventProcessor is the scope when * `eventProcessor.xxx` called. * @param {Function} [eventProcessor.normalizeQuery] * param: {string|Object} Raw query. * return: {string|Object} Normalized query. * @param {Function} [eventProcessor.filter] Event will be dispatched only * if it returns `true`. * param: {string} eventType * param: {string|Object} query * return: {boolean} * @param {Function} [eventProcessor.afterTrigger] Call after all handlers called. * param: {string} eventType */ var Eventful = function (eventProcessor) { this._$handlers = {}; this._$eventProcessor = eventProcessor; }; Eventful.prototype = { constructor: Eventful, /** * The handler can only be triggered once, then removed. * * @param {string} event The event name. * @param {string|Object} [query] Condition used on event filter. * @param {Function} handler The event handler. * @param {Object} context */ one: function (event, query, handler, context) { return on(this, event, query, handler, context, true); }, /** * Bind a handler. * * @param {string} event The event name. * @param {string|Object} [query] Condition used on event filter. * @param {Function} handler The event handler. * @param {Object} [context] */ on: function (event, query, handler, context) { return on(this, event, query, handler, context, false); }, /** * Whether any handler has bound. * * @param {string} event * @return {boolean} */ isSilent: function (event) { var _h = this._$handlers; return !_h[event] || !_h[event].length; }, /** * Unbind a event. * * @param {string} event The event name. * @param {Function} [handler] The event handler. */ off: function (event, handler) { var _h = this._$handlers; if (!event) { this._$handlers = {}; return this; } if (handler) { if (_h[event]) { var newList = []; for (var i = 0, l = _h[event].length; i < l; i++) { if (_h[event][i].h !== handler) { newList.push(_h[event][i]); } } _h[event] = newList; } if (_h[event] && _h[event].length === 0) { delete _h[event]; } } else { delete _h[event]; } return this; }, /** * Dispatch a event. * * @param {string} type The event name. */ trigger: function (type) { var _h = this._$handlers[type]; var eventProcessor = this._$eventProcessor; if (_h) { var args = arguments; var argLen = args.length; if (argLen > 3) { args = arrySlice.call(args, 1); } var len = _h.length; for (var i = 0; i < len;) { var hItem = _h[i]; if (eventProcessor && eventProcessor.filter && hItem.query != null && !eventProcessor.filter(type, hItem.query) ) { i++; continue; } // Optimize advise from backbone switch (argLen) { case 1: hItem.h.call(hItem.ctx); break; case 2: hItem.h.call(hItem.ctx, args[1]); break; case 3: hItem.h.call(hItem.ctx, args[1], args[2]); break; default: // have more than 2 given arguments hItem.h.apply(hItem.ctx, args); break; } if (hItem.one) { _h.splice(i, 1); len--; } else { i++; } } } eventProcessor && eventProcessor.afterTrigger && eventProcessor.afterTrigger(type); return this; }, /** * Dispatch a event with context, which is specified at the last parameter. * * @param {string} type The event name. */ triggerWithContext: function (type) { var _h = this._$handlers[type]; var eventProcessor = this._$eventProcessor; if (_h) { var args = arguments; var argLen = args.length; if (argLen > 4) { args = arrySlice.call(args, 1, args.length - 1); } var ctx = args[args.length - 1]; var len = _h.length; for (var i = 0; i < len;) { var hItem = _h[i]; if (eventProcessor && eventProcessor.filter && hItem.query != null && !eventProcessor.filter(type, hItem.query) ) { i++; continue; } // Optimize advise from backbone switch (argLen) { case 1: hItem.h.call(ctx); break; case 2: hItem.h.call(ctx, args[1]); break; case 3: hItem.h.call(ctx, args[1], args[2]); break; default: // have more than 2 given arguments hItem.h.apply(ctx, args); break; } if (hItem.one) { _h.splice(i, 1); len--; } else { i++; } } } eventProcessor && eventProcessor.afterTrigger && eventProcessor.afterTrigger(type); return this; } }; function normalizeQuery(host, query) { var eventProcessor = host._$eventProcessor; if (query != null && eventProcessor && eventProcessor.normalizeQuery) { query = eventProcessor.normalizeQuery(query); } return query; } function on(eventful, event, query, handler, context, isOnce) { var _h = eventful._$handlers; if (typeof query === 'function') { context = handler; handler = query; query = null; } if (!handler || !event) { return eventful; } query = normalizeQuery(eventful, query); if (!_h[event]) { _h[event] = []; } for (var i = 0; i < _h[event].length; i++) { if (_h[event][i].h === handler) { return eventful; } } var wrap = { h: handler, one: isOnce, query: query, ctx: context || eventful, // FIXME // Do not publish this feature util it is proved that it makes sense. callAtLast: handler.zrEventfulCallAtLast }; var lastIndex = _h[event].length - 1; var lastWrap = _h[event][lastIndex]; (lastWrap && lastWrap.callAtLast) ? _h[event].splice(lastIndex, 0, wrap) : _h[event].push(wrap); return eventful; } /** * The algoritm is learnt from * https://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/ * And we made some optimization for matrix inversion. * Other similar approaches: * "cv::getPerspectiveTransform", "Direct Linear Transformation". */ var LN2 = Math.log(2); function determinant(rows, rank, rowStart, rowMask, colMask, detCache) { var cacheKey = rowMask + '-' + colMask; var fullRank = rows.length; if (detCache.hasOwnProperty(cacheKey)) { return detCache[cacheKey]; } if (rank === 1) { // In this case the colMask must be like: `11101111`. We can find the place of `0`. var colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2); return rows[rowStart][colStart]; } var subRowMask = rowMask | (1 << rowStart); var subRowStart = rowStart + 1; while (rowMask & (1 << subRowStart)) { subRowStart++; } var sum = 0; for (var j = 0, colLocalIdx = 0; j < fullRank; j++) { var colTag = 1 << j; if (!(colTag & colMask)) { sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j] // det(subMatrix(0, j)) * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache); colLocalIdx++; } } detCache[cacheKey] = sum; return sum; } /** * Usage: * ```js * var transformer = buildTransformer( * [10, 44, 100, 44, 100, 300, 10, 300], * [50, 54, 130, 14, 140, 330, 14, 220] * ); * var out = []; * transformer && transformer([11, 33], out); * ``` * * Notice: `buildTransformer` may take more than 10ms in some Android device. * * @param {Array.} src source four points, [x0, y0, x1, y1, x2, y2, x3, y3] * @param {Array.} dest destination four points, [x0, y0, x1, y1, x2, y2, x3, y3] * @return {Function} transformer If fail, return null/undefined. */ function buildTransformer(src, dest) { var mA = [ [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]], [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]], [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]], [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]], [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]], [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]], [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]], [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]] ]; var detCache = {}; var det = determinant(mA, 8, 0, 0, 0, detCache); if (det === 0) { return; } // `invert(mA) * dest`, that is, `adj(mA) / det * dest`. var vh = []; for (var i = 0; i < 8; i++) { for (var j = 0; j < 8; j++) { vh[j] == null && (vh[j] = 0); vh[j] += ((i + j) % 2 ? -1 : 1) // det(subMatrix(i, j)) * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache) / det * dest[i]; } } return function (out, srcPointX, srcPointY) { var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1; out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk; out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk; }; } /** * Utilities for mouse or touch events. */ var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener; var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/; var EVENT_SAVED_PROP = '___zrEVENTSAVED'; var _calcOut = []; /** * Get the `zrX` and `zrY`, which are relative to the top-left of * the input `el`. * CSS transform (2D & 3D) is supported. * * The strategy to fetch the coords: * + If `calculate` is not set as `true`, users of this method should * ensure that `el` is the same or the same size & location as `e.target`. * Otherwise the result coords are probably not expected. Because we * firstly try to get coords from e.offsetX/e.offsetY. * + If `calculate` is set as `true`, the input `el` can be any element * and we force to calculate the coords based on `el`. * + The input `el` should be positionable (not position:static). * * The force `calculate` can be used in case like: * When mousemove event triggered on ec tooltip, `e.target` is not `el`(zr painter.dom). * * @param {HTMLElement} el DOM element. * @param {Event} e Mouse event or touch event. * @param {Object} out Get `out.zrX` and `out.zrY` as the result. * @param {boolean} [calculate=false] Whether to force calculate * the coordinates but not use ones provided by browser. */ function clientToLocal(el, e, out, calculate) { out = out || {}; // According to the W3C Working Draft, offsetX and offsetY should be relative // to the padding edge of the target element. The only browser using this convention // is IE. Webkit uses the border edge, Opera uses the content edge, and FireFox does // not support the properties. // (see http://www.jacklmoore.com/notes/mouse-position/) // In zr painter.dom, padding edge equals to border edge. if (calculate || !env$1.canvasSupported) { calculateZrXY(el, e, out); } // Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned // ancestor element, so we should make sure el is positioned (e.g., not position:static). // BTW1, Webkit don't return the same results as FF in non-simple cases (like add // zoom-factor, overflow / opacity layers, transforms ...) // BTW2, (ev.offsetY || ev.pageY - $(ev.target).offset().top) is not correct in preserve-3d. // // BTW3, In ff, offsetX/offsetY is always 0. else if (env$1.browser.firefox && e.layerX != null && e.layerX !== e.offsetX) { out.zrX = e.layerX; out.zrY = e.layerY; } // For IE6+, chrome, safari, opera. (When will ff support offsetX?) else if (e.offsetX != null) { out.zrX = e.offsetX; out.zrY = e.offsetY; } // For some other device, e.g., IOS safari. else { calculateZrXY(el, e, out); } return out; } function calculateZrXY(el, e, out) { // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect. if (el.getBoundingClientRect && env$1.domSupported) { var ex = e.clientX; var ey = e.clientY; if (el.nodeName.toUpperCase() === 'CANVAS') { // Original approach, which do not support CSS transform. // marker can not be locationed in a canvas container // (getBoundingClientRect is always 0). We do not support // that input a pre-created canvas to zr while using css // transform in iOS. var box = el.getBoundingClientRect(); out.zrX = ex - box.left; out.zrY = ey - box.top; return; } else { var saved = el[EVENT_SAVED_PROP] || (el[EVENT_SAVED_PROP] = {}); var transformer = preparePointerTransformer(prepareCoordMarkers(el, saved), saved); if (transformer) { transformer(_calcOut, ex, ey); out.zrX = _calcOut[0]; out.zrY = _calcOut[1]; return; } } } out.zrX = out.zrY = 0; } function prepareCoordMarkers(el, saved) { var markers = saved.markers; if (markers) { return markers; } markers = saved.markers = []; var propLR = ['left', 'right']; var propTB = ['top', 'bottom']; for (var i = 0; i < 4; i++) { var marker = document.createElement('div'); var stl = marker.style; var idxLR = i % 2; var idxTB = (i >> 1) % 2; stl.cssText = [ 'position:absolute', 'visibility: hidden', 'padding: 0', 'margin: 0', 'border-width: 0', 'width:0', 'height:0', // 'width: 5px', // 'height: 5px', propLR[idxLR] + ':0', propTB[idxTB] + ':0', propLR[1 - idxLR] + ':auto', propTB[1 - idxTB] + ':auto', '' ].join('!important;'); el.appendChild(marker); markers.push(marker); } return markers; } function preparePointerTransformer(markers, saved) { var transformer = saved.transformer; var oldSrcCoords = saved.srcCoords; var useOld = true; var srcCoords = []; var destCoords = []; for (var i = 0; i < 4; i++) { var rect = markers[i].getBoundingClientRect(); var ii = 2 * i; var x = rect.left; var y = rect.top; srcCoords.push(x, y); useOld &= oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1]; destCoords.push(markers[i].offsetLeft, markers[i].offsetTop); } // Cache to avoid time consuming of `buildTransformer`. return useOld ? transformer : ( saved.srcCoords = srcCoords, saved.transformer = buildTransformer(srcCoords, destCoords) ); } /** * Normalize the coordinates of the input event. * * Get the `e.zrX` and `e.zrY`, which are relative to the top-left of * the input `el`. * Get `e.zrDelta` if using mouse wheel. * Get `e.which`, see the comment inside this function. * * Do not calculate repeatly if `zrX` and `zrY` already exist. * * Notice: see comments in `clientToLocal`. check the relationship * between the result coords and the parameters `el` and `calculate`. * * @param {HTMLElement} el DOM element. * @param {Event} [e] Mouse event or touch event. For lagency IE, * do not need to input it and `window.event` is used. * @param {boolean} [calculate=false] Whether to force calculate * the coordinates but not use ones provided by browser. */ function normalizeEvent(el, e, calculate) { e = e || window.event; if (e.zrX != null) { return e; } var eventType = e.type; var isTouch = eventType && eventType.indexOf('touch') >= 0; if (!isTouch) { clientToLocal(el, e, e, calculate); e.zrDelta = (e.wheelDelta) ? e.wheelDelta / 120 : -(e.detail || 0) / 3; } else { var touch = eventType !== 'touchend' ? e.targetTouches[0] : e.changedTouches[0]; touch && clientToLocal(el, touch, e, calculate); } // Add which for click: 1 === left; 2 === middle; 3 === right; otherwise: 0; // See jQuery: https://github.com/jquery/jquery/blob/master/src/event.js // If e.which has been defined, it may be readonly, // see: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which var button = e.button; if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) { e.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0))); } // [Caution]: `e.which` from browser is not always reliable. For example, // when press left button and `mousemove (pointermove)` in Edge, the `e.which` // is 65536 and the `e.button` is -1. But the `mouseup (pointerup)` and // `mousedown (pointerdown)` is the same as Chrome does. return e; } /** * @param {HTMLElement} el * @param {string} name * @param {Function} handler */ function addEventListener(el, name, handler) { if (isDomLevel2) { // Reproduct the console warning: // [Violation] Added non-passive event listener to a scroll-blocking event. // Consider marking event handler as 'passive' to make the page more responsive. // Just set console log level: verbose in chrome dev tool. // then the warning log will be printed when addEventListener called. // See https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md // We have not yet found a neat way to using passive. Because in zrender the dom event // listener delegate all of the upper events of element. Some of those events need // to prevent default. For example, the feature `preventDefaultMouseMove` of echarts. // Before passive can be adopted, these issues should be considered: // (1) Whether and how a zrender user specifies an event listener passive. And by default, // passive or not. // (2) How to tread that some zrender event listener is passive, and some is not. If // we use other way but not preventDefault of mousewheel and touchmove, browser // compatibility should be handled. // var opts = (env.passiveSupported && name === 'mousewheel') // ? {passive: true} // // By default, the third param of el.addEventListener is `capture: false`. // : void 0; // el.addEventListener(name, handler /* , opts */); el.addEventListener(name, handler); } else { el.attachEvent('on' + name, handler); } } function removeEventListener(el, name, handler) { if (isDomLevel2) { el.removeEventListener(name, handler); } else { el.detachEvent('on' + name, handler); } } /** * preventDefault and stopPropagation. * Notice: do not use this method in zrender. It can only be * used by upper applications if necessary. * * @param {Event} e A mouse or touch event. */ var stop = isDomLevel2 ? function (e) { e.preventDefault(); e.stopPropagation(); e.cancelBubble = true; } : function (e) { e.returnValue = false; e.cancelBubble = true; }; /** * This method only works for mouseup and mousedown. The functionality is restricted * for fault tolerance, See the `e.which` compatibility above. * * @param {MouseEvent} e * @return {boolean} */ function isMiddleOrRightButtonOnMouseUpDown(e) { return e.which === 2 || e.which === 3; } /** * To be removed. * @deprecated */ /** * Only implements needed gestures for mobile. */ var GestureMgr = function () { /** * @private * @type {Array.} */ this._track = []; }; GestureMgr.prototype = { constructor: GestureMgr, recognize: function (event, target, root) { this._doTrack(event, target, root); return this._recognize(event); }, clear: function () { this._track.length = 0; return this; }, _doTrack: function (event, target, root) { var touches = event.touches; if (!touches) { return; } var trackItem = { points: [], touches: [], target: target, event: event }; for (var i = 0, len = touches.length; i < len; i++) { var touch = touches[i]; var pos = clientToLocal(root, touch, {}); trackItem.points.push([pos.zrX, pos.zrY]); trackItem.touches.push(touch); } this._track.push(trackItem); }, _recognize: function (event) { for (var eventName in recognizers) { if (recognizers.hasOwnProperty(eventName)) { var gestureInfo = recognizers[eventName](this._track, event); if (gestureInfo) { return gestureInfo; } } } } }; function dist$1(pointPair) { var dx = pointPair[1][0] - pointPair[0][0]; var dy = pointPair[1][1] - pointPair[0][1]; return Math.sqrt(dx * dx + dy * dy); } function center(pointPair) { return [ (pointPair[0][0] + pointPair[1][0]) / 2, (pointPair[0][1] + pointPair[1][1]) / 2 ]; } var recognizers = { pinch: function (track, event) { var trackLen = track.length; if (!trackLen) { return; } var pinchEnd = (track[trackLen - 1] || {}).points; var pinchPre = (track[trackLen - 2] || {}).points || pinchEnd; if (pinchPre && pinchPre.length > 1 && pinchEnd && pinchEnd.length > 1 ) { var pinchScale = dist$1(pinchEnd) / dist$1(pinchPre); !isFinite(pinchScale) && (pinchScale = 1); event.pinchScale = pinchScale; var pinchCenter = center(pinchEnd); event.pinchX = pinchCenter[0]; event.pinchY = pinchCenter[1]; return { type: 'pinch', target: track[0].target, event: event }; } } // Only pinch currently. }; var SILENT = 'silent'; function makeEventPacket(eveType, targetInfo, event) { return { type: eveType, event: event, // target can only be an element that is not silent. target: targetInfo.target, // topTarget can be a silent element. topTarget: targetInfo.topTarget, cancelBubble: false, offsetX: event.zrX, offsetY: event.zrY, gestureEvent: event.gestureEvent, pinchX: event.pinchX, pinchY: event.pinchY, pinchScale: event.pinchScale, wheelDelta: event.zrDelta, zrByTouch: event.zrByTouch, which: event.which, stop: stopEvent }; } function stopEvent(event) { stop(this.event); } function EmptyProxy() {} EmptyProxy.prototype.dispose = function () {}; var handlerNames = [ 'click', 'dblclick', 'mousewheel', 'mouseout', 'mouseup', 'mousedown', 'mousemove', 'contextmenu' ]; /** * @alias module:zrender/Handler * @constructor * @extends module:zrender/mixin/Eventful * @param {module:zrender/Storage} storage Storage instance. * @param {module:zrender/Painter} painter Painter instance. * @param {module:zrender/dom/HandlerProxy} proxy HandlerProxy instance. * @param {HTMLElement} painterRoot painter.root (not painter.getViewportRoot()). */ var Handler = function (storage, painter, proxy, painterRoot) { Eventful.call(this); this.storage = storage; this.painter = painter; this.painterRoot = painterRoot; proxy = proxy || new EmptyProxy(); /** * Proxy of event. can be Dom, WebGLSurface, etc. */ this.proxy = null; /** * {target, topTarget, x, y} * @private * @type {Object} */ this._hovered = {}; /** * @private * @type {Date} */ this._lastTouchMoment; /** * @private * @type {number} */ this._lastX; /** * @private * @type {number} */ this._lastY; /** * @private * @type {module:zrender/core/GestureMgr} */ this._gestureMgr; Draggable.call(this); this.setHandlerProxy(proxy); }; Handler.prototype = { constructor: Handler, setHandlerProxy: function (proxy) { if (this.proxy) { this.proxy.dispose(); } if (proxy) { each$1(handlerNames, function (name) { proxy.on && proxy.on(name, this[name], this); }, this); // Attach handler proxy.handler = this; } this.proxy = proxy; }, mousemove: function (event) { var x = event.zrX; var y = event.zrY; var lastHovered = this._hovered; var lastHoveredTarget = lastHovered.target; // If lastHoveredTarget is removed from zr (detected by '__zr') by some API call // (like 'setOption' or 'dispatchAction') in event handlers, we should find // lastHovered again here. Otherwise 'mouseout' can not be triggered normally. // See #6198. if (lastHoveredTarget && !lastHoveredTarget.__zr) { lastHovered = this.findHover(lastHovered.x, lastHovered.y); lastHoveredTarget = lastHovered.target; } var hovered = this._hovered = this.findHover(x, y); var hoveredTarget = hovered.target; var proxy = this.proxy; proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default'); // Mouse out on previous hovered element if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) { this.dispatchToElement(lastHovered, 'mouseout', event); } // Mouse moving on one element this.dispatchToElement(hovered, 'mousemove', event); // Mouse over on a new element if (hoveredTarget && hoveredTarget !== lastHoveredTarget) { this.dispatchToElement(hovered, 'mouseover', event); } }, mouseout: function (event) { this.dispatchToElement(this._hovered, 'mouseout', event); // There might be some doms created by upper layer application // at the same level of painter.getViewportRoot() (e.g., tooltip // dom created by echarts), where 'globalout' event should not // be triggered when mouse enters these doms. (But 'mouseout' // should be triggered at the original hovered element as usual). var element = event.toElement || event.relatedTarget; var innerDom; do { element = element && element.parentNode; } while (element && element.nodeType !== 9 && !( innerDom = element === this.painterRoot )); !innerDom && this.trigger('globalout', {event: event}); }, /** * Resize */ resize: function (event) { this._hovered = {}; }, /** * Dispatch event * @param {string} eventName * @param {event=} eventArgs */ dispatch: function (eventName, eventArgs) { var handler = this[eventName]; handler && handler.call(this, eventArgs); }, /** * Dispose */ dispose: function () { this.proxy.dispose(); this.storage = this.proxy = this.painter = null; }, /** * 设置默认的cursor style * @param {string} [cursorStyle='default'] 例如 crosshair */ setCursorStyle: function (cursorStyle) { var proxy = this.proxy; proxy.setCursor && proxy.setCursor(cursorStyle); }, /** * 事件分发代理 * * @private * @param {Object} targetInfo {target, topTarget} 目标图形元素 * @param {string} eventName 事件名称 * @param {Object} event 事件对象 */ dispatchToElement: function (targetInfo, eventName, event) { targetInfo = targetInfo || {}; var el = targetInfo.target; if (el && el.silent) { return; } var eventHandler = 'on' + eventName; var eventPacket = makeEventPacket(eventName, targetInfo, event); while (el) { el[eventHandler] && (eventPacket.cancelBubble = el[eventHandler].call(el, eventPacket)); el.trigger(eventName, eventPacket); el = el.parent; if (eventPacket.cancelBubble) { break; } } if (!eventPacket.cancelBubble) { // 冒泡到顶级 zrender 对象 this.trigger(eventName, eventPacket); // 分发事件到用户自定义层 // 用户有可能在全局 click 事件中 dispose,所以需要判断下 painter 是否存在 this.painter && this.painter.eachOtherLayer(function (layer) { if (typeof (layer[eventHandler]) === 'function') { layer[eventHandler].call(layer, eventPacket); } if (layer.trigger) { layer.trigger(eventName, eventPacket); } }); } }, /** * @private * @param {number} x * @param {number} y * @param {module:zrender/graphic/Displayable} exclude * @return {model:zrender/Element} * @method */ findHover: function (x, y, exclude) { var list = this.storage.getDisplayList(); var out = {x: x, y: y}; for (var i = list.length - 1; i >= 0; i--) { var hoverCheckResult; if (list[i] !== exclude // getDisplayList may include ignored item in VML mode && !list[i].ignore && (hoverCheckResult = isHover(list[i], x, y)) ) { !out.topTarget && (out.topTarget = list[i]); if (hoverCheckResult !== SILENT) { out.target = list[i]; break; } } } return out; }, processGesture: function (event, stage) { if (!this._gestureMgr) { this._gestureMgr = new GestureMgr(); } var gestureMgr = this._gestureMgr; stage === 'start' && gestureMgr.clear(); var gestureInfo = gestureMgr.recognize( event, this.findHover(event.zrX, event.zrY, null).target, this.proxy.dom ); stage === 'end' && gestureMgr.clear(); // Do not do any preventDefault here. Upper application do that if necessary. if (gestureInfo) { var type = gestureInfo.type; event.gestureEvent = type; this.dispatchToElement({target: gestureInfo.target}, type, gestureInfo.event); } } }; // Common handlers each$1(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) { Handler.prototype[name] = function (event) { // Find hover again to avoid click event is dispatched manually. Or click is triggered without mouseover var hovered = this.findHover(event.zrX, event.zrY); var hoveredTarget = hovered.target; if (name === 'mousedown') { this._downEl = hoveredTarget; this._downPoint = [event.zrX, event.zrY]; // In case click triggered before mouseup this._upEl = hoveredTarget; } else if (name === 'mouseup') { this._upEl = hoveredTarget; } else if (name === 'click') { if (this._downEl !== this._upEl // Original click event is triggered on the whole canvas element, // including the case that `mousedown` - `mousemove` - `mouseup`, // which should be filtered, otherwise it will bring trouble to // pan and zoom. || !this._downPoint // Arbitrary value || dist(this._downPoint, [event.zrX, event.zrY]) > 4 ) { return; } this._downPoint = null; } this.dispatchToElement(hovered, name, event); }; }); function isHover(displayable, x, y) { if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) { var el = displayable; var isSilent; while (el) { // If clipped by ancestor. // FIXME: If clipPath has neither stroke nor fill, // el.clipPath.contain(x, y) will always return false. if (el.clipPath && !el.clipPath.contain(x, y)) { return false; } if (el.silent) { isSilent = true; } el = el.parent; } return isSilent ? SILENT : true; } return false; } mixin(Handler, Eventful); mixin(Handler, Draggable); /** * 3x2矩阵操作类 * @exports zrender/tool/matrix */ var ArrayCtor$1 = typeof Float32Array === 'undefined' ? Array : Float32Array; /** * Create a identity matrix. * @return {Float32Array|Array.} */ function create$1() { var out = new ArrayCtor$1(6); identity(out); return out; } /** * 设置矩阵为单位矩阵 * @param {Float32Array|Array.} out */ function identity(out) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 1; out[4] = 0; out[5] = 0; return out; } /** * 复制矩阵 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} m */ function copy$1(out, m) { out[0] = m[0]; out[1] = m[1]; out[2] = m[2]; out[3] = m[3]; out[4] = m[4]; out[5] = m[5]; return out; } /** * 矩阵相乘 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} m1 * @param {Float32Array|Array.} m2 */ function mul$1(out, m1, m2) { // Consider matrix.mul(m, m2, m); // where out is the same as m2. // So use temp variable to escape error. var out0 = m1[0] * m2[0] + m1[2] * m2[1]; var out1 = m1[1] * m2[0] + m1[3] * m2[1]; var out2 = m1[0] * m2[2] + m1[2] * m2[3]; var out3 = m1[1] * m2[2] + m1[3] * m2[3]; var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4]; var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5]; out[0] = out0; out[1] = out1; out[2] = out2; out[3] = out3; out[4] = out4; out[5] = out5; return out; } /** * 平移变换 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} a * @param {Float32Array|Array.} v */ function translate(out, a, v) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4] + v[0]; out[5] = a[5] + v[1]; return out; } /** * 旋转变换 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} a * @param {number} rad */ function rotate(out, a, rad) { var aa = a[0]; var ac = a[2]; var atx = a[4]; var ab = a[1]; var ad = a[3]; var aty = a[5]; var st = Math.sin(rad); var ct = Math.cos(rad); out[0] = aa * ct + ab * st; out[1] = -aa * st + ab * ct; out[2] = ac * ct + ad * st; out[3] = -ac * st + ct * ad; out[4] = ct * atx + st * aty; out[5] = ct * aty - st * atx; return out; } /** * 缩放变换 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} a * @param {Float32Array|Array.} v */ function scale$1(out, a, v) { var vx = v[0]; var vy = v[1]; out[0] = a[0] * vx; out[1] = a[1] * vy; out[2] = a[2] * vx; out[3] = a[3] * vy; out[4] = a[4] * vx; out[5] = a[5] * vy; return out; } /** * 求逆矩阵 * @param {Float32Array|Array.} out * @param {Float32Array|Array.} a */ function invert(out, a) { var aa = a[0]; var ac = a[2]; var atx = a[4]; var ab = a[1]; var ad = a[3]; var aty = a[5]; var det = aa * ad - ab * ac; if (!det) { return null; } det = 1.0 / det; out[0] = ad * det; out[1] = -ab * det; out[2] = -ac * det; out[3] = aa * det; out[4] = (ac * aty - ad * atx) * det; out[5] = (ab * atx - aa * aty) * det; return out; } /** * Clone a new matrix. * @param {Float32Array|Array.} a */ function clone$2(a) { var b = create$1(); copy$1(b, a); return b; } var matrix = (Object.freeze || Object)({ create: create$1, identity: identity, copy: copy$1, mul: mul$1, translate: translate, rotate: rotate, scale: scale$1, invert: invert, clone: clone$2 }); /** * 提供变换扩展 * @module zrender/mixin/Transformable * @author pissang (https://www.github.com/pissang) */ var mIdentity = identity; var EPSILON = 5e-5; function isNotAroundZero(val) { return val > EPSILON || val < -EPSILON; } /** * @alias module:zrender/mixin/Transformable * @constructor */ var Transformable = function (opts) { opts = opts || {}; // If there are no given position, rotation, scale if (!opts.position) { /** * 平移 * @type {Array.} * @default [0, 0] */ this.position = [0, 0]; } if (opts.rotation == null) { /** * 旋转 * @type {Array.} * @default 0 */ this.rotation = 0; } if (!opts.scale) { /** * 缩放 * @type {Array.} * @default [1, 1] */ this.scale = [1, 1]; } /** * 旋转和缩放的原点 * @type {Array.} * @default null */ this.origin = this.origin || null; }; var transformableProto = Transformable.prototype; transformableProto.transform = null; /** * 判断是否需要有坐标变换 * 如果有坐标变换, 则从position, rotation, scale以及父节点的transform计算出自身的transform矩阵 */ transformableProto.needLocalTransform = function () { return isNotAroundZero(this.rotation) || isNotAroundZero(this.position[0]) || isNotAroundZero(this.position[1]) || isNotAroundZero(this.scale[0] - 1) || isNotAroundZero(this.scale[1] - 1); }; var scaleTmp = []; transformableProto.updateTransform = function () { var parent = this.parent; var parentHasTransform = parent && parent.transform; var needLocalTransform = this.needLocalTransform(); var m = this.transform; if (!(needLocalTransform || parentHasTransform)) { m && mIdentity(m); return; } m = m || create$1(); if (needLocalTransform) { this.getLocalTransform(m); } else { mIdentity(m); } // 应用父节点变换 if (parentHasTransform) { if (needLocalTransform) { mul$1(m, parent.transform, m); } else { copy$1(m, parent.transform); } } // 保存这个变换矩阵 this.transform = m; var globalScaleRatio = this.globalScaleRatio; if (globalScaleRatio != null && globalScaleRatio !== 1) { this.getGlobalScale(scaleTmp); var relX = scaleTmp[0] < 0 ? -1 : 1; var relY = scaleTmp[1] < 0 ? -1 : 1; var sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0; var sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0; m[0] *= sx; m[1] *= sx; m[2] *= sy; m[3] *= sy; } this.invTransform = this.invTransform || create$1(); invert(this.invTransform, m); }; transformableProto.getLocalTransform = function (m) { return Transformable.getLocalTransform(this, m); }; /** * 将自己的transform应用到context上 * @param {CanvasRenderingContext2D} ctx */ transformableProto.setTransform = function (ctx) { var m = this.transform; var dpr = ctx.dpr || 1; if (m) { ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]); } else { ctx.setTransform(dpr, 0, 0, dpr, 0, 0); } }; transformableProto.restoreTransform = function (ctx) { var dpr = ctx.dpr || 1; ctx.setTransform(dpr, 0, 0, dpr, 0, 0); }; var tmpTransform = []; var originTransform = create$1(); transformableProto.setLocalTransform = function (m) { if (!m) { // TODO return or set identity? return; } var sx = m[0] * m[0] + m[1] * m[1]; var sy = m[2] * m[2] + m[3] * m[3]; var position = this.position; var scale$$1 = this.scale; if (isNotAroundZero(sx - 1)) { sx = Math.sqrt(sx); } if (isNotAroundZero(sy - 1)) { sy = Math.sqrt(sy); } if (m[0] < 0) { sx = -sx; } if (m[3] < 0) { sy = -sy; } position[0] = m[4]; position[1] = m[5]; scale$$1[0] = sx; scale$$1[1] = sy; this.rotation = Math.atan2(-m[1] / sy, m[0] / sx); }; /** * 分解`transform`矩阵到`position`, `rotation`, `scale` */ transformableProto.decomposeTransform = function () { if (!this.transform) { return; } var parent = this.parent; var m = this.transform; if (parent && parent.transform) { // Get local transform and decompose them to position, scale, rotation mul$1(tmpTransform, parent.invTransform, m); m = tmpTransform; } var origin = this.origin; if (origin && (origin[0] || origin[1])) { originTransform[4] = origin[0]; originTransform[5] = origin[1]; mul$1(tmpTransform, m, originTransform); tmpTransform[4] -= origin[0]; tmpTransform[5] -= origin[1]; m = tmpTransform; } this.setLocalTransform(m); }; /** * Get global scale * @return {Array.} */ transformableProto.getGlobalScale = function (out) { var m = this.transform; out = out || []; if (!m) { out[0] = 1; out[1] = 1; return out; } out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]); out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]); if (m[0] < 0) { out[0] = -out[0]; } if (m[3] < 0) { out[1] = -out[1]; } return out; }; /** * 变换坐标位置到 shape 的局部坐标空间 * @method * @param {number} x * @param {number} y * @return {Array.} */ transformableProto.transformCoordToLocal = function (x, y) { var v2 = [x, y]; var invTransform = this.invTransform; if (invTransform) { applyTransform(v2, v2, invTransform); } return v2; }; /** * 变换局部坐标位置到全局坐标空间 * @method * @param {number} x * @param {number} y * @return {Array.} */ transformableProto.transformCoordToGlobal = function (x, y) { var v2 = [x, y]; var transform = this.transform; if (transform) { applyTransform(v2, v2, transform); } return v2; }; /** * @static * @param {Object} target * @param {Array.} target.origin * @param {number} target.rotation * @param {Array.} target.position * @param {Array.} [m] */ Transformable.getLocalTransform = function (target, m) { m = m || []; mIdentity(m); var origin = target.origin; var scale$$1 = target.scale || [1, 1]; var rotation = target.rotation || 0; var position = target.position || [0, 0]; if (origin) { // Translate to origin m[4] -= origin[0]; m[5] -= origin[1]; } scale$1(m, m, scale$$1); if (rotation) { rotate(m, m, rotation); } if (origin) { // Translate back from origin m[4] += origin[0]; m[5] += origin[1]; } m[4] += position[0]; m[5] += position[1]; return m; }; /** * 缓动代码来自 https://github.com/sole/tween.js/blob/master/src/Tween.js * @see http://sole.github.io/tween.js/examples/03_graphs.html * @exports zrender/animation/easing */ var easing = { /** * @param {number} k * @return {number} */ linear: function (k) { return k; }, /** * @param {number} k * @return {number} */ quadraticIn: function (k) { return k * k; }, /** * @param {number} k * @return {number} */ quadraticOut: function (k) { return k * (2 - k); }, /** * @param {number} k * @return {number} */ quadraticInOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k; } return -0.5 * (--k * (k - 2) - 1); }, // 三次方的缓动(t^3) /** * @param {number} k * @return {number} */ cubicIn: function (k) { return k * k * k; }, /** * @param {number} k * @return {number} */ cubicOut: function (k) { return --k * k * k + 1; }, /** * @param {number} k * @return {number} */ cubicInOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k; } return 0.5 * ((k -= 2) * k * k + 2); }, // 四次方的缓动(t^4) /** * @param {number} k * @return {number} */ quarticIn: function (k) { return k * k * k * k; }, /** * @param {number} k * @return {number} */ quarticOut: function (k) { return 1 - (--k * k * k * k); }, /** * @param {number} k * @return {number} */ quarticInOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k * k; } return -0.5 * ((k -= 2) * k * k * k - 2); }, // 五次方的缓动(t^5) /** * @param {number} k * @return {number} */ quinticIn: function (k) { return k * k * k * k * k; }, /** * @param {number} k * @return {number} */ quinticOut: function (k) { return --k * k * k * k * k + 1; }, /** * @param {number} k * @return {number} */ quinticInOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k * k * k; } return 0.5 * ((k -= 2) * k * k * k * k + 2); }, // 正弦曲线的缓动(sin(t)) /** * @param {number} k * @return {number} */ sinusoidalIn: function (k) { return 1 - Math.cos(k * Math.PI / 2); }, /** * @param {number} k * @return {number} */ sinusoidalOut: function (k) { return Math.sin(k * Math.PI / 2); }, /** * @param {number} k * @return {number} */ sinusoidalInOut: function (k) { return 0.5 * (1 - Math.cos(Math.PI * k)); }, // 指数曲线的缓动(2^t) /** * @param {number} k * @return {number} */ exponentialIn: function (k) { return k === 0 ? 0 : Math.pow(1024, k - 1); }, /** * @param {number} k * @return {number} */ exponentialOut: function (k) { return k === 1 ? 1 : 1 - Math.pow(2, -10 * k); }, /** * @param {number} k * @return {number} */ exponentialInOut: function (k) { if (k === 0) { return 0; } if (k === 1) { return 1; } if ((k *= 2) < 1) { return 0.5 * Math.pow(1024, k - 1); } return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2); }, // 圆形曲线的缓动(sqrt(1-t^2)) /** * @param {number} k * @return {number} */ circularIn: function (k) { return 1 - Math.sqrt(1 - k * k); }, /** * @param {number} k * @return {number} */ circularOut: function (k) { return Math.sqrt(1 - (--k * k)); }, /** * @param {number} k * @return {number} */ circularInOut: function (k) { if ((k *= 2) < 1) { return -0.5 * (Math.sqrt(1 - k * k) - 1); } return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1); }, // 创建类似于弹簧在停止前来回振荡的动画 /** * @param {number} k * @return {number} */ elasticIn: function (k) { var s; var a = 0.1; var p = 0.4; if (k === 0) { return 0; } if (k === 1) { return 1; } if (!a || a < 1) { a = 1; s = p / 4; } else { s = p * Math.asin(1 / a) / (2 * Math.PI); } return -(a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p)); }, /** * @param {number} k * @return {number} */ elasticOut: function (k) { var s; var a = 0.1; var p = 0.4; if (k === 0) { return 0; } if (k === 1) { return 1; } if (!a || a < 1) { a = 1; s = p / 4; } else { s = p * Math.asin(1 / a) / (2 * Math.PI); } return (a * Math.pow(2, -10 * k) * Math.sin((k - s) * (2 * Math.PI) / p) + 1); }, /** * @param {number} k * @return {number} */ elasticInOut: function (k) { var s; var a = 0.1; var p = 0.4; if (k === 0) { return 0; } if (k === 1) { return 1; } if (!a || a < 1) { a = 1; s = p / 4; } else { s = p * Math.asin(1 / a) / (2 * Math.PI); } if ((k *= 2) < 1) { return -0.5 * (a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p)); } return a * Math.pow(2, -10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1; }, // 在某一动画开始沿指示的路径进行动画处理前稍稍收回该动画的移动 /** * @param {number} k * @return {number} */ backIn: function (k) { var s = 1.70158; return k * k * ((s + 1) * k - s); }, /** * @param {number} k * @return {number} */ backOut: function (k) { var s = 1.70158; return --k * k * ((s + 1) * k + s) + 1; }, /** * @param {number} k * @return {number} */ backInOut: function (k) { var s = 1.70158 * 1.525; if ((k *= 2) < 1) { return 0.5 * (k * k * ((s + 1) * k - s)); } return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2); }, // 创建弹跳效果 /** * @param {number} k * @return {number} */ bounceIn: function (k) { return 1 - easing.bounceOut(1 - k); }, /** * @param {number} k * @return {number} */ bounceOut: function (k) { if (k < (1 / 2.75)) { return 7.5625 * k * k; } else if (k < (2 / 2.75)) { return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75; } else if (k < (2.5 / 2.75)) { return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375; } else { return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375; } }, /** * @param {number} k * @return {number} */ bounceInOut: function (k) { if (k < 0.5) { return easing.bounceIn(k * 2) * 0.5; } return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5; } }; /** * 动画主控制器 * @config target 动画对象,可以是数组,如果是数组的话会批量分发onframe等事件 * @config life(1000) 动画时长 * @config delay(0) 动画延迟时间 * @config loop(true) * @config gap(0) 循环的间隔时间 * @config onframe * @config easing(optional) * @config ondestroy(optional) * @config onrestart(optional) * * TODO pause */ function Clip(options) { this._target = options.target; // 生命周期 this._life = options.life || 1000; // 延时 this._delay = options.delay || 0; // 开始时间 // this._startTime = new Date().getTime() + this._delay;// 单位毫秒 this._initialized = false; // 是否循环 this.loop = options.loop == null ? false : options.loop; this.gap = options.gap || 0; this.easing = options.easing || 'Linear'; this.onframe = options.onframe; this.ondestroy = options.ondestroy; this.onrestart = options.onrestart; this._pausedTime = 0; this._paused = false; } Clip.prototype = { constructor: Clip, step: function (globalTime, deltaTime) { // Set startTime on first step, or _startTime may has milleseconds different between clips // PENDING if (!this._initialized) { this._startTime = globalTime + this._delay; this._initialized = true; } if (this._paused) { this._pausedTime += deltaTime; return; } var percent = (globalTime - this._startTime - this._pausedTime) / this._life; // 还没开始 if (percent < 0) { return; } percent = Math.min(percent, 1); var easing$$1 = this.easing; var easingFunc = typeof easing$$1 === 'string' ? easing[easing$$1] : easing$$1; var schedule = typeof easingFunc === 'function' ? easingFunc(percent) : percent; this.fire('frame', schedule); // 结束 if (percent === 1) { if (this.loop) { this.restart(globalTime); // 重新开始周期 // 抛出而不是直接调用事件直到 stage.update 后再统一调用这些事件 return 'restart'; } // 动画完成将这个控制器标识为待删除 // 在Animation.update中进行批量删除 this._needsRemove = true; return 'destroy'; } return null; }, restart: function (globalTime) { var remainder = (globalTime - this._startTime - this._pausedTime) % this._life; this._startTime = globalTime - remainder + this.gap; this._pausedTime = 0; this._needsRemove = false; }, fire: function (eventType, arg) { eventType = 'on' + eventType; if (this[eventType]) { this[eventType](this._target, arg); } }, pause: function () { this._paused = true; }, resume: function () { this._paused = false; } }; // Simple LRU cache use doubly linked list // @module zrender/core/LRU /** * Simple double linked list. Compared with array, it has O(1) remove operation. * @constructor */ var LinkedList = function () { /** * @type {module:zrender/core/LRU~Entry} */ this.head = null; /** * @type {module:zrender/core/LRU~Entry} */ this.tail = null; this._len = 0; }; var linkedListProto = LinkedList.prototype; /** * Insert a new value at the tail * @param {} val * @return {module:zrender/core/LRU~Entry} */ linkedListProto.insert = function (val) { var entry = new Entry(val); this.insertEntry(entry); return entry; }; /** * Insert an entry at the tail * @param {module:zrender/core/LRU~Entry} entry */ linkedListProto.insertEntry = function (entry) { if (!this.head) { this.head = this.tail = entry; } else { this.tail.next = entry; entry.prev = this.tail; entry.next = null; this.tail = entry; } this._len++; }; /** * Remove entry. * @param {module:zrender/core/LRU~Entry} entry */ linkedListProto.remove = function (entry) { var prev = entry.prev; var next = entry.next; if (prev) { prev.next = next; } else { // Is head this.head = next; } if (next) { next.prev = prev; } else { // Is tail this.tail = prev; } entry.next = entry.prev = null; this._len--; }; /** * @return {number} */ linkedListProto.len = function () { return this._len; }; /** * Clear list */ linkedListProto.clear = function () { this.head = this.tail = null; this._len = 0; }; /** * @constructor * @param {} val */ var Entry = function (val) { /** * @type {} */ this.value = val; /** * @type {module:zrender/core/LRU~Entry} */ this.next; /** * @type {module:zrender/core/LRU~Entry} */ this.prev; }; /** * LRU Cache * @constructor * @alias module:zrender/core/LRU */ var LRU = function (maxSize) { this._list = new LinkedList(); this._map = {}; this._maxSize = maxSize || 10; this._lastRemovedEntry = null; }; var LRUProto = LRU.prototype; /** * @param {string} key * @param {} value * @return {} Removed value */ LRUProto.put = function (key, value) { var list = this._list; var map = this._map; var removed = null; if (map[key] == null) { var len = list.len(); // Reuse last removed entry var entry = this._lastRemovedEntry; if (len >= this._maxSize && len > 0) { // Remove the least recently used var leastUsedEntry = list.head; list.remove(leastUsedEntry); delete map[leastUsedEntry.key]; removed = leastUsedEntry.value; this._lastRemovedEntry = leastUsedEntry; } if (entry) { entry.value = value; } else { entry = new Entry(value); } entry.key = key; list.insertEntry(entry); map[key] = entry; } return removed; }; /** * @param {string} key * @return {} */ LRUProto.get = function (key) { var entry = this._map[key]; var list = this._list; if (entry != null) { // Put the latest used entry in the tail if (entry !== list.tail) { list.remove(entry); list.insertEntry(entry); } return entry.value; } }; /** * Clear the cache */ LRUProto.clear = function () { this._list.clear(); this._map = {}; }; var kCSSColorTable = { 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1], 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1], 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1], 'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1], 'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1], 'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1], 'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1], 'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1], 'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1], 'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1], 'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1], 'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1], 'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1], 'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1], 'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1], 'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1], 'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1], 'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1], 'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1], 'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1], 'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1], 'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1], 'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1], 'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1], 'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1], 'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1], 'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1], 'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1], 'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1], 'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1], 'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1], 'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1], 'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1], 'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1], 'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1], 'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1], 'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1], 'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1], 'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1], 'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1], 'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1], 'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1], 'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1], 'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1], 'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1], 'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1], 'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1], 'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1], 'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1], 'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1], 'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1], 'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1], 'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1], 'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1], 'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1], 'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1], 'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1], 'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1], 'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1], 'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1], 'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1], 'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1], 'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1], 'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1], 'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1], 'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1], 'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1], 'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1], 'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1], 'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1], 'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1], 'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1], 'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1], 'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1] }; function clampCssByte(i) { // Clamp to integer 0 .. 255. i = Math.round(i); // Seems to be what Chrome does (vs truncation). return i < 0 ? 0 : i > 255 ? 255 : i; } function clampCssAngle(i) { // Clamp to integer 0 .. 360. i = Math.round(i); // Seems to be what Chrome does (vs truncation). return i < 0 ? 0 : i > 360 ? 360 : i; } function clampCssFloat(f) { // Clamp to float 0.0 .. 1.0. return f < 0 ? 0 : f > 1 ? 1 : f; } function parseCssInt(str) { // int or percentage. if (str.length && str.charAt(str.length - 1) === '%') { return clampCssByte(parseFloat(str) / 100 * 255); } return clampCssByte(parseInt(str, 10)); } function parseCssFloat(str) { // float or percentage. if (str.length && str.charAt(str.length - 1) === '%') { return clampCssFloat(parseFloat(str) / 100); } return clampCssFloat(parseFloat(str)); } function cssHueToRgb(m1, m2, h) { if (h < 0) { h += 1; } else if (h > 1) { h -= 1; } if (h * 6 < 1) { return m1 + (m2 - m1) * h * 6; } if (h * 2 < 1) { return m2; } if (h * 3 < 2) { return m1 + (m2 - m1) * (2 / 3 - h) * 6; } return m1; } function lerpNumber(a, b, p) { return a + (b - a) * p; } function setRgba(out, r, g, b, a) { out[0] = r; out[1] = g; out[2] = b; out[3] = a; return out; } function copyRgba(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; return out; } var colorCache = new LRU(20); var lastRemovedArr = null; function putToCache(colorStr, rgbaArr) { // Reuse removed array if (lastRemovedArr) { copyRgba(lastRemovedArr, rgbaArr); } lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice())); } /** * @param {string} colorStr * @param {Array.} out * @return {Array.} * @memberOf module:zrender/util/color */ function parse(colorStr, rgbaArr) { if (!colorStr) { return; } rgbaArr = rgbaArr || []; var cached = colorCache.get(colorStr); if (cached) { return copyRgba(rgbaArr, cached); } // colorStr may be not string colorStr = colorStr + ''; // Remove all whitespace, not compliant, but should just be more accepting. var str = colorStr.replace(/ /g, '').toLowerCase(); // Color keywords (and transparent) lookup. if (str in kCSSColorTable) { copyRgba(rgbaArr, kCSSColorTable[str]); putToCache(colorStr, rgbaArr); return rgbaArr; } // #abc and #abc123 syntax. if (str.charAt(0) === '#') { if (str.length === 4) { var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing. if (!(iv >= 0 && iv <= 0xfff)) { setRgba(rgbaArr, 0, 0, 0, 1); return; // Covers NaN. } setRgba(rgbaArr, ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8), (iv & 0xf0) | ((iv & 0xf0) >> 4), (iv & 0xf) | ((iv & 0xf) << 4), 1 ); putToCache(colorStr, rgbaArr); return rgbaArr; } else if (str.length === 7) { var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing. if (!(iv >= 0 && iv <= 0xffffff)) { setRgba(rgbaArr, 0, 0, 0, 1); return; // Covers NaN. } setRgba(rgbaArr, (iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, iv & 0xff, 1 ); putToCache(colorStr, rgbaArr); return rgbaArr; } return; } var op = str.indexOf('('); var ep = str.indexOf(')'); if (op !== -1 && ep + 1 === str.length) { var fname = str.substr(0, op); var params = str.substr(op + 1, ep - (op + 1)).split(','); var alpha = 1; // To allow case fallthrough. switch (fname) { case 'rgba': if (params.length !== 4) { setRgba(rgbaArr, 0, 0, 0, 1); return; } alpha = parseCssFloat(params.pop()); // jshint ignore:line // Fall through. case 'rgb': if (params.length !== 3) { setRgba(rgbaArr, 0, 0, 0, 1); return; } setRgba(rgbaArr, parseCssInt(params[0]), parseCssInt(params[1]), parseCssInt(params[2]), alpha ); putToCache(colorStr, rgbaArr); return rgbaArr; case 'hsla': if (params.length !== 4) { setRgba(rgbaArr, 0, 0, 0, 1); return; } params[3] = parseCssFloat(params[3]); hsla2rgba(params, rgbaArr); putToCache(colorStr, rgbaArr); return rgbaArr; case 'hsl': if (params.length !== 3) { setRgba(rgbaArr, 0, 0, 0, 1); return; } hsla2rgba(params, rgbaArr); putToCache(colorStr, rgbaArr); return rgbaArr; default: return; } } setRgba(rgbaArr, 0, 0, 0, 1); return; } /** * @param {Array.} hsla * @param {Array.} rgba * @return {Array.} rgba */ function hsla2rgba(hsla, rgba) { var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360; // 0 .. 1 // NOTE(deanm): According to the CSS spec s/l should only be // percentages, but we don't bother and let float or percentage. var s = parseCssFloat(hsla[1]); var l = parseCssFloat(hsla[2]); var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s; var m1 = l * 2 - m2; rgba = rgba || []; setRgba(rgba, clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255), clampCssByte(cssHueToRgb(m1, m2, h) * 255), clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255), 1 ); if (hsla.length === 4) { rgba[3] = hsla[3]; } return rgba; } /** * @param {Array.} rgba * @return {Array.} hsla */ function rgba2hsla(rgba) { if (!rgba) { return; } // RGB from 0 to 255 var R = rgba[0] / 255; var G = rgba[1] / 255; var B = rgba[2] / 255; var vMin = Math.min(R, G, B); // Min. value of RGB var vMax = Math.max(R, G, B); // Max. value of RGB var delta = vMax - vMin; // Delta RGB value var L = (vMax + vMin) / 2; var H; var S; // HSL results from 0 to 1 if (delta === 0) { H = 0; S = 0; } else { if (L < 0.5) { S = delta / (vMax + vMin); } else { S = delta / (2 - vMax - vMin); } var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta; var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta; var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta; if (R === vMax) { H = deltaB - deltaG; } else if (G === vMax) { H = (1 / 3) + deltaR - deltaB; } else if (B === vMax) { H = (2 / 3) + deltaG - deltaR; } if (H < 0) { H += 1; } if (H > 1) { H -= 1; } } var hsla = [H * 360, S, L]; if (rgba[3] != null) { hsla.push(rgba[3]); } return hsla; } /** * @param {string} color * @param {number} level * @return {string} * @memberOf module:zrender/util/color */ function lift(color, level) { var colorArr = parse(color); if (colorArr) { for (var i = 0; i < 3; i++) { if (level < 0) { colorArr[i] = colorArr[i] * (1 - level) | 0; } else { colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0; } if (colorArr[i] > 255) { colorArr[i] = 255; } else if (color[i] < 0) { colorArr[i] = 0; } } return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb'); } } /** * @param {string} color * @return {string} * @memberOf module:zrender/util/color */ function toHex(color) { var colorArr = parse(color); if (colorArr) { return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1); } } /** * Map value to color. Faster than lerp methods because color is represented by rgba array. * @param {number} normalizedValue A float between 0 and 1. * @param {Array.>} colors List of rgba color array * @param {Array.} [out] Mapped gba color array * @return {Array.} will be null/undefined if input illegal. */ function fastLerp(normalizedValue, colors, out) { if (!(colors && colors.length) || !(normalizedValue >= 0 && normalizedValue <= 1) ) { return; } out = out || []; var value = normalizedValue * (colors.length - 1); var leftIndex = Math.floor(value); var rightIndex = Math.ceil(value); var leftColor = colors[leftIndex]; var rightColor = colors[rightIndex]; var dv = value - leftIndex; out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)); out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)); out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)); out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv)); return out; } /** * @deprecated */ var fastMapToColor = fastLerp; /** * @param {number} normalizedValue A float between 0 and 1. * @param {Array.} colors Color list. * @param {boolean=} fullOutput Default false. * @return {(string|Object)} Result color. If fullOutput, * return {color: ..., leftIndex: ..., rightIndex: ..., value: ...}, * @memberOf module:zrender/util/color */ function lerp$1(normalizedValue, colors, fullOutput) { if (!(colors && colors.length) || !(normalizedValue >= 0 && normalizedValue <= 1) ) { return; } var value = normalizedValue * (colors.length - 1); var leftIndex = Math.floor(value); var rightIndex = Math.ceil(value); var leftColor = parse(colors[leftIndex]); var rightColor = parse(colors[rightIndex]); var dv = value - leftIndex; var color = stringify( [ clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)), clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)), clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)), clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv)) ], 'rgba' ); return fullOutput ? { color: color, leftIndex: leftIndex, rightIndex: rightIndex, value: value } : color; } /** * @deprecated */ var mapToColor = lerp$1; /** * @param {string} color * @param {number=} h 0 ~ 360, ignore when null. * @param {number=} s 0 ~ 1, ignore when null. * @param {number=} l 0 ~ 1, ignore when null. * @return {string} Color string in rgba format. * @memberOf module:zrender/util/color */ function modifyHSL(color, h, s, l) { color = parse(color); if (color) { color = rgba2hsla(color); h != null && (color[0] = clampCssAngle(h)); s != null && (color[1] = parseCssFloat(s)); l != null && (color[2] = parseCssFloat(l)); return stringify(hsla2rgba(color), 'rgba'); } } /** * @param {string} color * @param {number=} alpha 0 ~ 1 * @return {string} Color string in rgba format. * @memberOf module:zrender/util/color */ function modifyAlpha(color, alpha) { color = parse(color); if (color && alpha != null) { color[3] = clampCssFloat(alpha); return stringify(color, 'rgba'); } } /** * @param {Array.} arrColor like [12,33,44,0.4] * @param {string} type 'rgba', 'hsva', ... * @return {string} Result color. (If input illegal, return undefined). */ function stringify(arrColor, type) { if (!arrColor || !arrColor.length) { return; } var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2]; if (type === 'rgba' || type === 'hsva' || type === 'hsla') { colorStr += ',' + arrColor[3]; } return type + '(' + colorStr + ')'; } var color = (Object.freeze || Object)({ parse: parse, lift: lift, toHex: toHex, fastLerp: fastLerp, fastMapToColor: fastMapToColor, lerp: lerp$1, mapToColor: mapToColor, modifyHSL: modifyHSL, modifyAlpha: modifyAlpha, stringify: stringify }); /** * @module echarts/animation/Animator */ var arraySlice = Array.prototype.slice; function defaultGetter(target, key) { return target[key]; } function defaultSetter(target, key, value) { target[key] = value; } /** * @param {number} p0 * @param {number} p1 * @param {number} percent * @return {number} */ function interpolateNumber(p0, p1, percent) { return (p1 - p0) * percent + p0; } /** * @param {string} p0 * @param {string} p1 * @param {number} percent * @return {string} */ function interpolateString(p0, p1, percent) { return percent > 0.5 ? p1 : p0; } /** * @param {Array} p0 * @param {Array} p1 * @param {number} percent * @param {Array} out * @param {number} arrDim */ function interpolateArray(p0, p1, percent, out, arrDim) { var len = p0.length; if (arrDim === 1) { for (var i = 0; i < len; i++) { out[i] = interpolateNumber(p0[i], p1[i], percent); } } else { var len2 = len && p0[0].length; for (var i = 0; i < len; i++) { for (var j = 0; j < len2; j++) { out[i][j] = interpolateNumber( p0[i][j], p1[i][j], percent ); } } } } // arr0 is source array, arr1 is target array. // Do some preprocess to avoid error happened when interpolating from arr0 to arr1 function fillArr(arr0, arr1, arrDim) { var arr0Len = arr0.length; var arr1Len = arr1.length; if (arr0Len !== arr1Len) { // FIXME Not work for TypedArray var isPreviousLarger = arr0Len > arr1Len; if (isPreviousLarger) { // Cut the previous arr0.length = arr1Len; } else { // Fill the previous for (var i = arr0Len; i < arr1Len; i++) { arr0.push( arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]) ); } } } // Handling NaN value var len2 = arr0[0] && arr0[0].length; for (var i = 0; i < arr0.length; i++) { if (arrDim === 1) { if (isNaN(arr0[i])) { arr0[i] = arr1[i]; } } else { for (var j = 0; j < len2; j++) { if (isNaN(arr0[i][j])) { arr0[i][j] = arr1[i][j]; } } } } } /** * @param {Array} arr0 * @param {Array} arr1 * @param {number} arrDim * @return {boolean} */ function isArraySame(arr0, arr1, arrDim) { if (arr0 === arr1) { return true; } var len = arr0.length; if (len !== arr1.length) { return false; } if (arrDim === 1) { for (var i = 0; i < len; i++) { if (arr0[i] !== arr1[i]) { return false; } } } else { var len2 = arr0[0].length; for (var i = 0; i < len; i++) { for (var j = 0; j < len2; j++) { if (arr0[i][j] !== arr1[i][j]) { return false; } } } } return true; } /** * Catmull Rom interpolate array * @param {Array} p0 * @param {Array} p1 * @param {Array} p2 * @param {Array} p3 * @param {number} t * @param {number} t2 * @param {number} t3 * @param {Array} out * @param {number} arrDim */ function catmullRomInterpolateArray( p0, p1, p2, p3, t, t2, t3, out, arrDim ) { var len = p0.length; if (arrDim === 1) { for (var i = 0; i < len; i++) { out[i] = catmullRomInterpolate( p0[i], p1[i], p2[i], p3[i], t, t2, t3 ); } } else { var len2 = p0[0].length; for (var i = 0; i < len; i++) { for (var j = 0; j < len2; j++) { out[i][j] = catmullRomInterpolate( p0[i][j], p1[i][j], p2[i][j], p3[i][j], t, t2, t3 ); } } } } /** * Catmull Rom interpolate number * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {number} t * @param {number} t2 * @param {number} t3 * @return {number} */ function catmullRomInterpolate(p0, p1, p2, p3, t, t2, t3) { var v0 = (p2 - p0) * 0.5; var v1 = (p3 - p1) * 0.5; return (2 * (p1 - p2) + v0 + v1) * t3 + (-3 * (p1 - p2) - 2 * v0 - v1) * t2 + v0 * t + p1; } function cloneValue(value) { if (isArrayLike(value)) { var len = value.length; if (isArrayLike(value[0])) { var ret = []; for (var i = 0; i < len; i++) { ret.push(arraySlice.call(value[i])); } return ret; } return arraySlice.call(value); } return value; } function rgba2String(rgba) { rgba[0] = Math.floor(rgba[0]); rgba[1] = Math.floor(rgba[1]); rgba[2] = Math.floor(rgba[2]); return 'rgba(' + rgba.join(',') + ')'; } function getArrayDim(keyframes) { var lastValue = keyframes[keyframes.length - 1].value; return isArrayLike(lastValue && lastValue[0]) ? 2 : 1; } function createTrackClip(animator, easing, oneTrackDone, keyframes, propName, forceAnimate) { var getter = animator._getter; var setter = animator._setter; var useSpline = easing === 'spline'; var trackLen = keyframes.length; if (!trackLen) { return; } // Guess data type var firstVal = keyframes[0].value; var isValueArray = isArrayLike(firstVal); var isValueColor = false; var isValueString = false; // For vertices morphing var arrDim = isValueArray ? getArrayDim(keyframes) : 0; var trackMaxTime; // Sort keyframe as ascending keyframes.sort(function (a, b) { return a.time - b.time; }); trackMaxTime = keyframes[trackLen - 1].time; // Percents of each keyframe var kfPercents = []; // Value of each keyframe var kfValues = []; var prevValue = keyframes[0].value; var isAllValueEqual = true; for (var i = 0; i < trackLen; i++) { kfPercents.push(keyframes[i].time / trackMaxTime); // Assume value is a color when it is a string var value = keyframes[i].value; // Check if value is equal, deep check if value is array if (!((isValueArray && isArraySame(value, prevValue, arrDim)) || (!isValueArray && value === prevValue))) { isAllValueEqual = false; } prevValue = value; // Try converting a string to a color array if (typeof value === 'string') { var colorArray = parse(value); if (colorArray) { value = colorArray; isValueColor = true; } else { isValueString = true; } } kfValues.push(value); } if (!forceAnimate && isAllValueEqual) { return; } var lastValue = kfValues[trackLen - 1]; // Polyfill array and NaN value for (var i = 0; i < trackLen - 1; i++) { if (isValueArray) { fillArr(kfValues[i], lastValue, arrDim); } else { if (isNaN(kfValues[i]) && !isNaN(lastValue) && !isValueString && !isValueColor) { kfValues[i] = lastValue; } } } isValueArray && fillArr(getter(animator._target, propName), lastValue, arrDim); // Cache the key of last frame to speed up when // animation playback is sequency var lastFrame = 0; var lastFramePercent = 0; var start; var w; var p0; var p1; var p2; var p3; if (isValueColor) { var rgba = [0, 0, 0, 0]; } var onframe = function (target, percent) { // Find the range keyframes // kf1-----kf2---------current--------kf3 // find kf2 and kf3 and do interpolation var frame; // In the easing function like elasticOut, percent may less than 0 if (percent < 0) { frame = 0; } else if (percent < lastFramePercent) { // Start from next key // PENDING start from lastFrame ? start = Math.min(lastFrame + 1, trackLen - 1); for (frame = start; frame >= 0; frame--) { if (kfPercents[frame] <= percent) { break; } } // PENDING really need to do this ? frame = Math.min(frame, trackLen - 2); } else { for (frame = lastFrame; frame < trackLen; frame++) { if (kfPercents[frame] > percent) { break; } } frame = Math.min(frame - 1, trackLen - 2); } lastFrame = frame; lastFramePercent = percent; var range = (kfPercents[frame + 1] - kfPercents[frame]); if (range === 0) { return; } else { w = (percent - kfPercents[frame]) / range; } if (useSpline) { p1 = kfValues[frame]; p0 = kfValues[frame === 0 ? frame : frame - 1]; p2 = kfValues[frame > trackLen - 2 ? trackLen - 1 : frame + 1]; p3 = kfValues[frame > trackLen - 3 ? trackLen - 1 : frame + 2]; if (isValueArray) { catmullRomInterpolateArray( p0, p1, p2, p3, w, w * w, w * w * w, getter(target, propName), arrDim ); } else { var value; if (isValueColor) { value = catmullRomInterpolateArray( p0, p1, p2, p3, w, w * w, w * w * w, rgba, 1 ); value = rgba2String(rgba); } else if (isValueString) { // String is step(0.5) return interpolateString(p1, p2, w); } else { value = catmullRomInterpolate( p0, p1, p2, p3, w, w * w, w * w * w ); } setter( target, propName, value ); } } else { if (isValueArray) { interpolateArray( kfValues[frame], kfValues[frame + 1], w, getter(target, propName), arrDim ); } else { var value; if (isValueColor) { interpolateArray( kfValues[frame], kfValues[frame + 1], w, rgba, 1 ); value = rgba2String(rgba); } else if (isValueString) { // String is step(0.5) return interpolateString(kfValues[frame], kfValues[frame + 1], w); } else { value = interpolateNumber(kfValues[frame], kfValues[frame + 1], w); } setter( target, propName, value ); } } }; var clip = new Clip({ target: animator._target, life: trackMaxTime, loop: animator._loop, delay: animator._delay, onframe: onframe, ondestroy: oneTrackDone }); if (easing && easing !== 'spline') { clip.easing = easing; } return clip; } /** * @alias module:zrender/animation/Animator * @constructor * @param {Object} target * @param {boolean} loop * @param {Function} getter * @param {Function} setter */ var Animator = function (target, loop, getter, setter) { this._tracks = {}; this._target = target; this._loop = loop || false; this._getter = getter || defaultGetter; this._setter = setter || defaultSetter; this._clipCount = 0; this._delay = 0; this._doneList = []; this._onframeList = []; this._clipList = []; }; Animator.prototype = { /** * 设置动画关键帧 * @param {number} time 关键帧时间,单位是ms * @param {Object} props 关键帧的属性值,key-value表示 * @return {module:zrender/animation/Animator} */ when: function (time /* ms */, props) { var tracks = this._tracks; for (var propName in props) { if (!props.hasOwnProperty(propName)) { continue; } if (!tracks[propName]) { tracks[propName] = []; // Invalid value var value = this._getter(this._target, propName); if (value == null) { // zrLog('Invalid property ' + propName); continue; } // If time is 0 // Then props is given initialize value // Else // Initialize value from current prop value if (time !== 0) { tracks[propName].push({ time: 0, value: cloneValue(value) }); } } tracks[propName].push({ time: time, value: props[propName] }); } return this; }, /** * 添加动画每一帧的回调函数 * @param {Function} callback * @return {module:zrender/animation/Animator} */ during: function (callback) { this._onframeList.push(callback); return this; }, pause: function () { for (var i = 0; i < this._clipList.length; i++) { this._clipList[i].pause(); } this._paused = true; }, resume: function () { for (var i = 0; i < this._clipList.length; i++) { this._clipList[i].resume(); } this._paused = false; }, isPaused: function () { return !!this._paused; }, _doneCallback: function () { // Clear all tracks this._tracks = {}; // Clear all clips this._clipList.length = 0; var doneList = this._doneList; var len = doneList.length; for (var i = 0; i < len; i++) { doneList[i].call(this); } }, /** * 开始执行动画 * @param {string|Function} [easing] * 动画缓动函数,详见{@link module:zrender/animation/easing} * @param {boolean} forceAnimate * @return {module:zrender/animation/Animator} */ start: function (easing, forceAnimate) { var self = this; var clipCount = 0; var oneTrackDone = function () { clipCount--; if (!clipCount) { self._doneCallback(); } }; var lastClip; for (var propName in this._tracks) { if (!this._tracks.hasOwnProperty(propName)) { continue; } var clip = createTrackClip( this, easing, oneTrackDone, this._tracks[propName], propName, forceAnimate ); if (clip) { this._clipList.push(clip); clipCount++; // If start after added to animation if (this.animation) { this.animation.addClip(clip); } lastClip = clip; } } // Add during callback on the last clip if (lastClip) { var oldOnFrame = lastClip.onframe; lastClip.onframe = function (target, percent) { oldOnFrame(target, percent); for (var i = 0; i < self._onframeList.length; i++) { self._onframeList[i](target, percent); } }; } // This optimization will help the case that in the upper application // the view may be refreshed frequently, where animation will be // called repeatly but nothing changed. if (!clipCount) { this._doneCallback(); } return this; }, /** * 停止动画 * @param {boolean} forwardToLast If move to last frame before stop */ stop: function (forwardToLast) { var clipList = this._clipList; var animation = this.animation; for (var i = 0; i < clipList.length; i++) { var clip = clipList[i]; if (forwardToLast) { // Move to last frame before stop clip.onframe(this._target, 1); } animation && animation.removeClip(clip); } clipList.length = 0; }, /** * 设置动画延迟开始的时间 * @param {number} time 单位ms * @return {module:zrender/animation/Animator} */ delay: function (time) { this._delay = time; return this; }, /** * 添加动画结束的回调 * @param {Function} cb * @return {module:zrender/animation/Animator} */ done: function (cb) { if (cb) { this._doneList.push(cb); } return this; }, /** * @return {Array.} */ getClips: function () { return this._clipList; } }; var dpr = 1; // If in browser environment if (typeof window !== 'undefined') { dpr = Math.max(window.devicePixelRatio || 1, 1); } /** * config默认配置项 * @exports zrender/config * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) */ /** * debug日志选项:catchBrushException为true下有效 * 0 : 不生成debug数据,发布用 * 1 : 异常抛出,调试用 * 2 : 控制台输出,调试用 */ var debugMode = 0; // retina 屏幕优化 var devicePixelRatio = dpr; var log = function () { }; if (debugMode === 1) { log = function () { for (var k in arguments) { throw new Error(arguments[k]); } }; } else if (debugMode > 1) { log = function () { for (var k in arguments) { console.log(arguments[k]); } }; } var zrLog = log; /** * @alias modue:zrender/mixin/Animatable * @constructor */ var Animatable = function () { /** * @type {Array.} * @readOnly */ this.animators = []; }; Animatable.prototype = { constructor: Animatable, /** * 动画 * * @param {string} path The path to fetch value from object, like 'a.b.c'. * @param {boolean} [loop] Whether to loop animation. * @return {module:zrender/animation/Animator} * @example: * el.animate('style', false) * .when(1000, {x: 10} ) * .done(function(){ // Animation done }) * .start() */ animate: function (path, loop) { var target; var animatingShape = false; var el = this; var zr = this.__zr; if (path) { var pathSplitted = path.split('.'); var prop = el; // If animating shape animatingShape = pathSplitted[0] === 'shape'; for (var i = 0, l = pathSplitted.length; i < l; i++) { if (!prop) { continue; } prop = prop[pathSplitted[i]]; } if (prop) { target = prop; } } else { target = el; } if (!target) { zrLog( 'Property "' + path + '" is not existed in element ' + el.id ); return; } var animators = el.animators; var animator = new Animator(target, loop); animator.during(function (target) { el.dirty(animatingShape); }) .done(function () { // FIXME Animator will not be removed if use `Animator#stop` to stop animation animators.splice(indexOf(animators, animator), 1); }); animators.push(animator); // If animate after added to the zrender if (zr) { zr.animation.addAnimator(animator); } return animator; }, /** * 停止动画 * @param {boolean} forwardToLast If move to last frame before stop */ stopAnimation: function (forwardToLast) { var animators = this.animators; var len = animators.length; for (var i = 0; i < len; i++) { animators[i].stop(forwardToLast); } animators.length = 0; return this; }, /** * Caution: this method will stop previous animation. * So do not use this method to one element twice before * animation starts, unless you know what you are doing. * @param {Object} target * @param {number} [time=500] Time in ms * @param {string} [easing='linear'] * @param {number} [delay=0] * @param {Function} [callback] * @param {Function} [forceAnimate] Prevent stop animation and callback * immediently when target values are the same as current values. * * @example * // Animate position * el.animateTo({ * position: [10, 10] * }, function () { // done }) * * // Animate shape, style and position in 100ms, delayed 100ms, with cubicOut easing * el.animateTo({ * shape: { * width: 500 * }, * style: { * fill: 'red' * } * position: [10, 10] * }, 100, 100, 'cubicOut', function () { // done }) */ // TODO Return animation key animateTo: function (target, time, delay, easing, callback, forceAnimate) { animateTo(this, target, time, delay, easing, callback, forceAnimate); }, /** * Animate from the target state to current state. * The params and the return value are the same as `this.animateTo`. */ animateFrom: function (target, time, delay, easing, callback, forceAnimate) { animateTo(this, target, time, delay, easing, callback, forceAnimate, true); } }; function animateTo(animatable, target, time, delay, easing, callback, forceAnimate, reverse) { // animateTo(target, time, easing, callback); if (isString(delay)) { callback = easing; easing = delay; delay = 0; } // animateTo(target, time, delay, callback); else if (isFunction$1(easing)) { callback = easing; easing = 'linear'; delay = 0; } // animateTo(target, time, callback); else if (isFunction$1(delay)) { callback = delay; delay = 0; } // animateTo(target, callback) else if (isFunction$1(time)) { callback = time; time = 500; } // animateTo(target) else if (!time) { time = 500; } // Stop all previous animations animatable.stopAnimation(); animateToShallow(animatable, '', animatable, target, time, delay, reverse); // Animators may be removed immediately after start // if there is nothing to animate var animators = animatable.animators.slice(); var count = animators.length; function done() { count--; if (!count) { callback && callback(); } } // No animators. This should be checked before animators[i].start(), // because 'done' may be executed immediately if no need to animate. if (!count) { callback && callback(); } // Start after all animators created // Incase any animator is done immediately when all animation properties are not changed for (var i = 0; i < animators.length; i++) { animators[i] .done(done) .start(easing, forceAnimate); } } /** * @param {string} path='' * @param {Object} source=animatable * @param {Object} target * @param {number} [time=500] * @param {number} [delay=0] * @param {boolean} [reverse] If `true`, animate * from the `target` to current state. * * @example * // Animate position * el._animateToShallow({ * position: [10, 10] * }) * * // Animate shape, style and position in 100ms, delayed 100ms * el._animateToShallow({ * shape: { * width: 500 * }, * style: { * fill: 'red' * } * position: [10, 10] * }, 100, 100) */ function animateToShallow(animatable, path, source, target, time, delay, reverse) { var objShallow = {}; var propertyCount = 0; for (var name in target) { if (!target.hasOwnProperty(name)) { continue; } if (source[name] != null) { if (isObject$1(target[name]) && !isArrayLike(target[name])) { animateToShallow( animatable, path ? path + '.' + name : name, source[name], target[name], time, delay, reverse ); } else { if (reverse) { objShallow[name] = source[name]; setAttrByPath(animatable, path, name, target[name]); } else { objShallow[name] = target[name]; } propertyCount++; } } else if (target[name] != null && !reverse) { setAttrByPath(animatable, path, name, target[name]); } } if (propertyCount > 0) { animatable.animate(path, false) .when(time == null ? 500 : time, objShallow) .delay(delay || 0); } } function setAttrByPath(el, path, name, value) { // Attr directly if not has property // FIXME, if some property not needed for element ? if (!path) { el.attr(name, value); } else { // Only support set shape or style var props = {}; props[path] = {}; props[path][name] = value; el.attr(props); } } /** * @alias module:zrender/Element * @constructor * @extends {module:zrender/mixin/Animatable} * @extends {module:zrender/mixin/Transformable} * @extends {module:zrender/mixin/Eventful} */ var Element = function (opts) { // jshint ignore:line Transformable.call(this, opts); Eventful.call(this, opts); Animatable.call(this, opts); /** * 画布元素ID * @type {string} */ this.id = opts.id || guid(); }; Element.prototype = { /** * 元素类型 * Element type * @type {string} */ type: 'element', /** * 元素名字 * Element name * @type {string} */ name: '', /** * ZRender 实例对象,会在 element 添加到 zrender 实例中后自动赋值 * ZRender instance will be assigned when element is associated with zrender * @name module:/zrender/Element#__zr * @type {module:zrender/ZRender} */ __zr: null, /** * 图形是否忽略,为true时忽略图形的绘制以及事件触发 * If ignore drawing and events of the element object * @name module:/zrender/Element#ignore * @type {boolean} * @default false */ ignore: false, /** * 用于裁剪的路径(shape),所有 Group 内的路径在绘制时都会被这个路径裁剪 * 该路径会继承被裁减对象的变换 * @type {module:zrender/graphic/Path} * @see http://www.w3.org/TR/2dcontext/#clipping-region * @readOnly */ clipPath: null, /** * 是否是 Group * @type {boolean} */ isGroup: false, /** * Drift element * @param {number} dx dx on the global space * @param {number} dy dy on the global space */ drift: function (dx, dy) { switch (this.draggable) { case 'horizontal': dy = 0; break; case 'vertical': dx = 0; break; } var m = this.transform; if (!m) { m = this.transform = [1, 0, 0, 1, 0, 0]; } m[4] += dx; m[5] += dy; this.decomposeTransform(); this.dirty(false); }, /** * Hook before update */ beforeUpdate: function () {}, /** * Hook after update */ afterUpdate: function () {}, /** * Update each frame */ update: function () { this.updateTransform(); }, /** * @param {Function} cb * @param {} context */ traverse: function (cb, context) {}, /** * @protected */ attrKV: function (key, value) { if (key === 'position' || key === 'scale' || key === 'origin') { // Copy the array if (value) { var target = this[key]; if (!target) { target = this[key] = []; } target[0] = value[0]; target[1] = value[1]; } } else { this[key] = value; } }, /** * Hide the element */ hide: function () { this.ignore = true; this.__zr && this.__zr.refresh(); }, /** * Show the element */ show: function () { this.ignore = false; this.__zr && this.__zr.refresh(); }, /** * @param {string|Object} key * @param {*} value */ attr: function (key, value) { if (typeof key === 'string') { this.attrKV(key, value); } else if (isObject$1(key)) { for (var name in key) { if (key.hasOwnProperty(name)) { this.attrKV(name, key[name]); } } } this.dirty(false); return this; }, /** * @param {module:zrender/graphic/Path} clipPath */ setClipPath: function (clipPath) { var zr = this.__zr; if (zr) { clipPath.addSelfToZr(zr); } // Remove previous clip path if (this.clipPath && this.clipPath !== clipPath) { this.removeClipPath(); } this.clipPath = clipPath; clipPath.__zr = zr; clipPath.__clipTarget = this; this.dirty(false); }, /** */ removeClipPath: function () { var clipPath = this.clipPath; if (clipPath) { if (clipPath.__zr) { clipPath.removeSelfFromZr(clipPath.__zr); } clipPath.__zr = null; clipPath.__clipTarget = null; this.clipPath = null; this.dirty(false); } }, /** * Add self from zrender instance. * Not recursively because it will be invoked when element added to storage. * @param {module:zrender/ZRender} zr */ addSelfToZr: function (zr) { this.__zr = zr; // 添加动画 var animators = this.animators; if (animators) { for (var i = 0; i < animators.length; i++) { zr.animation.addAnimator(animators[i]); } } if (this.clipPath) { this.clipPath.addSelfToZr(zr); } }, /** * Remove self from zrender instance. * Not recursively because it will be invoked when element added to storage. * @param {module:zrender/ZRender} zr */ removeSelfFromZr: function (zr) { this.__zr = null; // 移除动画 var animators = this.animators; if (animators) { for (var i = 0; i < animators.length; i++) { zr.animation.removeAnimator(animators[i]); } } if (this.clipPath) { this.clipPath.removeSelfFromZr(zr); } } }; mixin(Element, Animatable); mixin(Element, Transformable); mixin(Element, Eventful); /** * @module echarts/core/BoundingRect */ var v2ApplyTransform = applyTransform; var mathMin = Math.min; var mathMax = Math.max; /** * @alias module:echarts/core/BoundingRect */ function BoundingRect(x, y, width, height) { if (width < 0) { x = x + width; width = -width; } if (height < 0) { y = y + height; height = -height; } /** * @type {number} */ this.x = x; /** * @type {number} */ this.y = y; /** * @type {number} */ this.width = width; /** * @type {number} */ this.height = height; } BoundingRect.prototype = { constructor: BoundingRect, /** * @param {module:echarts/core/BoundingRect} other */ union: function (other) { var x = mathMin(other.x, this.x); var y = mathMin(other.y, this.y); this.width = mathMax( other.x + other.width, this.x + this.width ) - x; this.height = mathMax( other.y + other.height, this.y + this.height ) - y; this.x = x; this.y = y; }, /** * @param {Array.} m * @methods */ applyTransform: (function () { var lt = []; var rb = []; var lb = []; var rt = []; return function (m) { // In case usage like this // el.getBoundingRect().applyTransform(el.transform) // And element has no transform if (!m) { return; } lt[0] = lb[0] = this.x; lt[1] = rt[1] = this.y; rb[0] = rt[0] = this.x + this.width; rb[1] = lb[1] = this.y + this.height; v2ApplyTransform(lt, lt, m); v2ApplyTransform(rb, rb, m); v2ApplyTransform(lb, lb, m); v2ApplyTransform(rt, rt, m); this.x = mathMin(lt[0], rb[0], lb[0], rt[0]); this.y = mathMin(lt[1], rb[1], lb[1], rt[1]); var maxX = mathMax(lt[0], rb[0], lb[0], rt[0]); var maxY = mathMax(lt[1], rb[1], lb[1], rt[1]); this.width = maxX - this.x; this.height = maxY - this.y; }; })(), /** * Calculate matrix of transforming from self to target rect * @param {module:zrender/core/BoundingRect} b * @return {Array.} */ calculateTransform: function (b) { var a = this; var sx = b.width / a.width; var sy = b.height / a.height; var m = create$1(); // 矩阵右乘 translate(m, m, [-a.x, -a.y]); scale$1(m, m, [sx, sy]); translate(m, m, [b.x, b.y]); return m; }, /** * @param {(module:echarts/core/BoundingRect|Object)} b * @return {boolean} */ intersect: function (b) { if (!b) { return false; } if (!(b instanceof BoundingRect)) { // Normalize negative width/height. b = BoundingRect.create(b); } var a = this; var ax0 = a.x; var ax1 = a.x + a.width; var ay0 = a.y; var ay1 = a.y + a.height; var bx0 = b.x; var bx1 = b.x + b.width; var by0 = b.y; var by1 = b.y + b.height; return !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0); }, contain: function (x, y) { var rect = this; return x >= rect.x && x <= (rect.x + rect.width) && y >= rect.y && y <= (rect.y + rect.height); }, /** * @return {module:echarts/core/BoundingRect} */ clone: function () { return new BoundingRect(this.x, this.y, this.width, this.height); }, /** * Copy from another rect */ copy: function (other) { this.x = other.x; this.y = other.y; this.width = other.width; this.height = other.height; }, plain: function () { return { x: this.x, y: this.y, width: this.width, height: this.height }; } }; /** * @param {Object|module:zrender/core/BoundingRect} rect * @param {number} rect.x * @param {number} rect.y * @param {number} rect.width * @param {number} rect.height * @return {module:zrender/core/BoundingRect} */ BoundingRect.create = function (rect) { return new BoundingRect(rect.x, rect.y, rect.width, rect.height); }; /** * Group是一个容器,可以插入子节点,Group的变换也会被应用到子节点上 * @module zrender/graphic/Group * @example * var Group = require('zrender/container/Group'); * var Circle = require('zrender/graphic/shape/Circle'); * var g = new Group(); * g.position[0] = 100; * g.position[1] = 100; * g.add(new Circle({ * style: { * x: 100, * y: 100, * r: 20, * } * })); * zr.add(g); */ /** * @alias module:zrender/graphic/Group * @constructor * @extends module:zrender/mixin/Transformable * @extends module:zrender/mixin/Eventful */ var Group = function (opts) { opts = opts || {}; Element.call(this, opts); for (var key in opts) { if (opts.hasOwnProperty(key)) { this[key] = opts[key]; } } this._children = []; this.__storage = null; this.__dirty = true; }; Group.prototype = { constructor: Group, isGroup: true, /** * @type {string} */ type: 'group', /** * 所有子孙元素是否响应鼠标事件 * @name module:/zrender/container/Group#silent * @type {boolean} * @default false */ silent: false, /** * @return {Array.} */ children: function () { return this._children.slice(); }, /** * 获取指定 index 的儿子节点 * @param {number} idx * @return {module:zrender/Element} */ childAt: function (idx) { return this._children[idx]; }, /** * 获取指定名字的儿子节点 * @param {string} name * @return {module:zrender/Element} */ childOfName: function (name) { var children = this._children; for (var i = 0; i < children.length; i++) { if (children[i].name === name) { return children[i]; } } }, /** * @return {number} */ childCount: function () { return this._children.length; }, /** * 添加子节点到最后 * @param {module:zrender/Element} child */ add: function (child) { if (child && child !== this && child.parent !== this) { this._children.push(child); this._doAdd(child); } return this; }, /** * 添加子节点在 nextSibling 之前 * @param {module:zrender/Element} child * @param {module:zrender/Element} nextSibling */ addBefore: function (child, nextSibling) { if (child && child !== this && child.parent !== this && nextSibling && nextSibling.parent === this) { var children = this._children; var idx = children.indexOf(nextSibling); if (idx >= 0) { children.splice(idx, 0, child); this._doAdd(child); } } return this; }, _doAdd: function (child) { if (child.parent) { child.parent.remove(child); } child.parent = this; var storage = this.__storage; var zr = this.__zr; if (storage && storage !== child.__storage) { storage.addToStorage(child); if (child instanceof Group) { child.addChildrenToStorage(storage); } } zr && zr.refresh(); }, /** * 移除子节点 * @param {module:zrender/Element} child */ remove: function (child) { var zr = this.__zr; var storage = this.__storage; var children = this._children; var idx = indexOf(children, child); if (idx < 0) { return this; } children.splice(idx, 1); child.parent = null; if (storage) { storage.delFromStorage(child); if (child instanceof Group) { child.delChildrenFromStorage(storage); } } zr && zr.refresh(); return this; }, /** * 移除所有子节点 */ removeAll: function () { var children = this._children; var storage = this.__storage; var child; var i; for (i = 0; i < children.length; i++) { child = children[i]; if (storage) { storage.delFromStorage(child); if (child instanceof Group) { child.delChildrenFromStorage(storage); } } child.parent = null; } children.length = 0; return this; }, /** * 遍历所有子节点 * @param {Function} cb * @param {} context */ eachChild: function (cb, context) { var children = this._children; for (var i = 0; i < children.length; i++) { var child = children[i]; cb.call(context, child, i); } return this; }, /** * 深度优先遍历所有子孙节点 * @param {Function} cb * @param {} context */ traverse: function (cb, context) { for (var i = 0; i < this._children.length; i++) { var child = this._children[i]; cb.call(context, child); if (child.type === 'group') { child.traverse(cb, context); } } return this; }, addChildrenToStorage: function (storage) { for (var i = 0; i < this._children.length; i++) { var child = this._children[i]; storage.addToStorage(child); if (child instanceof Group) { child.addChildrenToStorage(storage); } } }, delChildrenFromStorage: function (storage) { for (var i = 0; i < this._children.length; i++) { var child = this._children[i]; storage.delFromStorage(child); if (child instanceof Group) { child.delChildrenFromStorage(storage); } } }, dirty: function () { this.__dirty = true; this.__zr && this.__zr.refresh(); return this; }, /** * @return {module:zrender/core/BoundingRect} */ getBoundingRect: function (includeChildren) { // TODO Caching var rect = null; var tmpRect = new BoundingRect(0, 0, 0, 0); var children = includeChildren || this._children; var tmpMat = []; for (var i = 0; i < children.length; i++) { var child = children[i]; if (child.ignore || child.invisible) { continue; } var childRect = child.getBoundingRect(); var transform = child.getLocalTransform(tmpMat); // TODO // The boundingRect cacluated by transforming original // rect may be bigger than the actual bundingRect when rotation // is used. (Consider a circle rotated aginst its center, where // the actual boundingRect should be the same as that not be // rotated.) But we can not find better approach to calculate // actual boundingRect yet, considering performance. if (transform) { tmpRect.copy(childRect); tmpRect.applyTransform(transform); rect = rect || tmpRect.clone(); rect.union(tmpRect); } else { rect = rect || childRect.clone(); rect.union(childRect); } } return rect || tmpRect; } }; inherits(Group, Element); // https://github.com/mziccard/node-timsort var DEFAULT_MIN_MERGE = 32; var DEFAULT_MIN_GALLOPING = 7; function minRunLength(n) { var r = 0; while (n >= DEFAULT_MIN_MERGE) { r |= n & 1; n >>= 1; } return n + r; } function makeAscendingRun(array, lo, hi, compare) { var runHi = lo + 1; if (runHi === hi) { return 1; } if (compare(array[runHi++], array[lo]) < 0) { while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) { runHi++; } reverseRun(array, lo, runHi); } else { while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) { runHi++; } } return runHi - lo; } function reverseRun(array, lo, hi) { hi--; while (lo < hi) { var t = array[lo]; array[lo++] = array[hi]; array[hi--] = t; } } function binaryInsertionSort(array, lo, hi, start, compare) { if (start === lo) { start++; } for (; start < hi; start++) { var pivot = array[start]; var left = lo; var right = start; var mid; while (left < right) { mid = left + right >>> 1; if (compare(pivot, array[mid]) < 0) { right = mid; } else { left = mid + 1; } } var n = start - left; switch (n) { case 3: array[left + 3] = array[left + 2]; case 2: array[left + 2] = array[left + 1]; case 1: array[left + 1] = array[left]; break; default: while (n > 0) { array[left + n] = array[left + n - 1]; n--; } } array[left] = pivot; } } function gallopLeft(value, array, start, length, hint, compare) { var lastOffset = 0; var maxOffset = 0; var offset = 1; if (compare(value, array[start + hint]) > 0) { maxOffset = length - hint; while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) { lastOffset = offset; offset = (offset << 1) + 1; if (offset <= 0) { offset = maxOffset; } } if (offset > maxOffset) { offset = maxOffset; } lastOffset += hint; offset += hint; } else { maxOffset = hint + 1; while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) { lastOffset = offset; offset = (offset << 1) + 1; if (offset <= 0) { offset = maxOffset; } } if (offset > maxOffset) { offset = maxOffset; } var tmp = lastOffset; lastOffset = hint - offset; offset = hint - tmp; } lastOffset++; while (lastOffset < offset) { var m = lastOffset + (offset - lastOffset >>> 1); if (compare(value, array[start + m]) > 0) { lastOffset = m + 1; } else { offset = m; } } return offset; } function gallopRight(value, array, start, length, hint, compare) { var lastOffset = 0; var maxOffset = 0; var offset = 1; if (compare(value, array[start + hint]) < 0) { maxOffset = hint + 1; while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) { lastOffset = offset; offset = (offset << 1) + 1; if (offset <= 0) { offset = maxOffset; } } if (offset > maxOffset) { offset = maxOffset; } var tmp = lastOffset; lastOffset = hint - offset; offset = hint - tmp; } else { maxOffset = length - hint; while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) { lastOffset = offset; offset = (offset << 1) + 1; if (offset <= 0) { offset = maxOffset; } } if (offset > maxOffset) { offset = maxOffset; } lastOffset += hint; offset += hint; } lastOffset++; while (lastOffset < offset) { var m = lastOffset + (offset - lastOffset >>> 1); if (compare(value, array[start + m]) < 0) { offset = m; } else { lastOffset = m + 1; } } return offset; } function TimSort(array, compare) { var minGallop = DEFAULT_MIN_GALLOPING; var runStart; var runLength; var stackSize = 0; var tmp = []; runStart = []; runLength = []; function pushRun(_runStart, _runLength) { runStart[stackSize] = _runStart; runLength[stackSize] = _runLength; stackSize += 1; } function mergeRuns() { while (stackSize > 1) { var n = stackSize - 2; if (n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1] || n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1]) { if (runLength[n - 1] < runLength[n + 1]) { n--; } } else if (runLength[n] > runLength[n + 1]) { break; } mergeAt(n); } } function forceMergeRuns() { while (stackSize > 1) { var n = stackSize - 2; if (n > 0 && runLength[n - 1] < runLength[n + 1]) { n--; } mergeAt(n); } } function mergeAt(i) { var start1 = runStart[i]; var length1 = runLength[i]; var start2 = runStart[i + 1]; var length2 = runLength[i + 1]; runLength[i] = length1 + length2; if (i === stackSize - 3) { runStart[i + 1] = runStart[i + 2]; runLength[i + 1] = runLength[i + 2]; } stackSize--; var k = gallopRight(array[start2], array, start1, length1, 0, compare); start1 += k; length1 -= k; if (length1 === 0) { return; } length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare); if (length2 === 0) { return; } if (length1 <= length2) { mergeLow(start1, length1, start2, length2); } else { mergeHigh(start1, length1, start2, length2); } } function mergeLow(start1, length1, start2, length2) { var i = 0; for (i = 0; i < length1; i++) { tmp[i] = array[start1 + i]; } var cursor1 = 0; var cursor2 = start2; var dest = start1; array[dest++] = array[cursor2++]; if (--length2 === 0) { for (i = 0; i < length1; i++) { array[dest + i] = tmp[cursor1 + i]; } return; } if (length1 === 1) { for (i = 0; i < length2; i++) { array[dest + i] = array[cursor2 + i]; } array[dest + length2] = tmp[cursor1]; return; } var _minGallop = minGallop; var count1, count2, exit; while (1) { count1 = 0; count2 = 0; exit = false; do { if (compare(array[cursor2], tmp[cursor1]) < 0) { array[dest++] = array[cursor2++]; count2++; count1 = 0; if (--length2 === 0) { exit = true; break; } } else { array[dest++] = tmp[cursor1++]; count1++; count2 = 0; if (--length1 === 1) { exit = true; break; } } } while ((count1 | count2) < _minGallop); if (exit) { break; } do { count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare); if (count1 !== 0) { for (i = 0; i < count1; i++) { array[dest + i] = tmp[cursor1 + i]; } dest += count1; cursor1 += count1; length1 -= count1; if (length1 <= 1) { exit = true; break; } } array[dest++] = array[cursor2++]; if (--length2 === 0) { exit = true; break; } count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare); if (count2 !== 0) { for (i = 0; i < count2; i++) { array[dest + i] = array[cursor2 + i]; } dest += count2; cursor2 += count2; length2 -= count2; if (length2 === 0) { exit = true; break; } } array[dest++] = tmp[cursor1++]; if (--length1 === 1) { exit = true; break; } _minGallop--; } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING); if (exit) { break; } if (_minGallop < 0) { _minGallop = 0; } _minGallop += 2; } minGallop = _minGallop; minGallop < 1 && (minGallop = 1); if (length1 === 1) { for (i = 0; i < length2; i++) { array[dest + i] = array[cursor2 + i]; } array[dest + length2] = tmp[cursor1]; } else if (length1 === 0) { throw new Error(); // throw new Error('mergeLow preconditions were not respected'); } else { for (i = 0; i < length1; i++) { array[dest + i] = tmp[cursor1 + i]; } } } function mergeHigh(start1, length1, start2, length2) { var i = 0; for (i = 0; i < length2; i++) { tmp[i] = array[start2 + i]; } var cursor1 = start1 + length1 - 1; var cursor2 = length2 - 1; var dest = start2 + length2 - 1; var customCursor = 0; var customDest = 0; array[dest--] = array[cursor1--]; if (--length1 === 0) { customCursor = dest - (length2 - 1); for (i = 0; i < length2; i++) { array[customCursor + i] = tmp[i]; } return; } if (length2 === 1) { dest -= length1; cursor1 -= length1; customDest = dest + 1; customCursor = cursor1 + 1; for (i = length1 - 1; i >= 0; i--) { array[customDest + i] = array[customCursor + i]; } array[dest] = tmp[cursor2]; return; } var _minGallop = minGallop; while (true) { var count1 = 0; var count2 = 0; var exit = false; do { if (compare(tmp[cursor2], array[cursor1]) < 0) { array[dest--] = array[cursor1--]; count1++; count2 = 0; if (--length1 === 0) { exit = true; break; } } else { array[dest--] = tmp[cursor2--]; count2++; count1 = 0; if (--length2 === 1) { exit = true; break; } } } while ((count1 | count2) < _minGallop); if (exit) { break; } do { count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare); if (count1 !== 0) { dest -= count1; cursor1 -= count1; length1 -= count1; customDest = dest + 1; customCursor = cursor1 + 1; for (i = count1 - 1; i >= 0; i--) { array[customDest + i] = array[customCursor + i]; } if (length1 === 0) { exit = true; break; } } array[dest--] = tmp[cursor2--]; if (--length2 === 1) { exit = true; break; } count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare); if (count2 !== 0) { dest -= count2; cursor2 -= count2; length2 -= count2; customDest = dest + 1; customCursor = cursor2 + 1; for (i = 0; i < count2; i++) { array[customDest + i] = tmp[customCursor + i]; } if (length2 <= 1) { exit = true; break; } } array[dest--] = array[cursor1--]; if (--length1 === 0) { exit = true; break; } _minGallop--; } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING); if (exit) { break; } if (_minGallop < 0) { _minGallop = 0; } _minGallop += 2; } minGallop = _minGallop; if (minGallop < 1) { minGallop = 1; } if (length2 === 1) { dest -= length1; cursor1 -= length1; customDest = dest + 1; customCursor = cursor1 + 1; for (i = length1 - 1; i >= 0; i--) { array[customDest + i] = array[customCursor + i]; } array[dest] = tmp[cursor2]; } else if (length2 === 0) { throw new Error(); // throw new Error('mergeHigh preconditions were not respected'); } else { customCursor = dest - (length2 - 1); for (i = 0; i < length2; i++) { array[customCursor + i] = tmp[i]; } } } this.mergeRuns = mergeRuns; this.forceMergeRuns = forceMergeRuns; this.pushRun = pushRun; } function sort(array, compare, lo, hi) { if (!lo) { lo = 0; } if (!hi) { hi = array.length; } var remaining = hi - lo; if (remaining < 2) { return; } var runLength = 0; if (remaining < DEFAULT_MIN_MERGE) { runLength = makeAscendingRun(array, lo, hi, compare); binaryInsertionSort(array, lo, hi, lo + runLength, compare); return; } var ts = new TimSort(array, compare); var minRun = minRunLength(remaining); do { runLength = makeAscendingRun(array, lo, hi, compare); if (runLength < minRun) { var force = remaining; if (force > minRun) { force = minRun; } binaryInsertionSort(array, lo, lo + force, lo + runLength, compare); runLength = force; } ts.pushRun(lo, runLength); ts.mergeRuns(); remaining -= runLength; lo += runLength; } while (remaining !== 0); ts.forceMergeRuns(); } // Use timsort because in most case elements are partially sorted // https://jsfiddle.net/pissang/jr4x7mdm/8/ function shapeCompareFunc(a, b) { if (a.zlevel === b.zlevel) { if (a.z === b.z) { // if (a.z2 === b.z2) { // // FIXME Slow has renderidx compare // // http://stackoverflow.com/questions/20883421/sorting-in-javascript-should-every-compare-function-have-a-return-0-statement // // https://github.com/v8/v8/blob/47cce544a31ed5577ffe2963f67acb4144ee0232/src/js/array.js#L1012 // return a.__renderidx - b.__renderidx; // } return a.z2 - b.z2; } return a.z - b.z; } return a.zlevel - b.zlevel; } /** * 内容仓库 (M) * @alias module:zrender/Storage * @constructor */ var Storage = function () { // jshint ignore:line this._roots = []; this._displayList = []; this._displayListLen = 0; }; Storage.prototype = { constructor: Storage, /** * @param {Function} cb * */ traverse: function (cb, context) { for (var i = 0; i < this._roots.length; i++) { this._roots[i].traverse(cb, context); } }, /** * 返回所有图形的绘制队列 * @param {boolean} [update=false] 是否在返回前更新该数组 * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组, 在 update 为 true 的时候有效 * * 详见{@link module:zrender/graphic/Displayable.prototype.updateDisplayList} * @return {Array.} */ getDisplayList: function (update, includeIgnore) { includeIgnore = includeIgnore || false; if (update) { this.updateDisplayList(includeIgnore); } return this._displayList; }, /** * 更新图形的绘制队列。 * 每次绘制前都会调用,该方法会先深度优先遍历整个树,更新所有Group和Shape的变换并且把所有可见的Shape保存到数组中, * 最后根据绘制的优先级(zlevel > z > 插入顺序)排序得到绘制队列 * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组 */ updateDisplayList: function (includeIgnore) { this._displayListLen = 0; var roots = this._roots; var displayList = this._displayList; for (var i = 0, len = roots.length; i < len; i++) { this._updateAndAddDisplayable(roots[i], null, includeIgnore); } displayList.length = this._displayListLen; env$1.canvasSupported && sort(displayList, shapeCompareFunc); }, _updateAndAddDisplayable: function (el, clipPaths, includeIgnore) { if (el.ignore && !includeIgnore) { return; } el.beforeUpdate(); if (el.__dirty) { el.update(); } el.afterUpdate(); var userSetClipPath = el.clipPath; if (userSetClipPath) { // FIXME 效率影响 if (clipPaths) { clipPaths = clipPaths.slice(); } else { clipPaths = []; } var currentClipPath = userSetClipPath; var parentClipPath = el; // Recursively add clip path while (currentClipPath) { // clipPath 的变换是基于使用这个 clipPath 的元素 currentClipPath.parent = parentClipPath; currentClipPath.updateTransform(); clipPaths.push(currentClipPath); parentClipPath = currentClipPath; currentClipPath = currentClipPath.clipPath; } } if (el.isGroup) { var children = el._children; for (var i = 0; i < children.length; i++) { var child = children[i]; // Force to mark as dirty if group is dirty // FIXME __dirtyPath ? if (el.__dirty) { child.__dirty = true; } this._updateAndAddDisplayable(child, clipPaths, includeIgnore); } // Mark group clean here el.__dirty = false; } else { el.__clipPaths = clipPaths; this._displayList[this._displayListLen++] = el; } }, /** * 添加图形(Shape)或者组(Group)到根节点 * @param {module:zrender/Element} el */ addRoot: function (el) { if (el.__storage === this) { return; } if (el instanceof Group) { el.addChildrenToStorage(this); } this.addToStorage(el); this._roots.push(el); }, /** * 删除指定的图形(Shape)或者组(Group) * @param {string|Array.} [el] 如果为空清空整个Storage */ delRoot: function (el) { if (el == null) { // 不指定el清空 for (var i = 0; i < this._roots.length; i++) { var root = this._roots[i]; if (root instanceof Group) { root.delChildrenFromStorage(this); } } this._roots = []; this._displayList = []; this._displayListLen = 0; return; } if (el instanceof Array) { for (var i = 0, l = el.length; i < l; i++) { this.delRoot(el[i]); } return; } var idx = indexOf(this._roots, el); if (idx >= 0) { this.delFromStorage(el); this._roots.splice(idx, 1); if (el instanceof Group) { el.delChildrenFromStorage(this); } } }, addToStorage: function (el) { if (el) { el.__storage = this; el.dirty(false); } return this; }, delFromStorage: function (el) { if (el) { el.__storage = null; } return this; }, /** * 清空并且释放Storage */ dispose: function () { this._renderList = this._roots = null; }, displayableSortFunc: shapeCompareFunc }; var SHADOW_PROPS = { 'shadowBlur': 1, 'shadowOffsetX': 1, 'shadowOffsetY': 1, 'textShadowBlur': 1, 'textShadowOffsetX': 1, 'textShadowOffsetY': 1, 'textBoxShadowBlur': 1, 'textBoxShadowOffsetX': 1, 'textBoxShadowOffsetY': 1 }; var fixShadow = function (ctx, propName, value) { if (SHADOW_PROPS.hasOwnProperty(propName)) { return value *= ctx.dpr; } return value; }; var ContextCachedBy = { NONE: 0, STYLE_BIND: 1, PLAIN_TEXT: 2 }; // Avoid confused with 0/false. var WILL_BE_RESTORED = 9; var STYLE_COMMON_PROPS = [ ['shadowBlur', 0], ['shadowOffsetX', 0], ['shadowOffsetY', 0], ['shadowColor', '#000'], ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10] ]; // var SHADOW_PROPS = STYLE_COMMON_PROPS.slice(0, 4); // var LINE_PROPS = STYLE_COMMON_PROPS.slice(4); var Style = function (opts) { this.extendFrom(opts, false); }; function createLinearGradient(ctx, obj, rect) { var x = obj.x == null ? 0 : obj.x; var x2 = obj.x2 == null ? 1 : obj.x2; var y = obj.y == null ? 0 : obj.y; var y2 = obj.y2 == null ? 0 : obj.y2; if (!obj.global) { x = x * rect.width + rect.x; x2 = x2 * rect.width + rect.x; y = y * rect.height + rect.y; y2 = y2 * rect.height + rect.y; } // Fix NaN when rect is Infinity x = isNaN(x) ? 0 : x; x2 = isNaN(x2) ? 1 : x2; y = isNaN(y) ? 0 : y; y2 = isNaN(y2) ? 0 : y2; var canvasGradient = ctx.createLinearGradient(x, y, x2, y2); return canvasGradient; } function createRadialGradient(ctx, obj, rect) { var width = rect.width; var height = rect.height; var min = Math.min(width, height); var x = obj.x == null ? 0.5 : obj.x; var y = obj.y == null ? 0.5 : obj.y; var r = obj.r == null ? 0.5 : obj.r; if (!obj.global) { x = x * width + rect.x; y = y * height + rect.y; r = r * min; } var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r); return canvasGradient; } Style.prototype = { constructor: Style, /** * @type {string} */ fill: '#000', /** * @type {string} */ stroke: null, /** * @type {number} */ opacity: 1, /** * @type {number} */ fillOpacity: null, /** * @type {number} */ strokeOpacity: null, /** * `true` is not supported. * `false`/`null`/`undefined` are the same. * `false` is used to remove lineDash in some * case that `null`/`undefined` can not be set. * (e.g., emphasis.lineStyle in echarts) * @type {Array.|boolean} */ lineDash: null, /** * @type {number} */ lineDashOffset: 0, /** * @type {number} */ shadowBlur: 0, /** * @type {number} */ shadowOffsetX: 0, /** * @type {number} */ shadowOffsetY: 0, /** * @type {number} */ lineWidth: 1, /** * If stroke ignore scale * @type {Boolean} */ strokeNoScale: false, // Bounding rect text configuration // Not affected by element transform /** * @type {string} */ text: null, /** * If `fontSize` or `fontFamily` exists, `font` will be reset by * `fontSize`, `fontStyle`, `fontWeight`, `fontFamily`. * So do not visit it directly in upper application (like echarts), * but use `contain/text#makeFont` instead. * @type {string} */ font: null, /** * The same as font. Use font please. * @deprecated * @type {string} */ textFont: null, /** * It helps merging respectively, rather than parsing an entire font string. * @type {string} */ fontStyle: null, /** * It helps merging respectively, rather than parsing an entire font string. * @type {string} */ fontWeight: null, /** * It helps merging respectively, rather than parsing an entire font string. * Should be 12 but not '12px'. * @type {number} */ fontSize: null, /** * It helps merging respectively, rather than parsing an entire font string. * @type {string} */ fontFamily: null, /** * Reserved for special functinality, like 'hr'. * @type {string} */ textTag: null, /** * @type {string} */ textFill: '#000', /** * @type {string} */ textStroke: null, /** * @type {number} */ textWidth: null, /** * Only for textBackground. * @type {number} */ textHeight: null, /** * textStroke may be set as some color as a default * value in upper applicaion, where the default value * of textStrokeWidth should be 0 to make sure that * user can choose to do not use text stroke. * @type {number} */ textStrokeWidth: 0, /** * @type {number} */ textLineHeight: null, /** * 'inside', 'left', 'right', 'top', 'bottom' * [x, y] * Based on x, y of rect. * @type {string|Array.} * @default 'inside' */ textPosition: 'inside', /** * If not specified, use the boundingRect of a `displayable`. * @type {Object} */ textRect: null, /** * [x, y] * @type {Array.} */ textOffset: null, /** * @type {string} */ textAlign: null, /** * @type {string} */ textVerticalAlign: null, /** * @type {number} */ textDistance: 5, /** * @type {string} */ textShadowColor: 'transparent', /** * @type {number} */ textShadowBlur: 0, /** * @type {number} */ textShadowOffsetX: 0, /** * @type {number} */ textShadowOffsetY: 0, /** * @type {string} */ textBoxShadowColor: 'transparent', /** * @type {number} */ textBoxShadowBlur: 0, /** * @type {number} */ textBoxShadowOffsetX: 0, /** * @type {number} */ textBoxShadowOffsetY: 0, /** * Whether transform text. * Only useful in Path and Image element * @type {boolean} */ transformText: false, /** * Text rotate around position of Path or Image * Only useful in Path and Image element and transformText is false. */ textRotation: 0, /** * Text origin of text rotation, like [10, 40]. * Based on x, y of rect. * Useful in label rotation of circular symbol. * By default, this origin is textPosition. * Can be 'center'. * @type {string|Array.} */ textOrigin: null, /** * @type {string} */ textBackgroundColor: null, /** * @type {string} */ textBorderColor: null, /** * @type {number} */ textBorderWidth: 0, /** * @type {number} */ textBorderRadius: 0, /** * Can be `2` or `[2, 4]` or `[2, 3, 4, 5]` * @type {number|Array.} */ textPadding: null, /** * Text styles for rich text. * @type {Object} */ rich: null, /** * {outerWidth, outerHeight, ellipsis, placeholder} * @type {Object} */ truncate: null, /** * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation * @type {string} */ blend: null, /** * @param {CanvasRenderingContext2D} ctx */ bind: function (ctx, el, prevEl) { var style = this; var prevStyle = prevEl && prevEl.style; // If no prevStyle, it means first draw. // Only apply cache if the last time cachced by this function. var notCheckCache = !prevStyle || ctx.__attrCachedBy !== ContextCachedBy.STYLE_BIND; ctx.__attrCachedBy = ContextCachedBy.STYLE_BIND; for (var i = 0; i < STYLE_COMMON_PROPS.length; i++) { var prop = STYLE_COMMON_PROPS[i]; var styleName = prop[0]; if (notCheckCache || style[styleName] !== prevStyle[styleName]) { // FIXME Invalid property value will cause style leak from previous element. ctx[styleName] = fixShadow(ctx, styleName, style[styleName] || prop[1]); } } if ((notCheckCache || style.fill !== prevStyle.fill)) { ctx.fillStyle = style.fill; } if ((notCheckCache || style.stroke !== prevStyle.stroke)) { ctx.strokeStyle = style.stroke; } if ((notCheckCache || style.opacity !== prevStyle.opacity)) { ctx.globalAlpha = style.opacity == null ? 1 : style.opacity; } if ((notCheckCache || style.blend !== prevStyle.blend)) { ctx.globalCompositeOperation = style.blend || 'source-over'; } if (this.hasStroke()) { var lineWidth = style.lineWidth; ctx.lineWidth = lineWidth / ( (this.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1 ); } }, hasFill: function () { var fill = this.fill; return fill != null && fill !== 'none'; }, hasStroke: function () { var stroke = this.stroke; return stroke != null && stroke !== 'none' && this.lineWidth > 0; }, /** * Extend from other style * @param {zrender/graphic/Style} otherStyle * @param {boolean} overwrite true: overwrirte any way. * false: overwrite only when !target.hasOwnProperty * others: overwrite when property is not null/undefined. */ extendFrom: function (otherStyle, overwrite) { if (otherStyle) { for (var name in otherStyle) { if (otherStyle.hasOwnProperty(name) && (overwrite === true || ( overwrite === false ? !this.hasOwnProperty(name) : otherStyle[name] != null ) ) ) { this[name] = otherStyle[name]; } } } }, /** * Batch setting style with a given object * @param {Object|string} obj * @param {*} [obj] */ set: function (obj, value) { if (typeof obj === 'string') { this[obj] = value; } else { this.extendFrom(obj, true); } }, /** * Clone * @return {zrender/graphic/Style} [description] */ clone: function () { var newStyle = new this.constructor(); newStyle.extendFrom(this, true); return newStyle; }, getGradient: function (ctx, obj, rect) { var method = obj.type === 'radial' ? createRadialGradient : createLinearGradient; var canvasGradient = method(ctx, obj, rect); var colorStops = obj.colorStops; for (var i = 0; i < colorStops.length; i++) { canvasGradient.addColorStop( colorStops[i].offset, colorStops[i].color ); } return canvasGradient; } }; var styleProto = Style.prototype; for (var i = 0; i < STYLE_COMMON_PROPS.length; i++) { var prop = STYLE_COMMON_PROPS[i]; if (!(prop[0] in styleProto)) { styleProto[prop[0]] = prop[1]; } } // Provide for others Style.getGradient = styleProto.getGradient; var Pattern = function (image, repeat) { // Should do nothing more in this constructor. Because gradient can be // declard by `color: {image: ...}`, where this constructor will not be called. this.image = image; this.repeat = repeat; // Can be cloned this.type = 'pattern'; }; Pattern.prototype.getCanvasPattern = function (ctx) { return ctx.createPattern(this.image, this.repeat || 'repeat'); }; /** * @module zrender/Layer * @author pissang(https://www.github.com/pissang) */ function returnFalse() { return false; } /** * 创建dom * * @inner * @param {string} id dom id 待用 * @param {Painter} painter painter instance * @param {number} number */ function createDom(id, painter, dpr) { var newDom = createCanvas(); var width = painter.getWidth(); var height = painter.getHeight(); var newDomStyle = newDom.style; if (newDomStyle) { // In node or some other non-browser environment newDomStyle.position = 'absolute'; newDomStyle.left = 0; newDomStyle.top = 0; newDomStyle.width = width + 'px'; newDomStyle.height = height + 'px'; newDom.setAttribute('data-zr-dom-id', id); } newDom.width = width * dpr; newDom.height = height * dpr; return newDom; } /** * @alias module:zrender/Layer * @constructor * @extends module:zrender/mixin/Transformable * @param {string} id * @param {module:zrender/Painter} painter * @param {number} [dpr] */ var Layer = function (id, painter, dpr) { var dom; dpr = dpr || devicePixelRatio; if (typeof id === 'string') { dom = createDom(id, painter, dpr); } // Not using isDom because in node it will return false else if (isObject$1(id)) { dom = id; id = dom.id; } this.id = id; this.dom = dom; var domStyle = dom.style; if (domStyle) { // Not in node dom.onselectstart = returnFalse; // 避免页面选中的尴尬 domStyle['-webkit-user-select'] = 'none'; domStyle['user-select'] = 'none'; domStyle['-webkit-touch-callout'] = 'none'; domStyle['-webkit-tap-highlight-color'] = 'rgba(0,0,0,0)'; domStyle['padding'] = 0; domStyle['margin'] = 0; domStyle['border-width'] = 0; } this.domBack = null; this.ctxBack = null; this.painter = painter; this.config = null; // Configs /** * 每次清空画布的颜色 * @type {string} * @default 0 */ this.clearColor = 0; /** * 是否开启动态模糊 * @type {boolean} * @default false */ this.motionBlur = false; /** * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显 * @type {number} * @default 0.7 */ this.lastFrameAlpha = 0.7; /** * Layer dpr * @type {number} */ this.dpr = dpr; }; Layer.prototype = { constructor: Layer, __dirty: true, __used: false, __drawIndex: 0, __startIndex: 0, __endIndex: 0, incremental: false, getElementCount: function () { return this.__endIndex - this.__startIndex; }, initContext: function () { this.ctx = this.dom.getContext('2d'); this.ctx.dpr = this.dpr; }, createBackBuffer: function () { var dpr = this.dpr; this.domBack = createDom('back-' + this.id, this.painter, dpr); this.ctxBack = this.domBack.getContext('2d'); if (dpr !== 1) { this.ctxBack.scale(dpr, dpr); } }, /** * @param {number} width * @param {number} height */ resize: function (width, height) { var dpr = this.dpr; var dom = this.dom; var domStyle = dom.style; var domBack = this.domBack; if (domStyle) { domStyle.width = width + 'px'; domStyle.height = height + 'px'; } dom.width = width * dpr; dom.height = height * dpr; if (domBack) { domBack.width = width * dpr; domBack.height = height * dpr; if (dpr !== 1) { this.ctxBack.scale(dpr, dpr); } } }, /** * 清空该层画布 * @param {boolean} [clearAll]=false Clear all with out motion blur * @param {Color} [clearColor] */ clear: function (clearAll, clearColor) { var dom = this.dom; var ctx = this.ctx; var width = dom.width; var height = dom.height; var clearColor = clearColor || this.clearColor; var haveMotionBLur = this.motionBlur && !clearAll; var lastFrameAlpha = this.lastFrameAlpha; var dpr = this.dpr; if (haveMotionBLur) { if (!this.domBack) { this.createBackBuffer(); } this.ctxBack.globalCompositeOperation = 'copy'; this.ctxBack.drawImage( dom, 0, 0, width / dpr, height / dpr ); } ctx.clearRect(0, 0, width, height); if (clearColor && clearColor !== 'transparent') { var clearColorGradientOrPattern; // Gradient if (clearColor.colorStops) { // Cache canvas gradient clearColorGradientOrPattern = clearColor.__canvasGradient || Style.getGradient(ctx, clearColor, { x: 0, y: 0, width: width, height: height }); clearColor.__canvasGradient = clearColorGradientOrPattern; } // Pattern else if (clearColor.image) { clearColorGradientOrPattern = Pattern.prototype.getCanvasPattern.call(clearColor, ctx); } ctx.save(); ctx.fillStyle = clearColorGradientOrPattern || clearColor; ctx.fillRect(0, 0, width, height); ctx.restore(); } if (haveMotionBLur) { var domBack = this.domBack; ctx.save(); ctx.globalAlpha = lastFrameAlpha; ctx.drawImage(domBack, 0, 0, width, height); ctx.restore(); } } }; var requestAnimationFrame = ( typeof window !== 'undefined' && ( (window.requestAnimationFrame && window.requestAnimationFrame.bind(window)) // https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809 || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window)) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ) ) || function (func) { setTimeout(func, 16); }; var globalImageCache = new LRU(50); /** * @param {string|HTMLImageElement|HTMLCanvasElement|Canvas} newImageOrSrc * @return {HTMLImageElement|HTMLCanvasElement|Canvas} image */ function findExistImage(newImageOrSrc) { if (typeof newImageOrSrc === 'string') { var cachedImgObj = globalImageCache.get(newImageOrSrc); return cachedImgObj && cachedImgObj.image; } else { return newImageOrSrc; } } /** * Caution: User should cache loaded images, but not just count on LRU. * Consider if required images more than LRU size, will dead loop occur? * * @param {string|HTMLImageElement|HTMLCanvasElement|Canvas} newImageOrSrc * @param {HTMLImageElement|HTMLCanvasElement|Canvas} image Existent image. * @param {module:zrender/Element} [hostEl] For calling `dirty`. * @param {Function} [cb] params: (image, cbPayload) * @param {Object} [cbPayload] Payload on cb calling. * @return {HTMLImageElement|HTMLCanvasElement|Canvas} image */ function createOrUpdateImage(newImageOrSrc, image, hostEl, cb, cbPayload) { if (!newImageOrSrc) { return image; } else if (typeof newImageOrSrc === 'string') { // Image should not be loaded repeatly. if ((image && image.__zrImageSrc === newImageOrSrc) || !hostEl) { return image; } // Only when there is no existent image or existent image src // is different, this method is responsible for load. var cachedImgObj = globalImageCache.get(newImageOrSrc); var pendingWrap = {hostEl: hostEl, cb: cb, cbPayload: cbPayload}; if (cachedImgObj) { image = cachedImgObj.image; !isImageReady(image) && cachedImgObj.pending.push(pendingWrap); } else { image = new Image(); image.onload = image.onerror = imageOnLoad; globalImageCache.put( newImageOrSrc, image.__cachedImgObj = { image: image, pending: [pendingWrap] } ); image.src = image.__zrImageSrc = newImageOrSrc; } return image; } // newImageOrSrc is an HTMLImageElement or HTMLCanvasElement or Canvas else { return newImageOrSrc; } } function imageOnLoad() { var cachedImgObj = this.__cachedImgObj; this.onload = this.onerror = this.__cachedImgObj = null; for (var i = 0; i < cachedImgObj.pending.length; i++) { var pendingWrap = cachedImgObj.pending[i]; var cb = pendingWrap.cb; cb && cb(this, pendingWrap.cbPayload); pendingWrap.hostEl.dirty(); } cachedImgObj.pending.length = 0; } function isImageReady(image) { return image && image.width && image.height; } var textWidthCache = {}; var textWidthCacheCounter = 0; var TEXT_CACHE_MAX = 5000; var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g; var DEFAULT_FONT$1 = '12px sans-serif'; // Avoid assign to an exported variable, for transforming to cjs. var methods$1 = {}; function $override$1(name, fn) { methods$1[name] = fn; } /** * @public * @param {string} text * @param {string} font * @return {number} width */ function getWidth(text, font) { font = font || DEFAULT_FONT$1; var key = text + ':' + font; if (textWidthCache[key]) { return textWidthCache[key]; } var textLines = (text + '').split('\n'); var width = 0; for (var i = 0, l = textLines.length; i < l; i++) { // textContain.measureText may be overrided in SVG or VML width = Math.max(measureText(textLines[i], font).width, width); } if (textWidthCacheCounter > TEXT_CACHE_MAX) { textWidthCacheCounter = 0; textWidthCache = {}; } textWidthCacheCounter++; textWidthCache[key] = width; return width; } /** * @public * @param {string} text * @param {string} font * @param {string} [textAlign='left'] * @param {string} [textVerticalAlign='top'] * @param {Array.} [textPadding] * @param {Object} [rich] * @param {Object} [truncate] * @return {Object} {x, y, width, height, lineHeight} */ function getBoundingRect(text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate) { return rich ? getRichTextRect(text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate) : getPlainTextRect(text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, truncate); } function getPlainTextRect(text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, truncate) { var contentBlock = parsePlainText(text, font, textPadding, textLineHeight, truncate); var outerWidth = getWidth(text, font); if (textPadding) { outerWidth += textPadding[1] + textPadding[3]; } var outerHeight = contentBlock.outerHeight; var x = adjustTextX(0, outerWidth, textAlign); var y = adjustTextY(0, outerHeight, textVerticalAlign); var rect = new BoundingRect(x, y, outerWidth, outerHeight); rect.lineHeight = contentBlock.lineHeight; return rect; } function getRichTextRect(text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate) { var contentBlock = parseRichText(text, { rich: rich, truncate: truncate, font: font, textAlign: textAlign, textPadding: textPadding, textLineHeight: textLineHeight }); var outerWidth = contentBlock.outerWidth; var outerHeight = contentBlock.outerHeight; var x = adjustTextX(0, outerWidth, textAlign); var y = adjustTextY(0, outerHeight, textVerticalAlign); return new BoundingRect(x, y, outerWidth, outerHeight); } /** * @public * @param {number} x * @param {number} width * @param {string} [textAlign='left'] * @return {number} Adjusted x. */ function adjustTextX(x, width, textAlign) { // FIXME Right to left language if (textAlign === 'right') { x -= width; } else if (textAlign === 'center') { x -= width / 2; } return x; } /** * @public * @param {number} y * @param {number} height * @param {string} [textVerticalAlign='top'] * @return {number} Adjusted y. */ function adjustTextY(y, height, textVerticalAlign) { if (textVerticalAlign === 'middle') { y -= height / 2; } else if (textVerticalAlign === 'bottom') { y -= height; } return y; } /** * Follow same interface to `Displayable.prototype.calculateTextPosition`. * @public * @param {Obejct} [out] Prepared out object. If not input, auto created in the method. * @param {module:zrender/graphic/Style} style where `textPosition` and `textDistance` are visited. * @param {Object} rect {x, y, width, height} Rect of the host elment, according to which the text positioned. * @return {Object} The input `out`. Set: {x, y, textAlign, textVerticalAlign} */ function calculateTextPosition(out, style, rect) { var textPosition = style.textPosition; var distance = style.textDistance; var x = rect.x; var y = rect.y; var height = rect.height; var width = rect.width; var halfHeight = height / 2; var textAlign = 'left'; var textVerticalAlign = 'top'; switch (textPosition) { case 'left': x -= distance; y += halfHeight; textAlign = 'right'; textVerticalAlign = 'middle'; break; case 'right': x += distance + width; y += halfHeight; textVerticalAlign = 'middle'; break; case 'top': x += width / 2; y -= distance; textAlign = 'center'; textVerticalAlign = 'bottom'; break; case 'bottom': x += width / 2; y += height + distance; textAlign = 'center'; break; case 'inside': x += width / 2; y += halfHeight; textAlign = 'center'; textVerticalAlign = 'middle'; break; case 'insideLeft': x += distance; y += halfHeight; textVerticalAlign = 'middle'; break; case 'insideRight': x += width - distance; y += halfHeight; textAlign = 'right'; textVerticalAlign = 'middle'; break; case 'insideTop': x += width / 2; y += distance; textAlign = 'center'; break; case 'insideBottom': x += width / 2; y += height - distance; textAlign = 'center'; textVerticalAlign = 'bottom'; break; case 'insideTopLeft': x += distance; y += distance; break; case 'insideTopRight': x += width - distance; y += distance; textAlign = 'right'; break; case 'insideBottomLeft': x += distance; y += height - distance; textVerticalAlign = 'bottom'; break; case 'insideBottomRight': x += width - distance; y += height - distance; textAlign = 'right'; textVerticalAlign = 'bottom'; break; } out = out || {}; out.x = x; out.y = y; out.textAlign = textAlign; out.textVerticalAlign = textVerticalAlign; return out; } /** * To be removed. But still do not remove in case that some one has imported it. * @deprecated * @public * @param {stirng} textPosition * @param {Object} rect {x, y, width, height} * @param {number} distance * @return {Object} {x, y, textAlign, textVerticalAlign} */ /** * Show ellipsis if overflow. * * @public * @param {string} text * @param {string} containerWidth * @param {string} font * @param {number} [ellipsis='...'] * @param {Object} [options] * @param {number} [options.maxIterations=3] * @param {number} [options.minChar=0] If truncate result are less * then minChar, ellipsis will not show, which is * better for user hint in some cases. * @param {number} [options.placeholder=''] When all truncated, use the placeholder. * @return {string} */ function truncateText(text, containerWidth, font, ellipsis, options) { if (!containerWidth) { return ''; } var textLines = (text + '').split('\n'); options = prepareTruncateOptions(containerWidth, font, ellipsis, options); // FIXME // It is not appropriate that every line has '...' when truncate multiple lines. for (var i = 0, len = textLines.length; i < len; i++) { textLines[i] = truncateSingleLine(textLines[i], options); } return textLines.join('\n'); } function prepareTruncateOptions(containerWidth, font, ellipsis, options) { options = extend({}, options); options.font = font; var ellipsis = retrieve2(ellipsis, '...'); options.maxIterations = retrieve2(options.maxIterations, 2); var minChar = options.minChar = retrieve2(options.minChar, 0); // FIXME // Other languages? options.cnCharWidth = getWidth('国', font); // FIXME // Consider proportional font? var ascCharWidth = options.ascCharWidth = getWidth('a', font); options.placeholder = retrieve2(options.placeholder, ''); // Example 1: minChar: 3, text: 'asdfzxcv', truncate result: 'asdf', but not: 'a...'. // Example 2: minChar: 3, text: '维度', truncate result: '维', but not: '...'. var contentWidth = containerWidth = Math.max(0, containerWidth - 1); // Reserve some gap. for (var i = 0; i < minChar && contentWidth >= ascCharWidth; i++) { contentWidth -= ascCharWidth; } var ellipsisWidth = getWidth(ellipsis, font); if (ellipsisWidth > contentWidth) { ellipsis = ''; ellipsisWidth = 0; } contentWidth = containerWidth - ellipsisWidth; options.ellipsis = ellipsis; options.ellipsisWidth = ellipsisWidth; options.contentWidth = contentWidth; options.containerWidth = containerWidth; return options; } function truncateSingleLine(textLine, options) { var containerWidth = options.containerWidth; var font = options.font; var contentWidth = options.contentWidth; if (!containerWidth) { return ''; } var lineWidth = getWidth(textLine, font); if (lineWidth <= containerWidth) { return textLine; } for (var j = 0; ; j++) { if (lineWidth <= contentWidth || j >= options.maxIterations) { textLine += options.ellipsis; break; } var subLength = j === 0 ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth) : lineWidth > 0 ? Math.floor(textLine.length * contentWidth / lineWidth) : 0; textLine = textLine.substr(0, subLength); lineWidth = getWidth(textLine, font); } if (textLine === '') { textLine = options.placeholder; } return textLine; } function estimateLength(text, contentWidth, ascCharWidth, cnCharWidth) { var width = 0; var i = 0; for (var len = text.length; i < len && width < contentWidth; i++) { var charCode = text.charCodeAt(i); width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth; } return i; } /** * @public * @param {string} font * @return {number} line height */ function getLineHeight(font) { // FIXME A rough approach. return getWidth('国', font); } /** * @public * @param {string} text * @param {string} font * @return {Object} width */ function measureText(text, font) { return methods$1.measureText(text, font); } // Avoid assign to an exported variable, for transforming to cjs. methods$1.measureText = function (text, font) { var ctx = getContext(); ctx.font = font || DEFAULT_FONT$1; return ctx.measureText(text); }; /** * @public * @param {string} text * @param {string} font * @param {Object} [truncate] * @return {Object} block: {lineHeight, lines, height, outerHeight} * Notice: for performance, do not calculate outerWidth util needed. */ function parsePlainText(text, font, padding, textLineHeight, truncate) { text != null && (text += ''); var lineHeight = retrieve2(textLineHeight, getLineHeight(font)); var lines = text ? text.split('\n') : []; var height = lines.length * lineHeight; var outerHeight = height; if (padding) { outerHeight += padding[0] + padding[2]; } if (text && truncate) { var truncOuterHeight = truncate.outerHeight; var truncOuterWidth = truncate.outerWidth; if (truncOuterHeight != null && outerHeight > truncOuterHeight) { text = ''; lines = []; } else if (truncOuterWidth != null) { var options = prepareTruncateOptions( truncOuterWidth - (padding ? padding[1] + padding[3] : 0), font, truncate.ellipsis, {minChar: truncate.minChar, placeholder: truncate.placeholder} ); // FIXME // It is not appropriate that every line has '...' when truncate multiple lines. for (var i = 0, len = lines.length; i < len; i++) { lines[i] = truncateSingleLine(lines[i], options); } } } return { lines: lines, height: height, outerHeight: outerHeight, lineHeight: lineHeight }; } /** * For example: 'some text {a|some text}other text{b|some text}xxx{c|}xxx' * Also consider 'bbbb{a|xxx\nzzz}xxxx\naaaa'. * * @public * @param {string} text * @param {Object} style * @return {Object} block * { * width, * height, * lines: [{ * lineHeight, * width, * tokens: [[{ * styleName, * text, * width, // include textPadding * height, // include textPadding * textWidth, // pure text width * textHeight, // pure text height * lineHeihgt, * font, * textAlign, * textVerticalAlign * }], [...], ...] * }, ...] * } * If styleName is undefined, it is plain text. */ function parseRichText(text, style) { var contentBlock = {lines: [], width: 0, height: 0}; text != null && (text += ''); if (!text) { return contentBlock; } var lastIndex = STYLE_REG.lastIndex = 0; var result; while ((result = STYLE_REG.exec(text)) != null) { var matchedIndex = result.index; if (matchedIndex > lastIndex) { pushTokens(contentBlock, text.substring(lastIndex, matchedIndex)); } pushTokens(contentBlock, result[2], result[1]); lastIndex = STYLE_REG.lastIndex; } if (lastIndex < text.length) { pushTokens(contentBlock, text.substring(lastIndex, text.length)); } var lines = contentBlock.lines; var contentHeight = 0; var contentWidth = 0; // For `textWidth: 100%` var pendingList = []; var stlPadding = style.textPadding; var truncate = style.truncate; var truncateWidth = truncate && truncate.outerWidth; var truncateHeight = truncate && truncate.outerHeight; if (stlPadding) { truncateWidth != null && (truncateWidth -= stlPadding[1] + stlPadding[3]); truncateHeight != null && (truncateHeight -= stlPadding[0] + stlPadding[2]); } // Calculate layout info of tokens. for (var i = 0; i < lines.length; i++) { var line = lines[i]; var lineHeight = 0; var lineWidth = 0; for (var j = 0; j < line.tokens.length; j++) { var token = line.tokens[j]; var tokenStyle = token.styleName && style.rich[token.styleName] || {}; // textPadding should not inherit from style. var textPadding = token.textPadding = tokenStyle.textPadding; // textFont has been asigned to font by `normalizeStyle`. var font = token.font = tokenStyle.font || style.font; // textHeight can be used when textVerticalAlign is specified in token. var tokenHeight = token.textHeight = retrieve2( // textHeight should not be inherited, consider it can be specified // as box height of the block. tokenStyle.textHeight, getLineHeight(font) ); textPadding && (tokenHeight += textPadding[0] + textPadding[2]); token.height = tokenHeight; token.lineHeight = retrieve3( tokenStyle.textLineHeight, style.textLineHeight, tokenHeight ); token.textAlign = tokenStyle && tokenStyle.textAlign || style.textAlign; token.textVerticalAlign = tokenStyle && tokenStyle.textVerticalAlign || 'middle'; if (truncateHeight != null && contentHeight + token.lineHeight > truncateHeight) { return {lines: [], width: 0, height: 0}; } token.textWidth = getWidth(token.text, font); var tokenWidth = tokenStyle.textWidth; var tokenWidthNotSpecified = tokenWidth == null || tokenWidth === 'auto'; // Percent width, can be `100%`, can be used in drawing separate // line when box width is needed to be auto. if (typeof tokenWidth === 'string' && tokenWidth.charAt(tokenWidth.length - 1) === '%') { token.percentWidth = tokenWidth; pendingList.push(token); tokenWidth = 0; // Do not truncate in this case, because there is no user case // and it is too complicated. } else { if (tokenWidthNotSpecified) { tokenWidth = token.textWidth; // FIXME: If image is not loaded and textWidth is not specified, calling // `getBoundingRect()` will not get correct result. var textBackgroundColor = tokenStyle.textBackgroundColor; var bgImg = textBackgroundColor && textBackgroundColor.image; // Use cases: // (1) If image is not loaded, it will be loaded at render phase and call // `dirty()` and `textBackgroundColor.image` will be replaced with the loaded // image, and then the right size will be calculated here at the next tick. // See `graphic/helper/text.js`. // (2) If image loaded, and `textBackgroundColor.image` is image src string, // use `imageHelper.findExistImage` to find cached image. // `imageHelper.findExistImage` will always be called here before // `imageHelper.createOrUpdateImage` in `graphic/helper/text.js#renderRichText` // which ensures that image will not be rendered before correct size calcualted. if (bgImg) { bgImg = findExistImage(bgImg); if (isImageReady(bgImg)) { tokenWidth = Math.max(tokenWidth, bgImg.width * tokenHeight / bgImg.height); } } } var paddingW = textPadding ? textPadding[1] + textPadding[3] : 0; tokenWidth += paddingW; var remianTruncWidth = truncateWidth != null ? truncateWidth - lineWidth : null; if (remianTruncWidth != null && remianTruncWidth < tokenWidth) { if (!tokenWidthNotSpecified || remianTruncWidth < paddingW) { token.text = ''; token.textWidth = tokenWidth = 0; } else { token.text = truncateText( token.text, remianTruncWidth - paddingW, font, truncate.ellipsis, {minChar: truncate.minChar} ); token.textWidth = getWidth(token.text, font); tokenWidth = token.textWidth + paddingW; } } } lineWidth += (token.width = tokenWidth); tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight)); } line.width = lineWidth; line.lineHeight = lineHeight; contentHeight += lineHeight; contentWidth = Math.max(contentWidth, lineWidth); } contentBlock.outerWidth = contentBlock.width = retrieve2(style.textWidth, contentWidth); contentBlock.outerHeight = contentBlock.height = retrieve2(style.textHeight, contentHeight); if (stlPadding) { contentBlock.outerWidth += stlPadding[1] + stlPadding[3]; contentBlock.outerHeight += stlPadding[0] + stlPadding[2]; } for (var i = 0; i < pendingList.length; i++) { var token = pendingList[i]; var percentWidth = token.percentWidth; // Should not base on outerWidth, because token can not be placed out of padding. token.width = parseInt(percentWidth, 10) / 100 * contentWidth; } return contentBlock; } function pushTokens(block, str, styleName) { var isEmptyStr = str === ''; var strs = str.split('\n'); var lines = block.lines; for (var i = 0; i < strs.length; i++) { var text = strs[i]; var token = { styleName: styleName, text: text, isLineHolder: !text && !isEmptyStr }; // The first token should be appended to the last line. if (!i) { var tokens = (lines[lines.length - 1] || (lines[0] = {tokens: []})).tokens; // Consider cases: // (1) ''.split('\n') => ['', '\n', ''], the '' at the first item // (which is a placeholder) should be replaced by new token. // (2) A image backage, where token likes {a|}. // (3) A redundant '' will affect textAlign in line. // (4) tokens with the same tplName should not be merged, because // they should be displayed in different box (with border and padding). var tokensLen = tokens.length; (tokensLen === 1 && tokens[0].isLineHolder) ? (tokens[0] = token) // Consider text is '', only insert when it is the "lineHolder" or // "emptyStr". Otherwise a redundant '' will affect textAlign in line. : ((text || !tokensLen || isEmptyStr) && tokens.push(token)); } // Other tokens always start a new line. else { // If there is '', insert it as a placeholder. lines.push({tokens: [token]}); } } } function makeFont(style) { // FIXME in node-canvas fontWeight is before fontStyle // Use `fontSize` `fontFamily` to check whether font properties are defined. var font = (style.fontSize || style.fontFamily) && [ style.fontStyle, style.fontWeight, (style.fontSize || 12) + 'px', // If font properties are defined, `fontFamily` should not be ignored. style.fontFamily || 'sans-serif' ].join(' '); return font && trim(font) || style.textFont || style.font; } /** * @param {Object} ctx * @param {Object} shape * @param {number} shape.x * @param {number} shape.y * @param {number} shape.width * @param {number} shape.height * @param {number} shape.r */ function buildPath(ctx, shape) { var x = shape.x; var y = shape.y; var width = shape.width; var height = shape.height; var r = shape.r; var r1; var r2; var r3; var r4; // Convert width and height to positive for better borderRadius if (width < 0) { x = x + width; width = -width; } if (height < 0) { y = y + height; height = -height; } if (typeof r === 'number') { r1 = r2 = r3 = r4 = r; } else if (r instanceof Array) { if (r.length === 1) { r1 = r2 = r3 = r4 = r[0]; } else if (r.length === 2) { r1 = r3 = r[0]; r2 = r4 = r[1]; } else if (r.length === 3) { r1 = r[0]; r2 = r4 = r[1]; r3 = r[2]; } else { r1 = r[0]; r2 = r[1]; r3 = r[2]; r4 = r[3]; } } else { r1 = r2 = r3 = r4 = 0; } var total; if (r1 + r2 > width) { total = r1 + r2; r1 *= width / total; r2 *= width / total; } if (r3 + r4 > width) { total = r3 + r4; r3 *= width / total; r4 *= width / total; } if (r2 + r3 > height) { total = r2 + r3; r2 *= height / total; r3 *= height / total; } if (r1 + r4 > height) { total = r1 + r4; r1 *= height / total; r4 *= height / total; } ctx.moveTo(x + r1, y); ctx.lineTo(x + width - r2, y); r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0); ctx.lineTo(x + width, y + height - r3); r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2); ctx.lineTo(x + r4, y + height); r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI); ctx.lineTo(x, y + r1); r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5); } var DEFAULT_FONT = DEFAULT_FONT$1; // TODO: Have not support 'start', 'end' yet. var VALID_TEXT_ALIGN = {left: 1, right: 1, center: 1}; var VALID_TEXT_VERTICAL_ALIGN = {top: 1, bottom: 1, middle: 1}; // Different from `STYLE_COMMON_PROPS` of `graphic/Style`, // the default value of shadowColor is `'transparent'`. var SHADOW_STYLE_COMMON_PROPS = [ ['textShadowBlur', 'shadowBlur', 0], ['textShadowOffsetX', 'shadowOffsetX', 0], ['textShadowOffsetY', 'shadowOffsetY', 0], ['textShadowColor', 'shadowColor', 'transparent'] ]; var _tmpTextPositionResult = {}; var _tmpBoxPositionResult = {}; /** * @param {module:zrender/graphic/Style} style * @return {module:zrender/graphic/Style} The input style. */ function normalizeTextStyle(style) { normalizeStyle(style); each$1(style.rich, normalizeStyle); return style; } function normalizeStyle(style) { if (style) { style.font = makeFont(style); var textAlign = style.textAlign; textAlign === 'middle' && (textAlign = 'center'); style.textAlign = ( textAlign == null || VALID_TEXT_ALIGN[textAlign] ) ? textAlign : 'left'; // Compatible with textBaseline. var textVerticalAlign = style.textVerticalAlign || style.textBaseline; textVerticalAlign === 'center' && (textVerticalAlign = 'middle'); style.textVerticalAlign = ( textVerticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[textVerticalAlign] ) ? textVerticalAlign : 'top'; var textPadding = style.textPadding; if (textPadding) { style.textPadding = normalizeCssArray(style.textPadding); } } } /** * @param {CanvasRenderingContext2D} ctx * @param {string} text * @param {module:zrender/graphic/Style} style * @param {Object|boolean} [rect] {x, y, width, height} * If set false, rect text is not used. * @param {Element|module:zrender/graphic/helper/constant.WILL_BE_RESTORED} [prevEl] For ctx prop cache. */ function renderText(hostEl, ctx, text, style, rect, prevEl) { style.rich ? renderRichText(hostEl, ctx, text, style, rect, prevEl) : renderPlainText(hostEl, ctx, text, style, rect, prevEl); } // Avoid setting to ctx according to prevEl if possible for // performance in scenarios of large amount text. function renderPlainText(hostEl, ctx, text, style, rect, prevEl) { 'use strict'; var needDrawBg = needDrawBackground(style); var prevStyle; var checkCache = false; var cachedByMe = ctx.__attrCachedBy === ContextCachedBy.PLAIN_TEXT; // Only take and check cache for `Text` el, but not RectText. if (prevEl !== WILL_BE_RESTORED) { if (prevEl) { prevStyle = prevEl.style; checkCache = !needDrawBg && cachedByMe && prevStyle; } // Prevent from using cache in `Style::bind`, because of the case: // ctx property is modified by other properties than `Style::bind` // used, and Style::bind is called next. ctx.__attrCachedBy = needDrawBg ? ContextCachedBy.NONE : ContextCachedBy.PLAIN_TEXT; } // Since this will be restored, prevent from using these props to check cache in the next // entering of this method. But do not need to clear other cache like `Style::bind`. else if (cachedByMe) { ctx.__attrCachedBy = ContextCachedBy.NONE; } var styleFont = style.font || DEFAULT_FONT; // PENDING // Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically // we can make font cache on ctx, which can cache for text el that are discontinuous. // But layer save/restore needed to be considered. // if (styleFont !== ctx.__fontCache) { // ctx.font = styleFont; // if (prevEl !== WILL_BE_RESTORED) { // ctx.__fontCache = styleFont; // } // } if (!checkCache || styleFont !== (prevStyle.font || DEFAULT_FONT)) { ctx.font = styleFont; } // Use the final font from context-2d, because the final // font might not be the style.font when it is illegal. // But get `ctx.font` might be time consuming. var computedFont = hostEl.__computedFont; if (hostEl.__styleFont !== styleFont) { hostEl.__styleFont = styleFont; computedFont = hostEl.__computedFont = ctx.font; } var textPadding = style.textPadding; var textLineHeight = style.textLineHeight; var contentBlock = hostEl.__textCotentBlock; if (!contentBlock || hostEl.__dirtyText) { contentBlock = hostEl.__textCotentBlock = parsePlainText( text, computedFont, textPadding, textLineHeight, style.truncate ); } var outerHeight = contentBlock.outerHeight; var textLines = contentBlock.lines; var lineHeight = contentBlock.lineHeight; var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect); var baseX = boxPos.baseX; var baseY = boxPos.baseY; var textAlign = boxPos.textAlign || 'left'; var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing. applyTextRotation(ctx, style, rect, baseX, baseY); var boxY = adjustTextY(baseY, outerHeight, textVerticalAlign); var textX = baseX; var textY = boxY; if (needDrawBg || textPadding) { // Consider performance, do not call getTextWidth util necessary. var textWidth = getWidth(text, computedFont); var outerWidth = textWidth; textPadding && (outerWidth += textPadding[1] + textPadding[3]); var boxX = adjustTextX(baseX, outerWidth, textAlign); needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight); if (textPadding) { textX = getTextXForPadding(baseX, textAlign, textPadding); textY += textPadding[0]; } } // Always set textAlign and textBase line, because it is difficute to calculate // textAlign from prevEl, and we dont sure whether textAlign will be reset if // font set happened. ctx.textAlign = textAlign; // Force baseline to be "middle". Otherwise, if using "top", the // text will offset downward a little bit in font "Microsoft YaHei". ctx.textBaseline = 'middle'; // Set text opacity ctx.globalAlpha = style.opacity || 1; // Always set shadowBlur and shadowOffset to avoid leak from displayable. for (var i = 0; i < SHADOW_STYLE_COMMON_PROPS.length; i++) { var propItem = SHADOW_STYLE_COMMON_PROPS[i]; var styleProp = propItem[0]; var ctxProp = propItem[1]; var val = style[styleProp]; if (!checkCache || val !== prevStyle[styleProp]) { ctx[ctxProp] = fixShadow(ctx, ctxProp, val || propItem[2]); } } // `textBaseline` is set as 'middle'. textY += lineHeight / 2; var textStrokeWidth = style.textStrokeWidth; var textStrokeWidthPrev = checkCache ? prevStyle.textStrokeWidth : null; var strokeWidthChanged = !checkCache || textStrokeWidth !== textStrokeWidthPrev; var strokeChanged = !checkCache || strokeWidthChanged || style.textStroke !== prevStyle.textStroke; var textStroke = getStroke(style.textStroke, textStrokeWidth); var textFill = getFill(style.textFill); if (textStroke) { if (strokeWidthChanged) { ctx.lineWidth = textStrokeWidth; } if (strokeChanged) { ctx.strokeStyle = textStroke; } } if (textFill) { if (!checkCache || style.textFill !== prevStyle.textFill) { ctx.fillStyle = textFill; } } // Optimize simply, in most cases only one line exists. if (textLines.length === 1) { // Fill after stroke so the outline will not cover the main part. textStroke && ctx.strokeText(textLines[0], textX, textY); textFill && ctx.fillText(textLines[0], textX, textY); } else { for (var i = 0; i < textLines.length; i++) { // Fill after stroke so the outline will not cover the main part. textStroke && ctx.strokeText(textLines[i], textX, textY); textFill && ctx.fillText(textLines[i], textX, textY); textY += lineHeight; } } } function renderRichText(hostEl, ctx, text, style, rect, prevEl) { // Do not do cache for rich text because of the complexity. // But `RectText` this will be restored, do not need to clear other cache like `Style::bind`. if (prevEl !== WILL_BE_RESTORED) { ctx.__attrCachedBy = ContextCachedBy.NONE; } var contentBlock = hostEl.__textCotentBlock; if (!contentBlock || hostEl.__dirtyText) { contentBlock = hostEl.__textCotentBlock = parseRichText(text, style); } drawRichText(hostEl, ctx, contentBlock, style, rect); } function drawRichText(hostEl, ctx, contentBlock, style, rect) { var contentWidth = contentBlock.width; var outerWidth = contentBlock.outerWidth; var outerHeight = contentBlock.outerHeight; var textPadding = style.textPadding; var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect); var baseX = boxPos.baseX; var baseY = boxPos.baseY; var textAlign = boxPos.textAlign; var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing. applyTextRotation(ctx, style, rect, baseX, baseY); var boxX = adjustTextX(baseX, outerWidth, textAlign); var boxY = adjustTextY(baseY, outerHeight, textVerticalAlign); var xLeft = boxX; var lineTop = boxY; if (textPadding) { xLeft += textPadding[3]; lineTop += textPadding[0]; } var xRight = xLeft + contentWidth; needDrawBackground(style) && drawBackground( hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight ); for (var i = 0; i < contentBlock.lines.length; i++) { var line = contentBlock.lines[i]; var tokens = line.tokens; var tokenCount = tokens.length; var lineHeight = line.lineHeight; var usedWidth = line.width; var leftIndex = 0; var lineXLeft = xLeft; var lineXRight = xRight; var rightIndex = tokenCount - 1; var token; while ( leftIndex < tokenCount && (token = tokens[leftIndex], !token.textAlign || token.textAlign === 'left') ) { placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXLeft, 'left'); usedWidth -= token.width; lineXLeft += token.width; leftIndex++; } while ( rightIndex >= 0 && (token = tokens[rightIndex], token.textAlign === 'right') ) { placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXRight, 'right'); usedWidth -= token.width; lineXRight -= token.width; rightIndex--; } // The other tokens are placed as textAlign 'center' if there is enough space. lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - usedWidth) / 2; while (leftIndex <= rightIndex) { token = tokens[leftIndex]; // Consider width specified by user, use 'center' rather than 'left'. placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXLeft + token.width / 2, 'center'); lineXLeft += token.width; leftIndex++; } lineTop += lineHeight; } } function applyTextRotation(ctx, style, rect, x, y) { // textRotation only apply in RectText. if (rect && style.textRotation) { var origin = style.textOrigin; if (origin === 'center') { x = rect.width / 2 + rect.x; y = rect.height / 2 + rect.y; } else if (origin) { x = origin[0] + rect.x; y = origin[1] + rect.y; } ctx.translate(x, y); // Positive: anticlockwise ctx.rotate(-style.textRotation); ctx.translate(-x, -y); } } function placeToken(hostEl, ctx, token, style, lineHeight, lineTop, x, textAlign) { var tokenStyle = style.rich[token.styleName] || {}; tokenStyle.text = token.text; // 'ctx.textBaseline' is always set as 'middle', for sake of // the bias of "Microsoft YaHei". var textVerticalAlign = token.textVerticalAlign; var y = lineTop + lineHeight / 2; if (textVerticalAlign === 'top') { y = lineTop + token.height / 2; } else if (textVerticalAlign === 'bottom') { y = lineTop + lineHeight - token.height / 2; } !token.isLineHolder && needDrawBackground(tokenStyle) && drawBackground( hostEl, ctx, tokenStyle, textAlign === 'right' ? x - token.width : textAlign === 'center' ? x - token.width / 2 : x, y - token.height / 2, token.width, token.height ); var textPadding = token.textPadding; if (textPadding) { x = getTextXForPadding(x, textAlign, textPadding); y -= token.height / 2 - textPadding[2] - token.textHeight / 2; } setCtx(ctx, 'shadowBlur', retrieve3(tokenStyle.textShadowBlur, style.textShadowBlur, 0)); setCtx(ctx, 'shadowColor', tokenStyle.textShadowColor || style.textShadowColor || 'transparent'); setCtx(ctx, 'shadowOffsetX', retrieve3(tokenStyle.textShadowOffsetX, style.textShadowOffsetX, 0)); setCtx(ctx, 'shadowOffsetY', retrieve3(tokenStyle.textShadowOffsetY, style.textShadowOffsetY, 0)); setCtx(ctx, 'textAlign', textAlign); // Force baseline to be "middle". Otherwise, if using "top", the // text will offset downward a little bit in font "Microsoft YaHei". setCtx(ctx, 'textBaseline', 'middle'); setCtx(ctx, 'font', token.font || DEFAULT_FONT); var textStroke = getStroke(tokenStyle.textStroke || style.textStroke, textStrokeWidth); var textFill = getFill(tokenStyle.textFill || style.textFill); var textStrokeWidth = retrieve2(tokenStyle.textStrokeWidth, style.textStrokeWidth); // Fill after stroke so the outline will not cover the main part. if (textStroke) { setCtx(ctx, 'lineWidth', textStrokeWidth); setCtx(ctx, 'strokeStyle', textStroke); ctx.strokeText(token.text, x, y); } if (textFill) { setCtx(ctx, 'fillStyle', textFill); ctx.fillText(token.text, x, y); } } function needDrawBackground(style) { return !!( style.textBackgroundColor || (style.textBorderWidth && style.textBorderColor) ); } // style: {textBackgroundColor, textBorderWidth, textBorderColor, textBorderRadius, text} // shape: {x, y, width, height} function drawBackground(hostEl, ctx, style, x, y, width, height) { var textBackgroundColor = style.textBackgroundColor; var textBorderWidth = style.textBorderWidth; var textBorderColor = style.textBorderColor; var isPlainBg = isString(textBackgroundColor); setCtx(ctx, 'shadowBlur', style.textBoxShadowBlur || 0); setCtx(ctx, 'shadowColor', style.textBoxShadowColor || 'transparent'); setCtx(ctx, 'shadowOffsetX', style.textBoxShadowOffsetX || 0); setCtx(ctx, 'shadowOffsetY', style.textBoxShadowOffsetY || 0); if (isPlainBg || (textBorderWidth && textBorderColor)) { ctx.beginPath(); var textBorderRadius = style.textBorderRadius; if (!textBorderRadius) { ctx.rect(x, y, width, height); } else { buildPath(ctx, { x: x, y: y, width: width, height: height, r: textBorderRadius }); } ctx.closePath(); } if (isPlainBg) { setCtx(ctx, 'fillStyle', textBackgroundColor); if (style.fillOpacity != null) { var originalGlobalAlpha = ctx.globalAlpha; ctx.globalAlpha = style.fillOpacity * style.opacity; ctx.fill(); ctx.globalAlpha = originalGlobalAlpha; } else { ctx.fill(); } } else if (isObject$1(textBackgroundColor)) { var image = textBackgroundColor.image; image = createOrUpdateImage( image, null, hostEl, onBgImageLoaded, textBackgroundColor ); if (image && isImageReady(image)) { ctx.drawImage(image, x, y, width, height); } } if (textBorderWidth && textBorderColor) { setCtx(ctx, 'lineWidth', textBorderWidth); setCtx(ctx, 'strokeStyle', textBorderColor); if (style.strokeOpacity != null) { var originalGlobalAlpha = ctx.globalAlpha; ctx.globalAlpha = style.strokeOpacity * style.opacity; ctx.stroke(); ctx.globalAlpha = originalGlobalAlpha; } else { ctx.stroke(); } } } function onBgImageLoaded(image, textBackgroundColor) { // Replace image, so that `contain/text.js#parseRichText` // will get correct result in next tick. textBackgroundColor.image = image; } function getBoxPosition(out, hostEl, style, rect) { var baseX = style.x || 0; var baseY = style.y || 0; var textAlign = style.textAlign; var textVerticalAlign = style.textVerticalAlign; // Text position represented by coord if (rect) { var textPosition = style.textPosition; if (textPosition instanceof Array) { // Percent baseX = rect.x + parsePercent(textPosition[0], rect.width); baseY = rect.y + parsePercent(textPosition[1], rect.height); } else { var res = (hostEl && hostEl.calculateTextPosition) ? hostEl.calculateTextPosition(_tmpTextPositionResult, style, rect) : calculateTextPosition(_tmpTextPositionResult, style, rect); baseX = res.x; baseY = res.y; // Default align and baseline when has textPosition textAlign = textAlign || res.textAlign; textVerticalAlign = textVerticalAlign || res.textVerticalAlign; } // textOffset is only support in RectText, otherwise // we have to adjust boundingRect for textOffset. var textOffset = style.textOffset; if (textOffset) { baseX += textOffset[0]; baseY += textOffset[1]; } } out = out || {}; out.baseX = baseX; out.baseY = baseY; out.textAlign = textAlign; out.textVerticalAlign = textVerticalAlign; return out; } function setCtx(ctx, prop, value) { ctx[prop] = fixShadow(ctx, prop, value); return ctx[prop]; } /** * @param {string} [stroke] If specified, do not check style.textStroke. * @param {string} [lineWidth] If specified, do not check style.textStroke. * @param {number} style */ function getStroke(stroke, lineWidth) { return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none') ? null // TODO pattern and gradient? : (stroke.image || stroke.colorStops) ? '#000' : stroke; } function getFill(fill) { return (fill == null || fill === 'none') ? null // TODO pattern and gradient? : (fill.image || fill.colorStops) ? '#000' : fill; } function parsePercent(value, maxValue) { if (typeof value === 'string') { if (value.lastIndexOf('%') >= 0) { return parseFloat(value) / 100 * maxValue; } return parseFloat(value); } return value; } function getTextXForPadding(x, textAlign, textPadding) { return textAlign === 'right' ? (x - textPadding[1]) : textAlign === 'center' ? (x + textPadding[3] / 2 - textPadding[1] / 2) : (x + textPadding[3]); } /** * @param {string} text * @param {module:zrender/Style} style * @return {boolean} */ function needDrawText(text, style) { return text != null && (text || style.textBackgroundColor || (style.textBorderWidth && style.textBorderColor) || style.textPadding ); } /** * Mixin for drawing text in a element bounding rect * @module zrender/mixin/RectText */ var tmpRect$1 = new BoundingRect(); var RectText = function () {}; RectText.prototype = { constructor: RectText, /** * Draw text in a rect with specified position. * @param {CanvasRenderingContext2D} ctx * @param {Object} rect Displayable rect */ drawRectText: function (ctx, rect) { var style = this.style; rect = style.textRect || rect; // Optimize, avoid normalize every time. this.__dirty && normalizeTextStyle(style, true); var text = style.text; // Convert to string text != null && (text += ''); if (!needDrawText(text, style)) { return; } // FIXME // Do not provide prevEl to `textHelper.renderText` for ctx prop cache, // but use `ctx.save()` and `ctx.restore()`. Because the cache for rect // text propably break the cache for its host elements. ctx.save(); // Transform rect to view space var transform = this.transform; if (!style.transformText) { if (transform) { tmpRect$1.copy(rect); tmpRect$1.applyTransform(transform); rect = tmpRect$1; } } else { this.setTransform(ctx); } // transformText and textRotation can not be used at the same time. renderText(this, ctx, text, style, rect, WILL_BE_RESTORED); ctx.restore(); } }; /** * 可绘制的图形基类 * Base class of all displayable graphic objects * @module zrender/graphic/Displayable */ /** * @alias module:zrender/graphic/Displayable * @extends module:zrender/Element * @extends module:zrender/graphic/mixin/RectText */ function Displayable(opts) { opts = opts || {}; Element.call(this, opts); // Extend properties for (var name in opts) { if ( opts.hasOwnProperty(name) && name !== 'style' ) { this[name] = opts[name]; } } /** * @type {module:zrender/graphic/Style} */ this.style = new Style(opts.style, this); this._rect = null; // Shapes for cascade clipping. // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array. // because it is easy to only using null to check whether clipPaths changed. this.__clipPaths = null; // FIXME Stateful must be mixined after style is setted // Stateful.call(this, opts); } Displayable.prototype = { constructor: Displayable, type: 'displayable', /** * Displayable 是否为脏,Painter 中会根据该标记判断是否需要是否需要重新绘制 * Dirty flag. From which painter will determine if this displayable object needs brush * @name module:zrender/graphic/Displayable#__dirty * @type {boolean} */ __dirty: true, /** * 图形是否可见,为true时不绘制图形,但是仍能触发鼠标事件 * If ignore drawing of the displayable object. Mouse event will still be triggered * @name module:/zrender/graphic/Displayable#invisible * @type {boolean} * @default false */ invisible: false, /** * @name module:/zrender/graphic/Displayable#z * @type {number} * @default 0 */ z: 0, /** * @name module:/zrender/graphic/Displayable#z * @type {number} * @default 0 */ z2: 0, /** * z层level,决定绘画在哪层canvas中 * @name module:/zrender/graphic/Displayable#zlevel * @type {number} * @default 0 */ zlevel: 0, /** * 是否可拖拽 * @name module:/zrender/graphic/Displayable#draggable * @type {boolean} * @default false */ draggable: false, /** * 是否正在拖拽 * @name module:/zrender/graphic/Displayable#draggable * @type {boolean} * @default false */ dragging: false, /** * 是否相应鼠标事件 * @name module:/zrender/graphic/Displayable#silent * @type {boolean} * @default false */ silent: false, /** * If enable culling * @type {boolean} * @default false */ culling: false, /** * Mouse cursor when hovered * @name module:/zrender/graphic/Displayable#cursor * @type {string} */ cursor: 'pointer', /** * If hover area is bounding rect * @name module:/zrender/graphic/Displayable#rectHover * @type {string} */ rectHover: false, /** * Render the element progressively when the value >= 0, * usefull for large data. * @type {boolean} */ progressive: false, /** * @type {boolean} */ incremental: false, /** * Scale ratio for global scale. * @type {boolean} */ globalScaleRatio: 1, beforeBrush: function (ctx) {}, afterBrush: function (ctx) {}, /** * 图形绘制方法 * @param {CanvasRenderingContext2D} ctx */ // Interface brush: function (ctx, prevEl) {}, /** * 获取最小包围盒 * @return {module:zrender/core/BoundingRect} */ // Interface getBoundingRect: function () {}, /** * 判断坐标 x, y 是否在图形上 * If displayable element contain coord x, y * @param {number} x * @param {number} y * @return {boolean} */ contain: function (x, y) { return this.rectContain(x, y); }, /** * @param {Function} cb * @param {} context */ traverse: function (cb, context) { cb.call(context, this); }, /** * 判断坐标 x, y 是否在图形的包围盒上 * If bounding rect of element contain coord x, y * @param {number} x * @param {number} y * @return {boolean} */ rectContain: function (x, y) { var coord = this.transformCoordToLocal(x, y); var rect = this.getBoundingRect(); return rect.contain(coord[0], coord[1]); }, /** * 标记图形元素为脏,并且在下一帧重绘 * Mark displayable element dirty and refresh next frame */ dirty: function () { this.__dirty = this.__dirtyText = true; this._rect = null; this.__zr && this.__zr.refresh(); }, /** * 图形是否会触发事件 * If displayable object binded any event * @return {boolean} */ // TODO, 通过 bind 绑定的事件 // isSilent: function () { // return !( // this.hoverable || this.draggable // || this.onmousemove || this.onmouseover || this.onmouseout // || this.onmousedown || this.onmouseup || this.onclick // || this.ondragenter || this.ondragover || this.ondragleave // || this.ondrop // ); // }, /** * Alias for animate('style') * @param {boolean} loop */ animateStyle: function (loop) { return this.animate('style', loop); }, attrKV: function (key, value) { if (key !== 'style') { Element.prototype.attrKV.call(this, key, value); } else { this.style.set(value); } }, /** * @param {Object|string} key * @param {*} value */ setStyle: function (key, value) { this.style.set(key, value); this.dirty(false); return this; }, /** * Use given style object * @param {Object} obj */ useStyle: function (obj) { this.style = new Style(obj, this); this.dirty(false); return this; }, /** * The string value of `textPosition` needs to be calculated to a real postion. * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]` * by default. See `contain/text.js#calculateTextPosition` for more details. * But some coutom shapes like "pin", "flag" have center that is not exactly * `[width/2, height/2]`. So we provide this hook to customize the calculation * for those shapes. It will be called if the `style.textPosition` is a string. * @param {Obejct} [out] Prepared out object. If not provided, this method should * be responsible for creating one. * @param {module:zrender/graphic/Style} style * @param {Object} rect {x, y, width, height} * @return {Obejct} out The same as the input out. * { * x: number. mandatory. * y: number. mandatory. * textAlign: string. optional. use style.textAlign by default. * textVerticalAlign: string. optional. use style.textVerticalAlign by default. * } */ calculateTextPosition: null }; inherits(Displayable, Element); mixin(Displayable, RectText); /** * @alias zrender/graphic/Image * @extends module:zrender/graphic/Displayable * @constructor * @param {Object} opts */ function ZImage(opts) { Displayable.call(this, opts); } ZImage.prototype = { constructor: ZImage, type: 'image', brush: function (ctx, prevEl) { var style = this.style; var src = style.image; // Must bind each time style.bind(ctx, this, prevEl); var image = this._image = createOrUpdateImage( src, this._image, this, this.onload ); if (!image || !isImageReady(image)) { return; } // 图片已经加载完成 // if (image.nodeName.toUpperCase() == 'IMG') { // if (!image.complete) { // return; // } // } // Else is canvas var x = style.x || 0; var y = style.y || 0; var width = style.width; var height = style.height; var aspect = image.width / image.height; if (width == null && height != null) { // Keep image/height ratio width = height * aspect; } else if (height == null && width != null) { height = width / aspect; } else if (width == null && height == null) { width = image.width; height = image.height; } // 设置transform this.setTransform(ctx); if (style.sWidth && style.sHeight) { var sx = style.sx || 0; var sy = style.sy || 0; ctx.drawImage( image, sx, sy, style.sWidth, style.sHeight, x, y, width, height ); } else if (style.sx && style.sy) { var sx = style.sx; var sy = style.sy; var sWidth = width - sx; var sHeight = height - sy; ctx.drawImage( image, sx, sy, sWidth, sHeight, x, y, width, height ); } else { ctx.drawImage(image, x, y, width, height); } // Draw rect text if (style.text != null) { // Only restore transform when needs draw text. this.restoreTransform(ctx); this.drawRectText(ctx, this.getBoundingRect()); } }, getBoundingRect: function () { var style = this.style; if (!this._rect) { this._rect = new BoundingRect( style.x || 0, style.y || 0, style.width || 0, style.height || 0 ); } return this._rect; } }; inherits(ZImage, Displayable); var HOVER_LAYER_ZLEVEL = 1e5; var CANVAS_ZLEVEL = 314159; var EL_AFTER_INCREMENTAL_INC = 0.01; var INCREMENTAL_INC = 0.001; function parseInt10(val) { return parseInt(val, 10); } function isLayerValid(layer) { if (!layer) { return false; } if (layer.__builtin__) { return true; } if (typeof (layer.resize) !== 'function' || typeof (layer.refresh) !== 'function' ) { return false; } return true; } var tmpRect = new BoundingRect(0, 0, 0, 0); var viewRect = new BoundingRect(0, 0, 0, 0); function isDisplayableCulled(el, width, height) { tmpRect.copy(el.getBoundingRect()); if (el.transform) { tmpRect.applyTransform(el.transform); } viewRect.width = width; viewRect.height = height; return !tmpRect.intersect(viewRect); } function isClipPathChanged(clipPaths, prevClipPaths) { // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array. if (clipPaths === prevClipPaths) { return false; } if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) { return true; } for (var i = 0; i < clipPaths.length; i++) { if (clipPaths[i] !== prevClipPaths[i]) { return true; } } return false; } function doClip(clipPaths, ctx) { for (var i = 0; i < clipPaths.length; i++) { var clipPath = clipPaths[i]; clipPath.setTransform(ctx); ctx.beginPath(); clipPath.buildPath(ctx, clipPath.shape); ctx.clip(); // Transform back clipPath.restoreTransform(ctx); } } function createRoot(width, height) { var domRoot = document.createElement('div'); // domRoot.onselectstart = returnFalse; // 避免页面选中的尴尬 domRoot.style.cssText = [ 'position:relative', 'overflow:hidden', 'width:' + width + 'px', 'height:' + height + 'px', 'padding:0', 'margin:0', 'border-width:0' ].join(';') + ';'; return domRoot; } /** * @alias module:zrender/Painter * @constructor * @param {HTMLElement} root 绘图容器 * @param {module:zrender/Storage} storage * @param {Object} opts */ var Painter = function (root, storage, opts) { this.type = 'canvas'; // In node environment using node-canvas var singleCanvas = !root.nodeName // In node ? || root.nodeName.toUpperCase() === 'CANVAS'; this._opts = opts = extend({}, opts || {}); /** * @type {number} */ this.dpr = opts.devicePixelRatio || devicePixelRatio; /** * @type {boolean} * @private */ this._singleCanvas = singleCanvas; /** * 绘图容器 * @type {HTMLElement} */ this.root = root; var rootStyle = root.style; if (rootStyle) { rootStyle['-webkit-tap-highlight-color'] = 'transparent'; rootStyle['-webkit-user-select'] = rootStyle['user-select'] = rootStyle['-webkit-touch-callout'] = 'none'; root.innerHTML = ''; } /** * @type {module:zrender/Storage} */ this.storage = storage; /** * @type {Array.} * @private */ var zlevelList = this._zlevelList = []; /** * @type {Object.} * @private */ var layers = this._layers = {}; /** * @type {Object.} * @private */ this._layerConfig = {}; /** * zrender will do compositing when root is a canvas and have multiple zlevels. */ this._needsManuallyCompositing = false; if (!singleCanvas) { this._width = this._getSize(0); this._height = this._getSize(1); var domRoot = this._domRoot = createRoot( this._width, this._height ); root.appendChild(domRoot); } else { var width = root.width; var height = root.height; if (opts.width != null) { width = opts.width; } if (opts.height != null) { height = opts.height; } this.dpr = opts.devicePixelRatio || 1; // Use canvas width and height directly root.width = width * this.dpr; root.height = height * this.dpr; this._width = width; this._height = height; // Create layer if only one given canvas // Device can be specified to create a high dpi image. var mainLayer = new Layer(root, this, this.dpr); mainLayer.__builtin__ = true; mainLayer.initContext(); // FIXME Use canvas width and height // mainLayer.resize(width, height); layers[CANVAS_ZLEVEL] = mainLayer; mainLayer.zlevel = CANVAS_ZLEVEL; // Not use common zlevel. zlevelList.push(CANVAS_ZLEVEL); this._domRoot = root; } /** * @type {module:zrender/Layer} * @private */ this._hoverlayer = null; this._hoverElements = []; }; Painter.prototype = { constructor: Painter, getType: function () { return 'canvas'; }, /** * If painter use a single canvas * @return {boolean} */ isSingleCanvas: function () { return this._singleCanvas; }, /** * @return {HTMLDivElement} */ getViewportRoot: function () { return this._domRoot; }, getViewportRootOffset: function () { var viewportRoot = this.getViewportRoot(); if (viewportRoot) { return { offsetLeft: viewportRoot.offsetLeft || 0, offsetTop: viewportRoot.offsetTop || 0 }; } }, /** * 刷新 * @param {boolean} [paintAll=false] 强制绘制所有displayable */ refresh: function (paintAll) { var list = this.storage.getDisplayList(true); var zlevelList = this._zlevelList; this._redrawId = Math.random(); this._paintList(list, paintAll, this._redrawId); // Paint custum layers for (var i = 0; i < zlevelList.length; i++) { var z = zlevelList[i]; var layer = this._layers[z]; if (!layer.__builtin__ && layer.refresh) { var clearColor = i === 0 ? this._backgroundColor : null; layer.refresh(clearColor); } } this.refreshHover(); return this; }, addHover: function (el, hoverStyle) { if (el.__hoverMir) { return; } var elMirror = new el.constructor({ style: el.style, shape: el.shape, z: el.z, z2: el.z2, silent: el.silent }); elMirror.__from = el; el.__hoverMir = elMirror; hoverStyle && elMirror.setStyle(hoverStyle); this._hoverElements.push(elMirror); return elMirror; }, removeHover: function (el) { var elMirror = el.__hoverMir; var hoverElements = this._hoverElements; var idx = indexOf(hoverElements, elMirror); if (idx >= 0) { hoverElements.splice(idx, 1); } el.__hoverMir = null; }, clearHover: function (el) { var hoverElements = this._hoverElements; for (var i = 0; i < hoverElements.length; i++) { var from = hoverElements[i].__from; if (from) { from.__hoverMir = null; } } hoverElements.length = 0; }, refreshHover: function () { var hoverElements = this._hoverElements; var len = hoverElements.length; var hoverLayer = this._hoverlayer; hoverLayer && hoverLayer.clear(); if (!len) { return; } sort(hoverElements, this.storage.displayableSortFunc); // Use a extream large zlevel // FIXME? if (!hoverLayer) { hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL); } var scope = {}; hoverLayer.ctx.save(); for (var i = 0; i < len;) { var el = hoverElements[i]; var originalEl = el.__from; // Original el is removed // PENDING if (!(originalEl && originalEl.__zr)) { hoverElements.splice(i, 1); originalEl.__hoverMir = null; len--; continue; } i++; // Use transform // FIXME style and shape ? if (!originalEl.invisible) { el.transform = originalEl.transform; el.invTransform = originalEl.invTransform; el.__clipPaths = originalEl.__clipPaths; // el. this._doPaintEl(el, hoverLayer, true, scope); } } hoverLayer.ctx.restore(); }, getHoverLayer: function () { return this.getLayer(HOVER_LAYER_ZLEVEL); }, _paintList: function (list, paintAll, redrawId) { if (this._redrawId !== redrawId) { return; } paintAll = paintAll || false; this._updateLayerStatus(list); var finished = this._doPaintList(list, paintAll); if (this._needsManuallyCompositing) { this._compositeManually(); } if (!finished) { var self = this; requestAnimationFrame(function () { self._paintList(list, paintAll, redrawId); }); } }, _compositeManually: function () { var ctx = this.getLayer(CANVAS_ZLEVEL).ctx; var width = this._domRoot.width; var height = this._domRoot.height; ctx.clearRect(0, 0, width, height); // PENDING, If only builtin layer? this.eachBuiltinLayer(function (layer) { if (layer.virtual) { ctx.drawImage(layer.dom, 0, 0, width, height); } }); }, _doPaintList: function (list, paintAll) { var layerList = []; for (var zi = 0; zi < this._zlevelList.length; zi++) { var zlevel = this._zlevelList[zi]; var layer = this._layers[zlevel]; if (layer.__builtin__ && layer !== this._hoverlayer && (layer.__dirty || paintAll) ) { layerList.push(layer); } } var finished = true; for (var k = 0; k < layerList.length; k++) { var layer = layerList[k]; var ctx = layer.ctx; var scope = {}; ctx.save(); var start = paintAll ? layer.__startIndex : layer.__drawIndex; var useTimer = !paintAll && layer.incremental && Date.now; var startTime = useTimer && Date.now(); var clearColor = layer.zlevel === this._zlevelList[0] ? this._backgroundColor : null; // All elements in this layer are cleared. if (layer.__startIndex === layer.__endIndex) { layer.clear(false, clearColor); } else if (start === layer.__startIndex) { var firstEl = list[start]; if (!firstEl.incremental || !firstEl.notClear || paintAll) { layer.clear(false, clearColor); } } if (start === -1) { console.error('For some unknown reason. drawIndex is -1'); start = layer.__startIndex; } for (var i = start; i < layer.__endIndex; i++) { var el = list[i]; this._doPaintEl(el, layer, paintAll, scope); el.__dirty = el.__dirtyText = false; if (useTimer) { // Date.now can be executed in 13,025,305 ops/second. var dTime = Date.now() - startTime; // Give 15 millisecond to draw. // The rest elements will be drawn in the next frame. if (dTime > 15) { break; } } } layer.__drawIndex = i; if (layer.__drawIndex < layer.__endIndex) { finished = false; } if (scope.prevElClipPaths) { // Needs restore the state. If last drawn element is in the clipping area. ctx.restore(); } ctx.restore(); } if (env$1.wxa) { // Flush for weixin application each$1(this._layers, function (layer) { if (layer && layer.ctx && layer.ctx.draw) { layer.ctx.draw(); } }); } return finished; }, _doPaintEl: function (el, currentLayer, forcePaint, scope) { var ctx = currentLayer.ctx; var m = el.transform; if ( (currentLayer.__dirty || forcePaint) // Ignore invisible element && !el.invisible // Ignore transparent element && el.style.opacity !== 0 // Ignore scale 0 element, in some environment like node-canvas // Draw a scale 0 element can cause all following draw wrong // And setTransform with scale 0 will cause set back transform failed. && !(m && !m[0] && !m[3]) // Ignore culled element && !(el.culling && isDisplayableCulled(el, this._width, this._height)) ) { var clipPaths = el.__clipPaths; var prevElClipPaths = scope.prevElClipPaths; // Optimize when clipping on group with several elements if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) { // If has previous clipping state, restore from it if (prevElClipPaths) { ctx.restore(); scope.prevElClipPaths = null; // Reset prevEl since context has been restored scope.prevEl = null; } // New clipping state if (clipPaths) { ctx.save(); doClip(clipPaths, ctx); scope.prevElClipPaths = clipPaths; } } el.beforeBrush && el.beforeBrush(ctx); el.brush(ctx, scope.prevEl || null); scope.prevEl = el; el.afterBrush && el.afterBrush(ctx); } }, /** * 获取 zlevel 所在层,如果不存在则会创建一个新的层 * @param {number} zlevel * @param {boolean} virtual Virtual layer will not be inserted into dom. * @return {module:zrender/Layer} */ getLayer: function (zlevel, virtual) { if (this._singleCanvas && !this._needsManuallyCompositing) { zlevel = CANVAS_ZLEVEL; } var layer = this._layers[zlevel]; if (!layer) { // Create a new layer layer = new Layer('zr_' + zlevel, this, this.dpr); layer.zlevel = zlevel; layer.__builtin__ = true; if (this._layerConfig[zlevel]) { merge(layer, this._layerConfig[zlevel], true); } if (virtual) { layer.virtual = virtual; } this.insertLayer(zlevel, layer); // Context is created after dom inserted to document // Or excanvas will get 0px clientWidth and clientHeight layer.initContext(); } return layer; }, insertLayer: function (zlevel, layer) { var layersMap = this._layers; var zlevelList = this._zlevelList; var len = zlevelList.length; var prevLayer = null; var i = -1; var domRoot = this._domRoot; if (layersMap[zlevel]) { zrLog('ZLevel ' + zlevel + ' has been used already'); return; } // Check if is a valid layer if (!isLayerValid(layer)) { zrLog('Layer of zlevel ' + zlevel + ' is not valid'); return; } if (len > 0 && zlevel > zlevelList[0]) { for (i = 0; i < len - 1; i++) { if ( zlevelList[i] < zlevel && zlevelList[i + 1] > zlevel ) { break; } } prevLayer = layersMap[zlevelList[i]]; } zlevelList.splice(i + 1, 0, zlevel); layersMap[zlevel] = layer; // Vitual layer will not directly show on the screen. // (It can be a WebGL layer and assigned to a ZImage element) // But it still under management of zrender. if (!layer.virtual) { if (prevLayer) { var prevDom = prevLayer.dom; if (prevDom.nextSibling) { domRoot.insertBefore( layer.dom, prevDom.nextSibling ); } else { domRoot.appendChild(layer.dom); } } else { if (domRoot.firstChild) { domRoot.insertBefore(layer.dom, domRoot.firstChild); } else { domRoot.appendChild(layer.dom); } } } }, // Iterate each layer eachLayer: function (cb, context) { var zlevelList = this._zlevelList; var z; var i; for (i = 0; i < zlevelList.length; i++) { z = zlevelList[i]; cb.call(context, this._layers[z], z); } }, // Iterate each buildin layer eachBuiltinLayer: function (cb, context) { var zlevelList = this._zlevelList; var layer; var z; var i; for (i = 0; i < zlevelList.length; i++) { z = zlevelList[i]; layer = this._layers[z]; if (layer.__builtin__) { cb.call(context, layer, z); } } }, // Iterate each other layer except buildin layer eachOtherLayer: function (cb, context) { var zlevelList = this._zlevelList; var layer; var z; var i; for (i = 0; i < zlevelList.length; i++) { z = zlevelList[i]; layer = this._layers[z]; if (!layer.__builtin__) { cb.call(context, layer, z); } } }, /** * 获取所有已创建的层 * @param {Array.} [prevLayer] */ getLayers: function () { return this._layers; }, _updateLayerStatus: function (list) { this.eachBuiltinLayer(function (layer, z) { layer.__dirty = layer.__used = false; }); function updatePrevLayer(idx) { if (prevLayer) { if (prevLayer.__endIndex !== idx) { prevLayer.__dirty = true; } prevLayer.__endIndex = idx; } } if (this._singleCanvas) { for (var i = 1; i < list.length; i++) { var el = list[i]; if (el.zlevel !== list[i - 1].zlevel || el.incremental) { this._needsManuallyCompositing = true; break; } } } var prevLayer = null; var incrementalLayerCount = 0; for (var i = 0; i < list.length; i++) { var el = list[i]; var zlevel = el.zlevel; var layer; // PENDING If change one incremental element style ? // TODO Where there are non-incremental elements between incremental elements. if (el.incremental) { layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing); layer.incremental = true; incrementalLayerCount = 1; } else { layer = this.getLayer(zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0), this._needsManuallyCompositing); } if (!layer.__builtin__) { zrLog('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id); } if (layer !== prevLayer) { layer.__used = true; if (layer.__startIndex !== i) { layer.__dirty = true; } layer.__startIndex = i; if (!layer.incremental) { layer.__drawIndex = i; } else { // Mark layer draw index needs to update. layer.__drawIndex = -1; } updatePrevLayer(i); prevLayer = layer; } if (el.__dirty) { layer.__dirty = true; if (layer.incremental && layer.__drawIndex < 0) { // Start draw from the first dirty element. layer.__drawIndex = i; } } } updatePrevLayer(i); this.eachBuiltinLayer(function (layer, z) { // Used in last frame but not in this frame. Needs clear if (!layer.__used && layer.getElementCount() > 0) { layer.__dirty = true; layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0; } // For incremental layer. In case start index changed and no elements are dirty. if (layer.__dirty && layer.__drawIndex < 0) { layer.__drawIndex = layer.__startIndex; } }); }, /** * 清除hover层外所有内容 */ clear: function () { this.eachBuiltinLayer(this._clearLayer); return this; }, _clearLayer: function (layer) { layer.clear(); }, setBackgroundColor: function (backgroundColor) { this._backgroundColor = backgroundColor; }, /** * 修改指定zlevel的绘制参数 * * @param {string} zlevel * @param {Object} config 配置对象 * @param {string} [config.clearColor=0] 每次清空画布的颜色 * @param {string} [config.motionBlur=false] 是否开启动态模糊 * @param {number} [config.lastFrameAlpha=0.7] * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显 */ configLayer: function (zlevel, config) { if (config) { var layerConfig = this._layerConfig; if (!layerConfig[zlevel]) { layerConfig[zlevel] = config; } else { merge(layerConfig[zlevel], config, true); } for (var i = 0; i < this._zlevelList.length; i++) { var _zlevel = this._zlevelList[i]; if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) { var layer = this._layers[_zlevel]; merge(layer, layerConfig[zlevel], true); } } } }, /** * 删除指定层 * @param {number} zlevel 层所在的zlevel */ delLayer: function (zlevel) { var layers = this._layers; var zlevelList = this._zlevelList; var layer = layers[zlevel]; if (!layer) { return; } layer.dom.parentNode.removeChild(layer.dom); delete layers[zlevel]; zlevelList.splice(indexOf(zlevelList, zlevel), 1); }, /** * 区域大小变化后重绘 */ resize: function (width, height) { if (!this._domRoot.style) { // Maybe in node or worker if (width == null || height == null) { return; } this._width = width; this._height = height; this.getLayer(CANVAS_ZLEVEL).resize(width, height); } else { var domRoot = this._domRoot; // FIXME Why ? domRoot.style.display = 'none'; // Save input w/h var opts = this._opts; width != null && (opts.width = width); height != null && (opts.height = height); width = this._getSize(0); height = this._getSize(1); domRoot.style.display = ''; // 优化没有实际改变的resize if (this._width !== width || height !== this._height) { domRoot.style.width = width + 'px'; domRoot.style.height = height + 'px'; for (var id in this._layers) { if (this._layers.hasOwnProperty(id)) { this._layers[id].resize(width, height); } } each$1(this._progressiveLayers, function (layer) { layer.resize(width, height); }); this.refresh(true); } this._width = width; this._height = height; } return this; }, /** * 清除单独的一个层 * @param {number} zlevel */ clearLayer: function (zlevel) { var layer = this._layers[zlevel]; if (layer) { layer.clear(); } }, /** * 释放 */ dispose: function () { this.root.innerHTML = ''; this.root = this.storage = this._domRoot = this._layers = null; }, /** * Get canvas which has all thing rendered * @param {Object} opts * @param {string} [opts.backgroundColor] * @param {number} [opts.pixelRatio] */ getRenderedCanvas: function (opts) { opts = opts || {}; if (this._singleCanvas && !this._compositeManually) { return this._layers[CANVAS_ZLEVEL].dom; } var imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr); imageLayer.initContext(); imageLayer.clear(false, opts.backgroundColor || this._backgroundColor); if (opts.pixelRatio <= this.dpr) { this.refresh(); var width = imageLayer.dom.width; var height = imageLayer.dom.height; var ctx = imageLayer.ctx; this.eachLayer(function (layer) { if (layer.__builtin__) { ctx.drawImage(layer.dom, 0, 0, width, height); } else if (layer.renderToCanvas) { imageLayer.ctx.save(); layer.renderToCanvas(imageLayer.ctx); imageLayer.ctx.restore(); } }); } else { // PENDING, echarts-gl and incremental rendering. var scope = {}; var displayList = this.storage.getDisplayList(true); for (var i = 0; i < displayList.length; i++) { var el = displayList[i]; this._doPaintEl(el, imageLayer, true, scope); } } return imageLayer.dom; }, /** * 获取绘图区域宽度 */ getWidth: function () { return this._width; }, /** * 获取绘图区域高度 */ getHeight: function () { return this._height; }, _getSize: function (whIdx) { var opts = this._opts; var wh = ['width', 'height'][whIdx]; var cwh = ['clientWidth', 'clientHeight'][whIdx]; var plt = ['paddingLeft', 'paddingTop'][whIdx]; var prb = ['paddingRight', 'paddingBottom'][whIdx]; if (opts[wh] != null && opts[wh] !== 'auto') { return parseFloat(opts[wh]); } var root = this.root; // IE8 does not support getComputedStyle, but it use VML. var stl = document.defaultView.getComputedStyle(root); return ( (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh])) - (parseInt10(stl[plt]) || 0) - (parseInt10(stl[prb]) || 0) ) | 0; }, pathToImage: function (path, dpr) { dpr = dpr || this.dpr; var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); var rect = path.getBoundingRect(); var style = path.style; var shadowBlurSize = style.shadowBlur * dpr; var shadowOffsetX = style.shadowOffsetX * dpr; var shadowOffsetY = style.shadowOffsetY * dpr; var lineWidth = style.hasStroke() ? style.lineWidth : 0; var leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize); var rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize); var topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize); var bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize); var width = rect.width + leftMargin + rightMargin; var height = rect.height + topMargin + bottomMargin; canvas.width = width * dpr; canvas.height = height * dpr; ctx.scale(dpr, dpr); ctx.clearRect(0, 0, width, height); ctx.dpr = dpr; var pathTransform = { position: path.position, rotation: path.rotation, scale: path.scale }; path.position = [leftMargin - rect.x, topMargin - rect.y]; path.rotation = 0; path.scale = [1, 1]; path.updateTransform(); if (path) { path.brush(ctx); } var ImageShape = ZImage; var imgShape = new ImageShape({ style: { x: 0, y: 0, image: canvas } }); if (pathTransform.position != null) { imgShape.position = path.position = pathTransform.position; } if (pathTransform.rotation != null) { imgShape.rotation = path.rotation = pathTransform.rotation; } if (pathTransform.scale != null) { imgShape.scale = path.scale = pathTransform.scale; } return imgShape; } }; /** * 动画主类, 调度和管理所有动画控制器 * * @module zrender/animation/Animation * @author pissang(https://github.com/pissang) */ // TODO Additive animation // http://iosoteric.com/additive-animations-animatewithduration-in-ios-8/ // https://developer.apple.com/videos/wwdc2014/#236 /** * @typedef {Object} IZRenderStage * @property {Function} update */ /** * @alias module:zrender/animation/Animation * @constructor * @param {Object} [options] * @param {Function} [options.onframe] * @param {IZRenderStage} [options.stage] * @example * var animation = new Animation(); * var obj = { * x: 100, * y: 100 * }; * animation.animate(node.position) * .when(1000, { * x: 500, * y: 500 * }) * .when(2000, { * x: 100, * y: 100 * }) * .start('spline'); */ var Animation = function (options) { options = options || {}; this.stage = options.stage || {}; this.onframe = options.onframe || function () {}; // private properties this._clips = []; this._running = false; this._time; this._pausedTime; this._pauseStart; this._paused = false; Eventful.call(this); }; Animation.prototype = { constructor: Animation, /** * 添加 clip * @param {module:zrender/animation/Clip} clip */ addClip: function (clip) { this._clips.push(clip); }, /** * 添加 animator * @param {module:zrender/animation/Animator} animator */ addAnimator: function (animator) { animator.animation = this; var clips = animator.getClips(); for (var i = 0; i < clips.length; i++) { this.addClip(clips[i]); } }, /** * 删除动画片段 * @param {module:zrender/animation/Clip} clip */ removeClip: function (clip) { var idx = indexOf(this._clips, clip); if (idx >= 0) { this._clips.splice(idx, 1); } }, /** * 删除动画片段 * @param {module:zrender/animation/Animator} animator */ removeAnimator: function (animator) { var clips = animator.getClips(); for (var i = 0; i < clips.length; i++) { this.removeClip(clips[i]); } animator.animation = null; }, _update: function () { var time = new Date().getTime() - this._pausedTime; var delta = time - this._time; var clips = this._clips; var len = clips.length; var deferredEvents = []; var deferredClips = []; for (var i = 0; i < len; i++) { var clip = clips[i]; var e = clip.step(time, delta); // Throw out the events need to be called after // stage.update, like destroy if (e) { deferredEvents.push(e); deferredClips.push(clip); } } // Remove the finished clip for (var i = 0; i < len;) { if (clips[i]._needsRemove) { clips[i] = clips[len - 1]; clips.pop(); len--; } else { i++; } } len = deferredEvents.length; for (var i = 0; i < len; i++) { deferredClips[i].fire(deferredEvents[i]); } this._time = time; this.onframe(delta); // 'frame' should be triggered before stage, because upper application // depends on the sequence (e.g., echarts-stream and finish // event judge) this.trigger('frame', delta); if (this.stage.update) { this.stage.update(); } }, _startLoop: function () { var self = this; this._running = true; function step() { if (self._running) { requestAnimationFrame(step); !self._paused && self._update(); } } requestAnimationFrame(step); }, /** * Start animation. */ start: function () { this._time = new Date().getTime(); this._pausedTime = 0; this._startLoop(); }, /** * Stop animation. */ stop: function () { this._running = false; }, /** * Pause animation. */ pause: function () { if (!this._paused) { this._pauseStart = new Date().getTime(); this._paused = true; } }, /** * Resume animation. */ resume: function () { if (this._paused) { this._pausedTime += (new Date().getTime()) - this._pauseStart; this._paused = false; } }, /** * Clear animation. */ clear: function () { this._clips = []; }, /** * Whether animation finished. */ isFinished: function () { return !this._clips.length; }, /** * Creat animator for a target, whose props can be animated. * * @param {Object} target * @param {Object} options * @param {boolean} [options.loop=false] Whether loop animation. * @param {Function} [options.getter=null] Get value from target. * @param {Function} [options.setter=null] Set value to target. * @return {module:zrender/animation/Animation~Animator} */ // TODO Gap animate: function (target, options) { options = options || {}; var animator = new Animator( target, options.loop, options.getter, options.setter ); this.addAnimator(animator); return animator; } }; mixin(Animation, Eventful); var TOUCH_CLICK_DELAY = 300; var mouseHandlerNames = [ 'click', 'dblclick', 'mousewheel', 'mouseout', 'mouseup', 'mousedown', 'mousemove', 'contextmenu' ]; var touchHandlerNames = [ 'touchstart', 'touchend', 'touchmove' ]; var pointerEventNames = { pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1 }; var pointerHandlerNames = map(mouseHandlerNames, function (name) { var nm = name.replace('mouse', 'pointer'); return pointerEventNames[nm] ? nm : name; }); function eventNameFix(name) { return (name === 'mousewheel' && env$1.browser.firefox) ? 'DOMMouseScroll' : name; } // function onMSGestureChange(proxy, event) { // if (event.translationX || event.translationY) { // // mousemove is carried by MSGesture to reduce the sensitivity. // proxy.handler.dispatchToElement(event.target, 'mousemove', event); // } // if (event.scale !== 1) { // event.pinchX = event.offsetX; // event.pinchY = event.offsetY; // event.pinchScale = event.scale; // proxy.handler.dispatchToElement(event.target, 'pinch', event); // } // } /** * Prevent mouse event from being dispatched after Touch Events action * @see * 1. Mobile browsers dispatch mouse events 300ms after touchend. * 2. Chrome for Android dispatch mousedown for long-touch about 650ms * Result: Blocking Mouse Events for 700ms. */ function setTouchTimer(instance) { instance._touching = true; clearTimeout(instance._touchTimer); instance._touchTimer = setTimeout(function () { instance._touching = false; }, 700); } var domHandlers = { /** * Mouse move handler * @inner * @param {Event} event */ mousemove: function (event) { event = normalizeEvent(this.dom, event); this.trigger('mousemove', event); }, /** * Mouse out handler * @inner * @param {Event} event */ mouseout: function (event) { event = normalizeEvent(this.dom, event); var element = event.toElement || event.relatedTarget; if (element !== this.dom) { while (element && element.nodeType !== 9) { // 忽略包含在root中的dom引起的mouseOut if (element === this.dom) { return; } element = element.parentNode; } } this.trigger('mouseout', event); }, /** * Touch开始响应函数 * @inner * @param {Event} event */ touchstart: function (event) { // Default mouse behaviour should not be disabled here. // For example, page may needs to be slided. event = normalizeEvent(this.dom, event); // Mark touch, which is useful in distinguish touch and // mouse event in upper applicatoin. event.zrByTouch = true; this._lastTouchMoment = new Date(); this.handler.processGesture(this, event, 'start'); // In touch device, trigger `mousemove`(`mouseover`) should // be triggered, and must before `mousedown` triggered. domHandlers.mousemove.call(this, event); domHandlers.mousedown.call(this, event); setTouchTimer(this); }, /** * Touch移动响应函数 * @inner * @param {Event} event */ touchmove: function (event) { event = normalizeEvent(this.dom, event); // Mark touch, which is useful in distinguish touch and // mouse event in upper applicatoin. event.zrByTouch = true; this.handler.processGesture(this, event, 'change'); // Mouse move should always be triggered no matter whether // there is gestrue event, because mouse move and pinch may // be used at the same time. domHandlers.mousemove.call(this, event); setTouchTimer(this); }, /** * Touch结束响应函数 * @inner * @param {Event} event */ touchend: function (event) { event = normalizeEvent(this.dom, event); // Mark touch, which is useful in distinguish touch and // mouse event in upper applicatoin. event.zrByTouch = true; this.handler.processGesture(this, event, 'end'); domHandlers.mouseup.call(this, event); // Do not trigger `mouseout` here, in spite of `mousemove`(`mouseover`) is // triggered in `touchstart`. This seems to be illogical, but by this mechanism, // we can conveniently implement "hover style" in both PC and touch device just // by listening to `mouseover` to add "hover style" and listening to `mouseout` // to remove "hover style" on an element, without any additional code for // compatibility. (`mouseout` will not be triggered in `touchend`, so "hover // style" will remain for user view) // click event should always be triggered no matter whether // there is gestrue event. System click can not be prevented. if (+new Date() - this._lastTouchMoment < TOUCH_CLICK_DELAY) { domHandlers.click.call(this, event); } setTouchTimer(this); }, pointerdown: function (event) { domHandlers.mousedown.call(this, event); // if (useMSGuesture(this, event)) { // this._msGesture.addPointer(event.pointerId); // } }, pointermove: function (event) { // FIXME // pointermove is so sensitive that it always triggered when // tap(click) on touch screen, which affect some judgement in // upper application. So, we dont support mousemove on MS touch // device yet. if (!isPointerFromTouch(event)) { domHandlers.mousemove.call(this, event); } }, pointerup: function (event) { domHandlers.mouseup.call(this, event); }, pointerout: function (event) { // pointerout will be triggered when tap on touch screen // (IE11+/Edge on MS Surface) after click event triggered, // which is inconsistent with the mousout behavior we defined // in touchend. So we unify them. // (check domHandlers.touchend for detailed explanation) if (!isPointerFromTouch(event)) { domHandlers.mouseout.call(this, event); } } }; function isPointerFromTouch(event) { var pointerType = event.pointerType; return pointerType === 'pen' || pointerType === 'touch'; } // function useMSGuesture(handlerProxy, event) { // return isPointerFromTouch(event) && !!handlerProxy._msGesture; // } // Common handlers each$1(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) { domHandlers[name] = function (event) { event = normalizeEvent(this.dom, event); this.trigger(name, event); }; }); /** * 为控制类实例初始化dom 事件处理函数 * * @inner * @param {module:zrender/Handler} instance 控制类实例 */ function initDomHandler(instance) { each$1(touchHandlerNames, function (name) { instance._handlers[name] = bind(domHandlers[name], instance); }); each$1(pointerHandlerNames, function (name) { instance._handlers[name] = bind(domHandlers[name], instance); }); each$1(mouseHandlerNames, function (name) { instance._handlers[name] = makeMouseHandler(domHandlers[name], instance); }); function makeMouseHandler(fn, instance) { return function () { if (instance._touching) { return; } return fn.apply(instance, arguments); }; } } function HandlerDomProxy(dom) { Eventful.call(this); this.dom = dom; /** * @private * @type {boolean} */ this._touching = false; /** * @private * @type {number} */ this._touchTimer; this._handlers = {}; initDomHandler(this); if (env$1.pointerEventsSupported) { // Only IE11+/Edge // 1. On devices that both enable touch and mouse (e.g., MS Surface and lenovo X240), // IE11+/Edge do not trigger touch event, but trigger pointer event and mouse event // at the same time. // 2. On MS Surface, it probablely only trigger mousedown but no mouseup when tap on // screen, which do not occurs in pointer event. // So we use pointer event to both detect touch gesture and mouse behavior. mountHandlers(pointerHandlerNames, this); // FIXME // Note: MS Gesture require CSS touch-action set. But touch-action is not reliable, // which does not prevent defuault behavior occasionally (which may cause view port // zoomed in but use can not zoom it back). And event.preventDefault() does not work. // So we have to not to use MSGesture and not to support touchmove and pinch on MS // touch screen. And we only support click behavior on MS touch screen now. // MS Gesture Event is only supported on IE11+/Edge and on Windows 8+. // We dont support touch on IE on win7. // See // if (typeof MSGesture === 'function') { // (this._msGesture = new MSGesture()).target = dom; // jshint ignore:line // dom.addEventListener('MSGestureChange', onMSGestureChange); // } } else { if (env$1.touchEventsSupported) { mountHandlers(touchHandlerNames, this); // Handler of 'mouseout' event is needed in touch mode, which will be mounted below. // addEventListener(root, 'mouseout', this._mouseoutHandler); } // 1. Considering some devices that both enable touch and mouse event (like on MS Surface // and lenovo X240, @see #2350), we make mouse event be always listened, otherwise // mouse event can not be handle in those devices. // 2. On MS Surface, Chrome will trigger both touch event and mouse event. How to prevent // mouseevent after touch event triggered, see `setTouchTimer`. mountHandlers(mouseHandlerNames, this); } function mountHandlers(handlerNames, instance) { each$1(handlerNames, function (name) { addEventListener(dom, eventNameFix(name), instance._handlers[name]); }, instance); } } var handlerDomProxyProto = HandlerDomProxy.prototype; handlerDomProxyProto.dispose = function () { var handlerNames = mouseHandlerNames.concat(touchHandlerNames); for (var i = 0; i < handlerNames.length; i++) { var name = handlerNames[i]; removeEventListener(this.dom, eventNameFix(name), this._handlers[name]); } }; handlerDomProxyProto.setCursor = function (cursorStyle) { this.dom.style && (this.dom.style.cursor = cursorStyle || 'default'); }; mixin(HandlerDomProxy, Eventful); /*! * ZRender, a high performance 2d drawing library. * * Copyright (c) 2013, Baidu Inc. * All rights reserved. * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */ var useVML = !env$1.canvasSupported; var painterCtors = { canvas: Painter }; var instances$1 = {}; // ZRender实例map索引 /** * @type {string} */ var version$1 = '4.1.0'; /** * Initializing a zrender instance * @param {HTMLElement} dom * @param {Object} [opts] * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg' * @param {number} [opts.devicePixelRatio] * @param {number|string} [opts.width] Can be 'auto' (the same as null/undefined) * @param {number|string} [opts.height] Can be 'auto' (the same as null/undefined) * @return {module:zrender/ZRender} */ function init$1(dom, opts) { var zr = new ZRender(guid(), dom, opts); instances$1[zr.id] = zr; return zr; } /** * Dispose zrender instance * @param {module:zrender/ZRender} zr */ function dispose$1(zr) { if (zr) { zr.dispose(); } else { for (var key in instances$1) { if (instances$1.hasOwnProperty(key)) { instances$1[key].dispose(); } } instances$1 = {}; } return this; } /** * Get zrender instance by id * @param {string} id zrender instance id * @return {module:zrender/ZRender} */ function getInstance(id) { return instances$1[id]; } function registerPainter(name, Ctor) { painterCtors[name] = Ctor; } function delInstance(id) { delete instances$1[id]; } /** * @module zrender/ZRender */ /** * @constructor * @alias module:zrender/ZRender * @param {string} id * @param {HTMLElement} dom * @param {Object} opts * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg' * @param {number} [opts.devicePixelRatio] * @param {number} [opts.width] Can be 'auto' (the same as null/undefined) * @param {number} [opts.height] Can be 'auto' (the same as null/undefined) */ var ZRender = function (id, dom, opts) { opts = opts || {}; /** * @type {HTMLDomElement} */ this.dom = dom; /** * @type {string} */ this.id = id; var self = this; var storage = new Storage(); var rendererType = opts.renderer; // TODO WebGL if (useVML) { if (!painterCtors.vml) { throw new Error('You need to require \'zrender/vml/vml\' to support IE8'); } rendererType = 'vml'; } else if (!rendererType || !painterCtors[rendererType]) { rendererType = 'canvas'; } var painter = new painterCtors[rendererType](dom, storage, opts, id); this.storage = storage; this.painter = painter; var handerProxy = (!env$1.node && !env$1.worker) ? new HandlerDomProxy(painter.getViewportRoot()) : null; this.handler = new Handler(storage, painter, handerProxy, painter.root); /** * @type {module:zrender/animation/Animation} */ this.animation = new Animation({ stage: { update: bind(this.flush, this) } }); this.animation.start(); /** * @type {boolean} * @private */ this._needsRefresh; // 修改 storage.delFromStorage, 每次删除元素之前删除动画 // FIXME 有点ugly var oldDelFromStorage = storage.delFromStorage; var oldAddToStorage = storage.addToStorage; storage.delFromStorage = function (el) { oldDelFromStorage.call(storage, el); el && el.removeSelfFromZr(self); }; storage.addToStorage = function (el) { oldAddToStorage.call(storage, el); el.addSelfToZr(self); }; }; ZRender.prototype = { constructor: ZRender, /** * 获取实例唯一标识 * @return {string} */ getId: function () { return this.id; }, /** * 添加元素 * @param {module:zrender/Element} el */ add: function (el) { this.storage.addRoot(el); this._needsRefresh = true; }, /** * 删除元素 * @param {module:zrender/Element} el */ remove: function (el) { this.storage.delRoot(el); this._needsRefresh = true; }, /** * Change configuration of layer * @param {string} zLevel * @param {Object} config * @param {string} [config.clearColor=0] Clear color * @param {string} [config.motionBlur=false] If enable motion blur * @param {number} [config.lastFrameAlpha=0.7] Motion blur factor. Larger value cause longer trailer */ configLayer: function (zLevel, config) { if (this.painter.configLayer) { this.painter.configLayer(zLevel, config); } this._needsRefresh = true; }, /** * Set background color * @param {string} backgroundColor */ setBackgroundColor: function (backgroundColor) { if (this.painter.setBackgroundColor) { this.painter.setBackgroundColor(backgroundColor); } this._needsRefresh = true; }, /** * Repaint the canvas immediately */ refreshImmediately: function () { // var start = new Date(); // Clear needsRefresh ahead to avoid something wrong happens in refresh // Or it will cause zrender refreshes again and again. this._needsRefresh = this._needsRefreshHover = false; this.painter.refresh(); // Avoid trigger zr.refresh in Element#beforeUpdate hook this._needsRefresh = this._needsRefreshHover = false; // var end = new Date(); // var log = document.getElementById('log'); // if (log) { // log.innerHTML = log.innerHTML + '
    ' + (end - start); // } }, /** * Mark and repaint the canvas in the next frame of browser */ refresh: function () { this._needsRefresh = true; }, /** * Perform all refresh */ flush: function () { var triggerRendered; if (this._needsRefresh) { triggerRendered = true; this.refreshImmediately(); } if (this._needsRefreshHover) { triggerRendered = true; this.refreshHoverImmediately(); } triggerRendered && this.trigger('rendered'); }, /** * Add element to hover layer * @param {module:zrender/Element} el * @param {Object} style */ addHover: function (el, style) { if (this.painter.addHover) { var elMirror = this.painter.addHover(el, style); this.refreshHover(); return elMirror; } }, /** * Add element from hover layer * @param {module:zrender/Element} el */ removeHover: function (el) { if (this.painter.removeHover) { this.painter.removeHover(el); this.refreshHover(); } }, /** * Clear all hover elements in hover layer * @param {module:zrender/Element} el */ clearHover: function () { if (this.painter.clearHover) { this.painter.clearHover(); this.refreshHover(); } }, /** * Refresh hover in next frame */ refreshHover: function () { this._needsRefreshHover = true; }, /** * Refresh hover immediately */ refreshHoverImmediately: function () { this._needsRefreshHover = false; this.painter.refreshHover && this.painter.refreshHover(); }, /** * Resize the canvas. * Should be invoked when container size is changed * @param {Object} [opts] * @param {number|string} [opts.width] Can be 'auto' (the same as null/undefined) * @param {number|string} [opts.height] Can be 'auto' (the same as null/undefined) */ resize: function (opts) { opts = opts || {}; this.painter.resize(opts.width, opts.height); this.handler.resize(); }, /** * Stop and clear all animation immediately */ clearAnimation: function () { this.animation.clear(); }, /** * Get container width */ getWidth: function () { return this.painter.getWidth(); }, /** * Get container height */ getHeight: function () { return this.painter.getHeight(); }, /** * Export the canvas as Base64 URL * @param {string} type * @param {string} [backgroundColor='#fff'] * @return {string} Base64 URL */ // toDataURL: function(type, backgroundColor) { // return this.painter.getRenderedCanvas({ // backgroundColor: backgroundColor // }).toDataURL(type); // }, /** * Converting a path to image. * It has much better performance of drawing image rather than drawing a vector path. * @param {module:zrender/graphic/Path} e * @param {number} width * @param {number} height */ pathToImage: function (e, dpr) { return this.painter.pathToImage(e, dpr); }, /** * Set default cursor * @param {string} [cursorStyle='default'] 例如 crosshair */ setCursorStyle: function (cursorStyle) { this.handler.setCursorStyle(cursorStyle); }, /** * Find hovered element * @param {number} x * @param {number} y * @return {Object} {target, topTarget} */ findHover: function (x, y) { return this.handler.findHover(x, y); }, /** * Bind event * * @param {string} eventName Event name * @param {Function} eventHandler Handler function * @param {Object} [context] Context object */ on: function (eventName, eventHandler, context) { this.handler.on(eventName, eventHandler, context); }, /** * Unbind event * @param {string} eventName Event name * @param {Function} [eventHandler] Handler function */ off: function (eventName, eventHandler) { this.handler.off(eventName, eventHandler); }, /** * Trigger event manually * * @param {string} eventName Event name * @param {event=} event Event object */ trigger: function (eventName, event) { this.handler.trigger(eventName, event); }, /** * Clear all objects and the canvas. */ clear: function () { this.storage.delRoot(); this.painter.clear(); }, /** * Dispose self. */ dispose: function () { this.animation.stop(); this.clear(); this.storage.dispose(); this.painter.dispose(); this.handler.dispose(); this.animation = this.storage = this.painter = this.handler = null; delInstance(this.id); } }; var zrender = (Object.freeze || Object)({ version: version$1, init: init$1, dispose: dispose$1, getInstance: getInstance, registerPainter: registerPainter }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$2 = each$1; var isObject$2 = isObject$1; var isArray$1 = isArray; /** * Make the name displayable. But we should * make sure it is not duplicated with user * specified name, so use '\0'; */ var DUMMY_COMPONENT_NAME_PREFIX = 'series\0'; /** * If value is not array, then translate it to array. * @param {*} value * @return {Array} [value] or value */ function normalizeToArray(value) { return value instanceof Array ? value : value == null ? [] : [value]; } /** * Sync default option between normal and emphasis like `position` and `show` * In case some one will write code like * label: { * show: false, * position: 'outside', * fontSize: 18 * }, * emphasis: { * label: { show: true } * } * @param {Object} opt * @param {string} key * @param {Array.} subOpts */ function defaultEmphasis(opt, key, subOpts) { // Caution: performance sensitive. if (opt) { opt[key] = opt[key] || {}; opt.emphasis = opt.emphasis || {}; opt.emphasis[key] = opt.emphasis[key] || {}; // Default emphasis option from normal for (var i = 0, len = subOpts.length; i < len; i++) { var subOptName = subOpts[i]; if (!opt.emphasis[key].hasOwnProperty(subOptName) && opt[key].hasOwnProperty(subOptName) ) { opt.emphasis[key][subOptName] = opt[key][subOptName]; } } } } var TEXT_STYLE_OPTIONS = [ 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding' ]; // modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([ // 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter', // 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily', // // FIXME: deprecated, check and remove it. // 'textStyle' // ]); /** * The method do not ensure performance. * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}] * This helper method retieves value from data. * @param {string|number|Date|Array|Object} dataItem * @return {number|string|Date|Array.} */ function getDataItemValue(dataItem) { return (isObject$2(dataItem) && !isArray$1(dataItem) && !(dataItem instanceof Date)) ? dataItem.value : dataItem; } /** * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}] * This helper method determine if dataItem has extra option besides value * @param {string|number|Date|Array|Object} dataItem */ function isDataItemOption(dataItem) { return isObject$2(dataItem) && !(dataItem instanceof Array); // // markLine data can be array // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array)); } /** * Mapping to exists for merge. * * @public * @param {Array.|Array.} exists * @param {Object|Array.} newCptOptions * @return {Array.} Result, like [{exist: ..., option: ...}, {}], * index of which is the same as exists. */ function mappingToExists(exists, newCptOptions) { // Mapping by the order by original option (but not order of // new option) in merge mode. Because we should ensure // some specified index (like xAxisIndex) is consistent with // original option, which is easy to understand, espatially in // media query. And in most case, merge option is used to // update partial option but not be expected to change order. newCptOptions = (newCptOptions || []).slice(); var result = map(exists || [], function (obj, index) { return {exist: obj}; }); // Mapping by id or name if specified. each$2(newCptOptions, function (cptOption, index) { if (!isObject$2(cptOption)) { return; } // id has highest priority. for (var i = 0; i < result.length; i++) { if (!result[i].option // Consider name: two map to one. && cptOption.id != null && result[i].exist.id === cptOption.id + '' ) { result[i].option = cptOption; newCptOptions[index] = null; return; } } for (var i = 0; i < result.length; i++) { var exist = result[i].exist; if (!result[i].option // Consider name: two map to one. // Can not match when both ids exist but different. && (exist.id == null || cptOption.id == null) && cptOption.name != null && !isIdInner(cptOption) && !isIdInner(exist) && exist.name === cptOption.name + '' ) { result[i].option = cptOption; newCptOptions[index] = null; return; } } }); // Otherwise mapping by index. each$2(newCptOptions, function (cptOption, index) { if (!isObject$2(cptOption)) { return; } var i = 0; for (; i < result.length; i++) { var exist = result[i].exist; if (!result[i].option // Existing model that already has id should be able to // mapped to (because after mapping performed model may // be assigned with a id, whish should not affect next // mapping), except those has inner id. && !isIdInner(exist) // Caution: // Do not overwrite id. But name can be overwritten, // because axis use name as 'show label text'. // 'exist' always has id and name and we dont // need to check it. && cptOption.id == null ) { result[i].option = cptOption; break; } } if (i >= result.length) { result.push({option: cptOption}); } }); return result; } /** * Make id and name for mapping result (result of mappingToExists) * into `keyInfo` field. * * @public * @param {Array.} Result, like [{exist: ..., option: ...}, {}], * which order is the same as exists. * @return {Array.} The input. */ function makeIdAndName(mapResult) { // We use this id to hash component models and view instances // in echarts. id can be specified by user, or auto generated. // The id generation rule ensures new view instance are able // to mapped to old instance when setOption are called in // no-merge mode. So we generate model id by name and plus // type in view id. // name can be duplicated among components, which is convenient // to specify multi components (like series) by one name. // Ensure that each id is distinct. var idMap = createHashMap(); each$2(mapResult, function (item, index) { var existCpt = item.exist; existCpt && idMap.set(existCpt.id, item); }); each$2(mapResult, function (item, index) { var opt = item.option; assert$1( !opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id) ); opt && opt.id != null && idMap.set(opt.id, item); !item.keyInfo && (item.keyInfo = {}); }); // Make name and id. each$2(mapResult, function (item, index) { var existCpt = item.exist; var opt = item.option; var keyInfo = item.keyInfo; if (!isObject$2(opt)) { return; } // name can be overwitten. Consider case: axis.name = '20km'. // But id generated by name will not be changed, which affect // only in that case: setOption with 'not merge mode' and view // instance will be recreated, which can be accepted. keyInfo.name = opt.name != null ? opt.name + '' : existCpt ? existCpt.name // Avoid diffferent series has the same name, // because name may be used like in color pallet. : DUMMY_COMPONENT_NAME_PREFIX + index; if (existCpt) { keyInfo.id = existCpt.id; } else if (opt.id != null) { keyInfo.id = opt.id + ''; } else { // Consider this situatoin: // optionA: [{name: 'a'}, {name: 'a'}, {..}] // optionB [{..}, {name: 'a'}, {name: 'a'}] // Series with the same name between optionA and optionB // should be mapped. var idNum = 0; do { keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++; } while (idMap.get(keyInfo.id)); } idMap.set(keyInfo.id, item); }); } function isNameSpecified(componentModel) { var name = componentModel.name; // Is specified when `indexOf` get -1 or > 0. return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX)); } /** * @public * @param {Object} cptOption * @return {boolean} */ function isIdInner(cptOption) { return isObject$2(cptOption) && cptOption.id && (cptOption.id + '').indexOf('\0_ec_\0') === 0; } /** * A helper for removing duplicate items between batchA and batchB, * and in themselves, and categorize by series. * * @param {Array.} batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...] * @param {Array.} batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...] * @return {Array., Array.>} result: [resultBatchA, resultBatchB] */ function compressBatches(batchA, batchB) { var mapA = {}; var mapB = {}; makeMap(batchA || [], mapA); makeMap(batchB || [], mapB, mapA); return [mapToArray(mapA), mapToArray(mapB)]; function makeMap(sourceBatch, map$$1, otherMap) { for (var i = 0, len = sourceBatch.length; i < len; i++) { var seriesId = sourceBatch[i].seriesId; var dataIndices = normalizeToArray(sourceBatch[i].dataIndex); var otherDataIndices = otherMap && otherMap[seriesId]; for (var j = 0, lenj = dataIndices.length; j < lenj; j++) { var dataIndex = dataIndices[j]; if (otherDataIndices && otherDataIndices[dataIndex]) { otherDataIndices[dataIndex] = null; } else { (map$$1[seriesId] || (map$$1[seriesId] = {}))[dataIndex] = 1; } } } } function mapToArray(map$$1, isData) { var result = []; for (var i in map$$1) { if (map$$1.hasOwnProperty(i) && map$$1[i] != null) { if (isData) { result.push(+i); } else { var dataIndices = mapToArray(map$$1[i], true); dataIndices.length && result.push({seriesId: i, dataIndex: dataIndices}); } } } return result; } } /** * @param {module:echarts/data/List} data * @param {Object} payload Contains dataIndex (means rawIndex) / dataIndexInside / name * each of which can be Array or primary type. * @return {number|Array.} dataIndex If not found, return undefined/null. */ function queryDataIndex(data, payload) { if (payload.dataIndexInside != null) { return payload.dataIndexInside; } else if (payload.dataIndex != null) { return isArray(payload.dataIndex) ? map(payload.dataIndex, function (value) { return data.indexOfRawIndex(value); }) : data.indexOfRawIndex(payload.dataIndex); } else if (payload.name != null) { return isArray(payload.name) ? map(payload.name, function (value) { return data.indexOfName(value); }) : data.indexOfName(payload.name); } } /** * Enable property storage to any host object. * Notice: Serialization is not supported. * * For example: * var inner = zrUitl.makeInner(); * * function some1(hostObj) { * inner(hostObj).someProperty = 1212; * ... * } * function some2() { * var fields = inner(this); * fields.someProperty1 = 1212; * fields.someProperty2 = 'xx'; * ... * } * * @return {Function} */ function makeInner() { // Consider different scope by es module import. var key = '__\0ec_inner_' + innerUniqueIndex++ + '_' + Math.random().toFixed(5); return function (hostObj) { return hostObj[key] || (hostObj[key] = {}); }; } var innerUniqueIndex = 0; /** * @param {module:echarts/model/Global} ecModel * @param {string|Object} finder * If string, e.g., 'geo', means {geoIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex, seriesId, seriesName, * geoIndex, geoId, geoName, * bmapIndex, bmapId, bmapName, * xAxisIndex, xAxisId, xAxisName, * yAxisIndex, yAxisId, yAxisName, * gridIndex, gridId, gridName, * ... (can be extended) * } * Each properties can be number|string|Array.|Array. * For example, a finder could be * { * seriesIndex: 3, * geoId: ['aa', 'cc'], * gridName: ['xx', 'rr'] * } * xxxIndex can be set as 'all' (means all xxx) or 'none' (means not specify) * If nothing or null/undefined specified, return nothing. * @param {Object} [opt] * @param {string} [opt.defaultMainType] * @param {Array.} [opt.includeMainTypes] * @return {Object} result like: * { * seriesModels: [seriesModel1, seriesModel2], * seriesModel: seriesModel1, // The first model * geoModels: [geoModel1, geoModel2], * geoModel: geoModel1, // The first model * ... * } */ function parseFinder(ecModel, finder, opt) { if (isString(finder)) { var obj = {}; obj[finder + 'Index'] = 0; finder = obj; } var defaultMainType = opt && opt.defaultMainType; if (defaultMainType && !has(finder, defaultMainType + 'Index') && !has(finder, defaultMainType + 'Id') && !has(finder, defaultMainType + 'Name') ) { finder[defaultMainType + 'Index'] = 0; } var result = {}; each$2(finder, function (value, key) { var value = finder[key]; // Exclude 'dataIndex' and other illgal keys. if (key === 'dataIndex' || key === 'dataIndexInside') { result[key] = value; return; } var parsedKey = key.match(/^(\w+)(Index|Id|Name)$/) || []; var mainType = parsedKey[1]; var queryType = (parsedKey[2] || '').toLowerCase(); if (!mainType || !queryType || value == null || (queryType === 'index' && value === 'none') || (opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0) ) { return; } var queryParam = {mainType: mainType}; if (queryType !== 'index' || value !== 'all') { queryParam[queryType] = value; } var models = ecModel.queryComponents(queryParam); result[mainType + 'Models'] = models; result[mainType + 'Model'] = models[0]; }); return result; } function has(obj, prop) { return obj && obj.hasOwnProperty(prop); } function setAttribute(dom, key, value) { dom.setAttribute ? dom.setAttribute(key, value) : (dom[key] = value); } function getAttribute(dom, key) { return dom.getAttribute ? dom.getAttribute(key) : dom[key]; } function getTooltipRenderMode(renderModeOption) { if (renderModeOption === 'auto') { // Using html when `document` exists, use richText otherwise return env$1.domSupported ? 'html' : 'richText'; } else { return renderModeOption || 'html'; } } /** * Group a list by key. * * @param {Array} array * @param {Function} getKey * param {*} Array item * return {string} key * @return {Object} Result * {Array}: keys, * {module:zrender/core/util/HashMap} buckets: {key -> Array} */ function groupData(array, getKey) { var buckets = createHashMap(); var keys = []; each$1(array, function (item) { var key = getKey(item); (buckets.get(key) || (keys.push(key), buckets.set(key, [])) ).push(item); }); return {keys: keys, buckets: buckets}; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TYPE_DELIMITER = '.'; var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___'; /** * Notice, parseClassType('') should returns {main: '', sub: ''} * @public */ function parseClassType$1(componentType) { var ret = {main: '', sub: ''}; if (componentType) { componentType = componentType.split(TYPE_DELIMITER); ret.main = componentType[0] || ''; ret.sub = componentType[1] || ''; } return ret; } /** * @public */ function checkClassType(componentType) { assert$1( /^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType "' + componentType + '" illegal' ); } /** * @public */ function enableClassExtend(RootClass, mandatoryMethods) { RootClass.$constructor = RootClass; RootClass.extend = function (proto) { if (__DEV__) { each$1(mandatoryMethods, function (method) { if (!proto[method]) { console.warn( 'Method `' + method + '` should be implemented' + (proto.type ? ' in ' + proto.type : '') + '.' ); } }); } var superClass = this; var ExtendedClass = function () { if (!proto.$constructor) { superClass.apply(this, arguments); } else { proto.$constructor.apply(this, arguments); } }; extend(ExtendedClass.prototype, proto); ExtendedClass.extend = this.extend; ExtendedClass.superCall = superCall; ExtendedClass.superApply = superApply; inherits(ExtendedClass, this); ExtendedClass.superClass = superClass; return ExtendedClass; }; } var classBase = 0; /** * Can not use instanceof, consider different scope by * cross domain or es module import in ec extensions. * Mount a method "isInstance()" to Clz. */ function enableClassCheck(Clz) { var classAttr = ['__\0is_clz', classBase++, Math.random().toFixed(3)].join('_'); Clz.prototype[classAttr] = true; if (__DEV__) { assert$1(!Clz.isInstance, 'The method "is" can not be defined.'); } Clz.isInstance = function (obj) { return !!(obj && obj[classAttr]); }; } // superCall should have class info, which can not be fetch from 'this'. // Consider this case: // class A has method f, // class B inherits class A, overrides method f, f call superApply('f'), // class C inherits class B, do not overrides method f, // then when method of class C is called, dead loop occured. function superCall(context, methodName) { var args = slice(arguments, 2); return this.superClass.prototype[methodName].apply(context, args); } function superApply(context, methodName, args) { return this.superClass.prototype[methodName].apply(context, args); } /** * @param {Object} entity * @param {Object} options * @param {boolean} [options.registerWhenExtend] * @public */ function enableClassManagement(entity, options) { options = options || {}; /** * Component model classes * key: componentType, * value: * componentClass, when componentType is 'xxx' * or Object., when componentType is 'xxx.yy' * @type {Object} */ var storage = {}; entity.registerClass = function (Clazz, componentType) { if (componentType) { checkClassType(componentType); componentType = parseClassType$1(componentType); if (!componentType.sub) { if (__DEV__) { if (storage[componentType.main]) { console.warn(componentType.main + ' exists.'); } } storage[componentType.main] = Clazz; } else if (componentType.sub !== IS_CONTAINER) { var container = makeContainer(componentType); container[componentType.sub] = Clazz; } } return Clazz; }; entity.getClass = function (componentMainType, subType, throwWhenNotFound) { var Clazz = storage[componentMainType]; if (Clazz && Clazz[IS_CONTAINER]) { Clazz = subType ? Clazz[subType] : null; } if (throwWhenNotFound && !Clazz) { throw new Error( !subType ? componentMainType + '.' + 'type should be specified.' : 'Component ' + componentMainType + '.' + (subType || '') + ' not exists. Load it first.' ); } return Clazz; }; entity.getClassesByMainType = function (componentType) { componentType = parseClassType$1(componentType); var result = []; var obj = storage[componentType.main]; if (obj && obj[IS_CONTAINER]) { each$1(obj, function (o, type) { type !== IS_CONTAINER && result.push(o); }); } else { result.push(obj); } return result; }; entity.hasClass = function (componentType) { // Just consider componentType.main. componentType = parseClassType$1(componentType); return !!storage[componentType.main]; }; /** * @return {Array.} Like ['aa', 'bb'], but can not be ['aa.xx'] */ entity.getAllClassMainTypes = function () { var types = []; each$1(storage, function (obj, type) { types.push(type); }); return types; }; /** * If a main type is container and has sub types * @param {string} mainType * @return {boolean} */ entity.hasSubTypes = function (componentType) { componentType = parseClassType$1(componentType); var obj = storage[componentType.main]; return obj && obj[IS_CONTAINER]; }; entity.parseClassType = parseClassType$1; function makeContainer(componentType) { var container = storage[componentType.main]; if (!container || !container[IS_CONTAINER]) { container = storage[componentType.main] = {}; container[IS_CONTAINER] = true; } return container; } if (options.registerWhenExtend) { var originalExtend = entity.extend; if (originalExtend) { entity.extend = function (proto) { var ExtendedClass = originalExtend.call(this, proto); return entity.registerClass(ExtendedClass, proto.type); }; } } return entity; } /** * @param {string|Array.} properties */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Parse shadow style // TODO Only shallow path support var makeStyleMapper = function (properties) { // Normalize for (var i = 0; i < properties.length; i++) { if (!properties[i][1]) { properties[i][1] = properties[i][0]; } } return function (model, excludes, includes) { var style = {}; for (var i = 0; i < properties.length; i++) { var propName = properties[i][1]; if ((excludes && indexOf(excludes, propName) >= 0) || (includes && indexOf(includes, propName) < 0) ) { continue; } var val = model.getShallow(propName); if (val != null) { style[properties[i][0]] = val; } } return style; }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getLineStyle = makeStyleMapper( [ ['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] ] ); var lineStyleMixin = { getLineStyle: function (excludes) { var style = getLineStyle(this, excludes); // Always set lineDash whether dashed, otherwise we can not // erase the previous style when assigning to el.style. style.lineDash = this.getLineDash(style.lineWidth); return style; }, getLineDash: function (lineWidth) { if (lineWidth == null) { lineWidth = 1; } var lineType = this.get('type'); var dotSize = Math.max(lineWidth, 2); var dashSize = lineWidth * 4; return (lineType === 'solid' || lineType == null) // Use `false` but not `null` for the solid line here, because `null` might be // ignored when assigning to `el.style`. e.g., when setting `lineStyle.type` as // `'dashed'` and `emphasis.lineStyle.type` as `'solid'` in graph series, the // `lineDash` gotten form the latter one is not able to erase that from the former // one if using `null` here according to the emhpsis strategy in `util/graphic.js`. ? false : lineType === 'dashed' ? [dashSize, dashSize] : [dotSize, dotSize]; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getAreaStyle = makeStyleMapper( [ ['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor'] ] ); var areaStyleMixin = { getAreaStyle: function (excludes, includes) { return getAreaStyle(this, excludes, includes); } }; /** * 曲线辅助模块 * @module zrender/core/curve * @author pissang(https://www.github.com/pissang) */ var mathPow = Math.pow; var mathSqrt$2 = Math.sqrt; var EPSILON$1 = 1e-8; var EPSILON_NUMERIC = 1e-4; var THREE_SQRT = mathSqrt$2(3); var ONE_THIRD = 1 / 3; // 临时变量 var _v0 = create(); var _v1 = create(); var _v2 = create(); function isAroundZero(val) { return val > -EPSILON$1 && val < EPSILON$1; } function isNotAroundZero$1(val) { return val > EPSILON$1 || val < -EPSILON$1; } /** * 计算三次贝塞尔值 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {number} t * @return {number} */ function cubicAt(p0, p1, p2, p3, t) { var onet = 1 - t; return onet * onet * (onet * p0 + 3 * t * p1) + t * t * (t * p3 + 3 * onet * p2); } /** * 计算三次贝塞尔导数值 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {number} t * @return {number} */ function cubicDerivativeAt(p0, p1, p2, p3, t) { var onet = 1 - t; return 3 * ( ((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet + (p3 - p2) * t * t ); } /** * 计算三次贝塞尔方程根,使用盛金公式 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {number} val * @param {Array.} roots * @return {number} 有效根数目 */ function cubicRootAt(p0, p1, p2, p3, val, roots) { // Evaluate roots of cubic functions var a = p3 + 3 * (p1 - p2) - p0; var b = 3 * (p2 - p1 * 2 + p0); var c = 3 * (p1 - p0); var d = p0 - val; var A = b * b - 3 * a * c; var B = b * c - 9 * a * d; var C = c * c - 3 * b * d; var n = 0; if (isAroundZero(A) && isAroundZero(B)) { if (isAroundZero(b)) { roots[0] = 0; } else { var t1 = -c / b; //t1, t2, t3, b is not zero if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } } } else { var disc = B * B - 4 * A * C; if (isAroundZero(disc)) { var K = B / A; var t1 = -b / a + K; // t1, a is not zero var t2 = -K / 2; // t2, t3 if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } if (t2 >= 0 && t2 <= 1) { roots[n++] = t2; } } else if (disc > 0) { var discSqrt = mathSqrt$2(disc); var Y1 = A * b + 1.5 * a * (-B + discSqrt); var Y2 = A * b + 1.5 * a * (-B - discSqrt); if (Y1 < 0) { Y1 = -mathPow(-Y1, ONE_THIRD); } else { Y1 = mathPow(Y1, ONE_THIRD); } if (Y2 < 0) { Y2 = -mathPow(-Y2, ONE_THIRD); } else { Y2 = mathPow(Y2, ONE_THIRD); } var t1 = (-b - (Y1 + Y2)) / (3 * a); if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } } else { var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt$2(A * A * A)); var theta = Math.acos(T) / 3; var ASqrt = mathSqrt$2(A); var tmp = Math.cos(theta); var t1 = (-b - 2 * ASqrt * tmp) / (3 * a); var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a); var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a); if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } if (t2 >= 0 && t2 <= 1) { roots[n++] = t2; } if (t3 >= 0 && t3 <= 1) { roots[n++] = t3; } } } return n; } /** * 计算三次贝塞尔方程极限值的位置 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {Array.} extrema * @return {number} 有效数目 */ function cubicExtrema(p0, p1, p2, p3, extrema) { var b = 6 * p2 - 12 * p1 + 6 * p0; var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2; var c = 3 * p1 - 3 * p0; var n = 0; if (isAroundZero(a)) { if (isNotAroundZero$1(b)) { var t1 = -c / b; if (t1 >= 0 && t1 <= 1) { extrema[n++] = t1; } } } else { var disc = b * b - 4 * a * c; if (isAroundZero(disc)) { extrema[0] = -b / (2 * a); } else if (disc > 0) { var discSqrt = mathSqrt$2(disc); var t1 = (-b + discSqrt) / (2 * a); var t2 = (-b - discSqrt) / (2 * a); if (t1 >= 0 && t1 <= 1) { extrema[n++] = t1; } if (t2 >= 0 && t2 <= 1) { extrema[n++] = t2; } } } return n; } /** * 细分三次贝塞尔曲线 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} p3 * @param {number} t * @param {Array.} out */ function cubicSubdivide(p0, p1, p2, p3, t, out) { var p01 = (p1 - p0) * t + p0; var p12 = (p2 - p1) * t + p1; var p23 = (p3 - p2) * t + p2; var p012 = (p12 - p01) * t + p01; var p123 = (p23 - p12) * t + p12; var p0123 = (p123 - p012) * t + p012; // Seg0 out[0] = p0; out[1] = p01; out[2] = p012; out[3] = p0123; // Seg1 out[4] = p0123; out[5] = p123; out[6] = p23; out[7] = p3; } /** * 投射点到三次贝塞尔曲线上,返回投射距离。 * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。 * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} x3 * @param {number} y3 * @param {number} x * @param {number} y * @param {Array.} [out] 投射点 * @return {number} */ function cubicProjectPoint( x0, y0, x1, y1, x2, y2, x3, y3, x, y, out ) { // http://pomax.github.io/bezierinfo/#projections var t; var interval = 0.005; var d = Infinity; var prev; var next; var d1; var d2; _v0[0] = x; _v0[1] = y; // 先粗略估计一下可能的最小距离的 t 值 // PENDING for (var _t = 0; _t < 1; _t += 0.05) { _v1[0] = cubicAt(x0, x1, x2, x3, _t); _v1[1] = cubicAt(y0, y1, y2, y3, _t); d1 = distSquare(_v0, _v1); if (d1 < d) { t = _t; d = d1; } } d = Infinity; // At most 32 iteration for (var i = 0; i < 32; i++) { if (interval < EPSILON_NUMERIC) { break; } prev = t - interval; next = t + interval; // t - interval _v1[0] = cubicAt(x0, x1, x2, x3, prev); _v1[1] = cubicAt(y0, y1, y2, y3, prev); d1 = distSquare(_v1, _v0); if (prev >= 0 && d1 < d) { t = prev; d = d1; } else { // t + interval _v2[0] = cubicAt(x0, x1, x2, x3, next); _v2[1] = cubicAt(y0, y1, y2, y3, next); d2 = distSquare(_v2, _v0); if (next <= 1 && d2 < d) { t = next; d = d2; } else { interval *= 0.5; } } } // t if (out) { out[0] = cubicAt(x0, x1, x2, x3, t); out[1] = cubicAt(y0, y1, y2, y3, t); } // console.log(interval, i); return mathSqrt$2(d); } /** * 计算二次方贝塞尔值 * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} t * @return {number} */ function quadraticAt(p0, p1, p2, t) { var onet = 1 - t; return onet * (onet * p0 + 2 * t * p1) + t * t * p2; } /** * 计算二次方贝塞尔导数值 * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} t * @return {number} */ function quadraticDerivativeAt(p0, p1, p2, t) { return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1)); } /** * 计算二次方贝塞尔方程根 * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} t * @param {Array.} roots * @return {number} 有效根数目 */ function quadraticRootAt(p0, p1, p2, val, roots) { var a = p0 - 2 * p1 + p2; var b = 2 * (p1 - p0); var c = p0 - val; var n = 0; if (isAroundZero(a)) { if (isNotAroundZero$1(b)) { var t1 = -c / b; if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } } } else { var disc = b * b - 4 * a * c; if (isAroundZero(disc)) { var t1 = -b / (2 * a); if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } } else if (disc > 0) { var discSqrt = mathSqrt$2(disc); var t1 = (-b + discSqrt) / (2 * a); var t2 = (-b - discSqrt) / (2 * a); if (t1 >= 0 && t1 <= 1) { roots[n++] = t1; } if (t2 >= 0 && t2 <= 1) { roots[n++] = t2; } } } return n; } /** * 计算二次贝塞尔方程极限值 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @return {number} */ function quadraticExtremum(p0, p1, p2) { var divider = p0 + p2 - 2 * p1; if (divider === 0) { // p1 is center of p0 and p2 return 0.5; } else { return (p0 - p1) / divider; } } /** * 细分二次贝塞尔曲线 * @memberOf module:zrender/core/curve * @param {number} p0 * @param {number} p1 * @param {number} p2 * @param {number} t * @param {Array.} out */ function quadraticSubdivide(p0, p1, p2, t, out) { var p01 = (p1 - p0) * t + p0; var p12 = (p2 - p1) * t + p1; var p012 = (p12 - p01) * t + p01; // Seg0 out[0] = p0; out[1] = p01; out[2] = p012; // Seg1 out[3] = p012; out[4] = p12; out[5] = p2; } /** * 投射点到二次贝塞尔曲线上,返回投射距离。 * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。 * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} x * @param {number} y * @param {Array.} out 投射点 * @return {number} */ function quadraticProjectPoint( x0, y0, x1, y1, x2, y2, x, y, out ) { // http://pomax.github.io/bezierinfo/#projections var t; var interval = 0.005; var d = Infinity; _v0[0] = x; _v0[1] = y; // 先粗略估计一下可能的最小距离的 t 值 // PENDING for (var _t = 0; _t < 1; _t += 0.05) { _v1[0] = quadraticAt(x0, x1, x2, _t); _v1[1] = quadraticAt(y0, y1, y2, _t); var d1 = distSquare(_v0, _v1); if (d1 < d) { t = _t; d = d1; } } d = Infinity; // At most 32 iteration for (var i = 0; i < 32; i++) { if (interval < EPSILON_NUMERIC) { break; } var prev = t - interval; var next = t + interval; // t - interval _v1[0] = quadraticAt(x0, x1, x2, prev); _v1[1] = quadraticAt(y0, y1, y2, prev); var d1 = distSquare(_v1, _v0); if (prev >= 0 && d1 < d) { t = prev; d = d1; } else { // t + interval _v2[0] = quadraticAt(x0, x1, x2, next); _v2[1] = quadraticAt(y0, y1, y2, next); var d2 = distSquare(_v2, _v0); if (next <= 1 && d2 < d) { t = next; d = d2; } else { interval *= 0.5; } } } // t if (out) { out[0] = quadraticAt(x0, x1, x2, t); out[1] = quadraticAt(y0, y1, y2, t); } // console.log(interval, i); return mathSqrt$2(d); } /** * @author Yi Shen(https://github.com/pissang) */ var mathMin$3 = Math.min; var mathMax$3 = Math.max; var mathSin$2 = Math.sin; var mathCos$2 = Math.cos; var PI2 = Math.PI * 2; var start = create(); var end = create(); var extremity = create(); /** * 从顶点数组中计算出最小包围盒,写入`min`和`max`中 * @module zrender/core/bbox * @param {Array} points 顶点数组 * @param {number} min * @param {number} max */ function fromPoints(points, min$$1, max$$1) { if (points.length === 0) { return; } var p = points[0]; var left = p[0]; var right = p[0]; var top = p[1]; var bottom = p[1]; var i; for (i = 1; i < points.length; i++) { p = points[i]; left = mathMin$3(left, p[0]); right = mathMax$3(right, p[0]); top = mathMin$3(top, p[1]); bottom = mathMax$3(bottom, p[1]); } min$$1[0] = left; min$$1[1] = top; max$$1[0] = right; max$$1[1] = bottom; } /** * @memberOf module:zrender/core/bbox * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {Array.} min * @param {Array.} max */ function fromLine(x0, y0, x1, y1, min$$1, max$$1) { min$$1[0] = mathMin$3(x0, x1); min$$1[1] = mathMin$3(y0, y1); max$$1[0] = mathMax$3(x0, x1); max$$1[1] = mathMax$3(y0, y1); } var xDim = []; var yDim = []; /** * 从三阶贝塞尔曲线(p0, p1, p2, p3)中计算出最小包围盒,写入`min`和`max`中 * @memberOf module:zrender/core/bbox * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} x3 * @param {number} y3 * @param {Array.} min * @param {Array.} max */ function fromCubic( x0, y0, x1, y1, x2, y2, x3, y3, min$$1, max$$1 ) { var cubicExtrema$$1 = cubicExtrema; var cubicAt$$1 = cubicAt; var i; var n = cubicExtrema$$1(x0, x1, x2, x3, xDim); min$$1[0] = Infinity; min$$1[1] = Infinity; max$$1[0] = -Infinity; max$$1[1] = -Infinity; for (i = 0; i < n; i++) { var x = cubicAt$$1(x0, x1, x2, x3, xDim[i]); min$$1[0] = mathMin$3(x, min$$1[0]); max$$1[0] = mathMax$3(x, max$$1[0]); } n = cubicExtrema$$1(y0, y1, y2, y3, yDim); for (i = 0; i < n; i++) { var y = cubicAt$$1(y0, y1, y2, y3, yDim[i]); min$$1[1] = mathMin$3(y, min$$1[1]); max$$1[1] = mathMax$3(y, max$$1[1]); } min$$1[0] = mathMin$3(x0, min$$1[0]); max$$1[0] = mathMax$3(x0, max$$1[0]); min$$1[0] = mathMin$3(x3, min$$1[0]); max$$1[0] = mathMax$3(x3, max$$1[0]); min$$1[1] = mathMin$3(y0, min$$1[1]); max$$1[1] = mathMax$3(y0, max$$1[1]); min$$1[1] = mathMin$3(y3, min$$1[1]); max$$1[1] = mathMax$3(y3, max$$1[1]); } /** * 从二阶贝塞尔曲线(p0, p1, p2)中计算出最小包围盒,写入`min`和`max`中 * @memberOf module:zrender/core/bbox * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {Array.} min * @param {Array.} max */ function fromQuadratic(x0, y0, x1, y1, x2, y2, min$$1, max$$1) { var quadraticExtremum$$1 = quadraticExtremum; var quadraticAt$$1 = quadraticAt; // Find extremities, where derivative in x dim or y dim is zero var tx = mathMax$3( mathMin$3(quadraticExtremum$$1(x0, x1, x2), 1), 0 ); var ty = mathMax$3( mathMin$3(quadraticExtremum$$1(y0, y1, y2), 1), 0 ); var x = quadraticAt$$1(x0, x1, x2, tx); var y = quadraticAt$$1(y0, y1, y2, ty); min$$1[0] = mathMin$3(x0, x2, x); min$$1[1] = mathMin$3(y0, y2, y); max$$1[0] = mathMax$3(x0, x2, x); max$$1[1] = mathMax$3(y0, y2, y); } /** * 从圆弧中计算出最小包围盒,写入`min`和`max`中 * @method * @memberOf module:zrender/core/bbox * @param {number} x * @param {number} y * @param {number} rx * @param {number} ry * @param {number} startAngle * @param {number} endAngle * @param {number} anticlockwise * @param {Array.} min * @param {Array.} max */ function fromArc( x, y, rx, ry, startAngle, endAngle, anticlockwise, min$$1, max$$1 ) { var vec2Min = min; var vec2Max = max; var diff = Math.abs(startAngle - endAngle); if (diff % PI2 < 1e-4 && diff > 1e-4) { // Is a circle min$$1[0] = x - rx; min$$1[1] = y - ry; max$$1[0] = x + rx; max$$1[1] = y + ry; return; } start[0] = mathCos$2(startAngle) * rx + x; start[1] = mathSin$2(startAngle) * ry + y; end[0] = mathCos$2(endAngle) * rx + x; end[1] = mathSin$2(endAngle) * ry + y; vec2Min(min$$1, start, end); vec2Max(max$$1, start, end); // Thresh to [0, Math.PI * 2] startAngle = startAngle % (PI2); if (startAngle < 0) { startAngle = startAngle + PI2; } endAngle = endAngle % (PI2); if (endAngle < 0) { endAngle = endAngle + PI2; } if (startAngle > endAngle && !anticlockwise) { endAngle += PI2; } else if (startAngle < endAngle && anticlockwise) { startAngle += PI2; } if (anticlockwise) { var tmp = endAngle; endAngle = startAngle; startAngle = tmp; } // var number = 0; // var step = (anticlockwise ? -Math.PI : Math.PI) / 2; for (var angle = 0; angle < endAngle; angle += Math.PI / 2) { if (angle > startAngle) { extremity[0] = mathCos$2(angle) * rx + x; extremity[1] = mathSin$2(angle) * ry + y; vec2Min(min$$1, extremity, min$$1); vec2Max(max$$1, extremity, max$$1); } } } /** * Path 代理,可以在`buildPath`中用于替代`ctx`, 会保存每个path操作的命令到pathCommands属性中 * 可以用于 isInsidePath 判断以及获取boundingRect * * @module zrender/core/PathProxy * @author Yi Shen (http://www.github.com/pissang) */ // TODO getTotalLength, getPointAtLength var CMD = { M: 1, L: 2, C: 3, Q: 4, A: 5, Z: 6, // Rect R: 7 }; // var CMD_MEM_SIZE = { // M: 3, // L: 3, // C: 7, // Q: 5, // A: 9, // R: 5, // Z: 1 // }; var min$1 = []; var max$1 = []; var min2 = []; var max2 = []; var mathMin$2 = Math.min; var mathMax$2 = Math.max; var mathCos$1 = Math.cos; var mathSin$1 = Math.sin; var mathSqrt$1 = Math.sqrt; var mathAbs = Math.abs; var hasTypedArray = typeof Float32Array !== 'undefined'; /** * @alias module:zrender/core/PathProxy * @constructor */ var PathProxy = function (notSaveData) { this._saveData = !(notSaveData || false); if (this._saveData) { /** * Path data. Stored as flat array * @type {Array.} */ this.data = []; } this._ctx = null; }; /** * 快速计算Path包围盒(并不是最小包围盒) * @return {Object} */ PathProxy.prototype = { constructor: PathProxy, _xi: 0, _yi: 0, _x0: 0, _y0: 0, // Unit x, Unit y. Provide for avoiding drawing that too short line segment _ux: 0, _uy: 0, _len: 0, _lineDash: null, _dashOffset: 0, _dashIdx: 0, _dashSum: 0, /** * @readOnly */ setScale: function (sx, sy, segmentIgnoreThreshold) { // Compat. Previously there is no segmentIgnoreThreshold. segmentIgnoreThreshold = segmentIgnoreThreshold || 0; this._ux = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sx) || 0; this._uy = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sy) || 0; }, getContext: function () { return this._ctx; }, /** * @param {CanvasRenderingContext2D} ctx * @return {module:zrender/core/PathProxy} */ beginPath: function (ctx) { this._ctx = ctx; ctx && ctx.beginPath(); ctx && (this.dpr = ctx.dpr); // Reset if (this._saveData) { this._len = 0; } if (this._lineDash) { this._lineDash = null; this._dashOffset = 0; } return this; }, /** * @param {number} x * @param {number} y * @return {module:zrender/core/PathProxy} */ moveTo: function (x, y) { this.addData(CMD.M, x, y); this._ctx && this._ctx.moveTo(x, y); // x0, y0, xi, yi 是记录在 _dashedXXXXTo 方法中使用 // xi, yi 记录当前点, x0, y0 在 closePath 的时候回到起始点。 // 有可能在 beginPath 之后直接调用 lineTo,这时候 x0, y0 需要 // 在 lineTo 方法中记录,这里先不考虑这种情况,dashed line 也只在 IE10- 中不支持 this._x0 = x; this._y0 = y; this._xi = x; this._yi = y; return this; }, /** * @param {number} x * @param {number} y * @return {module:zrender/core/PathProxy} */ lineTo: function (x, y) { var exceedUnit = mathAbs(x - this._xi) > this._ux || mathAbs(y - this._yi) > this._uy // Force draw the first segment || this._len < 5; this.addData(CMD.L, x, y); if (this._ctx && exceedUnit) { this._needsDash() ? this._dashedLineTo(x, y) : this._ctx.lineTo(x, y); } if (exceedUnit) { this._xi = x; this._yi = y; } return this; }, /** * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} x3 * @param {number} y3 * @return {module:zrender/core/PathProxy} */ bezierCurveTo: function (x1, y1, x2, y2, x3, y3) { this.addData(CMD.C, x1, y1, x2, y2, x3, y3); if (this._ctx) { this._needsDash() ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3) : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3); } this._xi = x3; this._yi = y3; return this; }, /** * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @return {module:zrender/core/PathProxy} */ quadraticCurveTo: function (x1, y1, x2, y2) { this.addData(CMD.Q, x1, y1, x2, y2); if (this._ctx) { this._needsDash() ? this._dashedQuadraticTo(x1, y1, x2, y2) : this._ctx.quadraticCurveTo(x1, y1, x2, y2); } this._xi = x2; this._yi = y2; return this; }, /** * @param {number} cx * @param {number} cy * @param {number} r * @param {number} startAngle * @param {number} endAngle * @param {boolean} anticlockwise * @return {module:zrender/core/PathProxy} */ arc: function (cx, cy, r, startAngle, endAngle, anticlockwise) { this.addData( CMD.A, cx, cy, r, r, startAngle, endAngle - startAngle, 0, anticlockwise ? 0 : 1 ); this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise); this._xi = mathCos$1(endAngle) * r + cx; this._yi = mathSin$1(endAngle) * r + cy; return this; }, // TODO arcTo: function (x1, y1, x2, y2, radius) { if (this._ctx) { this._ctx.arcTo(x1, y1, x2, y2, radius); } return this; }, // TODO rect: function (x, y, w, h) { this._ctx && this._ctx.rect(x, y, w, h); this.addData(CMD.R, x, y, w, h); return this; }, /** * @return {module:zrender/core/PathProxy} */ closePath: function () { this.addData(CMD.Z); var ctx = this._ctx; var x0 = this._x0; var y0 = this._y0; if (ctx) { this._needsDash() && this._dashedLineTo(x0, y0); ctx.closePath(); } this._xi = x0; this._yi = y0; return this; }, /** * Context 从外部传入,因为有可能是 rebuildPath 完之后再 fill。 * stroke 同样 * @param {CanvasRenderingContext2D} ctx * @return {module:zrender/core/PathProxy} */ fill: function (ctx) { ctx && ctx.fill(); this.toStatic(); }, /** * @param {CanvasRenderingContext2D} ctx * @return {module:zrender/core/PathProxy} */ stroke: function (ctx) { ctx && ctx.stroke(); this.toStatic(); }, /** * 必须在其它绘制命令前调用 * Must be invoked before all other path drawing methods * @return {module:zrender/core/PathProxy} */ setLineDash: function (lineDash) { if (lineDash instanceof Array) { this._lineDash = lineDash; this._dashIdx = 0; var lineDashSum = 0; for (var i = 0; i < lineDash.length; i++) { lineDashSum += lineDash[i]; } this._dashSum = lineDashSum; } return this; }, /** * 必须在其它绘制命令前调用 * Must be invoked before all other path drawing methods * @return {module:zrender/core/PathProxy} */ setLineDashOffset: function (offset) { this._dashOffset = offset; return this; }, /** * * @return {boolean} */ len: function () { return this._len; }, /** * 直接设置 Path 数据 */ setData: function (data) { var len$$1 = data.length; if (!(this.data && this.data.length === len$$1) && hasTypedArray) { this.data = new Float32Array(len$$1); } for (var i = 0; i < len$$1; i++) { this.data[i] = data[i]; } this._len = len$$1; }, /** * 添加子路径 * @param {module:zrender/core/PathProxy|Array.} path */ appendPath: function (path) { if (!(path instanceof Array)) { path = [path]; } var len$$1 = path.length; var appendSize = 0; var offset = this._len; for (var i = 0; i < len$$1; i++) { appendSize += path[i].len(); } if (hasTypedArray && (this.data instanceof Float32Array)) { this.data = new Float32Array(offset + appendSize); } for (var i = 0; i < len$$1; i++) { var appendPathData = path[i].data; for (var k = 0; k < appendPathData.length; k++) { this.data[offset++] = appendPathData[k]; } } this._len = offset; }, /** * 填充 Path 数据。 * 尽量复用而不申明新的数组。大部分图形重绘的指令数据长度都是不变的。 */ addData: function (cmd) { if (!this._saveData) { return; } var data = this.data; if (this._len + arguments.length > data.length) { // 因为之前的数组已经转换成静态的 Float32Array // 所以不够用时需要扩展一个新的动态数组 this._expandData(); data = this.data; } for (var i = 0; i < arguments.length; i++) { data[this._len++] = arguments[i]; } this._prevCmd = cmd; }, _expandData: function () { // Only if data is Float32Array if (!(this.data instanceof Array)) { var newData = []; for (var i = 0; i < this._len; i++) { newData[i] = this.data[i]; } this.data = newData; } }, /** * If needs js implemented dashed line * @return {boolean} * @private */ _needsDash: function () { return this._lineDash; }, _dashedLineTo: function (x1, y1) { var dashSum = this._dashSum; var offset = this._dashOffset; var lineDash = this._lineDash; var ctx = this._ctx; var x0 = this._xi; var y0 = this._yi; var dx = x1 - x0; var dy = y1 - y0; var dist$$1 = mathSqrt$1(dx * dx + dy * dy); var x = x0; var y = y0; var dash; var nDash = lineDash.length; var idx; dx /= dist$$1; dy /= dist$$1; if (offset < 0) { // Convert to positive offset offset = dashSum + offset; } offset %= dashSum; x -= offset * dx; y -= offset * dy; while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1) || (dx === 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) { idx = this._dashIdx; dash = lineDash[idx]; x += dx * dash; y += dy * dash; this._dashIdx = (idx + 1) % nDash; // Skip positive offset if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) { continue; } ctx[idx % 2 ? 'moveTo' : 'lineTo']( dx >= 0 ? mathMin$2(x, x1) : mathMax$2(x, x1), dy >= 0 ? mathMin$2(y, y1) : mathMax$2(y, y1) ); } // Offset for next lineTo dx = x - x1; dy = y - y1; this._dashOffset = -mathSqrt$1(dx * dx + dy * dy); }, // Not accurate dashed line to _dashedBezierTo: function (x1, y1, x2, y2, x3, y3) { var dashSum = this._dashSum; var offset = this._dashOffset; var lineDash = this._lineDash; var ctx = this._ctx; var x0 = this._xi; var y0 = this._yi; var t; var dx; var dy; var cubicAt$$1 = cubicAt; var bezierLen = 0; var idx = this._dashIdx; var nDash = lineDash.length; var x; var y; var tmpLen = 0; if (offset < 0) { // Convert to positive offset offset = dashSum + offset; } offset %= dashSum; // Bezier approx length for (t = 0; t < 1; t += 0.1) { dx = cubicAt$$1(x0, x1, x2, x3, t + 0.1) - cubicAt$$1(x0, x1, x2, x3, t); dy = cubicAt$$1(y0, y1, y2, y3, t + 0.1) - cubicAt$$1(y0, y1, y2, y3, t); bezierLen += mathSqrt$1(dx * dx + dy * dy); } // Find idx after add offset for (; idx < nDash; idx++) { tmpLen += lineDash[idx]; if (tmpLen > offset) { break; } } t = (tmpLen - offset) / bezierLen; while (t <= 1) { x = cubicAt$$1(x0, x1, x2, x3, t); y = cubicAt$$1(y0, y1, y2, y3, t); // Use line to approximate dashed bezier // Bad result if dash is long idx % 2 ? ctx.moveTo(x, y) : ctx.lineTo(x, y); t += lineDash[idx] / bezierLen; idx = (idx + 1) % nDash; } // Finish the last segment and calculate the new offset (idx % 2 !== 0) && ctx.lineTo(x3, y3); dx = x3 - x; dy = y3 - y; this._dashOffset = -mathSqrt$1(dx * dx + dy * dy); }, _dashedQuadraticTo: function (x1, y1, x2, y2) { // Convert quadratic to cubic using degree elevation var x3 = x2; var y3 = y2; x2 = (x2 + 2 * x1) / 3; y2 = (y2 + 2 * y1) / 3; x1 = (this._xi + 2 * x1) / 3; y1 = (this._yi + 2 * y1) / 3; this._dashedBezierTo(x1, y1, x2, y2, x3, y3); }, /** * 转成静态的 Float32Array 减少堆内存占用 * Convert dynamic array to static Float32Array */ toStatic: function () { var data = this.data; if (data instanceof Array) { data.length = this._len; if (hasTypedArray) { this.data = new Float32Array(data); } } }, /** * @return {module:zrender/core/BoundingRect} */ getBoundingRect: function () { min$1[0] = min$1[1] = min2[0] = min2[1] = Number.MAX_VALUE; max$1[0] = max$1[1] = max2[0] = max2[1] = -Number.MAX_VALUE; var data = this.data; var xi = 0; var yi = 0; var x0 = 0; var y0 = 0; for (var i = 0; i < data.length;) { var cmd = data[i++]; if (i === 1) { // 如果第一个命令是 L, C, Q // 则 previous point 同绘制命令的第一个 point // // 第一个命令为 Arc 的情况下会在后面特殊处理 xi = data[i]; yi = data[i + 1]; x0 = xi; y0 = yi; } switch (cmd) { case CMD.M: // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点 // 在 closePath 的时候使用 x0 = data[i++]; y0 = data[i++]; xi = x0; yi = y0; min2[0] = x0; min2[1] = y0; max2[0] = x0; max2[1] = y0; break; case CMD.L: fromLine(xi, yi, data[i], data[i + 1], min2, max2); xi = data[i++]; yi = data[i++]; break; case CMD.C: fromCubic( xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], min2, max2 ); xi = data[i++]; yi = data[i++]; break; case CMD.Q: fromQuadratic( xi, yi, data[i++], data[i++], data[i], data[i + 1], min2, max2 ); xi = data[i++]; yi = data[i++]; break; case CMD.A: // TODO Arc 判断的开销比较大 var cx = data[i++]; var cy = data[i++]; var rx = data[i++]; var ry = data[i++]; var startAngle = data[i++]; var endAngle = data[i++] + startAngle; // TODO Arc 旋转 i += 1; var anticlockwise = 1 - data[i++]; if (i === 1) { // 直接使用 arc 命令 // 第一个命令起点还未定义 x0 = mathCos$1(startAngle) * rx + cx; y0 = mathSin$1(startAngle) * ry + cy; } fromArc( cx, cy, rx, ry, startAngle, endAngle, anticlockwise, min2, max2 ); xi = mathCos$1(endAngle) * rx + cx; yi = mathSin$1(endAngle) * ry + cy; break; case CMD.R: x0 = xi = data[i++]; y0 = yi = data[i++]; var width = data[i++]; var height = data[i++]; // Use fromLine fromLine(x0, y0, x0 + width, y0 + height, min2, max2); break; case CMD.Z: xi = x0; yi = y0; break; } // Union min(min$1, min$1, min2); max(max$1, max$1, max2); } // No data if (i === 0) { min$1[0] = min$1[1] = max$1[0] = max$1[1] = 0; } return new BoundingRect( min$1[0], min$1[1], max$1[0] - min$1[0], max$1[1] - min$1[1] ); }, /** * Rebuild path from current data * Rebuild path will not consider javascript implemented line dash. * @param {CanvasRenderingContext2D} ctx */ rebuildPath: function (ctx) { var d = this.data; var x0, y0; var xi, yi; var x, y; var ux = this._ux; var uy = this._uy; var len$$1 = this._len; for (var i = 0; i < len$$1;) { var cmd = d[i++]; if (i === 1) { // 如果第一个命令是 L, C, Q // 则 previous point 同绘制命令的第一个 point // // 第一个命令为 Arc 的情况下会在后面特殊处理 xi = d[i]; yi = d[i + 1]; x0 = xi; y0 = yi; } switch (cmd) { case CMD.M: x0 = xi = d[i++]; y0 = yi = d[i++]; ctx.moveTo(xi, yi); break; case CMD.L: x = d[i++]; y = d[i++]; // Not draw too small seg between if (mathAbs(x - xi) > ux || mathAbs(y - yi) > uy || i === len$$1 - 1) { ctx.lineTo(x, y); xi = x; yi = y; } break; case CMD.C: ctx.bezierCurveTo( d[i++], d[i++], d[i++], d[i++], d[i++], d[i++] ); xi = d[i - 2]; yi = d[i - 1]; break; case CMD.Q: ctx.quadraticCurveTo(d[i++], d[i++], d[i++], d[i++]); xi = d[i - 2]; yi = d[i - 1]; break; case CMD.A: var cx = d[i++]; var cy = d[i++]; var rx = d[i++]; var ry = d[i++]; var theta = d[i++]; var dTheta = d[i++]; var psi = d[i++]; var fs = d[i++]; var r = (rx > ry) ? rx : ry; var scaleX = (rx > ry) ? 1 : rx / ry; var scaleY = (rx > ry) ? ry / rx : 1; var isEllipse = Math.abs(rx - ry) > 1e-3; var endAngle = theta + dTheta; if (isEllipse) { ctx.translate(cx, cy); ctx.rotate(psi); ctx.scale(scaleX, scaleY); ctx.arc(0, 0, r, theta, endAngle, 1 - fs); ctx.scale(1 / scaleX, 1 / scaleY); ctx.rotate(-psi); ctx.translate(-cx, -cy); } else { ctx.arc(cx, cy, r, theta, endAngle, 1 - fs); } if (i === 1) { // 直接使用 arc 命令 // 第一个命令起点还未定义 x0 = mathCos$1(theta) * rx + cx; y0 = mathSin$1(theta) * ry + cy; } xi = mathCos$1(endAngle) * rx + cx; yi = mathSin$1(endAngle) * ry + cy; break; case CMD.R: x0 = xi = d[i]; y0 = yi = d[i + 1]; ctx.rect(d[i++], d[i++], d[i++], d[i++]); break; case CMD.Z: ctx.closePath(); xi = x0; yi = y0; } } } }; PathProxy.CMD = CMD; /** * 线段包含判断 * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} lineWidth * @param {number} x * @param {number} y * @return {boolean} */ function containStroke$1(x0, y0, x1, y1, lineWidth, x, y) { if (lineWidth === 0) { return false; } var _l = lineWidth; var _a = 0; var _b = x0; // Quick reject if ( (y > y0 + _l && y > y1 + _l) || (y < y0 - _l && y < y1 - _l) || (x > x0 + _l && x > x1 + _l) || (x < x0 - _l && x < x1 - _l) ) { return false; } if (x0 !== x1) { _a = (y0 - y1) / (x0 - x1); _b = (x0 * y1 - x1 * y0) / (x0 - x1); } else { return Math.abs(x - x0) <= _l / 2; } var tmp = _a * x - y + _b; var _s = tmp * tmp / (_a * _a + 1); return _s <= _l / 2 * _l / 2; } /** * 三次贝塞尔曲线描边包含判断 * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} x3 * @param {number} y3 * @param {number} lineWidth * @param {number} x * @param {number} y * @return {boolean} */ function containStroke$2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) { if (lineWidth === 0) { return false; } var _l = lineWidth; // Quick reject if ( (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l) || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l) || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l) || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l) ) { return false; } var d = cubicProjectPoint( x0, y0, x1, y1, x2, y2, x3, y3, x, y, null ); return d <= _l / 2; } /** * 二次贝塞尔曲线描边包含判断 * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {number} lineWidth * @param {number} x * @param {number} y * @return {boolean} */ function containStroke$3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) { if (lineWidth === 0) { return false; } var _l = lineWidth; // Quick reject if ( (y > y0 + _l && y > y1 + _l && y > y2 + _l) || (y < y0 - _l && y < y1 - _l && y < y2 - _l) || (x > x0 + _l && x > x1 + _l && x > x2 + _l) || (x < x0 - _l && x < x1 - _l && x < x2 - _l) ) { return false; } var d = quadraticProjectPoint( x0, y0, x1, y1, x2, y2, x, y, null ); return d <= _l / 2; } var PI2$3 = Math.PI * 2; function normalizeRadian(angle) { angle %= PI2$3; if (angle < 0) { angle += PI2$3; } return angle; } var PI2$2 = Math.PI * 2; /** * 圆弧描边包含判断 * @param {number} cx * @param {number} cy * @param {number} r * @param {number} startAngle * @param {number} endAngle * @param {boolean} anticlockwise * @param {number} lineWidth * @param {number} x * @param {number} y * @return {Boolean} */ function containStroke$4( cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y ) { if (lineWidth === 0) { return false; } var _l = lineWidth; x -= cx; y -= cy; var d = Math.sqrt(x * x + y * y); if ((d - _l > r) || (d + _l < r)) { return false; } if (Math.abs(startAngle - endAngle) % PI2$2 < 1e-4) { // Is a circle return true; } if (anticlockwise) { var tmp = startAngle; startAngle = normalizeRadian(endAngle); endAngle = normalizeRadian(tmp); } else { startAngle = normalizeRadian(startAngle); endAngle = normalizeRadian(endAngle); } if (startAngle > endAngle) { endAngle += PI2$2; } var angle = Math.atan2(y, x); if (angle < 0) { angle += PI2$2; } return (angle >= startAngle && angle <= endAngle) || (angle + PI2$2 >= startAngle && angle + PI2$2 <= endAngle); } function windingLine(x0, y0, x1, y1, x, y) { if ((y > y0 && y > y1) || (y < y0 && y < y1)) { return 0; } // Ignore horizontal line if (y1 === y0) { return 0; } var dir = y1 < y0 ? 1 : -1; var t = (y - y0) / (y1 - y0); // Avoid winding error when intersection point is the connect point of two line of polygon if (t === 1 || t === 0) { dir = y1 < y0 ? 0.5 : -0.5; } var x_ = t * (x1 - x0) + x0; // If (x, y) on the line, considered as "contain". return x_ === x ? Infinity : x_ > x ? dir : 0; } var CMD$1 = PathProxy.CMD; var PI2$1 = Math.PI * 2; var EPSILON$2 = 1e-4; function isAroundEqual(a, b) { return Math.abs(a - b) < EPSILON$2; } // 临时数组 var roots = [-1, -1, -1]; var extrema = [-1, -1]; function swapExtrema() { var tmp = extrema[0]; extrema[0] = extrema[1]; extrema[1] = tmp; } function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) { // Quick reject if ( (y > y0 && y > y1 && y > y2 && y > y3) || (y < y0 && y < y1 && y < y2 && y < y3) ) { return 0; } var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots); if (nRoots === 0) { return 0; } else { var w = 0; var nExtrema = -1; var y0_; var y1_; for (var i = 0; i < nRoots; i++) { var t = roots[i]; // Avoid winding error when intersection point is the connect point of two line of polygon var unit = (t === 0 || t === 1) ? 0.5 : 1; var x_ = cubicAt(x0, x1, x2, x3, t); if (x_ < x) { // Quick reject continue; } if (nExtrema < 0) { nExtrema = cubicExtrema(y0, y1, y2, y3, extrema); if (extrema[1] < extrema[0] && nExtrema > 1) { swapExtrema(); } y0_ = cubicAt(y0, y1, y2, y3, extrema[0]); if (nExtrema > 1) { y1_ = cubicAt(y0, y1, y2, y3, extrema[1]); } } if (nExtrema === 2) { // 分成三段单调函数 if (t < extrema[0]) { w += y0_ < y0 ? unit : -unit; } else if (t < extrema[1]) { w += y1_ < y0_ ? unit : -unit; } else { w += y3 < y1_ ? unit : -unit; } } else { // 分成两段单调函数 if (t < extrema[0]) { w += y0_ < y0 ? unit : -unit; } else { w += y3 < y0_ ? unit : -unit; } } } return w; } } function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) { // Quick reject if ( (y > y0 && y > y1 && y > y2) || (y < y0 && y < y1 && y < y2) ) { return 0; } var nRoots = quadraticRootAt(y0, y1, y2, y, roots); if (nRoots === 0) { return 0; } else { var t = quadraticExtremum(y0, y1, y2); if (t >= 0 && t <= 1) { var w = 0; var y_ = quadraticAt(y0, y1, y2, t); for (var i = 0; i < nRoots; i++) { // Remove one endpoint. var unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1; var x_ = quadraticAt(x0, x1, x2, roots[i]); if (x_ < x) { // Quick reject continue; } if (roots[i] < t) { w += y_ < y0 ? unit : -unit; } else { w += y2 < y_ ? unit : -unit; } } return w; } else { // Remove one endpoint. var unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1; var x_ = quadraticAt(x0, x1, x2, roots[0]); if (x_ < x) { // Quick reject return 0; } return y2 < y0 ? unit : -unit; } } } // TODO // Arc 旋转 function windingArc( cx, cy, r, startAngle, endAngle, anticlockwise, x, y ) { y -= cy; if (y > r || y < -r) { return 0; } var tmp = Math.sqrt(r * r - y * y); roots[0] = -tmp; roots[1] = tmp; var diff = Math.abs(startAngle - endAngle); if (diff < 1e-4) { return 0; } if (diff % PI2$1 < 1e-4) { // Is a circle startAngle = 0; endAngle = PI2$1; var dir = anticlockwise ? 1 : -1; if (x >= roots[0] + cx && x <= roots[1] + cx) { return dir; } else { return 0; } } if (anticlockwise) { var tmp = startAngle; startAngle = normalizeRadian(endAngle); endAngle = normalizeRadian(tmp); } else { startAngle = normalizeRadian(startAngle); endAngle = normalizeRadian(endAngle); } if (startAngle > endAngle) { endAngle += PI2$1; } var w = 0; for (var i = 0; i < 2; i++) { var x_ = roots[i]; if (x_ + cx > x) { var angle = Math.atan2(y, x_); var dir = anticlockwise ? 1 : -1; if (angle < 0) { angle = PI2$1 + angle; } if ( (angle >= startAngle && angle <= endAngle) || (angle + PI2$1 >= startAngle && angle + PI2$1 <= endAngle) ) { if (angle > Math.PI / 2 && angle < Math.PI * 1.5) { dir = -dir; } w += dir; } } } return w; } function containPath(data, lineWidth, isStroke, x, y) { var w = 0; var xi = 0; var yi = 0; var x0 = 0; var y0 = 0; for (var i = 0; i < data.length;) { var cmd = data[i++]; // Begin a new subpath if (cmd === CMD$1.M && i > 1) { // Close previous subpath if (!isStroke) { w += windingLine(xi, yi, x0, y0, x, y); } // 如果被任何一个 subpath 包含 // if (w !== 0) { // return true; // } } if (i === 1) { // 如果第一个命令是 L, C, Q // 则 previous point 同绘制命令的第一个 point // // 第一个命令为 Arc 的情况下会在后面特殊处理 xi = data[i]; yi = data[i + 1]; x0 = xi; y0 = yi; } switch (cmd) { case CMD$1.M: // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点 // 在 closePath 的时候使用 x0 = data[i++]; y0 = data[i++]; xi = x0; yi = y0; break; case CMD$1.L: if (isStroke) { if (containStroke$1(xi, yi, data[i], data[i + 1], lineWidth, x, y)) { return true; } } else { // NOTE 在第一个命令为 L, C, Q 的时候会计算出 NaN w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0; } xi = data[i++]; yi = data[i++]; break; case CMD$1.C: if (isStroke) { if (containStroke$2(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y )) { return true; } } else { w += windingCubic( xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y ) || 0; } xi = data[i++]; yi = data[i++]; break; case CMD$1.Q: if (isStroke) { if (containStroke$3(xi, yi, data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y )) { return true; } } else { w += windingQuadratic( xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y ) || 0; } xi = data[i++]; yi = data[i++]; break; case CMD$1.A: // TODO Arc 判断的开销比较大 var cx = data[i++]; var cy = data[i++]; var rx = data[i++]; var ry = data[i++]; var theta = data[i++]; var dTheta = data[i++]; // TODO Arc 旋转 i += 1; var anticlockwise = 1 - data[i++]; var x1 = Math.cos(theta) * rx + cx; var y1 = Math.sin(theta) * ry + cy; // 不是直接使用 arc 命令 if (i > 1) { w += windingLine(xi, yi, x1, y1, x, y); } else { // 第一个命令起点还未定义 x0 = x1; y0 = y1; } // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放 var _x = (x - cx) * ry / rx + cx; if (isStroke) { if (containStroke$4( cx, cy, ry, theta, theta + dTheta, anticlockwise, lineWidth, _x, y )) { return true; } } else { w += windingArc( cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y ); } xi = Math.cos(theta + dTheta) * rx + cx; yi = Math.sin(theta + dTheta) * ry + cy; break; case CMD$1.R: x0 = xi = data[i++]; y0 = yi = data[i++]; var width = data[i++]; var height = data[i++]; var x1 = x0 + width; var y1 = y0 + height; if (isStroke) { if (containStroke$1(x0, y0, x1, y0, lineWidth, x, y) || containStroke$1(x1, y0, x1, y1, lineWidth, x, y) || containStroke$1(x1, y1, x0, y1, lineWidth, x, y) || containStroke$1(x0, y1, x0, y0, lineWidth, x, y) ) { return true; } } else { // FIXME Clockwise ? w += windingLine(x1, y0, x1, y1, x, y); w += windingLine(x0, y1, x0, y0, x, y); } break; case CMD$1.Z: if (isStroke) { if (containStroke$1( xi, yi, x0, y0, lineWidth, x, y )) { return true; } } else { // Close a subpath w += windingLine(xi, yi, x0, y0, x, y); // 如果被任何一个 subpath 包含 // FIXME subpaths may overlap // if (w !== 0) { // return true; // } } xi = x0; yi = y0; break; } } if (!isStroke && !isAroundEqual(yi, y0)) { w += windingLine(xi, yi, x0, y0, x, y) || 0; } return w !== 0; } function contain(pathData, x, y) { return containPath(pathData, 0, false, x, y); } function containStroke(pathData, lineWidth, x, y) { return containPath(pathData, lineWidth, true, x, y); } var getCanvasPattern = Pattern.prototype.getCanvasPattern; var abs = Math.abs; var pathProxyForDraw = new PathProxy(true); /** * @alias module:zrender/graphic/Path * @extends module:zrender/graphic/Displayable * @constructor * @param {Object} opts */ function Path(opts) { Displayable.call(this, opts); /** * @type {module:zrender/core/PathProxy} * @readOnly */ this.path = null; } Path.prototype = { constructor: Path, type: 'path', __dirtyPath: true, strokeContainThreshold: 5, // This item default to be false. But in map series in echarts, // in order to improve performance, it should be set to true, // so the shorty segment won't draw. segmentIgnoreThreshold: 0, /** * See `module:zrender/src/graphic/helper/subPixelOptimize`. * @type {boolean} */ subPixelOptimize: false, brush: function (ctx, prevEl) { var style = this.style; var path = this.path || pathProxyForDraw; var hasStroke = style.hasStroke(); var hasFill = style.hasFill(); var fill = style.fill; var stroke = style.stroke; var hasFillGradient = hasFill && !!(fill.colorStops); var hasStrokeGradient = hasStroke && !!(stroke.colorStops); var hasFillPattern = hasFill && !!(fill.image); var hasStrokePattern = hasStroke && !!(stroke.image); style.bind(ctx, this, prevEl); this.setTransform(ctx); if (this.__dirty) { var rect; // Update gradient because bounding rect may changed if (hasFillGradient) { rect = rect || this.getBoundingRect(); this._fillGradient = style.getGradient(ctx, fill, rect); } if (hasStrokeGradient) { rect = rect || this.getBoundingRect(); this._strokeGradient = style.getGradient(ctx, stroke, rect); } } // Use the gradient or pattern if (hasFillGradient) { // PENDING If may have affect the state ctx.fillStyle = this._fillGradient; } else if (hasFillPattern) { ctx.fillStyle = getCanvasPattern.call(fill, ctx); } if (hasStrokeGradient) { ctx.strokeStyle = this._strokeGradient; } else if (hasStrokePattern) { ctx.strokeStyle = getCanvasPattern.call(stroke, ctx); } var lineDash = style.lineDash; var lineDashOffset = style.lineDashOffset; var ctxLineDash = !!ctx.setLineDash; // Update path sx, sy var scale = this.getGlobalScale(); path.setScale(scale[0], scale[1], this.segmentIgnoreThreshold); // Proxy context // Rebuild path in following 2 cases // 1. Path is dirty // 2. Path needs javascript implemented lineDash stroking. // In this case, lineDash information will not be saved in PathProxy if (this.__dirtyPath || (lineDash && !ctxLineDash && hasStroke) ) { path.beginPath(ctx); // Setting line dash before build path if (lineDash && !ctxLineDash) { path.setLineDash(lineDash); path.setLineDashOffset(lineDashOffset); } this.buildPath(path, this.shape, false); // Clear path dirty flag if (this.path) { this.__dirtyPath = false; } } else { // Replay path building ctx.beginPath(); this.path.rebuildPath(ctx); } if (hasFill) { if (style.fillOpacity != null) { var originalGlobalAlpha = ctx.globalAlpha; ctx.globalAlpha = style.fillOpacity * style.opacity; path.fill(ctx); ctx.globalAlpha = originalGlobalAlpha; } else { path.fill(ctx); } } if (lineDash && ctxLineDash) { ctx.setLineDash(lineDash); ctx.lineDashOffset = lineDashOffset; } if (hasStroke) { if (style.strokeOpacity != null) { var originalGlobalAlpha = ctx.globalAlpha; ctx.globalAlpha = style.strokeOpacity * style.opacity; path.stroke(ctx); ctx.globalAlpha = originalGlobalAlpha; } else { path.stroke(ctx); } } if (lineDash && ctxLineDash) { // PENDING // Remove lineDash ctx.setLineDash([]); } // Draw rect text if (style.text != null) { // Only restore transform when needs draw text. this.restoreTransform(ctx); this.drawRectText(ctx, this.getBoundingRect()); } }, // When bundling path, some shape may decide if use moveTo to begin a new subpath or closePath // Like in circle buildPath: function (ctx, shapeCfg, inBundle) {}, createPathProxy: function () { this.path = new PathProxy(); }, getBoundingRect: function () { var rect = this._rect; var style = this.style; var needsUpdateRect = !rect; if (needsUpdateRect) { var path = this.path; if (!path) { // Create path on demand. path = this.path = new PathProxy(); } if (this.__dirtyPath) { path.beginPath(); this.buildPath(path, this.shape, false); } rect = path.getBoundingRect(); } this._rect = rect; if (style.hasStroke()) { // Needs update rect with stroke lineWidth when // 1. Element changes scale or lineWidth // 2. Shape is changed var rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone()); if (this.__dirty || needsUpdateRect) { rectWithStroke.copy(rect); // FIXME Must after updateTransform var w = style.lineWidth; // PENDING, Min line width is needed when line is horizontal or vertical var lineScale = style.strokeNoScale ? this.getLineScale() : 1; // Only add extra hover lineWidth when there are no fill if (!style.hasFill()) { w = Math.max(w, this.strokeContainThreshold || 4); } // Consider line width // Line scale can't be 0; if (lineScale > 1e-10) { rectWithStroke.width += w / lineScale; rectWithStroke.height += w / lineScale; rectWithStroke.x -= w / lineScale / 2; rectWithStroke.y -= w / lineScale / 2; } } // Return rect with stroke return rectWithStroke; } return rect; }, contain: function (x, y) { var localPos = this.transformCoordToLocal(x, y); var rect = this.getBoundingRect(); var style = this.style; x = localPos[0]; y = localPos[1]; if (rect.contain(x, y)) { var pathData = this.path.data; if (style.hasStroke()) { var lineWidth = style.lineWidth; var lineScale = style.strokeNoScale ? this.getLineScale() : 1; // Line scale can't be 0; if (lineScale > 1e-10) { // Only add extra hover lineWidth when there are no fill if (!style.hasFill()) { lineWidth = Math.max(lineWidth, this.strokeContainThreshold); } if (containStroke( pathData, lineWidth / lineScale, x, y )) { return true; } } } if (style.hasFill()) { return contain(pathData, x, y); } } return false; }, /** * @param {boolean} dirtyPath */ dirty: function (dirtyPath) { if (dirtyPath == null) { dirtyPath = true; } // Only mark dirty, not mark clean if (dirtyPath) { this.__dirtyPath = dirtyPath; this._rect = null; } this.__dirty = this.__dirtyText = true; this.__zr && this.__zr.refresh(); // Used as a clipping path if (this.__clipTarget) { this.__clipTarget.dirty(); } }, /** * Alias for animate('shape') * @param {boolean} loop */ animateShape: function (loop) { return this.animate('shape', loop); }, // Overwrite attrKV attrKV: function (key, value) { // FIXME if (key === 'shape') { this.setShape(value); this.__dirtyPath = true; this._rect = null; } else { Displayable.prototype.attrKV.call(this, key, value); } }, /** * @param {Object|string} key * @param {*} value */ setShape: function (key, value) { var shape = this.shape; // Path from string may not have shape if (shape) { if (isObject$1(key)) { for (var name in key) { if (key.hasOwnProperty(name)) { shape[name] = key[name]; } } } else { shape[key] = value; } this.dirty(true); } return this; }, getLineScale: function () { var m = this.transform; // Get the line scale. // Determinant of `m` means how much the area is enlarged by the // transformation. So its square root can be used as a scale factor // for width. return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10 ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1])) : 1; } }; /** * 扩展一个 Path element, 比如星形,圆等。 * Extend a path element * @param {Object} props * @param {string} props.type Path type * @param {Function} props.init Initialize * @param {Function} props.buildPath Overwrite buildPath method * @param {Object} [props.style] Extended default style config * @param {Object} [props.shape] Extended default shape config */ Path.extend = function (defaults$$1) { var Sub = function (opts) { Path.call(this, opts); if (defaults$$1.style) { // Extend default style this.style.extendFrom(defaults$$1.style, false); } // Extend default shape var defaultShape = defaults$$1.shape; if (defaultShape) { this.shape = this.shape || {}; var thisShape = this.shape; for (var name in defaultShape) { if ( !thisShape.hasOwnProperty(name) && defaultShape.hasOwnProperty(name) ) { thisShape[name] = defaultShape[name]; } } } defaults$$1.init && defaults$$1.init.call(this, opts); }; inherits(Sub, Path); // FIXME 不能 extend position, rotation 等引用对象 for (var name in defaults$$1) { // Extending prototype values and methods if (name !== 'style' && name !== 'shape') { Sub.prototype[name] = defaults$$1[name]; } } return Sub; }; inherits(Path, Displayable); var CMD$2 = PathProxy.CMD; var points = [[], [], []]; var mathSqrt$3 = Math.sqrt; var mathAtan2 = Math.atan2; var transformPath = function (path, m) { var data = path.data; var cmd; var nPoint; var i; var j; var k; var p; var M = CMD$2.M; var C = CMD$2.C; var L = CMD$2.L; var R = CMD$2.R; var A = CMD$2.A; var Q = CMD$2.Q; for (i = 0, j = 0; i < data.length;) { cmd = data[i++]; j = i; nPoint = 0; switch (cmd) { case M: nPoint = 1; break; case L: nPoint = 1; break; case C: nPoint = 3; break; case Q: nPoint = 2; break; case A: var x = m[4]; var y = m[5]; var sx = mathSqrt$3(m[0] * m[0] + m[1] * m[1]); var sy = mathSqrt$3(m[2] * m[2] + m[3] * m[3]); var angle = mathAtan2(-m[1] / sy, m[0] / sx); // cx data[i] *= sx; data[i++] += x; // cy data[i] *= sy; data[i++] += y; // Scale rx and ry // FIXME Assume psi is 0 here data[i++] *= sx; data[i++] *= sy; // Start angle data[i++] += angle; // end angle data[i++] += angle; // FIXME psi i += 2; j = i; break; case R: // x0, y0 p[0] = data[i++]; p[1] = data[i++]; applyTransform(p, p, m); data[j++] = p[0]; data[j++] = p[1]; // x1, y1 p[0] += data[i++]; p[1] += data[i++]; applyTransform(p, p, m); data[j++] = p[0]; data[j++] = p[1]; } for (k = 0; k < nPoint; k++) { var p = points[k]; p[0] = data[i++]; p[1] = data[i++]; applyTransform(p, p, m); // Write back data[j++] = p[0]; data[j++] = p[1]; } } }; // command chars // var cc = [ // 'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z', // 'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A' // ]; var mathSqrt = Math.sqrt; var mathSin = Math.sin; var mathCos = Math.cos; var PI = Math.PI; var vMag = function (v) { return Math.sqrt(v[0] * v[0] + v[1] * v[1]); }; var vRatio = function (u, v) { return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v)); }; var vAngle = function (u, v) { return (u[0] * v[1] < u[1] * v[0] ? -1 : 1) * Math.acos(vRatio(u, v)); }; function processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) { var psi = psiDeg * (PI / 180.0); var xp = mathCos(psi) * (x1 - x2) / 2.0 + mathSin(psi) * (y1 - y2) / 2.0; var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0 + mathCos(psi) * (y1 - y2) / 2.0; var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry); if (lambda > 1) { rx *= mathSqrt(lambda); ry *= mathSqrt(lambda); } var f = (fa === fs ? -1 : 1) * mathSqrt((((rx * rx) * (ry * ry)) - ((rx * rx) * (yp * yp)) - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp) + (ry * ry) * (xp * xp)) ) || 0; var cxp = f * rx * yp / ry; var cyp = f * -ry * xp / rx; var cx = (x1 + x2) / 2.0 + mathCos(psi) * cxp - mathSin(psi) * cyp; var cy = (y1 + y2) / 2.0 + mathSin(psi) * cxp + mathCos(psi) * cyp; var theta = vAngle([ 1, 0 ], [ (xp - cxp) / rx, (yp - cyp) / ry ]); var u = [ (xp - cxp) / rx, (yp - cyp) / ry ]; var v = [ (-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry ]; var dTheta = vAngle(u, v); if (vRatio(u, v) <= -1) { dTheta = PI; } if (vRatio(u, v) >= 1) { dTheta = 0; } if (fs === 0 && dTheta > 0) { dTheta = dTheta - 2 * PI; } if (fs === 1 && dTheta < 0) { dTheta = dTheta + 2 * PI; } path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs); } var commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig; // Consider case: // (1) delimiter can be comma or space, where continuous commas // or spaces should be seen as one comma. // (2) value can be like: // '2e-4', 'l.5.9' (ignore 0), 'M-10-10', 'l-2.43e-1,34.9983', // 'l-.5E1,54', '121-23-44-11' (no delimiter) var numberReg = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g; // var valueSplitReg = /[\s,]+/; function createPathProxyFromString(data) { if (!data) { return new PathProxy(); } // var data = data.replace(/-/g, ' -') // .replace(/ /g, ' ') // .replace(/ /g, ',') // .replace(/,,/g, ','); // var n; // create pipes so that we can split the data // for (n = 0; n < cc.length; n++) { // cs = cs.replace(new RegExp(cc[n], 'g'), '|' + cc[n]); // } // data = data.replace(/-/g, ',-'); // create array // var arr = cs.split('|'); // init context point var cpx = 0; var cpy = 0; var subpathX = cpx; var subpathY = cpy; var prevCmd; var path = new PathProxy(); var CMD = PathProxy.CMD; // commandReg.lastIndex = 0; // var cmdResult; // while ((cmdResult = commandReg.exec(data)) != null) { // var cmdStr = cmdResult[1]; // var cmdContent = cmdResult[2]; var cmdList = data.match(commandReg); for (var l = 0; l < cmdList.length; l++) { var cmdText = cmdList[l]; var cmdStr = cmdText.charAt(0); var cmd; // String#split is faster a little bit than String#replace or RegExp#exec. // var p = cmdContent.split(valueSplitReg); // var pLen = 0; // for (var i = 0; i < p.length; i++) { // // '' and other invalid str => NaN // var val = parseFloat(p[i]); // !isNaN(val) && (p[pLen++] = val); // } var p = cmdText.match(numberReg) || []; var pLen = p.length; for (var i = 0; i < pLen; i++) { p[i] = parseFloat(p[i]); } var off = 0; while (off < pLen) { var ctlPtx; var ctlPty; var rx; var ry; var psi; var fa; var fs; var x1 = cpx; var y1 = cpy; // convert l, H, h, V, and v to L switch (cmdStr) { case 'l': cpx += p[off++]; cpy += p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'L': cpx = p[off++]; cpy = p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'm': cpx += p[off++]; cpy += p[off++]; cmd = CMD.M; path.addData(cmd, cpx, cpy); subpathX = cpx; subpathY = cpy; cmdStr = 'l'; break; case 'M': cpx = p[off++]; cpy = p[off++]; cmd = CMD.M; path.addData(cmd, cpx, cpy); subpathX = cpx; subpathY = cpy; cmdStr = 'L'; break; case 'h': cpx += p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'H': cpx = p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'v': cpy += p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'V': cpy = p[off++]; cmd = CMD.L; path.addData(cmd, cpx, cpy); break; case 'C': cmd = CMD.C; path.addData( cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++] ); cpx = p[off - 2]; cpy = p[off - 1]; break; case 'c': cmd = CMD.C; path.addData( cmd, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy ); cpx += p[off - 2]; cpy += p[off - 1]; break; case 'S': ctlPtx = cpx; ctlPty = cpy; var len = path.len(); var pathData = path.data; if (prevCmd === CMD.C) { ctlPtx += cpx - pathData[len - 4]; ctlPty += cpy - pathData[len - 3]; } cmd = CMD.C; x1 = p[off++]; y1 = p[off++]; cpx = p[off++]; cpy = p[off++]; path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy); break; case 's': ctlPtx = cpx; ctlPty = cpy; var len = path.len(); var pathData = path.data; if (prevCmd === CMD.C) { ctlPtx += cpx - pathData[len - 4]; ctlPty += cpy - pathData[len - 3]; } cmd = CMD.C; x1 = cpx + p[off++]; y1 = cpy + p[off++]; cpx += p[off++]; cpy += p[off++]; path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy); break; case 'Q': x1 = p[off++]; y1 = p[off++]; cpx = p[off++]; cpy = p[off++]; cmd = CMD.Q; path.addData(cmd, x1, y1, cpx, cpy); break; case 'q': x1 = p[off++] + cpx; y1 = p[off++] + cpy; cpx += p[off++]; cpy += p[off++]; cmd = CMD.Q; path.addData(cmd, x1, y1, cpx, cpy); break; case 'T': ctlPtx = cpx; ctlPty = cpy; var len = path.len(); var pathData = path.data; if (prevCmd === CMD.Q) { ctlPtx += cpx - pathData[len - 4]; ctlPty += cpy - pathData[len - 3]; } cpx = p[off++]; cpy = p[off++]; cmd = CMD.Q; path.addData(cmd, ctlPtx, ctlPty, cpx, cpy); break; case 't': ctlPtx = cpx; ctlPty = cpy; var len = path.len(); var pathData = path.data; if (prevCmd === CMD.Q) { ctlPtx += cpx - pathData[len - 4]; ctlPty += cpy - pathData[len - 3]; } cpx += p[off++]; cpy += p[off++]; cmd = CMD.Q; path.addData(cmd, ctlPtx, ctlPty, cpx, cpy); break; case 'A': rx = p[off++]; ry = p[off++]; psi = p[off++]; fa = p[off++]; fs = p[off++]; x1 = cpx, y1 = cpy; cpx = p[off++]; cpy = p[off++]; cmd = CMD.A; processArc( x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path ); break; case 'a': rx = p[off++]; ry = p[off++]; psi = p[off++]; fa = p[off++]; fs = p[off++]; x1 = cpx, y1 = cpy; cpx += p[off++]; cpy += p[off++]; cmd = CMD.A; processArc( x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path ); break; } } if (cmdStr === 'z' || cmdStr === 'Z') { cmd = CMD.Z; path.addData(cmd); // z may be in the middle of the path. cpx = subpathX; cpy = subpathY; } prevCmd = cmd; } path.toStatic(); return path; } // TODO Optimize double memory cost problem function createPathOptions(str, opts) { var pathProxy = createPathProxyFromString(str); opts = opts || {}; opts.buildPath = function (path) { if (path.setData) { path.setData(pathProxy.data); // Svg and vml renderer don't have context var ctx = path.getContext(); if (ctx) { path.rebuildPath(ctx); } } else { var ctx = path; pathProxy.rebuildPath(ctx); } }; opts.applyTransform = function (m) { transformPath(pathProxy, m); this.dirty(true); }; return opts; } /** * Create a Path object from path string data * http://www.w3.org/TR/SVG/paths.html#PathData * @param {Object} opts Other options */ function createFromString(str, opts) { return new Path(createPathOptions(str, opts)); } /** * Create a Path class from path string data * @param {string} str * @param {Object} opts Other options */ function extendFromString(str, opts) { return Path.extend(createPathOptions(str, opts)); } /** * Merge multiple paths */ // TODO Apply transform // TODO stroke dash // TODO Optimize double memory cost problem function mergePath$1(pathEls, opts) { var pathList = []; var len = pathEls.length; for (var i = 0; i < len; i++) { var pathEl = pathEls[i]; if (!pathEl.path) { pathEl.createPathProxy(); } if (pathEl.__dirtyPath) { pathEl.buildPath(pathEl.path, pathEl.shape, true); } pathList.push(pathEl.path); } var pathBundle = new Path(opts); // Need path proxy. pathBundle.createPathProxy(); pathBundle.buildPath = function (path) { path.appendPath(pathList); // Svg and vml renderer don't have context var ctx = path.getContext(); if (ctx) { path.rebuildPath(ctx); } }; return pathBundle; } /** * @alias zrender/graphic/Text * @extends module:zrender/graphic/Displayable * @constructor * @param {Object} opts */ var Text = function (opts) { // jshint ignore:line Displayable.call(this, opts); }; Text.prototype = { constructor: Text, type: 'text', brush: function (ctx, prevEl) { var style = this.style; // Optimize, avoid normalize every time. this.__dirty && normalizeTextStyle(style, true); // Use props with prefix 'text'. style.fill = style.stroke = style.shadowBlur = style.shadowColor = style.shadowOffsetX = style.shadowOffsetY = null; var text = style.text; // Convert to string text != null && (text += ''); // Do not apply style.bind in Text node. Because the real bind job // is in textHelper.renderText, and performance of text render should // be considered. // style.bind(ctx, this, prevEl); if (!needDrawText(text, style)) { // The current el.style is not applied // and should not be used as cache. ctx.__attrCachedBy = ContextCachedBy.NONE; return; } this.setTransform(ctx); renderText(this, ctx, text, style, null, prevEl); this.restoreTransform(ctx); }, getBoundingRect: function () { var style = this.style; // Optimize, avoid normalize every time. this.__dirty && normalizeTextStyle(style, true); if (!this._rect) { var text = style.text; text != null ? (text += '') : (text = ''); var rect = getBoundingRect( style.text + '', style.font, style.textAlign, style.textVerticalAlign, style.textPadding, style.textLineHeight, style.rich ); rect.x += style.x || 0; rect.y += style.y || 0; if (getStroke(style.textStroke, style.textStrokeWidth)) { var w = style.textStrokeWidth; rect.x -= w / 2; rect.y -= w / 2; rect.width += w; rect.height += w; } this._rect = rect; } return this._rect; } }; inherits(Text, Displayable); /** * 圆形 * @module zrender/shape/Circle */ var Circle = Path.extend({ type: 'circle', shape: { cx: 0, cy: 0, r: 0 }, buildPath: function (ctx, shape, inBundle) { // Better stroking in ShapeBundle // Always do it may have performence issue ( fill may be 2x more cost) if (inBundle) { ctx.moveTo(shape.cx + shape.r, shape.cy); } // else { // if (ctx.allocate && !ctx.data.length) { // ctx.allocate(ctx.CMD_MEM_SIZE.A); // } // } // Better stroking in ShapeBundle // ctx.moveTo(shape.cx + shape.r, shape.cy); ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2, true); } }); // Fix weird bug in some version of IE11 (like 11.0.9600.178**), // where exception "unexpected call to method or property access" // might be thrown when calling ctx.fill or ctx.stroke after a path // whose area size is zero is drawn and ctx.clip() is called and // shadowBlur is set. See #4572, #3112, #5777. // (e.g., // ctx.moveTo(10, 10); // ctx.lineTo(20, 10); // ctx.closePath(); // ctx.clip(); // ctx.shadowBlur = 10; // ... // ctx.fill(); // ) var shadowTemp = [ ['shadowBlur', 0], ['shadowColor', '#000'], ['shadowOffsetX', 0], ['shadowOffsetY', 0] ]; var fixClipWithShadow = function (orignalBrush) { // version string can be: '11.0' return (env$1.browser.ie && env$1.browser.version >= 11) ? function () { var clipPaths = this.__clipPaths; var style = this.style; var modified; if (clipPaths) { for (var i = 0; i < clipPaths.length; i++) { var clipPath = clipPaths[i]; var shape = clipPath && clipPath.shape; var type = clipPath && clipPath.type; if (shape && ( (type === 'sector' && shape.startAngle === shape.endAngle) || (type === 'rect' && (!shape.width || !shape.height)) )) { for (var j = 0; j < shadowTemp.length; j++) { // It is save to put shadowTemp static, because shadowTemp // will be all modified each item brush called. shadowTemp[j][2] = style[shadowTemp[j][0]]; style[shadowTemp[j][0]] = shadowTemp[j][1]; } modified = true; break; } } } orignalBrush.apply(this, arguments); if (modified) { for (var j = 0; j < shadowTemp.length; j++) { style[shadowTemp[j][0]] = shadowTemp[j][2]; } } } : orignalBrush; }; /** * 扇形 * @module zrender/graphic/shape/Sector */ var Sector = Path.extend({ type: 'sector', shape: { cx: 0, cy: 0, r0: 0, r: 0, startAngle: 0, endAngle: Math.PI * 2, clockwise: true }, brush: fixClipWithShadow(Path.prototype.brush), buildPath: function (ctx, shape) { var x = shape.cx; var y = shape.cy; var r0 = Math.max(shape.r0 || 0, 0); var r = Math.max(shape.r, 0); var startAngle = shape.startAngle; var endAngle = shape.endAngle; var clockwise = shape.clockwise; var unitX = Math.cos(startAngle); var unitY = Math.sin(startAngle); ctx.moveTo(unitX * r0 + x, unitY * r0 + y); ctx.lineTo(unitX * r + x, unitY * r + y); ctx.arc(x, y, r, startAngle, endAngle, !clockwise); ctx.lineTo( Math.cos(endAngle) * r0 + x, Math.sin(endAngle) * r0 + y ); if (r0 !== 0) { ctx.arc(x, y, r0, endAngle, startAngle, clockwise); } ctx.closePath(); } }); /** * 圆环 * @module zrender/graphic/shape/Ring */ var Ring = Path.extend({ type: 'ring', shape: { cx: 0, cy: 0, r: 0, r0: 0 }, buildPath: function (ctx, shape) { var x = shape.cx; var y = shape.cy; var PI2 = Math.PI * 2; ctx.moveTo(x + shape.r, y); ctx.arc(x, y, shape.r, 0, PI2, false); ctx.moveTo(x + shape.r0, y); ctx.arc(x, y, shape.r0, 0, PI2, true); } }); /** * Catmull-Rom spline 插值折线 * @module zrender/shape/util/smoothSpline * @author pissang (https://www.github.com/pissang) * Kener (@Kener-林峰, kener.linfeng@gmail.com) * errorrik (errorrik@gmail.com) */ /** * @inner */ function interpolate(p0, p1, p2, p3, t, t2, t3) { var v0 = (p2 - p0) * 0.5; var v1 = (p3 - p1) * 0.5; return (2 * (p1 - p2) + v0 + v1) * t3 + (-3 * (p1 - p2) - 2 * v0 - v1) * t2 + v0 * t + p1; } /** * @alias module:zrender/shape/util/smoothSpline * @param {Array} points 线段顶点数组 * @param {boolean} isLoop * @return {Array} */ var smoothSpline = function (points, isLoop) { var len$$1 = points.length; var ret = []; var distance$$1 = 0; for (var i = 1; i < len$$1; i++) { distance$$1 += distance(points[i - 1], points[i]); } var segs = distance$$1 / 2; segs = segs < len$$1 ? len$$1 : segs; for (var i = 0; i < segs; i++) { var pos = i / (segs - 1) * (isLoop ? len$$1 : len$$1 - 1); var idx = Math.floor(pos); var w = pos - idx; var p0; var p1 = points[idx % len$$1]; var p2; var p3; if (!isLoop) { p0 = points[idx === 0 ? idx : idx - 1]; p2 = points[idx > len$$1 - 2 ? len$$1 - 1 : idx + 1]; p3 = points[idx > len$$1 - 3 ? len$$1 - 1 : idx + 2]; } else { p0 = points[(idx - 1 + len$$1) % len$$1]; p2 = points[(idx + 1) % len$$1]; p3 = points[(idx + 2) % len$$1]; } var w2 = w * w; var w3 = w * w2; ret.push([ interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3), interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3) ]); } return ret; }; /** * 贝塞尔平滑曲线 * @module zrender/shape/util/smoothBezier * @author pissang (https://www.github.com/pissang) * Kener (@Kener-林峰, kener.linfeng@gmail.com) * errorrik (errorrik@gmail.com) */ /** * 贝塞尔平滑曲线 * @alias module:zrender/shape/util/smoothBezier * @param {Array} points 线段顶点数组 * @param {number} smooth 平滑等级, 0-1 * @param {boolean} isLoop * @param {Array} constraint 将计算出来的控制点约束在一个包围盒内 * 比如 [[0, 0], [100, 100]], 这个包围盒会与 * 整个折线的包围盒做一个并集用来约束控制点。 * @param {Array} 计算出来的控制点数组 */ var smoothBezier = function (points, smooth, isLoop, constraint) { var cps = []; var v = []; var v1 = []; var v2 = []; var prevPoint; var nextPoint; var min$$1; var max$$1; if (constraint) { min$$1 = [Infinity, Infinity]; max$$1 = [-Infinity, -Infinity]; for (var i = 0, len$$1 = points.length; i < len$$1; i++) { min(min$$1, min$$1, points[i]); max(max$$1, max$$1, points[i]); } // 与指定的包围盒做并集 min(min$$1, min$$1, constraint[0]); max(max$$1, max$$1, constraint[1]); } for (var i = 0, len$$1 = points.length; i < len$$1; i++) { var point = points[i]; if (isLoop) { prevPoint = points[i ? i - 1 : len$$1 - 1]; nextPoint = points[(i + 1) % len$$1]; } else { if (i === 0 || i === len$$1 - 1) { cps.push(clone$1(points[i])); continue; } else { prevPoint = points[i - 1]; nextPoint = points[i + 1]; } } sub(v, nextPoint, prevPoint); // use degree to scale the handle length scale(v, v, smooth); var d0 = distance(point, prevPoint); var d1 = distance(point, nextPoint); var sum = d0 + d1; if (sum !== 0) { d0 /= sum; d1 /= sum; } scale(v1, v, -d0); scale(v2, v, d1); var cp0 = add([], point, v1); var cp1 = add([], point, v2); if (constraint) { max(cp0, cp0, min$$1); min(cp0, cp0, max$$1); max(cp1, cp1, min$$1); min(cp1, cp1, max$$1); } cps.push(cp0); cps.push(cp1); } if (isLoop) { cps.push(cps.shift()); } return cps; }; function buildPath$1(ctx, shape, closePath) { var points = shape.points; var smooth = shape.smooth; if (points && points.length >= 2) { if (smooth && smooth !== 'spline') { var controlPoints = smoothBezier( points, smooth, closePath, shape.smoothConstraint ); ctx.moveTo(points[0][0], points[0][1]); var len = points.length; for (var i = 0; i < (closePath ? len : len - 1); i++) { var cp1 = controlPoints[i * 2]; var cp2 = controlPoints[i * 2 + 1]; var p = points[(i + 1) % len]; ctx.bezierCurveTo( cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1] ); } } else { if (smooth === 'spline') { points = smoothSpline(points, closePath); } ctx.moveTo(points[0][0], points[0][1]); for (var i = 1, l = points.length; i < l; i++) { ctx.lineTo(points[i][0], points[i][1]); } } closePath && ctx.closePath(); } } /** * 多边形 * @module zrender/shape/Polygon */ var Polygon = Path.extend({ type: 'polygon', shape: { points: null, smooth: false, smoothConstraint: null }, buildPath: function (ctx, shape) { buildPath$1(ctx, shape, true); } }); /** * @module zrender/graphic/shape/Polyline */ var Polyline = Path.extend({ type: 'polyline', shape: { points: null, smooth: false, smoothConstraint: null }, style: { stroke: '#000', fill: null }, buildPath: function (ctx, shape) { buildPath$1(ctx, shape, false); } }); /** * Sub-pixel optimize for canvas rendering, prevent from blur * when rendering a thin vertical/horizontal line. */ var round = Math.round; /** * Sub pixel optimize line for canvas * * @param {Object} outputShape The modification will be performed on `outputShape`. * `outputShape` and `inputShape` can be the same object. * `outputShape` object can be used repeatly, because all of * the `x1`, `x2`, `y1`, `y2` will be assigned in this method. * @param {Object} [inputShape] * @param {number} [inputShape.x1] * @param {number} [inputShape.y1] * @param {number} [inputShape.x2] * @param {number} [inputShape.y2] * @param {Object} [style] * @param {number} [style.lineWidth] */ function subPixelOptimizeLine$1(outputShape, inputShape, style) { var lineWidth = style && style.lineWidth; if (!inputShape || !lineWidth) { return; } var x1 = inputShape.x1; var x2 = inputShape.x2; var y1 = inputShape.y1; var y2 = inputShape.y2; if (round(x1 * 2) === round(x2 * 2)) { outputShape.x1 = outputShape.x2 = subPixelOptimize$1(x1, lineWidth, true); } else { outputShape.x1 = x1; outputShape.x2 = x2; } if (round(y1 * 2) === round(y2 * 2)) { outputShape.y1 = outputShape.y2 = subPixelOptimize$1(y1, lineWidth, true); } else { outputShape.y1 = y1; outputShape.y2 = y2; } } /** * Sub pixel optimize rect for canvas * * @param {Object} outputShape The modification will be performed on `outputShape`. * `outputShape` and `inputShape` can be the same object. * `outputShape` object can be used repeatly, because all of * the `x`, `y`, `width`, `height` will be assigned in this method. * @param {Object} [inputShape] * @param {number} [inputShape.x] * @param {number} [inputShape.y] * @param {number} [inputShape.width] * @param {number} [inputShape.height] * @param {Object} [style] * @param {number} [style.lineWidth] */ function subPixelOptimizeRect$1(outputShape, inputShape, style) { var lineWidth = style && style.lineWidth; if (!inputShape || !lineWidth) { return; } var originX = inputShape.x; var originY = inputShape.y; var originWidth = inputShape.width; var originHeight = inputShape.height; outputShape.x = subPixelOptimize$1(originX, lineWidth, true); outputShape.y = subPixelOptimize$1(originY, lineWidth, true); outputShape.width = Math.max( subPixelOptimize$1(originX + originWidth, lineWidth, false) - outputShape.x, originWidth === 0 ? 0 : 1 ); outputShape.height = Math.max( subPixelOptimize$1(originY + originHeight, lineWidth, false) - outputShape.y, originHeight === 0 ? 0 : 1 ); } /** * Sub pixel optimize for canvas * * @param {number} position Coordinate, such as x, y * @param {number} lineWidth Should be nonnegative integer. * @param {boolean=} positiveOrNegative Default false (negative). * @return {number} Optimized position. */ function subPixelOptimize$1(position, lineWidth, positiveOrNegative) { // Assure that (position + lineWidth / 2) is near integer edge, // otherwise line will be fuzzy in canvas. var doubledPosition = round(position * 2); return (doubledPosition + round(lineWidth)) % 2 === 0 ? doubledPosition / 2 : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2; } /** * 矩形 * @module zrender/graphic/shape/Rect */ // Avoid create repeatly. var subPixelOptimizeOutputShape = {}; var Rect = Path.extend({ type: 'rect', shape: { // 左上、右上、右下、左下角的半径依次为r1、r2、r3、r4 // r缩写为1 相当于 [1, 1, 1, 1] // r缩写为[1] 相当于 [1, 1, 1, 1] // r缩写为[1, 2] 相当于 [1, 2, 1, 2] // r缩写为[1, 2, 3] 相当于 [1, 2, 3, 2] r: 0, x: 0, y: 0, width: 0, height: 0 }, buildPath: function (ctx, shape) { var x; var y; var width; var height; if (this.subPixelOptimize) { subPixelOptimizeRect$1(subPixelOptimizeOutputShape, shape, this.style); x = subPixelOptimizeOutputShape.x; y = subPixelOptimizeOutputShape.y; width = subPixelOptimizeOutputShape.width; height = subPixelOptimizeOutputShape.height; subPixelOptimizeOutputShape.r = shape.r; shape = subPixelOptimizeOutputShape; } else { x = shape.x; y = shape.y; width = shape.width; height = shape.height; } if (!shape.r) { ctx.rect(x, y, width, height); } else { buildPath(ctx, shape); } ctx.closePath(); return; } }); /** * 直线 * @module zrender/graphic/shape/Line */ // Avoid create repeatly. var subPixelOptimizeOutputShape$1 = {}; var Line = Path.extend({ type: 'line', shape: { // Start point x1: 0, y1: 0, // End point x2: 0, y2: 0, percent: 1 }, style: { stroke: '#000', fill: null }, buildPath: function (ctx, shape) { var x1; var y1; var x2; var y2; if (this.subPixelOptimize) { subPixelOptimizeLine$1(subPixelOptimizeOutputShape$1, shape, this.style); x1 = subPixelOptimizeOutputShape$1.x1; y1 = subPixelOptimizeOutputShape$1.y1; x2 = subPixelOptimizeOutputShape$1.x2; y2 = subPixelOptimizeOutputShape$1.y2; } else { x1 = shape.x1; y1 = shape.y1; x2 = shape.x2; y2 = shape.y2; } var percent = shape.percent; if (percent === 0) { return; } ctx.moveTo(x1, y1); if (percent < 1) { x2 = x1 * (1 - percent) + x2 * percent; y2 = y1 * (1 - percent) + y2 * percent; } ctx.lineTo(x2, y2); }, /** * Get point at percent * @param {number} percent * @return {Array.} */ pointAt: function (p) { var shape = this.shape; return [ shape.x1 * (1 - p) + shape.x2 * p, shape.y1 * (1 - p) + shape.y2 * p ]; } }); /** * 贝塞尔曲线 * @module zrender/shape/BezierCurve */ var out = []; function someVectorAt(shape, t, isTangent) { var cpx2 = shape.cpx2; var cpy2 = shape.cpy2; if (cpx2 === null || cpy2 === null) { return [ (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t), (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t) ]; } else { return [ (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t), (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t) ]; } } var BezierCurve = Path.extend({ type: 'bezier-curve', shape: { x1: 0, y1: 0, x2: 0, y2: 0, cpx1: 0, cpy1: 0, // cpx2: 0, // cpy2: 0 // Curve show percent, for animating percent: 1 }, style: { stroke: '#000', fill: null }, buildPath: function (ctx, shape) { var x1 = shape.x1; var y1 = shape.y1; var x2 = shape.x2; var y2 = shape.y2; var cpx1 = shape.cpx1; var cpy1 = shape.cpy1; var cpx2 = shape.cpx2; var cpy2 = shape.cpy2; var percent = shape.percent; if (percent === 0) { return; } ctx.moveTo(x1, y1); if (cpx2 == null || cpy2 == null) { if (percent < 1) { quadraticSubdivide( x1, cpx1, x2, percent, out ); cpx1 = out[1]; x2 = out[2]; quadraticSubdivide( y1, cpy1, y2, percent, out ); cpy1 = out[1]; y2 = out[2]; } ctx.quadraticCurveTo( cpx1, cpy1, x2, y2 ); } else { if (percent < 1) { cubicSubdivide( x1, cpx1, cpx2, x2, percent, out ); cpx1 = out[1]; cpx2 = out[2]; x2 = out[3]; cubicSubdivide( y1, cpy1, cpy2, y2, percent, out ); cpy1 = out[1]; cpy2 = out[2]; y2 = out[3]; } ctx.bezierCurveTo( cpx1, cpy1, cpx2, cpy2, x2, y2 ); } }, /** * Get point at percent * @param {number} t * @return {Array.} */ pointAt: function (t) { return someVectorAt(this.shape, t, false); }, /** * Get tangent at percent * @param {number} t * @return {Array.} */ tangentAt: function (t) { var p = someVectorAt(this.shape, t, true); return normalize(p, p); } }); /** * 圆弧 * @module zrender/graphic/shape/Arc */ var Arc = Path.extend({ type: 'arc', shape: { cx: 0, cy: 0, r: 0, startAngle: 0, endAngle: Math.PI * 2, clockwise: true }, style: { stroke: '#000', fill: null }, buildPath: function (ctx, shape) { var x = shape.cx; var y = shape.cy; var r = Math.max(shape.r, 0); var startAngle = shape.startAngle; var endAngle = shape.endAngle; var clockwise = shape.clockwise; var unitX = Math.cos(startAngle); var unitY = Math.sin(startAngle); ctx.moveTo(unitX * r + x, unitY * r + y); ctx.arc(x, y, r, startAngle, endAngle, !clockwise); } }); // CompoundPath to improve performance var CompoundPath = Path.extend({ type: 'compound', shape: { paths: null }, _updatePathDirty: function () { var dirtyPath = this.__dirtyPath; var paths = this.shape.paths; for (var i = 0; i < paths.length; i++) { // Mark as dirty if any subpath is dirty dirtyPath = dirtyPath || paths[i].__dirtyPath; } this.__dirtyPath = dirtyPath; this.__dirty = this.__dirty || dirtyPath; }, beforeBrush: function () { this._updatePathDirty(); var paths = this.shape.paths || []; var scale = this.getGlobalScale(); // Update path scale for (var i = 0; i < paths.length; i++) { if (!paths[i].path) { paths[i].createPathProxy(); } paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold); } }, buildPath: function (ctx, shape) { var paths = shape.paths || []; for (var i = 0; i < paths.length; i++) { paths[i].buildPath(ctx, paths[i].shape, true); } }, afterBrush: function () { var paths = this.shape.paths || []; for (var i = 0; i < paths.length; i++) { paths[i].__dirtyPath = false; } }, getBoundingRect: function () { this._updatePathDirty(); return Path.prototype.getBoundingRect.call(this); } }); /** * @param {Array.} colorStops */ var Gradient = function (colorStops) { this.colorStops = colorStops || []; }; Gradient.prototype = { constructor: Gradient, addColorStop: function (offset, color) { this.colorStops.push({ offset: offset, color: color }); } }; /** * x, y, x2, y2 are all percent from 0 to 1 * @param {number} [x=0] * @param {number} [y=0] * @param {number} [x2=1] * @param {number} [y2=0] * @param {Array.} colorStops * @param {boolean} [globalCoord=false] */ var LinearGradient = function (x, y, x2, y2, colorStops, globalCoord) { // Should do nothing more in this constructor. Because gradient can be // declard by `color: {type: 'linear', colorStops: ...}`, where // this constructor will not be called. this.x = x == null ? 0 : x; this.y = y == null ? 0 : y; this.x2 = x2 == null ? 1 : x2; this.y2 = y2 == null ? 0 : y2; // Can be cloned this.type = 'linear'; // If use global coord this.global = globalCoord || false; Gradient.call(this, colorStops); }; LinearGradient.prototype = { constructor: LinearGradient }; inherits(LinearGradient, Gradient); /** * x, y, r are all percent from 0 to 1 * @param {number} [x=0.5] * @param {number} [y=0.5] * @param {number} [r=0.5] * @param {Array.} [colorStops] * @param {boolean} [globalCoord=false] */ var RadialGradient = function (x, y, r, colorStops, globalCoord) { // Should do nothing more in this constructor. Because gradient can be // declard by `color: {type: 'radial', colorStops: ...}`, where // this constructor will not be called. this.x = x == null ? 0.5 : x; this.y = y == null ? 0.5 : y; this.r = r == null ? 0.5 : r; // Can be cloned this.type = 'radial'; // If use global coord this.global = globalCoord || false; Gradient.call(this, colorStops); }; RadialGradient.prototype = { constructor: RadialGradient }; inherits(RadialGradient, Gradient); /** * Displayable for incremental rendering. It will be rendered in a separate layer * IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables` * addDisplayables will render the added displayables incremetally. * * It use a not clearFlag to tell the painter don't clear the layer if it's the first element. */ // TODO Style override ? function IncrementalDisplayble(opts) { Displayable.call(this, opts); this._displayables = []; this._temporaryDisplayables = []; this._cursor = 0; this.notClear = true; } IncrementalDisplayble.prototype.incremental = true; IncrementalDisplayble.prototype.clearDisplaybles = function () { this._displayables = []; this._temporaryDisplayables = []; this._cursor = 0; this.dirty(); this.notClear = false; }; IncrementalDisplayble.prototype.addDisplayable = function (displayable, notPersistent) { if (notPersistent) { this._temporaryDisplayables.push(displayable); } else { this._displayables.push(displayable); } this.dirty(); }; IncrementalDisplayble.prototype.addDisplayables = function (displayables, notPersistent) { notPersistent = notPersistent || false; for (var i = 0; i < displayables.length; i++) { this.addDisplayable(displayables[i], notPersistent); } }; IncrementalDisplayble.prototype.eachPendingDisplayable = function (cb) { for (var i = this._cursor; i < this._displayables.length; i++) { cb && cb(this._displayables[i]); } for (var i = 0; i < this._temporaryDisplayables.length; i++) { cb && cb(this._temporaryDisplayables[i]); } }; IncrementalDisplayble.prototype.update = function () { this.updateTransform(); for (var i = this._cursor; i < this._displayables.length; i++) { var displayable = this._displayables[i]; // PENDING displayable.parent = this; displayable.update(); displayable.parent = null; } for (var i = 0; i < this._temporaryDisplayables.length; i++) { var displayable = this._temporaryDisplayables[i]; // PENDING displayable.parent = this; displayable.update(); displayable.parent = null; } }; IncrementalDisplayble.prototype.brush = function (ctx, prevEl) { // Render persistant displayables. for (var i = this._cursor; i < this._displayables.length; i++) { var displayable = this._displayables[i]; displayable.beforeBrush && displayable.beforeBrush(ctx); displayable.brush(ctx, i === this._cursor ? null : this._displayables[i - 1]); displayable.afterBrush && displayable.afterBrush(ctx); } this._cursor = i; // Render temporary displayables. for (var i = 0; i < this._temporaryDisplayables.length; i++) { var displayable = this._temporaryDisplayables[i]; displayable.beforeBrush && displayable.beforeBrush(ctx); displayable.brush(ctx, i === 0 ? null : this._temporaryDisplayables[i - 1]); displayable.afterBrush && displayable.afterBrush(ctx); } this._temporaryDisplayables = []; this.notClear = true; }; var m = []; IncrementalDisplayble.prototype.getBoundingRect = function () { if (!this._rect) { var rect = new BoundingRect(Infinity, Infinity, -Infinity, -Infinity); for (var i = 0; i < this._displayables.length; i++) { var displayable = this._displayables[i]; var childRect = displayable.getBoundingRect().clone(); if (displayable.needLocalTransform()) { childRect.applyTransform(displayable.getLocalTransform(m)); } rect.union(childRect); } this._rect = rect; } return this._rect; }; IncrementalDisplayble.prototype.contain = function (x, y) { var localPos = this.transformCoordToLocal(x, y); var rect = this.getBoundingRect(); if (rect.contain(localPos[0], localPos[1])) { for (var i = 0; i < this._displayables.length; i++) { var displayable = this._displayables[i]; if (displayable.contain(x, y)) { return true; } } } return false; }; inherits(IncrementalDisplayble, Displayable); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mathMax$1 = Math.max; var mathMin$1 = Math.min; var EMPTY_OBJ = {}; var Z2_EMPHASIS_LIFT = 1; // key: label model property nane, value: style property name. var CACHED_LABEL_STYLE_PROPERTIES = { color: 'textFill', textBorderColor: 'textStroke', textBorderWidth: 'textStrokeWidth' }; var EMPHASIS = 'emphasis'; var NORMAL = 'normal'; // Reserve 0 as default. var _highlightNextDigit = 1; var _highlightKeyMap = {}; /** * Extend shape with parameters */ function extendShape(opts) { return Path.extend(opts); } /** * Extend path */ function extendPath(pathData, opts) { return extendFromString(pathData, opts); } /** * Create a path element from path data string * @param {string} pathData * @param {Object} opts * @param {module:zrender/core/BoundingRect} rect * @param {string} [layout=cover] 'center' or 'cover' */ function makePath(pathData, opts, rect, layout) { var path = createFromString(pathData, opts); if (rect) { if (layout === 'center') { rect = centerGraphic(rect, path.getBoundingRect()); } resizePath(path, rect); } return path; } /** * Create a image element from image url * @param {string} imageUrl image url * @param {Object} opts options * @param {module:zrender/core/BoundingRect} rect constrain rect * @param {string} [layout=cover] 'center' or 'cover' */ function makeImage(imageUrl, rect, layout) { var path = new ZImage({ style: { image: imageUrl, x: rect.x, y: rect.y, width: rect.width, height: rect.height }, onload: function (img) { if (layout === 'center') { var boundingRect = { width: img.width, height: img.height }; path.setStyle(centerGraphic(rect, boundingRect)); } } }); return path; } /** * Get position of centered element in bounding box. * * @param {Object} rect element local bounding box * @param {Object} boundingRect constraint bounding box * @return {Object} element position containing x, y, width, and height */ function centerGraphic(rect, boundingRect) { // Set rect to center, keep width / height ratio. var aspect = boundingRect.width / boundingRect.height; var width = rect.height * aspect; var height; if (width <= rect.width) { height = rect.height; } else { width = rect.width; height = width / aspect; } var cx = rect.x + rect.width / 2; var cy = rect.y + rect.height / 2; return { x: cx - width / 2, y: cy - height / 2, width: width, height: height }; } var mergePath = mergePath$1; /** * Resize a path to fit the rect * @param {module:zrender/graphic/Path} path * @param {Object} rect */ function resizePath(path, rect) { if (!path.applyTransform) { return; } var pathRect = path.getBoundingRect(); var m = pathRect.calculateTransform(rect); path.applyTransform(m); } /** * Sub pixel optimize line for canvas * * @param {Object} param * @param {Object} [param.shape] * @param {number} [param.shape.x1] * @param {number} [param.shape.y1] * @param {number} [param.shape.x2] * @param {number} [param.shape.y2] * @param {Object} [param.style] * @param {number} [param.style.lineWidth] * @return {Object} Modified param */ function subPixelOptimizeLine(param) { subPixelOptimizeLine$1(param.shape, param.shape, param.style); return param; } /** * Sub pixel optimize rect for canvas * * @param {Object} param * @param {Object} [param.shape] * @param {number} [param.shape.x] * @param {number} [param.shape.y] * @param {number} [param.shape.width] * @param {number} [param.shape.height] * @param {Object} [param.style] * @param {number} [param.style.lineWidth] * @return {Object} Modified param */ function subPixelOptimizeRect(param) { subPixelOptimizeRect$1(param.shape, param.shape, param.style); return param; } /** * Sub pixel optimize for canvas * * @param {number} position Coordinate, such as x, y * @param {number} lineWidth Should be nonnegative integer. * @param {boolean=} positiveOrNegative Default false (negative). * @return {number} Optimized position. */ var subPixelOptimize = subPixelOptimize$1; function hasFillOrStroke(fillOrStroke) { return fillOrStroke != null && fillOrStroke !== 'none'; } // Most lifted color are duplicated. var liftedColorMap = createHashMap(); var liftedColorCount = 0; function liftColor(color) { if (typeof color !== 'string') { return color; } var liftedColor = liftedColorMap.get(color); if (!liftedColor) { liftedColor = lift(color, -0.1); if (liftedColorCount < 10000) { liftedColorMap.set(color, liftedColor); liftedColorCount++; } } return liftedColor; } function cacheElementStl(el) { if (!el.__hoverStlDirty) { return; } el.__hoverStlDirty = false; var hoverStyle = el.__hoverStl; if (!hoverStyle) { el.__cachedNormalStl = el.__cachedNormalZ2 = null; return; } var normalStyle = el.__cachedNormalStl = {}; el.__cachedNormalZ2 = el.z2; var elStyle = el.style; for (var name in hoverStyle) { // See comment in `singleEnterEmphasis`. if (hoverStyle[name] != null) { normalStyle[name] = elStyle[name]; } } // Always cache fill and stroke to normalStyle for lifting color. normalStyle.fill = elStyle.fill; normalStyle.stroke = elStyle.stroke; } function singleEnterEmphasis(el) { var hoverStl = el.__hoverStl; if (!hoverStl || el.__highlighted) { return; } var useHoverLayer = el.useHoverLayer; el.__highlighted = useHoverLayer ? 'layer' : 'plain'; var zr = el.__zr; if (el.isGroup || (!zr && useHoverLayer)) { return; } var elTarget = el; var targetStyle = el.style; if (useHoverLayer) { elTarget = zr.addHover(el); targetStyle = elTarget.style; } rollbackDefaultTextStyle(targetStyle); if (!useHoverLayer) { cacheElementStl(elTarget); } // styles can be: // { // label: { // show: false, // position: 'outside', // fontSize: 18 // }, // emphasis: { // label: { // show: true // } // } // }, // where properties of `emphasis` may not appear in `normal`. We previously use // module:echarts/util/model#defaultEmphasis to merge `normal` to `emphasis`. // But consider rich text and setOption in merge mode, it is impossible to cover // all properties in merge. So we use merge mode when setting style here. // But we choose the merge strategy that only properties that is not `null/undefined`. // Because when making a textStyle (espacially rich text), it is not easy to distinguish // `hasOwnProperty` and `null/undefined` in code, so we trade them as the same for simplicity. // But this strategy brings a trouble that `null/undefined` can not be used to remove // style any more in `emphasis`. Users can both set properties directly on normal and // emphasis to avoid this issue, or we might support `'none'` for this case if required. targetStyle.extendFrom(hoverStl); setDefaultHoverFillStroke(targetStyle, hoverStl, 'fill'); setDefaultHoverFillStroke(targetStyle, hoverStl, 'stroke'); applyDefaultTextStyle(targetStyle); if (!useHoverLayer) { el.dirty(false); el.z2 += Z2_EMPHASIS_LIFT; } } function setDefaultHoverFillStroke(targetStyle, hoverStyle, prop) { if (!hasFillOrStroke(hoverStyle[prop]) && hasFillOrStroke(targetStyle[prop])) { targetStyle[prop] = liftColor(targetStyle[prop]); } } function singleEnterNormal(el) { var highlighted = el.__highlighted; if (!highlighted) { return; } el.__highlighted = false; if (el.isGroup) { return; } if (highlighted === 'layer') { el.__zr && el.__zr.removeHover(el); } else { var style = el.style; var normalStl = el.__cachedNormalStl; if (normalStl) { rollbackDefaultTextStyle(style); el.setStyle(normalStl); applyDefaultTextStyle(style); } // `__cachedNormalZ2` will not be reset if calling `setElementHoverStyle` // when `el` is on emphasis state. So here by comparing with 1, we try // hard to make the bug case rare. var normalZ2 = el.__cachedNormalZ2; if (normalZ2 != null && el.z2 - normalZ2 === Z2_EMPHASIS_LIFT) { el.z2 = normalZ2; } } } function traverseUpdate(el, updater, commonParam) { // If root is group, also enter updater for `highDownOnUpdate`. var fromState = NORMAL; var toState = NORMAL; var trigger; // See the rule of `highDownOnUpdate` on `graphic.setAsHighDownDispatcher`. el.__highlighted && (fromState = EMPHASIS, trigger = true); updater(el, commonParam); el.__highlighted && (toState = EMPHASIS, trigger = true); el.isGroup && el.traverse(function (child) { !child.isGroup && updater(child, commonParam); }); trigger && el.__highDownOnUpdate && el.__highDownOnUpdate(fromState, toState); } /** * Set hover style (namely "emphasis style") of element, based on the current * style of the given `el`. * This method should be called after all of the normal styles have been adopted * to the `el`. See the reason on `setHoverStyle`. * * @param {module:zrender/Element} el Should not be `zrender/container/Group`. * @param {Object} [el.hoverStyle] Can be set on el or its descendants, * e.g., `el.hoverStyle = ...; graphic.setHoverStyle(el); `. * Often used when item group has a label element and it's hoverStyle is different. * @param {Object|boolean} [hoverStl] The specified hover style. * If set as `false`, disable the hover style. * Similarly, The `el.hoverStyle` can alse be set * as `false` to disable the hover style. * Otherwise, use the default hover style if not provided. */ function setElementHoverStyle(el, hoverStl) { // For performance consideration, it might be better to make the "hover style" only the // difference properties from the "normal style", but not a entire copy of all styles. hoverStl = el.__hoverStl = hoverStl !== false && (el.hoverStyle || hoverStl || {}); el.__hoverStlDirty = true; // FIXME // It is not completely right to save "normal"/"emphasis" flag on elements. // It probably should be saved on `data` of series. Consider the cases: // (1) A highlighted elements are moved out of the view port and re-enter // again by dataZoom. // (2) call `setOption` and replace elements totally when they are highlighted. if (el.__highlighted) { // Consider the case: // The styles of a highlighted `el` is being updated. The new "emphasis style" // should be adapted to the `el`. Notice here new "normal styles" should have // been set outside and the cached "normal style" is out of date. el.__cachedNormalStl = null; // Do not clear `__cachedNormalZ2` here, because setting `z2` is not a constraint // of this method. In most cases, `z2` is not set and hover style should be able // to rollback. Of course, that would bring bug, but only in a rare case, see // `doSingleLeaveHover` for details. singleEnterNormal(el); singleEnterEmphasis(el); } } function onElementMouseOver(e) { !shouldSilent(this, e) // "emphasis" event highlight has higher priority than mouse highlight. && !this.__highByOuter && traverseUpdate(this, singleEnterEmphasis); } function onElementMouseOut(e) { !shouldSilent(this, e) // "emphasis" event highlight has higher priority than mouse highlight. && !this.__highByOuter && traverseUpdate(this, singleEnterNormal); } function onElementEmphasisEvent(highlightDigit) { this.__highByOuter |= 1 << (highlightDigit || 0); traverseUpdate(this, singleEnterEmphasis); } function onElementNormalEvent(highlightDigit) { !(this.__highByOuter &= ~(1 << (highlightDigit || 0))) && traverseUpdate(this, singleEnterNormal); } function shouldSilent(el, e) { return el.__highDownSilentOnTouch && e.zrByTouch; } /** * Set hover style (namely "emphasis style") of element, * based on the current style of the given `el`. * * (1) * **CONSTRAINTS** for this method: * This method MUST be called after all of the normal styles having been adopted * to the `el`. * The input `hoverStyle` (that is, "emphasis style") MUST be the subset of the * "normal style" having been set to the el. * `color` MUST be one of the "normal styles" (because color might be lifted as * a default hover style). * * The reason: this method treat the current style of the `el` as the "normal style" * and cache them when enter/update the "emphasis style". Consider the case: the `el` * is in "emphasis" state and `setOption`/`dispatchAction` trigger the style updating * logic, where the el should shift from the original emphasis style to the new * "emphasis style" and should be able to "downplay" back to the new "normal style". * * Indeed, it is error-prone to make a interface has so many constraints, but I have * not found a better solution yet to fit the backward compatibility, performance and * the current programming style. * * (2) * Call the method for a "root" element once. Do not call it for each descendants. * If the descendants elemenets of a group has itself hover style different from the * root group, we can simply mount the style on `el.hoverStyle` for them, but should * not call this method for them. * * (3) These input parameters can be set directly on `el`: * * @param {module:zrender/Element} el * @param {Object} [el.hoverStyle] See `graphic.setElementHoverStyle`. * @param {boolean} [el.highDownSilentOnTouch=false] See `graphic.setAsHighDownDispatcher`. * @param {Function} [el.highDownOnUpdate] See `graphic.setAsHighDownDispatcher`. * @param {Object|boolean} [hoverStyle] See `graphic.setElementHoverStyle`. */ function setHoverStyle(el, hoverStyle) { setAsHighDownDispatcher(el, true); traverseUpdate(el, setElementHoverStyle, hoverStyle); } /** * @param {module:zrender/Element} el * @param {Function} [el.highDownOnUpdate] Called when state updated. * Since `setHoverStyle` has the constraint that it must be called after * all of the normal style updated, `highDownOnUpdate` is not needed to * trigger if both `fromState` and `toState` is 'normal', and needed to * trigger if both `fromState` and `toState` is 'emphasis', which enables * to sync outside style settings to "emphasis" state. * @this {string} This dispatcher `el`. * @param {string} fromState Can be "normal" or "emphasis". * `fromState` might equal to `toState`, * for example, when this method is called when `el` is * on "emphasis" state. * @param {string} toState Can be "normal" or "emphasis". * * FIXME * CAUTION: Do not expose `highDownOnUpdate` outside echarts. * Because it is not a complete solution. The update * listener should not have been mount in element, * and the normal/emphasis state should not have * mantained on elements. * * @param {boolean} [el.highDownSilentOnTouch=false] * In touch device, mouseover event will be trigger on touchstart event * (see module:zrender/dom/HandlerProxy). By this mechanism, we can * conveniently use hoverStyle when tap on touch screen without additional * code for compatibility. * But if the chart/component has select feature, which usually also use * hoverStyle, there might be conflict between 'select-highlight' and * 'hover-highlight' especially when roam is enabled (see geo for example). * In this case, `highDownSilentOnTouch` should be used to disable * hover-highlight on touch device. * @param {boolean} [asDispatcher=true] If `false`, do not set as "highDownDispatcher". */ function setAsHighDownDispatcher(el, asDispatcher) { var disable = asDispatcher === false; // Make `highDownSilentOnTouch` and `highDownOnUpdate` only work after // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly. el.__highDownSilentOnTouch = el.highDownSilentOnTouch; el.__highDownOnUpdate = el.highDownOnUpdate; // Simple optimize, since this method might be // called for each elements of a group in some cases. if (!disable || el.__highDownDispatcher) { var method = disable ? 'off' : 'on'; // Duplicated function will be auto-ignored, see Eventful.js. el[method]('mouseover', onElementMouseOver)[method]('mouseout', onElementMouseOut); // Emphasis, normal can be triggered manually by API or other components like hover link. el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent); // Also keep previous record. el.__highByOuter = el.__highByOuter || 0; el.__highDownDispatcher = !disable; } } /** * @param {module:zrender/src/Element} el * @return {boolean} */ function isHighDownDispatcher(el) { return !!(el && el.__highDownDispatcher); } /** * Support hightlight/downplay record on each elements. * For the case: hover highlight/downplay (legend, visualMap, ...) and * user triggerred hightlight/downplay should not conflict. * Only all of the highlightDigit cleared, return to normal. * @param {string} highlightKey * @return {number} highlightDigit */ function getHighlightDigit(highlightKey) { var highlightDigit = _highlightKeyMap[highlightKey]; if (highlightDigit == null && _highlightNextDigit <= 32) { highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++; } return highlightDigit; } /** * See more info in `setTextStyleCommon`. * @param {Object|module:zrender/graphic/Style} normalStyle * @param {Object} emphasisStyle * @param {module:echarts/model/Model} normalModel * @param {module:echarts/model/Model} emphasisModel * @param {Object} opt Check `opt` of `setTextStyleCommon` to find other props. * @param {string|Function} [opt.defaultText] * @param {module:echarts/model/Model} [opt.labelFetcher] Fetch text by * `opt.labelFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)` * @param {module:echarts/model/Model} [opt.labelDataIndex] Fetch text by * `opt.textFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)` * @param {module:echarts/model/Model} [opt.labelDimIndex] Fetch text by * `opt.textFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)` * @param {Object} [normalSpecified] * @param {Object} [emphasisSpecified] */ function setLabelStyle( normalStyle, emphasisStyle, normalModel, emphasisModel, opt, normalSpecified, emphasisSpecified ) { opt = opt || EMPTY_OBJ; var labelFetcher = opt.labelFetcher; var labelDataIndex = opt.labelDataIndex; var labelDimIndex = opt.labelDimIndex; // This scenario, `label.normal.show = true; label.emphasis.show = false`, // is not supported util someone requests. var showNormal = normalModel.getShallow('show'); var showEmphasis = emphasisModel.getShallow('show'); // Consider performance, only fetch label when necessary. // If `normal.show` is `false` and `emphasis.show` is `true` and `emphasis.formatter` is not set, // label should be displayed, where text is fetched by `normal.formatter` or `opt.defaultText`. var baseText; if (showNormal || showEmphasis) { if (labelFetcher) { baseText = labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex); } if (baseText == null) { baseText = isFunction$1(opt.defaultText) ? opt.defaultText(labelDataIndex, opt) : opt.defaultText; } } var normalStyleText = showNormal ? baseText : null; var emphasisStyleText = showEmphasis ? retrieve2( labelFetcher ? labelFetcher.getFormattedLabel(labelDataIndex, 'emphasis', null, labelDimIndex) : null, baseText ) : null; // Optimize: If style.text is null, text will not be drawn. if (normalStyleText != null || emphasisStyleText != null) { // Always set `textStyle` even if `normalStyle.text` is null, because default // values have to be set on `normalStyle`. // If we set default values on `emphasisStyle`, consider case: // Firstly, `setOption(... label: {normal: {text: null}, emphasis: {show: true}} ...);` // Secondly, `setOption(... label: {noraml: {show: true, text: 'abc', color: 'red'} ...);` // Then the 'red' will not work on emphasis. setTextStyle(normalStyle, normalModel, normalSpecified, opt); setTextStyle(emphasisStyle, emphasisModel, emphasisSpecified, opt, true); } normalStyle.text = normalStyleText; emphasisStyle.text = emphasisStyleText; } /** * Modify label style manually. * Only works after `setLabelStyle` and `setElementHoverStyle` called. * * @param {module:zrender/src/Element} el * @param {Object} [normalStyleProps] optional * @param {Object} [emphasisStyleProps] optional */ function modifyLabelStyle(el, normalStyleProps, emphasisStyleProps) { var elStyle = el.style; if (normalStyleProps) { rollbackDefaultTextStyle(elStyle); el.setStyle(normalStyleProps); applyDefaultTextStyle(elStyle); } elStyle = el.__hoverStl; if (emphasisStyleProps && elStyle) { rollbackDefaultTextStyle(elStyle); extend(elStyle, emphasisStyleProps); applyDefaultTextStyle(elStyle); } } /** * Set basic textStyle properties. * See more info in `setTextStyleCommon`. * @param {Object|module:zrender/graphic/Style} textStyle * @param {module:echarts/model/Model} model * @param {Object} [specifiedTextStyle] Can be overrided by settings in model. * @param {Object} [opt] See `opt` of `setTextStyleCommon`. * @param {boolean} [isEmphasis] */ function setTextStyle( textStyle, textStyleModel, specifiedTextStyle, opt, isEmphasis ) { setTextStyleCommon(textStyle, textStyleModel, opt, isEmphasis); specifiedTextStyle && extend(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false); return textStyle; } /** * Set text option in the style. * See more info in `setTextStyleCommon`. * @deprecated * @param {Object} textStyle * @param {module:echarts/model/Model} labelModel * @param {string|boolean} defaultColor Default text color. * If set as false, it will be processed as a emphasis style. */ function setText(textStyle, labelModel, defaultColor) { var opt = {isRectText: true}; var isEmphasis; if (defaultColor === false) { isEmphasis = true; } else { // Support setting color as 'auto' to get visual color. opt.autoColor = defaultColor; } setTextStyleCommon(textStyle, labelModel, opt, isEmphasis); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false); } /** * The uniform entry of set text style, that is, retrieve style definitions * from `model` and set to `textStyle` object. * * Never in merge mode, but in overwrite mode, that is, all of the text style * properties will be set. (Consider the states of normal and emphasis and * default value can be adopted, merge would make the logic too complicated * to manage.) * * The `textStyle` object can either be a plain object or an instance of * `zrender/src/graphic/Style`, and either be the style of normal or emphasis. * After this mothod called, the `textStyle` object can then be used in * `el.setStyle(textStyle)` or `el.hoverStyle = textStyle`. * * Default value will be adopted and `insideRollbackOpt` will be created. * See `applyDefaultTextStyle` `rollbackDefaultTextStyle` for more details. * * opt: { * disableBox: boolean, Whether diable drawing box of block (outer most). * isRectText: boolean, * autoColor: string, specify a color when color is 'auto', * for textFill, textStroke, textBackgroundColor, and textBorderColor. * If autoColor specified, it is used as default textFill. * useInsideStyle: * `true`: Use inside style (textFill, textStroke, textStrokeWidth) * if `textFill` is not specified. * `false`: Do not use inside style. * `null/undefined`: use inside style if `isRectText` is true and * `textFill` is not specified and textPosition contains `'inside'`. * forceRich: boolean * } */ function setTextStyleCommon(textStyle, textStyleModel, opt, isEmphasis) { // Consider there will be abnormal when merge hover style to normal style if given default value. opt = opt || EMPTY_OBJ; if (opt.isRectText) { var textPosition = textStyleModel.getShallow('position') || (isEmphasis ? null : 'inside'); // 'outside' is not a valid zr textPostion value, but used // in bar series, and magric type should be considered. textPosition === 'outside' && (textPosition = 'top'); textStyle.textPosition = textPosition; textStyle.textOffset = textStyleModel.getShallow('offset'); var labelRotate = textStyleModel.getShallow('rotate'); labelRotate != null && (labelRotate *= Math.PI / 180); textStyle.textRotation = labelRotate; textStyle.textDistance = retrieve2( textStyleModel.getShallow('distance'), isEmphasis ? null : 5 ); } var ecModel = textStyleModel.ecModel; var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case: // { // data: [{ // value: 12, // label: { // rich: { // // no 'a' here but using parent 'a'. // } // } // }], // rich: { // a: { ... } // } // } var richItemNames = getRichItemNames(textStyleModel); var richResult; if (richItemNames) { richResult = {}; for (var name in richItemNames) { if (richItemNames.hasOwnProperty(name)) { // Cascade is supported in rich. var richTextStyle = textStyleModel.getModel(['rich', name]); // In rich, never `disableBox`. // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`, // the default color `'blue'` will not be adopted if no color declared in `rich`. // That might confuses users. So probably we should put `textStyleModel` as the // root ancestor of the `richTextStyle`. But that would be a break change. setTokenTextStyle(richResult[name] = {}, richTextStyle, globalTextStyle, opt, isEmphasis); } } } textStyle.rich = richResult; setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, true); if (opt.forceRich && !opt.textStyle) { opt.textStyle = {}; } return textStyle; } // Consider case: // { // data: [{ // value: 12, // label: { // rich: { // // no 'a' here but using parent 'a'. // } // } // }], // rich: { // a: { ... } // } // } function getRichItemNames(textStyleModel) { // Use object to remove duplicated names. var richItemNameMap; while (textStyleModel && textStyleModel !== textStyleModel.ecModel) { var rich = (textStyleModel.option || EMPTY_OBJ).rich; if (rich) { richItemNameMap = richItemNameMap || {}; for (var name in rich) { if (rich.hasOwnProperty(name)) { richItemNameMap[name] = 1; } } } textStyleModel = textStyleModel.parentModel; } return richItemNameMap; } function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, isBlock) { // In merge mode, default value should not be given. globalTextStyle = !isEmphasis && globalTextStyle || EMPTY_OBJ; textStyle.textFill = getAutoColor(textStyleModel.getShallow('color'), opt) || globalTextStyle.color; textStyle.textStroke = getAutoColor(textStyleModel.getShallow('textBorderColor'), opt) || globalTextStyle.textBorderColor; textStyle.textStrokeWidth = retrieve2( textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth ); if (!isEmphasis) { if (isBlock) { textStyle.insideRollbackOpt = opt; applyDefaultTextStyle(textStyle); } // Set default finally. if (textStyle.textFill == null) { textStyle.textFill = opt.autoColor; } } // Do not use `getFont` here, because merge should be supported, where // part of these properties may be changed in emphasis style, and the // others should remain their original value got from normal style. textStyle.fontStyle = textStyleModel.getShallow('fontStyle') || globalTextStyle.fontStyle; textStyle.fontWeight = textStyleModel.getShallow('fontWeight') || globalTextStyle.fontWeight; textStyle.fontSize = textStyleModel.getShallow('fontSize') || globalTextStyle.fontSize; textStyle.fontFamily = textStyleModel.getShallow('fontFamily') || globalTextStyle.fontFamily; textStyle.textAlign = textStyleModel.getShallow('align'); textStyle.textVerticalAlign = textStyleModel.getShallow('verticalAlign') || textStyleModel.getShallow('baseline'); textStyle.textLineHeight = textStyleModel.getShallow('lineHeight'); textStyle.textWidth = textStyleModel.getShallow('width'); textStyle.textHeight = textStyleModel.getShallow('height'); textStyle.textTag = textStyleModel.getShallow('tag'); if (!isBlock || !opt.disableBox) { textStyle.textBackgroundColor = getAutoColor(textStyleModel.getShallow('backgroundColor'), opt); textStyle.textPadding = textStyleModel.getShallow('padding'); textStyle.textBorderColor = getAutoColor(textStyleModel.getShallow('borderColor'), opt); textStyle.textBorderWidth = textStyleModel.getShallow('borderWidth'); textStyle.textBorderRadius = textStyleModel.getShallow('borderRadius'); textStyle.textBoxShadowColor = textStyleModel.getShallow('shadowColor'); textStyle.textBoxShadowBlur = textStyleModel.getShallow('shadowBlur'); textStyle.textBoxShadowOffsetX = textStyleModel.getShallow('shadowOffsetX'); textStyle.textBoxShadowOffsetY = textStyleModel.getShallow('shadowOffsetY'); } textStyle.textShadowColor = textStyleModel.getShallow('textShadowColor') || globalTextStyle.textShadowColor; textStyle.textShadowBlur = textStyleModel.getShallow('textShadowBlur') || globalTextStyle.textShadowBlur; textStyle.textShadowOffsetX = textStyleModel.getShallow('textShadowOffsetX') || globalTextStyle.textShadowOffsetX; textStyle.textShadowOffsetY = textStyleModel.getShallow('textShadowOffsetY') || globalTextStyle.textShadowOffsetY; } function getAutoColor(color, opt) { return color !== 'auto' ? color : (opt && opt.autoColor) ? opt.autoColor : null; } /** * Give some default value to the input `textStyle` object, based on the current settings * in this `textStyle` object. * * The Scenario: * when text position is `inside` and `textFill` is not specified, we show * text border by default for better view. But it should be considered that text position * might be changed when hovering or being emphasis, where the `insideRollback` is used to * restore the style. * * Usage (& NOTICE): * When a style object (eithor plain object or instance of `zrender/src/graphic/Style`) is * about to be modified on its text related properties, `rollbackDefaultTextStyle` should * be called before the modification and `applyDefaultTextStyle` should be called after that. * (For the case that all of the text related properties is reset, like `setTextStyleCommon` * does, `rollbackDefaultTextStyle` is not needed to be called). */ function applyDefaultTextStyle(textStyle) { var textPosition = textStyle.textPosition; var opt = textStyle.insideRollbackOpt; var insideRollback; if (opt && textStyle.textFill == null) { var autoColor = opt.autoColor; var isRectText = opt.isRectText; var useInsideStyle = opt.useInsideStyle; var useInsideStyleCache = useInsideStyle !== false && (useInsideStyle === true || (isRectText && textPosition // textPosition can be [10, 30] && typeof textPosition === 'string' && textPosition.indexOf('inside') >= 0 ) ); var useAutoColorCache = !useInsideStyleCache && autoColor != null; // All of the props declared in `CACHED_LABEL_STYLE_PROPERTIES` are to be cached. if (useInsideStyleCache || useAutoColorCache) { insideRollback = { textFill: textStyle.textFill, textStroke: textStyle.textStroke, textStrokeWidth: textStyle.textStrokeWidth }; } if (useInsideStyleCache) { textStyle.textFill = '#fff'; // Consider text with #fff overflow its container. if (textStyle.textStroke == null) { textStyle.textStroke = autoColor; textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2); } } if (useAutoColorCache) { textStyle.textFill = autoColor; } } // Always set `insideRollback`, so that the previous one can be cleared. textStyle.insideRollback = insideRollback; } /** * Consider the case: in a scatter, * label: { * normal: {position: 'inside'}, * emphasis: {position: 'top'} * } * In the normal state, the `textFill` will be set as '#fff' for pretty view (see * `applyDefaultTextStyle`), but when switching to emphasis state, the `textFill` * should be retured to 'autoColor', but not keep '#fff'. */ function rollbackDefaultTextStyle(style) { var insideRollback = style.insideRollback; if (insideRollback) { // Reset all of the props in `CACHED_LABEL_STYLE_PROPERTIES`. style.textFill = insideRollback.textFill; style.textStroke = insideRollback.textStroke; style.textStrokeWidth = insideRollback.textStrokeWidth; style.insideRollback = null; } } function getFont(opt, ecModel) { // ecModel or default text style model. var gTextStyleModel = ecModel || ecModel.getModel('textStyle'); return trim([ // FIXME in node-canvas fontWeight is before fontStyle opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '', opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '', (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px', opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif' ].join(' ')); } function animateOrSetProps(isUpdate, el, props, animatableModel, dataIndex, cb) { if (typeof dataIndex === 'function') { cb = dataIndex; dataIndex = null; } // Do not check 'animation' property directly here. Consider this case: // animation model is an `itemModel`, whose does not have `isAnimationEnabled` // but its parent model (`seriesModel`) does. var animationEnabled = animatableModel && animatableModel.isAnimationEnabled(); if (animationEnabled) { var postfix = isUpdate ? 'Update' : ''; var duration = animatableModel.getShallow('animationDuration' + postfix); var animationEasing = animatableModel.getShallow('animationEasing' + postfix); var animationDelay = animatableModel.getShallow('animationDelay' + postfix); if (typeof animationDelay === 'function') { animationDelay = animationDelay( dataIndex, animatableModel.getAnimationDelayParams ? animatableModel.getAnimationDelayParams(el, dataIndex) : null ); } if (typeof duration === 'function') { duration = duration(dataIndex); } duration > 0 ? el.animateTo(props, duration, animationDelay || 0, animationEasing, cb, !!cb) : (el.stopAnimation(), el.attr(props), cb && cb()); } else { el.stopAnimation(); el.attr(props); cb && cb(); } } /** * Update graphic element properties with or without animation according to the * configuration in series. * * Caution: this method will stop previous animation. * So if do not use this method to one element twice before * animation starts, unless you know what you are doing. * * @param {module:zrender/Element} el * @param {Object} props * @param {module:echarts/model/Model} [animatableModel] * @param {number} [dataIndex] * @param {Function} [cb] * @example * graphic.updateProps(el, { * position: [100, 100] * }, seriesModel, dataIndex, function () { console.log('Animation done!'); }); * // Or * graphic.updateProps(el, { * position: [100, 100] * }, seriesModel, function () { console.log('Animation done!'); }); */ function updateProps(el, props, animatableModel, dataIndex, cb) { animateOrSetProps(true, el, props, animatableModel, dataIndex, cb); } /** * Init graphic element properties with or without animation according to the * configuration in series. * * Caution: this method will stop previous animation. * So if do not use this method to one element twice before * animation starts, unless you know what you are doing. * * @param {module:zrender/Element} el * @param {Object} props * @param {module:echarts/model/Model} [animatableModel] * @param {number} [dataIndex] * @param {Function} cb */ function initProps(el, props, animatableModel, dataIndex, cb) { animateOrSetProps(false, el, props, animatableModel, dataIndex, cb); } /** * Get transform matrix of target (param target), * in coordinate of its ancestor (param ancestor) * * @param {module:zrender/mixin/Transformable} target * @param {module:zrender/mixin/Transformable} [ancestor] */ function getTransform(target, ancestor) { var mat = identity([]); while (target && target !== ancestor) { mul$1(mat, target.getLocalTransform(), mat); target = target.parent; } return mat; } /** * Apply transform to an vertex. * @param {Array.} target [x, y] * @param {Array.|TypedArray.|Object} transform Can be: * + Transform matrix: like [1, 0, 0, 1, 0, 0] * + {position, rotation, scale}, the same as `zrender/Transformable`. * @param {boolean=} invert Whether use invert matrix. * @return {Array.} [x, y] */ function applyTransform$1(target, transform, invert$$1) { if (transform && !isArrayLike(transform)) { transform = Transformable.getLocalTransform(transform); } if (invert$$1) { transform = invert([], transform); } return applyTransform([], target, transform); } /** * @param {string} direction 'left' 'right' 'top' 'bottom' * @param {Array.} transform Transform matrix: like [1, 0, 0, 1, 0, 0] * @param {boolean=} invert Whether use invert matrix. * @return {string} Transformed direction. 'left' 'right' 'top' 'bottom' */ function transformDirection(direction, transform, invert$$1) { // Pick a base, ensure that transform result will not be (0, 0). var hBase = (transform[4] === 0 || transform[5] === 0 || transform[0] === 0) ? 1 : Math.abs(2 * transform[4] / transform[0]); var vBase = (transform[4] === 0 || transform[5] === 0 || transform[2] === 0) ? 1 : Math.abs(2 * transform[4] / transform[2]); var vertex = [ direction === 'left' ? -hBase : direction === 'right' ? hBase : 0, direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0 ]; vertex = applyTransform$1(vertex, transform, invert$$1); return Math.abs(vertex[0]) > Math.abs(vertex[1]) ? (vertex[0] > 0 ? 'right' : 'left') : (vertex[1] > 0 ? 'bottom' : 'top'); } /** * Apply group transition animation from g1 to g2. * If no animatableModel, no animation. */ function groupTransition(g1, g2, animatableModel, cb) { if (!g1 || !g2) { return; } function getElMap(g) { var elMap = {}; g.traverse(function (el) { if (!el.isGroup && el.anid) { elMap[el.anid] = el; } }); return elMap; } function getAnimatableProps(el) { var obj = { position: clone$1(el.position), rotation: el.rotation }; if (el.shape) { obj.shape = extend({}, el.shape); } return obj; } var elMap1 = getElMap(g1); g2.traverse(function (el) { if (!el.isGroup && el.anid) { var oldEl = elMap1[el.anid]; if (oldEl) { var newProp = getAnimatableProps(el); el.attr(getAnimatableProps(oldEl)); updateProps(el, newProp, animatableModel, el.dataIndex); } // else { // if (el.previousProps) { // graphic.updateProps // } // } } }); } /** * @param {Array.>} points Like: [[23, 44], [53, 66], ...] * @param {Object} rect {x, y, width, height} * @return {Array.>} A new clipped points. */ function clipPointsByRect(points, rect) { // FIXME: this way migth be incorrect when grpahic clipped by a corner. // and when element have border. return map(points, function (point) { var x = point[0]; x = mathMax$1(x, rect.x); x = mathMin$1(x, rect.x + rect.width); var y = point[1]; y = mathMax$1(y, rect.y); y = mathMin$1(y, rect.y + rect.height); return [x, y]; }); } /** * @param {Object} targetRect {x, y, width, height} * @param {Object} rect {x, y, width, height} * @return {Object} A new clipped rect. If rect size are negative, return undefined. */ function clipRectByRect(targetRect, rect) { var x = mathMax$1(targetRect.x, rect.x); var x2 = mathMin$1(targetRect.x + targetRect.width, rect.x + rect.width); var y = mathMax$1(targetRect.y, rect.y); var y2 = mathMin$1(targetRect.y + targetRect.height, rect.y + rect.height); // If the total rect is cliped, nothing, including the border, // should be painted. So return undefined. if (x2 >= x && y2 >= y) { return { x: x, y: y, width: x2 - x, height: y2 - y }; } } /** * @param {string} iconStr Support 'image://' or 'path://' or direct svg path. * @param {Object} [opt] Properties of `module:zrender/Element`, except `style`. * @param {Object} [rect] {x, y, width, height} * @return {module:zrender/Element} Icon path or image element. */ function createIcon(iconStr, opt, rect) { opt = extend({rectHover: true}, opt); var style = opt.style = {strokeNoScale: true}; rect = rect || {x: -1, y: -1, width: 2, height: 2}; if (iconStr) { return iconStr.indexOf('image://') === 0 ? ( style.image = iconStr.slice(8), defaults(style, rect), new ZImage(opt) ) : ( makePath( iconStr.replace('path://', ''), opt, rect, 'center' ) ); } } /** * Return `true` if the given line (line `a`) and the given polygon * are intersect. * Note that we do not count colinear as intersect here because no * requirement for that. We could do that if required in future. * * @param {number} a1x * @param {number} a1y * @param {number} a2x * @param {number} a2y * @param {Array.>} points Points of the polygon. * @return {boolean} */ function linePolygonIntersect(a1x, a1y, a2x, a2y, points) { for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) { var p = points[i]; if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) { return true; } p2 = p; } } /** * Return `true` if the given two lines (line `a` and line `b`) * are intersect. * Note that we do not count colinear as intersect here because no * requirement for that. We could do that if required in future. * * @param {number} a1x * @param {number} a1y * @param {number} a2x * @param {number} a2y * @param {number} b1x * @param {number} b1y * @param {number} b2x * @param {number} b2y * @return {boolean} */ function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) { // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`. var mx = a2x - a1x; var my = a2y - a1y; var nx = b2x - b1x; var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff // exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`. var nmCrossProduct = crossProduct2d(nx, ny, mx, my); if (nearZero(nmCrossProduct)) { return false; } // `vec_m` and `vec_n` are intersect iff // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`, // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)` // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`. var b1a1x = a1x - b1x; var b1a1y = a1y - b1y; var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct; if (q < 0 || q > 1) { return false; } var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct; if (p < 0 || p > 1) { return false; } return true; } /** * Cross product of 2-dimension vector. */ function crossProduct2d(x1, y1, x2, y2) { return x1 * y2 - x2 * y1; } function nearZero(val) { return val <= (1e-6) && val >= -(1e-6); } var graphic = (Object.freeze || Object)({ Z2_EMPHASIS_LIFT: Z2_EMPHASIS_LIFT, CACHED_LABEL_STYLE_PROPERTIES: CACHED_LABEL_STYLE_PROPERTIES, extendShape: extendShape, extendPath: extendPath, makePath: makePath, makeImage: makeImage, mergePath: mergePath, resizePath: resizePath, subPixelOptimizeLine: subPixelOptimizeLine, subPixelOptimizeRect: subPixelOptimizeRect, subPixelOptimize: subPixelOptimize, setElementHoverStyle: setElementHoverStyle, setHoverStyle: setHoverStyle, setAsHighDownDispatcher: setAsHighDownDispatcher, isHighDownDispatcher: isHighDownDispatcher, getHighlightDigit: getHighlightDigit, setLabelStyle: setLabelStyle, modifyLabelStyle: modifyLabelStyle, setTextStyle: setTextStyle, setText: setText, getFont: getFont, updateProps: updateProps, initProps: initProps, getTransform: getTransform, applyTransform: applyTransform$1, transformDirection: transformDirection, groupTransition: groupTransition, clipPointsByRect: clipPointsByRect, clipRectByRect: clipRectByRect, createIcon: createIcon, linePolygonIntersect: linePolygonIntersect, lineLineIntersect: lineLineIntersect, Group: Group, Image: ZImage, Text: Text, Circle: Circle, Sector: Sector, Ring: Ring, Polygon: Polygon, Polyline: Polyline, Rect: Rect, Line: Line, BezierCurve: BezierCurve, Arc: Arc, IncrementalDisplayable: IncrementalDisplayble, CompoundPath: CompoundPath, LinearGradient: LinearGradient, RadialGradient: RadialGradient, BoundingRect: BoundingRect }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PATH_COLOR = ['textStyle', 'color']; var textStyleMixin = { /** * Get color property or get color from option.textStyle.color * @param {boolean} [isEmphasis] * @return {string} */ getTextColor: function (isEmphasis) { var ecModel = this.ecModel; return this.getShallow('color') || ( (!isEmphasis && ecModel) ? ecModel.get(PATH_COLOR) : null ); }, /** * Create font string from fontStyle, fontWeight, fontSize, fontFamily * @return {string} */ getFont: function () { return getFont({ fontStyle: this.getShallow('fontStyle'), fontWeight: this.getShallow('fontWeight'), fontSize: this.getShallow('fontSize'), fontFamily: this.getShallow('fontFamily') }, this.ecModel); }, getTextRect: function (text) { return getBoundingRect( text, this.getFont(), this.getShallow('align'), this.getShallow('verticalAlign') || this.getShallow('baseline'), this.getShallow('padding'), this.getShallow('lineHeight'), this.getShallow('rich'), this.getShallow('truncateText') ); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getItemStyle = makeStyleMapper( [ ['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['textPosition'], ['textAlign'] ] ); var itemStyleMixin = { getItemStyle: function (excludes, includes) { var style = getItemStyle(this, excludes, includes); var lineDash = this.getBorderLineDash(); lineDash && (style.lineDash = lineDash); return style; }, getBorderLineDash: function () { var lineType = this.get('borderType'); return (lineType === 'solid' || lineType == null) ? null : (lineType === 'dashed' ? [5, 5] : [1, 1]); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/model/Model */ var mixin$1 = mixin; var inner = makeInner(); /** * @alias module:echarts/model/Model * @constructor * @param {Object} [option] * @param {module:echarts/model/Model} [parentModel] * @param {module:echarts/model/Global} [ecModel] */ function Model(option, parentModel, ecModel) { /** * @type {module:echarts/model/Model} * @readOnly */ this.parentModel = parentModel; /** * @type {module:echarts/model/Global} * @readOnly */ this.ecModel = ecModel; /** * @type {Object} * @protected */ this.option = option; // Simple optimization // if (this.init) { // if (arguments.length <= 4) { // this.init(option, parentModel, ecModel, extraOpt); // } // else { // this.init.apply(this, arguments); // } // } } Model.prototype = { constructor: Model, /** * Model 的初始化函数 * @param {Object} option */ init: null, /** * 从新的 Option merge */ mergeOption: function (option) { merge(this.option, option, true); }, /** * @param {string|Array.} path * @param {boolean} [ignoreParent=false] * @return {*} */ get: function (path, ignoreParent) { if (path == null) { return this.option; } return doGet( this.option, this.parsePath(path), !ignoreParent && getParent(this, path) ); }, /** * @param {string} key * @param {boolean} [ignoreParent=false] * @return {*} */ getShallow: function (key, ignoreParent) { var option = this.option; var val = option == null ? option : option[key]; var parentModel = !ignoreParent && getParent(this, key); if (val == null && parentModel) { val = parentModel.getShallow(key); } return val; }, /** * @param {string|Array.} [path] * @param {module:echarts/model/Model} [parentModel] * @return {module:echarts/model/Model} */ getModel: function (path, parentModel) { var obj = path == null ? this.option : doGet(this.option, path = this.parsePath(path)); var thisParentModel; parentModel = parentModel || ( (thisParentModel = getParent(this, path)) && thisParentModel.getModel(path) ); return new Model(obj, parentModel, this.ecModel); }, /** * If model has option */ isEmpty: function () { return this.option == null; }, restoreData: function () {}, // Pending clone: function () { var Ctor = this.constructor; return new Ctor(clone(this.option)); }, setReadOnly: function (properties) { // clazzUtil.setReadOnly(this, properties); }, // If path is null/undefined, return null/undefined. parsePath: function (path) { if (typeof path === 'string') { path = path.split('.'); } return path; }, /** * @param {Function} getParentMethod * param {Array.|string} path * return {module:echarts/model/Model} */ customizeGetParent: function (getParentMethod) { inner(this).getParent = getParentMethod; }, isAnimationEnabled: function () { if (!env$1.node) { if (this.option.animation != null) { return !!this.option.animation; } else if (this.parentModel) { return this.parentModel.isAnimationEnabled(); } } } }; function doGet(obj, pathArr, parentModel) { for (var i = 0; i < pathArr.length; i++) { // Ignore empty if (!pathArr[i]) { continue; } // obj could be number/string/... (like 0) obj = (obj && typeof obj === 'object') ? obj[pathArr[i]] : null; if (obj == null) { break; } } if (obj == null && parentModel) { obj = parentModel.get(pathArr); } return obj; } // `path` can be null/undefined function getParent(model, path) { var getParentMethod = inner(model).getParent; return getParentMethod ? getParentMethod.call(model, path) : model.parentModel; } // Enable Model.extend. enableClassExtend(Model); enableClassCheck(Model); mixin$1(Model, lineStyleMixin); mixin$1(Model, areaStyleMixin); mixin$1(Model, textStyleMixin); mixin$1(Model, itemStyleMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var base = 0; /** * @public * @param {string} type * @return {string} */ function getUID(type) { // Considering the case of crossing js context, // use Math.random to make id as unique as possible. return [(type || ''), base++, Math.random().toFixed(5)].join('_'); } /** * @inner */ function enableSubTypeDefaulter(entity) { var subTypeDefaulters = {}; entity.registerSubTypeDefaulter = function (componentType, defaulter) { componentType = parseClassType$1(componentType); subTypeDefaulters[componentType.main] = defaulter; }; entity.determineSubType = function (componentType, option) { var type = option.type; if (!type) { var componentTypeMain = parseClassType$1(componentType).main; if (entity.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) { type = subTypeDefaulters[componentTypeMain](option); } } return type; }; return entity; } /** * Topological travel on Activity Network (Activity On Vertices). * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis']. * * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology. * * If there is circle dependencey, Error will be thrown. * */ function enableTopologicalTravel(entity, dependencyGetter) { /** * @public * @param {Array.} targetNameList Target Component type list. * Can be ['aa', 'bb', 'aa.xx'] * @param {Array.} fullNameList By which we can build dependency graph. * @param {Function} callback Params: componentType, dependencies. * @param {Object} context Scope of callback. */ entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) { if (!targetNameList.length) { return; } var result = makeDepndencyGraph(fullNameList); var graph = result.graph; var stack = result.noEntryList; var targetNameSet = {}; each$1(targetNameList, function (name) { targetNameSet[name] = true; }); while (stack.length) { var currComponentType = stack.pop(); var currVertex = graph[currComponentType]; var isInTargetNameSet = !!targetNameSet[currComponentType]; if (isInTargetNameSet) { callback.call(context, currComponentType, currVertex.originalDeps.slice()); delete targetNameSet[currComponentType]; } each$1( currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge ); } each$1(targetNameSet, function () { throw new Error('Circle dependency may exists'); }); function removeEdge(succComponentType) { graph[succComponentType].entryCount--; if (graph[succComponentType].entryCount === 0) { stack.push(succComponentType); } } // Consider this case: legend depends on series, and we call // chart.setOption({series: [...]}), where only series is in option. // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will // not be called, but only sereis.mergeOption is called. Thus legend // have no chance to update its local record about series (like which // name of series is available in legend). function removeEdgeAndAdd(succComponentType) { targetNameSet[succComponentType] = true; removeEdge(succComponentType); } }; /** * DepndencyGraph: {Object} * key: conponentType, * value: { * successor: [conponentTypes...], * originalDeps: [conponentTypes...], * entryCount: {number} * } */ function makeDepndencyGraph(fullNameList) { var graph = {}; var noEntryList = []; each$1(fullNameList, function (name) { var thisItem = createDependencyGraphItem(graph, name); var originalDeps = thisItem.originalDeps = dependencyGetter(name); var availableDeps = getAvailableDependencies(originalDeps, fullNameList); thisItem.entryCount = availableDeps.length; if (thisItem.entryCount === 0) { noEntryList.push(name); } each$1(availableDeps, function (dependentName) { if (indexOf(thisItem.predecessor, dependentName) < 0) { thisItem.predecessor.push(dependentName); } var thatItem = createDependencyGraphItem(graph, dependentName); if (indexOf(thatItem.successor, dependentName) < 0) { thatItem.successor.push(name); } }); }); return {graph: graph, noEntryList: noEntryList}; } function createDependencyGraphItem(graph, name) { if (!graph[name]) { graph[name] = {predecessor: [], successor: []}; } return graph[name]; } function getAvailableDependencies(originalDeps, fullNameList) { var availableDeps = []; each$1(originalDeps, function (dep) { indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep); }); return availableDeps; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embeded for some of the code in this file: * The method "quantile" was copied from "d3.js". * (See more details in the comment of the method below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var RADIAN_EPSILON = 1e-4; function _trim(str) { return str.replace(/^\s+/, '').replace(/\s+$/, ''); } /** * Linear mapping a value from domain to range * @memberOf module:echarts/util/number * @param {(number|Array.)} val * @param {Array.} domain Domain extent domain[0] can be bigger than domain[1] * @param {Array.} range Range extent range[0] can be bigger than range[1] * @param {boolean} clamp * @return {(number|Array.} */ function linearMap(val, domain, range, clamp) { var subDomain = domain[1] - domain[0]; var subRange = range[1] - range[0]; if (subDomain === 0) { return subRange === 0 ? range[0] : (range[0] + range[1]) / 2; } // Avoid accuracy problem in edge, such as // 146.39 - 62.83 === 83.55999999999999. // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError // It is a little verbose for efficiency considering this method // is a hotspot. if (clamp) { if (subDomain > 0) { if (val <= domain[0]) { return range[0]; } else if (val >= domain[1]) { return range[1]; } } else { if (val >= domain[0]) { return range[0]; } else if (val <= domain[1]) { return range[1]; } } } else { if (val === domain[0]) { return range[0]; } if (val === domain[1]) { return range[1]; } } return (val - domain[0]) / subDomain * subRange + range[0]; } /** * Convert a percent string to absolute number. * Returns NaN if percent is not a valid string or number * @memberOf module:echarts/util/number * @param {string|number} percent * @param {number} all * @return {number} */ function parsePercent$1(percent, all) { switch (percent) { case 'center': case 'middle': percent = '50%'; break; case 'left': case 'top': percent = '0%'; break; case 'right': case 'bottom': percent = '100%'; break; } if (typeof percent === 'string') { if (_trim(percent).match(/%$/)) { return parseFloat(percent) / 100 * all; } return parseFloat(percent); } return percent == null ? NaN : +percent; } /** * (1) Fix rounding error of float numbers. * (2) Support return string to avoid scientific notation like '3.5e-7'. * * @param {number} x * @param {number} [precision] * @param {boolean} [returnStr] * @return {number|string} */ function round$1(x, precision, returnStr) { if (precision == null) { precision = 10; } // Avoid range error precision = Math.min(Math.max(0, precision), 20); x = (+x).toFixed(precision); return returnStr ? x : +x; } /** * asc sort arr. * The input arr will be modified. * * @param {Array} arr * @return {Array} The input arr. */ function asc(arr) { arr.sort(function (a, b) { return a - b; }); return arr; } /** * Get precision * @param {number} val */ function getPrecision(val) { val = +val; if (isNaN(val)) { return 0; } // It is much faster than methods converting number to string as follows // var tmp = val.toString(); // return tmp.length - 1 - tmp.indexOf('.'); // especially when precision is low var e = 1; var count = 0; while (Math.round(val * e) / e !== val) { e *= 10; count++; } return count; } /** * @param {string|number} val * @return {number} */ function getPrecisionSafe(val) { var str = val.toString(); // Consider scientific notation: '3.4e-12' '3.4e+12' var eIndex = str.indexOf('e'); if (eIndex > 0) { var precision = +str.slice(eIndex + 1); return precision < 0 ? -precision : 0; } else { var dotIndex = str.indexOf('.'); return dotIndex < 0 ? 0 : str.length - 1 - dotIndex; } } /** * Minimal dicernible data precisioin according to a single pixel. * * @param {Array.} dataExtent * @param {Array.} pixelExtent * @return {number} precision */ function getPixelPrecision(dataExtent, pixelExtent) { var log = Math.log; var LN10 = Math.LN10; var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10); var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10); // toFixed() digits argument must be between 0 and 20. var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20); return !isFinite(precision) ? 20 : precision; } /** * Get a data of given precision, assuring the sum of percentages * in valueList is 1. * The largest remainer method is used. * https://en.wikipedia.org/wiki/Largest_remainder_method * * @param {Array.} valueList a list of all data * @param {number} idx index of the data to be processed in valueList * @param {number} precision integer number showing digits of precision * @return {number} percent ranging from 0 to 100 */ function getPercentWithPrecision(valueList, idx, precision) { if (!valueList[idx]) { return 0; } var sum = reduce(valueList, function (acc, val) { return acc + (isNaN(val) ? 0 : val); }, 0); if (sum === 0) { return 0; } var digits = Math.pow(10, precision); var votesPerQuota = map(valueList, function (val) { return (isNaN(val) ? 0 : val) / sum * digits * 100; }); var targetSeats = digits * 100; var seats = map(votesPerQuota, function (votes) { // Assign automatic seats. return Math.floor(votes); }); var currentSum = reduce(seats, function (acc, val) { return acc + val; }, 0); var remainder = map(votesPerQuota, function (votes, idx) { return votes - seats[idx]; }); // Has remainding votes. while (currentSum < targetSeats) { // Find next largest remainder. var max = Number.NEGATIVE_INFINITY; var maxId = null; for (var i = 0, len = remainder.length; i < len; ++i) { if (remainder[i] > max) { max = remainder[i]; maxId = i; } } // Add a vote to max remainder. ++seats[maxId]; remainder[maxId] = 0; ++currentSum; } return seats[idx] / digits; } // Number.MAX_SAFE_INTEGER, ie do not support. var MAX_SAFE_INTEGER = 9007199254740991; /** * To 0 - 2 * PI, considering negative radian. * @param {number} radian * @return {number} */ function remRadian(radian) { var pi2 = Math.PI * 2; return (radian % pi2 + pi2) % pi2; } /** * @param {type} radian * @return {boolean} */ function isRadianAroundZero(val) { return val > -RADIAN_EPSILON && val < RADIAN_EPSILON; } /* eslint-disable */ var TIME_REG = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/; // jshint ignore:line /* eslint-enable */ /** * @param {string|Date|number} value These values can be accepted: * + An instance of Date, represent a time in its own time zone. * + Or string in a subset of ISO 8601, only including: * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06', * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123', * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00', * all of which will be treated as local time if time zone is not specified * (see ). * + Or other string format, including (all of which will be treated as loacal time): * '2012', '2012-3-1', '2012/3/1', '2012/03/01', * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123' * + a timestamp, which represent a time in UTC. * @return {Date} date */ function parseDate(value) { if (value instanceof Date) { return value; } else if (typeof value === 'string') { // Different browsers parse date in different way, so we parse it manually. // Some other issues: // new Date('1970-01-01') is UTC, // new Date('1970/01/01') and new Date('1970-1-01') is local. // See issue #3623 var match = TIME_REG.exec(value); if (!match) { // return Invalid Date. return new Date(NaN); } // Use local time when no timezone offset specifed. if (!match[8]) { // match[n] can only be string or undefined. // But take care of '12' + 1 => '121'. return new Date( +match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, +match[7] || 0 ); } // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time, // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment). // For example, system timezone is set as "Time Zone: America/Toronto", // then these code will get different result: // `new Date(1478411999999).getTimezoneOffset(); // get 240` // `new Date(1478412000000).getTimezoneOffset(); // get 300` // So we should not use `new Date`, but use `Date.UTC`. else { var hour = +match[4] || 0; if (match[8].toUpperCase() !== 'Z') { hour -= match[8].slice(0, 3); } return new Date(Date.UTC( +match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0 )); } } else if (value == null) { return new Date(NaN); } return new Date(Math.round(value)); } /** * Quantity of a number. e.g. 0.1, 1, 10, 100 * * @param {number} val * @return {number} */ function quantity(val) { return Math.pow(10, quantityExponent(val)); } function quantityExponent(val) { return Math.floor(Math.log(val) / Math.LN10); } /** * find a “nice” number approximately equal to x. Round the number if round = true, * take ceiling if round = false. The primary observation is that the “nicest” * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers. * * See "Nice Numbers for Graph Labels" of Graphic Gems. * * @param {number} val Non-negative value. * @param {boolean} round * @return {number} */ function nice(val, round) { var exponent = quantityExponent(val); var exp10 = Math.pow(10, exponent); var f = val / exp10; // 1 <= f < 10 var nf; if (round) { if (f < 1.5) { nf = 1; } else if (f < 2.5) { nf = 2; } else if (f < 4) { nf = 3; } else if (f < 7) { nf = 5; } else { nf = 10; } } else { if (f < 1) { nf = 1; } else if (f < 2) { nf = 2; } else if (f < 3) { nf = 3; } else if (f < 5) { nf = 5; } else { nf = 10; } } val = nf * exp10; // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754). // 20 is the uppper bound of toFixed. return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val; } /** * This code was copied from "d3.js" * . * See the license statement at the head of this file. * @param {Array.} ascArr */ function quantile(ascArr, p) { var H = (ascArr.length - 1) * p + 1; var h = Math.floor(H); var v = +ascArr[h - 1]; var e = H - h; return e ? v + e * (ascArr[h] - v) : v; } /** * Order intervals asc, and split them when overlap. * expect(numberUtil.reformIntervals([ * {interval: [18, 62], close: [1, 1]}, * {interval: [-Infinity, -70], close: [0, 0]}, * {interval: [-70, -26], close: [1, 1]}, * {interval: [-26, 18], close: [1, 1]}, * {interval: [62, 150], close: [1, 1]}, * {interval: [106, 150], close: [1, 1]}, * {interval: [150, Infinity], close: [0, 0]} * ])).toEqual([ * {interval: [-Infinity, -70], close: [0, 0]}, * {interval: [-70, -26], close: [1, 1]}, * {interval: [-26, 18], close: [0, 1]}, * {interval: [18, 62], close: [0, 1]}, * {interval: [62, 150], close: [0, 1]}, * {interval: [150, Infinity], close: [0, 0]} * ]); * @param {Array.} list, where `close` mean open or close * of the interval, and Infinity can be used. * @return {Array.} The origin list, which has been reformed. */ function reformIntervals(list) { list.sort(function (a, b) { return littleThan(a, b, 0) ? -1 : 1; }); var curr = -Infinity; var currClose = 1; for (var i = 0; i < list.length;) { var interval = list[i].interval; var close = list[i].close; for (var lg = 0; lg < 2; lg++) { if (interval[lg] <= curr) { interval[lg] = curr; close[lg] = !lg ? 1 - currClose : 1; } curr = interval[lg]; currClose = close[lg]; } if (interval[0] === interval[1] && close[0] * close[1] !== 1) { list.splice(i, 1); } else { i++; } } return list; function littleThan(a, b, lg) { return a.interval[lg] < b.interval[lg] || ( a.interval[lg] === b.interval[lg] && ( (a.close[lg] - b.close[lg] === (!lg ? 1 : -1)) || (!lg && littleThan(a, b, 1)) ) ); } } /** * parseFloat NaNs numeric-cast false positives (null|true|false|"") * ...but misinterprets leading-number strings, particularly hex literals ("0x...") * subtraction forces infinities to NaN * * @param {*} v * @return {boolean} */ function isNumeric(v) { return v - parseFloat(v) >= 0; } var number = (Object.freeze || Object)({ linearMap: linearMap, parsePercent: parsePercent$1, round: round$1, asc: asc, getPrecision: getPrecision, getPrecisionSafe: getPrecisionSafe, getPixelPrecision: getPixelPrecision, getPercentWithPrecision: getPercentWithPrecision, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER, remRadian: remRadian, isRadianAroundZero: isRadianAroundZero, parseDate: parseDate, quantity: quantity, nice: nice, quantile: quantile, reformIntervals: reformIntervals, isNumeric: isNumeric }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import Text from 'zrender/src/graphic/Text'; /** * 每三位默认加,格式化 * @param {string|number} x * @return {string} */ function addCommas(x) { if (isNaN(x)) { return '-'; } x = (x + '').split('.'); return x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') + (x.length > 1 ? ('.' + x[1]) : ''); } /** * @param {string} str * @param {boolean} [upperCaseFirst=false] * @return {string} str */ function toCamelCase(str, upperCaseFirst) { str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) { return group1.toUpperCase(); }); if (upperCaseFirst && str) { str = str.charAt(0).toUpperCase() + str.slice(1); } return str; } var normalizeCssArray$1 = normalizeCssArray; var replaceReg = /([&<>"'])/g; var replaceMap = { '&': '&', '<': '<', '>': '>', '"': '"', '\'': ''' }; function encodeHTML(source) { return source == null ? '' : (source + '').replace(replaceReg, function (str, c) { return replaceMap[c]; }); } var TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; var wrapVar = function (varName, seriesIdx) { return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}'; }; /** * Template formatter * @param {string} tpl * @param {Array.|Object} paramsList * @param {boolean} [encode=false] * @return {string} */ function formatTpl(tpl, paramsList, encode) { if (!isArray(paramsList)) { paramsList = [paramsList]; } var seriesLen = paramsList.length; if (!seriesLen) { return ''; } var $vars = paramsList[0].$vars || []; for (var i = 0; i < $vars.length; i++) { var alias = TPL_VAR_ALIAS[i]; tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0)); } for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) { for (var k = 0; k < $vars.length; k++) { var val = paramsList[seriesIdx][$vars[k]]; tpl = tpl.replace( wrapVar(TPL_VAR_ALIAS[k], seriesIdx), encode ? encodeHTML(val) : val ); } } return tpl; } /** * simple Template formatter * * @param {string} tpl * @param {Object} param * @param {boolean} [encode=false] * @return {string} */ function formatTplSimple(tpl, param, encode) { each$1(param, function (value, key) { tpl = tpl.replace( '{' + key + '}', encode ? encodeHTML(value) : value ); }); return tpl; } /** * @param {Object|string} [opt] If string, means color. * @param {string} [opt.color] * @param {string} [opt.extraCssText] * @param {string} [opt.type='item'] 'item' or 'subItem' * @param {string} [opt.renderMode='html'] render mode of tooltip, 'html' or 'richText' * @param {string} [opt.markerId='X'] id name for marker. If only one marker is in a rich text, this can be omitted. * @return {string} */ function getTooltipMarker(opt, extraCssText) { opt = isString(opt) ? {color: opt, extraCssText: extraCssText} : (opt || {}); var color = opt.color; var type = opt.type; var extraCssText = opt.extraCssText; var renderMode = opt.renderMode || 'html'; var markerId = opt.markerId || 'X'; if (!color) { return ''; } if (renderMode === 'html') { return type === 'subItem' ? '' : ''; } else { // Space for rich element marker return { renderMode: renderMode, content: '{marker' + markerId + '|} ', style: { color: color } }; } } function pad(str, len) { str += ''; return '0000'.substr(0, len - str.length) + str; } /** * ISO Date format * @param {string} tpl * @param {number} value * @param {boolean} [isUTC=false] Default in local time. * see `module:echarts/scale/Time` * and `module:echarts/util/number#parseDate`. * @inner */ function formatTime(tpl, value, isUTC) { if (tpl === 'week' || tpl === 'month' || tpl === 'quarter' || tpl === 'half-year' || tpl === 'year' ) { tpl = 'MM-dd\nyyyy'; } var date = parseDate(value); var utc = isUTC ? 'UTC' : ''; var y = date['get' + utc + 'FullYear'](); var M = date['get' + utc + 'Month']() + 1; var d = date['get' + utc + 'Date'](); var h = date['get' + utc + 'Hours'](); var m = date['get' + utc + 'Minutes'](); var s = date['get' + utc + 'Seconds'](); var S = date['get' + utc + 'Milliseconds'](); tpl = tpl.replace('MM', pad(M, 2)) .replace('M', M) .replace('yyyy', y) .replace('yy', y % 100) .replace('dd', pad(d, 2)) .replace('d', d) .replace('hh', pad(h, 2)) .replace('h', h) .replace('mm', pad(m, 2)) .replace('m', m) .replace('ss', pad(s, 2)) .replace('s', s) .replace('SSS', pad(S, 3)); return tpl; } /** * Capital first * @param {string} str * @return {string} */ function capitalFirst(str) { return str ? str.charAt(0).toUpperCase() + str.substr(1) : str; } var truncateText$1 = truncateText; /** * @public * @param {Object} opt * @param {string} opt.text * @param {string} opt.font * @param {string} [opt.textAlign='left'] * @param {string} [opt.textVerticalAlign='top'] * @param {Array.} [opt.textPadding] * @param {number} [opt.textLineHeight] * @param {Object} [opt.rich] * @param {Object} [opt.truncate] * @return {Object} {x, y, width, height, lineHeight} */ function getTextBoundingRect(opt) { return getBoundingRect( opt.text, opt.font, opt.textAlign, opt.textVerticalAlign, opt.textPadding, opt.textLineHeight, opt.rich, opt.truncate ); } /** * @deprecated * the `textLineHeight` was added later. * For backward compatiblility, put it as the last parameter. * But deprecated this interface. Please use `getTextBoundingRect` instead. */ function getTextRect( text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight ) { return getBoundingRect( text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate ); } var format = (Object.freeze || Object)({ addCommas: addCommas, toCamelCase: toCamelCase, normalizeCssArray: normalizeCssArray$1, encodeHTML: encodeHTML, formatTpl: formatTpl, formatTplSimple: formatTplSimple, getTooltipMarker: getTooltipMarker, formatTime: formatTime, capitalFirst: capitalFirst, truncateText: truncateText$1, getTextBoundingRect: getTextBoundingRect, getTextRect: getTextRect }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Layout helpers for each component positioning var each$3 = each$1; /** * @public */ var LOCATION_PARAMS = [ 'left', 'right', 'top', 'bottom', 'width', 'height' ]; /** * @public */ var HV_NAMES = [ ['width', 'left', 'right'], ['height', 'top', 'bottom'] ]; function boxLayout(orient, group, gap, maxWidth, maxHeight) { var x = 0; var y = 0; if (maxWidth == null) { maxWidth = Infinity; } if (maxHeight == null) { maxHeight = Infinity; } var currentLineMaxSize = 0; group.eachChild(function (child, idx) { var position = child.position; var rect = child.getBoundingRect(); var nextChild = group.childAt(idx + 1); var nextChildRect = nextChild && nextChild.getBoundingRect(); var nextX; var nextY; if (orient === 'horizontal') { var moveX = rect.width + (nextChildRect ? (-nextChildRect.x + rect.x) : 0); nextX = x + moveX; // Wrap when width exceeds maxWidth or meet a `newline` group // FIXME compare before adding gap? if (nextX > maxWidth || child.newline) { x = 0; nextX = moveX; y += currentLineMaxSize + gap; currentLineMaxSize = rect.height; } else { // FIXME: consider rect.y is not `0`? currentLineMaxSize = Math.max(currentLineMaxSize, rect.height); } } else { var moveY = rect.height + (nextChildRect ? (-nextChildRect.y + rect.y) : 0); nextY = y + moveY; // Wrap when width exceeds maxHeight or meet a `newline` group if (nextY > maxHeight || child.newline) { x += currentLineMaxSize + gap; y = 0; nextY = moveY; currentLineMaxSize = rect.width; } else { currentLineMaxSize = Math.max(currentLineMaxSize, rect.width); } } if (child.newline) { return; } position[0] = x; position[1] = y; orient === 'horizontal' ? (x = nextX + gap) : (y = nextY + gap); }); } /** * VBox or HBox layouting * @param {string} orient * @param {module:zrender/container/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var box = boxLayout; /** * VBox layouting * @param {module:zrender/container/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var vbox = curry(boxLayout, 'vertical'); /** * HBox layouting * @param {module:zrender/container/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var hbox = curry(boxLayout, 'horizontal'); /** * If x or x2 is not specified or 'center' 'left' 'right', * the width would be as long as possible. * If y or y2 is not specified or 'middle' 'top' 'bottom', * the height would be as long as possible. * * @param {Object} positionInfo * @param {number|string} [positionInfo.x] * @param {number|string} [positionInfo.y] * @param {number|string} [positionInfo.x2] * @param {number|string} [positionInfo.y2] * @param {Object} containerRect {width, height} * @param {string|number} margin * @return {Object} {width, height} */ function getAvailableSize(positionInfo, containerRect, margin) { var containerWidth = containerRect.width; var containerHeight = containerRect.height; var x = parsePercent$1(positionInfo.x, containerWidth); var y = parsePercent$1(positionInfo.y, containerHeight); var x2 = parsePercent$1(positionInfo.x2, containerWidth); var y2 = parsePercent$1(positionInfo.y2, containerHeight); (isNaN(x) || isNaN(parseFloat(positionInfo.x))) && (x = 0); (isNaN(x2) || isNaN(parseFloat(positionInfo.x2))) && (x2 = containerWidth); (isNaN(y) || isNaN(parseFloat(positionInfo.y))) && (y = 0); (isNaN(y2) || isNaN(parseFloat(positionInfo.y2))) && (y2 = containerHeight); margin = normalizeCssArray$1(margin || 0); return { width: Math.max(x2 - x - margin[1] - margin[3], 0), height: Math.max(y2 - y - margin[0] - margin[2], 0) }; } /** * Parse position info. * * @param {Object} positionInfo * @param {number|string} [positionInfo.left] * @param {number|string} [positionInfo.top] * @param {number|string} [positionInfo.right] * @param {number|string} [positionInfo.bottom] * @param {number|string} [positionInfo.width] * @param {number|string} [positionInfo.height] * @param {number|string} [positionInfo.aspect] Aspect is width / height * @param {Object} containerRect * @param {string|number} [margin] * * @return {module:zrender/core/BoundingRect} */ function getLayoutRect( positionInfo, containerRect, margin ) { margin = normalizeCssArray$1(margin || 0); var containerWidth = containerRect.width; var containerHeight = containerRect.height; var left = parsePercent$1(positionInfo.left, containerWidth); var top = parsePercent$1(positionInfo.top, containerHeight); var right = parsePercent$1(positionInfo.right, containerWidth); var bottom = parsePercent$1(positionInfo.bottom, containerHeight); var width = parsePercent$1(positionInfo.width, containerWidth); var height = parsePercent$1(positionInfo.height, containerHeight); var verticalMargin = margin[2] + margin[0]; var horizontalMargin = margin[1] + margin[3]; var aspect = positionInfo.aspect; // If width is not specified, calculate width from left and right if (isNaN(width)) { width = containerWidth - right - horizontalMargin - left; } if (isNaN(height)) { height = containerHeight - bottom - verticalMargin - top; } if (aspect != null) { // If width and height are not given // 1. Graph should not exceeds the container // 2. Aspect must be keeped // 3. Graph should take the space as more as possible // FIXME // Margin is not considered, because there is no case that both // using margin and aspect so far. if (isNaN(width) && isNaN(height)) { if (aspect > containerWidth / containerHeight) { width = containerWidth * 0.8; } else { height = containerHeight * 0.8; } } // Calculate width or height with given aspect if (isNaN(width)) { width = aspect * height; } if (isNaN(height)) { height = width / aspect; } } // If left is not specified, calculate left from right and width if (isNaN(left)) { left = containerWidth - right - width - horizontalMargin; } if (isNaN(top)) { top = containerHeight - bottom - height - verticalMargin; } // Align left and top switch (positionInfo.left || positionInfo.right) { case 'center': left = containerWidth / 2 - width / 2 - margin[3]; break; case 'right': left = containerWidth - width - horizontalMargin; break; } switch (positionInfo.top || positionInfo.bottom) { case 'middle': case 'center': top = containerHeight / 2 - height / 2 - margin[0]; break; case 'bottom': top = containerHeight - height - verticalMargin; break; } // If something is wrong and left, top, width, height are calculated as NaN left = left || 0; top = top || 0; if (isNaN(width)) { // Width may be NaN if only one value is given except width width = containerWidth - horizontalMargin - left - (right || 0); } if (isNaN(height)) { // Height may be NaN if only one value is given except height height = containerHeight - verticalMargin - top - (bottom || 0); } var rect = new BoundingRect(left + margin[3], top + margin[0], width, height); rect.margin = margin; return rect; } /** * Position a zr element in viewport * Group position is specified by either * {left, top}, {right, bottom} * If all properties exists, right and bottom will be igonred. * * Logic: * 1. Scale (against origin point in parent coord) * 2. Rotate (against origin point in parent coord) * 3. Traslate (with el.position by this method) * So this method only fixes the last step 'Traslate', which does not affect * scaling and rotating. * * If be called repeatly with the same input el, the same result will be gotten. * * @param {module:zrender/Element} el Should have `getBoundingRect` method. * @param {Object} positionInfo * @param {number|string} [positionInfo.left] * @param {number|string} [positionInfo.top] * @param {number|string} [positionInfo.right] * @param {number|string} [positionInfo.bottom] * @param {number|string} [positionInfo.width] Only for opt.boundingModel: 'raw' * @param {number|string} [positionInfo.height] Only for opt.boundingModel: 'raw' * @param {Object} containerRect * @param {string|number} margin * @param {Object} [opt] * @param {Array.} [opt.hv=[1,1]] Only horizontal or only vertical. * @param {Array.} [opt.boundingMode='all'] * Specify how to calculate boundingRect when locating. * 'all': Position the boundingRect that is transformed and uioned * both itself and its descendants. * This mode simplies confine the elements in the bounding * of their container (e.g., using 'right: 0'). * 'raw': Position the boundingRect that is not transformed and only itself. * This mode is useful when you want a element can overflow its * container. (Consider a rotated circle needs to be located in a corner.) * In this mode positionInfo.width/height can only be number. */ function positionElement(el, positionInfo, containerRect, margin, opt) { var h = !opt || !opt.hv || opt.hv[0]; var v = !opt || !opt.hv || opt.hv[1]; var boundingMode = opt && opt.boundingMode || 'all'; if (!h && !v) { return; } var rect; if (boundingMode === 'raw') { rect = el.type === 'group' ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0) : el.getBoundingRect(); } else { rect = el.getBoundingRect(); if (el.needLocalTransform()) { var transform = el.getLocalTransform(); // Notice: raw rect may be inner object of el, // which should not be modified. rect = rect.clone(); rect.applyTransform(transform); } } // The real width and height can not be specified but calculated by the given el. positionInfo = getLayoutRect( defaults( {width: rect.width, height: rect.height}, positionInfo ), containerRect, margin ); // Because 'tranlate' is the last step in transform // (see zrender/core/Transformable#getLocalTransform), // we can just only modify el.position to get final result. var elPos = el.position; var dx = h ? positionInfo.x - rect.x : 0; var dy = v ? positionInfo.y - rect.y : 0; el.attr('position', boundingMode === 'raw' ? [dx, dy] : [elPos[0] + dx, elPos[1] + dy]); } /** * @param {Object} option Contains some of the properties in HV_NAMES. * @param {number} hvIdx 0: horizontal; 1: vertical. */ function sizeCalculable(option, hvIdx) { return option[HV_NAMES[hvIdx][0]] != null || (option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null); } /** * Consider Case: * When defulat option has {left: 0, width: 100}, and we set {right: 0} * through setOption or media query, using normal zrUtil.merge will cause * {right: 0} does not take effect. * * @example * ComponentModel.extend({ * init: function () { * ... * var inputPositionParams = layout.getLayoutParams(option); * this.mergeOption(inputPositionParams); * }, * mergeOption: function (newOption) { * newOption && zrUtil.merge(thisOption, newOption, true); * layout.mergeLayoutParam(thisOption, newOption); * } * }); * * @param {Object} targetOption * @param {Object} newOption * @param {Object|string} [opt] * @param {boolean|Array.} [opt.ignoreSize=false] Used for the components * that width (or height) should not be calculated by left and right (or top and bottom). */ function mergeLayoutParam(targetOption, newOption, opt) { !isObject$1(opt) && (opt = {}); var ignoreSize = opt.ignoreSize; !isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]); var hResult = merge$$1(HV_NAMES[0], 0); var vResult = merge$$1(HV_NAMES[1], 1); copy(HV_NAMES[0], targetOption, hResult); copy(HV_NAMES[1], targetOption, vResult); function merge$$1(names, hvIdx) { var newParams = {}; var newValueCount = 0; var merged = {}; var mergedValueCount = 0; var enoughParamNumber = 2; each$3(names, function (name) { merged[name] = targetOption[name]; }); each$3(names, function (name) { // Consider case: newOption.width is null, which is // set by user for removing width setting. hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]); hasValue(newParams, name) && newValueCount++; hasValue(merged, name) && mergedValueCount++; }); if (ignoreSize[hvIdx]) { // Only one of left/right is premitted to exist. if (hasValue(newOption, names[1])) { merged[names[2]] = null; } else if (hasValue(newOption, names[2])) { merged[names[1]] = null; } return merged; } // Case: newOption: {width: ..., right: ...}, // or targetOption: {right: ...} and newOption: {width: ...}, // There is no conflict when merged only has params count // little than enoughParamNumber. if (mergedValueCount === enoughParamNumber || !newValueCount) { return merged; } // Case: newOption: {width: ..., right: ...}, // Than we can make sure user only want those two, and ignore // all origin params in targetOption. else if (newValueCount >= enoughParamNumber) { return newParams; } else { // Chose another param from targetOption by priority. for (var i = 0; i < names.length; i++) { var name = names[i]; if (!hasProp(newParams, name) && hasProp(targetOption, name)) { newParams[name] = targetOption[name]; break; } } return newParams; } } function hasProp(obj, name) { return obj.hasOwnProperty(name); } function hasValue(obj, name) { return obj[name] != null && obj[name] !== 'auto'; } function copy(names, target, source) { each$3(names, function (name) { target[name] = source[name]; }); } } /** * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object. * @param {Object} source * @return {Object} Result contains those props. */ function getLayoutParams(source) { return copyLayoutParams({}, source); } /** * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object. * @param {Object} source * @return {Object} Result contains those props. */ function copyLayoutParams(target, source) { source && target && each$3(LOCATION_PARAMS, function (name) { source.hasOwnProperty(name) && (target[name] = source[name]); }); return target; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var boxLayoutMixin = { getBoxLayoutParams: function () { return { left: this.get('left'), top: this.get('top'), right: this.get('right'), bottom: this.get('bottom'), width: this.get('width'), height: this.get('height') }; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Component model * * @module echarts/model/Component */ var inner$1 = makeInner(); /** * @alias module:echarts/model/Component * @constructor * @param {Object} option * @param {module:echarts/model/Model} parentModel * @param {module:echarts/model/Model} ecModel */ var ComponentModel = Model.extend({ type: 'component', /** * @readOnly * @type {string} */ id: '', /** * Because simplified concept is probably better, series.name (or component.name) * has been having too many resposibilities: * (1) Generating id (which requires name in option should not be modified). * (2) As an index to mapping series when merging option or calling API (a name * can refer to more then one components, which is convinient is some case). * (3) Display. * @readOnly */ name: '', /** * @readOnly * @type {string} */ mainType: '', /** * @readOnly * @type {string} */ subType: '', /** * @readOnly * @type {number} */ componentIndex: 0, /** * @type {Object} * @protected */ defaultOption: null, /** * @type {module:echarts/model/Global} * @readOnly */ ecModel: null, /** * key: componentType * value: Component model list, can not be null. * @type {Object.>} * @readOnly */ dependentModels: [], /** * @type {string} * @readOnly */ uid: null, /** * Support merge layout params. * Only support 'box' now (left/right/top/bottom/width/height). * @type {string|Object} Object can be {ignoreSize: true} * @readOnly */ layoutMode: null, $constructor: function (option, parentModel, ecModel, extraOpt) { Model.call(this, option, parentModel, ecModel, extraOpt); this.uid = getUID('ec_cpt_model'); }, init: function (option, parentModel, ecModel, extraOpt) { this.mergeDefaultAndTheme(option, ecModel); }, mergeDefaultAndTheme: function (option, ecModel) { var layoutMode = this.layoutMode; var inputPositionParams = layoutMode ? getLayoutParams(option) : {}; var themeModel = ecModel.getTheme(); merge(option, themeModel.get(this.mainType)); merge(option, this.getDefaultOption()); if (layoutMode) { mergeLayoutParam(option, inputPositionParams, layoutMode); } }, mergeOption: function (option, extraOpt) { merge(this.option, option, true); var layoutMode = this.layoutMode; if (layoutMode) { mergeLayoutParam(this.option, option, layoutMode); } }, // Hooker after init or mergeOption optionUpdated: function (newCptOption, isInit) {}, getDefaultOption: function () { var fields = inner$1(this); if (!fields.defaultOption) { var optList = []; var Class = this.constructor; while (Class) { var opt = Class.prototype.defaultOption; opt && optList.push(opt); Class = Class.superClass; } var defaultOption = {}; for (var i = optList.length - 1; i >= 0; i--) { defaultOption = merge(defaultOption, optList[i], true); } fields.defaultOption = defaultOption; } return fields.defaultOption; }, getReferringComponents: function (mainType) { return this.ecModel.queryComponents({ mainType: mainType, index: this.get(mainType + 'Index', true), id: this.get(mainType + 'Id', true) }); } }); // Reset ComponentModel.extend, add preConstruct. // clazzUtil.enableClassExtend( // ComponentModel, // function (option, parentModel, ecModel, extraOpt) { // // Set dependentModels, componentIndex, name, id, mainType, subType. // zrUtil.extend(this, extraOpt); // this.uid = componentUtil.getUID('componentModel'); // // this.setReadOnly([ // // 'type', 'id', 'uid', 'name', 'mainType', 'subType', // // 'dependentModels', 'componentIndex' // // ]); // } // ); // Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on. enableClassManagement( ComponentModel, {registerWhenExtend: true} ); enableSubTypeDefaulter(ComponentModel); // Add capability of ComponentModel.topologicalTravel. enableTopologicalTravel(ComponentModel, getDependencies); function getDependencies(componentType) { var deps = []; each$1(ComponentModel.getClassesByMainType(componentType), function (Clazz) { deps = deps.concat(Clazz.prototype.dependencies || []); }); // Ensure main type. deps = map(deps, function (type) { return parseClassType$1(type).main; }); // Hack dataset for convenience. if (componentType !== 'dataset' && indexOf(deps, 'dataset') <= 0) { deps.unshift('dataset'); } return deps; } mixin(ComponentModel, boxLayoutMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var platform = ''; // Navigator not exists in node if (typeof navigator !== 'undefined') { platform = navigator.platform || ''; } var globalDefault = { // backgroundColor: 'rgba(0,0,0,0)', // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c', '#dd4444', '#d4df5a', '#cd4870'], // Light colors: // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'], // color: ['#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'], // Dark colors: color: [ '#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3' ], gradientColor: ['#f6efa6', '#d88273', '#bf444c'], // If xAxis and yAxis declared, grid is created by default. // grid: {}, textStyle: { // color: '#000', // decoration: 'none', // PENDING fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif', // fontFamily: 'Arial, Verdana, sans-serif', fontSize: 12, fontStyle: 'normal', fontWeight: 'normal' }, // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/ // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation // Default is source-over blendMode: null, animation: 'auto', animationDuration: 1000, animationDurationUpdate: 300, animationEasing: 'exponentialOut', animationEasingUpdate: 'cubicOut', animationThreshold: 2000, // Configuration for progressive/incremental rendering progressiveThreshold: 3000, progressive: 400, // Threshold of if use single hover layer to optimize. // It is recommended that `hoverLayerThreshold` is equivalent to or less than // `progressiveThreshold`, otherwise hover will cause restart of progressive, // which is unexpected. // see example . hoverLayerThreshold: 3000, // See: module:echarts/scale/Time useUTC: false }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$2 = makeInner(); function getNearestColorPalette(colors, requestColorNum) { var paletteNum = colors.length; // TODO colors must be in order for (var i = 0; i < paletteNum; i++) { if (colors[i].length > requestColorNum) { return colors[i]; } } return colors[paletteNum - 1]; } var colorPaletteMixin = { clearColorPalette: function () { inner$2(this).colorIdx = 0; inner$2(this).colorNameMap = {}; }, /** * @param {string} name MUST NOT be null/undefined. Otherwise call this function * twise with the same parameters will get different result. * @param {Object} [scope=this] * @param {Object} [requestColorNum] * @return {string} color string. */ getColorFromPalette: function (name, scope, requestColorNum) { scope = scope || this; var scopeFields = inner$2(scope); var colorIdx = scopeFields.colorIdx || 0; var colorNameMap = scopeFields.colorNameMap = scopeFields.colorNameMap || {}; // Use `hasOwnProperty` to avoid conflict with Object.prototype. if (colorNameMap.hasOwnProperty(name)) { return colorNameMap[name]; } var defaultColorPalette = normalizeToArray(this.get('color', true)); var layeredColorPalette = this.get('colorLayer', true); var colorPalette = ((requestColorNum == null || !layeredColorPalette) ? defaultColorPalette : getNearestColorPalette(layeredColorPalette, requestColorNum)); // In case can't find in layered color palette. colorPalette = colorPalette || defaultColorPalette; if (!colorPalette || !colorPalette.length) { return; } var color = colorPalette[colorIdx]; if (name) { colorNameMap[name] = color; } scopeFields.colorIdx = (colorIdx + 1) % colorPalette.length; return color; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Helper for model references. * There are many manners to refer axis/coordSys. */ // TODO // merge relevant logic to this file? // check: "modelHelper" of tooltip and "BrushTargetManager". /** * @return {Object} For example: * { * coordSysName: 'cartesian2d', * coordSysDims: ['x', 'y', ...], * axisMap: HashMap({ * x: xAxisModel, * y: yAxisModel * }), * categoryAxisMap: HashMap({ * x: xAxisModel, * y: undefined * }), * // It also indicate that whether there is category axis. * firstCategoryDimIndex: 1, * // To replace user specified encode. * } */ function getCoordSysDefineBySeries(seriesModel) { var coordSysName = seriesModel.get('coordinateSystem'); var result = { coordSysName: coordSysName, coordSysDims: [], axisMap: createHashMap(), categoryAxisMap: createHashMap() }; var fetch = fetchers[coordSysName]; if (fetch) { fetch(seriesModel, result, result.axisMap, result.categoryAxisMap); return result; } } var fetchers = { cartesian2d: function (seriesModel, result, axisMap, categoryAxisMap) { var xAxisModel = seriesModel.getReferringComponents('xAxis')[0]; var yAxisModel = seriesModel.getReferringComponents('yAxis')[0]; if (__DEV__) { if (!xAxisModel) { throw new Error('xAxis "' + retrieve( seriesModel.get('xAxisIndex'), seriesModel.get('xAxisId'), 0 ) + '" not found'); } if (!yAxisModel) { throw new Error('yAxis "' + retrieve( seriesModel.get('xAxisIndex'), seriesModel.get('yAxisId'), 0 ) + '" not found'); } } result.coordSysDims = ['x', 'y']; axisMap.set('x', xAxisModel); axisMap.set('y', yAxisModel); if (isCategory(xAxisModel)) { categoryAxisMap.set('x', xAxisModel); result.firstCategoryDimIndex = 0; } if (isCategory(yAxisModel)) { categoryAxisMap.set('y', yAxisModel); result.firstCategoryDimIndex = 1; } }, singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) { var singleAxisModel = seriesModel.getReferringComponents('singleAxis')[0]; if (__DEV__) { if (!singleAxisModel) { throw new Error('singleAxis should be specified.'); } } result.coordSysDims = ['single']; axisMap.set('single', singleAxisModel); if (isCategory(singleAxisModel)) { categoryAxisMap.set('single', singleAxisModel); result.firstCategoryDimIndex = 0; } }, polar: function (seriesModel, result, axisMap, categoryAxisMap) { var polarModel = seriesModel.getReferringComponents('polar')[0]; var radiusAxisModel = polarModel.findAxisModel('radiusAxis'); var angleAxisModel = polarModel.findAxisModel('angleAxis'); if (__DEV__) { if (!angleAxisModel) { throw new Error('angleAxis option not found'); } if (!radiusAxisModel) { throw new Error('radiusAxis option not found'); } } result.coordSysDims = ['radius', 'angle']; axisMap.set('radius', radiusAxisModel); axisMap.set('angle', angleAxisModel); if (isCategory(radiusAxisModel)) { categoryAxisMap.set('radius', radiusAxisModel); result.firstCategoryDimIndex = 0; } if (isCategory(angleAxisModel)) { categoryAxisMap.set('angle', angleAxisModel); result.firstCategoryDimIndex = 1; } }, geo: function (seriesModel, result, axisMap, categoryAxisMap) { result.coordSysDims = ['lng', 'lat']; }, parallel: function (seriesModel, result, axisMap, categoryAxisMap) { var ecModel = seriesModel.ecModel; var parallelModel = ecModel.getComponent( 'parallel', seriesModel.get('parallelIndex') ); var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice(); each$1(parallelModel.parallelAxisIndex, function (axisIndex, index) { var axisModel = ecModel.getComponent('parallelAxis', axisIndex); var axisDim = coordSysDims[index]; axisMap.set(axisDim, axisModel); if (isCategory(axisModel) && result.firstCategoryDimIndex == null) { categoryAxisMap.set(axisDim, axisModel); result.firstCategoryDimIndex = index; } }); } }; function isCategory(axisModel) { return axisModel.get('type') === 'category'; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Avoid typo. var SOURCE_FORMAT_ORIGINAL = 'original'; var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows'; var SOURCE_FORMAT_OBJECT_ROWS = 'objectRows'; var SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns'; var SOURCE_FORMAT_UNKNOWN = 'unknown'; // ??? CHANGE A NAME var SOURCE_FORMAT_TYPED_ARRAY = 'typedArray'; var SERIES_LAYOUT_BY_COLUMN = 'column'; var SERIES_LAYOUT_BY_ROW = 'row'; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * [sourceFormat] * * + "original": * This format is only used in series.data, where * itemStyle can be specified in data item. * * + "arrayRows": * [ * ['product', 'score', 'amount'], * ['Matcha Latte', 89.3, 95.8], * ['Milk Tea', 92.1, 89.4], * ['Cheese Cocoa', 94.4, 91.2], * ['Walnut Brownie', 85.4, 76.9] * ] * * + "objectRows": * [ * {product: 'Matcha Latte', score: 89.3, amount: 95.8}, * {product: 'Milk Tea', score: 92.1, amount: 89.4}, * {product: 'Cheese Cocoa', score: 94.4, amount: 91.2}, * {product: 'Walnut Brownie', score: 85.4, amount: 76.9} * ] * * + "keyedColumns": * { * 'product': ['Matcha Latte', 'Milk Tea', 'Cheese Cocoa', 'Walnut Brownie'], * 'count': [823, 235, 1042, 988], * 'score': [95.8, 81.4, 91.2, 76.9] * } * * + "typedArray" * * + "unknown" */ /** * @constructor * @param {Object} fields * @param {string} fields.sourceFormat * @param {Array|Object} fields.fromDataset * @param {Array|Object} [fields.data] * @param {string} [seriesLayoutBy='column'] * @param {Array.} [dimensionsDefine] * @param {Objet|HashMap} [encodeDefine] * @param {number} [startIndex=0] * @param {number} [dimensionsDetectCount] */ function Source(fields) { /** * @type {boolean} */ this.fromDataset = fields.fromDataset; /** * Not null/undefined. * @type {Array|Object} */ this.data = fields.data || ( fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : [] ); /** * See also "detectSourceFormat". * Not null/undefined. * @type {string} */ this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; /** * 'row' or 'column' * Not null/undefined. * @type {string} seriesLayoutBy */ this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN; /** * dimensions definition in option. * can be null/undefined. * @type {Array.} */ this.dimensionsDefine = fields.dimensionsDefine; /** * encode definition in option. * can be null/undefined. * @type {Objet|HashMap} */ this.encodeDefine = fields.encodeDefine && createHashMap(fields.encodeDefine); /** * Not null/undefined, uint. * @type {number} */ this.startIndex = fields.startIndex || 0; /** * Can be null/undefined (when unknown), uint. * @type {number} */ this.dimensionsDetectCount = fields.dimensionsDetectCount; } /** * Wrap original series data for some compatibility cases. */ Source.seriesDataToSource = function (data) { return new Source({ data: data, sourceFormat: isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL, fromDataset: false }); }; enableClassCheck(Source); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$3 = makeInner(); /** * @see {module:echarts/data/Source} * @param {module:echarts/component/dataset/DatasetModel} datasetModel * @return {string} sourceFormat */ function detectSourceFormat(datasetModel) { var data = datasetModel.option.source; var sourceFormat = SOURCE_FORMAT_UNKNOWN; if (isTypedArray(data)) { sourceFormat = SOURCE_FORMAT_TYPED_ARRAY; } else if (isArray(data)) { // FIXME Whether tolerate null in top level array? if (data.length === 0) { sourceFormat = SOURCE_FORMAT_ARRAY_ROWS; } for (var i = 0, len = data.length; i < len; i++) { var item = data[i]; if (item == null) { continue; } else if (isArray(item)) { sourceFormat = SOURCE_FORMAT_ARRAY_ROWS; break; } else if (isObject$1(item)) { sourceFormat = SOURCE_FORMAT_OBJECT_ROWS; break; } } } else if (isObject$1(data)) { for (var key in data) { if (data.hasOwnProperty(key) && isArrayLike(data[key])) { sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS; break; } } } else if (data != null) { throw new Error('Invalid data'); } inner$3(datasetModel).sourceFormat = sourceFormat; } /** * [Scenarios]: * (1) Provide source data directly: * series: { * encode: {...}, * dimensions: [...] * seriesLayoutBy: 'row', * data: [[...]] * } * (2) Refer to datasetModel. * series: [{ * encode: {...} * // Ignore datasetIndex means `datasetIndex: 0` * // and the dimensions defination in dataset is used * }, { * encode: {...}, * seriesLayoutBy: 'column', * datasetIndex: 1 * }] * * Get data from series itself or datset. * @return {module:echarts/data/Source} source */ function getSource(seriesModel) { return inner$3(seriesModel).source; } /** * MUST be called before mergeOption of all series. * @param {module:echarts/model/Global} ecModel */ function resetSourceDefaulter(ecModel) { // `datasetMap` is used to make default encode. inner$3(ecModel).datasetMap = createHashMap(); } /** * [Caution]: * MUST be called after series option merged and * before "series.getInitailData()" called. * * [The rule of making default encode]: * Category axis (if exists) alway map to the first dimension. * Each other axis occupies a subsequent dimension. * * [Why make default encode]: * Simplify the typing of encode in option, avoiding the case like that: * series: [{encode: {x: 0, y: 1}}, {encode: {x: 0, y: 2}}, {encode: {x: 0, y: 3}}], * where the "y" have to be manually typed as "1, 2, 3, ...". * * @param {module:echarts/model/Series} seriesModel */ function prepareSource(seriesModel) { var seriesOption = seriesModel.option; var data = seriesOption.data; var sourceFormat = isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL; var fromDataset = false; var seriesLayoutBy = seriesOption.seriesLayoutBy; var sourceHeader = seriesOption.sourceHeader; var dimensionsDefine = seriesOption.dimensions; var datasetModel = getDatasetModel(seriesModel); if (datasetModel) { var datasetOption = datasetModel.option; data = datasetOption.source; sourceFormat = inner$3(datasetModel).sourceFormat; fromDataset = true; // These settings from series has higher priority. seriesLayoutBy = seriesLayoutBy || datasetOption.seriesLayoutBy; sourceHeader == null && (sourceHeader = datasetOption.sourceHeader); dimensionsDefine = dimensionsDefine || datasetOption.dimensions; } var completeResult = completeBySourceData( data, sourceFormat, seriesLayoutBy, sourceHeader, dimensionsDefine ); // Note: dataset option does not have `encode`. var encodeDefine = seriesOption.encode; if (!encodeDefine && datasetModel) { encodeDefine = makeDefaultEncode( seriesModel, datasetModel, data, sourceFormat, seriesLayoutBy, completeResult ); } inner$3(seriesModel).source = new Source({ data: data, fromDataset: fromDataset, seriesLayoutBy: seriesLayoutBy, sourceFormat: sourceFormat, dimensionsDefine: completeResult.dimensionsDefine, startIndex: completeResult.startIndex, dimensionsDetectCount: completeResult.dimensionsDetectCount, encodeDefine: encodeDefine }); } // return {startIndex, dimensionsDefine, dimensionsCount} function completeBySourceData(data, sourceFormat, seriesLayoutBy, sourceHeader, dimensionsDefine) { if (!data) { return {dimensionsDefine: normalizeDimensionsDefine(dimensionsDefine)}; } var dimensionsDetectCount; var startIndex; var findPotentialName; if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) { // Rule: Most of the first line are string: it is header. // Caution: consider a line with 5 string and 1 number, // it still can not be sure it is a head, because the // 5 string may be 5 values of category columns. if (sourceHeader === 'auto' || sourceHeader == null) { arrayRowsTravelFirst(function (val) { // '-' is regarded as null/undefined. if (val != null && val !== '-') { if (isString(val)) { startIndex == null && (startIndex = 1); } else { startIndex = 0; } } // 10 is an experience number, avoid long loop. }, seriesLayoutBy, data, 10); } else { startIndex = sourceHeader ? 1 : 0; } if (!dimensionsDefine && startIndex === 1) { dimensionsDefine = []; arrayRowsTravelFirst(function (val, index) { dimensionsDefine[index] = val != null ? val : ''; }, seriesLayoutBy, data); } dimensionsDetectCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === SERIES_LAYOUT_BY_ROW ? data.length : data[0] ? data[0].length : null; } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) { if (!dimensionsDefine) { dimensionsDefine = objectRowsCollectDimensions(data); findPotentialName = true; } } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) { if (!dimensionsDefine) { dimensionsDefine = []; findPotentialName = true; each$1(data, function (colArr, key) { dimensionsDefine.push(key); }); } } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) { var value0 = getDataItemValue(data[0]); dimensionsDetectCount = isArray(value0) && value0.length || 1; } else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) { if (__DEV__) { assert$1(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.'); } } var potentialNameDimIndex; if (findPotentialName) { each$1(dimensionsDefine, function (dim, idx) { if ((isObject$1(dim) ? dim.name : dim) === 'name') { potentialNameDimIndex = idx; } }); } return { startIndex: startIndex, dimensionsDefine: normalizeDimensionsDefine(dimensionsDefine), dimensionsDetectCount: dimensionsDetectCount, potentialNameDimIndex: potentialNameDimIndex // TODO: potentialIdDimIdx }; } // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'], // which is reasonable. But dimension name is duplicated. // Returns undefined or an array contains only object without null/undefiend or string. function normalizeDimensionsDefine(dimensionsDefine) { if (!dimensionsDefine) { // The meaning of null/undefined is different from empty array. return; } var nameMap = createHashMap(); return map(dimensionsDefine, function (item, index) { item = extend({}, isObject$1(item) ? item : {name: item}); // User can set null in dimensions. // We dont auto specify name, othewise a given name may // cause it be refered unexpectedly. if (item.name == null) { return item; } // Also consider number form like 2012. item.name += ''; // User may also specify displayName. // displayName will always exists except user not // specified or dim name is not specified or detected. // (A auto generated dim name will not be used as // displayName). if (item.displayName == null) { item.displayName = item.name; } var exist = nameMap.get(item.name); if (!exist) { nameMap.set(item.name, {count: 1}); } else { item.name += '-' + exist.count++; } return item; }); } function arrayRowsTravelFirst(cb, seriesLayoutBy, data, maxLoop) { maxLoop == null && (maxLoop = Infinity); if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) { for (var i = 0; i < data.length && i < maxLoop; i++) { cb(data[i] ? data[i][0] : null, i); } } else { var value0 = data[0] || []; for (var i = 0; i < value0.length && i < maxLoop; i++) { cb(value0[i], i); } } } function objectRowsCollectDimensions(data) { var firstIndex = 0; var obj; while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line if (obj) { var dimensions = []; each$1(obj, function (value, key) { dimensions.push(key); }); return dimensions; } } // ??? TODO merge to completedimensions, where also has // default encode making logic. And the default rule // should depends on series? consider 'map'. function makeDefaultEncode( seriesModel, datasetModel, data, sourceFormat, seriesLayoutBy, completeResult ) { var coordSysDefine = getCoordSysDefineBySeries(seriesModel); var encode = {}; // var encodeTooltip = []; // var encodeLabel = []; var encodeItemName = []; var encodeSeriesName = []; var seriesType = seriesModel.subType; // ??? TODO refactor: provide by series itself. // Consider the case: 'map' series is based on geo coordSys, // 'graph', 'heatmap' can be based on cartesian. But can not // give default rule simply here. var nSeriesMap = createHashMap(['pie', 'map', 'funnel']); var cSeriesMap = createHashMap([ 'line', 'bar', 'pictorialBar', 'scatter', 'effectScatter', 'candlestick', 'boxplot' ]); // Usually in this case series will use the first data // dimension as the "value" dimension, or other default // processes respectively. if (coordSysDefine && cSeriesMap.get(seriesType) != null) { var ecModel = seriesModel.ecModel; var datasetMap = inner$3(ecModel).datasetMap; var key = datasetModel.uid + '_' + seriesLayoutBy; var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {categoryWayDim: 1, valueWayDim: 0}); // TODO // Auto detect first time axis and do arrangement. each$1(coordSysDefine.coordSysDims, function (coordDim) { // In value way. if (coordSysDefine.firstCategoryDimIndex == null) { var dataDim = datasetRecord.valueWayDim++; encode[coordDim] = dataDim; // ??? TODO give a better default series name rule? // especially when encode x y specified. // consider: when mutiple series share one dimension // category axis, series name should better use // the other dimsion name. On the other hand, use // both dimensions name. encodeSeriesName.push(dataDim); // encodeTooltip.push(dataDim); // encodeLabel.push(dataDim); } // In category way, category axis. else if (coordSysDefine.categoryAxisMap.get(coordDim)) { encode[coordDim] = 0; encodeItemName.push(0); } // In category way, non-category axis. else { var dataDim = datasetRecord.categoryWayDim++; encode[coordDim] = dataDim; // encodeTooltip.push(dataDim); // encodeLabel.push(dataDim); encodeSeriesName.push(dataDim); } }); } // Do not make a complex rule! Hard to code maintain and not necessary. // ??? TODO refactor: provide by series itself. // [{name: ..., value: ...}, ...] like: else if (nSeriesMap.get(seriesType) != null) { // Find the first not ordinal. (5 is an experience value) var firstNotOrdinal; for (var i = 0; i < 5 && firstNotOrdinal == null; i++) { if (!doGuessOrdinal( data, sourceFormat, seriesLayoutBy, completeResult.dimensionsDefine, completeResult.startIndex, i )) { firstNotOrdinal = i; } } if (firstNotOrdinal != null) { encode.value = firstNotOrdinal; var nameDimIndex = completeResult.potentialNameDimIndex || Math.max(firstNotOrdinal - 1, 0); // By default, label use itemName in charts. // So we dont set encodeLabel here. encodeSeriesName.push(nameDimIndex); encodeItemName.push(nameDimIndex); // encodeTooltip.push(firstNotOrdinal); } } // encodeTooltip.length && (encode.tooltip = encodeTooltip); // encodeLabel.length && (encode.label = encodeLabel); encodeItemName.length && (encode.itemName = encodeItemName); encodeSeriesName.length && (encode.seriesName = encodeSeriesName); return encode; } /** * If return null/undefined, indicate that should not use datasetModel. */ function getDatasetModel(seriesModel) { var option = seriesModel.option; // Caution: consider the scenario: // A dataset is declared and a series is not expected to use the dataset, // and at the beginning `setOption({series: { noData })` (just prepare other // option but no data), then `setOption({series: {data: [...]}); In this case, // the user should set an empty array to avoid that dataset is used by default. var thisData = option.data; if (!thisData) { return seriesModel.ecModel.getComponent('dataset', option.datasetIndex || 0); } } /** * The rule should not be complex, otherwise user might not * be able to known where the data is wrong. * The code is ugly, but how to make it neat? * * @param {module:echars/data/Source} source * @param {number} dimIndex * @return {boolean} Whether ordinal. */ function guessOrdinal(source, dimIndex) { return doGuessOrdinal( source.data, source.sourceFormat, source.seriesLayoutBy, source.dimensionsDefine, source.startIndex, dimIndex ); } // dimIndex may be overflow source data. function doGuessOrdinal( data, sourceFormat, seriesLayoutBy, dimensionsDefine, startIndex, dimIndex ) { var result; // Experience value. var maxLoop = 5; if (isTypedArray(data)) { return false; } // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine // always exists in source. var dimName; if (dimensionsDefine) { dimName = dimensionsDefine[dimIndex]; dimName = isObject$1(dimName) ? dimName.name : dimName; } if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) { if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) { var sample = data[dimIndex]; for (var i = 0; i < (sample || []).length && i < maxLoop; i++) { if ((result = detectValue(sample[startIndex + i])) != null) { return result; } } } else { for (var i = 0; i < data.length && i < maxLoop; i++) { var row = data[startIndex + i]; if (row && (result = detectValue(row[dimIndex])) != null) { return result; } } } } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) { if (!dimName) { return; } for (var i = 0; i < data.length && i < maxLoop; i++) { var item = data[i]; if (item && (result = detectValue(item[dimName])) != null) { return result; } } } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) { if (!dimName) { return; } var sample = data[dimName]; if (!sample || isTypedArray(sample)) { return false; } for (var i = 0; i < sample.length && i < maxLoop; i++) { if ((result = detectValue(sample[i])) != null) { return result; } } } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) { for (var i = 0; i < data.length && i < maxLoop; i++) { var item = data[i]; var val = getDataItemValue(item); if (!isArray(val)) { return false; } if ((result = detectValue(val[dimIndex])) != null) { return result; } } } function detectValue(val) { // Consider usage convenience, '1', '2' will be treated as "number". // `isFinit('')` get `true`. if (val != null && isFinite(val) && val !== '') { return false; } else if (isString(val) && val !== '-') { return true; } } return false; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * ECharts global model * * @module {echarts/model/Global} */ /** * Caution: If the mechanism should be changed some day, these cases * should be considered: * * (1) In `merge option` mode, if using the same option to call `setOption` * many times, the result should be the same (try our best to ensure that). * (2) In `merge option` mode, if a component has no id/name specified, it * will be merged by index, and the result sequence of the components is * consistent to the original sequence. * (3) `reset` feature (in toolbox). Find detailed info in comments about * `mergeOption` in module:echarts/model/OptionManager. */ var OPTION_INNER_KEY = '\0_ec_inner'; /** * @alias module:echarts/model/Global * * @param {Object} option * @param {module:echarts/model/Model} parentModel * @param {Object} theme */ var GlobalModel = Model.extend({ init: function (option, parentModel, theme, optionManager) { theme = theme || {}; this.option = null; // Mark as not initialized. /** * @type {module:echarts/model/Model} * @private */ this._theme = new Model(theme); /** * @type {module:echarts/model/OptionManager} */ this._optionManager = optionManager; }, setOption: function (option, optionPreprocessorFuncs) { assert$1( !(OPTION_INNER_KEY in option), 'please use chart.getOption()' ); this._optionManager.setOption(option, optionPreprocessorFuncs); this.resetOption(null); }, /** * @param {string} type null/undefined: reset all. * 'recreate': force recreate all. * 'timeline': only reset timeline option * 'media': only reset media query option * @return {boolean} Whether option changed. */ resetOption: function (type) { var optionChanged = false; var optionManager = this._optionManager; if (!type || type === 'recreate') { var baseOption = optionManager.mountOption(type === 'recreate'); if (!this.option || type === 'recreate') { initBase.call(this, baseOption); } else { this.restoreData(); this.mergeOption(baseOption); } optionChanged = true; } if (type === 'timeline' || type === 'media') { this.restoreData(); } if (!type || type === 'recreate' || type === 'timeline') { var timelineOption = optionManager.getTimelineOption(this); timelineOption && (this.mergeOption(timelineOption), optionChanged = true); } if (!type || type === 'recreate' || type === 'media') { var mediaOptions = optionManager.getMediaOption(this, this._api); if (mediaOptions.length) { each$1(mediaOptions, function (mediaOption) { this.mergeOption(mediaOption, optionChanged = true); }, this); } } return optionChanged; }, /** * @protected */ mergeOption: function (newOption) { var option = this.option; var componentsMap = this._componentsMap; var newCptTypes = []; resetSourceDefaulter(this); // If no component class, merge directly. // For example: color, animaiton options, etc. each$1(newOption, function (componentOption, mainType) { if (componentOption == null) { return; } if (!ComponentModel.hasClass(mainType)) { // globalSettingTask.dirty(); option[mainType] = option[mainType] == null ? clone(componentOption) : merge(option[mainType], componentOption, true); } else if (mainType) { newCptTypes.push(mainType); } }); ComponentModel.topologicalTravel( newCptTypes, ComponentModel.getAllClassMainTypes(), visitComponent, this ); function visitComponent(mainType, dependencies) { var newCptOptionList = normalizeToArray(newOption[mainType]); var mapResult = mappingToExists( componentsMap.get(mainType), newCptOptionList ); makeIdAndName(mapResult); // Set mainType and complete subType. each$1(mapResult, function (item, index) { var opt = item.option; if (isObject$1(opt)) { item.keyInfo.mainType = mainType; item.keyInfo.subType = determineSubType(mainType, opt, item.exist); } }); var dependentModels = getComponentsByTypes( componentsMap, dependencies ); option[mainType] = []; componentsMap.set(mainType, []); each$1(mapResult, function (resultItem, index) { var componentModel = resultItem.exist; var newCptOption = resultItem.option; assert$1( isObject$1(newCptOption) || componentModel, 'Empty component definition' ); // Consider where is no new option and should be merged using {}, // see removeEdgeAndAdd in topologicalTravel and // ComponentModel.getAllClassMainTypes. if (!newCptOption) { componentModel.mergeOption({}, this); componentModel.optionUpdated({}, false); } else { var ComponentModelClass = ComponentModel.getClass( mainType, resultItem.keyInfo.subType, true ); if (componentModel && componentModel instanceof ComponentModelClass) { componentModel.name = resultItem.keyInfo.name; // componentModel.settingTask && componentModel.settingTask.dirty(); componentModel.mergeOption(newCptOption, this); componentModel.optionUpdated(newCptOption, false); } else { // PENDING Global as parent ? var extraOpt = extend( { dependentModels: dependentModels, componentIndex: index }, resultItem.keyInfo ); componentModel = new ComponentModelClass( newCptOption, this, this, extraOpt ); extend(componentModel, extraOpt); componentModel.init(newCptOption, this, this, extraOpt); // Call optionUpdated after init. // newCptOption has been used as componentModel.option // and may be merged with theme and default, so pass null // to avoid confusion. componentModel.optionUpdated(null, true); } } componentsMap.get(mainType)[index] = componentModel; option[mainType][index] = componentModel.option; }, this); // Backup series for filtering. if (mainType === 'series') { createSeriesIndices(this, componentsMap.get('series')); } } this._seriesIndicesMap = createHashMap( this._seriesIndices = this._seriesIndices || [] ); }, /** * Get option for output (cloned option and inner info removed) * @public * @return {Object} */ getOption: function () { var option = clone(this.option); each$1(option, function (opts, mainType) { if (ComponentModel.hasClass(mainType)) { var opts = normalizeToArray(opts); for (var i = opts.length - 1; i >= 0; i--) { // Remove options with inner id. if (isIdInner(opts[i])) { opts.splice(i, 1); } } option[mainType] = opts; } }); delete option[OPTION_INNER_KEY]; return option; }, /** * @return {module:echarts/model/Model} */ getTheme: function () { return this._theme; }, /** * @param {string} mainType * @param {number} [idx=0] * @return {module:echarts/model/Component} */ getComponent: function (mainType, idx) { var list = this._componentsMap.get(mainType); if (list) { return list[idx || 0]; } }, /** * If none of index and id and name used, return all components with mainType. * @param {Object} condition * @param {string} condition.mainType * @param {string} [condition.subType] If ignore, only query by mainType * @param {number|Array.} [condition.index] Either input index or id or name. * @param {string|Array.} [condition.id] Either input index or id or name. * @param {string|Array.} [condition.name] Either input index or id or name. * @return {Array.} */ queryComponents: function (condition) { var mainType = condition.mainType; if (!mainType) { return []; } var index = condition.index; var id = condition.id; var name = condition.name; var cpts = this._componentsMap.get(mainType); if (!cpts || !cpts.length) { return []; } var result; if (index != null) { if (!isArray(index)) { index = [index]; } result = filter(map(index, function (idx) { return cpts[idx]; }), function (val) { return !!val; }); } else if (id != null) { var isIdArray = isArray(id); result = filter(cpts, function (cpt) { return (isIdArray && indexOf(id, cpt.id) >= 0) || (!isIdArray && cpt.id === id); }); } else if (name != null) { var isNameArray = isArray(name); result = filter(cpts, function (cpt) { return (isNameArray && indexOf(name, cpt.name) >= 0) || (!isNameArray && cpt.name === name); }); } else { // Return all components with mainType result = cpts.slice(); } return filterBySubType(result, condition); }, /** * The interface is different from queryComponents, * which is convenient for inner usage. * * @usage * var result = findComponents( * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}} * ); * var result = findComponents( * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}} * ); * var result = findComponents( * {mainType: 'series'}, * function (model, index) {...} * ); * // result like [component0, componnet1, ...] * * @param {Object} condition * @param {string} condition.mainType Mandatory. * @param {string} [condition.subType] Optional. * @param {Object} [condition.query] like {xxxIndex, xxxId, xxxName}, * where xxx is mainType. * If query attribute is null/undefined or has no index/id/name, * do not filtering by query conditions, which is convenient for * no-payload situations or when target of action is global. * @param {Function} [condition.filter] parameter: component, return boolean. * @return {Array.} */ findComponents: function (condition) { var query = condition.query; var mainType = condition.mainType; var queryCond = getQueryCond(query); var result = queryCond ? this.queryComponents(queryCond) : this._componentsMap.get(mainType); return doFilter(filterBySubType(result, condition)); function getQueryCond(q) { var indexAttr = mainType + 'Index'; var idAttr = mainType + 'Id'; var nameAttr = mainType + 'Name'; return q && ( q[indexAttr] != null || q[idAttr] != null || q[nameAttr] != null ) ? { mainType: mainType, // subType will be filtered finally. index: q[indexAttr], id: q[idAttr], name: q[nameAttr] } : null; } function doFilter(res) { return condition.filter ? filter(res, condition.filter) : res; } }, /** * @usage * eachComponent('legend', function (legendModel, index) { * ... * }); * eachComponent(function (componentType, model, index) { * // componentType does not include subType * // (componentType is 'xxx' but not 'xxx.aa') * }); * eachComponent( * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}, * function (model, index) {...} * ); * eachComponent( * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}, * function (model, index) {...} * ); * * @param {string|Object=} mainType When mainType is object, the definition * is the same as the method 'findComponents'. * @param {Function} cb * @param {*} context */ eachComponent: function (mainType, cb, context) { var componentsMap = this._componentsMap; if (typeof mainType === 'function') { context = cb; cb = mainType; componentsMap.each(function (components, componentType) { each$1(components, function (component, index) { cb.call(context, componentType, component, index); }); }); } else if (isString(mainType)) { each$1(componentsMap.get(mainType), cb, context); } else if (isObject$1(mainType)) { var queryResult = this.findComponents(mainType); each$1(queryResult, cb, context); } }, /** * @param {string} name * @return {Array.} */ getSeriesByName: function (name) { var series = this._componentsMap.get('series'); return filter(series, function (oneSeries) { return oneSeries.name === name; }); }, /** * @param {number} seriesIndex * @return {module:echarts/model/Series} */ getSeriesByIndex: function (seriesIndex) { return this._componentsMap.get('series')[seriesIndex]; }, /** * Get series list before filtered by type. * FIXME: rename to getRawSeriesByType? * * @param {string} subType * @return {Array.} */ getSeriesByType: function (subType) { var series = this._componentsMap.get('series'); return filter(series, function (oneSeries) { return oneSeries.subType === subType; }); }, /** * @return {Array.} */ getSeries: function () { return this._componentsMap.get('series').slice(); }, /** * @return {number} */ getSeriesCount: function () { return this._componentsMap.get('series').length; }, /** * After filtering, series may be different * frome raw series. * * @param {Function} cb * @param {*} context */ eachSeries: function (cb, context) { assertSeriesInitialized(this); each$1(this._seriesIndices, function (rawSeriesIndex) { var series = this._componentsMap.get('series')[rawSeriesIndex]; cb.call(context, series, rawSeriesIndex); }, this); }, /** * Iterate raw series before filtered. * * @param {Function} cb * @param {*} context */ eachRawSeries: function (cb, context) { each$1(this._componentsMap.get('series'), cb, context); }, /** * After filtering, series may be different. * frome raw series. * * @param {string} subType. * @param {Function} cb * @param {*} context */ eachSeriesByType: function (subType, cb, context) { assertSeriesInitialized(this); each$1(this._seriesIndices, function (rawSeriesIndex) { var series = this._componentsMap.get('series')[rawSeriesIndex]; if (series.subType === subType) { cb.call(context, series, rawSeriesIndex); } }, this); }, /** * Iterate raw series before filtered of given type. * * @parma {string} subType * @param {Function} cb * @param {*} context */ eachRawSeriesByType: function (subType, cb, context) { return each$1(this.getSeriesByType(subType), cb, context); }, /** * @param {module:echarts/model/Series} seriesModel */ isSeriesFiltered: function (seriesModel) { assertSeriesInitialized(this); return this._seriesIndicesMap.get(seriesModel.componentIndex) == null; }, /** * @return {Array.} */ getCurrentSeriesIndices: function () { return (this._seriesIndices || []).slice(); }, /** * @param {Function} cb * @param {*} context */ filterSeries: function (cb, context) { assertSeriesInitialized(this); var filteredSeries = filter( this._componentsMap.get('series'), cb, context ); createSeriesIndices(this, filteredSeries); }, restoreData: function (payload) { var componentsMap = this._componentsMap; createSeriesIndices(this, componentsMap.get('series')); var componentTypes = []; componentsMap.each(function (components, componentType) { componentTypes.push(componentType); }); ComponentModel.topologicalTravel( componentTypes, ComponentModel.getAllClassMainTypes(), function (componentType, dependencies) { each$1(componentsMap.get(componentType), function (component) { (componentType !== 'series' || !isNotTargetSeries(component, payload)) && component.restoreData(); }); } ); } }); function isNotTargetSeries(seriesModel, payload) { if (payload) { var index = payload.seiresIndex; var id = payload.seriesId; var name = payload.seriesName; return (index != null && seriesModel.componentIndex !== index) || (id != null && seriesModel.id !== id) || (name != null && seriesModel.name !== name); } } /** * @inner */ function mergeTheme(option, theme) { // PENDING // NOT use `colorLayer` in theme if option has `color` var notMergeColorLayer = option.color && !option.colorLayer; each$1(theme, function (themeItem, name) { if (name === 'colorLayer' && notMergeColorLayer) { return; } // 如果有 component model 则把具体的 merge 逻辑交给该 model 处理 if (!ComponentModel.hasClass(name)) { if (typeof themeItem === 'object') { option[name] = !option[name] ? clone(themeItem) : merge(option[name], themeItem, false); } else { if (option[name] == null) { option[name] = themeItem; } } } }); } function initBase(baseOption) { baseOption = baseOption; // Using OPTION_INNER_KEY to mark that this option can not be used outside, // i.e. `chart.setOption(chart.getModel().option);` is forbiden. this.option = {}; this.option[OPTION_INNER_KEY] = 1; /** * Init with series: [], in case of calling findSeries method * before series initialized. * @type {Object.>} * @private */ this._componentsMap = createHashMap({series: []}); /** * Mapping between filtered series list and raw series list. * key: filtered series indices, value: raw series indices. * @type {Array.} * @private */ this._seriesIndices; this._seriesIndicesMap; mergeTheme(baseOption, this._theme.option); // TODO Needs clone when merging to the unexisted property merge(baseOption, globalDefault, false); this.mergeOption(baseOption); } /** * @inner * @param {Array.|string} types model types * @return {Object} key: {string} type, value: {Array.} models */ function getComponentsByTypes(componentsMap, types) { if (!isArray(types)) { types = types ? [types] : []; } var ret = {}; each$1(types, function (type) { ret[type] = (componentsMap.get(type) || []).slice(); }); return ret; } /** * @inner */ function determineSubType(mainType, newCptOption, existComponent) { var subType = newCptOption.type ? newCptOption.type : existComponent ? existComponent.subType // Use determineSubType only when there is no existComponent. : ComponentModel.determineSubType(mainType, newCptOption); // tooltip, markline, markpoint may always has no subType return subType; } /** * @inner */ function createSeriesIndices(ecModel, seriesModels) { ecModel._seriesIndicesMap = createHashMap( ecModel._seriesIndices = map(seriesModels, function (series) { return series.componentIndex; }) || [] ); } /** * @inner */ function filterBySubType(components, condition) { // Using hasOwnProperty for restrict. Consider // subType is undefined in user payload. return condition.hasOwnProperty('subType') ? filter(components, function (cpt) { return cpt.subType === condition.subType; }) : components; } /** * @inner */ function assertSeriesInitialized(ecModel) { // Components that use _seriesIndices should depends on series component, // which make sure that their initialization is after series. if (__DEV__) { if (!ecModel._seriesIndices) { throw new Error('Option should contains series.'); } } } mixin(GlobalModel, colorPaletteMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var echartsAPIList = [ 'getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption', 'getViewOfComponentModel', 'getViewOfSeriesModel' ]; // And `getCoordinateSystems` and `getComponentByElement` will be injected in echarts.js function ExtensionAPI(chartInstance) { each$1(echartsAPIList, function (name) { this[name] = bind(chartInstance[name], chartInstance); }, this); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var coordinateSystemCreators = {}; function CoordinateSystemManager() { this._coordinateSystems = []; } CoordinateSystemManager.prototype = { constructor: CoordinateSystemManager, create: function (ecModel, api) { var coordinateSystems = []; each$1(coordinateSystemCreators, function (creater, type) { var list = creater.create(ecModel, api); coordinateSystems = coordinateSystems.concat(list || []); }); this._coordinateSystems = coordinateSystems; }, update: function (ecModel, api) { each$1(this._coordinateSystems, function (coordSys) { coordSys.update && coordSys.update(ecModel, api); }); }, getCoordinateSystems: function () { return this._coordinateSystems.slice(); } }; CoordinateSystemManager.register = function (type, coordinateSystemCreator) { coordinateSystemCreators[type] = coordinateSystemCreator; }; CoordinateSystemManager.get = function (type) { return coordinateSystemCreators[type]; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * ECharts option manager * * @module {echarts/model/OptionManager} */ var each$4 = each$1; var clone$3 = clone; var map$1 = map; var merge$1 = merge; var QUERY_REG = /^(min|max)?(.+)$/; /** * TERM EXPLANATIONS: * * [option]: * * An object that contains definitions of components. For example: * var option = { * title: {...}, * legend: {...}, * visualMap: {...}, * series: [ * {data: [...]}, * {data: [...]}, * ... * ] * }; * * [rawOption]: * * An object input to echarts.setOption. 'rawOption' may be an * 'option', or may be an object contains multi-options. For example: * var option = { * baseOption: { * title: {...}, * legend: {...}, * series: [ * {data: [...]}, * {data: [...]}, * ... * ] * }, * timeline: {...}, * options: [ * {title: {...}, series: {data: [...]}}, * {title: {...}, series: {data: [...]}}, * ... * ], * media: [ * { * query: {maxWidth: 320}, * option: {series: {x: 20}, visualMap: {show: false}} * }, * { * query: {minWidth: 320, maxWidth: 720}, * option: {series: {x: 500}, visualMap: {show: true}} * }, * { * option: {series: {x: 1200}, visualMap: {show: true}} * } * ] * }; * * @alias module:echarts/model/OptionManager * @param {module:echarts/ExtensionAPI} api */ function OptionManager(api) { /** * @private * @type {module:echarts/ExtensionAPI} */ this._api = api; /** * @private * @type {Array.} */ this._timelineOptions = []; /** * @private * @type {Array.} */ this._mediaList = []; /** * @private * @type {Object} */ this._mediaDefault; /** * -1, means default. * empty means no media. * @private * @type {Array.} */ this._currentMediaIndices = []; /** * @private * @type {Object} */ this._optionBackup; /** * @private * @type {Object} */ this._newBaseOption; } // timeline.notMerge is not supported in ec3. Firstly there is rearly // case that notMerge is needed. Secondly supporting 'notMerge' requires // rawOption cloned and backuped when timeline changed, which does no // good to performance. What's more, that both timeline and setOption // method supply 'notMerge' brings complex and some problems. // Consider this case: // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false); // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false); OptionManager.prototype = { constructor: OptionManager, /** * @public * @param {Object} rawOption Raw option. * @param {module:echarts/model/Global} ecModel * @param {Array.} optionPreprocessorFuncs * @return {Object} Init option */ setOption: function (rawOption, optionPreprocessorFuncs) { if (rawOption) { // That set dat primitive is dangerous if user reuse the data when setOption again. each$1(normalizeToArray(rawOption.series), function (series) { series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data); }); } // Caution: some series modify option data, if do not clone, // it should ensure that the repeat modify correctly // (create a new object when modify itself). rawOption = clone$3(rawOption); // FIXME // 如果 timeline options 或者 media 中设置了某个属性,而baseOption中没有设置,则进行警告。 var oldOptionBackup = this._optionBackup; var newParsedOption = parseRawOption.call( this, rawOption, optionPreprocessorFuncs, !oldOptionBackup ); this._newBaseOption = newParsedOption.baseOption; // For setOption at second time (using merge mode); if (oldOptionBackup) { // Only baseOption can be merged. mergeOption(oldOptionBackup.baseOption, newParsedOption.baseOption); // For simplicity, timeline options and media options do not support merge, // that is, if you `setOption` twice and both has timeline options, the latter // timeline opitons will not be merged to the formers, but just substitude them. if (newParsedOption.timelineOptions.length) { oldOptionBackup.timelineOptions = newParsedOption.timelineOptions; } if (newParsedOption.mediaList.length) { oldOptionBackup.mediaList = newParsedOption.mediaList; } if (newParsedOption.mediaDefault) { oldOptionBackup.mediaDefault = newParsedOption.mediaDefault; } } else { this._optionBackup = newParsedOption; } }, /** * @param {boolean} isRecreate * @return {Object} */ mountOption: function (isRecreate) { var optionBackup = this._optionBackup; // TODO // 如果没有reset功能则不clone。 this._timelineOptions = map$1(optionBackup.timelineOptions, clone$3); this._mediaList = map$1(optionBackup.mediaList, clone$3); this._mediaDefault = clone$3(optionBackup.mediaDefault); this._currentMediaIndices = []; return clone$3(isRecreate // this._optionBackup.baseOption, which is created at the first `setOption` // called, and is merged into every new option by inner method `mergeOption` // each time `setOption` called, can be only used in `isRecreate`, because // its reliability is under suspicion. In other cases option merge is // performed by `model.mergeOption`. ? optionBackup.baseOption : this._newBaseOption ); }, /** * @param {module:echarts/model/Global} ecModel * @return {Object} */ getTimelineOption: function (ecModel) { var option; var timelineOptions = this._timelineOptions; if (timelineOptions.length) { // getTimelineOption can only be called after ecModel inited, // so we can get currentIndex from timelineModel. var timelineModel = ecModel.getComponent('timeline'); if (timelineModel) { option = clone$3( timelineOptions[timelineModel.getCurrentIndex()], true ); } } return option; }, /** * @param {module:echarts/model/Global} ecModel * @return {Array.} */ getMediaOption: function (ecModel) { var ecWidth = this._api.getWidth(); var ecHeight = this._api.getHeight(); var mediaList = this._mediaList; var mediaDefault = this._mediaDefault; var indices = []; var result = []; // No media defined. if (!mediaList.length && !mediaDefault) { return result; } // Multi media may be applied, the latter defined media has higher priority. for (var i = 0, len = mediaList.length; i < len; i++) { if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) { indices.push(i); } } // FIXME // 是否mediaDefault应该强制用户设置,否则可能修改不能回归。 if (!indices.length && mediaDefault) { indices = [-1]; } if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) { result = map$1(indices, function (index) { return clone$3( index === -1 ? mediaDefault.option : mediaList[index].option ); }); } // Otherwise return nothing. this._currentMediaIndices = indices; return result; } }; function parseRawOption(rawOption, optionPreprocessorFuncs, isNew) { var timelineOptions = []; var mediaList = []; var mediaDefault; var baseOption; // Compatible with ec2. var timelineOpt = rawOption.timeline; if (rawOption.baseOption) { baseOption = rawOption.baseOption; } // For timeline if (timelineOpt || rawOption.options) { baseOption = baseOption || {}; timelineOptions = (rawOption.options || []).slice(); } // For media query if (rawOption.media) { baseOption = baseOption || {}; var media = rawOption.media; each$4(media, function (singleMedia) { if (singleMedia && singleMedia.option) { if (singleMedia.query) { mediaList.push(singleMedia); } else if (!mediaDefault) { // Use the first media default. mediaDefault = singleMedia; } } }); } // For normal option if (!baseOption) { baseOption = rawOption; } // Set timelineOpt to baseOption in ec3, // which is convenient for merge option. if (!baseOption.timeline) { baseOption.timeline = timelineOpt; } // Preprocess. each$4([baseOption].concat(timelineOptions) .concat(map(mediaList, function (media) { return media.option; })), function (option) { each$4(optionPreprocessorFuncs, function (preProcess) { preProcess(option, isNew); }); } ); return { baseOption: baseOption, timelineOptions: timelineOptions, mediaDefault: mediaDefault, mediaList: mediaList }; } /** * @see * Support: width, height, aspectRatio * Can use max or min as prefix. */ function applyMediaQuery(query, ecWidth, ecHeight) { var realMap = { width: ecWidth, height: ecHeight, aspectratio: ecWidth / ecHeight // lowser case for convenientce. }; var applicatable = true; each$1(query, function (value, attr) { var matched = attr.match(QUERY_REG); if (!matched || !matched[1] || !matched[2]) { return; } var operator = matched[1]; var realAttr = matched[2].toLowerCase(); if (!compare(realMap[realAttr], value, operator)) { applicatable = false; } }); return applicatable; } function compare(real, expect, operator) { if (operator === 'min') { return real >= expect; } else if (operator === 'max') { return real <= expect; } else { // Equals return real === expect; } } function indicesEquals(indices1, indices2) { // indices is always order by asc and has only finite number. return indices1.join(',') === indices2.join(','); } /** * Consider case: * `chart.setOption(opt1);` * Then user do some interaction like dataZoom, dataView changing. * `chart.setOption(opt2);` * Then user press 'reset button' in toolbox. * * After doing that all of the interaction effects should be reset, the * chart should be the same as the result of invoke * `chart.setOption(opt1); chart.setOption(opt2);`. * * Although it is not able ensure that * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to * `chart.setOption(merge(opt1, opt2));` exactly, * this might be the only simple way to implement that feature. * * MEMO: We've considered some other approaches: * 1. Each model handle its self restoration but not uniform treatment. * (Too complex in logic and error-prone) * 2. Use a shadow ecModel. (Performace expensive) */ function mergeOption(oldOption, newOption) { newOption = newOption || {}; each$4(newOption, function (newCptOpt, mainType) { if (newCptOpt == null) { return; } var oldCptOpt = oldOption[mainType]; if (!ComponentModel.hasClass(mainType)) { oldOption[mainType] = merge$1(oldCptOpt, newCptOpt, true); } else { newCptOpt = normalizeToArray(newCptOpt); oldCptOpt = normalizeToArray(oldCptOpt); var mapResult = mappingToExists(oldCptOpt, newCptOpt); oldOption[mainType] = map$1(mapResult, function (item) { return (item.option && item.exist) ? merge$1(item.exist, item.option, true) : (item.exist || item.option); }); } }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$5 = each$1; var isObject$3 = isObject$1; var POSSIBLE_STYLES = [ 'areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine' ]; function compatEC2ItemStyle(opt) { var itemStyleOpt = opt && opt.itemStyle; if (!itemStyleOpt) { return; } for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) { var styleName = POSSIBLE_STYLES[i]; var normalItemStyleOpt = itemStyleOpt.normal; var emphasisItemStyleOpt = itemStyleOpt.emphasis; if (normalItemStyleOpt && normalItemStyleOpt[styleName]) { opt[styleName] = opt[styleName] || {}; if (!opt[styleName].normal) { opt[styleName].normal = normalItemStyleOpt[styleName]; } else { merge(opt[styleName].normal, normalItemStyleOpt[styleName]); } normalItemStyleOpt[styleName] = null; } if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) { opt[styleName] = opt[styleName] || {}; if (!opt[styleName].emphasis) { opt[styleName].emphasis = emphasisItemStyleOpt[styleName]; } else { merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]); } emphasisItemStyleOpt[styleName] = null; } } } function convertNormalEmphasis(opt, optType, useExtend) { if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) { var normalOpt = opt[optType].normal; var emphasisOpt = opt[optType].emphasis; if (normalOpt) { // Timeline controlStyle has other properties besides normal and emphasis if (useExtend) { opt[optType].normal = opt[optType].emphasis = null; defaults(opt[optType], normalOpt); } else { opt[optType] = normalOpt; } } if (emphasisOpt) { opt.emphasis = opt.emphasis || {}; opt.emphasis[optType] = emphasisOpt; } } } function removeEC3NormalStatus(opt) { convertNormalEmphasis(opt, 'itemStyle'); convertNormalEmphasis(opt, 'lineStyle'); convertNormalEmphasis(opt, 'areaStyle'); convertNormalEmphasis(opt, 'label'); convertNormalEmphasis(opt, 'labelLine'); // treemap convertNormalEmphasis(opt, 'upperLabel'); // graph convertNormalEmphasis(opt, 'edgeLabel'); } function compatTextStyle(opt, propName) { // Check whether is not object (string\null\undefined ...) var labelOptSingle = isObject$3(opt) && opt[propName]; var textStyle = isObject$3(labelOptSingle) && labelOptSingle.textStyle; if (textStyle) { for (var i = 0, len = TEXT_STYLE_OPTIONS.length; i < len; i++) { var propName = TEXT_STYLE_OPTIONS[i]; if (textStyle.hasOwnProperty(propName)) { labelOptSingle[propName] = textStyle[propName]; } } } } function compatEC3CommonStyles(opt) { if (opt) { removeEC3NormalStatus(opt); compatTextStyle(opt, 'label'); opt.emphasis && compatTextStyle(opt.emphasis, 'label'); } } function processSeries(seriesOpt) { if (!isObject$3(seriesOpt)) { return; } compatEC2ItemStyle(seriesOpt); removeEC3NormalStatus(seriesOpt); compatTextStyle(seriesOpt, 'label'); // treemap compatTextStyle(seriesOpt, 'upperLabel'); // graph compatTextStyle(seriesOpt, 'edgeLabel'); if (seriesOpt.emphasis) { compatTextStyle(seriesOpt.emphasis, 'label'); // treemap compatTextStyle(seriesOpt.emphasis, 'upperLabel'); // graph compatTextStyle(seriesOpt.emphasis, 'edgeLabel'); } var markPoint = seriesOpt.markPoint; if (markPoint) { compatEC2ItemStyle(markPoint); compatEC3CommonStyles(markPoint); } var markLine = seriesOpt.markLine; if (markLine) { compatEC2ItemStyle(markLine); compatEC3CommonStyles(markLine); } var markArea = seriesOpt.markArea; if (markArea) { compatEC3CommonStyles(markArea); } var data = seriesOpt.data; // Break with ec3: if `setOption` again, there may be no `type` in option, // then the backward compat based on option type will not be performed. if (seriesOpt.type === 'graph') { data = data || seriesOpt.nodes; var edgeData = seriesOpt.links || seriesOpt.edges; if (edgeData && !isTypedArray(edgeData)) { for (var i = 0; i < edgeData.length; i++) { compatEC3CommonStyles(edgeData[i]); } } each$1(seriesOpt.categories, function (opt) { removeEC3NormalStatus(opt); }); } if (data && !isTypedArray(data)) { for (var i = 0; i < data.length; i++) { compatEC3CommonStyles(data[i]); } } // mark point data var markPoint = seriesOpt.markPoint; if (markPoint && markPoint.data) { var mpData = markPoint.data; for (var i = 0; i < mpData.length; i++) { compatEC3CommonStyles(mpData[i]); } } // mark line data var markLine = seriesOpt.markLine; if (markLine && markLine.data) { var mlData = markLine.data; for (var i = 0; i < mlData.length; i++) { if (isArray(mlData[i])) { compatEC3CommonStyles(mlData[i][0]); compatEC3CommonStyles(mlData[i][1]); } else { compatEC3CommonStyles(mlData[i]); } } } // Series if (seriesOpt.type === 'gauge') { compatTextStyle(seriesOpt, 'axisLabel'); compatTextStyle(seriesOpt, 'title'); compatTextStyle(seriesOpt, 'detail'); } else if (seriesOpt.type === 'treemap') { convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle'); each$1(seriesOpt.levels, function (opt) { removeEC3NormalStatus(opt); }); } else if (seriesOpt.type === 'tree') { removeEC3NormalStatus(seriesOpt.leaves); } // sunburst starts from ec4, so it does not need to compat levels. } function toArr(o) { return isArray(o) ? o : o ? [o] : []; } function toObj(o) { return (isArray(o) ? o[0] : o) || {}; } var compatStyle = function (option, isTheme) { each$5(toArr(option.series), function (seriesOpt) { isObject$3(seriesOpt) && processSeries(seriesOpt); }); var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar']; isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis'); each$5( axes, function (axisName) { each$5(toArr(option[axisName]), function (axisOpt) { if (axisOpt) { compatTextStyle(axisOpt, 'axisLabel'); compatTextStyle(axisOpt.axisPointer, 'label'); } }); } ); each$5(toArr(option.parallel), function (parallelOpt) { var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault; compatTextStyle(parallelAxisDefault, 'axisLabel'); compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label'); }); each$5(toArr(option.calendar), function (calendarOpt) { convertNormalEmphasis(calendarOpt, 'itemStyle'); compatTextStyle(calendarOpt, 'dayLabel'); compatTextStyle(calendarOpt, 'monthLabel'); compatTextStyle(calendarOpt, 'yearLabel'); }); // radar.name.textStyle each$5(toArr(option.radar), function (radarOpt) { compatTextStyle(radarOpt, 'name'); }); each$5(toArr(option.geo), function (geoOpt) { if (isObject$3(geoOpt)) { compatEC3CommonStyles(geoOpt); each$5(toArr(geoOpt.regions), function (regionObj) { compatEC3CommonStyles(regionObj); }); } }); each$5(toArr(option.timeline), function (timelineOpt) { compatEC3CommonStyles(timelineOpt); convertNormalEmphasis(timelineOpt, 'label'); convertNormalEmphasis(timelineOpt, 'itemStyle'); convertNormalEmphasis(timelineOpt, 'controlStyle', true); var data = timelineOpt.data; isArray(data) && each$1(data, function (item) { if (isObject$1(item)) { convertNormalEmphasis(item, 'label'); convertNormalEmphasis(item, 'itemStyle'); } }); }); each$5(toArr(option.toolbox), function (toolboxOpt) { convertNormalEmphasis(toolboxOpt, 'iconStyle'); each$5(toolboxOpt.feature, function (featureOpt) { convertNormalEmphasis(featureOpt, 'iconStyle'); }); }); compatTextStyle(toObj(option.axisPointer), 'label'); compatTextStyle(toObj(option.tooltip).axisPointer, 'label'); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Compatitable with 2.0 function get(opt, path) { path = path.split(','); var obj = opt; for (var i = 0; i < path.length; i++) { obj = obj && obj[path[i]]; if (obj == null) { break; } } return obj; } function set$1(opt, path, val, overwrite) { path = path.split(','); var obj = opt; var key; for (var i = 0; i < path.length - 1; i++) { key = path[i]; if (obj[key] == null) { obj[key] = {}; } obj = obj[key]; } if (overwrite || obj[path[i]] == null) { obj[path[i]] = val; } } function compatLayoutProperties(option) { each$1(LAYOUT_PROPERTIES, function (prop) { if (prop[0] in option && !(prop[1] in option)) { option[prop[1]] = option[prop[0]]; } }); } var LAYOUT_PROPERTIES = [ ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom'] ]; var COMPATITABLE_COMPONENTS = [ 'grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline' ]; var backwardCompat = function (option, isTheme) { compatStyle(option, isTheme); // Make sure series array for model initialization. option.series = normalizeToArray(option.series); each$1(option.series, function (seriesOpt) { if (!isObject$1(seriesOpt)) { return; } var seriesType = seriesOpt.type; if (seriesType === 'pie' || seriesType === 'gauge') { if (seriesOpt.clockWise != null) { seriesOpt.clockwise = seriesOpt.clockWise; } } if (seriesType === 'gauge') { var pointerColor = get(seriesOpt, 'pointer.color'); pointerColor != null && set$1(seriesOpt, 'itemStyle.color', pointerColor); } compatLayoutProperties(seriesOpt); }); // dataRange has changed to visualMap if (option.dataRange) { option.visualMap = option.dataRange; } each$1(COMPATITABLE_COMPONENTS, function (componentName) { var options = option[componentName]; if (options) { if (!isArray(options)) { options = [options]; } each$1(options, function (option) { compatLayoutProperties(option); }); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // (1) [Caution]: the logic is correct based on the premises: // data processing stage is blocked in stream. // See // (2) Only register once when import repeatly. // Should be executed before after series filtered and before stack calculation. var dataStack = function (ecModel) { var stackInfoMap = createHashMap(); ecModel.eachSeries(function (seriesModel) { var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack. if (stack) { var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []); var data = seriesModel.getData(); var stackInfo = { // Used for calculate axis extent automatically. stackResultDimension: data.getCalculationInfo('stackResultDimension'), stackedOverDimension: data.getCalculationInfo('stackedOverDimension'), stackedDimension: data.getCalculationInfo('stackedDimension'), stackedByDimension: data.getCalculationInfo('stackedByDimension'), isStackedByIndex: data.getCalculationInfo('isStackedByIndex'), data: data, seriesModel: seriesModel }; // If stacked on axis that do not support data stack. if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension) ) { return; } stackInfoList.length && data.setCalculationInfo( 'stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel ); stackInfoList.push(stackInfo); } }); stackInfoMap.each(calculateStack); }; function calculateStack(stackInfoList) { each$1(stackInfoList, function (targetStackInfo, idxInStack) { var resultVal = []; var resultNaN = [NaN, NaN]; var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension]; var targetData = targetStackInfo.data; var isStackedByIndex = targetStackInfo.isStackedByIndex; // Should not write on raw data, because stack series model list changes // depending on legend selection. var newData = targetData.map(dims, function (v0, v1, dataIndex) { var sum = targetData.get(targetStackInfo.stackedDimension, dataIndex); // Consider `connectNulls` of line area, if value is NaN, stackedOver // should also be NaN, to draw a appropriate belt area. if (isNaN(sum)) { return resultNaN; } var byValue; var stackedDataRawIndex; if (isStackedByIndex) { stackedDataRawIndex = targetData.getRawIndex(dataIndex); } else { byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex); } // If stackOver is NaN, chart view will render point on value start. var stackedOver = NaN; for (var j = idxInStack - 1; j >= 0; j--) { var stackInfo = stackInfoList[j]; // Has been optimized by inverted indices on `stackedByDimension`. if (!isStackedByIndex) { stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue); } if (stackedDataRawIndex >= 0) { var val = stackInfo.data.getByRawIndex(stackInfo.stackResultDimension, stackedDataRawIndex); // Considering positive stack, negative stack and empty data if ((sum >= 0 && val > 0) // Positive stack || (sum <= 0 && val < 0) // Negative stack ) { sum += val; stackedOver = val; break; } } } resultVal[0] = sum; resultVal[1] = stackedOver; return resultVal; }); targetData.hostModel.setData(newData); // Update for consequent calculation targetStackInfo.data = newData; }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO // ??? refactor? check the outer usage of data provider. // merge with defaultDimValueGetter? /** * If normal array used, mutable chunk size is supported. * If typed array used, chunk size must be fixed. */ function DefaultDataProvider(source, dimSize) { if (!Source.isInstance(source)) { source = Source.seriesDataToSource(source); } this._source = source; var data = this._data = source.data; var sourceFormat = source.sourceFormat; // Typed array. TODO IE10+? if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) { if (__DEV__) { if (dimSize == null) { throw new Error('Typed array data must specify dimension size'); } } this._offset = 0; this._dimSize = dimSize; this._data = data; } var methods = providerMethods[ sourceFormat === SOURCE_FORMAT_ARRAY_ROWS ? sourceFormat + '_' + source.seriesLayoutBy : sourceFormat ]; if (__DEV__) { assert$1(methods, 'Invalide sourceFormat: ' + sourceFormat); } extend(this, methods); } var providerProto = DefaultDataProvider.prototype; // If data is pure without style configuration providerProto.pure = false; // If data is persistent and will not be released after use. providerProto.persistent = true; // ???! FIXME legacy data provider do not has method getSource providerProto.getSource = function () { return this._source; }; var providerMethods = { 'arrayRows_column': { pure: true, count: function () { return Math.max(0, this._data.length - this._source.startIndex); }, getItem: function (idx) { return this._data[idx + this._source.startIndex]; }, appendData: appendDataSimply }, 'arrayRows_row': { pure: true, count: function () { var row = this._data[0]; return row ? Math.max(0, row.length - this._source.startIndex) : 0; }, getItem: function (idx) { idx += this._source.startIndex; var item = []; var data = this._data; for (var i = 0; i < data.length; i++) { var row = data[i]; item.push(row ? row[idx] : null); } return item; }, appendData: function () { throw new Error('Do not support appendData when set seriesLayoutBy: "row".'); } }, 'objectRows': { pure: true, count: countSimply, getItem: getItemSimply, appendData: appendDataSimply }, 'keyedColumns': { pure: true, count: function () { var dimName = this._source.dimensionsDefine[0].name; var col = this._data[dimName]; return col ? col.length : 0; }, getItem: function (idx) { var item = []; var dims = this._source.dimensionsDefine; for (var i = 0; i < dims.length; i++) { var col = this._data[dims[i].name]; item.push(col ? col[idx] : null); } return item; }, appendData: function (newData) { var data = this._data; each$1(newData, function (newCol, key) { var oldCol = data[key] || (data[key] = []); for (var i = 0; i < (newCol || []).length; i++) { oldCol.push(newCol[i]); } }); } }, 'original': { count: countSimply, getItem: getItemSimply, appendData: appendDataSimply }, 'typedArray': { persistent: false, pure: true, count: function () { return this._data ? (this._data.length / this._dimSize) : 0; }, getItem: function (idx, out) { idx = idx - this._offset; out = out || []; var offset = this._dimSize * idx; for (var i = 0; i < this._dimSize; i++) { out[i] = this._data[offset + i]; } return out; }, appendData: function (newData) { if (__DEV__) { assert$1( isTypedArray(newData), 'Added data must be TypedArray if data in initialization is TypedArray' ); } this._data = newData; }, // Clean self if data is already used. clean: function () { // PENDING this._offset += this.count(); this._data = null; } } }; function countSimply() { return this._data.length; } function getItemSimply(idx) { return this._data[idx]; } function appendDataSimply(newData) { for (var i = 0; i < newData.length; i++) { this._data.push(newData[i]); } } var rawValueGetters = { arrayRows: getRawValueSimply, objectRows: function (dataItem, dataIndex, dimIndex, dimName) { return dimIndex != null ? dataItem[dimName] : dataItem; }, keyedColumns: getRawValueSimply, original: function (dataItem, dataIndex, dimIndex, dimName) { // FIXME // In some case (markpoint in geo (geo-map.html)), dataItem // is {coord: [...]} var value = getDataItemValue(dataItem); return (dimIndex == null || !(value instanceof Array)) ? value : value[dimIndex]; }, typedArray: getRawValueSimply }; function getRawValueSimply(dataItem, dataIndex, dimIndex, dimName) { return dimIndex != null ? dataItem[dimIndex] : dataItem; } var defaultDimValueGetters = { arrayRows: getDimValueSimply, objectRows: function (dataItem, dimName, dataIndex, dimIndex) { return converDataValue(dataItem[dimName], this._dimensionInfos[dimName]); }, keyedColumns: getDimValueSimply, original: function (dataItem, dimName, dataIndex, dimIndex) { // Performance sensitive, do not use modelUtil.getDataItemValue. // If dataItem is an plain object with no value field, the var `value` // will be assigned with the object, but it will be tread correctly // in the `convertDataValue`. var value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); // If any dataItem is like { value: 10 } if (!this._rawData.pure && isDataItemOption(dataItem)) { this.hasItemOption = true; } return converDataValue( (value instanceof Array) ? value[dimIndex] // If value is a single number or something else not array. : value, this._dimensionInfos[dimName] ); }, typedArray: function (dataItem, dimName, dataIndex, dimIndex) { return dataItem[dimIndex]; } }; function getDimValueSimply(dataItem, dimName, dataIndex, dimIndex) { return converDataValue(dataItem[dimIndex], this._dimensionInfos[dimName]); } /** * This helper method convert value in data. * @param {string|number|Date} value * @param {Object|string} [dimInfo] If string (like 'x'), dimType defaults 'number'. * If "dimInfo.ordinalParseAndSave", ordinal value can be parsed. */ function converDataValue(value, dimInfo) { // Performance sensitive. var dimType = dimInfo && dimInfo.type; if (dimType === 'ordinal') { // If given value is a category string var ordinalMeta = dimInfo && dimInfo.ordinalMeta; return ordinalMeta ? ordinalMeta.parseAndCollect(value) : value; } if (dimType === 'time' // spead up when using timestamp && typeof value !== 'number' && value != null && value !== '-' ) { value = +parseDate(value); } // dimType defaults 'number'. // If dimType is not ordinal and value is null or undefined or NaN or '-', // parse to NaN. return (value == null || value === '') ? NaN // If string (like '-'), using '+' parse to NaN // If object, also parse to NaN : +value; } // ??? FIXME can these logic be more neat: getRawValue, getRawDataItem, // Consider persistent. // Caution: why use raw value to display on label or tooltip? // A reason is to avoid format. For example time value we do not know // how to format is expected. More over, if stack is used, calculated // value may be 0.91000000001, which have brings trouble to display. // TODO: consider how to treat null/undefined/NaN when display? /** * @param {module:echarts/data/List} data * @param {number} dataIndex * @param {string|number} [dim] dimName or dimIndex * @return {Array.|string|number} can be null/undefined. */ function retrieveRawValue(data, dataIndex, dim) { if (!data) { return; } // Consider data may be not persistent. var dataItem = data.getRawDataItem(dataIndex); if (dataItem == null) { return; } var sourceFormat = data.getProvider().getSource().sourceFormat; var dimName; var dimIndex; var dimInfo = data.getDimensionInfo(dim); if (dimInfo) { dimName = dimInfo.name; dimIndex = dimInfo.index; } return rawValueGetters[sourceFormat](dataItem, dataIndex, dimIndex, dimName); } /** * Compatible with some cases (in pie, map) like: * data: [{name: 'xx', value: 5, selected: true}, ...] * where only sourceFormat is 'original' and 'objectRows' supported. * * ??? TODO * Supported detail options in data item when using 'arrayRows'. * * @param {module:echarts/data/List} data * @param {number} dataIndex * @param {string} attr like 'selected' */ function retrieveRawAttr(data, dataIndex, attr) { if (!data) { return; } var sourceFormat = data.getProvider().getSource().sourceFormat; if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS ) { return; } var dataItem = data.getRawDataItem(dataIndex); if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !isObject$1(dataItem)) { dataItem = null; } if (dataItem) { return dataItem[attr]; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DIMENSION_LABEL_REG = /\{@(.+?)\}/g; // PENDING A little ugly var dataFormatMixin = { /** * Get params for formatter * @param {number} dataIndex * @param {string} [dataType] * @return {Object} */ getDataParams: function (dataIndex, dataType) { var data = this.getData(dataType); var rawValue = this.getRawValue(dataIndex, dataType); var rawDataIndex = data.getRawIndex(dataIndex); var name = data.getName(dataIndex); var itemOpt = data.getRawDataItem(dataIndex); var color = data.getItemVisual(dataIndex, 'color'); var tooltipModel = this.ecModel.getComponent('tooltip'); var renderModeOption = tooltipModel && tooltipModel.get('renderMode'); var renderMode = getTooltipRenderMode(renderModeOption); var mainType = this.mainType; var isSeries = mainType === 'series'; var userOutput = data.userOutput; return { componentType: mainType, componentSubType: this.subType, componentIndex: this.componentIndex, seriesType: isSeries ? this.subType : null, seriesIndex: this.seriesIndex, seriesId: isSeries ? this.id : null, seriesName: isSeries ? this.name : null, name: name, dataIndex: rawDataIndex, data: itemOpt, dataType: dataType, value: rawValue, color: color, dimensionNames: userOutput ? userOutput.dimensionNames : null, encode: userOutput ? userOutput.encode : null, marker: getTooltipMarker({ color: color, renderMode: renderMode }), // Param name list for mapping `a`, `b`, `c`, `d`, `e` $vars: ['seriesName', 'name', 'value'] }; }, /** * Format label * @param {number} dataIndex * @param {string} [status='normal'] 'normal' or 'emphasis' * @param {string} [dataType] * @param {number} [dimIndex] Only used in some chart that * use formatter in different dimensions, like radar. * @param {string} [labelProp='label'] * @return {string} If not formatter, return null/undefined */ getFormattedLabel: function (dataIndex, status, dataType, dimIndex, labelProp) { status = status || 'normal'; var data = this.getData(dataType); var itemModel = data.getItemModel(dataIndex); var params = this.getDataParams(dataIndex, dataType); if (dimIndex != null && (params.value instanceof Array)) { params.value = params.value[dimIndex]; } var formatter = itemModel.get( status === 'normal' ? [labelProp || 'label', 'formatter'] : [status, labelProp || 'label', 'formatter'] ); if (typeof formatter === 'function') { params.status = status; params.dimensionIndex = dimIndex; return formatter(params); } else if (typeof formatter === 'string') { var str = formatTpl(formatter, params); // Support 'aaa{@[3]}bbb{@product}ccc'. // Do not support '}' in dim name util have to. return str.replace(DIMENSION_LABEL_REG, function (origin, dim) { var len = dim.length; if (dim.charAt(0) === '[' && dim.charAt(len - 1) === ']') { dim = +dim.slice(1, len - 1); // Also: '[]' => 0 } return retrieveRawValue(data, dataIndex, dim); }); } }, /** * Get raw value in option * @param {number} idx * @param {string} [dataType] * @return {Array|number|string} */ getRawValue: function (idx, dataType) { return retrieveRawValue(this.getData(dataType), idx); }, /** * Should be implemented. * @param {number} dataIndex * @param {boolean} [multipleSeries=false] * @param {number} [dataType] * @return {string} tooltip string */ formatTooltip: function () { // Empty function } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {Object} define * @return See the return of `createTask`. */ function createTask(define) { return new Task(define); } /** * @constructor * @param {Object} define * @param {Function} define.reset Custom reset * @param {Function} [define.plan] Returns 'reset' indicate reset immediately. * @param {Function} [define.count] count is used to determin data task. * @param {Function} [define.onDirty] count is used to determin data task. */ function Task(define) { define = define || {}; this._reset = define.reset; this._plan = define.plan; this._count = define.count; this._onDirty = define.onDirty; this._dirty = true; // Context must be specified implicitly, to // avoid miss update context when model changed. this.context; } var taskProto = Task.prototype; /** * @param {Object} performArgs * @param {number} [performArgs.step] Specified step. * @param {number} [performArgs.skip] Skip customer perform call. * @param {number} [performArgs.modBy] Sampling window size. * @param {number} [performArgs.modDataCount] Sampling count. */ taskProto.perform = function (performArgs) { var upTask = this._upstream; var skip = performArgs && performArgs.skip; // TODO some refactor. // Pull data. Must pull data each time, because context.data // may be updated by Series.setData. if (this._dirty && upTask) { var context = this.context; context.data = context.outputData = upTask.context.outputData; } if (this.__pipeline) { this.__pipeline.currentTask = this; } var planResult; if (this._plan && !skip) { planResult = this._plan(this.context); } // Support sharding by mod, which changes the render sequence and makes the rendered graphic // elements uniformed distributed when progress, especially when moving or zooming. var lastModBy = normalizeModBy(this._modBy); var lastModDataCount = this._modDataCount || 0; var modBy = normalizeModBy(performArgs && performArgs.modBy); var modDataCount = performArgs && performArgs.modDataCount || 0; if (lastModBy !== modBy || lastModDataCount !== modDataCount) { planResult = 'reset'; } function normalizeModBy(val) { !(val >= 1) && (val = 1); // jshint ignore:line return val; } var forceFirstProgress; if (this._dirty || planResult === 'reset') { this._dirty = false; forceFirstProgress = reset(this, skip); } this._modBy = modBy; this._modDataCount = modDataCount; var step = performArgs && performArgs.step; if (upTask) { if (__DEV__) { assert$1(upTask._outputDueEnd != null); } this._dueEnd = upTask._outputDueEnd; } // DataTask or overallTask else { if (__DEV__) { assert$1(!this._progress || this._count); } this._dueEnd = this._count ? this._count(this.context) : Infinity; } // Note: Stubs, that its host overall task let it has progress, has progress. // If no progress, pass index from upstream to downstream each time plan called. if (this._progress) { var start = this._dueIndex; var end = Math.min( step != null ? this._dueIndex + step : Infinity, this._dueEnd ); if (!skip && (forceFirstProgress || start < end)) { var progress = this._progress; if (isArray(progress)) { for (var i = 0; i < progress.length; i++) { doProgress(this, progress[i], start, end, modBy, modDataCount); } } else { doProgress(this, progress, start, end, modBy, modDataCount); } } this._dueIndex = end; // If no `outputDueEnd`, assume that output data and // input data is the same, so use `dueIndex` as `outputDueEnd`. var outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : end; if (__DEV__) { // ??? Can not rollback. assert$1(outputDueEnd >= this._outputDueEnd); } this._outputDueEnd = outputDueEnd; } else { // (1) Some overall task has no progress. // (2) Stubs, that its host overall task do not let it has progress, has no progress. // This should always be performed so it can be passed to downstream. this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd; } return this.unfinished(); }; var iterator = (function () { var end; var current; var modBy; var modDataCount; var winCount; var it = { reset: function (s, e, sStep, sCount) { current = s; end = e; modBy = sStep; modDataCount = sCount; winCount = Math.ceil(modDataCount / modBy); it.next = (modBy > 1 && modDataCount > 0) ? modNext : sequentialNext; } }; return it; function sequentialNext() { return current < end ? current++ : null; } function modNext() { var dataIndex = (current % winCount) * modBy + Math.ceil(current / winCount); var result = current >= end ? null : dataIndex < modDataCount ? dataIndex // If modDataCount is smaller than data.count() (consider `appendData` case), // Use normal linear rendering mode. : current; current++; return result; } })(); taskProto.dirty = function () { this._dirty = true; this._onDirty && this._onDirty(this.context); }; function doProgress(taskIns, progress, start, end, modBy, modDataCount) { iterator.reset(start, end, modBy, modDataCount); taskIns._callingProgress = progress; taskIns._callingProgress({ start: start, end: end, count: end - start, next: iterator.next }, taskIns.context); } function reset(taskIns, skip) { taskIns._dueIndex = taskIns._outputDueEnd = taskIns._dueEnd = 0; taskIns._settedOutputEnd = null; var progress; var forceFirstProgress; if (!skip && taskIns._reset) { progress = taskIns._reset(taskIns.context); if (progress && progress.progress) { forceFirstProgress = progress.forceFirstProgress; progress = progress.progress; } // To simplify no progress checking, array must has item. if (isArray(progress) && !progress.length) { progress = null; } } taskIns._progress = progress; taskIns._modBy = taskIns._modDataCount = null; var downstream = taskIns._downstream; downstream && downstream.dirty(); return forceFirstProgress; } /** * @return {boolean} */ taskProto.unfinished = function () { return this._progress && this._dueIndex < this._dueEnd; }; /** * @param {Object} downTask The downstream task. * @return {Object} The downstream task. */ taskProto.pipe = function (downTask) { if (__DEV__) { assert$1(downTask && !downTask._disposed && downTask !== this); } // If already downstream, do not dirty downTask. if (this._downstream !== downTask || this._dirty) { this._downstream = downTask; downTask._upstream = this; downTask.dirty(); } }; taskProto.dispose = function () { if (this._disposed) { return; } this._upstream && (this._upstream._downstream = null); this._downstream && (this._downstream._upstream = null); this._dirty = false; this._disposed = true; }; taskProto.getUpstream = function () { return this._upstream; }; taskProto.getDownstream = function () { return this._downstream; }; taskProto.setOutputEnd = function (end) { // This only happend in dataTask, dataZoom, map, currently. // where dataZoom do not set end each time, but only set // when reset. So we should record the setted end, in case // that the stub of dataZoom perform again and earse the // setted end by upstream. this._outputDueEnd = this._settedOutputEnd = end; }; /////////////////////////////////////////////////////////// // For stream debug (Should be commented out after used!) // Usage: printTask(this, 'begin'); // Usage: printTask(this, null, {someExtraProp}); // function printTask(task, prefix, extra) { // window.ecTaskUID == null && (window.ecTaskUID = 0); // task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`); // task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`); // var props = []; // if (task.__pipeline) { // var val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`; // props.push({text: 'idx', value: val}); // } else { // var stubCount = 0; // task.agentStubMap.each(() => stubCount++); // props.push({text: 'idx', value: `overall (stubs: ${stubCount})`}); // } // props.push({text: 'uid', value: task.uidDebug}); // if (task.__pipeline) { // props.push({text: 'pid', value: task.__pipeline.id}); // task.agent && props.push( // {text: 'stubFor', value: task.agent.uidDebug} // ); // } // props.push( // {text: 'dirty', value: task._dirty}, // {text: 'dueIndex', value: task._dueIndex}, // {text: 'dueEnd', value: task._dueEnd}, // {text: 'outputDueEnd', value: task._outputDueEnd} // ); // if (extra) { // Object.keys(extra).forEach(key => { // props.push({text: key, value: extra[key]}); // }); // } // var args = ['color: blue']; // var msg = `%c[${prefix || 'T'}] %c` + props.map(item => ( // args.push('color: black', 'color: red'), // `${item.text}: %c${item.value}` // )).join('%c, '); // console.log.apply(console, [msg].concat(args)); // // console.log(this); // } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$4 = makeInner(); var SeriesModel = ComponentModel.extend({ type: 'series.__base__', /** * @readOnly */ seriesIndex: 0, // coodinateSystem will be injected in the echarts/CoordinateSystem coordinateSystem: null, /** * @type {Object} * @protected */ defaultOption: null, /** * Data provided for legend * @type {Function} */ // PENDING legendDataProvider: null, /** * Access path of color for visual */ visualColorAccessPath: 'itemStyle.color', /** * Support merge layout params. * Only support 'box' now (left/right/top/bottom/width/height). * @type {string|Object} Object can be {ignoreSize: true} * @readOnly */ layoutMode: null, init: function (option, parentModel, ecModel, extraOpt) { /** * @type {number} * @readOnly */ this.seriesIndex = this.componentIndex; this.dataTask = createTask({ count: dataTaskCount, reset: dataTaskReset }); this.dataTask.context = {model: this}; this.mergeDefaultAndTheme(option, ecModel); prepareSource(this); var data = this.getInitialData(option, ecModel); wrapData(data, this); this.dataTask.context.data = data; if (__DEV__) { assert$1(data, 'getInitialData returned invalid data.'); } /** * @type {module:echarts/data/List|module:echarts/data/Tree|module:echarts/data/Graph} * @private */ inner$4(this).dataBeforeProcessed = data; // If we reverse the order (make data firstly, and then make // dataBeforeProcessed by cloneShallow), cloneShallow will // cause data.graph.data !== data when using // module:echarts/data/Graph or module:echarts/data/Tree. // See module:echarts/data/helper/linkList // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model // init or merge stage, because the data can be restored. So we do not `restoreData` // and `setData` here, which forbids calling `seriesModel.getData()` in this stage. // Call `seriesModel.getRawData()` instead. // this.restoreData(); autoSeriesName(this); }, /** * Util for merge default and theme to option * @param {Object} option * @param {module:echarts/model/Global} ecModel */ mergeDefaultAndTheme: function (option, ecModel) { var layoutMode = this.layoutMode; var inputPositionParams = layoutMode ? getLayoutParams(option) : {}; // Backward compat: using subType on theme. // But if name duplicate between series subType // (for example: parallel) add component mainType, // add suffix 'Series'. var themeSubType = this.subType; if (ComponentModel.hasClass(themeSubType)) { themeSubType += 'Series'; } merge( option, ecModel.getTheme().get(this.subType) ); merge(option, this.getDefaultOption()); // Default label emphasis `show` defaultEmphasis(option, 'label', ['show']); this.fillDataTextStyle(option.data); if (layoutMode) { mergeLayoutParam(option, inputPositionParams, layoutMode); } }, mergeOption: function (newSeriesOption, ecModel) { // this.settingTask.dirty(); newSeriesOption = merge(this.option, newSeriesOption, true); this.fillDataTextStyle(newSeriesOption.data); var layoutMode = this.layoutMode; if (layoutMode) { mergeLayoutParam(this.option, newSeriesOption, layoutMode); } prepareSource(this); var data = this.getInitialData(newSeriesOption, ecModel); wrapData(data, this); this.dataTask.dirty(); this.dataTask.context.data = data; inner$4(this).dataBeforeProcessed = data; autoSeriesName(this); }, fillDataTextStyle: function (data) { // Default data label emphasis `show` // FIXME Tree structure data ? // FIXME Performance ? if (data && !isTypedArray(data)) { var props = ['show']; for (var i = 0; i < data.length; i++) { if (data[i] && data[i].label) { defaultEmphasis(data[i], 'label', props); } } } }, /** * Init a data structure from data related option in series * Must be overwritten */ getInitialData: function () {}, /** * Append data to list * @param {Object} params * @param {Array|TypedArray} params.data */ appendData: function (params) { // FIXME ??? // (1) If data from dataset, forbidden append. // (2) support append data of dataset. var data = this.getRawData(); data.appendData(params.data); }, /** * Consider some method like `filter`, `map` need make new data, * We should make sure that `seriesModel.getData()` get correct * data in the stream procedure. So we fetch data from upstream * each time `task.perform` called. * @param {string} [dataType] * @return {module:echarts/data/List} */ getData: function (dataType) { var task = getCurrentTask(this); if (task) { var data = task.context.data; return dataType == null ? data : data.getLinkedData(dataType); } else { // When series is not alive (that may happen when click toolbox // restore or setOption with not merge mode), series data may // be still need to judge animation or something when graphic // elements want to know whether fade out. return inner$4(this).data; } }, /** * @param {module:echarts/data/List} data */ setData: function (data) { var task = getCurrentTask(this); if (task) { var context = task.context; // Consider case: filter, data sample. if (context.data !== data && task.modifyOutputEnd) { task.setOutputEnd(data.count()); } context.outputData = data; // Caution: setData should update context.data, // Because getData may be called multiply in a // single stage and expect to get the data just // set. (For example, AxisProxy, x y both call // getData and setDate sequentially). // So the context.data should be fetched from // upstream each time when a stage starts to be // performed. if (task !== this.dataTask) { context.data = data; } } inner$4(this).data = data; }, /** * @see {module:echarts/data/helper/sourceHelper#getSource} * @return {module:echarts/data/Source} source */ getSource: function () { return getSource(this); }, /** * Get data before processed * @return {module:echarts/data/List} */ getRawData: function () { return inner$4(this).dataBeforeProcessed; }, /** * Get base axis if has coordinate system and has axis. * By default use coordSys.getBaseAxis(); * Can be overrided for some chart. * @return {type} description */ getBaseAxis: function () { var coordSys = this.coordinateSystem; return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis(); }, // FIXME /** * Default tooltip formatter * * @param {number} dataIndex * @param {boolean} [multipleSeries=false] * @param {number} [dataType] * @param {string} [renderMode='html'] valid values: 'html' and 'richText'. * 'html' is used for rendering tooltip in extra DOM form, and the result * string is used as DOM HTML content. * 'richText' is used for rendering tooltip in rich text form, for those where * DOM operation is not supported. * @return {Object} formatted tooltip with `html` and `markers` */ formatTooltip: function (dataIndex, multipleSeries, dataType, renderMode) { var series = this; renderMode = renderMode || 'html'; var newLine = renderMode === 'html' ? '
    ' : '\n'; var isRichText = renderMode === 'richText'; var markers = {}; var markerId = 0; function formatArrayValue(value) { // ??? TODO refactor these logic. // check: category-no-encode-has-axis-data in dataset.html var vertially = reduce(value, function (vertially, val, idx) { var dimItem = data.getDimensionInfo(idx); return vertially |= dimItem && dimItem.tooltip !== false && dimItem.displayName != null; }, 0); var result = []; tooltipDims.length ? each$1(tooltipDims, function (dim) { setEachItem(retrieveRawValue(data, dataIndex, dim), dim); }) // By default, all dims is used on tooltip. : each$1(value, setEachItem); function setEachItem(val, dim) { var dimInfo = data.getDimensionInfo(dim); // If `dimInfo.tooltip` is not set, show tooltip. if (!dimInfo || dimInfo.otherDims.tooltip === false) { return; } var dimType = dimInfo.type; var markName = 'sub' + series.seriesIndex + 'at' + markerId; var dimHead = getTooltipMarker({ color: color, type: 'subItem', renderMode: renderMode, markerId: markName }); var dimHeadStr = typeof dimHead === 'string' ? dimHead : dimHead.content; var valStr = (vertially ? dimHeadStr + encodeHTML(dimInfo.displayName || '-') + ': ' : '' ) // FIXME should not format time for raw data? + encodeHTML(dimType === 'ordinal' ? val + '' : dimType === 'time' ? (multipleSeries ? '' : formatTime('yyyy/MM/dd hh:mm:ss', val)) : addCommas(val) ); valStr && result.push(valStr); if (isRichText) { markers[markName] = color; ++markerId; } } var newLine = vertially ? (isRichText ? '\n' : '
    ') : ''; var content = newLine + result.join(newLine || ', '); return { renderMode: renderMode, content: content, style: markers }; } function formatSingleValue(val) { // return encodeHTML(addCommas(val)); return { renderMode: renderMode, content: encodeHTML(addCommas(val)), style: markers }; } var data = this.getData(); var tooltipDims = data.mapDimension('defaultedTooltip', true); var tooltipDimLen = tooltipDims.length; var value = this.getRawValue(dataIndex); var isValueArr = isArray(value); var color = data.getItemVisual(dataIndex, 'color'); if (isObject$1(color) && color.colorStops) { color = (color.colorStops[0] || {}).color; } color = color || 'transparent'; // Complicated rule for pretty tooltip. var formattedValue = (tooltipDimLen > 1 || (isValueArr && !tooltipDimLen)) ? formatArrayValue(value) : tooltipDimLen ? formatSingleValue(retrieveRawValue(data, dataIndex, tooltipDims[0])) : formatSingleValue(isValueArr ? value[0] : value); var content = formattedValue.content; var markName = series.seriesIndex + 'at' + markerId; var colorEl = getTooltipMarker({ color: color, type: 'item', renderMode: renderMode, markerId: markName }); markers[markName] = color; ++markerId; var name = data.getName(dataIndex); var seriesName = this.name; if (!isNameSpecified(this)) { seriesName = ''; } seriesName = seriesName ? encodeHTML(seriesName) + (!multipleSeries ? newLine : ': ') : ''; var colorStr = typeof colorEl === 'string' ? colorEl : colorEl.content; var html = !multipleSeries ? seriesName + colorStr + (name ? encodeHTML(name) + ': ' + content : content ) : colorStr + seriesName + content; return { html: html, markers: markers }; }, /** * @return {boolean} */ isAnimationEnabled: function () { if (env$1.node) { return false; } var animationEnabled = this.getShallow('animation'); if (animationEnabled) { if (this.getData().count() > this.getShallow('animationThreshold')) { animationEnabled = false; } } return animationEnabled; }, restoreData: function () { this.dataTask.dirty(); }, getColorFromPalette: function (name, scope, requestColorNum) { var ecModel = this.ecModel; // PENDING var color = colorPaletteMixin.getColorFromPalette.call(this, name, scope, requestColorNum); if (!color) { color = ecModel.getColorFromPalette(name, scope, requestColorNum); } return color; }, /** * Use `data.mapDimension(coordDim, true)` instead. * @deprecated */ coordDimToDataDim: function (coordDim) { return this.getRawData().mapDimension(coordDim, true); }, /** * Get progressive rendering count each step * @return {number} */ getProgressive: function () { return this.get('progressive'); }, /** * Get progressive rendering count each step * @return {number} */ getProgressiveThreshold: function () { return this.get('progressiveThreshold'); }, /** * Get data indices for show tooltip content. See tooltip. * @abstract * @param {Array.|string} dim * @param {Array.} value * @param {module:echarts/coord/single/SingleAxis} baseAxis * @return {Object} {dataIndices, nestestValue}. */ getAxisTooltipData: null, /** * See tooltip. * @abstract * @param {number} dataIndex * @return {Array.} Point of tooltip. null/undefined can be returned. */ getTooltipPosition: null, /** * @see {module:echarts/stream/Scheduler} */ pipeTask: null, /** * Convinient for override in extended class. * @protected * @type {Function} */ preventIncremental: null, /** * @public * @readOnly * @type {Object} */ pipelineContext: null }); mixin(SeriesModel, dataFormatMixin); mixin(SeriesModel, colorPaletteMixin); /** * MUST be called after `prepareSource` called * Here we need to make auto series, especially for auto legend. But we * do not modify series.name in option to avoid side effects. */ function autoSeriesName(seriesModel) { // User specified name has higher priority, otherwise it may cause // series can not be queried unexpectedly. var name = seriesModel.name; if (!isNameSpecified(seriesModel)) { seriesModel.name = getSeriesAutoName(seriesModel) || name; } } function getSeriesAutoName(seriesModel) { var data = seriesModel.getRawData(); var dataDims = data.mapDimension('seriesName', true); var nameArr = []; each$1(dataDims, function (dataDim) { var dimInfo = data.getDimensionInfo(dataDim); dimInfo.displayName && nameArr.push(dimInfo.displayName); }); return nameArr.join(' '); } function dataTaskCount(context) { return context.model.getRawData().count(); } function dataTaskReset(context) { var seriesModel = context.model; seriesModel.setData(seriesModel.getRawData().cloneShallow()); return dataTaskProgress; } function dataTaskProgress(param, context) { // Avoid repead cloneShallow when data just created in reset. if (param.end > context.outputData.count()) { context.model.getRawData().cloneShallow(context.outputData); } } // TODO refactor function wrapData(data, seriesModel) { each$1(data.CHANGABLE_METHODS, function (methodName) { data.wrapMethod(methodName, curry(onDataSelfChange, seriesModel)); }); } function onDataSelfChange(seriesModel) { var task = getCurrentTask(seriesModel); if (task) { // Consider case: filter, selectRange task.setOutputEnd(this.count()); } } function getCurrentTask(seriesModel) { var scheduler = (seriesModel.ecModel || {}).scheduler; var pipeline = scheduler && scheduler.getPipeline(seriesModel.uid); if (pipeline) { // When pipline finished, the currrentTask keep the last // task (renderTask). var task = pipeline.currentTask; if (task) { var agentStubMap = task.agentStubMap; if (agentStubMap) { task = agentStubMap.get(seriesModel.uid); } } return task; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Component$1 = function () { /** * @type {module:zrender/container/Group} * @readOnly */ this.group = new Group(); /** * @type {string} * @readOnly */ this.uid = getUID('viewComponent'); }; Component$1.prototype = { constructor: Component$1, init: function (ecModel, api) {}, render: function (componentModel, ecModel, api, payload) {}, dispose: function () {}, /** * @param {string} eventType * @param {Object} query * @param {module:zrender/Element} targetEl * @param {Object} packedEvent * @return {boolen} Pass only when return `true`. */ filterForExposedEvent: null }; var componentProto = Component$1.prototype; componentProto.updateView = componentProto.updateLayout = componentProto.updateVisual = function (seriesModel, ecModel, api, payload) { // Do nothing; }; // Enable Component.extend. enableClassExtend(Component$1); // Enable capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on. enableClassManagement(Component$1, {registerWhenExtend: true}); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @return {string} If large mode changed, return string 'reset'; */ var createRenderPlanner = function () { var inner = makeInner(); return function (seriesModel) { var fields = inner(seriesModel); var pipelineContext = seriesModel.pipelineContext; var originalLarge = fields.large; var originalProgressive = fields.progressiveRender; var large = fields.large = pipelineContext.large; var progressive = fields.progressiveRender = pipelineContext.progressiveRender; return !!((originalLarge ^ large) || (originalProgressive ^ progressive)) && 'reset'; }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$5 = makeInner(); var renderPlanner = createRenderPlanner(); function Chart() { /** * @type {module:zrender/container/Group} * @readOnly */ this.group = new Group(); /** * @type {string} * @readOnly */ this.uid = getUID('viewChart'); this.renderTask = createTask({ plan: renderTaskPlan, reset: renderTaskReset }); this.renderTask.context = {view: this}; } Chart.prototype = { type: 'chart', /** * Init the chart. * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ init: function (ecModel, api) {}, /** * Render the chart. * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ render: function (seriesModel, ecModel, api, payload) {}, /** * Highlight series or specified data item. * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ highlight: function (seriesModel, ecModel, api, payload) { toggleHighlight(seriesModel.getData(), payload, 'emphasis'); }, /** * Downplay series or specified data item. * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ downplay: function (seriesModel, ecModel, api, payload) { toggleHighlight(seriesModel.getData(), payload, 'normal'); }, /** * Remove self. * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ remove: function (ecModel, api) { this.group.removeAll(); }, /** * Dispose self. * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ dispose: function () {}, /** * Rendering preparation in progressive mode. * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ incrementalPrepareRender: null, /** * Render in progressive mode. * @param {Object} params See taskParams in `stream/task.js` * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ incrementalRender: null, /** * Update transform directly. * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload * @return {Object} {update: true} */ updateTransform: null, /** * The view contains the given point. * @interface * @param {Array.} point * @return {boolean} */ // containPoint: function () {} /** * @param {string} eventType * @param {Object} query * @param {module:zrender/Element} targetEl * @param {Object} packedEvent * @return {boolen} Pass only when return `true`. */ filterForExposedEvent: null }; var chartProto = Chart.prototype; chartProto.updateView = chartProto.updateLayout = chartProto.updateVisual = function (seriesModel, ecModel, api, payload) { this.render(seriesModel, ecModel, api, payload); }; /** * Set state of single element * @param {module:zrender/Element} el * @param {string} state 'normal'|'emphasis' * @param {number} highlightDigit */ function elSetState(el, state, highlightDigit) { if (el) { el.trigger(state, highlightDigit); if (el.isGroup // Simple optimize. && !isHighDownDispatcher(el) ) { for (var i = 0, len = el.childCount(); i < len; i++) { elSetState(el.childAt(i), state, highlightDigit); } } } } /** * @param {module:echarts/data/List} data * @param {Object} payload * @param {string} state 'normal'|'emphasis' */ function toggleHighlight(data, payload, state) { var dataIndex = queryDataIndex(data, payload); var highlightDigit = (payload && payload.highlightKey != null) ? getHighlightDigit(payload.highlightKey) : null; if (dataIndex != null) { each$1(normalizeToArray(dataIndex), function (dataIdx) { elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit); }); } else { data.eachItemGraphicEl(function (el) { elSetState(el, state, highlightDigit); }); } } // Enable Chart.extend. enableClassExtend(Chart, ['dispose']); // Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on. enableClassManagement(Chart, {registerWhenExtend: true}); Chart.markUpdateMethod = function (payload, methodName) { inner$5(payload).updateMethod = methodName; }; function renderTaskPlan(context) { return renderPlanner(context.model); } function renderTaskReset(context) { var seriesModel = context.model; var ecModel = context.ecModel; var api = context.api; var payload = context.payload; // ???! remove updateView updateVisual var progressiveRender = seriesModel.pipelineContext.progressiveRender; var view = context.view; var updateMethod = payload && inner$5(payload).updateMethod; var methodName = progressiveRender ? 'incrementalPrepareRender' : (updateMethod && view[updateMethod]) ? updateMethod // `appendData` is also supported when data amount // is less than progressive threshold. : 'render'; if (methodName !== 'render') { view[methodName](seriesModel, ecModel, api, payload); } return progressMethodMap[methodName]; } var progressMethodMap = { incrementalPrepareRender: { progress: function (params, context) { context.view.incrementalRender( params, context.model, context.ecModel, context.api, context.payload ); } }, render: { // Put view.render in `progress` to support appendData. But in this case // view.render should not be called in reset, otherwise it will be called // twise. Use `forceFirstProgress` to make sure that view.render is called // in any cases. forceFirstProgress: true, progress: function (params, context) { context.view.render( context.model, context.ecModel, context.api, context.payload ); } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ORIGIN_METHOD = '\0__throttleOriginMethod'; var RATE = '\0__throttleRate'; var THROTTLE_TYPE = '\0__throttleType'; /** * @public * @param {(Function)} fn * @param {number} [delay=0] Unit: ms. * @param {boolean} [debounce=false] * true: If call interval less than `delay`, only the last call works. * false: If call interval less than `delay, call works on fixed rate. * @return {(Function)} throttled fn. */ function throttle(fn, delay, debounce) { var currCall; var lastCall = 0; var lastExec = 0; var timer = null; var diff; var scope; var args; var debounceNextCall; delay = delay || 0; function exec() { lastExec = (new Date()).getTime(); timer = null; fn.apply(scope, args || []); } var cb = function () { currCall = (new Date()).getTime(); scope = this; args = arguments; var thisDelay = debounceNextCall || delay; var thisDebounce = debounceNextCall || debounce; debounceNextCall = null; diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay; clearTimeout(timer); // Here we should make sure that: the `exec` SHOULD NOT be called later // than a new call of `cb`, that is, preserving the command order. Consider // calculating "scale rate" when roaming as an example. When a call of `cb` // happens, either the `exec` is called dierectly, or the call is delayed. // But the delayed call should never be later than next call of `cb`. Under // this assurance, we can simply update view state each time `dispatchAction` // triggered by user roaming, but not need to add extra code to avoid the // state being "rolled-back". if (thisDebounce) { timer = setTimeout(exec, thisDelay); } else { if (diff >= 0) { exec(); } else { timer = setTimeout(exec, -diff); } } lastCall = currCall; }; /** * Clear throttle. * @public */ cb.clear = function () { if (timer) { clearTimeout(timer); timer = null; } }; /** * Enable debounce once. */ cb.debounceNextCall = function (debounceDelay) { debounceNextCall = debounceDelay; }; return cb; } /** * Create throttle method or update throttle rate. * * @example * ComponentView.prototype.render = function () { * ... * throttle.createOrUpdate( * this, * '_dispatchAction', * this.model.get('throttle'), * 'fixRate' * ); * }; * ComponentView.prototype.remove = function () { * throttle.clear(this, '_dispatchAction'); * }; * ComponentView.prototype.dispose = function () { * throttle.clear(this, '_dispatchAction'); * }; * * @public * @param {Object} obj * @param {string} fnAttr * @param {number} [rate] * @param {string} [throttleType='fixRate'] 'fixRate' or 'debounce' * @return {Function} throttled function. */ function createOrUpdate(obj, fnAttr, rate, throttleType) { var fn = obj[fnAttr]; if (!fn) { return; } var originFn = fn[ORIGIN_METHOD] || fn; var lastThrottleType = fn[THROTTLE_TYPE]; var lastRate = fn[RATE]; if (lastRate !== rate || lastThrottleType !== throttleType) { if (rate == null || !throttleType) { return (obj[fnAttr] = originFn); } fn = obj[fnAttr] = throttle( originFn, rate, throttleType === 'debounce' ); fn[ORIGIN_METHOD] = originFn; fn[THROTTLE_TYPE] = throttleType; fn[RATE] = rate; } return fn; } /** * Clear throttle. Example see throttle.createOrUpdate. * * @public * @param {Object} obj * @param {string} fnAttr */ function clear(obj, fnAttr) { var fn = obj[fnAttr]; if (fn && fn[ORIGIN_METHOD]) { obj[fnAttr] = fn[ORIGIN_METHOD]; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var seriesColor = { createOnAllSeries: true, performRawSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); var colorAccessPath = (seriesModel.visualColorAccessPath || 'itemStyle.color').split('.'); var color = seriesModel.get(colorAccessPath) // Set in itemStyle || seriesModel.getColorFromPalette( // TODO series count changed. seriesModel.name, null, ecModel.getSeriesCount() ); // Default color // FIXME Set color function or use the platte color data.setVisual('color', color); // Only visible series has each data be visual encoded if (!ecModel.isSeriesFiltered(seriesModel)) { if (typeof color === 'function' && !(color instanceof Gradient)) { data.each(function (idx) { data.setItemVisual( idx, 'color', color(seriesModel.getDataParams(idx)) ); }); } // itemStyle in each data item var dataEach = function (data, idx) { var itemModel = data.getItemModel(idx); var color = itemModel.get(colorAccessPath, true); if (color != null) { data.setItemVisual(idx, 'color', color); } }; return { dataEach: data.hasItemOption ? dataEach : null }; } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var lang = { toolbox: { brush: { title: { rect: '矩形选择', polygon: '圈选', lineX: '横向选择', lineY: '纵向选择', keep: '保持选择', clear: '清除选择' } }, dataView: { title: '数据视图', lang: ['数据视图', '关闭', '刷新'] }, dataZoom: { title: { zoom: '区域缩放', back: '区域缩放还原' } }, magicType: { title: { line: '切换为折线图', bar: '切换为柱状图', stack: '切换为堆叠', tiled: '切换为平铺' } }, restore: { title: '还原' }, saveAsImage: { title: '保存为图片', lang: ['右键另存为图片'] } }, series: { typeNames: { pie: '饼图', bar: '柱状图', line: '折线图', scatter: '散点图', effectScatter: '涟漪散点图', radar: '雷达图', tree: '树图', treemap: '矩形树图', boxplot: '箱型图', candlestick: 'K线图', k: 'K线图', heatmap: '热力图', map: '地图', parallel: '平行坐标图', lines: '线图', graph: '关系图', sankey: '桑基图', funnel: '漏斗图', gauge: '仪表盘图', pictorialBar: '象形柱图', themeRiver: '主题河流图', sunburst: '旭日图' } }, aria: { general: { withTitle: '这是一个关于“{title}”的图表。', withoutTitle: '这是一个图表,' }, series: { single: { prefix: '', withName: '图表类型是{seriesType},表示{seriesName}。', withoutName: '图表类型是{seriesType}。' }, multiple: { prefix: '它由{seriesCount}个图表系列组成。', withName: '第{seriesId}个系列是一个表示{seriesName}的{seriesType},', withoutName: '第{seriesId}个系列是一个{seriesType},', separator: { middle: ';', end: '。' } } }, data: { allData: '其数据是——', partialData: '其中,前{displayCnt}项是——', withName: '{name}的数据是{value}', withoutName: '{value}', separator: { middle: ',', end: '' } } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var aria = function (dom, ecModel) { var ariaModel = ecModel.getModel('aria'); if (!ariaModel.get('show')) { return; } else if (ariaModel.get('description')) { dom.setAttribute('aria-label', ariaModel.get('description')); return; } var seriesCnt = 0; ecModel.eachSeries(function (seriesModel, idx) { ++seriesCnt; }, this); var maxDataCnt = ariaModel.get('data.maxCount') || 10; var maxSeriesCnt = ariaModel.get('series.maxCount') || 10; var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt); var ariaLabel; if (seriesCnt < 1) { // No series, no aria label return; } else { var title = getTitle(); if (title) { ariaLabel = replace(getConfig('general.withTitle'), { title: title }); } else { ariaLabel = getConfig('general.withoutTitle'); } var seriesLabels = []; var prefix = seriesCnt > 1 ? 'series.multiple.prefix' : 'series.single.prefix'; ariaLabel += replace(getConfig(prefix), { seriesCount: seriesCnt }); ecModel.eachSeries(function (seriesModel, idx) { if (idx < displaySeriesCnt) { var seriesLabel; var seriesName = seriesModel.get('name'); var seriesTpl = 'series.' + (seriesCnt > 1 ? 'multiple' : 'single') + '.'; seriesLabel = getConfig(seriesName ? seriesTpl + 'withName' : seriesTpl + 'withoutName'); seriesLabel = replace(seriesLabel, { seriesId: seriesModel.seriesIndex, seriesName: seriesModel.get('name'), seriesType: getSeriesTypeName(seriesModel.subType) }); var data = seriesModel.getData(); window.data = data; if (data.count() > maxDataCnt) { // Show part of data seriesLabel += replace(getConfig('data.partialData'), { displayCnt: maxDataCnt }); } else { seriesLabel += getConfig('data.allData'); } var dataLabels = []; for (var i = 0; i < data.count(); i++) { if (i < maxDataCnt) { var name = data.getName(i); var value = retrieveRawValue(data, i); dataLabels.push( replace( name ? getConfig('data.withName') : getConfig('data.withoutName'), { name: name, value: value } ) ); } } seriesLabel += dataLabels .join(getConfig('data.separator.middle')) + getConfig('data.separator.end'); seriesLabels.push(seriesLabel); } }); ariaLabel += seriesLabels .join(getConfig('series.multiple.separator.middle')) + getConfig('series.multiple.separator.end'); dom.setAttribute('aria-label', ariaLabel); } function replace(str, keyValues) { if (typeof str !== 'string') { return str; } var result = str; each$1(keyValues, function (value, key) { result = result.replace( new RegExp('\\{\\s*' + key + '\\s*\\}', 'g'), value ); }); return result; } function getConfig(path) { var userConfig = ariaModel.get(path); if (userConfig == null) { var pathArr = path.split('.'); var result = lang.aria; for (var i = 0; i < pathArr.length; ++i) { result = result[pathArr[i]]; } return result; } else { return userConfig; } } function getTitle() { var title = ecModel.getModel('title').option; if (title && title.length) { title = title[0]; } return title && title.text; } function getSeriesTypeName(type) { return lang.series.typeNames[type] || '自定义图'; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI$1 = Math.PI; /** * @param {module:echarts/ExtensionAPI} api * @param {Object} [opts] * @param {string} [opts.text] * @param {string} [opts.color] * @param {string} [opts.textColor] * @return {module:zrender/Element} */ var loadingDefault = function (api, opts) { opts = opts || {}; defaults(opts, { text: 'loading', color: '#c23531', textColor: '#000', maskColor: 'rgba(255, 255, 255, 0.8)', zlevel: 0 }); var mask = new Rect({ style: { fill: opts.maskColor }, zlevel: opts.zlevel, z: 10000 }); var arc = new Arc({ shape: { startAngle: -PI$1 / 2, endAngle: -PI$1 / 2 + 0.1, r: 10 }, style: { stroke: opts.color, lineCap: 'round', lineWidth: 5 }, zlevel: opts.zlevel, z: 10001 }); var labelRect = new Rect({ style: { fill: 'none', text: opts.text, textPosition: 'right', textDistance: 10, textFill: opts.textColor }, zlevel: opts.zlevel, z: 10001 }); arc.animateShape(true) .when(1000, { endAngle: PI$1 * 3 / 2 }) .start('circularInOut'); arc.animateShape(true) .when(1000, { startAngle: PI$1 * 3 / 2 }) .delay(300) .start('circularInOut'); var group = new Group(); group.add(arc); group.add(labelRect); group.add(mask); // Inject resize group.resize = function () { var cx = api.getWidth() / 2; var cy = api.getHeight() / 2; arc.setShape({ cx: cx, cy: cy }); var r = arc.shape.r; labelRect.setShape({ x: cx - r, y: cy - r, width: r * 2, height: r * 2 }); mask.setShape({ x: 0, y: 0, width: api.getWidth(), height: api.getHeight() }); }; group.resize(); return group; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/stream/Scheduler */ /** * @constructor */ function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) { this.ecInstance = ecInstance; this.api = api; this.unfinished; // Fix current processors in case that in some rear cases that // processors might be registered after echarts instance created. // Register processors incrementally for a echarts instance is // not supported by this stream architecture. var dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice(); var visualHandlers = this._visualHandlers = visualHandlers.slice(); this._allHandlers = dataProcessorHandlers.concat(visualHandlers); /** * @private * @type { * [handlerUID: string]: { * seriesTaskMap?: { * [seriesUID: string]: Task * }, * overallTask?: Task * } * } */ this._stageTaskMap = createHashMap(); } var proto = Scheduler.prototype; /** * @param {module:echarts/model/Global} ecModel * @param {Object} payload */ proto.restoreData = function (ecModel, payload) { // TODO: Only restroe needed series and components, but not all components. // Currently `restoreData` of all of the series and component will be called. // But some independent components like `title`, `legend`, `graphic`, `toolbox`, // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`, // and some components like coordinate system, axes, dataZoom, visualMap only // need their target series refresh. // (1) If we are implementing this feature some day, we should consider these cases: // if a data processor depends on a component (e.g., dataZoomProcessor depends // on the settings of `dataZoom`), it should be re-performed if the component // is modified by `setOption`. // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`, // it should be re-performed when the result array of `getTargetSeries` changed. // We use `dependencies` to cover these issues. // (3) How to update target series when coordinate system related components modified. // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty, // and this case all of the tasks will be set as dirty. ecModel.restoreData(payload); // Theoretically an overall task not only depends on each of its target series, but also // depends on all of the series. // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure // that the overall task is set as dirty and to be performed, otherwise it probably cause // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it // probably cause state chaos (consider `dataZoomProcessor`). this._stageTaskMap.each(function (taskRecord) { var overallTask = taskRecord.overallTask; overallTask && overallTask.dirty(); }); }; // If seriesModel provided, incremental threshold is check by series data. proto.getPerformArgs = function (task, isBlock) { // For overall task if (!task.__pipeline) { return; } var pipeline = this._pipelineMap.get(task.__pipeline.id); var pCtx = pipeline.context; var incremental = !isBlock && pipeline.progressiveEnabled && (!pCtx || pCtx.progressiveRender) && task.__idxInPipeline > pipeline.blockIndex; var step = incremental ? pipeline.step : null; var modDataCount = pCtx && pCtx.modDataCount; var modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null; return {step: step, modBy: modBy, modDataCount: modDataCount}; }; proto.getPipeline = function (pipelineId) { return this._pipelineMap.get(pipelineId); }; /** * Current, progressive rendering starts from visual and layout. * Always detect render mode in the same stage, avoiding that incorrect * detection caused by data filtering. * Caution: * `updateStreamModes` use `seriesModel.getData()`. */ proto.updateStreamModes = function (seriesModel, view) { var pipeline = this._pipelineMap.get(seriesModel.uid); var data = seriesModel.getData(); var dataLen = data.count(); // `progressiveRender` means that can render progressively in each // animation frame. Note that some types of series do not provide // `view.incrementalPrepareRender` but support `chart.appendData`. We // use the term `incremental` but not `progressive` to describe the // case that `chart.appendData`. var progressiveRender = pipeline.progressiveEnabled && view.incrementalPrepareRender && dataLen >= pipeline.threshold; var large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold'); // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint. // see `test/candlestick-large3.html` var modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null; seriesModel.pipelineContext = pipeline.context = { progressiveRender: progressiveRender, modDataCount: modDataCount, large: large }; }; proto.restorePipelines = function (ecModel) { var scheduler = this; var pipelineMap = scheduler._pipelineMap = createHashMap(); ecModel.eachSeries(function (seriesModel) { var progressive = seriesModel.getProgressive(); var pipelineId = seriesModel.uid; pipelineMap.set(pipelineId, { id: pipelineId, head: null, tail: null, threshold: seriesModel.getProgressiveThreshold(), progressiveEnabled: progressive && !(seriesModel.preventIncremental && seriesModel.preventIncremental()), blockIndex: -1, step: Math.round(progressive || 700), count: 0 }); pipe(scheduler, seriesModel, seriesModel.dataTask); }); }; proto.prepareStageTasks = function () { var stageTaskMap = this._stageTaskMap; var ecModel = this.ecInstance.getModel(); var api = this.api; each$1(this._allHandlers, function (handler) { var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, []); handler.reset && createSeriesStageTask(this, handler, record, ecModel, api); handler.overallReset && createOverallStageTask(this, handler, record, ecModel, api); }, this); }; proto.prepareView = function (view, model, ecModel, api) { var renderTask = view.renderTask; var context = renderTask.context; context.model = model; context.ecModel = ecModel; context.api = api; renderTask.__block = !view.incrementalPrepareRender; pipe(this, model, renderTask); }; proto.performDataProcessorTasks = function (ecModel, payload) { // If we do not use `block` here, it should be considered when to update modes. performStageTasks(this, this._dataProcessorHandlers, ecModel, payload, {block: true}); }; // opt // opt.visualType: 'visual' or 'layout' // opt.setDirty proto.performVisualTasks = function (ecModel, payload, opt) { performStageTasks(this, this._visualHandlers, ecModel, payload, opt); }; function performStageTasks(scheduler, stageHandlers, ecModel, payload, opt) { opt = opt || {}; var unfinished; each$1(stageHandlers, function (stageHandler, idx) { if (opt.visualType && opt.visualType !== stageHandler.visualType) { return; } var stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid); var seriesTaskMap = stageHandlerRecord.seriesTaskMap; var overallTask = stageHandlerRecord.overallTask; if (overallTask) { var overallNeedDirty; var agentStubMap = overallTask.agentStubMap; agentStubMap.each(function (stub) { if (needSetDirty(opt, stub)) { stub.dirty(); overallNeedDirty = true; } }); overallNeedDirty && overallTask.dirty(); updatePayload(overallTask, payload); var performArgs = scheduler.getPerformArgs(overallTask, opt.block); // Execute stubs firstly, which may set the overall task dirty, // then execute the overall task. And stub will call seriesModel.setData, // which ensures that in the overallTask seriesModel.getData() will not // return incorrect data. agentStubMap.each(function (stub) { stub.perform(performArgs); }); unfinished |= overallTask.perform(performArgs); } else if (seriesTaskMap) { seriesTaskMap.each(function (task, pipelineId) { if (needSetDirty(opt, task)) { task.dirty(); } var performArgs = scheduler.getPerformArgs(task, opt.block); performArgs.skip = !stageHandler.performRawSeries && ecModel.isSeriesFiltered(task.context.model); updatePayload(task, payload); unfinished |= task.perform(performArgs); }); } }); function needSetDirty(opt, task) { return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id)); } scheduler.unfinished |= unfinished; } proto.performSeriesTasks = function (ecModel) { var unfinished; ecModel.eachSeries(function (seriesModel) { // Progress to the end for dataInit and dataRestore. unfinished |= seriesModel.dataTask.perform(); }); this.unfinished |= unfinished; }; proto.plan = function () { // Travel pipelines, check block. this._pipelineMap.each(function (pipeline) { var task = pipeline.tail; do { if (task.__block) { pipeline.blockIndex = task.__idxInPipeline; break; } task = task.getUpstream(); } while (task); }); }; var updatePayload = proto.updatePayload = function (task, payload) { payload !== 'remain' && (task.context.payload = payload); }; function createSeriesStageTask(scheduler, stageHandler, stageHandlerRecord, ecModel, api) { var seriesTaskMap = stageHandlerRecord.seriesTaskMap || (stageHandlerRecord.seriesTaskMap = createHashMap()); var seriesType = stageHandler.seriesType; var getTargetSeries = stageHandler.getTargetSeries; // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily, // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`, // it works but it may cause other irrelevant charts blocked. if (stageHandler.createOnAllSeries) { ecModel.eachRawSeries(create); } else if (seriesType) { ecModel.eachRawSeriesByType(seriesType, create); } else if (getTargetSeries) { getTargetSeries(ecModel, api).each(create); } function create(seriesModel) { var pipelineId = seriesModel.uid; // Init tasks for each seriesModel only once. // Reuse original task instance. var task = seriesTaskMap.get(pipelineId) || seriesTaskMap.set(pipelineId, createTask({ plan: seriesTaskPlan, reset: seriesTaskReset, count: seriesTaskCount })); task.context = { model: seriesModel, ecModel: ecModel, api: api, useClearVisual: stageHandler.isVisual && !stageHandler.isLayout, plan: stageHandler.plan, reset: stageHandler.reset, scheduler: scheduler }; pipe(scheduler, seriesModel, task); } // Clear unused series tasks. var pipelineMap = scheduler._pipelineMap; seriesTaskMap.each(function (task, pipelineId) { if (!pipelineMap.get(pipelineId)) { task.dispose(); seriesTaskMap.removeKey(pipelineId); } }); } function createOverallStageTask(scheduler, stageHandler, stageHandlerRecord, ecModel, api) { var overallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask // For overall task, the function only be called on reset stage. || createTask({reset: overallTaskReset}); overallTask.context = { ecModel: ecModel, api: api, overallReset: stageHandler.overallReset, scheduler: scheduler }; // Reuse orignal stubs. var agentStubMap = overallTask.agentStubMap = overallTask.agentStubMap || createHashMap(); var seriesType = stageHandler.seriesType; var getTargetSeries = stageHandler.getTargetSeries; var overallProgress = true; var modifyOutputEnd = stageHandler.modifyOutputEnd; // An overall task with seriesType detected or has `getTargetSeries`, we add // stub in each pipelines, it will set the overall task dirty when the pipeline // progress. Moreover, to avoid call the overall task each frame (too frequent), // we set the pipeline block. if (seriesType) { ecModel.eachRawSeriesByType(seriesType, createStub); } else if (getTargetSeries) { getTargetSeries(ecModel, api).each(createStub); } // Otherwise, (usually it is legancy case), the overall task will only be // executed when upstream dirty. Otherwise the progressive rendering of all // pipelines will be disabled unexpectedly. But it still needs stubs to receive // dirty info from upsteam. else { overallProgress = false; each$1(ecModel.getSeries(), createStub); } function createStub(seriesModel) { var pipelineId = seriesModel.uid; var stub = agentStubMap.get(pipelineId); if (!stub) { stub = agentStubMap.set(pipelineId, createTask( {reset: stubReset, onDirty: stubOnDirty} )); // When the result of `getTargetSeries` changed, the overallTask // should be set as dirty and re-performed. overallTask.dirty(); } stub.context = { model: seriesModel, overallProgress: overallProgress, modifyOutputEnd: modifyOutputEnd }; stub.agent = overallTask; stub.__block = overallProgress; pipe(scheduler, seriesModel, stub); } // Clear unused stubs. var pipelineMap = scheduler._pipelineMap; agentStubMap.each(function (stub, pipelineId) { if (!pipelineMap.get(pipelineId)) { stub.dispose(); // When the result of `getTargetSeries` changed, the overallTask // should be set as dirty and re-performed. overallTask.dirty(); agentStubMap.removeKey(pipelineId); } }); } function overallTaskReset(context) { context.overallReset( context.ecModel, context.api, context.payload ); } function stubReset(context, upstreamContext) { return context.overallProgress && stubProgress; } function stubProgress() { this.agent.dirty(); this.getDownstream().dirty(); } function stubOnDirty() { this.agent && this.agent.dirty(); } function seriesTaskPlan(context) { return context.plan && context.plan( context.model, context.ecModel, context.api, context.payload ); } function seriesTaskReset(context) { if (context.useClearVisual) { context.data.clearAllVisual(); } var resetDefines = context.resetDefines = normalizeToArray(context.reset( context.model, context.ecModel, context.api, context.payload )); return resetDefines.length > 1 ? map(resetDefines, function (v, idx) { return makeSeriesTaskProgress(idx); }) : singleSeriesTaskProgress; } var singleSeriesTaskProgress = makeSeriesTaskProgress(0); function makeSeriesTaskProgress(resetDefineIdx) { return function (params, context) { var data = context.data; var resetDefine = context.resetDefines[resetDefineIdx]; if (resetDefine && resetDefine.dataEach) { for (var i = params.start; i < params.end; i++) { resetDefine.dataEach(data, i); } } else if (resetDefine && resetDefine.progress) { resetDefine.progress(params, data); } }; } function seriesTaskCount(context) { return context.data.count(); } function pipe(scheduler, seriesModel, task) { var pipelineId = seriesModel.uid; var pipeline = scheduler._pipelineMap.get(pipelineId); !pipeline.head && (pipeline.head = task); pipeline.tail && pipeline.tail.pipe(task); pipeline.tail = task; task.__idxInPipeline = pipeline.count++; task.__pipeline = pipeline; } Scheduler.wrapStageHandler = function (stageHandler, visualType) { if (isFunction$1(stageHandler)) { stageHandler = { overallReset: stageHandler, seriesType: detectSeriseType(stageHandler) }; } stageHandler.uid = getUID('stageHandler'); visualType && (stageHandler.visualType = visualType); return stageHandler; }; /** * Only some legacy stage handlers (usually in echarts extensions) are pure function. * To ensure that they can work normally, they should work in block mode, that is, * they should not be started util the previous tasks finished. So they cause the * progressive rendering disabled. We try to detect the series type, to narrow down * the block range to only the series type they concern, but not all series. */ function detectSeriseType(legacyFunc) { seriesType = null; try { // Assume there is no async when calling `eachSeriesByType`. legacyFunc(ecModelMock, apiMock); } catch (e) { } return seriesType; } var ecModelMock = {}; var apiMock = {}; var seriesType; mockMethods(ecModelMock, GlobalModel); mockMethods(apiMock, ExtensionAPI); ecModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) { seriesType = type; }; ecModelMock.eachComponent = function (cond) { if (cond.mainType === 'series' && cond.subType) { seriesType = cond.subType; } }; function mockMethods(target, Clz) { /* eslint-disable */ for (var name in Clz.prototype) { // Do not use hasOwnProperty target[name] = noop; } /* eslint-enable */ } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var colorAll = [ '#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF' ]; var lightTheme = { color: colorAll, colorLayer: [ ['#37A2DA', '#ffd85c', '#fd7b5f'], ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'], ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'], colorAll ] }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var contrastColor = '#eee'; var axisCommon = function () { return { axisLine: { lineStyle: { color: contrastColor } }, axisTick: { lineStyle: { color: contrastColor } }, axisLabel: { textStyle: { color: contrastColor } }, splitLine: { lineStyle: { type: 'dashed', color: '#aaa' } }, splitArea: { areaStyle: { color: contrastColor } } }; }; var colorPalette = [ '#dd6b66', '#759aa0', '#e69d87', '#8dc1a9', '#ea7e53', '#eedd78', '#73a373', '#73b9bc', '#7289ab', '#91ca8c', '#f49f42' ]; var theme = { color: colorPalette, backgroundColor: '#333', tooltip: { axisPointer: { lineStyle: { color: contrastColor }, crossStyle: { color: contrastColor } } }, legend: { textStyle: { color: contrastColor } }, textStyle: { color: contrastColor }, title: { textStyle: { color: contrastColor } }, toolbox: { iconStyle: { normal: { borderColor: contrastColor } } }, dataZoom: { textStyle: { color: contrastColor } }, visualMap: { textStyle: { color: contrastColor } }, timeline: { lineStyle: { color: contrastColor }, itemStyle: { normal: { color: colorPalette[1] } }, label: { normal: { textStyle: { color: contrastColor } } }, controlStyle: { normal: { color: contrastColor, borderColor: contrastColor } } }, timeAxis: axisCommon(), logAxis: axisCommon(), valueAxis: axisCommon(), categoryAxis: axisCommon(), line: { symbol: 'circle' }, graph: { color: colorPalette }, gauge: { title: { textStyle: { color: contrastColor } } }, candlestick: { itemStyle: { normal: { color: '#FD1050', color0: '#0CF49B', borderColor: '#FD1050', borderColor0: '#0CF49B' } } } }; theme.categoryAxis.splitLine.show = false; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * This module is imported by echarts directly. * * Notice: * Always keep this file exists for backward compatibility. * Because before 4.1.0, dataset is an optional component, * some users may import this module manually. */ ComponentModel.extend({ type: 'dataset', /** * @protected */ defaultOption: { // 'row', 'column' seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN, // null/'auto': auto detect header, see "module:echarts/data/helper/sourceHelper" sourceHeader: null, dimensions: null, source: null }, optionUpdated: function () { detectSourceFormat(this); } }); Component$1.extend({ type: 'dataset' }); /** * 椭圆形状 * @module zrender/graphic/shape/Ellipse */ var Ellipse = Path.extend({ type: 'ellipse', shape: { cx: 0, cy: 0, rx: 0, ry: 0 }, buildPath: function (ctx, shape) { var k = 0.5522848; var x = shape.cx; var y = shape.cy; var a = shape.rx; var b = shape.ry; var ox = a * k; // 水平控制点偏移量 var oy = b * k; // 垂直控制点偏移量 // 从椭圆的左端点开始顺时针绘制四条三次贝塞尔曲线 ctx.moveTo(x - a, y); ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b); ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y); ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b); ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y); ctx.closePath(); } }); // import RadialGradient from '../graphic/RadialGradient'; // import Pattern from '../graphic/Pattern'; // import * as vector from '../core/vector'; // Most of the values can be separated by comma and/or white space. var DILIMITER_REG = /[\s,]+/; /** * For big svg string, this method might be time consuming. * * @param {string} svg xml string * @return {Object} xml root. */ function parseXML(svg) { if (isString(svg)) { var parser = new DOMParser(); svg = parser.parseFromString(svg, 'text/xml'); } // Document node. If using $.get, doc node may be input. if (svg.nodeType === 9) { svg = svg.firstChild; } // nodeName of is also 'svg'. while (svg.nodeName.toLowerCase() !== 'svg' || svg.nodeType !== 1) { svg = svg.nextSibling; } return svg; } function SVGParser() { this._defs = {}; this._root = null; this._isDefine = false; this._isText = false; } SVGParser.prototype.parse = function (xml, opt) { opt = opt || {}; var svg = parseXML(xml); if (!svg) { throw new Error('Illegal svg'); } var root = new Group(); this._root = root; // parse view port var viewBox = svg.getAttribute('viewBox') || ''; // If width/height not specified, means "100%" of `opt.width/height`. // TODO: Other percent value not supported yet. var width = parseFloat(svg.getAttribute('width') || opt.width); var height = parseFloat(svg.getAttribute('height') || opt.height); // If width/height not specified, set as null for output. isNaN(width) && (width = null); isNaN(height) && (height = null); // Apply inline style on svg element. parseAttributes(svg, root, null, true); var child = svg.firstChild; while (child) { this._parseNode(child, root); child = child.nextSibling; } var viewBoxRect; var viewBoxTransform; if (viewBox) { var viewBoxArr = trim(viewBox).split(DILIMITER_REG); // Some invalid case like viewBox: 'none'. if (viewBoxArr.length >= 4) { viewBoxRect = { x: parseFloat(viewBoxArr[0] || 0), y: parseFloat(viewBoxArr[1] || 0), width: parseFloat(viewBoxArr[2]), height: parseFloat(viewBoxArr[3]) }; } } if (viewBoxRect && width != null && height != null) { viewBoxTransform = makeViewBoxTransform(viewBoxRect, width, height); if (!opt.ignoreViewBox) { // If set transform on the output group, it probably bring trouble when // some users only intend to show the clipped content inside the viewBox, // but not intend to transform the output group. So we keep the output // group no transform. If the user intend to use the viewBox as a // camera, just set `opt.ignoreViewBox` as `true` and set transfrom // manually according to the viewBox info in the output of this method. var elRoot = root; root = new Group(); root.add(elRoot); elRoot.scale = viewBoxTransform.scale.slice(); elRoot.position = viewBoxTransform.position.slice(); } } // Some shapes might be overflow the viewport, which should be // clipped despite whether the viewBox is used, as the SVG does. if (!opt.ignoreRootClip && width != null && height != null) { root.setClipPath(new Rect({ shape: {x: 0, y: 0, width: width, height: height} })); } // Set width/height on group just for output the viewport size. return { root: root, width: width, height: height, viewBoxRect: viewBoxRect, viewBoxTransform: viewBoxTransform }; }; SVGParser.prototype._parseNode = function (xmlNode, parentGroup) { var nodeName = xmlNode.nodeName.toLowerCase(); // TODO // support in svg, where nodeName is 'style', // CSS classes is defined globally wherever the style tags are declared. if (nodeName === 'defs') { // define flag this._isDefine = true; } else if (nodeName === 'text') { this._isText = true; } var el; if (this._isDefine) { var parser = defineParsers[nodeName]; if (parser) { var def = parser.call(this, xmlNode); var id = xmlNode.getAttribute('id'); if (id) { this._defs[id] = def; } } } else { var parser = nodeParsers[nodeName]; if (parser) { el = parser.call(this, xmlNode, parentGroup); parentGroup.add(el); } } var child = xmlNode.firstChild; while (child) { if (child.nodeType === 1) { this._parseNode(child, el); } // Is text if (child.nodeType === 3 && this._isText) { this._parseText(child, el); } child = child.nextSibling; } // Quit define if (nodeName === 'defs') { this._isDefine = false; } else if (nodeName === 'text') { this._isText = false; } }; SVGParser.prototype._parseText = function (xmlNode, parentGroup) { if (xmlNode.nodeType === 1) { var dx = xmlNode.getAttribute('dx') || 0; var dy = xmlNode.getAttribute('dy') || 0; this._textX += parseFloat(dx); this._textY += parseFloat(dy); } var text = new Text({ style: { text: xmlNode.textContent, transformText: true }, position: [this._textX || 0, this._textY || 0] }); inheritStyle(parentGroup, text); parseAttributes(xmlNode, text, this._defs); var fontSize = text.style.fontSize; if (fontSize && fontSize < 9) { // PENDING text.style.fontSize = 9; text.scale = text.scale || [1, 1]; text.scale[0] *= fontSize / 9; text.scale[1] *= fontSize / 9; } var rect = text.getBoundingRect(); this._textX += rect.width; parentGroup.add(text); return text; }; var nodeParsers = { 'g': function (xmlNode, parentGroup) { var g = new Group(); inheritStyle(parentGroup, g); parseAttributes(xmlNode, g, this._defs); return g; }, 'rect': function (xmlNode, parentGroup) { var rect = new Rect(); inheritStyle(parentGroup, rect); parseAttributes(xmlNode, rect, this._defs); rect.setShape({ x: parseFloat(xmlNode.getAttribute('x') || 0), y: parseFloat(xmlNode.getAttribute('y') || 0), width: parseFloat(xmlNode.getAttribute('width') || 0), height: parseFloat(xmlNode.getAttribute('height') || 0) }); // console.log(xmlNode.getAttribute('transform')); // console.log(rect.transform); return rect; }, 'circle': function (xmlNode, parentGroup) { var circle = new Circle(); inheritStyle(parentGroup, circle); parseAttributes(xmlNode, circle, this._defs); circle.setShape({ cx: parseFloat(xmlNode.getAttribute('cx') || 0), cy: parseFloat(xmlNode.getAttribute('cy') || 0), r: parseFloat(xmlNode.getAttribute('r') || 0) }); return circle; }, 'line': function (xmlNode, parentGroup) { var line = new Line(); inheritStyle(parentGroup, line); parseAttributes(xmlNode, line, this._defs); line.setShape({ x1: parseFloat(xmlNode.getAttribute('x1') || 0), y1: parseFloat(xmlNode.getAttribute('y1') || 0), x2: parseFloat(xmlNode.getAttribute('x2') || 0), y2: parseFloat(xmlNode.getAttribute('y2') || 0) }); return line; }, 'ellipse': function (xmlNode, parentGroup) { var ellipse = new Ellipse(); inheritStyle(parentGroup, ellipse); parseAttributes(xmlNode, ellipse, this._defs); ellipse.setShape({ cx: parseFloat(xmlNode.getAttribute('cx') || 0), cy: parseFloat(xmlNode.getAttribute('cy') || 0), rx: parseFloat(xmlNode.getAttribute('rx') || 0), ry: parseFloat(xmlNode.getAttribute('ry') || 0) }); return ellipse; }, 'polygon': function (xmlNode, parentGroup) { var points = xmlNode.getAttribute('points'); if (points) { points = parsePoints(points); } var polygon = new Polygon({ shape: { points: points || [] } }); inheritStyle(parentGroup, polygon); parseAttributes(xmlNode, polygon, this._defs); return polygon; }, 'polyline': function (xmlNode, parentGroup) { var path = new Path(); inheritStyle(parentGroup, path); parseAttributes(xmlNode, path, this._defs); var points = xmlNode.getAttribute('points'); if (points) { points = parsePoints(points); } var polyline = new Polyline({ shape: { points: points || [] } }); return polyline; }, 'image': function (xmlNode, parentGroup) { var img = new ZImage(); inheritStyle(parentGroup, img); parseAttributes(xmlNode, img, this._defs); img.setStyle({ image: xmlNode.getAttribute('xlink:href'), x: xmlNode.getAttribute('x'), y: xmlNode.getAttribute('y'), width: xmlNode.getAttribute('width'), height: xmlNode.getAttribute('height') }); return img; }, 'text': function (xmlNode, parentGroup) { var x = xmlNode.getAttribute('x') || 0; var y = xmlNode.getAttribute('y') || 0; var dx = xmlNode.getAttribute('dx') || 0; var dy = xmlNode.getAttribute('dy') || 0; this._textX = parseFloat(x) + parseFloat(dx); this._textY = parseFloat(y) + parseFloat(dy); var g = new Group(); inheritStyle(parentGroup, g); parseAttributes(xmlNode, g, this._defs); return g; }, 'tspan': function (xmlNode, parentGroup) { var x = xmlNode.getAttribute('x'); var y = xmlNode.getAttribute('y'); if (x != null) { // new offset x this._textX = parseFloat(x); } if (y != null) { // new offset y this._textY = parseFloat(y); } var dx = xmlNode.getAttribute('dx') || 0; var dy = xmlNode.getAttribute('dy') || 0; var g = new Group(); inheritStyle(parentGroup, g); parseAttributes(xmlNode, g, this._defs); this._textX += dx; this._textY += dy; return g; }, 'path': function (xmlNode, parentGroup) { // TODO svg fill rule // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule // path.style.globalCompositeOperation = 'xor'; var d = xmlNode.getAttribute('d') || ''; // Performance sensitive. var path = createFromString(d); inheritStyle(parentGroup, path); parseAttributes(xmlNode, path, this._defs); return path; } }; var defineParsers = { 'lineargradient': function (xmlNode) { var x1 = parseInt(xmlNode.getAttribute('x1') || 0, 10); var y1 = parseInt(xmlNode.getAttribute('y1') || 0, 10); var x2 = parseInt(xmlNode.getAttribute('x2') || 10, 10); var y2 = parseInt(xmlNode.getAttribute('y2') || 0, 10); var gradient = new LinearGradient(x1, y1, x2, y2); _parseGradientColorStops(xmlNode, gradient); return gradient; }, 'radialgradient': function (xmlNode) { } }; function _parseGradientColorStops(xmlNode, gradient) { var stop = xmlNode.firstChild; while (stop) { if (stop.nodeType === 1) { var offset = stop.getAttribute('offset'); if (offset.indexOf('%') > 0) { // percentage offset = parseInt(offset, 10) / 100; } else if (offset) { // number from 0 to 1 offset = parseFloat(offset); } else { offset = 0; } var stopColor = stop.getAttribute('stop-color') || '#000000'; gradient.addColorStop(offset, stopColor); } stop = stop.nextSibling; } } function inheritStyle(parent, child) { if (parent && parent.__inheritedStyle) { if (!child.__inheritedStyle) { child.__inheritedStyle = {}; } defaults(child.__inheritedStyle, parent.__inheritedStyle); } } function parsePoints(pointsString) { var list = trim(pointsString).split(DILIMITER_REG); var points = []; for (var i = 0; i < list.length; i += 2) { var x = parseFloat(list[i]); var y = parseFloat(list[i + 1]); points.push([x, y]); } return points; } var attributesMap = { 'fill': 'fill', 'stroke': 'stroke', 'stroke-width': 'lineWidth', 'opacity': 'opacity', 'fill-opacity': 'fillOpacity', 'stroke-opacity': 'strokeOpacity', 'stroke-dasharray': 'lineDash', 'stroke-dashoffset': 'lineDashOffset', 'stroke-linecap': 'lineCap', 'stroke-linejoin': 'lineJoin', 'stroke-miterlimit': 'miterLimit', 'font-family': 'fontFamily', 'font-size': 'fontSize', 'font-style': 'fontStyle', 'font-weight': 'fontWeight', 'text-align': 'textAlign', 'alignment-baseline': 'textBaseline' }; function parseAttributes(xmlNode, el, defs, onlyInlineStyle) { var zrStyle = el.__inheritedStyle || {}; var isTextEl = el.type === 'text'; // TODO Shadow if (xmlNode.nodeType === 1) { parseTransformAttribute(xmlNode, el); extend(zrStyle, parseStyleAttribute(xmlNode)); if (!onlyInlineStyle) { for (var svgAttrName in attributesMap) { if (attributesMap.hasOwnProperty(svgAttrName)) { var attrValue = xmlNode.getAttribute(svgAttrName); if (attrValue != null) { zrStyle[attributesMap[svgAttrName]] = attrValue; } } } } } var elFillProp = isTextEl ? 'textFill' : 'fill'; var elStrokeProp = isTextEl ? 'textStroke' : 'stroke'; el.style = el.style || new Style(); var elStyle = el.style; zrStyle.fill != null && elStyle.set(elFillProp, getPaint(zrStyle.fill, defs)); zrStyle.stroke != null && elStyle.set(elStrokeProp, getPaint(zrStyle.stroke, defs)); each$1([ 'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize' ], function (propName) { var elPropName = (propName === 'lineWidth' && isTextEl) ? 'textStrokeWidth' : propName; zrStyle[propName] != null && elStyle.set(elPropName, parseFloat(zrStyle[propName])); }); if (!zrStyle.textBaseline || zrStyle.textBaseline === 'auto') { zrStyle.textBaseline = 'alphabetic'; } if (zrStyle.textBaseline === 'alphabetic') { zrStyle.textBaseline = 'bottom'; } if (zrStyle.textAlign === 'start') { zrStyle.textAlign = 'left'; } if (zrStyle.textAlign === 'end') { zrStyle.textAlign = 'right'; } each$1(['lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign', 'textBaseline' ], function (propName) { zrStyle[propName] != null && elStyle.set(propName, zrStyle[propName]); }); if (zrStyle.lineDash) { el.style.lineDash = trim(zrStyle.lineDash).split(DILIMITER_REG); } if (elStyle[elStrokeProp] && elStyle[elStrokeProp] !== 'none') { // enable stroke el[elStrokeProp] = true; } el.__inheritedStyle = zrStyle; } var urlRegex = /url\(\s*#(.*?)\)/; function getPaint(str, defs) { // if (str === 'none') { // return; // } var urlMatch = defs && str && str.match(urlRegex); if (urlMatch) { var url = trim(urlMatch[1]); var def = defs[url]; return def; } return str; } var transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g; function parseTransformAttribute(xmlNode, node) { var transform = xmlNode.getAttribute('transform'); if (transform) { transform = transform.replace(/,/g, ' '); var m = null; var transformOps = []; transform.replace(transformRegex, function (str, type, value) { transformOps.push(type, value); }); for (var i = transformOps.length - 1; i > 0; i -= 2) { var value = transformOps[i]; var type = transformOps[i - 1]; m = m || create$1(); switch (type) { case 'translate': value = trim(value).split(DILIMITER_REG); translate(m, m, [parseFloat(value[0]), parseFloat(value[1] || 0)]); break; case 'scale': value = trim(value).split(DILIMITER_REG); scale$1(m, m, [parseFloat(value[0]), parseFloat(value[1] || value[0])]); break; case 'rotate': value = trim(value).split(DILIMITER_REG); rotate(m, m, parseFloat(value[0])); break; case 'skew': value = trim(value).split(DILIMITER_REG); console.warn('Skew transform is not supported yet'); break; case 'matrix': var value = trim(value).split(DILIMITER_REG); m[0] = parseFloat(value[0]); m[1] = parseFloat(value[1]); m[2] = parseFloat(value[2]); m[3] = parseFloat(value[3]); m[4] = parseFloat(value[4]); m[5] = parseFloat(value[5]); break; } } node.setLocalTransform(m); } } // Value may contain space. var styleRegex = /([^\s:;]+)\s*:\s*([^:;]+)/g; function parseStyleAttribute(xmlNode) { var style = xmlNode.getAttribute('style'); var result = {}; if (!style) { return result; } var styleList = {}; styleRegex.lastIndex = 0; var styleRegResult; while ((styleRegResult = styleRegex.exec(style)) != null) { styleList[styleRegResult[1]] = styleRegResult[2]; } for (var svgAttrName in attributesMap) { if (attributesMap.hasOwnProperty(svgAttrName) && styleList[svgAttrName] != null) { result[attributesMap[svgAttrName]] = styleList[svgAttrName]; } } return result; } /** * @param {Array.} viewBoxRect * @param {number} width * @param {number} height * @return {Object} {scale, position} */ function makeViewBoxTransform(viewBoxRect, width, height) { var scaleX = width / viewBoxRect.width; var scaleY = height / viewBoxRect.height; var scale = Math.min(scaleX, scaleY); // preserveAspectRatio 'xMidYMid' var viewBoxScale = [scale, scale]; var viewBoxPosition = [ -(viewBoxRect.x + viewBoxRect.width / 2) * scale + width / 2, -(viewBoxRect.y + viewBoxRect.height / 2) * scale + height / 2 ]; return { scale: viewBoxScale, position: viewBoxPosition }; } /** * @param {string|XMLElement} xml * @param {Object} [opt] * @param {number} [opt.width] Default width if svg width not specified or is a percent value. * @param {number} [opt.height] Default height if svg height not specified or is a percent value. * @param {boolean} [opt.ignoreViewBox] * @param {boolean} [opt.ignoreRootClip] * @return {Object} result: * { * root: Group, The root of the the result tree of zrender shapes, * width: number, the viewport width of the SVG, * height: number, the viewport height of the SVG, * viewBoxRect: {x, y, width, height}, the declared viewBox rect of the SVG, if exists, * viewBoxTransform: the {scale, position} calculated by viewBox and viewport, is exists. * } */ function parseSVG(xml, opt) { var parser = new SVGParser(); return parser.parse(xml, opt); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var storage = createHashMap(); // For minimize the code size of common echarts package, // do not put too much logic in this module. var mapDataStorage = { // The format of record: see `echarts.registerMap`. // Compatible with previous `echarts.registerMap`. registerMap: function (mapName, rawGeoJson, rawSpecialAreas) { var records; if (isArray(rawGeoJson)) { records = rawGeoJson; } else if (rawGeoJson.svg) { records = [{ type: 'svg', source: rawGeoJson.svg, specialAreas: rawGeoJson.specialAreas }]; } else { // Backward compatibility. if (rawGeoJson.geoJson && !rawGeoJson.features) { rawSpecialAreas = rawGeoJson.specialAreas; rawGeoJson = rawGeoJson.geoJson; } records = [{ type: 'geoJSON', source: rawGeoJson, specialAreas: rawSpecialAreas }]; } each$1(records, function (record) { var type = record.type; type === 'geoJson' && (type = record.type = 'geoJSON'); var parse = parsers[type]; if (__DEV__) { assert$1(parse, 'Illegal map type: ' + type); } parse(record); }); return storage.set(mapName, records); }, retrieveMap: function (mapName) { return storage.get(mapName); } }; var parsers = { geoJSON: function (record) { var source = record.source; record.geoJSON = !isString(source) ? source : (typeof JSON !== 'undefined' && JSON.parse) ? JSON.parse(source) : (new Function('return (' + source + ');'))(); }, // Only perform parse to XML object here, which might be time // consiming for large SVG. // Although convert XML to zrender element is also time consiming, // if we do it here, the clone of zrender elements has to be // required. So we do it once for each geo instance, util real // performance issues call for optimizing it. svg: function (record) { record.svgXML = parseXML(record.source); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var assert = assert$1; var each = each$1; var isFunction = isFunction$1; var isObject = isObject$1; var parseClassType = ComponentModel.parseClassType; var version = '4.3.0'; var dependencies = { zrender: '4.1.0' }; var TEST_FRAME_REMAIN_TIME = 1; var PRIORITY_PROCESSOR_FILTER = 1000; var PRIORITY_PROCESSOR_STATISTIC = 5000; var PRIORITY_VISUAL_LAYOUT = 1000; var PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100; var PRIORITY_VISUAL_GLOBAL = 2000; var PRIORITY_VISUAL_CHART = 3000; var PRIORITY_VISUAL_POST_CHART_LAYOUT = 3500; var PRIORITY_VISUAL_COMPONENT = 4000; // FIXME // necessary? var PRIORITY_VISUAL_BRUSH = 5000; var PRIORITY = { PROCESSOR: { FILTER: PRIORITY_PROCESSOR_FILTER, STATISTIC: PRIORITY_PROCESSOR_STATISTIC }, VISUAL: { LAYOUT: PRIORITY_VISUAL_LAYOUT, PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT, GLOBAL: PRIORITY_VISUAL_GLOBAL, CHART: PRIORITY_VISUAL_CHART, POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT, COMPONENT: PRIORITY_VISUAL_COMPONENT, BRUSH: PRIORITY_VISUAL_BRUSH } }; // Main process have three entries: `setOption`, `dispatchAction` and `resize`, // where they must not be invoked nestedly, except the only case: invoke // dispatchAction with updateMethod "none" in main process. // This flag is used to carry out this rule. // All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]). var IN_MAIN_PROCESS = '__flagInMainProcess'; var OPTION_UPDATED = '__optionUpdated'; var ACTION_REG = /^[a-zA-Z0-9_]+$/; function createRegisterEventWithLowercaseName(method) { return function (eventName, handler, context) { // Event name is all lowercase eventName = eventName && eventName.toLowerCase(); Eventful.prototype[method].call(this, eventName, handler, context); }; } /** * @module echarts~MessageCenter */ function MessageCenter() { Eventful.call(this); } MessageCenter.prototype.on = createRegisterEventWithLowercaseName('on'); MessageCenter.prototype.off = createRegisterEventWithLowercaseName('off'); MessageCenter.prototype.one = createRegisterEventWithLowercaseName('one'); mixin(MessageCenter, Eventful); /** * @module echarts~ECharts */ function ECharts(dom, theme$$1, opts) { opts = opts || {}; // Get theme by name if (typeof theme$$1 === 'string') { theme$$1 = themeStorage[theme$$1]; } /** * @type {string} */ this.id; /** * Group id * @type {string} */ this.group; /** * @type {HTMLElement} * @private */ this._dom = dom; var defaultRenderer = 'canvas'; if (__DEV__) { defaultRenderer = ( typeof window === 'undefined' ? global : window ).__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer; } /** * @type {module:zrender/ZRender} * @private */ var zr = this._zr = init$1(dom, { renderer: opts.renderer || defaultRenderer, devicePixelRatio: opts.devicePixelRatio, width: opts.width, height: opts.height }); /** * Expect 60 fps. * @type {Function} * @private */ this._throttledZrFlush = throttle(bind(zr.flush, zr), 17); var theme$$1 = clone(theme$$1); theme$$1 && backwardCompat(theme$$1, true); /** * @type {Object} * @private */ this._theme = theme$$1; /** * @type {Array.} * @private */ this._chartsViews = []; /** * @type {Object.} * @private */ this._chartsMap = {}; /** * @type {Array.} * @private */ this._componentsViews = []; /** * @type {Object.} * @private */ this._componentsMap = {}; /** * @type {module:echarts/CoordinateSystem} * @private */ this._coordSysMgr = new CoordinateSystemManager(); /** * @type {module:echarts/ExtensionAPI} * @private */ var api = this._api = createExtensionAPI(this); // Sort on demand function prioritySortFunc(a, b) { return a.__prio - b.__prio; } sort(visualFuncs, prioritySortFunc); sort(dataProcessorFuncs, prioritySortFunc); /** * @type {module:echarts/stream/Scheduler} */ this._scheduler = new Scheduler(this, api, dataProcessorFuncs, visualFuncs); Eventful.call(this, this._ecEventProcessor = new EventProcessor()); /** * @type {module:echarts~MessageCenter} * @private */ this._messageCenter = new MessageCenter(); // Init mouse events this._initEvents(); // In case some people write `window.onresize = chart.resize` this.resize = bind(this.resize, this); // Can't dispatch action during rendering procedure this._pendingActions = []; zr.animation.on('frame', this._onframe, this); bindRenderedEvent(zr, this); // ECharts instance can be used as value. setAsPrimitive(this); } var echartsProto = ECharts.prototype; echartsProto._onframe = function () { if (this._disposed) { return; } var scheduler = this._scheduler; // Lazy update if (this[OPTION_UPDATED]) { var silent = this[OPTION_UPDATED].silent; this[IN_MAIN_PROCESS] = true; prepare(this); updateMethods.update.call(this); this[IN_MAIN_PROCESS] = false; this[OPTION_UPDATED] = false; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); } // Avoid do both lazy update and progress in one frame. else if (scheduler.unfinished) { // Stream progress. var remainTime = TEST_FRAME_REMAIN_TIME; var ecModel = this._model; var api = this._api; scheduler.unfinished = false; do { var startTime = +new Date(); scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold. scheduler.performDataProcessorTasks(ecModel); updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in // each frame is not a good user experience. So we follow the rule that // the extent of the coordinate system is determin in the first frame (the // frame is executed immedietely after task reset. // this._coordSysMgr.update(ecModel, api); // console.log('--- ec frame visual ---', remainTime); scheduler.performVisualTasks(ecModel); renderSeries(this, this._model, api, 'remain'); remainTime -= (+new Date() - startTime); } while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event. if (!scheduler.unfinished) { this._zr.flush(); } // Else, zr flushing be ensue within the same frame, // because zr flushing is after onframe event. } }; /** * @return {HTMLElement} */ echartsProto.getDom = function () { return this._dom; }; /** * @return {module:zrender~ZRender} */ echartsProto.getZr = function () { return this._zr; }; /** * Usage: * chart.setOption(option, notMerge, lazyUpdate); * chart.setOption(option, { * notMerge: ..., * lazyUpdate: ..., * silent: ... * }); * * @param {Object} option * @param {Object|boolean} [opts] opts or notMerge. * @param {boolean} [opts.notMerge=false] * @param {boolean} [opts.lazyUpdate=false] Useful when setOption frequently. */ echartsProto.setOption = function (option, notMerge, lazyUpdate) { if (__DEV__) { assert(!this[IN_MAIN_PROCESS], '`setOption` should not be called during main process.'); } var silent; if (isObject(notMerge)) { lazyUpdate = notMerge.lazyUpdate; silent = notMerge.silent; notMerge = notMerge.notMerge; } this[IN_MAIN_PROCESS] = true; if (!this._model || notMerge) { var optionManager = new OptionManager(this._api); var theme$$1 = this._theme; var ecModel = this._model = new GlobalModel(); ecModel.scheduler = this._scheduler; ecModel.init(null, null, theme$$1, optionManager); } this._model.setOption(option, optionPreprocessorFuncs); if (lazyUpdate) { this[OPTION_UPDATED] = {silent: silent}; this[IN_MAIN_PROCESS] = false; } else { prepare(this); updateMethods.update.call(this); // Ensure zr refresh sychronously, and then pixel in canvas can be // fetched after `setOption`. this._zr.flush(); this[OPTION_UPDATED] = false; this[IN_MAIN_PROCESS] = false; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); } }; /** * @DEPRECATED */ echartsProto.setTheme = function () { console.error('ECharts#setTheme() is DEPRECATED in ECharts 3.0'); }; /** * @return {module:echarts/model/Global} */ echartsProto.getModel = function () { return this._model; }; /** * @return {Object} */ echartsProto.getOption = function () { return this._model && this._model.getOption(); }; /** * @return {number} */ echartsProto.getWidth = function () { return this._zr.getWidth(); }; /** * @return {number} */ echartsProto.getHeight = function () { return this._zr.getHeight(); }; /** * @return {number} */ echartsProto.getDevicePixelRatio = function () { return this._zr.painter.dpr || window.devicePixelRatio || 1; }; /** * Get canvas which has all thing rendered * @param {Object} opts * @param {string} [opts.backgroundColor] * @return {string} */ echartsProto.getRenderedCanvas = function (opts) { if (!env$1.canvasSupported) { return; } opts = opts || {}; opts.pixelRatio = opts.pixelRatio || 1; opts.backgroundColor = opts.backgroundColor || this._model.get('backgroundColor'); var zr = this._zr; // var list = zr.storage.getDisplayList(); // Stop animations // Never works before in init animation, so remove it. // zrUtil.each(list, function (el) { // el.stopAnimation(true); // }); return zr.painter.getRenderedCanvas(opts); }; /** * Get svg data url * @return {string} */ echartsProto.getSvgDataUrl = function () { if (!env$1.svgSupported) { return; } var zr = this._zr; var list = zr.storage.getDisplayList(); // Stop animations each$1(list, function (el) { el.stopAnimation(true); }); return zr.painter.pathToDataUrl(); }; /** * @return {string} * @param {Object} opts * @param {string} [opts.type='png'] * @param {string} [opts.pixelRatio=1] * @param {string} [opts.backgroundColor] * @param {string} [opts.excludeComponents] */ echartsProto.getDataURL = function (opts) { opts = opts || {}; var excludeComponents = opts.excludeComponents; var ecModel = this._model; var excludesComponentViews = []; var self = this; each(excludeComponents, function (componentType) { ecModel.eachComponent({ mainType: componentType }, function (component) { var view = self._componentsMap[component.__viewId]; if (!view.group.ignore) { excludesComponentViews.push(view); view.group.ignore = true; } }); }); var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataUrl() : this.getRenderedCanvas(opts).toDataURL( 'image/' + (opts && opts.type || 'png') ); each(excludesComponentViews, function (view) { view.group.ignore = false; }); return url; }; /** * @return {string} * @param {Object} opts * @param {string} [opts.type='png'] * @param {string} [opts.pixelRatio=1] * @param {string} [opts.backgroundColor] */ echartsProto.getConnectedDataURL = function (opts) { if (!env$1.canvasSupported) { return; } var groupId = this.group; var mathMin = Math.min; var mathMax = Math.max; var MAX_NUMBER = Infinity; if (connectedGroups[groupId]) { var left = MAX_NUMBER; var top = MAX_NUMBER; var right = -MAX_NUMBER; var bottom = -MAX_NUMBER; var canvasList = []; var dpr = (opts && opts.pixelRatio) || 1; each$1(instances, function (chart, id) { if (chart.group === groupId) { var canvas = chart.getRenderedCanvas( clone(opts) ); var boundingRect = chart.getDom().getBoundingClientRect(); left = mathMin(boundingRect.left, left); top = mathMin(boundingRect.top, top); right = mathMax(boundingRect.right, right); bottom = mathMax(boundingRect.bottom, bottom); canvasList.push({ dom: canvas, left: boundingRect.left, top: boundingRect.top }); } }); left *= dpr; top *= dpr; right *= dpr; bottom *= dpr; var width = right - left; var height = bottom - top; var targetCanvas = createCanvas(); targetCanvas.width = width; targetCanvas.height = height; var zr = init$1(targetCanvas); // Background between the charts if (opts.connectedBackgroundColor) { zr.add(new Rect({ shape: { x: 0, y: 0, width: width, height: height }, style: { fill: opts.connectedBackgroundColor } })); } each(canvasList, function (item) { var img = new ZImage({ style: { x: item.left * dpr - left, y: item.top * dpr - top, image: item.dom } }); zr.add(img); }); zr.refreshImmediately(); return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png')); } else { return this.getDataURL(opts); } }; /** * Convert from logical coordinate system to pixel coordinate system. * See CoordinateSystem#convertToPixel. * @param {string|Object} finder * If string, e.g., 'geo', means {geoIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex / seriesId / seriesName, * geoIndex / geoId, geoName, * bmapIndex / bmapId / bmapName, * xAxisIndex / xAxisId / xAxisName, * yAxisIndex / yAxisId / yAxisName, * gridIndex / gridId / gridName, * ... (can be extended) * } * @param {Array|number} value * @return {Array|number} result */ echartsProto.convertToPixel = curry(doConvertPixel, 'convertToPixel'); /** * Convert from pixel coordinate system to logical coordinate system. * See CoordinateSystem#convertFromPixel. * @param {string|Object} finder * If string, e.g., 'geo', means {geoIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex / seriesId / seriesName, * geoIndex / geoId / geoName, * bmapIndex / bmapId / bmapName, * xAxisIndex / xAxisId / xAxisName, * yAxisIndex / yAxisId / yAxisName * gridIndex / gridId / gridName, * ... (can be extended) * } * @param {Array|number} value * @return {Array|number} result */ echartsProto.convertFromPixel = curry(doConvertPixel, 'convertFromPixel'); function doConvertPixel(methodName, finder, value) { var ecModel = this._model; var coordSysList = this._coordSysMgr.getCoordinateSystems(); var result; finder = parseFinder(ecModel, finder); for (var i = 0; i < coordSysList.length; i++) { var coordSys = coordSysList[i]; if (coordSys[methodName] && (result = coordSys[methodName](ecModel, finder, value)) != null ) { return result; } } if (__DEV__) { console.warn( 'No coordinate system that supports ' + methodName + ' found by the given finder.' ); } } /** * Is the specified coordinate systems or components contain the given pixel point. * @param {string|Object} finder * If string, e.g., 'geo', means {geoIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex / seriesId / seriesName, * geoIndex / geoId / geoName, * bmapIndex / bmapId / bmapName, * xAxisIndex / xAxisId / xAxisName, * yAxisIndex / yAxisId / yAxisName, * gridIndex / gridId / gridName, * ... (can be extended) * } * @param {Array|number} value * @return {boolean} result */ echartsProto.containPixel = function (finder, value) { var ecModel = this._model; var result; finder = parseFinder(ecModel, finder); each$1(finder, function (models, key) { key.indexOf('Models') >= 0 && each$1(models, function (model) { var coordSys = model.coordinateSystem; if (coordSys && coordSys.containPoint) { result |= !!coordSys.containPoint(value); } else if (key === 'seriesModels') { var view = this._chartsMap[model.__viewId]; if (view && view.containPoint) { result |= view.containPoint(value, model); } else { if (__DEV__) { console.warn(key + ': ' + (view ? 'The found component do not support containPoint.' : 'No view mapping to the found component.' )); } } } else { if (__DEV__) { console.warn(key + ': containPoint is not supported'); } } }, this); }, this); return !!result; }; /** * Get visual from series or data. * @param {string|Object} finder * If string, e.g., 'series', means {seriesIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex / seriesId / seriesName, * dataIndex / dataIndexInside * } * If dataIndex is not specified, series visual will be fetched, * but not data item visual. * If all of seriesIndex, seriesId, seriesName are not specified, * visual will be fetched from first series. * @param {string} visualType 'color', 'symbol', 'symbolSize' */ echartsProto.getVisual = function (finder, visualType) { var ecModel = this._model; finder = parseFinder(ecModel, finder, {defaultMainType: 'series'}); var seriesModel = finder.seriesModel; if (__DEV__) { if (!seriesModel) { console.warn('There is no specified seires model'); } } var data = seriesModel.getData(); var dataIndexInside = finder.hasOwnProperty('dataIndexInside') ? finder.dataIndexInside : finder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(finder.dataIndex) : null; return dataIndexInside != null ? data.getItemVisual(dataIndexInside, visualType) : data.getVisual(visualType); }; /** * Get view of corresponding component model * @param {module:echarts/model/Component} componentModel * @return {module:echarts/view/Component} */ echartsProto.getViewOfComponentModel = function (componentModel) { return this._componentsMap[componentModel.__viewId]; }; /** * Get view of corresponding series model * @param {module:echarts/model/Series} seriesModel * @return {module:echarts/view/Chart} */ echartsProto.getViewOfSeriesModel = function (seriesModel) { return this._chartsMap[seriesModel.__viewId]; }; var updateMethods = { prepareAndUpdate: function (payload) { prepare(this); updateMethods.update.call(this, payload); }, /** * @param {Object} payload * @private */ update: function (payload) { // console.profile && console.profile('update'); var ecModel = this._model; var api = this._api; var zr = this._zr; var coordSysMgr = this._coordSysMgr; var scheduler = this._scheduler; // update before setOption if (!ecModel) { return; } scheduler.restoreData(ecModel, payload); scheduler.performSeriesTasks(ecModel); // TODO // Save total ecModel here for undo/redo (after restoring data and before processing data). // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call. // Create new coordinate system each update // In LineView may save the old coordinate system and use it to get the orignal point coordSysMgr.create(ecModel, api); scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update // stream modes after data processing, where the filtered data is used to // deteming whether use progressive rendering. updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info // can be fetched when coord sys updating (consider the barGrid extent fix). But // the drawback is the full coord info can not be fetched. Fortunately this full // coord is not requied in stream mode updater currently. coordSysMgr.update(ecModel, api); clearColorPalette(ecModel); scheduler.performVisualTasks(ecModel, payload); render(this, ecModel, api, payload); // Set background var backgroundColor = ecModel.get('backgroundColor') || 'transparent'; // In IE8 if (!env$1.canvasSupported) { var colorArr = parse(backgroundColor); backgroundColor = stringify(colorArr, 'rgb'); if (colorArr[3] === 0) { backgroundColor = 'transparent'; } } else { zr.setBackgroundColor(backgroundColor); } performPostUpdateFuncs(ecModel, api); // console.profile && console.profileEnd('update'); }, /** * @param {Object} payload * @private */ updateTransform: function (payload) { var ecModel = this._model; var ecIns = this; var api = this._api; // update before setOption if (!ecModel) { return; } // ChartView.markUpdateMethod(payload, 'updateTransform'); var componentDirtyList = []; ecModel.eachComponent(function (componentType, componentModel) { var componentView = ecIns.getViewOfComponentModel(componentModel); if (componentView && componentView.__alive) { if (componentView.updateTransform) { var result = componentView.updateTransform(componentModel, ecModel, api, payload); result && result.update && componentDirtyList.push(componentView); } else { componentDirtyList.push(componentView); } } }); var seriesDirtyMap = createHashMap(); ecModel.eachSeries(function (seriesModel) { var chartView = ecIns._chartsMap[seriesModel.__viewId]; if (chartView.updateTransform) { var result = chartView.updateTransform(seriesModel, ecModel, api, payload); result && result.update && seriesDirtyMap.set(seriesModel.uid, 1); } else { seriesDirtyMap.set(seriesModel.uid, 1); } }); clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true); this._scheduler.performVisualTasks( ecModel, payload, {setDirty: true, dirtyMap: seriesDirtyMap} ); // Currently, not call render of components. Geo render cost a lot. // renderComponents(ecIns, ecModel, api, payload, componentDirtyList); renderSeries(ecIns, ecModel, api, payload, seriesDirtyMap); performPostUpdateFuncs(ecModel, this._api); }, /** * @param {Object} payload * @private */ updateView: function (payload) { var ecModel = this._model; // update before setOption if (!ecModel) { return; } Chart.markUpdateMethod(payload, 'updateView'); clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. this._scheduler.performVisualTasks(ecModel, payload, {setDirty: true}); render(this, this._model, this._api, payload); performPostUpdateFuncs(ecModel, this._api); }, /** * @param {Object} payload * @private */ updateVisual: function (payload) { updateMethods.update.call(this, payload); // var ecModel = this._model; // // update before setOption // if (!ecModel) { // return; // } // ChartView.markUpdateMethod(payload, 'updateVisual'); // clearColorPalette(ecModel); // // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. // this._scheduler.performVisualTasks(ecModel, payload, {visualType: 'visual', setDirty: true}); // render(this, this._model, this._api, payload); // performPostUpdateFuncs(ecModel, this._api); }, /** * @param {Object} payload * @private */ updateLayout: function (payload) { updateMethods.update.call(this, payload); // var ecModel = this._model; // // update before setOption // if (!ecModel) { // return; // } // ChartView.markUpdateMethod(payload, 'updateLayout'); // // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. // // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true); // this._scheduler.performVisualTasks(ecModel, payload, {setDirty: true}); // render(this, this._model, this._api, payload); // performPostUpdateFuncs(ecModel, this._api); } }; function prepare(ecIns) { var ecModel = ecIns._model; var scheduler = ecIns._scheduler; scheduler.restorePipelines(ecModel); scheduler.prepareStageTasks(); prepareView(ecIns, 'component', ecModel, scheduler); prepareView(ecIns, 'chart', ecModel, scheduler); scheduler.plan(); } /** * @private */ function updateDirectly(ecIns, method, payload, mainType, subType) { var ecModel = ecIns._model; // broadcast if (!mainType) { // FIXME // Chart will not be update directly here, except set dirty. // But there is no such scenario now. each(ecIns._componentsViews.concat(ecIns._chartsViews), callView); return; } var query = {}; query[mainType + 'Id'] = payload[mainType + 'Id']; query[mainType + 'Index'] = payload[mainType + 'Index']; query[mainType + 'Name'] = payload[mainType + 'Name']; var condition = {mainType: mainType, query: query}; subType && (condition.subType = subType); // subType may be '' by parseClassType; var excludeSeriesId = payload.excludeSeriesId; if (excludeSeriesId != null) { excludeSeriesId = createHashMap(normalizeToArray(excludeSeriesId)); } // If dispatchAction before setOption, do nothing. ecModel && ecModel.eachComponent(condition, function (model) { if (!excludeSeriesId || excludeSeriesId.get(model.id) == null) { callView(ecIns[ mainType === 'series' ? '_chartsMap' : '_componentsMap' ][model.__viewId]); } }, ecIns); function callView(view) { view && view.__alive && view[method] && view[method]( view.__model, ecModel, ecIns._api, payload ); } } /** * Resize the chart * @param {Object} opts * @param {number} [opts.width] Can be 'auto' (the same as null/undefined) * @param {number} [opts.height] Can be 'auto' (the same as null/undefined) * @param {boolean} [opts.silent=false] */ echartsProto.resize = function (opts) { if (__DEV__) { assert(!this[IN_MAIN_PROCESS], '`resize` should not be called during main process.'); } this._zr.resize(opts); var ecModel = this._model; // Resize loading effect this._loadingFX && this._loadingFX.resize(); if (!ecModel) { return; } var optionChanged = ecModel.resetOption('media'); var silent = opts && opts.silent; this[IN_MAIN_PROCESS] = true; optionChanged && prepare(this); updateMethods.update.call(this); this[IN_MAIN_PROCESS] = false; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); }; function updateStreamModes(ecIns, ecModel) { var chartsMap = ecIns._chartsMap; var scheduler = ecIns._scheduler; ecModel.eachSeries(function (seriesModel) { scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]); }); } /** * Show loading effect * @param {string} [name='default'] * @param {Object} [cfg] */ echartsProto.showLoading = function (name, cfg) { if (isObject(name)) { cfg = name; name = ''; } name = name || 'default'; this.hideLoading(); if (!loadingEffects[name]) { if (__DEV__) { console.warn('Loading effects ' + name + ' not exists.'); } return; } var el = loadingEffects[name](this._api, cfg); var zr = this._zr; this._loadingFX = el; zr.add(el); }; /** * Hide loading effect */ echartsProto.hideLoading = function () { this._loadingFX && this._zr.remove(this._loadingFX); this._loadingFX = null; }; /** * @param {Object} eventObj * @return {Object} */ echartsProto.makeActionFromEvent = function (eventObj) { var payload = extend({}, eventObj); payload.type = eventActionMap[eventObj.type]; return payload; }; /** * @pubilc * @param {Object} payload * @param {string} [payload.type] Action type * @param {Object|boolean} [opt] If pass boolean, means opt.silent * @param {boolean} [opt.silent=false] Whether trigger events. * @param {boolean} [opt.flush=undefined] * true: Flush immediately, and then pixel in canvas can be fetched * immediately. Caution: it might affect performance. * false: Not not flush. * undefined: Auto decide whether perform flush. */ echartsProto.dispatchAction = function (payload, opt) { if (!isObject(opt)) { opt = {silent: !!opt}; } if (!actions[payload.type]) { return; } // Avoid dispatch action before setOption. Especially in `connect`. if (!this._model) { return; } // May dispatchAction in rendering procedure if (this[IN_MAIN_PROCESS]) { this._pendingActions.push(payload); return; } doDispatchAction.call(this, payload, opt.silent); if (opt.flush) { this._zr.flush(true); } else if (opt.flush !== false && env$1.browser.weChat) { // In WeChat embeded browser, `requestAnimationFrame` and `setInterval` // hang when sliding page (on touch event), which cause that zr does not // refresh util user interaction finished, which is not expected. // But `dispatchAction` may be called too frequently when pan on touch // screen, which impacts performance if do not throttle them. this._throttledZrFlush(); } flushPendingActions.call(this, opt.silent); triggerUpdatedEvent.call(this, opt.silent); }; function doDispatchAction(payload, silent) { var payloadType = payload.type; var escapeConnect = payload.escapeConnect; var actionWrap = actions[payloadType]; var actionInfo = actionWrap.actionInfo; var cptType = (actionInfo.update || 'update').split(':'); var updateMethod = cptType.pop(); cptType = cptType[0] != null && parseClassType(cptType[0]); this[IN_MAIN_PROCESS] = true; var payloads = [payload]; var batched = false; // Batch action if (payload.batch) { batched = true; payloads = map(payload.batch, function (item) { item = defaults(extend({}, item), payload); item.batch = null; return item; }); } var eventObjBatch = []; var eventObj; var isHighDown = payloadType === 'highlight' || payloadType === 'downplay'; each(payloads, function (batchItem) { // Action can specify the event by return it. eventObj = actionWrap.action(batchItem, this._model, this._api); // Emit event outside eventObj = eventObj || extend({}, batchItem); // Convert type to eventType eventObj.type = actionInfo.event || eventObj.type; eventObjBatch.push(eventObj); // light update does not perform data process, layout and visual. if (isHighDown) { // method, payload, mainType, subType updateDirectly(this, updateMethod, batchItem, 'series'); } else if (cptType) { updateDirectly(this, updateMethod, batchItem, cptType.main, cptType.sub); } }, this); if (updateMethod !== 'none' && !isHighDown && !cptType) { // Still dirty if (this[OPTION_UPDATED]) { // FIXME Pass payload ? prepare(this); updateMethods.update.call(this, payload); this[OPTION_UPDATED] = false; } else { updateMethods[updateMethod].call(this, payload); } } // Follow the rule of action batch if (batched) { eventObj = { type: actionInfo.event || payloadType, escapeConnect: escapeConnect, batch: eventObjBatch }; } else { eventObj = eventObjBatch[0]; } this[IN_MAIN_PROCESS] = false; !silent && this._messageCenter.trigger(eventObj.type, eventObj); } function flushPendingActions(silent) { var pendingActions = this._pendingActions; while (pendingActions.length) { var payload = pendingActions.shift(); doDispatchAction.call(this, payload, silent); } } function triggerUpdatedEvent(silent) { !silent && this.trigger('updated'); } /** * Event `rendered` is triggered when zr * rendered. It is useful for realtime * snapshot (reflect animation). * * Event `finished` is triggered when: * (1) zrender rendering finished. * (2) initial animation finished. * (3) progressive rendering finished. * (4) no pending action. * (5) no delayed setOption needs to be processed. */ function bindRenderedEvent(zr, ecIns) { zr.on('rendered', function () { ecIns.trigger('rendered'); // The `finished` event should not be triggered repeatly, // so it should only be triggered when rendering indeed happend // in zrender. (Consider the case that dipatchAction is keep // triggering when mouse move). if ( // Although zr is dirty if initial animation is not finished // and this checking is called on frame, we also check // animation finished for robustness. zr.animation.isFinished() && !ecIns[OPTION_UPDATED] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length ) { ecIns.trigger('finished'); } }); } /** * @param {Object} params * @param {number} params.seriesIndex * @param {Array|TypedArray} params.data */ echartsProto.appendData = function (params) { var seriesIndex = params.seriesIndex; var ecModel = this.getModel(); var seriesModel = ecModel.getSeriesByIndex(seriesIndex); if (__DEV__) { assert(params.data && seriesModel); } seriesModel.appendData(params); // Note: `appendData` does not support that update extent of coordinate // system, util some scenario require that. In the expected usage of // `appendData`, the initial extent of coordinate system should better // be fixed by axis `min`/`max` setting or initial data, otherwise if // the extent changed while `appendData`, the location of the painted // graphic elements have to be changed, which make the usage of // `appendData` meaningless. this._scheduler.unfinished = true; }; /** * Register event * @method */ echartsProto.on = createRegisterEventWithLowercaseName('on'); echartsProto.off = createRegisterEventWithLowercaseName('off'); echartsProto.one = createRegisterEventWithLowercaseName('one'); /** * Prepare view instances of charts and components * @param {module:echarts/model/Global} ecModel * @private */ function prepareView(ecIns, type, ecModel, scheduler) { var isComponent = type === 'component'; var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews; var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap; var zr = ecIns._zr; var api = ecIns._api; for (var i = 0; i < viewList.length; i++) { viewList[i].__alive = false; } isComponent ? ecModel.eachComponent(function (componentType, model) { componentType !== 'series' && doPrepare(model); }) : ecModel.eachSeries(doPrepare); function doPrepare(model) { // Consider: id same and type changed. var viewId = '_ec_' + model.id + '_' + model.type; var view = viewMap[viewId]; if (!view) { var classType = parseClassType(model.type); var Clazz = isComponent ? Component$1.getClass(classType.main, classType.sub) : Chart.getClass(classType.sub); if (__DEV__) { assert(Clazz, classType.sub + ' does not exist.'); } view = new Clazz(); view.init(ecModel, api); viewMap[viewId] = view; viewList.push(view); zr.add(view.group); } model.__viewId = view.__id = viewId; view.__alive = true; view.__model = model; view.group.__ecComponentInfo = { mainType: model.mainType, index: model.componentIndex }; !isComponent && scheduler.prepareView(view, model, ecModel, api); } for (var i = 0; i < viewList.length;) { var view = viewList[i]; if (!view.__alive) { !isComponent && view.renderTask.dispose(); zr.remove(view.group); view.dispose(ecModel, api); viewList.splice(i, 1); delete viewMap[view.__id]; view.__id = view.group.__ecComponentInfo = null; } else { i++; } } } // /** // * Encode visual infomation from data after data processing // * // * @param {module:echarts/model/Global} ecModel // * @param {object} layout // * @param {boolean} [layoutFilter] `true`: only layout, // * `false`: only not layout, // * `null`/`undefined`: all. // * @param {string} taskBaseTag // * @private // */ // function startVisualEncoding(ecIns, ecModel, api, payload, layoutFilter) { // each(visualFuncs, function (visual, index) { // var isLayout = visual.isLayout; // if (layoutFilter == null // || (layoutFilter === false && !isLayout) // || (layoutFilter === true && isLayout) // ) { // visual.func(ecModel, api, payload); // } // }); // } function clearColorPalette(ecModel) { ecModel.clearColorPalette(); ecModel.eachSeries(function (seriesModel) { seriesModel.clearColorPalette(); }); } function render(ecIns, ecModel, api, payload) { renderComponents(ecIns, ecModel, api, payload); each(ecIns._chartsViews, function (chart) { chart.__alive = false; }); renderSeries(ecIns, ecModel, api, payload); // Remove groups of unrendered charts each(ecIns._chartsViews, function (chart) { if (!chart.__alive) { chart.remove(ecModel, api); } }); } function renderComponents(ecIns, ecModel, api, payload, dirtyList) { each(dirtyList || ecIns._componentsViews, function (componentView) { var componentModel = componentView.__model; componentView.render(componentModel, ecModel, api, payload); updateZ(componentModel, componentView); }); } /** * Render each chart and component * @private */ function renderSeries(ecIns, ecModel, api, payload, dirtyMap) { // Render all charts var scheduler = ecIns._scheduler; var unfinished; ecModel.eachSeries(function (seriesModel) { var chartView = ecIns._chartsMap[seriesModel.__viewId]; chartView.__alive = true; var renderTask = chartView.renderTask; scheduler.updatePayload(renderTask, payload); if (dirtyMap && dirtyMap.get(seriesModel.uid)) { renderTask.dirty(); } unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask)); chartView.group.silent = !!seriesModel.get('silent'); updateZ(seriesModel, chartView); updateBlend(seriesModel, chartView); }); scheduler.unfinished |= unfinished; // If use hover layer updateHoverLayerStatus(ecIns, ecModel); // Add aria aria(ecIns._zr.dom, ecModel); } function performPostUpdateFuncs(ecModel, api) { each(postUpdateFuncs, function (func) { func(ecModel, api); }); } var MOUSE_EVENT_NAMES = [ 'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu' ]; /** * @private */ echartsProto._initEvents = function () { each(MOUSE_EVENT_NAMES, function (eveName) { var handler = function (e) { var ecModel = this.getModel(); var el = e.target; var params; var isGlobalOut = eveName === 'globalout'; // no e.target when 'globalout'. if (isGlobalOut) { params = {}; } else if (el && el.dataIndex != null) { var dataModel = el.dataModel || ecModel.getSeriesByIndex(el.seriesIndex); params = dataModel && dataModel.getDataParams(el.dataIndex, el.dataType, el) || {}; } // If element has custom eventData of components else if (el && el.eventData) { params = extend({}, el.eventData); } // Contract: if params prepared in mouse event, // these properties must be specified: // { // componentType: string (component main type) // componentIndex: number // } // Otherwise event query can not work. if (params) { var componentType = params.componentType; var componentIndex = params.componentIndex; // Special handling for historic reason: when trigger by // markLine/markPoint/markArea, the componentType is // 'markLine'/'markPoint'/'markArea', but we should better // enable them to be queried by seriesIndex, since their // option is set in each series. if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea' ) { componentType = 'series'; componentIndex = params.seriesIndex; } var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex); var view = model && this[ model.mainType === 'series' ? '_chartsMap' : '_componentsMap' ][model.__viewId]; if (__DEV__) { // `event.componentType` and `event[componentTpype + 'Index']` must not // be missed, otherwise there is no way to distinguish source component. // See `dataFormat.getDataParams`. if (!isGlobalOut && !(model && view)) { console.warn('model or view can not be found by params'); } } params.event = e; params.type = eveName; this._ecEventProcessor.eventInfo = { targetEl: el, packedEvent: params, model: model, view: view }; this.trigger(eveName, params); } }; // Consider that some component (like tooltip, brush, ...) // register zr event handler, but user event handler might // do anything, such as call `setOption` or `dispatchAction`, // which probably update any of the content and probably // cause problem if it is called previous other inner handlers. handler.zrEventfulCallAtLast = true; this._zr.on(eveName, handler, this); }, this); each(eventActionMap, function (actionType, eventType) { this._messageCenter.on(eventType, function (event) { this.trigger(eventType, event); }, this); }, this); }; /** * @return {boolean} */ echartsProto.isDisposed = function () { return this._disposed; }; /** * Clear */ echartsProto.clear = function () { this.setOption({ series: [] }, true); }; /** * Dispose instance */ echartsProto.dispose = function () { if (this._disposed) { if (__DEV__) { console.warn('Instance ' + this.id + ' has been disposed'); } return; } this._disposed = true; setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, ''); var api = this._api; var ecModel = this._model; each(this._componentsViews, function (component) { component.dispose(ecModel, api); }); each(this._chartsViews, function (chart) { chart.dispose(ecModel, api); }); // Dispose after all views disposed this._zr.dispose(); delete instances[this.id]; }; mixin(ECharts, Eventful); function updateHoverLayerStatus(ecIns, ecModel) { var zr = ecIns._zr; var storage = zr.storage; var elCount = 0; storage.traverse(function (el) { elCount++; }); if (elCount > ecModel.get('hoverLayerThreshold') && !env$1.node) { ecModel.eachSeries(function (seriesModel) { if (seriesModel.preventUsingHoverLayer) { return; } var chartView = ecIns._chartsMap[seriesModel.__viewId]; if (chartView.__alive) { chartView.group.traverse(function (el) { // Don't switch back. el.useHoverLayer = true; }); } }); } } /** * Update chart progressive and blend. * @param {module:echarts/model/Series|module:echarts/model/Component} model * @param {module:echarts/view/Component|module:echarts/view/Chart} view */ function updateBlend(seriesModel, chartView) { var blendMode = seriesModel.get('blendMode') || null; if (__DEV__) { if (!env$1.canvasSupported && blendMode && blendMode !== 'source-over') { console.warn('Only canvas support blendMode'); } } chartView.group.traverse(function (el) { // FIXME marker and other components if (!el.isGroup) { // Only set if blendMode is changed. In case element is incremental and don't wan't to rerender. if (el.style.blend !== blendMode) { el.setStyle('blend', blendMode); } } if (el.eachPendingDisplayable) { el.eachPendingDisplayable(function (displayable) { displayable.setStyle('blend', blendMode); }); } }); } /** * @param {module:echarts/model/Series|module:echarts/model/Component} model * @param {module:echarts/view/Component|module:echarts/view/Chart} view */ function updateZ(model, view) { var z = model.get('z'); var zlevel = model.get('zlevel'); // Set z and zlevel view.group.traverse(function (el) { if (el.type !== 'group') { z != null && (el.z = z); zlevel != null && (el.zlevel = zlevel); } }); } function createExtensionAPI(ecInstance) { var coordSysMgr = ecInstance._coordSysMgr; return extend(new ExtensionAPI(ecInstance), { // Inject methods getCoordinateSystems: bind( coordSysMgr.getCoordinateSystems, coordSysMgr ), getComponentByElement: function (el) { while (el) { var modelInfo = el.__ecComponentInfo; if (modelInfo != null) { return ecInstance._model.getComponent(modelInfo.mainType, modelInfo.index); } el = el.parent; } } }); } /** * @class * Usage of query: * `chart.on('click', query, handler);` * The `query` can be: * + The component type query string, only `mainType` or `mainType.subType`, * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'. * + The component query object, like: * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`, * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`. * + The data query object, like: * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`. * + The other query object (cmponent customized query), like: * `{element: 'some'}` (only available in custom series). * * Caveat: If a prop in the `query` object is `null/undefined`, it is the * same as there is no such prop in the `query` object. */ function EventProcessor() { // These info required: targetEl, packedEvent, model, view this.eventInfo; } EventProcessor.prototype = { constructor: EventProcessor, normalizeQuery: function (query) { var cptQuery = {}; var dataQuery = {}; var otherQuery = {}; // `query` is `mainType` or `mainType.subType` of component. if (isString(query)) { var condCptType = parseClassType(query); // `.main` and `.sub` may be ''. cptQuery.mainType = condCptType.main || null; cptQuery.subType = condCptType.sub || null; } // `query` is an object, convert to {mainType, index, name, id}. else { // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved, // can not be used in `compomentModel.filterForExposedEvent`. var suffixes = ['Index', 'Name', 'Id']; var dataKeys = {name: 1, dataIndex: 1, dataType: 1}; each$1(query, function (val, key) { var reserved = false; for (var i = 0; i < suffixes.length; i++) { var propSuffix = suffixes[i]; var suffixPos = key.lastIndexOf(propSuffix); if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) { var mainType = key.slice(0, suffixPos); // Consider `dataIndex`. if (mainType !== 'data') { cptQuery.mainType = mainType; cptQuery[propSuffix.toLowerCase()] = val; reserved = true; } } } if (dataKeys.hasOwnProperty(key)) { dataQuery[key] = val; reserved = true; } if (!reserved) { otherQuery[key] = val; } }); } return { cptQuery: cptQuery, dataQuery: dataQuery, otherQuery: otherQuery }; }, filter: function (eventType, query, args) { // They should be assigned before each trigger call. var eventInfo = this.eventInfo; if (!eventInfo) { return true; } var targetEl = eventInfo.targetEl; var packedEvent = eventInfo.packedEvent; var model = eventInfo.model; var view = eventInfo.view; // For event like 'globalout'. if (!model || !view) { return true; } var cptQuery = query.cptQuery; var dataQuery = query.dataQuery; return check(cptQuery, model, 'mainType') && check(cptQuery, model, 'subType') && check(cptQuery, model, 'index', 'componentIndex') && check(cptQuery, model, 'name') && check(cptQuery, model, 'id') && check(dataQuery, packedEvent, 'name') && check(dataQuery, packedEvent, 'dataIndex') && check(dataQuery, packedEvent, 'dataType') && (!view.filterForExposedEvent || view.filterForExposedEvent( eventType, query.otherQuery, targetEl, packedEvent )); function check(query, host, prop, propOnHost) { return query[prop] == null || host[propOnHost || prop] === query[prop]; } }, afterTrigger: function () { // Make sure the eventInfo wont be used in next trigger. this.eventInfo = null; } }; /** * @type {Object} key: actionType. * @inner */ var actions = {}; /** * Map eventType to actionType * @type {Object} */ var eventActionMap = {}; /** * Data processor functions of each stage * @type {Array.>} * @inner */ var dataProcessorFuncs = []; /** * @type {Array.} * @inner */ var optionPreprocessorFuncs = []; /** * @type {Array.} * @inner */ var postUpdateFuncs = []; /** * Visual encoding functions of each stage * @type {Array.>} */ var visualFuncs = []; /** * Theme storage * @type {Object.} */ var themeStorage = {}; /** * Loading effects */ var loadingEffects = {}; var instances = {}; var connectedGroups = {}; var idBase = new Date() - 0; var groupIdBase = new Date() - 0; var DOM_ATTRIBUTE_KEY = '_echarts_instance_'; function enableConnect(chart) { var STATUS_PENDING = 0; var STATUS_UPDATING = 1; var STATUS_UPDATED = 2; var STATUS_KEY = '__connectUpdateStatus'; function updateConnectedChartsStatus(charts, status) { for (var i = 0; i < charts.length; i++) { var otherChart = charts[i]; otherChart[STATUS_KEY] = status; } } each(eventActionMap, function (actionType, eventType) { chart._messageCenter.on(eventType, function (event) { if (connectedGroups[chart.group] && chart[STATUS_KEY] !== STATUS_PENDING) { if (event && event.escapeConnect) { return; } var action = chart.makeActionFromEvent(event); var otherCharts = []; each(instances, function (otherChart) { if (otherChart !== chart && otherChart.group === chart.group) { otherCharts.push(otherChart); } }); updateConnectedChartsStatus(otherCharts, STATUS_PENDING); each(otherCharts, function (otherChart) { if (otherChart[STATUS_KEY] !== STATUS_UPDATING) { otherChart.dispatchAction(action); } }); updateConnectedChartsStatus(otherCharts, STATUS_UPDATED); } }); }); } /** * @param {HTMLElement} dom * @param {Object} [theme] * @param {Object} opts * @param {number} [opts.devicePixelRatio] Use window.devicePixelRatio by default * @param {string} [opts.renderer] Can choose 'canvas' or 'svg' to render the chart. * @param {number} [opts.width] Use clientWidth of the input `dom` by default. * Can be 'auto' (the same as null/undefined) * @param {number} [opts.height] Use clientHeight of the input `dom` by default. * Can be 'auto' (the same as null/undefined) */ function init(dom, theme$$1, opts) { if (__DEV__) { // Check version if ((version$1.replace('.', '') - 0) < (dependencies.zrender.replace('.', '') - 0)) { throw new Error( 'zrender/src ' + version$1 + ' is too old for ECharts ' + version + '. Current version need ZRender ' + dependencies.zrender + '+' ); } if (!dom) { throw new Error('Initialize failed: invalid dom.'); } } var existInstance = getInstanceByDom(dom); if (existInstance) { if (__DEV__) { console.warn('There is a chart instance already initialized on the dom.'); } return existInstance; } if (__DEV__) { if (isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && ( (!dom.clientWidth && (!opts || opts.width == null)) || (!dom.clientHeight && (!opts || opts.height == null)) ) ) { console.warn('Can\'t get DOM width or height. Please check ' + 'dom.clientWidth and dom.clientHeight. They should not be 0.' + 'For example, you may need to call this in the callback ' + 'of window.onload.'); } } var chart = new ECharts(dom, theme$$1, opts); chart.id = 'ec_' + idBase++; instances[chart.id] = chart; setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id); enableConnect(chart); return chart; } /** * @return {string|Array.} groupId */ function connect(groupId) { // Is array of charts if (isArray(groupId)) { var charts = groupId; groupId = null; // If any chart has group each(charts, function (chart) { if (chart.group != null) { groupId = chart.group; } }); groupId = groupId || ('g_' + groupIdBase++); each(charts, function (chart) { chart.group = groupId; }); } connectedGroups[groupId] = true; return groupId; } /** * @DEPRECATED * @return {string} groupId */ function disConnect(groupId) { connectedGroups[groupId] = false; } /** * @return {string} groupId */ var disconnect = disConnect; /** * Dispose a chart instance * @param {module:echarts~ECharts|HTMLDomElement|string} chart */ function dispose(chart) { if (typeof chart === 'string') { chart = instances[chart]; } else if (!(chart instanceof ECharts)) { // Try to treat as dom chart = getInstanceByDom(chart); } if ((chart instanceof ECharts) && !chart.isDisposed()) { chart.dispose(); } } /** * @param {HTMLElement} dom * @return {echarts~ECharts} */ function getInstanceByDom(dom) { return instances[getAttribute(dom, DOM_ATTRIBUTE_KEY)]; } /** * @param {string} key * @return {echarts~ECharts} */ function getInstanceById(key) { return instances[key]; } /** * Register theme */ function registerTheme(name, theme$$1) { themeStorage[name] = theme$$1; } /** * Register option preprocessor * @param {Function} preprocessorFunc */ function registerPreprocessor(preprocessorFunc) { optionPreprocessorFuncs.push(preprocessorFunc); } /** * @param {number} [priority=1000] * @param {Object|Function} processor */ function registerProcessor(priority, processor) { normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_FILTER); } /** * Register postUpdater * @param {Function} postUpdateFunc */ function registerPostUpdate(postUpdateFunc) { postUpdateFuncs.push(postUpdateFunc); } /** * Usage: * registerAction('someAction', 'someEvent', function () { ... }); * registerAction('someAction', function () { ... }); * registerAction( * {type: 'someAction', event: 'someEvent', update: 'updateView'}, * function () { ... } * ); * * @param {(string|Object)} actionInfo * @param {string} actionInfo.type * @param {string} [actionInfo.event] * @param {string} [actionInfo.update] * @param {string} [eventName] * @param {Function} action */ function registerAction(actionInfo, eventName, action) { if (typeof eventName === 'function') { action = eventName; eventName = ''; } var actionType = isObject(actionInfo) ? actionInfo.type : ([actionInfo, actionInfo = { event: eventName }][0]); // Event name is all lowercase actionInfo.event = (actionInfo.event || actionType).toLowerCase(); eventName = actionInfo.event; // Validate action type and event name. assert(ACTION_REG.test(actionType) && ACTION_REG.test(eventName)); if (!actions[actionType]) { actions[actionType] = {action: action, actionInfo: actionInfo}; } eventActionMap[eventName] = actionType; } /** * @param {string} type * @param {*} CoordinateSystem */ function registerCoordinateSystem(type, CoordinateSystem$$1) { CoordinateSystemManager.register(type, CoordinateSystem$$1); } /** * Get dimensions of specified coordinate system. * @param {string} type * @return {Array.} */ function getCoordinateSystemDimensions(type) { var coordSysCreator = CoordinateSystemManager.get(type); if (coordSysCreator) { return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice(); } } /** * Layout is a special stage of visual encoding * Most visual encoding like color are common for different chart * But each chart has it's own layout algorithm * * @param {number} [priority=1000] * @param {Function} layoutTask */ function registerLayout(priority, layoutTask) { normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout'); } /** * @param {number} [priority=3000] * @param {module:echarts/stream/Task} visualTask */ function registerVisual(priority, visualTask) { normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual'); } /** * @param {Object|Function} fn: {seriesType, createOnAllSeries, performRawSeries, reset} */ function normalizeRegister(targetList, priority, fn, defaultPriority, visualType) { if (isFunction(priority) || isObject(priority)) { fn = priority; priority = defaultPriority; } if (__DEV__) { if (isNaN(priority) || priority == null) { throw new Error('Illegal priority'); } // Check duplicate each(targetList, function (wrap) { assert(wrap.__raw !== fn); }); } var stageHandler = Scheduler.wrapStageHandler(fn, visualType); stageHandler.__prio = priority; stageHandler.__raw = fn; targetList.push(stageHandler); return stageHandler; } /** * @param {string} name */ function registerLoading(name, loadingFx) { loadingEffects[name] = loadingFx; } /** * @param {Object} opts * @param {string} [superClass] */ function extendComponentModel(opts/*, superClass*/) { // var Clazz = ComponentModel; // if (superClass) { // var classType = parseClassType(superClass); // Clazz = ComponentModel.getClass(classType.main, classType.sub, true); // } return ComponentModel.extend(opts); } /** * @param {Object} opts * @param {string} [superClass] */ function extendComponentView(opts/*, superClass*/) { // var Clazz = ComponentView; // if (superClass) { // var classType = parseClassType(superClass); // Clazz = ComponentView.getClass(classType.main, classType.sub, true); // } return Component$1.extend(opts); } /** * @param {Object} opts * @param {string} [superClass] */ function extendSeriesModel(opts/*, superClass*/) { // var Clazz = SeriesModel; // if (superClass) { // superClass = 'series.' + superClass.replace('series.', ''); // var classType = parseClassType(superClass); // Clazz = ComponentModel.getClass(classType.main, classType.sub, true); // } return SeriesModel.extend(opts); } /** * @param {Object} opts * @param {string} [superClass] */ function extendChartView(opts/*, superClass*/) { // var Clazz = ChartView; // if (superClass) { // superClass = superClass.replace('series.', ''); // var classType = parseClassType(superClass); // Clazz = ChartView.getClass(classType.main, true); // } return Chart.extend(opts); } /** * ZRender need a canvas context to do measureText. * But in node environment canvas may be created by node-canvas. * So we need to specify how to create a canvas instead of using document.createElement('canvas') * * Be careful of using it in the browser. * * @param {Function} creator * @example * var Canvas = require('canvas'); * var echarts = require('echarts'); * echarts.setCanvasCreator(function () { * // Small size is enough. * return new Canvas(32, 32); * }); */ function setCanvasCreator(creator) { $override('createCanvas', creator); } /** * @param {string} mapName * @param {Array.|Object|string} geoJson * @param {Object} [specialAreas] * * @example GeoJSON * $.get('USA.json', function (geoJson) { * echarts.registerMap('USA', geoJson); * // Or * echarts.registerMap('USA', { * geoJson: geoJson, * specialAreas: {} * }) * }); * * $.get('airport.svg', function (svg) { * echarts.registerMap('airport', { * svg: svg * } * }); * * echarts.registerMap('eu', [ * {svg: eu-topographic.svg}, * {geoJSON: eu.json} * ]) */ function registerMap(mapName, geoJson, specialAreas) { mapDataStorage.registerMap(mapName, geoJson, specialAreas); } /** * @param {string} mapName * @return {Object} */ function getMap(mapName) { // For backward compatibility, only return the first one. var records = mapDataStorage.retrieveMap(mapName); return records && records[0] && { geoJson: records[0].geoJSON, specialAreas: records[0].specialAreas }; } registerVisual(PRIORITY_VISUAL_GLOBAL, seriesColor); registerPreprocessor(backwardCompat); registerProcessor(PRIORITY_PROCESSOR_STATISTIC, dataStack); registerLoading('default', loadingDefault); // Default actions registerAction({ type: 'highlight', event: 'highlight', update: 'highlight' }, noop); registerAction({ type: 'downplay', event: 'downplay', update: 'downplay' }, noop); // Default theme registerTheme('light', lightTheme); registerTheme('dark', theme); // For backward compatibility, where the namespace `dataTool` will // be mounted on `echarts` is the extension `dataTool` is imported. var dataTool = {}; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function defaultKeyGetter(item) { return item; } /** * @param {Array} oldArr * @param {Array} newArr * @param {Function} oldKeyGetter * @param {Function} newKeyGetter * @param {Object} [context] Can be visited by this.context in callback. */ function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context) { this._old = oldArr; this._new = newArr; this._oldKeyGetter = oldKeyGetter || defaultKeyGetter; this._newKeyGetter = newKeyGetter || defaultKeyGetter; this.context = context; } DataDiffer.prototype = { constructor: DataDiffer, /** * Callback function when add a data */ add: function (func) { this._add = func; return this; }, /** * Callback function when update a data */ update: function (func) { this._update = func; return this; }, /** * Callback function when remove a data */ remove: function (func) { this._remove = func; return this; }, execute: function () { var oldArr = this._old; var newArr = this._new; var oldDataIndexMap = {}; var newDataIndexMap = {}; var oldDataKeyArr = []; var newDataKeyArr = []; var i; initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter', this); initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter', this); // Travel by inverted order to make sure order consistency // when duplicate keys exists (consider newDataIndex.pop() below). // For performance consideration, these code below do not look neat. for (i = 0; i < oldArr.length; i++) { var key = oldDataKeyArr[i]; var idx = newDataIndexMap[key]; // idx can never be empty array here. see 'set null' logic below. if (idx != null) { // Consider there is duplicate key (for example, use dataItem.name as key). // We should make sure every item in newArr and oldArr can be visited. var len = idx.length; if (len) { len === 1 && (newDataIndexMap[key] = null); idx = idx.unshift(); } else { newDataIndexMap[key] = null; } this._update && this._update(idx, i); } else { this._remove && this._remove(i); } } for (var i = 0; i < newDataKeyArr.length; i++) { var key = newDataKeyArr[i]; if (newDataIndexMap.hasOwnProperty(key)) { var idx = newDataIndexMap[key]; if (idx == null) { continue; } // idx can never be empty array here. see 'set null' logic above. if (!idx.length) { this._add && this._add(idx); } else { for (var j = 0, len = idx.length; j < len; j++) { this._add && this._add(idx[j]); } } } } } }; function initIndexMap(arr, map, keyArr, keyGetterName, dataDiffer) { for (var i = 0; i < arr.length; i++) { // Add prefix to avoid conflict with Object.prototype. var key = '_ec_' + dataDiffer[keyGetterName](arr[i], i); var existence = map[key]; if (existence == null) { keyArr.push(key); map[key] = i; } else { if (!existence.length) { map[key] = existence = [existence]; } existence.push(i); } } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var OTHER_DIMENSIONS = createHashMap([ 'tooltip', 'label', 'itemName', 'itemId', 'seriesName' ]); function summarizeDimensions(data) { var summary = {}; var encode = summary.encode = {}; var notExtraCoordDimMap = createHashMap(); var defaultedLabel = []; var defaultedTooltip = []; // See the comment of `List.js#userOutput`. var userOutput = summary.userOutput = { dimensionNames: data.dimensions.slice(), encode: {} }; each$1(data.dimensions, function (dimName) { var dimItem = data.getDimensionInfo(dimName); var coordDim = dimItem.coordDim; if (coordDim) { if (__DEV__) { assert$1(OTHER_DIMENSIONS.get(coordDim) == null); } var coordDimIndex = dimItem.coordDimIndex; getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName; if (!dimItem.isExtraCoord) { notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label, // because when dataset is used, it is hard to guess which dimension // can be value dimension. If both show x, y on label is not look good, // and conventionally y axis is focused more. if (mayLabelDimType(dimItem.type)) { defaultedLabel[0] = dimName; } // User output encode do not contain generated coords. // And it only has index. User can use index to retrieve value from the raw item array. getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index; } if (dimItem.defaultTooltip) { defaultedTooltip.push(dimName); } } OTHER_DIMENSIONS.each(function (v, otherDim) { var encodeArr = getOrCreateEncodeArr(encode, otherDim); var dimIndex = dimItem.otherDims[otherDim]; if (dimIndex != null && dimIndex !== false) { encodeArr[dimIndex] = dimItem.name; } }); }); var dataDimsOnCoord = []; var encodeFirstDimNotExtra = {}; notExtraCoordDimMap.each(function (v, coordDim) { var dimArr = encode[coordDim]; // ??? FIXME extra coord should not be set in dataDimsOnCoord. // But should fix the case that radar axes: simplify the logic // of `completeDimension`, remove `extraPrefix`. encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data // dim canot on more than one coordDim. dataDimsOnCoord = dataDimsOnCoord.concat(dimArr); }); summary.dataDimsOnCoord = dataDimsOnCoord; summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra; var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set // in this way. Use label.formatter instead. May be remove this approach someday. if (encodeLabel && encodeLabel.length) { defaultedLabel = encodeLabel.slice(); } var encodeTooltip = encode.tooltip; if (encodeTooltip && encodeTooltip.length) { defaultedTooltip = encodeTooltip.slice(); } else if (!defaultedTooltip.length) { defaultedTooltip = defaultedLabel.slice(); } encode.defaultedLabel = defaultedLabel; encode.defaultedTooltip = defaultedTooltip; return summary; } function getOrCreateEncodeArr(encode, dim) { if (!encode.hasOwnProperty(dim)) { encode[dim] = []; } return encode[dim]; } function getDimensionTypeByAxis(axisType) { return axisType === 'category' ? 'ordinal' : axisType === 'time' ? 'time' : 'float'; } function mayLabelDimType(dimType) { // In most cases, ordinal and time do not suitable for label. // Ordinal info can be displayed on axis. Time is too long. return !(dimType === 'ordinal' || dimType === 'time'); } // function findTheLastDimMayLabel(data) { // // Get last value dim // var dimensions = data.dimensions.slice(); // var valueType; // var valueDim; // while (dimensions.length && ( // valueDim = dimensions.pop(), // valueType = data.getDimensionInfo(valueDim).type, // valueType === 'ordinal' || valueType === 'time' // )) {} // jshint ignore:line // return valueDim; // } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float64Array, Int32Array, Uint32Array, Uint16Array */ /** * List for data storage * @module echarts/data/List */ var isObject$4 = isObject$1; var UNDEFINED = 'undefined'; var INDEX_NOT_FOUND = -1; // Use prefix to avoid index to be the same as otherIdList[idx], // which will cause weird udpate animation. var ID_PREFIX = 'e\0\0'; var dataCtors = { 'float': typeof Float64Array === UNDEFINED ? Array : Float64Array, 'int': typeof Int32Array === UNDEFINED ? Array : Int32Array, // Ordinal data type can be string or int 'ordinal': Array, 'number': Array, 'time': Array }; // Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is // different from the Ctor of typed array. var CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; var CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; var CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; function getIndicesCtor(list) { // The possible max value in this._indicies is always this._rawCount despite of filtering. return list._rawCount > 65535 ? CtorUint32Array : CtorUint16Array; } function cloneChunk(originalChunk) { var Ctor = originalChunk.constructor; // Only shallow clone is enough when Array. return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk); } var TRANSFERABLE_PROPERTIES = [ 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_rawData', '_chunkSize', '_chunkCount', '_dimValueGetter', '_count', '_rawCount', '_nameDimIdx', '_idDimIdx' ]; var CLONE_PROPERTIES = [ '_extent', '_approximateExtent', '_rawExtent' ]; function transferProperties(target, source) { each$1(TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) { if (source.hasOwnProperty(propName)) { target[propName] = source[propName]; } }); target.__wrappedMethods = source.__wrappedMethods; each$1(CLONE_PROPERTIES, function (propName) { target[propName] = clone(source[propName]); }); target._calculationInfo = extend(source._calculationInfo); } /** * @constructor * @alias module:echarts/data/List * * @param {Array.} dimensions * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius * Spetial fields: { * ordinalMeta: * createInvertedIndices: * } * @param {module:echarts/model/Model} hostModel */ var List = function (dimensions, hostModel) { dimensions = dimensions || ['x', 'y']; var dimensionInfos = {}; var dimensionNames = []; var invertedIndicesMap = {}; for (var i = 0; i < dimensions.length; i++) { // Use the original dimensions[i], where other flag props may exists. var dimensionInfo = dimensions[i]; if (isString(dimensionInfo)) { dimensionInfo = {name: dimensionInfo}; } var dimensionName = dimensionInfo.name; dimensionInfo.type = dimensionInfo.type || 'float'; if (!dimensionInfo.coordDim) { dimensionInfo.coordDim = dimensionName; dimensionInfo.coordDimIndex = 0; } dimensionInfo.otherDims = dimensionInfo.otherDims || {}; dimensionNames.push(dimensionName); dimensionInfos[dimensionName] = dimensionInfo; dimensionInfo.index = i; if (dimensionInfo.createInvertedIndices) { invertedIndicesMap[dimensionName] = []; } } /** * @readOnly * @type {Array.} */ this.dimensions = dimensionNames; /** * Infomation of each data dimension, like data type. * @type {Object} */ this._dimensionInfos = dimensionInfos; /** * @type {module:echarts/model/Model} */ this.hostModel = hostModel; /** * @type {module:echarts/model/Model} */ this.dataType; /** * Indices stores the indices of data subset after filtered. * This data subset will be used in chart. * @type {Array.} * @readOnly */ this._indices = null; this._count = 0; this._rawCount = 0; /** * Data storage * @type {Object.>} * @private */ this._storage = {}; /** * @type {Array.} */ this._nameList = []; /** * @type {Array.} */ this._idList = []; /** * Models of data option is stored sparse for optimizing memory cost * @type {Array.} * @private */ this._optionModels = []; /** * Global visual properties after visual coding * @type {Object} * @private */ this._visual = {}; /** * Globel layout properties. * @type {Object} * @private */ this._layout = {}; /** * Item visual properties after visual coding * @type {Array.} * @private */ this._itemVisuals = []; /** * Key: visual type, Value: boolean * @type {Object} * @readOnly */ this.hasItemVisual = {}; /** * Item layout properties after layout * @type {Array.} * @private */ this._itemLayouts = []; /** * Graphic elemnents * @type {Array.} * @private */ this._graphicEls = []; /** * Max size of each chunk. * @type {number} * @private */ this._chunkSize = 1e5; /** * @type {number} * @private */ this._chunkCount = 0; /** * @type {Array.} * @private */ this._rawData; /** * Raw extent will not be cloned, but only transfered. * It will not be calculated util needed. * key: dim, * value: {end: number, extent: Array.} * @type {Object} * @private */ this._rawExtent = {}; /** * @type {Object} * @private */ this._extent = {}; /** * key: dim * value: extent * @type {Object} * @private */ this._approximateExtent = {}; /** * Cache summary info for fast visit. See "dimensionHelper". * @type {Object} * @private */ this._dimensionsSummary = summarizeDimensions(this); /** * @type {Object.} * @private */ this._invertedIndicesMap = invertedIndicesMap; /** * @type {Object} * @private */ this._calculationInfo = {}; /** * User output info of this data. * DO NOT use it in other places! * * When preparing user params for user callbacks, we have * to clone these inner data structures to prevent users * from modifying them to effect built-in logic. And for * performance consideration we make this `userOutput` to * avoid clone them too many times. * * @type {Object} * @readOnly */ this.userOutput = this._dimensionsSummary.userOutput; }; var listProto = List.prototype; listProto.type = 'list'; /** * If each data item has it's own option * @type {boolean} */ listProto.hasItemOption = true; /** * The meanings of the input parameter `dim`: * * + If dim is a number (e.g., `1`), it means the index of the dimension. * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'. * + If dim is a number-like string (e.g., `"1"`): * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name. * + If not, it will be converted to a number, which means the index of the dimension. * (why? because of the backward compatbility. We have been tolerating number-like string in * dimension setting, although now it seems that it is not a good idea.) * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`, * if no dimension name is defined as `"1"`. * + If dim is a not-number-like string, it means the concrete dim name. * For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`, * or customized in `dimensions` property of option like `"age"`. * * Get dimension name * @param {string|number} dim See above. * @return {string} Concrete dim name. */ listProto.getDimension = function (dim) { if (typeof dim === 'number' // If being a number-like string but not being defined a dimension name. || (!isNaN(dim) && !this._dimensionInfos.hasOwnProperty(dim)) ) { dim = this.dimensions[dim]; } return dim; }; /** * Get type and calculation info of particular dimension * @param {string|number} dim * Dimension can be concrete names like x, y, z, lng, lat, angle, radius * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' */ listProto.getDimensionInfo = function (dim) { // Do not clone, because there may be categories in dimInfo. return this._dimensionInfos[this.getDimension(dim)]; }; /** * @return {Array.} concrete dimension name list on coord. */ listProto.getDimensionsOnCoord = function () { return this._dimensionsSummary.dataDimsOnCoord.slice(); }; /** * @param {string} coordDim * @param {number} [idx] A coordDim may map to more than one data dim. * If idx is `true`, return a array of all mapped dims. * If idx is not specified, return the first dim not extra. * @return {string|Array.} concrete data dim. * If idx is number, and not found, return null/undefined. * If idx is `true`, and not found, return empty array (always return array). */ listProto.mapDimension = function (coordDim, idx) { var dimensionsSummary = this._dimensionsSummary; if (idx == null) { return dimensionsSummary.encodeFirstDimNotExtra[coordDim]; } var dims = dimensionsSummary.encode[coordDim]; return idx === true // always return array if idx is `true` ? (dims || []).slice() : (dims && dims[idx]); }; /** * Initialize from data * @param {Array.} data source or data or data provider. * @param {Array.} [nameLIst] The name of a datum is used on data diff and * defualt label/tooltip. * A name can be specified in encode.itemName, * or dataItem.name (only for series option data), * or provided in nameList from outside. * @param {Function} [dimValueGetter] (dataItem, dimName, dataIndex, dimIndex) => number */ listProto.initData = function (data, nameList, dimValueGetter) { var notProvider = Source.isInstance(data) || isArrayLike(data); if (notProvider) { data = new DefaultDataProvider(data, this.dimensions.length); } if (__DEV__) { if (!notProvider && (typeof data.getItem !== 'function' || typeof data.count !== 'function')) { throw new Error('Inavlid data provider.'); } } this._rawData = data; // Clear this._storage = {}; this._indices = null; this._nameList = nameList || []; this._idList = []; this._nameRepeatCount = {}; if (!dimValueGetter) { this.hasItemOption = false; } /** * @readOnly */ this.defaultDimValueGetter = defaultDimValueGetters[ this._rawData.getSource().sourceFormat ]; // Default dim value getter this._dimValueGetter = dimValueGetter = dimValueGetter || this.defaultDimValueGetter; this._dimValueGetterArrayRows = defaultDimValueGetters.arrayRows; // Reset raw extent. this._rawExtent = {}; this._initDataFromProvider(0, data.count()); // If data has no item option. if (data.pure) { this.hasItemOption = false; } }; listProto.getProvider = function () { return this._rawData; }; /** * Caution: Can be only called on raw data (before `this._indices` created). */ listProto.appendData = function (data) { if (__DEV__) { assert$1(!this._indices, 'appendData can only be called on raw data.'); } var rawData = this._rawData; var start = this.count(); rawData.appendData(data); var end = rawData.count(); if (!rawData.persistent) { end += start; } this._initDataFromProvider(start, end); }; /** * Caution: Can be only called on raw data (before `this._indices` created). * This method does not modify `rawData` (`dataProvider`), but only * add values to storage. * * The final count will be increased by `Math.max(values.length, names.length)`. * * @param {Array.>} values That is the SourceType: 'arrayRows', like * [ * [12, 33, 44], * [NaN, 43, 1], * ['-', 'asdf', 0] * ] * Each item is exaclty cooresponding to a dimension. * @param {Array.} [names] */ listProto.appendValues = function (values, names) { var chunkSize = this._chunkSize; var storage = this._storage; var dimensions = this.dimensions; var dimLen = dimensions.length; var rawExtent = this._rawExtent; var start = this.count(); var end = start + Math.max(values.length, names ? names.length : 0); var originalChunkCount = this._chunkCount; for (var i = 0; i < dimLen; i++) { var dim = dimensions[i]; if (!rawExtent[dim]) { rawExtent[dim] = getInitialExtent(); } if (!storage[dim]) { storage[dim] = []; } prepareChunks(storage, this._dimensionInfos[dim], chunkSize, originalChunkCount, end); this._chunkCount = storage[dim].length; } var emptyDataItem = new Array(dimLen); for (var idx = start; idx < end; idx++) { var sourceIdx = idx - start; var chunkIndex = Math.floor(idx / chunkSize); var chunkOffset = idx % chunkSize; // Store the data by dimensions for (var k = 0; k < dimLen; k++) { var dim = dimensions[k]; var val = this._dimValueGetterArrayRows( values[sourceIdx] || emptyDataItem, dim, sourceIdx, k ); storage[dim][chunkIndex][chunkOffset] = val; var dimRawExtent = rawExtent[dim]; val < dimRawExtent[0] && (dimRawExtent[0] = val); val > dimRawExtent[1] && (dimRawExtent[1] = val); } if (names) { this._nameList[idx] = names[sourceIdx]; } } this._rawCount = this._count = end; // Reset data extent this._extent = {}; prepareInvertedIndex(this); }; listProto._initDataFromProvider = function (start, end) { // Optimize. if (start >= end) { return; } var chunkSize = this._chunkSize; var rawData = this._rawData; var storage = this._storage; var dimensions = this.dimensions; var dimLen = dimensions.length; var dimensionInfoMap = this._dimensionInfos; var nameList = this._nameList; var idList = this._idList; var rawExtent = this._rawExtent; var nameRepeatCount = this._nameRepeatCount = {}; var nameDimIdx; var originalChunkCount = this._chunkCount; for (var i = 0; i < dimLen; i++) { var dim = dimensions[i]; if (!rawExtent[dim]) { rawExtent[dim] = getInitialExtent(); } var dimInfo = dimensionInfoMap[dim]; if (dimInfo.otherDims.itemName === 0) { nameDimIdx = this._nameDimIdx = i; } if (dimInfo.otherDims.itemId === 0) { this._idDimIdx = i; } if (!storage[dim]) { storage[dim] = []; } prepareChunks(storage, dimInfo, chunkSize, originalChunkCount, end); this._chunkCount = storage[dim].length; } var dataItem = new Array(dimLen); for (var idx = start; idx < end; idx++) { // NOTICE: Try not to write things into dataItem dataItem = rawData.getItem(idx, dataItem); // Each data item is value // [1, 2] // 2 // Bar chart, line chart which uses category axis // only gives the 'y' value. 'x' value is the indices of category // Use a tempValue to normalize the value to be a (x, y) value var chunkIndex = Math.floor(idx / chunkSize); var chunkOffset = idx % chunkSize; // Store the data by dimensions for (var k = 0; k < dimLen; k++) { var dim = dimensions[k]; var dimStorage = storage[dim][chunkIndex]; // PENDING NULL is empty or zero var val = this._dimValueGetter(dataItem, dim, idx, k); dimStorage[chunkOffset] = val; var dimRawExtent = rawExtent[dim]; val < dimRawExtent[0] && (dimRawExtent[0] = val); val > dimRawExtent[1] && (dimRawExtent[1] = val); } // ??? FIXME not check by pure but sourceFormat? // TODO refactor these logic. if (!rawData.pure) { var name = nameList[idx]; if (dataItem && name == null) { // If dataItem is {name: ...}, it has highest priority. // That is appropriate for many common cases. if (dataItem.name != null) { // There is no other place to persistent dataItem.name, // so save it to nameList. nameList[idx] = name = dataItem.name; } else if (nameDimIdx != null) { var nameDim = dimensions[nameDimIdx]; var nameDimChunk = storage[nameDim][chunkIndex]; if (nameDimChunk) { name = nameDimChunk[chunkOffset]; var ordinalMeta = dimensionInfoMap[nameDim].ordinalMeta; if (ordinalMeta && ordinalMeta.categories.length) { name = ordinalMeta.categories[name]; } } } } // Try using the id in option // id or name is used on dynamical data, mapping old and new items. var id = dataItem == null ? null : dataItem.id; if (id == null && name != null) { // Use name as id and add counter to avoid same name nameRepeatCount[name] = nameRepeatCount[name] || 0; id = name; if (nameRepeatCount[name] > 0) { id += '__ec__' + nameRepeatCount[name]; } nameRepeatCount[name]++; } id != null && (idList[idx] = id); } } if (!rawData.persistent && rawData.clean) { // Clean unused data if data source is typed array. rawData.clean(); } this._rawCount = this._count = end; // Reset data extent this._extent = {}; prepareInvertedIndex(this); }; function prepareChunks(storage, dimInfo, chunkSize, chunkCount, end) { var DataCtor = dataCtors[dimInfo.type]; var lastChunkIndex = chunkCount - 1; var dim = dimInfo.name; var resizeChunkArray = storage[dim][lastChunkIndex]; if (resizeChunkArray && resizeChunkArray.length < chunkSize) { var newStore = new DataCtor(Math.min(end - lastChunkIndex * chunkSize, chunkSize)); // The cost of the copy is probably inconsiderable // within the initial chunkSize. for (var j = 0; j < resizeChunkArray.length; j++) { newStore[j] = resizeChunkArray[j]; } storage[dim][lastChunkIndex] = newStore; } // Create new chunks. for (var k = chunkCount * chunkSize; k < end; k += chunkSize) { storage[dim].push(new DataCtor(Math.min(end - k, chunkSize))); } } function prepareInvertedIndex(list) { var invertedIndicesMap = list._invertedIndicesMap; each$1(invertedIndicesMap, function (invertedIndices, dim) { var dimInfo = list._dimensionInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices. var ordinalMeta = dimInfo.ordinalMeta; if (ordinalMeta) { invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array( ordinalMeta.categories.length ); // The default value of TypedArray is 0. To avoid miss // mapping to 0, we should set it as INDEX_NOT_FOUND. for (var i = 0; i < invertedIndices.length; i++) { invertedIndices[i] = INDEX_NOT_FOUND; } for (var i = 0; i < list._count; i++) { // Only support the case that all values are distinct. invertedIndices[list.get(dim, i)] = i; } } }); } function getRawValueFromStore(list, dimIndex, rawIndex) { var val; if (dimIndex != null) { var chunkSize = list._chunkSize; var chunkIndex = Math.floor(rawIndex / chunkSize); var chunkOffset = rawIndex % chunkSize; var dim = list.dimensions[dimIndex]; var chunk = list._storage[dim][chunkIndex]; if (chunk) { val = chunk[chunkOffset]; var ordinalMeta = list._dimensionInfos[dim].ordinalMeta; if (ordinalMeta && ordinalMeta.categories.length) { val = ordinalMeta.categories[val]; } } } return val; } /** * @return {number} */ listProto.count = function () { return this._count; }; listProto.getIndices = function () { var newIndices; var indices = this._indices; if (indices) { var Ctor = indices.constructor; var thisCount = this._count; // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`. if (Ctor === Array) { newIndices = new Ctor(thisCount); for (var i = 0; i < thisCount; i++) { newIndices[i] = indices[i]; } } else { newIndices = new Ctor(indices.buffer, 0, thisCount); } } else { var Ctor = getIndicesCtor(this); var newIndices = new Ctor(this.count()); for (var i = 0; i < newIndices.length; i++) { newIndices[i] = i; } } return newIndices; }; /** * Get value. Return NaN if idx is out of range. * @param {string} dim Dim must be concrete name. * @param {number} idx * @param {boolean} stack * @return {number} */ listProto.get = function (dim, idx /*, stack */) { if (!(idx >= 0 && idx < this._count)) { return NaN; } var storage = this._storage; if (!storage[dim]) { // TODO Warn ? return NaN; } idx = this.getRawIndex(idx); var chunkIndex = Math.floor(idx / this._chunkSize); var chunkOffset = idx % this._chunkSize; var chunkStore = storage[dim][chunkIndex]; var value = chunkStore[chunkOffset]; // FIXME ordinal data type is not stackable // if (stack) { // var dimensionInfo = this._dimensionInfos[dim]; // if (dimensionInfo && dimensionInfo.stackable) { // var stackedOn = this.stackedOn; // while (stackedOn) { // // Get no stacked data of stacked on // var stackedValue = stackedOn.get(dim, idx); // // Considering positive stack, negative stack and empty data // if ((value >= 0 && stackedValue > 0) // Positive stack // || (value <= 0 && stackedValue < 0) // Negative stack // ) { // value += stackedValue; // } // stackedOn = stackedOn.stackedOn; // } // } // } return value; }; /** * @param {string} dim concrete dim * @param {number} rawIndex * @return {number|string} */ listProto.getByRawIndex = function (dim, rawIdx) { if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { return NaN; } var dimStore = this._storage[dim]; if (!dimStore) { // TODO Warn ? return NaN; } var chunkIndex = Math.floor(rawIdx / this._chunkSize); var chunkOffset = rawIdx % this._chunkSize; var chunkStore = dimStore[chunkIndex]; return chunkStore[chunkOffset]; }; /** * FIXME Use `get` on chrome maybe slow(in filterSelf and selectRange). * Hack a much simpler _getFast * @private */ listProto._getFast = function (dim, rawIdx) { var chunkIndex = Math.floor(rawIdx / this._chunkSize); var chunkOffset = rawIdx % this._chunkSize; var chunkStore = this._storage[dim][chunkIndex]; return chunkStore[chunkOffset]; }; /** * Get value for multi dimensions. * @param {Array.} [dimensions] If ignored, using all dimensions. * @param {number} idx * @return {number} */ listProto.getValues = function (dimensions, idx /*, stack */) { var values = []; if (!isArray(dimensions)) { // stack = idx; idx = dimensions; dimensions = this.dimensions; } for (var i = 0, len = dimensions.length; i < len; i++) { values.push(this.get(dimensions[i], idx /*, stack */)); } return values; }; /** * If value is NaN. Inlcuding '-' * Only check the coord dimensions. * @param {string} dim * @param {number} idx * @return {number} */ listProto.hasValue = function (idx) { var dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord; for (var i = 0, len = dataDimsOnCoord.length; i < len; i++) { // Ordinal type originally can be string or number. // But when an ordinal type is used on coord, it can // not be string but only number. So we can also use isNaN. if (isNaN(this.get(dataDimsOnCoord[i], idx))) { return false; } } return true; }; /** * Get extent of data in one dimension * @param {string} dim * @param {boolean} stack */ listProto.getDataExtent = function (dim /*, stack */) { // Make sure use concrete dim as cache name. dim = this.getDimension(dim); var dimData = this._storage[dim]; var initialExtent = getInitialExtent(); // stack = !!((stack || false) && this.getCalculationInfo(dim)); if (!dimData) { return initialExtent; } // Make more strict checkings to ensure hitting cache. var currEnd = this.count(); // var cacheName = [dim, !!stack].join('_'); // var cacheName = dim; // Consider the most cases when using data zoom, `getDataExtent` // happened before filtering. We cache raw extent, which is not // necessary to be cleared and recalculated when restore data. var useRaw = !this._indices; // && !stack; var dimExtent; if (useRaw) { return this._rawExtent[dim].slice(); } dimExtent = this._extent[dim]; if (dimExtent) { return dimExtent.slice(); } dimExtent = initialExtent; var min = dimExtent[0]; var max = dimExtent[1]; for (var i = 0; i < currEnd; i++) { // var value = stack ? this.get(dim, i, true) : this._getFast(dim, this.getRawIndex(i)); var value = this._getFast(dim, this.getRawIndex(i)); value < min && (min = value); value > max && (max = value); } dimExtent = [min, max]; this._extent[dim] = dimExtent; return dimExtent; }; /** * Optimize for the scenario that data is filtered by a given extent. * Consider that if data amount is more than hundreds of thousand, * extent calculation will cost more than 10ms and the cache will * be erased because of the filtering. */ listProto.getApproximateExtent = function (dim /*, stack */) { dim = this.getDimension(dim); return this._approximateExtent[dim] || this.getDataExtent(dim /*, stack */); }; listProto.setApproximateExtent = function (extent, dim /*, stack */) { dim = this.getDimension(dim); this._approximateExtent[dim] = extent.slice(); }; /** * @param {string} key * @return {*} */ listProto.getCalculationInfo = function (key) { return this._calculationInfo[key]; }; /** * @param {string|Object} key or k-v object * @param {*} [value] */ listProto.setCalculationInfo = function (key, value) { isObject$4(key) ? extend(this._calculationInfo, key) : (this._calculationInfo[key] = value); }; /** * Get sum of data in one dimension * @param {string} dim */ listProto.getSum = function (dim /*, stack */) { var dimData = this._storage[dim]; var sum = 0; if (dimData) { for (var i = 0, len = this.count(); i < len; i++) { var value = this.get(dim, i /*, stack */); if (!isNaN(value)) { sum += value; } } } return sum; }; /** * Get median of data in one dimension * @param {string} dim */ listProto.getMedian = function (dim /*, stack */) { var dimDataArray = []; // map all data of one dimension this.each(dim, function (val, idx) { if (!isNaN(val)) { dimDataArray.push(val); } }); // TODO // Use quick select? // immutability & sort var sortedDimDataArray = [].concat(dimDataArray).sort(function (a, b) { return a - b; }); var len = this.count(); // calculate median return len === 0 ? 0 : len % 2 === 1 ? sortedDimDataArray[(len - 1) / 2] : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2; }; // /** // * Retreive the index with given value // * @param {string} dim Concrete dimension. // * @param {number} value // * @return {number} // */ // Currently incorrect: should return dataIndex but not rawIndex. // Do not fix it until this method is to be used somewhere. // FIXME Precision of float value // listProto.indexOf = function (dim, value) { // var storage = this._storage; // var dimData = storage[dim]; // var chunkSize = this._chunkSize; // if (dimData) { // for (var i = 0, len = this.count(); i < len; i++) { // var chunkIndex = Math.floor(i / chunkSize); // var chunkOffset = i % chunkSize; // if (dimData[chunkIndex][chunkOffset] === value) { // return i; // } // } // } // return -1; // }; /** * Only support the dimension which inverted index created. * Do not support other cases until required. * @param {string} concrete dim * @param {number|string} value * @return {number} rawIndex */ listProto.rawIndexOf = function (dim, value) { var invertedIndices = dim && this._invertedIndicesMap[dim]; if (__DEV__) { if (!invertedIndices) { throw new Error('Do not supported yet'); } } var rawIndex = invertedIndices[value]; if (rawIndex == null || isNaN(rawIndex)) { return INDEX_NOT_FOUND; } return rawIndex; }; /** * Retreive the index with given name * @param {number} idx * @param {number} name * @return {number} */ listProto.indexOfName = function (name) { for (var i = 0, len = this.count(); i < len; i++) { if (this.getName(i) === name) { return i; } } return -1; }; /** * Retreive the index with given raw data index * @param {number} idx * @param {number} name * @return {number} */ listProto.indexOfRawIndex = function (rawIndex) { if (!this._indices) { return rawIndex; } if (rawIndex >= this._rawCount || rawIndex < 0) { return -1; } // Indices are ascending var indices = this._indices; // If rawIndex === dataIndex var rawDataIndex = indices[rawIndex]; if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) { return rawIndex; } var left = 0; var right = this._count - 1; while (left <= right) { var mid = (left + right) / 2 | 0; if (indices[mid] < rawIndex) { left = mid + 1; } else if (indices[mid] > rawIndex) { right = mid - 1; } else { return mid; } } return -1; }; /** * Retreive the index of nearest value * @param {string} dim * @param {number} value * @param {number} [maxDistance=Infinity] * @return {Array.} Considere multiple points has the same value. */ listProto.indicesOfNearest = function (dim, value, maxDistance) { var storage = this._storage; var dimData = storage[dim]; var nearestIndices = []; if (!dimData) { return nearestIndices; } if (maxDistance == null) { maxDistance = Infinity; } var minDist = Number.MAX_VALUE; var minDiff = -1; for (var i = 0, len = this.count(); i < len; i++) { var diff = value - this.get(dim, i /*, stack */); var dist = Math.abs(diff); if (diff <= maxDistance && dist <= minDist) { // For the case of two data are same on xAxis, which has sequence data. // Show the nearest index // https://github.com/ecomfe/echarts/issues/2869 if (dist < minDist || (diff >= 0 && minDiff < 0)) { minDist = dist; minDiff = diff; nearestIndices.length = 0; } nearestIndices.push(i); } } return nearestIndices; }; /** * Get raw data index * @param {number} idx * @return {number} */ listProto.getRawIndex = getRawIndexWithoutIndices; function getRawIndexWithoutIndices(idx) { return idx; } function getRawIndexWithIndices(idx) { if (idx < this._count && idx >= 0) { return this._indices[idx]; } return -1; } /** * Get raw data item * @param {number} idx * @return {number} */ listProto.getRawDataItem = function (idx) { if (!this._rawData.persistent) { var val = []; for (var i = 0; i < this.dimensions.length; i++) { var dim = this.dimensions[i]; val.push(this.get(dim, idx)); } return val; } else { return this._rawData.getItem(this.getRawIndex(idx)); } }; /** * @param {number} idx * @param {boolean} [notDefaultIdx=false] * @return {string} */ listProto.getName = function (idx) { var rawIndex = this.getRawIndex(idx); return this._nameList[rawIndex] || getRawValueFromStore(this, this._nameDimIdx, rawIndex) || ''; }; /** * @param {number} idx * @param {boolean} [notDefaultIdx=false] * @return {string} */ listProto.getId = function (idx) { return getId(this, this.getRawIndex(idx)); }; function getId(list, rawIndex) { var id = list._idList[rawIndex]; if (id == null) { id = getRawValueFromStore(list, list._idDimIdx, rawIndex); } if (id == null) { // FIXME Check the usage in graph, should not use prefix. id = ID_PREFIX + rawIndex; } return id; } function normalizeDimensions(dimensions) { if (!isArray(dimensions)) { dimensions = [dimensions]; } return dimensions; } function validateDimensions(list, dims) { for (var i = 0; i < dims.length; i++) { // stroage may be empty when no data, so use // dimensionInfos to check. if (!list._dimensionInfos[dims[i]]) { console.error('Unkown dimension ' + dims[i]); } } } /** * Data iteration * @param {string|Array.} * @param {Function} cb * @param {*} [context=this] * * @example * list.each('x', function (x, idx) {}); * list.each(['x', 'y'], function (x, y, idx) {}); * list.each(function (idx) {}) */ listProto.each = function (dims, cb, context, contextCompat) { 'use strict'; if (!this._count) { return; } if (typeof dims === 'function') { contextCompat = context; context = cb; cb = dims; dims = []; } // contextCompat just for compat echarts3 context = context || contextCompat || this; dims = map(normalizeDimensions(dims), this.getDimension, this); if (__DEV__) { validateDimensions(this, dims); } var dimSize = dims.length; for (var i = 0; i < this.count(); i++) { // Simple optimization switch (dimSize) { case 0: cb.call(context, i); break; case 1: cb.call(context, this.get(dims[0], i), i); break; case 2: cb.call(context, this.get(dims[0], i), this.get(dims[1], i), i); break; default: var k = 0; var value = []; for (; k < dimSize; k++) { value[k] = this.get(dims[k], i); } // Index value[k] = i; cb.apply(context, value); } } }; /** * Data filter * @param {string|Array.} * @param {Function} cb * @param {*} [context=this] */ listProto.filterSelf = function (dimensions, cb, context, contextCompat) { 'use strict'; if (!this._count) { return; } if (typeof dimensions === 'function') { contextCompat = context; context = cb; cb = dimensions; dimensions = []; } // contextCompat just for compat echarts3 context = context || contextCompat || this; dimensions = map( normalizeDimensions(dimensions), this.getDimension, this ); if (__DEV__) { validateDimensions(this, dimensions); } var count = this.count(); var Ctor = getIndicesCtor(this); var newIndices = new Ctor(count); var value = []; var dimSize = dimensions.length; var offset = 0; var dim0 = dimensions[0]; for (var i = 0; i < count; i++) { var keep; var rawIdx = this.getRawIndex(i); // Simple optimization if (dimSize === 0) { keep = cb.call(context, i); } else if (dimSize === 1) { var val = this._getFast(dim0, rawIdx); keep = cb.call(context, val, i); } else { for (var k = 0; k < dimSize; k++) { value[k] = this._getFast(dim0, rawIdx); } value[k] = i; keep = cb.apply(context, value); } if (keep) { newIndices[offset++] = rawIdx; } } // Set indices after filtered. if (offset < count) { this._indices = newIndices; } this._count = offset; // Reset data extent this._extent = {}; this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; return this; }; /** * Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.) */ listProto.selectRange = function (range) { 'use strict'; if (!this._count) { return; } var dimensions = []; for (var dim in range) { if (range.hasOwnProperty(dim)) { dimensions.push(dim); } } if (__DEV__) { validateDimensions(this, dimensions); } var dimSize = dimensions.length; if (!dimSize) { return; } var originalCount = this.count(); var Ctor = getIndicesCtor(this); var newIndices = new Ctor(originalCount); var offset = 0; var dim0 = dimensions[0]; var min = range[dim0][0]; var max = range[dim0][1]; var quickFinished = false; if (!this._indices) { // Extreme optimization for common case. About 2x faster in chrome. var idx = 0; if (dimSize === 1) { var dimStorage = this._storage[dimensions[0]]; for (var k = 0; k < this._chunkCount; k++) { var chunkStorage = dimStorage[k]; var len = Math.min(this._count - k * this._chunkSize, this._chunkSize); for (var i = 0; i < len; i++) { var val = chunkStorage[i]; // NaN will not be filtered. Consider the case, in line chart, empty // value indicates the line should be broken. But for the case like // scatter plot, a data item with empty value will not be rendered, // but the axis extent may be effected if some other dim of the data // item has value. Fortunately it is not a significant negative effect. if ( (val >= min && val <= max) || isNaN(val) ) { newIndices[offset++] = idx; } idx++; } } quickFinished = true; } else if (dimSize === 2) { var dimStorage = this._storage[dim0]; var dimStorage2 = this._storage[dimensions[1]]; var min2 = range[dimensions[1]][0]; var max2 = range[dimensions[1]][1]; for (var k = 0; k < this._chunkCount; k++) { var chunkStorage = dimStorage[k]; var chunkStorage2 = dimStorage2[k]; var len = Math.min(this._count - k * this._chunkSize, this._chunkSize); for (var i = 0; i < len; i++) { var val = chunkStorage[i]; var val2 = chunkStorage2[i]; // Do not filter NaN, see comment above. if (( (val >= min && val <= max) || isNaN(val) ) && ( (val2 >= min2 && val2 <= max2) || isNaN(val2) ) ) { newIndices[offset++] = idx; } idx++; } } quickFinished = true; } } if (!quickFinished) { if (dimSize === 1) { for (var i = 0; i < originalCount; i++) { var rawIndex = this.getRawIndex(i); var val = this._getFast(dim0, rawIndex); // Do not filter NaN, see comment above. if ( (val >= min && val <= max) || isNaN(val) ) { newIndices[offset++] = rawIndex; } } } else { for (var i = 0; i < originalCount; i++) { var keep = true; var rawIndex = this.getRawIndex(i); for (var k = 0; k < dimSize; k++) { var dimk = dimensions[k]; var val = this._getFast(dim, rawIndex); // Do not filter NaN, see comment above. if (val < range[dimk][0] || val > range[dimk][1]) { keep = false; } } if (keep) { newIndices[offset++] = this.getRawIndex(i); } } } } // Set indices after filtered. if (offset < originalCount) { this._indices = newIndices; } this._count = offset; // Reset data extent this._extent = {}; this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; return this; }; /** * Data mapping to a plain array * @param {string|Array.} [dimensions] * @param {Function} cb * @param {*} [context=this] * @return {Array} */ listProto.mapArray = function (dimensions, cb, context, contextCompat) { 'use strict'; if (typeof dimensions === 'function') { contextCompat = context; context = cb; cb = dimensions; dimensions = []; } // contextCompat just for compat echarts3 context = context || contextCompat || this; var result = []; this.each(dimensions, function () { result.push(cb && cb.apply(this, arguments)); }, context); return result; }; // Data in excludeDimensions is copied, otherwise transfered. function cloneListForMapAndSample(original, excludeDimensions) { var allDimensions = original.dimensions; var list = new List( map(allDimensions, original.getDimensionInfo, original), original.hostModel ); // FIXME If needs stackedOn, value may already been stacked transferProperties(list, original); var storage = list._storage = {}; var originalStorage = original._storage; // Init storage for (var i = 0; i < allDimensions.length; i++) { var dim = allDimensions[i]; if (originalStorage[dim]) { // Notice that we do not reset invertedIndicesMap here, becuase // there is no scenario of mapping or sampling ordinal dimension. if (indexOf(excludeDimensions, dim) >= 0) { storage[dim] = cloneDimStore(originalStorage[dim]); list._rawExtent[dim] = getInitialExtent(); list._extent[dim] = null; } else { // Direct reference for other dimensions storage[dim] = originalStorage[dim]; } } } return list; } function cloneDimStore(originalDimStore) { var newDimStore = new Array(originalDimStore.length); for (var j = 0; j < originalDimStore.length; j++) { newDimStore[j] = cloneChunk(originalDimStore[j]); } return newDimStore; } function getInitialExtent() { return [Infinity, -Infinity]; } /** * Data mapping to a new List with given dimensions * @param {string|Array.} dimensions * @param {Function} cb * @param {*} [context=this] * @return {Array} */ listProto.map = function (dimensions, cb, context, contextCompat) { 'use strict'; // contextCompat just for compat echarts3 context = context || contextCompat || this; dimensions = map( normalizeDimensions(dimensions), this.getDimension, this ); if (__DEV__) { validateDimensions(this, dimensions); } var list = cloneListForMapAndSample(this, dimensions); // Following properties are all immutable. // So we can reference to the same value list._indices = this._indices; list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; var storage = list._storage; var tmpRetValue = []; var chunkSize = this._chunkSize; var dimSize = dimensions.length; var dataCount = this.count(); var values = []; var rawExtent = list._rawExtent; for (var dataIndex = 0; dataIndex < dataCount; dataIndex++) { for (var dimIndex = 0; dimIndex < dimSize; dimIndex++) { values[dimIndex] = this.get(dimensions[dimIndex], dataIndex /*, stack */); } values[dimSize] = dataIndex; var retValue = cb && cb.apply(context, values); if (retValue != null) { // a number or string (in oridinal dimension)? if (typeof retValue !== 'object') { tmpRetValue[0] = retValue; retValue = tmpRetValue; } var rawIndex = this.getRawIndex(dataIndex); var chunkIndex = Math.floor(rawIndex / chunkSize); var chunkOffset = rawIndex % chunkSize; for (var i = 0; i < retValue.length; i++) { var dim = dimensions[i]; var val = retValue[i]; var rawExtentOnDim = rawExtent[dim]; var dimStore = storage[dim]; if (dimStore) { dimStore[chunkIndex][chunkOffset] = val; } if (val < rawExtentOnDim[0]) { rawExtentOnDim[0] = val; } if (val > rawExtentOnDim[1]) { rawExtentOnDim[1] = val; } } } } return list; }; /** * Large data down sampling on given dimension * @param {string} dimension * @param {number} rate * @param {Function} sampleValue * @param {Function} sampleIndex Sample index for name and id */ listProto.downSample = function (dimension, rate, sampleValue, sampleIndex) { var list = cloneListForMapAndSample(this, [dimension]); var targetStorage = list._storage; var frameValues = []; var frameSize = Math.floor(1 / rate); var dimStore = targetStorage[dimension]; var len = this.count(); var chunkSize = this._chunkSize; var rawExtentOnDim = list._rawExtent[dimension]; var newIndices = new (getIndicesCtor(this))(len); var offset = 0; for (var i = 0; i < len; i += frameSize) { // Last frame if (frameSize > len - i) { frameSize = len - i; frameValues.length = frameSize; } for (var k = 0; k < frameSize; k++) { var dataIdx = this.getRawIndex(i + k); var originalChunkIndex = Math.floor(dataIdx / chunkSize); var originalChunkOffset = dataIdx % chunkSize; frameValues[k] = dimStore[originalChunkIndex][originalChunkOffset]; } var value = sampleValue(frameValues); var sampleFrameIdx = this.getRawIndex( Math.min(i + sampleIndex(frameValues, value) || 0, len - 1) ); var sampleChunkIndex = Math.floor(sampleFrameIdx / chunkSize); var sampleChunkOffset = sampleFrameIdx % chunkSize; // Only write value on the filtered data dimStore[sampleChunkIndex][sampleChunkOffset] = value; if (value < rawExtentOnDim[0]) { rawExtentOnDim[0] = value; } if (value > rawExtentOnDim[1]) { rawExtentOnDim[1] = value; } newIndices[offset++] = sampleFrameIdx; } list._count = offset; list._indices = newIndices; list.getRawIndex = getRawIndexWithIndices; return list; }; /** * Get model of one data item. * * @param {number} idx */ // FIXME Model proxy ? listProto.getItemModel = function (idx) { var hostModel = this.hostModel; return new Model(this.getRawDataItem(idx), hostModel, hostModel && hostModel.ecModel); }; /** * Create a data differ * @param {module:echarts/data/List} otherList * @return {module:echarts/data/DataDiffer} */ listProto.diff = function (otherList) { var thisList = this; return new DataDiffer( otherList ? otherList.getIndices() : [], this.getIndices(), function (idx) { return getId(otherList, idx); }, function (idx) { return getId(thisList, idx); } ); }; /** * Get visual property. * @param {string} key */ listProto.getVisual = function (key) { var visual = this._visual; return visual && visual[key]; }; /** * Set visual property * @param {string|Object} key * @param {*} [value] * * @example * setVisual('color', color); * setVisual({ * 'color': color * }); */ listProto.setVisual = function (key, val) { if (isObject$4(key)) { for (var name in key) { if (key.hasOwnProperty(name)) { this.setVisual(name, key[name]); } } return; } this._visual = this._visual || {}; this._visual[key] = val; }; /** * Set layout property. * @param {string|Object} key * @param {*} [val] */ listProto.setLayout = function (key, val) { if (isObject$4(key)) { for (var name in key) { if (key.hasOwnProperty(name)) { this.setLayout(name, key[name]); } } return; } this._layout[key] = val; }; /** * Get layout property. * @param {string} key. * @return {*} */ listProto.getLayout = function (key) { return this._layout[key]; }; /** * Get layout of single data item * @param {number} idx */ listProto.getItemLayout = function (idx) { return this._itemLayouts[idx]; }; /** * Set layout of single data item * @param {number} idx * @param {Object} layout * @param {boolean=} [merge=false] */ listProto.setItemLayout = function (idx, layout, merge$$1) { this._itemLayouts[idx] = merge$$1 ? extend(this._itemLayouts[idx] || {}, layout) : layout; }; /** * Clear all layout of single data item */ listProto.clearItemLayouts = function () { this._itemLayouts.length = 0; }; /** * Get visual property of single data item * @param {number} idx * @param {string} key * @param {boolean} [ignoreParent=false] */ listProto.getItemVisual = function (idx, key, ignoreParent) { var itemVisual = this._itemVisuals[idx]; var val = itemVisual && itemVisual[key]; if (val == null && !ignoreParent) { // Use global visual property return this.getVisual(key); } return val; }; /** * Set visual property of single data item * * @param {number} idx * @param {string|Object} key * @param {*} [value] * * @example * setItemVisual(0, 'color', color); * setItemVisual(0, { * 'color': color * }); */ listProto.setItemVisual = function (idx, key, value) { var itemVisual = this._itemVisuals[idx] || {}; var hasItemVisual = this.hasItemVisual; this._itemVisuals[idx] = itemVisual; if (isObject$4(key)) { for (var name in key) { if (key.hasOwnProperty(name)) { itemVisual[name] = key[name]; hasItemVisual[name] = true; } } return; } itemVisual[key] = value; hasItemVisual[key] = true; }; /** * Clear itemVisuals and list visual. */ listProto.clearAllVisual = function () { this._visual = {}; this._itemVisuals = []; this.hasItemVisual = {}; }; var setItemDataAndSeriesIndex = function (child) { child.seriesIndex = this.seriesIndex; child.dataIndex = this.dataIndex; child.dataType = this.dataType; }; /** * Set graphic element relative to data. It can be set as null * @param {number} idx * @param {module:zrender/Element} [el] */ listProto.setItemGraphicEl = function (idx, el) { var hostModel = this.hostModel; if (el) { // Add data index and series index for indexing the data by element // Useful in tooltip el.dataIndex = idx; el.dataType = this.dataType; el.seriesIndex = hostModel && hostModel.seriesIndex; if (el.type === 'group') { el.traverse(setItemDataAndSeriesIndex, el); } } this._graphicEls[idx] = el; }; /** * @param {number} idx * @return {module:zrender/Element} */ listProto.getItemGraphicEl = function (idx) { return this._graphicEls[idx]; }; /** * @param {Function} cb * @param {*} context */ listProto.eachItemGraphicEl = function (cb, context) { each$1(this._graphicEls, function (el, idx) { if (el) { cb && cb.call(context, el, idx); } }); }; /** * Shallow clone a new list except visual and layout properties, and graph elements. * New list only change the indices. */ listProto.cloneShallow = function (list) { if (!list) { var dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this); list = new List(dimensionInfoList, this.hostModel); } // FIXME list._storage = this._storage; transferProperties(list, this); // Clone will not change the data extent and indices if (this._indices) { var Ctor = this._indices.constructor; list._indices = new Ctor(this._indices); } else { list._indices = null; } list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; return list; }; /** * Wrap some method to add more feature * @param {string} methodName * @param {Function} injectFunction */ listProto.wrapMethod = function (methodName, injectFunction) { var originalMethod = this[methodName]; if (typeof originalMethod !== 'function') { return; } this.__wrappedMethods = this.__wrappedMethods || []; this.__wrappedMethods.push(methodName); this[methodName] = function () { var res = originalMethod.apply(this, arguments); return injectFunction.apply(this, [res].concat(slice(arguments))); }; }; // Methods that create a new list based on this list should be listed here. // Notice that those method should `RETURN` the new list. listProto.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'map']; // Methods that change indices of this list should be listed here. listProto.CHANGABLE_METHODS = ['filterSelf', 'selectRange']; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @deprecated * Use `echarts/data/helper/createDimensions` instead. */ /** * @see {module:echarts/test/ut/spec/data/completeDimensions} * * Complete the dimensions array, by user defined `dimension` and `encode`, * and guessing from the data structure. * If no 'value' dimension specified, the first no-named dimension will be * named as 'value'. * * @param {Array.} sysDims Necessary dimensions, like ['x', 'y'], which * provides not only dim template, but also default order. * properties: 'name', 'type', 'displayName'. * `name` of each item provides default coord name. * [{dimsDef: [string|Object, ...]}, ...] dimsDef of sysDim item provides default dim name, and * provide dims count that the sysDim required. * [{ordinalMeta}] can be specified. * @param {module:echarts/data/Source|Array|Object} source or data (for compatibal with pervious) * @param {Object} [opt] * @param {Array.} [opt.dimsDef] option.series.dimensions User defined dimensions * For example: ['asdf', {name, type}, ...]. * @param {Object|HashMap} [opt.encodeDef] option.series.encode {x: 2, y: [3, 1], tooltip: [1, 2], label: 3} * @param {string} [opt.generateCoord] Generate coord dim with the given name. * If not specified, extra dim names will be: * 'value', 'value0', 'value1', ... * @param {number} [opt.generateCoordCount] By default, the generated dim name is `generateCoord`. * If `generateCoordCount` specified, the generated dim names will be: * `generateCoord` + 0, `generateCoord` + 1, ... * can be Infinity, indicate that use all of the remain columns. * @param {number} [opt.dimCount] If not specified, guess by the first data item. * @param {number} [opt.encodeDefaulter] If not specified, auto find the next available data dim. * @return {Array.} [{ * name: string mandatory, * displayName: string, the origin name in dimsDef, see source helper. * If displayName given, the tooltip will displayed vertically. * coordDim: string mandatory, * coordDimIndex: number mandatory, * type: string optional, * otherDims: { never null/undefined * tooltip: number optional, * label: number optional, * itemName: number optional, * seriesName: number optional, * }, * isExtraCoord: boolean true if coord is generated * (not specified in encode and not series specified) * other props ... * }] */ function completeDimensions(sysDims, source, opt) { if (!Source.isInstance(source)) { source = Source.seriesDataToSource(source); } opt = opt || {}; sysDims = (sysDims || []).slice(); var dimsDef = (opt.dimsDef || []).slice(); var encodeDef = createHashMap(opt.encodeDef); var dataDimNameMap = createHashMap(); var coordDimNameMap = createHashMap(); // var valueCandidate; var result = []; var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimCount); // Apply user defined dims (`name` and `type`) and init result. for (var i = 0; i < dimCount; i++) { var dimDefItem = dimsDef[i] = extend( {}, isObject$1(dimsDef[i]) ? dimsDef[i] : {name: dimsDef[i]} ); var userDimName = dimDefItem.name; var resultItem = result[i] = {otherDims: {}}; // Name will be applied later for avoiding duplication. if (userDimName != null && dataDimNameMap.get(userDimName) == null) { // Only if `series.dimensions` is defined in option // displayName, will be set, and dimension will be diplayed vertically in // tooltip by default. resultItem.name = resultItem.displayName = userDimName; dataDimNameMap.set(userDimName, i); } dimDefItem.type != null && (resultItem.type = dimDefItem.type); dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); } // Set `coordDim` and `coordDimIndex` by `encodeDef` and normalize `encodeDef`. encodeDef.each(function (dataDims, coordDim) { dataDims = normalizeToArray(dataDims).slice(); // Note: It is allowed that `dataDims.length` is `0`, e.g., options is // `{encode: {x: -1, y: 1}}`. Should not filter anything in // this case. if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) { encodeDef.set(coordDim, false); return; } var validDataDims = encodeDef.set(coordDim, []); each$1(dataDims, function (resultDimIdx, idx) { // The input resultDimIdx can be dim name or index. isString(resultDimIdx) && (resultDimIdx = dataDimNameMap.get(resultDimIdx)); if (resultDimIdx != null && resultDimIdx < dimCount) { validDataDims[idx] = resultDimIdx; applyDim(result[resultDimIdx], coordDim, idx); } }); }); // Apply templetes and default order from `sysDims`. var availDimIdx = 0; each$1(sysDims, function (sysDimItem, sysDimIndex) { var coordDim; var sysDimItem; var sysDimItemDimsDef; var sysDimItemOtherDims; if (isString(sysDimItem)) { coordDim = sysDimItem; sysDimItem = {}; } else { coordDim = sysDimItem.name; var ordinalMeta = sysDimItem.ordinalMeta; sysDimItem.ordinalMeta = null; sysDimItem = clone(sysDimItem); sysDimItem.ordinalMeta = ordinalMeta; // `coordDimIndex` should not be set directly. sysDimItemDimsDef = sysDimItem.dimsDef; sysDimItemOtherDims = sysDimItem.otherDims; sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = sysDimItem.dimsDef = sysDimItem.otherDims = null; } var dataDims = encodeDef.get(coordDim); // negative resultDimIdx means no need to mapping. if (dataDims === false) { return; } var dataDims = normalizeToArray(dataDims); // dimensions provides default dim sequences. if (!dataDims.length) { for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) { while (availDimIdx < result.length && result[availDimIdx].coordDim != null) { availDimIdx++; } availDimIdx < result.length && dataDims.push(availDimIdx++); } } // Apply templates. each$1(dataDims, function (resultDimIdx, coordDimIndex) { var resultItem = result[resultDimIdx]; applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); if (resultItem.name == null && sysDimItemDimsDef) { var sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; !isObject$1(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {name: sysDimItemDimsDefItem}); resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name; resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip; } // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}} sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims); }); }); function applyDim(resultItem, coordDim, coordDimIndex) { if (OTHER_DIMENSIONS.get(coordDim) != null) { resultItem.otherDims[coordDim] = coordDimIndex; } else { resultItem.coordDim = coordDim; resultItem.coordDimIndex = coordDimIndex; coordDimNameMap.set(coordDim, true); } } // Make sure the first extra dim is 'value'. var generateCoord = opt.generateCoord; var generateCoordCount = opt.generateCoordCount; var fromZero = generateCoordCount != null; generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; var extra = generateCoord || 'value'; // Set dim `name` and other `coordDim` and other props. for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { var resultItem = result[resultDimIdx] = result[resultDimIdx] || {}; var coordDim = resultItem.coordDim; if (coordDim == null) { resultItem.coordDim = genName( extra, coordDimNameMap, fromZero ); resultItem.coordDimIndex = 0; if (!generateCoord || generateCoordCount <= 0) { resultItem.isExtraCoord = true; } generateCoordCount--; } resultItem.name == null && (resultItem.name = genName( resultItem.coordDim, dataDimNameMap )); if (resultItem.type == null && guessOrdinal(source, resultDimIdx, resultItem.name)) { resultItem.type = 'ordinal'; } } return result; } // ??? TODO // Originally detect dimCount by data[0]. Should we // optimize it to only by sysDims and dimensions and encode. // So only necessary dims will be initialized. // But // (1) custom series should be considered. where other dims // may be visited. // (2) sometimes user need to calcualte bubble size or use visualMap // on other dimensions besides coordSys needed. // So, dims that is not used by system, should be shared in storage? function getDimCount(source, sysDims, dimsDef, optDimCount) { // Note that the result dimCount should not small than columns count // of data, otherwise `dataDimNameMap` checking will be incorrect. var dimCount = Math.max( source.dimensionsDetectCount || 1, sysDims.length, dimsDef.length, optDimCount || 0 ); each$1(sysDims, function (sysDimItem) { var sysDimItemDimsDef = sysDimItem.dimsDef; sysDimItemDimsDef && (dimCount = Math.max(dimCount, sysDimItemDimsDef.length)); }); return dimCount; } function genName(name, map$$1, fromZero) { if (fromZero || map$$1.get(name) != null) { var i = 0; while (map$$1.get(name + i) != null) { i++; } name += i; } map$$1.set(name, true); return name; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Substitute `completeDimensions`. * `completeDimensions` is to be deprecated. */ /** * @param {module:echarts/data/Source|module:echarts/data/List} source or data. * @param {Object|Array} [opt] * @param {Array.} [opt.coordDimensions=[]] * @param {number} [opt.dimensionsCount] * @param {string} [opt.generateCoord] * @param {string} [opt.generateCoordCount] * @param {Array.} [opt.dimensionsDefine=source.dimensionsDefine] Overwrite source define. * @param {Object|HashMap} [opt.encodeDefine=source.encodeDefine] Overwrite source define. * @return {Array.} dimensionsInfo */ var createDimensions = function (source, opt) { opt = opt || {}; return completeDimensions(opt.coordDimensions || [], source, { dimsDef: opt.dimensionsDefine || source.dimensionsDefine, encodeDef: opt.encodeDefine || source.encodeDefine, dimCount: opt.dimensionsCount, generateCoord: opt.generateCoord, generateCoordCount: opt.generateCoordCount }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Note that it is too complicated to support 3d stack by value * (have to create two-dimension inverted index), so in 3d case * we just support that stacked by index. * * @param {module:echarts/model/Series} seriesModel * @param {Array.} dimensionInfoList The same as the input of . * The input dimensionInfoList will be modified. * @param {Object} [opt] * @param {boolean} [opt.stackedCoordDimension=''] Specify a coord dimension if needed. * @param {boolean} [opt.byIndex=false] * @return {Object} calculationInfo * { * stackedDimension: string * stackedByDimension: string * isStackedByIndex: boolean * stackedOverDimension: string * stackResultDimension: string * } */ function enableDataStack(seriesModel, dimensionInfoList, opt) { opt = opt || {}; var byIndex = opt.byIndex; var stackedCoordDimension = opt.stackedCoordDimension; // Compatibal: when `stack` is set as '', do not stack. var mayStack = !!(seriesModel && seriesModel.get('stack')); var stackedByDimInfo; var stackedDimInfo; var stackResultDimension; var stackedOverDimension; each$1(dimensionInfoList, function (dimensionInfo, index) { if (isString(dimensionInfo)) { dimensionInfoList[index] = dimensionInfo = {name: dimensionInfo}; } if (mayStack && !dimensionInfo.isExtraCoord) { // Find the first ordinal dimension as the stackedByDimInfo. if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) { stackedByDimInfo = dimensionInfo; } // Find the first stackable dimension as the stackedDimInfo. if (!stackedDimInfo && dimensionInfo.type !== 'ordinal' && dimensionInfo.type !== 'time' && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim) ) { stackedDimInfo = dimensionInfo; } } }); if (stackedDimInfo && !byIndex && !stackedByDimInfo) { // Compatible with previous design, value axis (time axis) only stack by index. // It may make sense if the user provides elaborately constructed data. byIndex = true; } // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`. // That put stack logic in List is for using conveniently in echarts extensions, but it // might not be a good way. if (stackedDimInfo) { // Use a weird name that not duplicated with other names. stackResultDimension = '__\0ecstackresult'; stackedOverDimension = '__\0ecstackedover'; // Create inverted index to fast query index by value. if (stackedByDimInfo) { stackedByDimInfo.createInvertedIndices = true; } var stackedDimCoordDim = stackedDimInfo.coordDim; var stackedDimType = stackedDimInfo.type; var stackedDimCoordIndex = 0; each$1(dimensionInfoList, function (dimensionInfo) { if (dimensionInfo.coordDim === stackedDimCoordDim) { stackedDimCoordIndex++; } }); dimensionInfoList.push({ name: stackResultDimension, coordDim: stackedDimCoordDim, coordDimIndex: stackedDimCoordIndex, type: stackedDimType, isExtraCoord: true, isCalculationCoord: true }); stackedDimCoordIndex++; dimensionInfoList.push({ name: stackedOverDimension, // This dimension contains stack base (generally, 0), so do not set it as // `stackedDimCoordDim` to avoid extent calculation, consider log scale. coordDim: stackedOverDimension, coordDimIndex: stackedDimCoordIndex, type: stackedDimType, isExtraCoord: true, isCalculationCoord: true }); } return { stackedDimension: stackedDimInfo && stackedDimInfo.name, stackedByDimension: stackedByDimInfo && stackedByDimInfo.name, isStackedByIndex: byIndex, stackedOverDimension: stackedOverDimension, stackResultDimension: stackResultDimension }; } /** * @param {module:echarts/data/List} data * @param {string} stackedDim */ function isDimensionStacked(data, stackedDim /*, stackedByDim*/) { // Each single series only maps to one pair of axis. So we do not need to // check stackByDim, whatever stacked by a dimension or stacked by index. return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); // && ( // stackedByDim != null // ? stackedByDim === data.getCalculationInfo('stackedByDimension') // : data.getCalculationInfo('isStackedByIndex') // ); } /** * @param {module:echarts/data/List} data * @param {string} targetDim * @param {string} [stackedByDim] If not input this parameter, check whether * stacked by index. * @return {string} dimension */ function getStackedDimension(data, targetDim) { return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/data/Source|Array} source Or raw data. * @param {module:echarts/model/Series} seriesModel * @param {Object} [opt] * @param {string} [opt.generateCoord] */ function createListFromArray(source, seriesModel, opt) { opt = opt || {}; if (!Source.isInstance(source)) { source = Source.seriesDataToSource(source); } var coordSysName = seriesModel.get('coordinateSystem'); var registeredCoordSys = CoordinateSystemManager.get(coordSysName); var coordSysDefine = getCoordSysDefineBySeries(seriesModel); var coordSysDimDefs; if (coordSysDefine) { coordSysDimDefs = map(coordSysDefine.coordSysDims, function (dim) { var dimInfo = {name: dim}; var axisModel = coordSysDefine.axisMap.get(dim); if (axisModel) { var axisType = axisModel.get('type'); dimInfo.type = getDimensionTypeByAxis(axisType); // dimInfo.stackable = isStackable(axisType); } return dimInfo; }); } if (!coordSysDimDefs) { // Get dimensions from registered coordinate system coordSysDimDefs = (registeredCoordSys && ( registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice() )) || ['x', 'y']; } var dimInfoList = createDimensions(source, { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord }); var firstCategoryDimIndex; var hasNameEncode; coordSysDefine && each$1(dimInfoList, function (dimInfo, dimIndex) { var coordDim = dimInfo.coordDim; var categoryAxisModel = coordSysDefine.categoryAxisMap.get(coordDim); if (categoryAxisModel) { if (firstCategoryDimIndex == null) { firstCategoryDimIndex = dimIndex; } dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta(); } if (dimInfo.otherDims.itemName != null) { hasNameEncode = true; } }); if (!hasNameEncode && firstCategoryDimIndex != null) { dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0; } var stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); var list = new List(dimInfoList, seriesModel); list.setCalculationInfo(stackCalculationInfo); var dimValueGetter = (firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source)) ? function (itemOpt, dimName, dataIndex, dimIndex) { // Use dataIndex as ordinal value in categoryAxis return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); } : null; list.hasItemOption = false; list.initData(source, null, dimValueGetter); return list; } function isNeedCompleteOrdinalData(source) { if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) { var sampleItem = firstDataNotNull(source.data || []); return sampleItem != null && !isArray(getDataItemValue(sampleItem)); } } function firstDataNotNull(data) { var i = 0; while (i < data.length && data[i] == null) { i++; } return data[i]; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * // Scale class management * @module echarts/scale/Scale */ /** * @param {Object} [setting] */ function Scale(setting) { this._setting = setting || {}; /** * Extent * @type {Array.} * @protected */ this._extent = [Infinity, -Infinity]; /** * Step is calculated in adjustExtent * @type {Array.} * @protected */ this._interval = 0; this.init && this.init.apply(this, arguments); } /** * Parse input val to valid inner number. * @param {*} val * @return {number} */ Scale.prototype.parse = function (val) { // Notice: This would be a trap here, If the implementation // of this method depends on extent, and this method is used // before extent set (like in dataZoom), it would be wrong. // Nevertheless, parse does not depend on extent generally. return val; }; Scale.prototype.getSetting = function (name) { return this._setting[name]; }; Scale.prototype.contain = function (val) { var extent = this._extent; return val >= extent[0] && val <= extent[1]; }; /** * Normalize value to linear [0, 1], return 0.5 if extent span is 0 * @param {number} val * @return {number} */ Scale.prototype.normalize = function (val) { var extent = this._extent; if (extent[1] === extent[0]) { return 0.5; } return (val - extent[0]) / (extent[1] - extent[0]); }; /** * Scale normalized value * @param {number} val * @return {number} */ Scale.prototype.scale = function (val) { var extent = this._extent; return val * (extent[1] - extent[0]) + extent[0]; }; /** * Set extent from data * @param {Array.} other */ Scale.prototype.unionExtent = function (other) { var extent = this._extent; other[0] < extent[0] && (extent[0] = other[0]); other[1] > extent[1] && (extent[1] = other[1]); // not setExtent because in log axis it may transformed to power // this.setExtent(extent[0], extent[1]); }; /** * Set extent from data * @param {module:echarts/data/List} data * @param {string} dim */ Scale.prototype.unionExtentFromData = function (data, dim) { this.unionExtent(data.getApproximateExtent(dim)); }; /** * Get extent * @return {Array.} */ Scale.prototype.getExtent = function () { return this._extent.slice(); }; /** * Set extent * @param {number} start * @param {number} end */ Scale.prototype.setExtent = function (start, end) { var thisExtent = this._extent; if (!isNaN(start)) { thisExtent[0] = start; } if (!isNaN(end)) { thisExtent[1] = end; } }; /** * When axis extent depends on data and no data exists, * axis ticks should not be drawn, which is named 'blank'. */ Scale.prototype.isBlank = function () { return this._isBlank; }, /** * When axis extent depends on data and no data exists, * axis ticks should not be drawn, which is named 'blank'. */ Scale.prototype.setBlank = function (isBlank) { this._isBlank = isBlank; }; /** * @abstract * @param {*} tick * @return {string} label of the tick. */ Scale.prototype.getLabel = null; enableClassExtend(Scale); enableClassManagement(Scale, { registerWhenExtend: true }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @constructor * @param {Object} [opt] * @param {Object} [opt.categories=[]] * @param {Object} [opt.needCollect=false] * @param {Object} [opt.deduplication=false] */ function OrdinalMeta(opt) { /** * @readOnly * @type {Array.} */ this.categories = opt.categories || []; /** * @private * @type {boolean} */ this._needCollect = opt.needCollect; /** * @private * @type {boolean} */ this._deduplication = opt.deduplication; /** * @private * @type {boolean} */ this._map; } /** * @param {module:echarts/model/Model} axisModel * @return {module:echarts/data/OrdinalMeta} */ OrdinalMeta.createByAxisModel = function (axisModel) { var option = axisModel.option; var data = option.data; var categories = data && map(data, getName); return new OrdinalMeta({ categories: categories, needCollect: !categories, // deduplication is default in axis. deduplication: option.dedplication !== false }); }; var proto$1 = OrdinalMeta.prototype; /** * @param {string} category * @return {number} ordinal */ proto$1.getOrdinal = function (category) { return getOrCreateMap(this).get(category); }; /** * @param {*} category * @return {number} The ordinal. If not found, return NaN. */ proto$1.parseAndCollect = function (category) { var index; var needCollect = this._needCollect; // The value of category dim can be the index of the given category set. // This feature is only supported when !needCollect, because we should // consider a common case: a value is 2017, which is a number but is // expected to be tread as a category. This case usually happen in dataset, // where it happent to be no need of the index feature. if (typeof category !== 'string' && !needCollect) { return category; } // Optimize for the scenario: // category is ['2012-01-01', '2012-01-02', ...], where the input // data has been ensured not duplicate and is large data. // Notice, if a dataset dimension provide categroies, usually echarts // should remove duplication except user tell echarts dont do that // (set axis.deduplication = false), because echarts do not know whether // the values in the category dimension has duplication (consider the // parallel-aqi example) if (needCollect && !this._deduplication) { index = this.categories.length; this.categories[index] = category; return index; } var map$$1 = getOrCreateMap(this); index = map$$1.get(category); if (index == null) { if (needCollect) { index = this.categories.length; this.categories[index] = category; map$$1.set(category, index); } else { index = NaN; } } return index; }; // Consider big data, do not create map until needed. function getOrCreateMap(ordinalMeta) { return ordinalMeta._map || ( ordinalMeta._map = createHashMap(ordinalMeta.categories) ); } function getName(obj) { if (isObject$1(obj) && obj.value != null) { return obj.value; } else { return obj + ''; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Linear continuous scale * @module echarts/coord/scale/Ordinal * * http://en.wikipedia.org/wiki/Level_of_measurement */ // FIXME only one data var scaleProto = Scale.prototype; var OrdinalScale = Scale.extend({ type: 'ordinal', /** * @param {module:echarts/data/OrdianlMeta|Array.} ordinalMeta */ init: function (ordinalMeta, extent) { // Caution: Should not use instanceof, consider ec-extensions using // import approach to get OrdinalMeta class. if (!ordinalMeta || isArray(ordinalMeta)) { ordinalMeta = new OrdinalMeta({categories: ordinalMeta}); } this._ordinalMeta = ordinalMeta; this._extent = extent || [0, ordinalMeta.categories.length - 1]; }, parse: function (val) { return typeof val === 'string' ? this._ordinalMeta.getOrdinal(val) // val might be float. : Math.round(val); }, contain: function (rank) { rank = this.parse(rank); return scaleProto.contain.call(this, rank) && this._ordinalMeta.categories[rank] != null; }, /** * Normalize given rank or name to linear [0, 1] * @param {number|string} [val] * @return {number} */ normalize: function (val) { return scaleProto.normalize.call(this, this.parse(val)); }, scale: function (val) { return Math.round(scaleProto.scale.call(this, val)); }, /** * @return {Array} */ getTicks: function () { var ticks = []; var extent = this._extent; var rank = extent[0]; while (rank <= extent[1]) { ticks.push(rank); rank++; } return ticks; }, /** * Get item on rank n * @param {number} n * @return {string} */ getLabel: function (n) { if (!this.isBlank()) { // Note that if no data, ordinalMeta.categories is an empty array. return this._ordinalMeta.categories[n]; } }, /** * @return {number} */ count: function () { return this._extent[1] - this._extent[0] + 1; }, /** * @override */ unionExtentFromData: function (data, dim) { this.unionExtent(data.getApproximateExtent(dim)); }, getOrdinalMeta: function () { return this._ordinalMeta; }, niceTicks: noop, niceExtent: noop }); /** * @return {module:echarts/scale/Time} */ OrdinalScale.create = function () { return new OrdinalScale(); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * For testable. */ var roundNumber$1 = round$1; /** * @param {Array.} extent Both extent[0] and extent[1] should be valid number. * Should be extent[0] < extent[1]. * @param {number} splitNumber splitNumber should be >= 1. * @param {number} [minInterval] * @param {number} [maxInterval] * @return {Object} {interval, intervalPrecision, niceTickExtent} */ function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) { var result = {}; var span = extent[1] - extent[0]; var interval = result.interval = nice(span / splitNumber, true); if (minInterval != null && interval < minInterval) { interval = result.interval = minInterval; } if (maxInterval != null && interval > maxInterval) { interval = result.interval = maxInterval; } // Tow more digital for tick. var precision = result.intervalPrecision = getIntervalPrecision(interval); // Niced extent inside original extent var niceTickExtent = result.niceTickExtent = [ roundNumber$1(Math.ceil(extent[0] / interval) * interval, precision), roundNumber$1(Math.floor(extent[1] / interval) * interval, precision) ]; fixExtent(niceTickExtent, extent); return result; } /** * @param {number} interval * @return {number} interval precision */ function getIntervalPrecision(interval) { // Tow more digital for tick. return getPrecisionSafe(interval) + 2; } function clamp(niceTickExtent, idx, extent) { niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]); } // In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent. function fixExtent(niceTickExtent, extent) { !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]); !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]); clamp(niceTickExtent, 0, extent); clamp(niceTickExtent, 1, extent); if (niceTickExtent[0] > niceTickExtent[1]) { niceTickExtent[0] = niceTickExtent[1]; } } function intervalScaleGetTicks(interval, extent, niceTickExtent, intervalPrecision) { var ticks = []; // If interval is 0, return []; if (!interval) { return ticks; } // Consider this case: using dataZoom toolbox, zoom and zoom. var safeLimit = 10000; if (extent[0] < niceTickExtent[0]) { ticks.push(extent[0]); } var tick = niceTickExtent[0]; while (tick <= niceTickExtent[1]) { ticks.push(tick); // Avoid rounding error tick = roundNumber$1(tick + interval, intervalPrecision); if (tick === ticks[ticks.length - 1]) { // Consider out of safe float point, e.g., // -3711126.9907707 + 2e-10 === -3711126.9907707 break; } if (ticks.length > safeLimit) { return []; } } // Consider this case: the last item of ticks is smaller // than niceTickExtent[1] and niceTickExtent[1] === extent[1]. if (extent[1] > (ticks.length ? ticks[ticks.length - 1] : niceTickExtent[1])) { ticks.push(extent[1]); } return ticks; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Interval scale * @module echarts/scale/Interval */ var roundNumber = round$1; /** * @alias module:echarts/coord/scale/Interval * @constructor */ var IntervalScale = Scale.extend({ type: 'interval', _interval: 0, _intervalPrecision: 2, setExtent: function (start, end) { var thisExtent = this._extent; //start,end may be a Number like '25',so... if (!isNaN(start)) { thisExtent[0] = parseFloat(start); } if (!isNaN(end)) { thisExtent[1] = parseFloat(end); } }, unionExtent: function (other) { var extent = this._extent; other[0] < extent[0] && (extent[0] = other[0]); other[1] > extent[1] && (extent[1] = other[1]); // unionExtent may called by it's sub classes IntervalScale.prototype.setExtent.call(this, extent[0], extent[1]); }, /** * Get interval */ getInterval: function () { return this._interval; }, /** * Set interval */ setInterval: function (interval) { this._interval = interval; // Dropped auto calculated niceExtent and use user setted extent // We assume user wan't to set both interval, min, max to get a better result this._niceExtent = this._extent.slice(); this._intervalPrecision = getIntervalPrecision(interval); }, /** * @return {Array.} */ getTicks: function () { return intervalScaleGetTicks( this._interval, this._extent, this._niceExtent, this._intervalPrecision ); }, /** * @param {number} data * @param {Object} [opt] * @param {number|string} [opt.precision] If 'auto', use nice presision. * @param {boolean} [opt.pad] returns 1.50 but not 1.5 if precision is 2. * @return {string} */ getLabel: function (data, opt) { if (data == null) { return ''; } var precision = opt && opt.precision; if (precision == null) { precision = getPrecisionSafe(data) || 0; } else if (precision === 'auto') { // Should be more precise then tick. precision = this._intervalPrecision; } // (1) If `precision` is set, 12.005 should be display as '12.00500'. // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'. data = roundNumber(data, precision, true); return addCommas(data); }, /** * Update interval and extent of intervals for nice ticks * * @param {number} [splitNumber = 5] Desired number of ticks * @param {number} [minInterval] * @param {number} [maxInterval] */ niceTicks: function (splitNumber, minInterval, maxInterval) { splitNumber = splitNumber || 5; var extent = this._extent; var span = extent[1] - extent[0]; if (!isFinite(span)) { return; } // User may set axis min 0 and data are all negative // FIXME If it needs to reverse ? if (span < 0) { span = -span; extent.reverse(); } var result = intervalScaleNiceTicks( extent, splitNumber, minInterval, maxInterval ); this._intervalPrecision = result.intervalPrecision; this._interval = result.interval; this._niceExtent = result.niceTickExtent; }, /** * Nice extent. * @param {Object} opt * @param {number} [opt.splitNumber = 5] Given approx tick number * @param {boolean} [opt.fixMin=false] * @param {boolean} [opt.fixMax=false] * @param {boolean} [opt.minInterval] * @param {boolean} [opt.maxInterval] */ niceExtent: function (opt) { var extent = this._extent; // If extent start and end are same, expand them if (extent[0] === extent[1]) { if (extent[0] !== 0) { // Expand extent var expandSize = extent[0]; // In the fowllowing case // Axis has been fixed max 100 // Plus data are all 100 and axis extent are [100, 100]. // Extend to the both side will cause expanded max is larger than fixed max. // So only expand to the smaller side. if (!opt.fixMax) { extent[1] += expandSize / 2; extent[0] -= expandSize / 2; } else { extent[0] -= expandSize / 2; } } else { extent[1] = 1; } } var span = extent[1] - extent[0]; // If there are no data and extent are [Infinity, -Infinity] if (!isFinite(span)) { extent[0] = 0; extent[1] = 1; } this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); // var extent = this._extent; var interval = this._interval; if (!opt.fixMin) { extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval); } if (!opt.fixMax) { extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval); } } }); /** * @return {module:echarts/scale/Time} */ IntervalScale.create = function () { return new IntervalScale(); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var STACK_PREFIX = '__ec_stack_'; var LARGE_BAR_MIN_WIDTH = 0.5; var LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array; function getSeriesStackId(seriesModel) { return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex; } function getAxisKey(axis) { return axis.dim + axis.index; } /** * @param {Object} opt * @param {module:echarts/coord/Axis} opt.axis Only support category axis currently. * @param {number} opt.count Positive interger. * @param {number} [opt.barWidth] * @param {number} [opt.barMaxWidth] * @param {number} [opt.barGap] * @param {number} [opt.barCategoryGap] * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined. */ function getLayoutOnAxis(opt) { var params = []; var baseAxis = opt.axis; var axisKey = 'axis0'; if (baseAxis.type !== 'category') { return; } var bandWidth = baseAxis.getBandWidth(); for (var i = 0; i < opt.count || 0; i++) { params.push(defaults({ bandWidth: bandWidth, axisKey: axisKey, stackId: STACK_PREFIX + i }, opt)); } var widthAndOffsets = doCalBarWidthAndOffset(params); var result = []; for (var i = 0; i < opt.count; i++) { var item = widthAndOffsets[axisKey][STACK_PREFIX + i]; item.offsetCenter = item.offset + item.width / 2; result.push(item); } return result; } function prepareLayoutBarSeries(seriesType, ecModel) { var seriesModels = []; ecModel.eachSeriesByType(seriesType, function (seriesModel) { // Check series coordinate, do layout for cartesian2d only if (isOnCartesian(seriesModel) && !isInLargeMode(seriesModel)) { seriesModels.push(seriesModel); } }); return seriesModels; } function makeColumnLayout(barSeries) { var seriesInfoList = []; each$1(barSeries, function (seriesModel) { var data = seriesModel.getData(); var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var axisExtent = baseAxis.getExtent(); var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count()); var barWidth = parsePercent$1( seriesModel.get('barWidth'), bandWidth ); var barMaxWidth = parsePercent$1( seriesModel.get('barMaxWidth'), bandWidth ); var barGap = seriesModel.get('barGap'); var barCategoryGap = seriesModel.get('barCategoryGap'); seriesInfoList.push({ bandWidth: bandWidth, barWidth: barWidth, barMaxWidth: barMaxWidth, barGap: barGap, barCategoryGap: barCategoryGap, axisKey: getAxisKey(baseAxis), stackId: getSeriesStackId(seriesModel) }); }); return doCalBarWidthAndOffset(seriesInfoList); } function doCalBarWidthAndOffset(seriesInfoList) { // Columns info on each category axis. Key is cartesian name var columnsMap = {}; each$1(seriesInfoList, function (seriesInfo, idx) { var axisKey = seriesInfo.axisKey; var bandWidth = seriesInfo.bandWidth; var columnsOnAxis = columnsMap[axisKey] || { bandWidth: bandWidth, remainedWidth: bandWidth, autoWidthCount: 0, categoryGap: '20%', gap: '30%', stacks: {} }; var stacks = columnsOnAxis.stacks; columnsMap[axisKey] = columnsOnAxis; var stackId = seriesInfo.stackId; if (!stacks[stackId]) { columnsOnAxis.autoWidthCount++; } stacks[stackId] = stacks[stackId] || { width: 0, maxWidth: 0 }; // Caution: In a single coordinate system, these barGrid attributes // will be shared by series. Consider that they have default values, // only the attributes set on the last series will work. // Do not change this fact unless there will be a break change. // TODO var barWidth = seriesInfo.barWidth; if (barWidth && !stacks[stackId].width) { // See #6312, do not restrict width. stacks[stackId].width = barWidth; barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth); columnsOnAxis.remainedWidth -= barWidth; } var barMaxWidth = seriesInfo.barMaxWidth; barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth); var barGap = seriesInfo.barGap; (barGap != null) && (columnsOnAxis.gap = barGap); var barCategoryGap = seriesInfo.barCategoryGap; (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap); }); var result = {}; each$1(columnsMap, function (columnsOnAxis, coordSysName) { result[coordSysName] = {}; var stacks = columnsOnAxis.stacks; var bandWidth = columnsOnAxis.bandWidth; var categoryGap = parsePercent$1(columnsOnAxis.categoryGap, bandWidth); var barGapPercent = parsePercent$1(columnsOnAxis.gap, 1); var remainedWidth = columnsOnAxis.remainedWidth; var autoWidthCount = columnsOnAxis.autoWidthCount; var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth each$1(stacks, function (column, stack) { var maxWidth = column.maxWidth; if (maxWidth && maxWidth < autoWidth) { maxWidth = Math.min(maxWidth, remainedWidth); if (column.width) { maxWidth = Math.min(maxWidth, column.width); } remainedWidth -= maxWidth; column.width = maxWidth; autoWidthCount--; } }); // Recalculate width again autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); var widthSum = 0; var lastColumn; each$1(stacks, function (column, idx) { if (!column.width) { column.width = autoWidth; } lastColumn = column; widthSum += column.width * (1 + barGapPercent); }); if (lastColumn) { widthSum -= lastColumn.width * barGapPercent; } var offset = -widthSum / 2; each$1(stacks, function (column, stackId) { result[coordSysName][stackId] = result[coordSysName][stackId] || { offset: offset, width: column.width }; offset += column.width * (1 + barGapPercent); }); }); return result; } /** * @param {Object} barWidthAndOffset The result of makeColumnLayout * @param {module:echarts/coord/Axis} axis * @param {module:echarts/model/Series} [seriesModel] If not provided, return all. * @return {Object} {stackId: {offset, width}} or {offset, width} if seriesModel provided. */ function retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) { if (barWidthAndOffset && axis) { var result = barWidthAndOffset[getAxisKey(axis)]; if (result != null && seriesModel != null) { result = result[getSeriesStackId(seriesModel)]; } return result; } } /** * @param {string} seriesType * @param {module:echarts/model/Global} ecModel */ function layout(seriesType, ecModel) { var seriesModels = prepareLayoutBarSeries(seriesType, ecModel); var barWidthAndOffset = makeColumnLayout(seriesModels); var lastStackCoords = {}; each$1(seriesModels, function (seriesModel) { var data = seriesModel.getData(); var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var stackId = getSeriesStackId(seriesModel); var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId]; var columnOffset = columnLayoutInfo.offset; var columnWidth = columnLayoutInfo.width; var valueAxis = cartesian.getOtherAxis(baseAxis); var barMinHeight = seriesModel.get('barMinHeight') || 0; lastStackCoords[stackId] = lastStackCoords[stackId] || []; data.setLayout({ offset: columnOffset, size: columnWidth }); var valueDim = data.mapDimension(valueAxis.dim); var baseDim = data.mapDimension(baseAxis.dim); var stacked = isDimensionStacked(data, valueDim /*, baseDim*/); var isValueAxisH = valueAxis.isHorizontal(); var valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked); for (var idx = 0, len = data.count(); idx < len; idx++) { var value = data.get(valueDim, idx); var baseValue = data.get(baseDim, idx); // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy". if (isNaN(value) || isNaN(baseValue)) { continue; } var sign = value >= 0 ? 'p' : 'n'; var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in // stackResultDimension directly. if (stacked) { // Only ordinal axis can be stacked. if (!lastStackCoords[stackId][baseValue]) { lastStackCoords[stackId][baseValue] = { p: valueAxisStart, // Positive stack n: valueAxisStart // Negative stack }; } // Should also consider #4243 baseCoord = lastStackCoords[stackId][baseValue][sign]; } var x; var y; var width; var height; if (isValueAxisH) { var coord = cartesian.dataToPoint([value, baseValue]); x = baseCoord; y = coord[1] + columnOffset; width = coord[0] - valueAxisStart; height = columnWidth; if (Math.abs(width) < barMinHeight) { width = (width < 0 ? -1 : 1) * barMinHeight; } stacked && (lastStackCoords[stackId][baseValue][sign] += width); } else { var coord = cartesian.dataToPoint([baseValue, value]); x = coord[0] + columnOffset; y = baseCoord; width = columnWidth; height = coord[1] - valueAxisStart; if (Math.abs(height) < barMinHeight) { // Include zero to has a positive bar height = (height <= 0 ? -1 : 1) * barMinHeight; } stacked && (lastStackCoords[stackId][baseValue][sign] += height); } data.setItemLayout(idx, { x: x, y: y, width: width, height: height }); } }, this); } // TODO: Do not support stack in large mode yet. var largeLayout = { seriesType: 'bar', plan: createRenderPlanner(), reset: function (seriesModel) { if (!isOnCartesian(seriesModel) || !isInLargeMode(seriesModel)) { return; } var data = seriesModel.getData(); var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var valueAxis = cartesian.getOtherAxis(baseAxis); var valueDim = data.mapDimension(valueAxis.dim); var baseDim = data.mapDimension(baseAxis.dim); var valueAxisHorizontal = valueAxis.isHorizontal(); var valueDimIdx = valueAxisHorizontal ? 0 : 1; var barWidth = retrieveColumnLayout( makeColumnLayout([seriesModel]), baseAxis, seriesModel ).width; if (!(barWidth > LARGE_BAR_MIN_WIDTH)) { // jshint ignore:line barWidth = LARGE_BAR_MIN_WIDTH; } return {progress: progress}; function progress(params, data) { var count = params.count; var largePoints = new LargeArr(count * 2); var largeDataIndices = new LargeArr(count); var dataIndex; var coord = []; var valuePair = []; var pointsOffset = 0; var idxOffset = 0; while ((dataIndex = params.next()) != null) { valuePair[valueDimIdx] = data.get(valueDim, dataIndex); valuePair[1 - valueDimIdx] = data.get(baseDim, dataIndex); coord = cartesian.dataToPoint(valuePair, null, coord); // Data index might not be in order, depends on `progressiveChunkMode`. largePoints[pointsOffset++] = coord[0]; largePoints[pointsOffset++] = coord[1]; largeDataIndices[idxOffset++] = dataIndex; } data.setLayout({ largePoints: largePoints, largeDataIndices: largeDataIndices, barWidth: barWidth, valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false), valueAxisHorizontal: valueAxisHorizontal }); } } }; function isOnCartesian(seriesModel) { return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d'; } function isInLargeMode(seriesModel) { return seriesModel.pipelineContext && seriesModel.pipelineContext.large; } // See cases in `test/bar-start.html` and `#7412`, `#8747`. function getValueAxisStart(baseAxis, valueAxis, stacked) { var extent = valueAxis.getGlobalExtent(); var min; var max; if (extent[0] > extent[1]) { min = extent[1]; max = extent[0]; } else { min = extent[0]; max = extent[1]; } var valueStart = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0)); valueStart < min && (valueStart = min); valueStart > max && (valueStart = max); return valueStart; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embeded for some of the code in this file: * The "scaleLevels" was originally copied from "d3.js" with some * modifications made for this project. * (See more details in the comment on the definition of "scaleLevels" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ // [About UTC and local time zone]: // In most cases, `number.parseDate` will treat input data string as local time // (except time zone is specified in time string). And `format.formateTime` returns // local time by default. option.useUTC is false by default. This design have // concidered these common case: // (1) Time that is persistent in server is in UTC, but it is needed to be diplayed // in local time by default. // (2) By default, the input data string (e.g., '2011-01-02') should be displayed // as its original time, without any time difference. var intervalScaleProto = IntervalScale.prototype; var mathCeil = Math.ceil; var mathFloor = Math.floor; var ONE_SECOND = 1000; var ONE_MINUTE = ONE_SECOND * 60; var ONE_HOUR = ONE_MINUTE * 60; var ONE_DAY = ONE_HOUR * 24; // FIXME 公用? var bisect = function (a, x, lo, hi) { while (lo < hi) { var mid = lo + hi >>> 1; if (a[mid][1] < x) { lo = mid + 1; } else { hi = mid; } } return lo; }; /** * @alias module:echarts/coord/scale/Time * @constructor */ var TimeScale = IntervalScale.extend({ type: 'time', /** * @override */ getLabel: function (val) { var stepLvl = this._stepLvl; var date = new Date(val); return formatTime(stepLvl[0], date, this.getSetting('useUTC')); }, /** * @override */ niceExtent: function (opt) { var extent = this._extent; // If extent start and end are same, expand them if (extent[0] === extent[1]) { // Expand extent extent[0] -= ONE_DAY; extent[1] += ONE_DAY; } // If there are no data and extent are [Infinity, -Infinity] if (extent[1] === -Infinity && extent[0] === Infinity) { var d = new Date(); extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate()); extent[0] = extent[1] - ONE_DAY; } this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); // var extent = this._extent; var interval = this._interval; if (!opt.fixMin) { extent[0] = round$1(mathFloor(extent[0] / interval) * interval); } if (!opt.fixMax) { extent[1] = round$1(mathCeil(extent[1] / interval) * interval); } }, /** * @override */ niceTicks: function (approxTickNum, minInterval, maxInterval) { approxTickNum = approxTickNum || 10; var extent = this._extent; var span = extent[1] - extent[0]; var approxInterval = span / approxTickNum; if (minInterval != null && approxInterval < minInterval) { approxInterval = minInterval; } if (maxInterval != null && approxInterval > maxInterval) { approxInterval = maxInterval; } var scaleLevelsLen = scaleLevels.length; var idx = bisect(scaleLevels, approxInterval, 0, scaleLevelsLen); var level = scaleLevels[Math.min(idx, scaleLevelsLen - 1)]; var interval = level[1]; // Same with interval scale if span is much larger than 1 year if (level[0] === 'year') { var yearSpan = span / interval; // From "Nice Numbers for Graph Labels" of Graphic Gems // var niceYearSpan = numberUtil.nice(yearSpan, false); var yearStep = nice(yearSpan / approxTickNum, true); interval *= yearStep; } var timezoneOffset = this.getSetting('useUTC') ? 0 : (new Date(+extent[0] || +extent[1])).getTimezoneOffset() * 60 * 1000; var niceExtent = [ Math.round(mathCeil((extent[0] - timezoneOffset) / interval) * interval + timezoneOffset), Math.round(mathFloor((extent[1] - timezoneOffset) / interval) * interval + timezoneOffset) ]; fixExtent(niceExtent, extent); this._stepLvl = level; // Interval will be used in getTicks this._interval = interval; this._niceExtent = niceExtent; }, parse: function (val) { // val might be float. return +parseDate(val); } }); each$1(['contain', 'normalize'], function (methodName) { TimeScale.prototype[methodName] = function (val) { return intervalScaleProto[methodName].call(this, this.parse(val)); }; }); /** * This implementation was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. */ var scaleLevels = [ // Format interval ['hh:mm:ss', ONE_SECOND], // 1s ['hh:mm:ss', ONE_SECOND * 5], // 5s ['hh:mm:ss', ONE_SECOND * 10], // 10s ['hh:mm:ss', ONE_SECOND * 15], // 15s ['hh:mm:ss', ONE_SECOND * 30], // 30s ['hh:mm\nMM-dd', ONE_MINUTE], // 1m ['hh:mm\nMM-dd', ONE_MINUTE * 5], // 5m ['hh:mm\nMM-dd', ONE_MINUTE * 10], // 10m ['hh:mm\nMM-dd', ONE_MINUTE * 15], // 15m ['hh:mm\nMM-dd', ONE_MINUTE * 30], // 30m ['hh:mm\nMM-dd', ONE_HOUR], // 1h ['hh:mm\nMM-dd', ONE_HOUR * 2], // 2h ['hh:mm\nMM-dd', ONE_HOUR * 6], // 6h ['hh:mm\nMM-dd', ONE_HOUR * 12], // 12h ['MM-dd\nyyyy', ONE_DAY], // 1d ['MM-dd\nyyyy', ONE_DAY * 2], // 2d ['MM-dd\nyyyy', ONE_DAY * 3], // 3d ['MM-dd\nyyyy', ONE_DAY * 4], // 4d ['MM-dd\nyyyy', ONE_DAY * 5], // 5d ['MM-dd\nyyyy', ONE_DAY * 6], // 6d ['week', ONE_DAY * 7], // 7d ['MM-dd\nyyyy', ONE_DAY * 10], // 10d ['week', ONE_DAY * 14], // 2w ['week', ONE_DAY * 21], // 3w ['month', ONE_DAY * 31], // 1M ['week', ONE_DAY * 42], // 6w ['month', ONE_DAY * 62], // 2M ['week', ONE_DAY * 70], // 10w ['quarter', ONE_DAY * 95], // 3M ['month', ONE_DAY * 31 * 4], // 4M ['month', ONE_DAY * 31 * 5], // 5M ['half-year', ONE_DAY * 380 / 2], // 6M ['month', ONE_DAY * 31 * 8], // 8M ['month', ONE_DAY * 31 * 10], // 10M ['year', ONE_DAY * 380] // 1Y ]; /** * @param {module:echarts/model/Model} * @return {module:echarts/scale/Time} */ TimeScale.create = function (model) { return new TimeScale({useUTC: model.ecModel.get('useUTC')}); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Log scale * @module echarts/scale/Log */ // Use some method of IntervalScale var scaleProto$1 = Scale.prototype; var intervalScaleProto$1 = IntervalScale.prototype; var getPrecisionSafe$1 = getPrecisionSafe; var roundingErrorFix = round$1; var mathFloor$1 = Math.floor; var mathCeil$1 = Math.ceil; var mathPow$1 = Math.pow; var mathLog = Math.log; var LogScale = Scale.extend({ type: 'log', base: 10, $constructor: function () { Scale.apply(this, arguments); this._originalScale = new IntervalScale(); }, /** * @return {Array.} */ getTicks: function () { var originalScale = this._originalScale; var extent = this._extent; var originalExtent = originalScale.getExtent(); return map(intervalScaleProto$1.getTicks.call(this), function (val) { var powVal = round$1(mathPow$1(this.base, val)); // Fix #4158 powVal = (val === extent[0] && originalScale.__fixMin) ? fixRoundingError(powVal, originalExtent[0]) : powVal; powVal = (val === extent[1] && originalScale.__fixMax) ? fixRoundingError(powVal, originalExtent[1]) : powVal; return powVal; }, this); }, /** * @param {number} val * @return {string} */ getLabel: intervalScaleProto$1.getLabel, /** * @param {number} val * @return {number} */ scale: function (val) { val = scaleProto$1.scale.call(this, val); return mathPow$1(this.base, val); }, /** * @param {number} start * @param {number} end */ setExtent: function (start, end) { var base = this.base; start = mathLog(start) / mathLog(base); end = mathLog(end) / mathLog(base); intervalScaleProto$1.setExtent.call(this, start, end); }, /** * @return {number} end */ getExtent: function () { var base = this.base; var extent = scaleProto$1.getExtent.call(this); extent[0] = mathPow$1(base, extent[0]); extent[1] = mathPow$1(base, extent[1]); // Fix #4158 var originalScale = this._originalScale; var originalExtent = originalScale.getExtent(); originalScale.__fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0])); originalScale.__fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1])); return extent; }, /** * @param {Array.} extent */ unionExtent: function (extent) { this._originalScale.unionExtent(extent); var base = this.base; extent[0] = mathLog(extent[0]) / mathLog(base); extent[1] = mathLog(extent[1]) / mathLog(base); scaleProto$1.unionExtent.call(this, extent); }, /** * @override */ unionExtentFromData: function (data, dim) { // TODO // filter value that <= 0 this.unionExtent(data.getApproximateExtent(dim)); }, /** * Update interval and extent of intervals for nice ticks * @param {number} [approxTickNum = 10] Given approx tick number */ niceTicks: function (approxTickNum) { approxTickNum = approxTickNum || 10; var extent = this._extent; var span = extent[1] - extent[0]; if (span === Infinity || span <= 0) { return; } var interval = quantity(span); var err = approxTickNum / span * interval; // Filter ticks to get closer to the desired count. if (err <= 0.5) { interval *= 10; } // Interval should be integer while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) { interval *= 10; } var niceExtent = [ round$1(mathCeil$1(extent[0] / interval) * interval), round$1(mathFloor$1(extent[1] / interval) * interval) ]; this._interval = interval; this._niceExtent = niceExtent; }, /** * Nice extent. * @override */ niceExtent: function (opt) { intervalScaleProto$1.niceExtent.call(this, opt); var originalScale = this._originalScale; originalScale.__fixMin = opt.fixMin; originalScale.__fixMax = opt.fixMax; } }); each$1(['contain', 'normalize'], function (methodName) { LogScale.prototype[methodName] = function (val) { val = mathLog(val) / mathLog(this.base); return scaleProto$1[methodName].call(this, val); }; }); LogScale.create = function () { return new LogScale(); }; function fixRoundingError(val, originalVal) { return roundingErrorFix(val, getPrecisionSafe$1(originalVal)); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Get axis scale extent before niced. * Item of returned array can only be number (including Infinity and NaN). */ function getScaleExtent(scale, model) { var scaleType = scale.type; var min = model.getMin(); var max = model.getMax(); var fixMin = min != null; var fixMax = max != null; var originalExtent = scale.getExtent(); var axisDataLen; var boundaryGap; var span; if (scaleType === 'ordinal') { axisDataLen = model.getCategories().length; } else { boundaryGap = model.get('boundaryGap'); if (!isArray(boundaryGap)) { boundaryGap = [boundaryGap || 0, boundaryGap || 0]; } if (typeof boundaryGap[0] === 'boolean') { if (__DEV__) { console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., "20%". Currently, ' + 'boundaryGap is set to be 0.'); } boundaryGap = [0, 0]; } boundaryGap[0] = parsePercent$1(boundaryGap[0], 1); boundaryGap[1] = parsePercent$1(boundaryGap[1], 1); span = (originalExtent[1] - originalExtent[0]) || Math.abs(originalExtent[0]); } // Notice: When min/max is not set (that is, when there are null/undefined, // which is the most common case), these cases should be ensured: // (1) For 'ordinal', show all axis.data. // (2) For others: // + `boundaryGap` is applied (if min/max set, boundaryGap is // disabled). // + If `needCrossZero`, min/max should be zero, otherwise, min/max should // be the result that originalExtent enlarged by boundaryGap. // (3) If no data, it should be ensured that `scale.setBlank` is set. // FIXME // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used? // (2) When `needCrossZero` and all data is positive/negative, should it be ensured // that the results processed by boundaryGap are positive/negative? if (min == null) { min = scaleType === 'ordinal' ? (axisDataLen ? 0 : NaN) : originalExtent[0] - boundaryGap[0] * span; } if (max == null) { max = scaleType === 'ordinal' ? (axisDataLen ? axisDataLen - 1 : NaN) : originalExtent[1] + boundaryGap[1] * span; } if (min === 'dataMin') { min = originalExtent[0]; } else if (typeof min === 'function') { min = min({ min: originalExtent[0], max: originalExtent[1] }); } if (max === 'dataMax') { max = originalExtent[1]; } else if (typeof max === 'function') { max = max({ min: originalExtent[0], max: originalExtent[1] }); } (min == null || !isFinite(min)) && (min = NaN); (max == null || !isFinite(max)) && (max = NaN); scale.setBlank( eqNaN(min) || eqNaN(max) || (scaleType === 'ordinal' && !scale.getOrdinalMeta().categories.length) ); // Evaluate if axis needs cross zero if (model.getNeedCrossZero()) { // Axis is over zero and min is not set if (min > 0 && max > 0 && !fixMin) { min = 0; } // Axis is under zero and max is not set if (min < 0 && max < 0 && !fixMax) { max = 0; } } // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis // is base axis // FIXME // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly. // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent? // Should not depend on series type `bar`? // (3) Fix that might overlap when using dataZoom. // (4) Consider other chart types using `barGrid`? // See #6728, #4862, `test/bar-overflow-time-plot.html` var ecModel = model.ecModel; if (ecModel && (scaleType === 'time' /*|| scaleType === 'interval' */)) { var barSeriesModels = prepareLayoutBarSeries('bar', ecModel); var isBaseAxisAndHasBarSeries; each$1(barSeriesModels, function (seriesModel) { isBaseAxisAndHasBarSeries |= seriesModel.getBaseAxis() === model.axis; }); if (isBaseAxisAndHasBarSeries) { // Calculate placement of bars on axis var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset); min = adjustedScale.min; max = adjustedScale.max; } } return [min, max]; } function adjustScaleForOverflow(min, max, model, barWidthAndOffset) { // Get Axis Length var axisExtent = model.axis.getExtent(); var axisLength = axisExtent[1] - axisExtent[0]; // Get bars on current base axis and calculate min and max overflow var barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis); if (barsOnCurrentAxis === undefined) { return {min: min, max: max}; } var minOverflow = Infinity; each$1(barsOnCurrentAxis, function (item) { minOverflow = Math.min(item.offset, minOverflow); }); var maxOverflow = -Infinity; each$1(barsOnCurrentAxis, function (item) { maxOverflow = Math.max(item.offset + item.width, maxOverflow); }); minOverflow = Math.abs(minOverflow); maxOverflow = Math.abs(maxOverflow); var totalOverFlow = minOverflow + maxOverflow; // Calulate required buffer based on old range and overflow var oldRange = max - min; var oldRangePercentOfNew = (1 - (minOverflow + maxOverflow) / axisLength); var overflowBuffer = ((oldRange / oldRangePercentOfNew) - oldRange); max += overflowBuffer * (maxOverflow / totalOverFlow); min -= overflowBuffer * (minOverflow / totalOverFlow); return {min: min, max: max}; } function niceScaleExtent(scale, model) { var extent = getScaleExtent(scale, model); var fixMin = model.getMin() != null; var fixMax = model.getMax() != null; var splitNumber = model.get('splitNumber'); if (scale.type === 'log') { scale.base = model.get('logBase'); } var scaleType = scale.type; scale.setExtent(extent[0], extent[1]); scale.niceExtent({ splitNumber: splitNumber, fixMin: fixMin, fixMax: fixMax, minInterval: (scaleType === 'interval' || scaleType === 'time') ? model.get('minInterval') : null, maxInterval: (scaleType === 'interval' || scaleType === 'time') ? model.get('maxInterval') : null }); // If some one specified the min, max. And the default calculated interval // is not good enough. He can specify the interval. It is often appeared // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard // to be 60. // FIXME var interval = model.get('interval'); if (interval != null) { scale.setInterval && scale.setInterval(interval); } } /** * @param {module:echarts/model/Model} model * @param {string} [axisType] Default retrieve from model.type * @return {module:echarts/scale/*} */ function createScaleByModel(model, axisType) { axisType = axisType || model.get('type'); if (axisType) { switch (axisType) { // Buildin scale case 'category': return new OrdinalScale( model.getOrdinalMeta ? model.getOrdinalMeta() : model.getCategories(), [Infinity, -Infinity] ); case 'value': return new IntervalScale(); // Extended scale, like time and log default: return (Scale.getClass(axisType) || IntervalScale).create(model); } } } /** * Check if the axis corss 0 */ function ifAxisCrossZero(axis) { var dataExtent = axis.scale.getExtent(); var min = dataExtent[0]; var max = dataExtent[1]; return !((min > 0 && max > 0) || (min < 0 && max < 0)); } /** * @param {module:echarts/coord/Axis} axis * @return {Function} Label formatter function. * param: {number} tickValue, * param: {number} idx, the index in all ticks. * If category axis, this param is not requied. * return: {string} label string. */ function makeLabelFormatter(axis) { var labelFormatter = axis.getLabelModel().get('formatter'); var categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null; if (typeof labelFormatter === 'string') { labelFormatter = (function (tpl) { return function (val) { // For category axis, get raw value; for numeric axis, // get foramtted label like '1,333,444'. val = axis.scale.getLabel(val); return tpl.replace('{value}', val != null ? val : ''); }; })(labelFormatter); // Consider empty array return labelFormatter; } else if (typeof labelFormatter === 'function') { return function (tickValue, idx) { // The original intention of `idx` is "the index of the tick in all ticks". // But the previous implementation of category axis do not consider the // `axisLabel.interval`, which cause that, for example, the `interval` is // `1`, then the ticks "name5", "name7", "name9" are displayed, where the // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep // the definition here for back compatibility. if (categoryTickStart != null) { idx = tickValue - categoryTickStart; } return labelFormatter(getAxisRawValue(axis, tickValue), idx); }; } else { return function (tick) { return axis.scale.getLabel(tick); }; } } function getAxisRawValue(axis, value) { // In category axis with data zoom, tick is not the original // index of axis.data. So tick should not be exposed to user // in category axis. return axis.type === 'category' ? axis.scale.getLabel(value) : value; } /** * @param {module:echarts/coord/Axis} axis * @return {module:zrender/core/BoundingRect} Be null/undefined if no labels. */ function estimateLabelUnionRect(axis) { var axisModel = axis.model; var scale = axis.scale; if (!axisModel.get('axisLabel.show') || scale.isBlank()) { return; } var isCategory = axis.type === 'category'; var realNumberScaleTicks; var tickCount; var categoryScaleExtent = scale.getExtent(); // Optimize for large category data, avoid call `getTicks()`. if (isCategory) { tickCount = scale.count(); } else { realNumberScaleTicks = scale.getTicks(); tickCount = realNumberScaleTicks.length; } var axisLabelModel = axis.getLabelModel(); var labelFormatter = makeLabelFormatter(axis); var rect; var step = 1; // Simple optimization for large amount of labels if (tickCount > 40) { step = Math.ceil(tickCount / 40); } for (var i = 0; i < tickCount; i += step) { var tickValue = realNumberScaleTicks ? realNumberScaleTicks[i] : categoryScaleExtent[0] + i; var label = labelFormatter(tickValue); var unrotatedSingleRect = axisLabelModel.getTextRect(label); var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0); rect ? rect.union(singleRect) : (rect = singleRect); } return rect; } function rotateTextRect(textRect, rotate) { var rotateRadians = rotate * Math.PI / 180; var boundingBox = textRect.plain(); var beforeWidth = boundingBox.width; var beforeHeight = boundingBox.height; var afterWidth = beforeWidth * Math.cos(rotateRadians) + beforeHeight * Math.sin(rotateRadians); var afterHeight = beforeWidth * Math.sin(rotateRadians) + beforeHeight * Math.cos(rotateRadians); var rotatedRect = new BoundingRect(boundingBox.x, boundingBox.y, afterWidth, afterHeight); return rotatedRect; } /** * @param {module:echarts/src/model/Model} model axisLabelModel or axisTickModel * @return {number|String} Can be null|'auto'|number|function */ function getOptionCategoryInterval(model) { var interval = model.get('interval'); return interval == null ? 'auto' : interval; } /** * Set `categoryInterval` as 0 implicitly indicates that * show all labels reguardless of overlap. * @param {Object} axis axisModel.axis * @return {boolean} */ function shouldShowAllLabels(axis) { return axis.type === 'category' && getOptionCategoryInterval(axis.getLabelModel()) === 0; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import * as axisHelper from './axisHelper'; var axisModelCommonMixin = { /** * @param {boolean} origin * @return {number|string} min value or 'dataMin' or null/undefined (means auto) or NaN */ getMin: function (origin) { var option = this.option; var min = (!origin && option.rangeStart != null) ? option.rangeStart : option.min; if (this.axis && min != null && min !== 'dataMin' && typeof min !== 'function' && !eqNaN(min) ) { min = this.axis.scale.parse(min); } return min; }, /** * @param {boolean} origin * @return {number|string} max value or 'dataMax' or null/undefined (means auto) or NaN */ getMax: function (origin) { var option = this.option; var max = (!origin && option.rangeEnd != null) ? option.rangeEnd : option.max; if (this.axis && max != null && max !== 'dataMax' && typeof max !== 'function' && !eqNaN(max) ) { max = this.axis.scale.parse(max); } return max; }, /** * @return {boolean} */ getNeedCrossZero: function () { var option = this.option; return (option.rangeStart != null || option.rangeEnd != null) ? false : !option.scale; }, /** * Should be implemented by each axis model if necessary. * @return {module:echarts/model/Component} coordinate system model */ getCoordSysModel: noop, /** * @param {number} rangeStart Can only be finite number or null/undefined or NaN. * @param {number} rangeEnd Can only be finite number or null/undefined or NaN. */ setRange: function (rangeStart, rangeEnd) { this.option.rangeStart = rangeStart; this.option.rangeEnd = rangeEnd; }, /** * Reset range */ resetRange: function () { // rangeStart and rangeEnd is readonly. this.option.rangeStart = this.option.rangeEnd = null; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Symbol factory /** * Triangle shape * @inner */ var Triangle = extendShape({ type: 'triangle', shape: { cx: 0, cy: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var cx = shape.cx; var cy = shape.cy; var width = shape.width / 2; var height = shape.height / 2; path.moveTo(cx, cy - height); path.lineTo(cx + width, cy + height); path.lineTo(cx - width, cy + height); path.closePath(); } }); /** * Diamond shape * @inner */ var Diamond = extendShape({ type: 'diamond', shape: { cx: 0, cy: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var cx = shape.cx; var cy = shape.cy; var width = shape.width / 2; var height = shape.height / 2; path.moveTo(cx, cy - height); path.lineTo(cx + width, cy); path.lineTo(cx, cy + height); path.lineTo(cx - width, cy); path.closePath(); } }); /** * Pin shape * @inner */ var Pin = extendShape({ type: 'pin', shape: { // x, y on the cusp x: 0, y: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var x = shape.x; var y = shape.y; var w = shape.width / 5 * 3; // Height must be larger than width var h = Math.max(w, shape.height); var r = w / 2; // Dist on y with tangent point and circle center var dy = r * r / (h - r); var cy = y - h + r + dy; var angle = Math.asin(dy / r); // Dist on x with tangent point and circle center var dx = Math.cos(angle) * r; var tanX = Math.sin(angle); var tanY = Math.cos(angle); var cpLen = r * 0.6; var cpLen2 = r * 0.7; path.moveTo(x - dx, cy + dy); path.arc( x, cy, r, Math.PI - angle, Math.PI * 2 + angle ); path.bezierCurveTo( x + dx - tanX * cpLen, cy + dy + tanY * cpLen, x, y - cpLen2, x, y ); path.bezierCurveTo( x, y - cpLen2, x - dx + tanX * cpLen, cy + dy + tanY * cpLen, x - dx, cy + dy ); path.closePath(); } }); /** * Arrow shape * @inner */ var Arrow = extendShape({ type: 'arrow', shape: { x: 0, y: 0, width: 0, height: 0 }, buildPath: function (ctx, shape) { var height = shape.height; var width = shape.width; var x = shape.x; var y = shape.y; var dx = width / 3 * 2; ctx.moveTo(x, y); ctx.lineTo(x + dx, y + height); ctx.lineTo(x, y + height / 4 * 3); ctx.lineTo(x - dx, y + height); ctx.lineTo(x, y); ctx.closePath(); } }); /** * Map of path contructors * @type {Object.} */ var symbolCtors = { line: Line, rect: Rect, roundRect: Rect, square: Rect, circle: Circle, diamond: Diamond, pin: Pin, arrow: Arrow, triangle: Triangle }; var symbolShapeMakers = { line: function (x, y, w, h, shape) { // FIXME shape.x1 = x; shape.y1 = y + h / 2; shape.x2 = x + w; shape.y2 = y + h / 2; }, rect: function (x, y, w, h, shape) { shape.x = x; shape.y = y; shape.width = w; shape.height = h; }, roundRect: function (x, y, w, h, shape) { shape.x = x; shape.y = y; shape.width = w; shape.height = h; shape.r = Math.min(w, h) / 4; }, square: function (x, y, w, h, shape) { var size = Math.min(w, h); shape.x = x; shape.y = y; shape.width = size; shape.height = size; }, circle: function (x, y, w, h, shape) { // Put circle in the center of square shape.cx = x + w / 2; shape.cy = y + h / 2; shape.r = Math.min(w, h) / 2; }, diamond: function (x, y, w, h, shape) { shape.cx = x + w / 2; shape.cy = y + h / 2; shape.width = w; shape.height = h; }, pin: function (x, y, w, h, shape) { shape.x = x + w / 2; shape.y = y + h / 2; shape.width = w; shape.height = h; }, arrow: function (x, y, w, h, shape) { shape.x = x + w / 2; shape.y = y + h / 2; shape.width = w; shape.height = h; }, triangle: function (x, y, w, h, shape) { shape.cx = x + w / 2; shape.cy = y + h / 2; shape.width = w; shape.height = h; } }; var symbolBuildProxies = {}; each$1(symbolCtors, function (Ctor, name) { symbolBuildProxies[name] = new Ctor(); }); var SymbolClz = extendShape({ type: 'symbol', shape: { symbolType: '', x: 0, y: 0, width: 0, height: 0 }, calculateTextPosition: function (out, style, rect) { var res = calculateTextPosition(out, style, rect); var shape = this.shape; if (shape && shape.symbolType === 'pin' && style.textPosition === 'inside') { res.y = rect.y + rect.height * 0.4; } return res; }, buildPath: function (ctx, shape, inBundle) { var symbolType = shape.symbolType; if (symbolType !== 'none') { var proxySymbol = symbolBuildProxies[symbolType]; if (!proxySymbol) { // Default rect symbolType = 'rect'; proxySymbol = symbolBuildProxies[symbolType]; } symbolShapeMakers[symbolType]( shape.x, shape.y, shape.width, shape.height, proxySymbol.shape ); proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle); } } }); // Provide setColor helper method to avoid determine if set the fill or stroke outside function symbolPathSetColor(color, innerColor) { if (this.type !== 'image') { var symbolStyle = this.style; var symbolShape = this.shape; if (symbolShape && symbolShape.symbolType === 'line') { symbolStyle.stroke = color; } else if (this.__isEmptyBrush) { symbolStyle.stroke = color; symbolStyle.fill = innerColor || '#fff'; } else { // FIXME 判断图形默认是填充还是描边,使用 onlyStroke ? symbolStyle.fill && (symbolStyle.fill = color); symbolStyle.stroke && (symbolStyle.stroke = color); } this.dirty(false); } } /** * Create a symbol element with given symbol configuration: shape, x, y, width, height, color * @param {string} symbolType * @param {number} x * @param {number} y * @param {number} w * @param {number} h * @param {string} color * @param {boolean} [keepAspect=false] whether to keep the ratio of w/h, * for path and image only. */ function createSymbol(symbolType, x, y, w, h, color, keepAspect) { // TODO Support image object, DynamicImage. var isEmpty = symbolType.indexOf('empty') === 0; if (isEmpty) { symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6); } var symbolPath; if (symbolType.indexOf('image://') === 0) { symbolPath = makeImage( symbolType.slice(8), new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover' ); } else if (symbolType.indexOf('path://') === 0) { symbolPath = makePath( symbolType.slice(7), {}, new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover' ); } else { symbolPath = new SymbolClz({ shape: { symbolType: symbolType, x: x, y: y, width: w, height: h } }); } symbolPath.__isEmptyBrush = isEmpty; symbolPath.setColor = symbolPathSetColor; symbolPath.setColor(color); return symbolPath; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge'; /** * Create a muti dimension List structure from seriesModel. * @param {module:echarts/model/Model} seriesModel * @return {module:echarts/data/List} list */ function createList(seriesModel) { return createListFromArray(seriesModel.getSource(), seriesModel); } var dataStack$1 = { isDimensionStacked: isDimensionStacked, enableDataStack: enableDataStack, getStackedDimension: getStackedDimension }; /** * Create scale * @param {Array.} dataExtent * @param {Object|module:echarts/Model} option */ function createScale(dataExtent, option) { var axisModel = option; if (!Model.isInstance(option)) { axisModel = new Model(option); mixin(axisModel, axisModelCommonMixin); } var scale = createScaleByModel(axisModel); scale.setExtent(dataExtent[0], dataExtent[1]); niceScaleExtent(scale, axisModel); return scale; } /** * Mixin common methods to axis model, * * Inlcude methods * `getFormattedLabels() => Array.` * `getCategories() => Array.` * `getMin(origin: boolean) => number` * `getMax(origin: boolean) => number` * `getNeedCrossZero() => boolean` * `setRange(start: number, end: number)` * `resetRange()` */ function mixinAxisModelCommonMethods(Model$$1) { mixin(Model$$1, axisModelCommonMixin); } var helper = (Object.freeze || Object)({ createList: createList, getLayoutRect: getLayoutRect, dataStack: dataStack$1, createScale: createScale, mixinAxisModelCommonMethods: mixinAxisModelCommonMethods, completeDimensions: completeDimensions, createDimensions: createDimensions, createSymbol: createSymbol }); var EPSILON$3 = 1e-8; function isAroundEqual$1(a, b) { return Math.abs(a - b) < EPSILON$3; } function contain$1(points, x, y) { var w = 0; var p = points[0]; if (!p) { return false; } for (var i = 1; i < points.length; i++) { var p2 = points[i]; w += windingLine(p[0], p[1], p2[0], p2[1], x, y); p = p2; } // Close polygon var p0 = points[0]; if (!isAroundEqual$1(p[0], p0[0]) || !isAroundEqual$1(p[1], p0[1])) { w += windingLine(p[0], p[1], p0[0], p0[1], x, y); } return w !== 0; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/coord/geo/Region */ /** * @param {string|Region} name * @param {Array} geometries * @param {Array.} cp */ function Region(name, geometries, cp) { /** * @type {string} * @readOnly */ this.name = name; /** * @type {Array.} * @readOnly */ this.geometries = geometries; if (!cp) { var rect = this.getBoundingRect(); cp = [ rect.x + rect.width / 2, rect.y + rect.height / 2 ]; } else { cp = [cp[0], cp[1]]; } /** * @type {Array.} */ this.center = cp; } Region.prototype = { constructor: Region, properties: null, /** * @return {module:zrender/core/BoundingRect} */ getBoundingRect: function () { var rect = this._rect; if (rect) { return rect; } var MAX_NUMBER = Number.MAX_VALUE; var min$$1 = [MAX_NUMBER, MAX_NUMBER]; var max$$1 = [-MAX_NUMBER, -MAX_NUMBER]; var min2 = []; var max2 = []; var geometries = this.geometries; for (var i = 0; i < geometries.length; i++) { // Only support polygon if (geometries[i].type !== 'polygon') { continue; } // Doesn't consider hole var exterior = geometries[i].exterior; fromPoints(exterior, min2, max2); min(min$$1, min$$1, min2); max(max$$1, max$$1, max2); } // No data if (i === 0) { min$$1[0] = min$$1[1] = max$$1[0] = max$$1[1] = 0; } return (this._rect = new BoundingRect( min$$1[0], min$$1[1], max$$1[0] - min$$1[0], max$$1[1] - min$$1[1] )); }, /** * @param {} coord * @return {boolean} */ contain: function (coord) { var rect = this.getBoundingRect(); var geometries = this.geometries; if (!rect.contain(coord[0], coord[1])) { return false; } loopGeo: for (var i = 0, len$$1 = geometries.length; i < len$$1; i++) { // Only support polygon. if (geometries[i].type !== 'polygon') { continue; } var exterior = geometries[i].exterior; var interiors = geometries[i].interiors; if (contain$1(exterior, coord[0], coord[1])) { // Not in the region if point is in the hole. for (var k = 0; k < (interiors ? interiors.length : 0); k++) { if (contain$1(interiors[k])) { continue loopGeo; } } return true; } } return false; }, transformTo: function (x, y, width, height) { var rect = this.getBoundingRect(); var aspect = rect.width / rect.height; if (!width) { width = aspect * height; } else if (!height) { height = width / aspect; } var target = new BoundingRect(x, y, width, height); var transform = rect.calculateTransform(target); var geometries = this.geometries; for (var i = 0; i < geometries.length; i++) { // Only support polygon. if (geometries[i].type !== 'polygon') { continue; } var exterior = geometries[i].exterior; var interiors = geometries[i].interiors; for (var p = 0; p < exterior.length; p++) { applyTransform(exterior[p], exterior[p], transform); } for (var h = 0; h < (interiors ? interiors.length : 0); h++) { for (var p = 0; p < interiors[h].length; p++) { applyTransform(interiors[h][p], interiors[h][p], transform); } } } rect = this._rect; rect.copy(target); // Update center this.center = [ rect.x + rect.width / 2, rect.y + rect.height / 2 ]; }, cloneShallow: function (name) { name == null && (name = this.name); var newRegion = new Region(name, this.geometries, this.center); newRegion._rect = this._rect; newRegion.transformTo = null; // Simply avoid to be called. return newRegion; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parse and decode geo json * @module echarts/coord/geo/parseGeoJson */ function decode(json) { if (!json.UTF8Encoding) { return json; } var encodeScale = json.UTF8Scale; if (encodeScale == null) { encodeScale = 1024; } var features = json.features; for (var f = 0; f < features.length; f++) { var feature = features[f]; var geometry = feature.geometry; var coordinates = geometry.coordinates; var encodeOffsets = geometry.encodeOffsets; for (var c = 0; c < coordinates.length; c++) { var coordinate = coordinates[c]; if (geometry.type === 'Polygon') { coordinates[c] = decodePolygon( coordinate, encodeOffsets[c], encodeScale ); } else if (geometry.type === 'MultiPolygon') { for (var c2 = 0; c2 < coordinate.length; c2++) { var polygon = coordinate[c2]; coordinate[c2] = decodePolygon( polygon, encodeOffsets[c][c2], encodeScale ); } } } } // Has been decoded json.UTF8Encoding = false; return json; } function decodePolygon(coordinate, encodeOffsets, encodeScale) { var result = []; var prevX = encodeOffsets[0]; var prevY = encodeOffsets[1]; for (var i = 0; i < coordinate.length; i += 2) { var x = coordinate.charCodeAt(i) - 64; var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding x = (x >> 1) ^ (-(x & 1)); y = (y >> 1) ^ (-(y & 1)); // Delta deocding x += prevX; y += prevY; prevX = x; prevY = y; // Dequantize result.push([x / encodeScale, y / encodeScale]); } return result; } /** * @alias module:echarts/coord/geo/parseGeoJson * @param {Object} geoJson * @return {module:zrender/container/Group} */ var parseGeoJson$1 = function (geoJson) { decode(geoJson); return map(filter(geoJson.features, function (featureObj) { // Output of mapshaper may have geometry null return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0; }), function (featureObj) { var properties = featureObj.properties; var geo = featureObj.geometry; var coordinates = geo.coordinates; var geometries = []; if (geo.type === 'Polygon') { geometries.push({ type: 'polygon', // According to the GeoJSON specification. // First must be exterior, and the rest are all interior(holes). exterior: coordinates[0], interiors: coordinates.slice(1) }); } if (geo.type === 'MultiPolygon') { each$1(coordinates, function (item) { if (item[0]) { geometries.push({ type: 'polygon', exterior: item[0], interiors: item.slice(1) }); } }); } var region = new Region( properties.name, geometries, properties.cp ); region.properties = properties; return region; }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$6 = makeInner(); /** * @param {module:echats/coord/Axis} axis * @return {Object} { * labels: [{ * formattedLabel: string, * rawLabel: string, * tickValue: number * }, ...], * labelCategoryInterval: number * } */ function createAxisLabels(axis) { // Only ordinal scale support tick interval return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis); } /** * @param {module:echats/coord/Axis} axis * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea. * @return {Object} { * ticks: Array. * tickCategoryInterval: number * } */ function createAxisTicks(axis, tickModel) { // Only ordinal scale support tick interval return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : {ticks: axis.scale.getTicks()}; } function makeCategoryLabels(axis) { var labelModel = axis.getLabelModel(); var result = makeCategoryLabelsActually(axis, labelModel); return (!labelModel.get('show') || axis.scale.isBlank()) ? {labels: [], labelCategoryInterval: result.labelCategoryInterval} : result; } function makeCategoryLabelsActually(axis, labelModel) { var labelsCache = getListCache(axis, 'labels'); var optionLabelInterval = getOptionCategoryInterval(labelModel); var result = listCacheGet(labelsCache, optionLabelInterval); if (result) { return result; } var labels; var numericLabelInterval; if (isFunction$1(optionLabelInterval)) { labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval); } else { numericLabelInterval = optionLabelInterval === 'auto' ? makeAutoCategoryInterval(axis) : optionLabelInterval; labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval); } // Cache to avoid calling interval function repeatly. return listCacheSet(labelsCache, optionLabelInterval, { labels: labels, labelCategoryInterval: numericLabelInterval }); } function makeCategoryTicks(axis, tickModel) { var ticksCache = getListCache(axis, 'ticks'); var optionTickInterval = getOptionCategoryInterval(tickModel); var result = listCacheGet(ticksCache, optionTickInterval); if (result) { return result; } var ticks; var tickCategoryInterval; // Optimize for the case that large category data and no label displayed, // we should not return all ticks. if (!tickModel.get('show') || axis.scale.isBlank()) { ticks = []; } if (isFunction$1(optionTickInterval)) { ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true); } // Always use label interval by default despite label show. Consider this // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows // labels. `splitLine` and `axisTick` should be consistent in this case. else if (optionTickInterval === 'auto') { var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel()); tickCategoryInterval = labelsResult.labelCategoryInterval; ticks = map(labelsResult.labels, function (labelItem) { return labelItem.tickValue; }); } else { tickCategoryInterval = optionTickInterval; ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true); } // Cache to avoid calling interval function repeatly. return listCacheSet(ticksCache, optionTickInterval, { ticks: ticks, tickCategoryInterval: tickCategoryInterval }); } function makeRealNumberLabels(axis) { var ticks = axis.scale.getTicks(); var labelFormatter = makeLabelFormatter(axis); return { labels: map(ticks, function (tickValue, idx) { return { formattedLabel: labelFormatter(tickValue, idx), rawLabel: axis.scale.getLabel(tickValue), tickValue: tickValue }; }) }; } // Large category data calculation is performence sensitive, and ticks and label // probably be fetched by multiple times. So we cache the result. // axis is created each time during a ec process, so we do not need to clear cache. function getListCache(axis, prop) { // Because key can be funciton, and cache size always be small, we use array cache. return inner$6(axis)[prop] || (inner$6(axis)[prop] = []); } function listCacheGet(cache, key) { for (var i = 0; i < cache.length; i++) { if (cache[i].key === key) { return cache[i].value; } } } function listCacheSet(cache, key, value) { cache.push({key: key, value: value}); return value; } function makeAutoCategoryInterval(axis) { var result = inner$6(axis).autoInterval; return result != null ? result : (inner$6(axis).autoInterval = axis.calculateCategoryInterval()); } /** * Calculate interval for category axis ticks and labels. * To get precise result, at least one of `getRotate` and `isHorizontal` * should be implemented in axis. */ function calculateCategoryInterval(axis) { var params = fetchAutoCategoryIntervalCalculationParams(axis); var labelFormatter = makeLabelFormatter(axis); var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI; var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization: // avoid generating a long array by `getTicks` // in large category data case. var tickCount = ordinalScale.count(); if (ordinalExtent[1] - ordinalExtent[0] < 1) { return 0; } var step = 1; // Simple optimization. Empirical value: tick count should less than 40. if (tickCount > 40) { step = Math.max(1, Math.floor(tickCount / 40)); } var tickValue = ordinalExtent[0]; var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue); var unitW = Math.abs(unitSpan * Math.cos(rotation)); var unitH = Math.abs(unitSpan * Math.sin(rotation)); var maxW = 0; var maxH = 0; // Caution: Performance sensitive for large category data. // Consider dataZoom, we should make appropriate step to avoid O(n) loop. for (; tickValue <= ordinalExtent[1]; tickValue += step) { var width = 0; var height = 0; // Not precise, do not consider align and vertical align // and each distance from axis line yet. var rect = getBoundingRect( labelFormatter(tickValue), params.font, 'center', 'top' ); // Magic number width = rect.width * 1.3; height = rect.height * 1.3; // Min size, void long loop. maxW = Math.max(maxW, width, 7); maxH = Math.max(maxH, height, 7); } var dw = maxW / unitW; var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity. isNaN(dw) && (dw = Infinity); isNaN(dh) && (dh = Infinity); var interval = Math.max(0, Math.floor(Math.min(dw, dh))); var cache = inner$6(axis.model); var lastAutoInterval = cache.lastAutoInterval; var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window, // otherwise the calculated interval might jitter when the zoom // window size is close to the interval-changing size. if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical // point is not the same when zooming in or zooming out. && lastAutoInterval > interval ) { interval = lastAutoInterval; } // Only update cache if cache not used, otherwise the // changing of interval is too insensitive. else { cache.lastTickCount = tickCount; cache.lastAutoInterval = interval; } return interval; } function fetchAutoCategoryIntervalCalculationParams(axis) { var labelModel = axis.getLabelModel(); return { axisRotate: axis.getRotate ? axis.getRotate() : (axis.isHorizontal && !axis.isHorizontal()) ? 90 : 0, labelRotate: labelModel.get('rotate') || 0, font: labelModel.getFont() }; } function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) { var labelFormatter = makeLabelFormatter(axis); var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); var labelModel = axis.getLabelModel(); var result = []; // TODO: axisType: ordinalTime, pick the tick from each month/day/year/... var step = Math.max((categoryInterval || 0) + 1, 1); var startTick = ordinalExtent[0]; var tickCount = ordinalScale.count(); // Calculate start tick based on zero if possible to keep label consistent // while zooming and moving while interval > 0. Otherwise the selection // of displayable ticks and symbols probably keep changing. // 3 is empirical value. if (startTick !== 0 && step > 1 && tickCount / step > 2) { startTick = Math.round(Math.ceil(startTick / step) * step); } // (1) Only add min max label here but leave overlap checking // to render stage, which also ensure the returned list // suitable for splitLine and splitArea rendering. // (2) Scales except category always contain min max label so // do not need to perform this process. var showAllLabel = shouldShowAllLabels(axis); var includeMinLabel = labelModel.get('showMinLabel') || showAllLabel; var includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel; if (includeMinLabel && startTick !== ordinalExtent[0]) { addItem(ordinalExtent[0]); } // Optimize: avoid generating large array by `ordinalScale.getTicks()`. var tickValue = startTick; for (; tickValue <= ordinalExtent[1]; tickValue += step) { addItem(tickValue); } if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) { addItem(ordinalExtent[1]); } function addItem(tVal) { result.push(onlyTick ? tVal : { formattedLabel: labelFormatter(tVal), rawLabel: ordinalScale.getLabel(tVal), tickValue: tVal } ); } return result; } // When interval is function, the result `false` means ignore the tick. // It is time consuming for large category data. function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) { var ordinalScale = axis.scale; var labelFormatter = makeLabelFormatter(axis); var result = []; each$1(ordinalScale.getTicks(), function (tickValue) { var rawLabel = ordinalScale.getLabel(tickValue); if (categoryInterval(tickValue, rawLabel)) { result.push(onlyTick ? tickValue : { formattedLabel: labelFormatter(tickValue), rawLabel: rawLabel, tickValue: tickValue } ); } }); return result; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var NORMALIZED_EXTENT = [0, 1]; /** * Base class of Axis. * @constructor */ var Axis = function (dim, scale, extent) { /** * Axis dimension. Such as 'x', 'y', 'z', 'angle', 'radius'. * @type {string} */ this.dim = dim; /** * Axis scale * @type {module:echarts/coord/scale/*} */ this.scale = scale; /** * @type {Array.} * @private */ this._extent = extent || [0, 0]; /** * @type {boolean} */ this.inverse = false; /** * Usually true when axis has a ordinal scale * @type {boolean} */ this.onBand = false; }; Axis.prototype = { constructor: Axis, /** * If axis extent contain given coord * @param {number} coord * @return {boolean} */ contain: function (coord) { var extent = this._extent; var min = Math.min(extent[0], extent[1]); var max = Math.max(extent[0], extent[1]); return coord >= min && coord <= max; }, /** * If axis extent contain given data * @param {number} data * @return {boolean} */ containData: function (data) { return this.contain(this.dataToCoord(data)); }, /** * Get coord extent. * @return {Array.} */ getExtent: function () { return this._extent.slice(); }, /** * Get precision used for formatting * @param {Array.} [dataExtent] * @return {number} */ getPixelPrecision: function (dataExtent) { return getPixelPrecision( dataExtent || this.scale.getExtent(), this._extent ); }, /** * Set coord extent * @param {number} start * @param {number} end */ setExtent: function (start, end) { var extent = this._extent; extent[0] = start; extent[1] = end; }, /** * Convert data to coord. Data is the rank if it has an ordinal scale * @param {number} data * @param {boolean} clamp * @return {number} */ dataToCoord: function (data, clamp) { var extent = this._extent; var scale = this.scale; data = scale.normalize(data); if (this.onBand && scale.type === 'ordinal') { extent = extent.slice(); fixExtentWithBands(extent, scale.count()); } return linearMap(data, NORMALIZED_EXTENT, extent, clamp); }, /** * Convert coord to data. Data is the rank if it has an ordinal scale * @param {number} coord * @param {boolean} clamp * @return {number} */ coordToData: function (coord, clamp) { var extent = this._extent; var scale = this.scale; if (this.onBand && scale.type === 'ordinal') { extent = extent.slice(); fixExtentWithBands(extent, scale.count()); } var t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp); return this.scale.scale(t); }, /** * Convert pixel point to data in axis * @param {Array.} point * @param {boolean} clamp * @return {number} data */ pointToData: function (point, clamp) { // Should be implemented in derived class if necessary. }, /** * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`, * `axis.getTicksCoords` considers `onBand`, which is used by * `boundaryGap:true` of category axis and splitLine and splitArea. * @param {Object} [opt] * @param {number} [opt.tickModel=axis.model.getModel('axisTick')] * @param {boolean} [opt.clamp] If `true`, the first and the last * tick must be at the axis end points. Otherwise, clip ticks * that outside the axis extent. * @return {Array.} [{ * coord: ..., * tickValue: ... * }, ...] */ getTicksCoords: function (opt) { opt = opt || {}; var tickModel = opt.tickModel || this.getTickModel(); var result = createAxisTicks(this, tickModel); var ticks = result.ticks; var ticksCoords = map(ticks, function (tickValue) { return { coord: this.dataToCoord(tickValue), tickValue: tickValue }; }, this); var alignWithLabel = tickModel.get('alignWithLabel'); fixOnBandTicksCoords( this, ticksCoords, result.tickCategoryInterval, alignWithLabel, opt.clamp ); return ticksCoords; }, /** * @return {Array.} [{ * formattedLabel: string, * rawLabel: axis.scale.getLabel(tickValue) * tickValue: number * }, ...] */ getViewLabels: function () { return createAxisLabels(this).labels; }, /** * @return {module:echarts/coord/model/Model} */ getLabelModel: function () { return this.model.getModel('axisLabel'); }, /** * Notice here we only get the default tick model. For splitLine * or splitArea, we should pass the splitLineModel or splitAreaModel * manually when calling `getTicksCoords`. * In GL, this method may be overrided to: * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));` * @return {module:echarts/coord/model/Model} */ getTickModel: function () { return this.model.getModel('axisTick'); }, /** * Get width of band * @return {number} */ getBandWidth: function () { var axisExtent = this._extent; var dataExtent = this.scale.getExtent(); var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0); // Fix #2728, avoid NaN when only one data. len === 0 && (len = 1); var size = Math.abs(axisExtent[1] - axisExtent[0]); return Math.abs(size) / len; }, /** * @abstract * @return {boolean} Is horizontal */ isHorizontal: null, /** * @abstract * @return {number} Get axis rotate, by degree. */ getRotate: null, /** * Only be called in category axis. * Can be overrided, consider other axes like in 3D. * @return {number} Auto interval for cateogry axis tick and label */ calculateCategoryInterval: function () { return calculateCategoryInterval(this); } }; function fixExtentWithBands(extent, nTick) { var size = extent[1] - extent[0]; var len = nTick; var margin = size / len / 2; extent[0] += margin; extent[1] -= margin; } // If axis has labels [1, 2, 3, 4]. Bands on the axis are // |---1---|---2---|---3---|---4---|. // So the displayed ticks and splitLine/splitArea should between // each data item, otherwise cause misleading (e.g., split tow bars // of a single data item when there are two bar series). // Also consider if tickCategoryInterval > 0 and onBand, ticks and // splitLine/spliteArea should layout appropriately corresponding // to displayed labels. (So we should not use `getBandWidth` in this // case). function fixOnBandTicksCoords(axis, ticksCoords, tickCategoryInterval, alignWithLabel, clamp) { var ticksLen = ticksCoords.length; if (!axis.onBand || alignWithLabel || !ticksLen) { return; } var axisExtent = axis.getExtent(); var last; if (ticksLen === 1) { ticksCoords[0].coord = axisExtent[0]; last = ticksCoords[1] = {coord: axisExtent[0]}; } else { var shift = (ticksCoords[1].coord - ticksCoords[0].coord); each$1(ticksCoords, function (ticksItem) { ticksItem.coord -= shift / 2; var tickCategoryInterval = tickCategoryInterval || 0; // Avoid split a single data item when odd interval. if (tickCategoryInterval % 2 > 0) { ticksItem.coord -= shift / ((tickCategoryInterval + 1) * 2); } }); last = {coord: ticksCoords[ticksLen - 1].coord + shift}; ticksCoords.push(last); } var inverse = axisExtent[0] > axisExtent[1]; if (littleThan(ticksCoords[0].coord, axisExtent[0])) { clamp ? (ticksCoords[0].coord = axisExtent[0]) : ticksCoords.shift(); } if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) { ticksCoords.unshift({coord: axisExtent[0]}); } if (littleThan(axisExtent[1], last.coord)) { clamp ? (last.coord = axisExtent[1]) : ticksCoords.pop(); } if (clamp && littleThan(last.coord, axisExtent[1])) { ticksCoords.push({coord: axisExtent[1]}); } function littleThan(a, b) { return inverse ? a > b : a < b; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Do not mount those modules on 'src/echarts' for better tree shaking. */ var parseGeoJson = parseGeoJson$1; var ecUtil = {}; each$1( [ 'map', 'each', 'filter', 'indexOf', 'inherits', 'reduce', 'filter', 'bind', 'curry', 'isArray', 'isString', 'isObject', 'isFunction', 'extend', 'defaults', 'clone', 'merge' ], function (name) { ecUtil[name] = zrUtil[name]; } ); var graphic$1 = {}; each$1( [ 'extendShape', 'extendPath', 'makePath', 'makeImage', 'mergePath', 'resizePath', 'createIcon', 'setHoverStyle', 'setLabelStyle', 'setTextStyle', 'setText', 'getFont', 'updateProps', 'initProps', 'getTransform', 'clipPointsByRect', 'clipRectByRect', 'Group', 'Image', 'Text', 'Circle', 'Sector', 'Ring', 'Polygon', 'Polyline', 'Rect', 'Line', 'BezierCurve', 'Arc', 'IncrementalDisplayable', 'CompoundPath', 'LinearGradient', 'RadialGradient', 'BoundingRect' ], function (name) { graphic$1[name] = graphic[name]; } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.line', dependencies: ['grid', 'polar'], getInitialData: function (option, ecModel) { if (__DEV__) { var coordSys = option.coordinateSystem; if (coordSys !== 'polar' && coordSys !== 'cartesian2d') { throw new Error('Line not support coordinateSystem besides cartesian and polar'); } } return createListFromArray(this.getSource(), this); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'cartesian2d', legendHoverLink: true, hoverAnimation: true, // stack: null // xAxisIndex: 0, // yAxisIndex: 0, // polarIndex: 0, // If clip the overflow value clipOverflow: true, // cursor: null, label: { position: 'top' }, // itemStyle: { // }, lineStyle: { width: 2, type: 'solid' }, // areaStyle: { // origin of areaStyle. Valid values: // `'auto'/null/undefined`: from axisLine to data // `'start'`: from min to data // `'end'`: from data to max // origin: 'auto' // }, // false, 'start', 'end', 'middle' step: false, // Disabled if step is true smooth: false, smoothMonotone: null, symbol: 'emptyCircle', symbolSize: 4, symbolRotate: null, showSymbol: true, // `false`: follow the label interval strategy. // `true`: show all symbols. // `'auto'`: If possible, show all symbols, otherwise // follow the label interval strategy. showAllSymbol: 'auto', // Whether to connect break point. connectNulls: false, // Sampling for large data. Can be: 'average', 'max', 'min', 'sum'. sampling: 'none', animationEasing: 'linear', // Disable progressive progressive: 0, hoverLayerThreshold: Infinity } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/data/List} data * @param {number} dataIndex * @return {string} label string. Not null/undefined */ function getDefaultLabel(data, dataIndex) { var labelDims = data.mapDimension('defaultedLabel', true); var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1) if (len === 1) { return retrieveRawValue(data, dataIndex, labelDims[0]); } else if (len) { var vals = []; for (var i = 0; i < labelDims.length; i++) { var val = retrieveRawValue(data, dataIndex, labelDims[i]); vals.push(val); } return vals.join(' '); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/chart/helper/Symbol */ /** * @constructor * @alias {module:echarts/chart/helper/Symbol} * @param {module:echarts/data/List} data * @param {number} idx * @extends {module:zrender/graphic/Group} */ function SymbolClz$1(data, idx, seriesScope) { Group.call(this); this.updateData(data, idx, seriesScope); } var symbolProto = SymbolClz$1.prototype; /** * @public * @static * @param {module:echarts/data/List} data * @param {number} dataIndex * @return {Array.} [width, height] */ var getSymbolSize = SymbolClz$1.getSymbolSize = function (data, idx) { var symbolSize = data.getItemVisual(idx, 'symbolSize'); return symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize]; }; function getScale(symbolSize) { return [symbolSize[0] / 2, symbolSize[1] / 2]; } function driftSymbol(dx, dy) { this.parent.drift(dx, dy); } symbolProto._createSymbol = function ( symbolType, data, idx, symbolSize, keepAspect ) { // Remove paths created before this.removeAll(); var color = data.getItemVisual(idx, 'color'); // var symbolPath = createSymbol( // symbolType, -0.5, -0.5, 1, 1, color // ); // If width/height are set too small (e.g., set to 1) on ios10 // and macOS Sierra, a circle stroke become a rect, no matter what // the scale is set. So we set width/height as 2. See #4150. var symbolPath = createSymbol( symbolType, -1, -1, 2, 2, color, keepAspect ); symbolPath.attr({ z2: 100, culling: true, scale: getScale(symbolSize) }); // Rewrite drift method symbolPath.drift = driftSymbol; this._symbolType = symbolType; this.add(symbolPath); }; /** * Stop animation * @param {boolean} toLastFrame */ symbolProto.stopSymbolAnimation = function (toLastFrame) { this.childAt(0).stopAnimation(toLastFrame); }; /** * FIXME: * Caution: This method breaks the encapsulation of this module, * but it indeed brings convenience. So do not use the method * unless you detailedly know all the implements of `Symbol`, * especially animation. * * Get symbol path element. */ symbolProto.getSymbolPath = function () { return this.childAt(0); }; /** * Get scale(aka, current symbol size). * Including the change caused by animation */ symbolProto.getScale = function () { return this.childAt(0).scale; }; /** * Highlight symbol */ symbolProto.highlight = function () { this.childAt(0).trigger('emphasis'); }; /** * Downplay symbol */ symbolProto.downplay = function () { this.childAt(0).trigger('normal'); }; /** * @param {number} zlevel * @param {number} z */ symbolProto.setZ = function (zlevel, z) { var symbolPath = this.childAt(0); symbolPath.zlevel = zlevel; symbolPath.z = z; }; symbolProto.setDraggable = function (draggable) { var symbolPath = this.childAt(0); symbolPath.draggable = draggable; symbolPath.cursor = draggable ? 'move' : symbolPath.cursor; }; /** * Update symbol properties * @param {module:echarts/data/List} data * @param {number} idx * @param {Object} [seriesScope] * @param {Object} [seriesScope.itemStyle] * @param {Object} [seriesScope.hoverItemStyle] * @param {Object} [seriesScope.symbolRotate] * @param {Object} [seriesScope.symbolOffset] * @param {module:echarts/model/Model} [seriesScope.labelModel] * @param {module:echarts/model/Model} [seriesScope.hoverLabelModel] * @param {boolean} [seriesScope.hoverAnimation] * @param {Object} [seriesScope.cursorStyle] * @param {module:echarts/model/Model} [seriesScope.itemModel] * @param {string} [seriesScope.symbolInnerColor] * @param {Object} [seriesScope.fadeIn=false] */ symbolProto.updateData = function (data, idx, seriesScope) { this.silent = false; var symbolType = data.getItemVisual(idx, 'symbol') || 'circle'; var seriesModel = data.hostModel; var symbolSize = getSymbolSize(data, idx); var isInit = symbolType !== this._symbolType; if (isInit) { var keepAspect = data.getItemVisual(idx, 'symbolKeepAspect'); this._createSymbol(symbolType, data, idx, symbolSize, keepAspect); } else { var symbolPath = this.childAt(0); symbolPath.silent = false; updateProps(symbolPath, { scale: getScale(symbolSize) }, seriesModel, idx); } this._updateCommon(data, idx, symbolSize, seriesScope); if (isInit) { var symbolPath = this.childAt(0); var fadeIn = seriesScope && seriesScope.fadeIn; var target = {scale: symbolPath.scale.slice()}; fadeIn && (target.style = {opacity: symbolPath.style.opacity}); symbolPath.scale = [0, 0]; fadeIn && (symbolPath.style.opacity = 0); initProps(symbolPath, target, seriesModel, idx); } this._seriesModel = seriesModel; }; // Update common properties var normalStyleAccessPath = ['itemStyle']; var emphasisStyleAccessPath = ['emphasis', 'itemStyle']; var normalLabelAccessPath = ['label']; var emphasisLabelAccessPath = ['emphasis', 'label']; /** * @param {module:echarts/data/List} data * @param {number} idx * @param {Array.} symbolSize * @param {Object} [seriesScope] */ symbolProto._updateCommon = function (data, idx, symbolSize, seriesScope) { var symbolPath = this.childAt(0); var seriesModel = data.hostModel; var color = data.getItemVisual(idx, 'color'); // Reset style if (symbolPath.type !== 'image') { symbolPath.useStyle({ strokeNoScale: true }); } var itemStyle = seriesScope && seriesScope.itemStyle; var hoverItemStyle = seriesScope && seriesScope.hoverItemStyle; var symbolRotate = seriesScope && seriesScope.symbolRotate; var symbolOffset = seriesScope && seriesScope.symbolOffset; var labelModel = seriesScope && seriesScope.labelModel; var hoverLabelModel = seriesScope && seriesScope.hoverLabelModel; var hoverAnimation = seriesScope && seriesScope.hoverAnimation; var cursorStyle = seriesScope && seriesScope.cursorStyle; if (!seriesScope || data.hasItemOption) { var itemModel = (seriesScope && seriesScope.itemModel) ? seriesScope.itemModel : data.getItemModel(idx); // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke itemStyle = itemModel.getModel(normalStyleAccessPath).getItemStyle(['color']); hoverItemStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle(); symbolRotate = itemModel.getShallow('symbolRotate'); symbolOffset = itemModel.getShallow('symbolOffset'); labelModel = itemModel.getModel(normalLabelAccessPath); hoverLabelModel = itemModel.getModel(emphasisLabelAccessPath); hoverAnimation = itemModel.getShallow('hoverAnimation'); cursorStyle = itemModel.getShallow('cursor'); } else { hoverItemStyle = extend({}, hoverItemStyle); } var elStyle = symbolPath.style; symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0); if (symbolOffset) { symbolPath.attr('position', [ parsePercent$1(symbolOffset[0], symbolSize[0]), parsePercent$1(symbolOffset[1], symbolSize[1]) ]); } cursorStyle && symbolPath.attr('cursor', cursorStyle); // PENDING setColor before setStyle!!! symbolPath.setColor(color, seriesScope && seriesScope.symbolInnerColor); symbolPath.setStyle(itemStyle); var opacity = data.getItemVisual(idx, 'opacity'); if (opacity != null) { elStyle.opacity = opacity; } var liftZ = data.getItemVisual(idx, 'liftZ'); var z2Origin = symbolPath.__z2Origin; if (liftZ != null) { if (z2Origin == null) { symbolPath.__z2Origin = symbolPath.z2; symbolPath.z2 += liftZ; } } else if (z2Origin != null) { symbolPath.z2 = z2Origin; symbolPath.__z2Origin = null; } var useNameLabel = seriesScope && seriesScope.useNameLabel; setLabelStyle( elStyle, hoverItemStyle, labelModel, hoverLabelModel, { labelFetcher: seriesModel, labelDataIndex: idx, defaultText: getLabelDefaultText, isRectText: true, autoColor: color } ); // Do not execute util needed. function getLabelDefaultText(idx, opt) { return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx); } symbolPath.__symbolOriginalScale = getScale(symbolSize); symbolPath.hoverStyle = hoverItemStyle; symbolPath.highDownOnUpdate = ( hoverAnimation && seriesModel.isAnimationEnabled() ) ? highDownOnUpdate : null; setHoverStyle(symbolPath); }; function highDownOnUpdate(fromState, toState) { // Do not support this hover animation util some scenario required. // Animation can only be supported in hover layer when using `el.incremetal`. if (this.incremental || this.useHoverLayer) { return; } if (toState === 'emphasis') { var scale = this.__symbolOriginalScale; var ratio = scale[1] / scale[0]; var emphasisOpt = { scale: [ Math.max(scale[0] * 1.1, scale[0] + 3), Math.max(scale[1] * 1.1, scale[1] + 3 * ratio) ] }; // FIXME // modify it after support stop specified animation. // toState === fromState // ? (this.stopAnimation(), this.attr(emphasisOpt)) this.animateTo(emphasisOpt, 400, 'elasticOut'); } else if (toState === 'normal') { this.animateTo({ scale: this.__symbolOriginalScale }, 400, 'elasticOut'); } } /** * @param {Function} cb * @param {Object} [opt] * @param {Object} [opt.keepLabel=true] */ symbolProto.fadeOut = function (cb, opt) { var symbolPath = this.childAt(0); // Avoid mistaken hover when fading out this.silent = symbolPath.silent = true; // Not show text when animating !(opt && opt.keepLabel) && (symbolPath.style.text = null); updateProps( symbolPath, { style: {opacity: 0}, scale: [0, 0] }, this._seriesModel, this.dataIndex, cb ); }; inherits(SymbolClz$1, Group); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/chart/helper/SymbolDraw */ /** * @constructor * @alias module:echarts/chart/helper/SymbolDraw * @param {module:zrender/graphic/Group} [symbolCtor] */ function SymbolDraw(symbolCtor) { this.group = new Group(); this._symbolCtor = symbolCtor || SymbolClz$1; } var symbolDrawProto = SymbolDraw.prototype; function symbolNeedsDraw(data, point, idx, opt) { return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx)) // We do not set clipShape on group, because it will cut part of // the symbol element shape. We use the same clip shape here as // the line clip. && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1])) && data.getItemVisual(idx, 'symbol') !== 'none'; } /** * Update symbols draw by new data * @param {module:echarts/data/List} data * @param {Object} [opt] Or isIgnore * @param {Function} [opt.isIgnore] * @param {Object} [opt.clipShape] */ symbolDrawProto.updateData = function (data, opt) { opt = normalizeUpdateOpt(opt); var group = this.group; var seriesModel = data.hostModel; var oldData = this._data; var SymbolCtor = this._symbolCtor; var seriesScope = makeSeriesScope(data); // There is no oldLineData only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!oldData) { group.removeAll(); } data.diff(oldData) .add(function (newIdx) { var point = data.getItemLayout(newIdx); if (symbolNeedsDraw(data, point, newIdx, opt)) { var symbolEl = new SymbolCtor(data, newIdx, seriesScope); symbolEl.attr('position', point); data.setItemGraphicEl(newIdx, symbolEl); group.add(symbolEl); } }) .update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); var point = data.getItemLayout(newIdx); if (!symbolNeedsDraw(data, point, newIdx, opt)) { group.remove(symbolEl); return; } if (!symbolEl) { symbolEl = new SymbolCtor(data, newIdx); symbolEl.attr('position', point); } else { symbolEl.updateData(data, newIdx, seriesScope); updateProps(symbolEl, { position: point }, seriesModel); } // Add back group.add(symbolEl); data.setItemGraphicEl(newIdx, symbolEl); }) .remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && el.fadeOut(function () { group.remove(el); }); }) .execute(); this._data = data; }; symbolDrawProto.isPersistent = function () { return true; }; symbolDrawProto.updateLayout = function () { var data = this._data; if (data) { // Not use animation data.eachItemGraphicEl(function (el, idx) { var point = data.getItemLayout(idx); el.attr('position', point); }); } }; symbolDrawProto.incrementalPrepareUpdate = function (data) { this._seriesScope = makeSeriesScope(data); this._data = null; this.group.removeAll(); }; /** * Update symbols draw by new data * @param {module:echarts/data/List} data * @param {Object} [opt] Or isIgnore * @param {Function} [opt.isIgnore] * @param {Object} [opt.clipShape] */ symbolDrawProto.incrementalUpdate = function (taskParams, data, opt) { opt = normalizeUpdateOpt(opt); function updateIncrementalAndHover(el) { if (!el.isGroup) { el.incremental = el.useHoverLayer = true; } } for (var idx = taskParams.start; idx < taskParams.end; idx++) { var point = data.getItemLayout(idx); if (symbolNeedsDraw(data, point, idx, opt)) { var el = new this._symbolCtor(data, idx, this._seriesScope); el.traverse(updateIncrementalAndHover); el.attr('position', point); this.group.add(el); data.setItemGraphicEl(idx, el); } } }; function normalizeUpdateOpt(opt) { if (opt != null && !isObject$1(opt)) { opt = {isIgnore: opt}; } return opt || {}; } symbolDrawProto.remove = function (enableAnimation) { var group = this.group; var data = this._data; // Incremental model do not have this._data. if (data && enableAnimation) { data.eachItemGraphicEl(function (el) { el.fadeOut(function () { group.remove(el); }); }); } else { group.removeAll(); } }; function makeSeriesScope(data) { var seriesModel = data.hostModel; return { itemStyle: seriesModel.getModel('itemStyle').getItemStyle(['color']), hoverItemStyle: seriesModel.getModel('emphasis.itemStyle').getItemStyle(), symbolRotate: seriesModel.get('symbolRotate'), symbolOffset: seriesModel.get('symbolOffset'), hoverAnimation: seriesModel.get('hoverAnimation'), labelModel: seriesModel.getModel('label'), hoverLabelModel: seriesModel.getModel('emphasis.label'), cursorStyle: seriesModel.get('cursor') }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {Object} coordSys * @param {module:echarts/data/List} data * @param {string} valueOrigin lineSeries.option.areaStyle.origin */ function prepareDataCoordInfo(coordSys, data, valueOrigin) { var baseAxis = coordSys.getBaseAxis(); var valueAxis = coordSys.getOtherAxis(baseAxis); var valueStart = getValueStart(valueAxis, valueOrigin); var baseAxisDim = baseAxis.dim; var valueAxisDim = valueAxis.dim; var valueDim = data.mapDimension(valueAxisDim); var baseDim = data.mapDimension(baseAxisDim); var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0; var dims = map(coordSys.dimensions, function (coordDim) { return data.mapDimension(coordDim); }); var stacked; var stackResultDim = data.getCalculationInfo('stackResultDimension'); if (stacked |= isDimensionStacked(data, dims[0] /*, dims[1]*/)) { // jshint ignore:line dims[0] = stackResultDim; } if (stacked |= isDimensionStacked(data, dims[1] /*, dims[0]*/)) { // jshint ignore:line dims[1] = stackResultDim; } return { dataDimsForPoint: dims, valueStart: valueStart, valueAxisDim: valueAxisDim, baseAxisDim: baseAxisDim, stacked: !!stacked, valueDim: valueDim, baseDim: baseDim, baseDataOffset: baseDataOffset, stackedOverDimension: data.getCalculationInfo('stackedOverDimension') }; } function getValueStart(valueAxis, valueOrigin) { var valueStart = 0; var extent = valueAxis.scale.getExtent(); if (valueOrigin === 'start') { valueStart = extent[0]; } else if (valueOrigin === 'end') { valueStart = extent[1]; } // auto else { // Both positive if (extent[0] > 0) { valueStart = extent[0]; } // Both negative else if (extent[1] < 0) { valueStart = extent[1]; } // If is one positive, and one negative, onZero shall be true } return valueStart; } function getStackedOnPoint(dataCoordInfo, coordSys, data, idx) { var value = NaN; if (dataCoordInfo.stacked) { value = data.get(data.getCalculationInfo('stackedOverDimension'), idx); } if (isNaN(value)) { value = dataCoordInfo.valueStart; } var baseDataOffset = dataCoordInfo.baseDataOffset; var stackedData = []; stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx); stackedData[1 - baseDataOffset] = value; return coordSys.dataToPoint(stackedData); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // var arrayDiff = require('zrender/src/core/arrayDiff'); // 'zrender/src/core/arrayDiff' has been used before, but it did // not do well in performance when roam with fixed dataZoom window. // function convertToIntId(newIdList, oldIdList) { // // Generate int id instead of string id. // // Compare string maybe slow in score function of arrDiff // // Assume id in idList are all unique // var idIndicesMap = {}; // var idx = 0; // for (var i = 0; i < newIdList.length; i++) { // idIndicesMap[newIdList[i]] = idx; // newIdList[i] = idx++; // } // for (var i = 0; i < oldIdList.length; i++) { // var oldId = oldIdList[i]; // // Same with newIdList // if (idIndicesMap[oldId]) { // oldIdList[i] = idIndicesMap[oldId]; // } // else { // oldIdList[i] = idx++; // } // } // } function diffData(oldData, newData) { var diffResult = []; newData.diff(oldData) .add(function (idx) { diffResult.push({cmd: '+', idx: idx}); }) .update(function (newIdx, oldIdx) { diffResult.push({cmd: '=', idx: oldIdx, idx1: newIdx}); }) .remove(function (idx) { diffResult.push({cmd: '-', idx: idx}); }) .execute(); return diffResult; } var lineAnimationDiff = function ( oldData, newData, oldStackedOnPoints, newStackedOnPoints, oldCoordSys, newCoordSys, oldValueOrigin, newValueOrigin ) { var diff = diffData(oldData, newData); // var newIdList = newData.mapArray(newData.getId); // var oldIdList = oldData.mapArray(oldData.getId); // convertToIntId(newIdList, oldIdList); // // FIXME One data ? // diff = arrayDiff(oldIdList, newIdList); var currPoints = []; var nextPoints = []; // Points for stacking base line var currStackedPoints = []; var nextStackedPoints = []; var status = []; var sortedIndices = []; var rawIndices = []; var newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin); var oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin); for (var i = 0; i < diff.length; i++) { var diffItem = diff[i]; var pointAdded = true; // FIXME, animation is not so perfect when dataZoom window moves fast // Which is in case remvoing or add more than one data in the tail or head switch (diffItem.cmd) { case '=': var currentPt = oldData.getItemLayout(diffItem.idx); var nextPt = newData.getItemLayout(diffItem.idx1); // If previous data is NaN, use next point directly if (isNaN(currentPt[0]) || isNaN(currentPt[1])) { currentPt = nextPt.slice(); } currPoints.push(currentPt); nextPoints.push(nextPt); currStackedPoints.push(oldStackedOnPoints[diffItem.idx]); nextStackedPoints.push(newStackedOnPoints[diffItem.idx1]); rawIndices.push(newData.getRawIndex(diffItem.idx1)); break; case '+': var idx = diffItem.idx; currPoints.push( oldCoordSys.dataToPoint([ newData.get(newDataOldCoordInfo.dataDimsForPoint[0], idx), newData.get(newDataOldCoordInfo.dataDimsForPoint[1], idx) ]) ); nextPoints.push(newData.getItemLayout(idx).slice()); currStackedPoints.push( getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, idx) ); nextStackedPoints.push(newStackedOnPoints[idx]); rawIndices.push(newData.getRawIndex(idx)); break; case '-': var idx = diffItem.idx; var rawIndex = oldData.getRawIndex(idx); // Data is replaced. In the case of dynamic data queue // FIXME FIXME FIXME if (rawIndex !== idx) { currPoints.push(oldData.getItemLayout(idx)); nextPoints.push(newCoordSys.dataToPoint([ oldData.get(oldDataNewCoordInfo.dataDimsForPoint[0], idx), oldData.get(oldDataNewCoordInfo.dataDimsForPoint[1], idx) ])); currStackedPoints.push(oldStackedOnPoints[idx]); nextStackedPoints.push( getStackedOnPoint(oldDataNewCoordInfo, newCoordSys, oldData, idx) ); rawIndices.push(rawIndex); } else { pointAdded = false; } } // Original indices if (pointAdded) { status.push(diffItem); sortedIndices.push(sortedIndices.length); } } // Diff result may be crossed if all items are changed // Sort by data index sortedIndices.sort(function (a, b) { return rawIndices[a] - rawIndices[b]; }); var sortedCurrPoints = []; var sortedNextPoints = []; var sortedCurrStackedPoints = []; var sortedNextStackedPoints = []; var sortedStatus = []; for (var i = 0; i < sortedIndices.length; i++) { var idx = sortedIndices[i]; sortedCurrPoints[i] = currPoints[idx]; sortedNextPoints[i] = nextPoints[idx]; sortedCurrStackedPoints[i] = currStackedPoints[idx]; sortedNextStackedPoints[i] = nextStackedPoints[idx]; sortedStatus[i] = status[idx]; } return { current: sortedCurrPoints, next: sortedNextPoints, stackedOnCurrent: sortedCurrStackedPoints, stackedOnNext: sortedNextStackedPoints, status: sortedStatus }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Poly path support NaN point var vec2Min = min; var vec2Max = max; var scaleAndAdd$1 = scaleAndAdd; var v2Copy = copy; // Temporary variable var v = []; var cp0 = []; var cp1 = []; function isPointNull(p) { return isNaN(p[0]) || isNaN(p[1]); } function drawSegment( ctx, points, start, segLen, allLen, dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls ) { // if (smoothMonotone == null) { // if (isMono(points, 'x')) { // return drawMono(ctx, points, start, segLen, allLen, // dir, smoothMin, smoothMax, smooth, 'x', connectNulls); // } // else if (isMono(points, 'y')) { // return drawMono(ctx, points, start, segLen, allLen, // dir, smoothMin, smoothMax, smooth, 'y', connectNulls); // } // else { // return drawNonMono.apply(this, arguments); // } // } // else if (smoothMonotone !== 'none' && isMono(points, smoothMonotone)) { // return drawMono.apply(this, arguments); // } // else { // return drawNonMono.apply(this, arguments); // } if (smoothMonotone === 'none' || !smoothMonotone) { return drawNonMono.apply(this, arguments); } else { return drawMono.apply(this, arguments); } } /** * Check if points is in monotone. * * @param {number[][]} points Array of points which is in [x, y] form * @param {string} smoothMonotone 'x', 'y', or 'none', stating for which * dimension that is checking. * If is 'none', `drawNonMono` should be * called. * If is undefined, either being monotone * in 'x' or 'y' will call `drawMono`. */ // function isMono(points, smoothMonotone) { // if (points.length <= 1) { // return true; // } // var dim = smoothMonotone === 'x' ? 0 : 1; // var last = points[0][dim]; // var lastDiff = 0; // for (var i = 1; i < points.length; ++i) { // var diff = points[i][dim] - last; // if (!isNaN(diff) && !isNaN(lastDiff) // && diff !== 0 && lastDiff !== 0 // && ((diff >= 0) !== (lastDiff >= 0)) // ) { // return false; // } // if (!isNaN(diff) && diff !== 0) { // lastDiff = diff; // last = points[i][dim]; // } // } // return true; // } /** * Draw smoothed line in monotone, in which only vertical or horizontal bezier * control points will be used. This should be used when points are monotone * either in x or y dimension. */ function drawMono( ctx, points, start, segLen, allLen, dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls ) { var prevIdx = 0; var idx = start; for (var k = 0; k < segLen; k++) { var p = points[idx]; if (idx >= allLen || idx < 0) { break; } if (isPointNull(p)) { if (connectNulls) { idx += dir; continue; } break; } if (idx === start) { ctx[dir > 0 ? 'moveTo' : 'lineTo'](p[0], p[1]); } else { if (smooth > 0) { var prevP = points[prevIdx]; var dim = smoothMonotone === 'y' ? 1 : 0; // Length of control point to p, either in x or y, but not both var ctrlLen = (p[dim] - prevP[dim]) * smooth; v2Copy(cp0, prevP); cp0[dim] = prevP[dim] + ctrlLen; v2Copy(cp1, p); cp1[dim] = p[dim] - ctrlLen; ctx.bezierCurveTo( cp0[0], cp0[1], cp1[0], cp1[1], p[0], p[1] ); } else { ctx.lineTo(p[0], p[1]); } } prevIdx = idx; idx += dir; } return k; } /** * Draw smoothed line in non-monotone, in may cause undesired curve in extreme * situations. This should be used when points are non-monotone neither in x or * y dimension. */ function drawNonMono( ctx, points, start, segLen, allLen, dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls ) { var prevIdx = 0; var idx = start; for (var k = 0; k < segLen; k++) { var p = points[idx]; if (idx >= allLen || idx < 0) { break; } if (isPointNull(p)) { if (connectNulls) { idx += dir; continue; } break; } if (idx === start) { ctx[dir > 0 ? 'moveTo' : 'lineTo'](p[0], p[1]); v2Copy(cp0, p); } else { if (smooth > 0) { var nextIdx = idx + dir; var nextP = points[nextIdx]; if (connectNulls) { // Find next point not null while (nextP && isPointNull(points[nextIdx])) { nextIdx += dir; nextP = points[nextIdx]; } } var ratioNextSeg = 0.5; var prevP = points[prevIdx]; var nextP = points[nextIdx]; // Last point if (!nextP || isPointNull(nextP)) { v2Copy(cp1, p); } else { // If next data is null in not connect case if (isPointNull(nextP) && !connectNulls) { nextP = p; } sub(v, nextP, prevP); var lenPrevSeg; var lenNextSeg; if (smoothMonotone === 'x' || smoothMonotone === 'y') { var dim = smoothMonotone === 'x' ? 0 : 1; lenPrevSeg = Math.abs(p[dim] - prevP[dim]); lenNextSeg = Math.abs(p[dim] - nextP[dim]); } else { lenPrevSeg = dist(p, prevP); lenNextSeg = dist(p, nextP); } // Use ratio of seg length ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg); scaleAndAdd$1(cp1, p, v, -smooth * (1 - ratioNextSeg)); } // Smooth constraint vec2Min(cp0, cp0, smoothMax); vec2Max(cp0, cp0, smoothMin); vec2Min(cp1, cp1, smoothMax); vec2Max(cp1, cp1, smoothMin); ctx.bezierCurveTo( cp0[0], cp0[1], cp1[0], cp1[1], p[0], p[1] ); // cp0 of next segment scaleAndAdd$1(cp0, p, v, smooth * ratioNextSeg); } else { ctx.lineTo(p[0], p[1]); } } prevIdx = idx; idx += dir; } return k; } function getBoundingBox(points, smoothConstraint) { var ptMin = [Infinity, Infinity]; var ptMax = [-Infinity, -Infinity]; if (smoothConstraint) { for (var i = 0; i < points.length; i++) { var pt = points[i]; if (pt[0] < ptMin[0]) { ptMin[0] = pt[0]; } if (pt[1] < ptMin[1]) { ptMin[1] = pt[1]; } if (pt[0] > ptMax[0]) { ptMax[0] = pt[0]; } if (pt[1] > ptMax[1]) { ptMax[1] = pt[1]; } } } return { min: smoothConstraint ? ptMin : ptMax, max: smoothConstraint ? ptMax : ptMin }; } var Polyline$1 = Path.extend({ type: 'ec-polyline', shape: { points: [], smooth: 0, smoothConstraint: true, smoothMonotone: null, connectNulls: false }, style: { fill: null, stroke: '#000' }, brush: fixClipWithShadow(Path.prototype.brush), buildPath: function (ctx, shape) { var points = shape.points; var i = 0; var len$$1 = points.length; var result = getBoundingBox(points, shape.smoothConstraint); if (shape.connectNulls) { // Must remove first and last null values avoid draw error in polygon for (; len$$1 > 0; len$$1--) { if (!isPointNull(points[len$$1 - 1])) { break; } } for (; i < len$$1; i++) { if (!isPointNull(points[i])) { break; } } } while (i < len$$1) { i += drawSegment( ctx, points, i, len$$1, len$$1, 1, result.min, result.max, shape.smooth, shape.smoothMonotone, shape.connectNulls ) + 1; } } }); var Polygon$1 = Path.extend({ type: 'ec-polygon', shape: { points: [], // Offset between stacked base points and points stackedOnPoints: [], smooth: 0, stackedOnSmooth: 0, smoothConstraint: true, smoothMonotone: null, connectNulls: false }, brush: fixClipWithShadow(Path.prototype.brush), buildPath: function (ctx, shape) { var points = shape.points; var stackedOnPoints = shape.stackedOnPoints; var i = 0; var len$$1 = points.length; var smoothMonotone = shape.smoothMonotone; var bbox = getBoundingBox(points, shape.smoothConstraint); var stackedOnBBox = getBoundingBox(stackedOnPoints, shape.smoothConstraint); if (shape.connectNulls) { // Must remove first and last null values avoid draw error in polygon for (; len$$1 > 0; len$$1--) { if (!isPointNull(points[len$$1 - 1])) { break; } } for (; i < len$$1; i++) { if (!isPointNull(points[i])) { break; } } } while (i < len$$1) { var k = drawSegment( ctx, points, i, len$$1, len$$1, 1, bbox.min, bbox.max, shape.smooth, smoothMonotone, shape.connectNulls ); drawSegment( ctx, stackedOnPoints, i + k - 1, k, len$$1, -1, stackedOnBBox.min, stackedOnBBox.max, shape.stackedOnSmooth, smoothMonotone, shape.connectNulls ); i += k + 1; ctx.closePath(); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME step not support polar function isPointsSame(points1, points2) { if (points1.length !== points2.length) { return; } for (var i = 0; i < points1.length; i++) { var p1 = points1[i]; var p2 = points2[i]; if (p1[0] !== p2[0] || p1[1] !== p2[1]) { return; } } return true; } function getSmooth(smooth) { return typeof (smooth) === 'number' ? smooth : (smooth ? 0.5 : 0); } function getAxisExtentWithGap(axis) { var extent = axis.getGlobalExtent(); if (axis.onBand) { // Remove extra 1px to avoid line miter in clipped edge var halfBandWidth = axis.getBandWidth() / 2 - 1; var dir = extent[1] > extent[0] ? 1 : -1; extent[0] += dir * halfBandWidth; extent[1] -= dir * halfBandWidth; } return extent; } /** * @param {module:echarts/coord/cartesian/Cartesian2D|module:echarts/coord/polar/Polar} coordSys * @param {module:echarts/data/List} data * @param {Object} dataCoordInfo * @param {Array.>} points */ function getStackedOnPoints(coordSys, data, dataCoordInfo) { if (!dataCoordInfo.valueDim) { return []; } var points = []; for (var idx = 0, len = data.count(); idx < len; idx++) { points.push(getStackedOnPoint(dataCoordInfo, coordSys, data, idx)); } return points; } function createGridClipShape(cartesian, hasAnimation, forSymbol, seriesModel) { var xExtent = getAxisExtentWithGap(cartesian.getAxis('x')); var yExtent = getAxisExtentWithGap(cartesian.getAxis('y')); var isHorizontal = cartesian.getBaseAxis().isHorizontal(); var x = Math.min(xExtent[0], xExtent[1]); var y = Math.min(yExtent[0], yExtent[1]); var width = Math.max(xExtent[0], xExtent[1]) - x; var height = Math.max(yExtent[0], yExtent[1]) - y; // Avoid float number rounding error for symbol on the edge of axis extent. // See #7913 and `test/dataZoom-clip.html`. if (forSymbol) { x -= 0.5; width += 0.5; y -= 0.5; height += 0.5; } else { var lineWidth = seriesModel.get('lineStyle.width') || 2; // Expand clip shape to avoid clipping when line value exceeds axis var expandSize = seriesModel.get('clipOverflow') ? lineWidth / 2 : Math.max(width, height); if (isHorizontal) { y -= expandSize; height += expandSize * 2; } else { x -= expandSize; width += expandSize * 2; } } var clipPath = new Rect({ shape: { x: x, y: y, width: width, height: height } }); if (hasAnimation) { clipPath.shape[isHorizontal ? 'width' : 'height'] = 0; initProps(clipPath, { shape: { width: width, height: height } }, seriesModel); } return clipPath; } function createPolarClipShape(polar, hasAnimation, forSymbol, seriesModel) { var angleAxis = polar.getAngleAxis(); var radiusAxis = polar.getRadiusAxis(); var radiusExtent = radiusAxis.getExtent().slice(); radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse(); var angleExtent = angleAxis.getExtent(); var RADIAN = Math.PI / 180; // Avoid float number rounding error for symbol on the edge of axis extent. if (forSymbol) { radiusExtent[0] -= 0.5; radiusExtent[1] += 0.5; } var clipPath = new Sector({ shape: { cx: round$1(polar.cx, 1), cy: round$1(polar.cy, 1), r0: round$1(radiusExtent[0], 1), r: round$1(radiusExtent[1], 1), startAngle: -angleExtent[0] * RADIAN, endAngle: -angleExtent[1] * RADIAN, clockwise: angleAxis.inverse } }); if (hasAnimation) { clipPath.shape.endAngle = -angleExtent[0] * RADIAN; initProps(clipPath, { shape: { endAngle: -angleExtent[1] * RADIAN } }, seriesModel); } return clipPath; } function createClipShape(coordSys, hasAnimation, forSymbol, seriesModel) { return coordSys.type === 'polar' ? createPolarClipShape(coordSys, hasAnimation, forSymbol, seriesModel) : createGridClipShape(coordSys, hasAnimation, forSymbol, seriesModel); } function turnPointsIntoStep(points, coordSys, stepTurnAt) { var baseAxis = coordSys.getBaseAxis(); var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1; var stepPoints = []; for (var i = 0; i < points.length - 1; i++) { var nextPt = points[i + 1]; var pt = points[i]; stepPoints.push(pt); var stepPt = []; switch (stepTurnAt) { case 'end': stepPt[baseIndex] = nextPt[baseIndex]; stepPt[1 - baseIndex] = pt[1 - baseIndex]; // default is start stepPoints.push(stepPt); break; case 'middle': // default is start var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2; var stepPt2 = []; stepPt[baseIndex] = stepPt2[baseIndex] = middle; stepPt[1 - baseIndex] = pt[1 - baseIndex]; stepPt2[1 - baseIndex] = nextPt[1 - baseIndex]; stepPoints.push(stepPt); stepPoints.push(stepPt2); break; default: stepPt[baseIndex] = pt[baseIndex]; stepPt[1 - baseIndex] = nextPt[1 - baseIndex]; // default is start stepPoints.push(stepPt); } } // Last points points[i] && stepPoints.push(points[i]); return stepPoints; } function getVisualGradient(data, coordSys) { var visualMetaList = data.getVisual('visualMeta'); if (!visualMetaList || !visualMetaList.length || !data.count()) { // When data.count() is 0, gradient range can not be calculated. return; } if (coordSys.type !== 'cartesian2d') { if (__DEV__) { console.warn('Visual map on line style is only supported on cartesian2d.'); } return; } var coordDim; var visualMeta; for (var i = visualMetaList.length - 1; i >= 0; i--) { var dimIndex = visualMetaList[i].dimension; var dimName = data.dimensions[dimIndex]; var dimInfo = data.getDimensionInfo(dimName); coordDim = dimInfo && dimInfo.coordDim; // Can only be x or y if (coordDim === 'x' || coordDim === 'y') { visualMeta = visualMetaList[i]; break; } } if (!visualMeta) { if (__DEV__) { console.warn('Visual map on line style only support x or y dimension.'); } return; } // If the area to be rendered is bigger than area defined by LinearGradient, // the canvas spec prescribes that the color of the first stop and the last // stop should be used. But if two stops are added at offset 0, in effect // browsers use the color of the second stop to render area outside // LinearGradient. So we can only infinitesimally extend area defined in // LinearGradient to render `outerColors`. var axis = coordSys.getAxis(coordDim); // dataToCoor mapping may not be linear, but must be monotonic. var colorStops = map(visualMeta.stops, function (stop) { return { coord: axis.toGlobalCoord(axis.dataToCoord(stop.value)), color: stop.color }; }); var stopLen = colorStops.length; var outerColors = visualMeta.outerColors.slice(); if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) { colorStops.reverse(); outerColors.reverse(); } var tinyExtent = 10; // Arbitrary value: 10px var minCoord = colorStops[0].coord - tinyExtent; var maxCoord = colorStops[stopLen - 1].coord + tinyExtent; var coordSpan = maxCoord - minCoord; if (coordSpan < 1e-3) { return 'transparent'; } each$1(colorStops, function (stop) { stop.offset = (stop.coord - minCoord) / coordSpan; }); colorStops.push({ offset: stopLen ? colorStops[stopLen - 1].offset : 0.5, color: outerColors[1] || 'transparent' }); colorStops.unshift({ // notice colorStops.length have been changed. offset: stopLen ? colorStops[0].offset : 0.5, color: outerColors[0] || 'transparent' }); // zrUtil.each(colorStops, function (colorStop) { // // Make sure each offset has rounded px to avoid not sharp edge // colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start); // }); var gradient = new LinearGradient(0, 0, 0, 0, colorStops, true); gradient[coordDim] = minCoord; gradient[coordDim + '2'] = maxCoord; return gradient; } function getIsIgnoreFunc(seriesModel, data, coordSys) { var showAllSymbol = seriesModel.get('showAllSymbol'); var isAuto = showAllSymbol === 'auto'; if (showAllSymbol && !isAuto) { return; } var categoryAxis = coordSys.getAxesByScale('ordinal')[0]; if (!categoryAxis) { return; } // Note that category label interval strategy might bring some weird effect // in some scenario: users may wonder why some of the symbols are not // displayed. So we show all symbols as possible as we can. if (isAuto // Simplify the logic, do not determine label overlap here. && canShowAllSymbolForCategory(categoryAxis, data) ) { return; } // Otherwise follow the label interval strategy on category axis. var categoryDataDim = data.mapDimension(categoryAxis.dim); var labelMap = {}; each$1(categoryAxis.getViewLabels(), function (labelItem) { labelMap[labelItem.tickValue] = 1; }); return function (dataIndex) { return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex)); }; } function canShowAllSymbolForCategory(categoryAxis, data) { // In mose cases, line is monotonous on category axis, and the label size // is close with each other. So we check the symbol size and some of the // label size alone with the category axis to estimate whether all symbol // can be shown without overlap. var axisExtent = categoryAxis.getExtent(); var availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count(); isNaN(availSize) && (availSize = 0); // 0/0 is NaN. // Sampling some points, max 5. var dataLen = data.count(); var step = Math.max(1, Math.round(dataLen / 5)); for (var dataIndex = 0; dataIndex < dataLen; dataIndex += step) { if (SymbolClz$1.getSymbolSize( data, dataIndex // Only for cartesian, where `isHorizontal` exists. )[categoryAxis.isHorizontal() ? 1 : 0] // Empirical number * 1.5 > availSize ) { return false; } } return true; } Chart.extend({ type: 'line', init: function () { var lineGroup = new Group(); var symbolDraw = new SymbolDraw(); this.group.add(symbolDraw.group); this._symbolDraw = symbolDraw; this._lineGroup = lineGroup; }, render: function (seriesModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var group = this.group; var data = seriesModel.getData(); var lineStyleModel = seriesModel.getModel('lineStyle'); var areaStyleModel = seriesModel.getModel('areaStyle'); var points = data.mapArray(data.getItemLayout); var isCoordSysPolar = coordSys.type === 'polar'; var prevCoordSys = this._coordSys; var symbolDraw = this._symbolDraw; var polyline = this._polyline; var polygon = this._polygon; var lineGroup = this._lineGroup; var hasAnimation = seriesModel.get('animation'); var isAreaChart = !areaStyleModel.isEmpty(); var valueOrigin = areaStyleModel.get('origin'); var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin); var stackedOnPoints = getStackedOnPoints(coordSys, data, dataCoordInfo); var showSymbol = seriesModel.get('showSymbol'); var isIgnoreFunc = showSymbol && !isCoordSysPolar && getIsIgnoreFunc(seriesModel, data, coordSys); // Remove temporary symbols var oldData = this._data; oldData && oldData.eachItemGraphicEl(function (el, idx) { if (el.__temp) { group.remove(el); oldData.setItemGraphicEl(idx, null); } }); // Remove previous created symbols if showSymbol changed to false if (!showSymbol) { symbolDraw.remove(); } group.add(lineGroup); // FIXME step not support polar var step = !isCoordSysPolar && seriesModel.get('step'); // Initialization animation or coordinate system changed if ( !(polyline && prevCoordSys.type === coordSys.type && step === this._step) ) { showSymbol && symbolDraw.updateData(data, { isIgnore: isIgnoreFunc, clipShape: createClipShape(coordSys, false, true, seriesModel) }); if (step) { // TODO If stacked series is not step points = turnPointsIntoStep(points, coordSys, step); stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step); } polyline = this._newPolyline(points, coordSys, hasAnimation); if (isAreaChart) { polygon = this._newPolygon( points, stackedOnPoints, coordSys, hasAnimation ); } lineGroup.setClipPath(createClipShape(coordSys, true, false, seriesModel)); } else { if (isAreaChart && !polygon) { // If areaStyle is added polygon = this._newPolygon( points, stackedOnPoints, coordSys, hasAnimation ); } else if (polygon && !isAreaChart) { // If areaStyle is removed lineGroup.remove(polygon); polygon = this._polygon = null; } // Update clipPath lineGroup.setClipPath(createClipShape(coordSys, false, false, seriesModel)); // Always update, or it is wrong in the case turning on legend // because points are not changed showSymbol && symbolDraw.updateData(data, { isIgnore: isIgnoreFunc, clipShape: createClipShape(coordSys, false, true, seriesModel) }); // Stop symbol animation and sync with line points // FIXME performance? data.eachItemGraphicEl(function (el) { el.stopAnimation(true); }); // In the case data zoom triggerred refreshing frequently // Data may not change if line has a category axis. So it should animate nothing if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points) ) { if (hasAnimation) { this._updateAnimation( data, stackedOnPoints, coordSys, api, step, valueOrigin ); } else { // Not do it in update with animation if (step) { // TODO If stacked series is not step points = turnPointsIntoStep(points, coordSys, step); stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step); } polyline.setShape({ points: points }); polygon && polygon.setShape({ points: points, stackedOnPoints: stackedOnPoints }); } } } var visualColor = getVisualGradient(data, coordSys) || data.getVisual('color'); polyline.useStyle(defaults( // Use color in lineStyle first lineStyleModel.getLineStyle(), { fill: 'none', stroke: visualColor, lineJoin: 'bevel' } )); var smooth = seriesModel.get('smooth'); smooth = getSmooth(seriesModel.get('smooth')); polyline.setShape({ smooth: smooth, smoothMonotone: seriesModel.get('smoothMonotone'), connectNulls: seriesModel.get('connectNulls') }); if (polygon) { var stackedOnSeries = data.getCalculationInfo('stackedOnSeries'); var stackedOnSmooth = 0; polygon.useStyle(defaults( areaStyleModel.getAreaStyle(), { fill: visualColor, opacity: 0.7, lineJoin: 'bevel' } )); if (stackedOnSeries) { stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth')); } polygon.setShape({ smooth: smooth, stackedOnSmooth: stackedOnSmooth, smoothMonotone: seriesModel.get('smoothMonotone'), connectNulls: seriesModel.get('connectNulls') }); } this._data = data; // Save the coordinate system for transition animation when data changed this._coordSys = coordSys; this._stackedOnPoints = stackedOnPoints; this._points = points; this._step = step; this._valueOrigin = valueOrigin; }, dispose: function () {}, highlight: function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var dataIndex = queryDataIndex(data, payload); if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) { var symbol = data.getItemGraphicEl(dataIndex); if (!symbol) { // Create a temporary symbol if it is not exists var pt = data.getItemLayout(dataIndex); if (!pt) { // Null data return; } symbol = new SymbolClz$1(data, dataIndex); symbol.position = pt; symbol.setZ( seriesModel.get('zlevel'), seriesModel.get('z') ); symbol.ignore = isNaN(pt[0]) || isNaN(pt[1]); symbol.__temp = true; data.setItemGraphicEl(dataIndex, symbol); // Stop scale animation symbol.stopSymbolAnimation(true); this.group.add(symbol); } symbol.highlight(); } else { // Highlight whole series Chart.prototype.highlight.call( this, seriesModel, ecModel, api, payload ); } }, downplay: function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var dataIndex = queryDataIndex(data, payload); if (dataIndex != null && dataIndex >= 0) { var symbol = data.getItemGraphicEl(dataIndex); if (symbol) { if (symbol.__temp) { data.setItemGraphicEl(dataIndex, null); this.group.remove(symbol); } else { symbol.downplay(); } } } else { // FIXME // can not downplay completely. // Downplay whole series Chart.prototype.downplay.call( this, seriesModel, ecModel, api, payload ); } }, /** * @param {module:zrender/container/Group} group * @param {Array.>} points * @private */ _newPolyline: function (points) { var polyline = this._polyline; // Remove previous created polyline if (polyline) { this._lineGroup.remove(polyline); } polyline = new Polyline$1({ shape: { points: points }, silent: true, z2: 10 }); this._lineGroup.add(polyline); this._polyline = polyline; return polyline; }, /** * @param {module:zrender/container/Group} group * @param {Array.>} stackedOnPoints * @param {Array.>} points * @private */ _newPolygon: function (points, stackedOnPoints) { var polygon = this._polygon; // Remove previous created polygon if (polygon) { this._lineGroup.remove(polygon); } polygon = new Polygon$1({ shape: { points: points, stackedOnPoints: stackedOnPoints }, silent: true }); this._lineGroup.add(polygon); this._polygon = polygon; return polygon; }, /** * @private */ // FIXME Two value axis _updateAnimation: function (data, stackedOnPoints, coordSys, api, step, valueOrigin) { var polyline = this._polyline; var polygon = this._polygon; var seriesModel = data.hostModel; var diff = lineAnimationDiff( this._data, data, this._stackedOnPoints, stackedOnPoints, this._coordSys, coordSys, this._valueOrigin, valueOrigin ); var current = diff.current; var stackedOnCurrent = diff.stackedOnCurrent; var next = diff.next; var stackedOnNext = diff.stackedOnNext; if (step) { // TODO If stacked series is not step current = turnPointsIntoStep(diff.current, coordSys, step); stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step); next = turnPointsIntoStep(diff.next, coordSys, step); stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step); } // `diff.current` is subset of `current` (which should be ensured by // turnPointsIntoStep), so points in `__points` can be updated when // points in `current` are update during animation. polyline.shape.__points = diff.current; polyline.shape.points = current; updateProps(polyline, { shape: { points: next } }, seriesModel); if (polygon) { polygon.setShape({ points: current, stackedOnPoints: stackedOnCurrent }); updateProps(polygon, { shape: { points: next, stackedOnPoints: stackedOnNext } }, seriesModel); } var updatedDataInfo = []; var diffStatus = diff.status; for (var i = 0; i < diffStatus.length; i++) { var cmd = diffStatus[i].cmd; if (cmd === '=') { var el = data.getItemGraphicEl(diffStatus[i].idx1); if (el) { updatedDataInfo.push({ el: el, ptIdx: i // Index of points }); } } } if (polyline.animators && polyline.animators.length) { polyline.animators[0].during(function () { for (var i = 0; i < updatedDataInfo.length; i++) { var el = updatedDataInfo[i].el; el.attr('position', polyline.shape.__points[updatedDataInfo[i].ptIdx]); } }); } }, remove: function (ecModel) { var group = this.group; var oldData = this._data; this._lineGroup.removeAll(); this._symbolDraw.remove(true); // Remove temporary created elements when highlighting oldData && oldData.eachItemGraphicEl(function (el, idx) { if (el.__temp) { group.remove(el); oldData.setItemGraphicEl(idx, null); } }); this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._data = null; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol) { // Encoding visual for all series include which is filtered for legend drawing return { seriesType: seriesType, // For legend. performRawSeries: true, reset: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolType = seriesModel.get('symbol'); var symbolSize = seriesModel.get('symbolSize'); var keepAspect = seriesModel.get('symbolKeepAspect'); var hasSymbolTypeCallback = isFunction$1(symbolType); var hasSymbolSizeCallback = isFunction$1(symbolSize); var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback; var seriesSymbol = (!hasSymbolTypeCallback && symbolType) ? symbolType : defaultSymbolType; var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null; data.setVisual({ legendSymbol: legendSymbol || seriesSymbol, // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding // to bring trouble, we do not pick a reuslt from one of its calling on data item here, // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in // some cases but generally it is not recommanded. symbol: seriesSymbol, symbolSize: seriesSymbolSize, symbolKeepAspect: keepAspect }); // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } function dataEach(data, idx) { if (hasCallback) { var rawValue = seriesModel.getRawValue(idx); var params = seriesModel.getDataParams(idx); hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params)); hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params)); } if (data.hasItemOption) { var itemModel = data.getItemModel(idx); var itemSymbolType = itemModel.getShallow('symbol', true); var itemSymbolSize = itemModel.getShallow('symbolSize', true); var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol if (itemSymbolType != null) { data.setItemVisual(idx, 'symbol', itemSymbolType); } if (itemSymbolSize != null) { // PENDING Transform symbolSize ? data.setItemVisual(idx, 'symbolSize', itemSymbolSize); } if (itemSymbolKeepAspect != null) { data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect); } } } return { dataEach: (data.hasItemOption || hasCallback) ? dataEach : null }; } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var pointsLayout = function (seriesType) { return { seriesType: seriesType, plan: createRenderPlanner(), reset: function (seriesModel) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; var pipelineContext = seriesModel.pipelineContext; var isLargeRender = pipelineContext.large; if (!coordSys) { return; } var dims = map(coordSys.dimensions, function (dim) { return data.mapDimension(dim); }).slice(0, 2); var dimLen = dims.length; var stackResultDim = data.getCalculationInfo('stackResultDimension'); if (isDimensionStacked(data, dims[0] /*, dims[1]*/)) { dims[0] = stackResultDim; } if (isDimensionStacked(data, dims[1] /*, dims[0]*/)) { dims[1] = stackResultDim; } function progress(params, data) { var segCount = params.end - params.start; var points = isLargeRender && new Float32Array(segCount * dimLen); for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) { var point; if (dimLen === 1) { var x = data.get(dims[0], i); point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut); } else { var x = tmpIn[0] = data.get(dims[0], i); var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.}, not undefined to avoid if...else... statement point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut); } if (isLargeRender) { points[offset++] = point ? point[0] : NaN; points[offset++] = point ? point[1] : NaN; } else { data.setItemLayout(i, (point && point.slice()) || [NaN, NaN]); } } isLargeRender && data.setLayout('symbolPoints', points); } return dimLen && {progress: progress}; } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var samplers = { average: function (frame) { var sum = 0; var count = 0; for (var i = 0; i < frame.length; i++) { if (!isNaN(frame[i])) { sum += frame[i]; count++; } } // Return NaN if count is 0 return count === 0 ? NaN : sum / count; }, sum: function (frame) { var sum = 0; for (var i = 0; i < frame.length; i++) { // Ignore NaN sum += frame[i] || 0; } return sum; }, max: function (frame) { var max = -Infinity; for (var i = 0; i < frame.length; i++) { frame[i] > max && (max = frame[i]); } // NaN will cause illegal axis extent. return isFinite(max) ? max : NaN; }, min: function (frame) { var min = Infinity; for (var i = 0; i < frame.length; i++) { frame[i] < min && (min = frame[i]); } // NaN will cause illegal axis extent. return isFinite(min) ? min : NaN; }, // TODO // Median nearest: function (frame) { return frame[0]; } }; var indexSampler = function (frame, value) { return Math.round(frame.length / 2); }; var dataSample = function (seriesType) { return { seriesType: seriesType, modifyOutputEnd: true, reset: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var sampling = seriesModel.get('sampling'); var coordSys = seriesModel.coordinateSystem; // Only cartesian2d support down sampling if (coordSys.type === 'cartesian2d' && sampling) { var baseAxis = coordSys.getBaseAxis(); var valueAxis = coordSys.getOtherAxis(baseAxis); var extent = baseAxis.getExtent(); // Coordinste system has been resized var size = extent[1] - extent[0]; var rate = Math.round(data.count() / size); if (rate > 1) { var sampler; if (typeof sampling === 'string') { sampler = samplers[sampling]; } else if (typeof sampling === 'function') { sampler = sampling; } if (sampler) { // Only support sample the first dim mapped from value axis. seriesModel.setData(data.downSample( data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler )); } } } } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Cartesian coordinate system * @module echarts/coord/Cartesian * */ function dimAxisMapper(dim) { return this._axes[dim]; } /** * @alias module:echarts/coord/Cartesian * @constructor */ var Cartesian = function (name) { this._axes = {}; this._dimList = []; /** * @type {string} */ this.name = name || ''; }; Cartesian.prototype = { constructor: Cartesian, type: 'cartesian', /** * Get axis * @param {number|string} dim * @return {module:echarts/coord/Cartesian~Axis} */ getAxis: function (dim) { return this._axes[dim]; }, /** * Get axes list * @return {Array.} */ getAxes: function () { return map(this._dimList, dimAxisMapper, this); }, /** * Get axes list by given scale type */ getAxesByScale: function (scaleType) { scaleType = scaleType.toLowerCase(); return filter( this.getAxes(), function (axis) { return axis.scale.type === scaleType; } ); }, /** * Add axis * @param {module:echarts/coord/Cartesian.Axis} */ addAxis: function (axis) { var dim = axis.dim; this._axes[dim] = axis; this._dimList.push(dim); }, /** * Convert data to coord in nd space * @param {Array.|Object.} val * @return {Array.|Object.} */ dataToCoord: function (val) { return this._dataCoordConvert(val, 'dataToCoord'); }, /** * Convert coord in nd space to data * @param {Array.|Object.} val * @return {Array.|Object.} */ coordToData: function (val) { return this._dataCoordConvert(val, 'coordToData'); }, _dataCoordConvert: function (input, method) { var dimList = this._dimList; var output = input instanceof Array ? [] : {}; for (var i = 0; i < dimList.length; i++) { var dim = dimList[i]; var axis = this._axes[dim]; output[dim] = axis[method](input[dim]); } return output; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function Cartesian2D(name) { Cartesian.call(this, name); } Cartesian2D.prototype = { constructor: Cartesian2D, type: 'cartesian2d', /** * @type {Array.} * @readOnly */ dimensions: ['x', 'y'], /** * Base axis will be used on stacking. * * @return {module:echarts/coord/cartesian/Axis2D} */ getBaseAxis: function () { return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x'); }, /** * If contain point * @param {Array.} point * @return {boolean} */ containPoint: function (point) { var axisX = this.getAxis('x'); var axisY = this.getAxis('y'); return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1])); }, /** * If contain data * @param {Array.} data * @return {boolean} */ containData: function (data) { return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]); }, /** * @param {Array.} data * @param {Array.} out * @return {Array.} */ dataToPoint: function (data, reserved, out) { var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); out = out || []; out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(data[0])); out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(data[1])); return out; }, /** * @param {Array.} data * @param {Array.} out * @return {Array.} */ clampData: function (data, out) { var xScale = this.getAxis('x').scale; var yScale = this.getAxis('y').scale; var xAxisExtent = xScale.getExtent(); var yAxisExtent = yScale.getExtent(); var x = xScale.parse(data[0]); var y = yScale.parse(data[1]); out = out || []; out[0] = Math.min( Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x), Math.max(xAxisExtent[0], xAxisExtent[1]) ); out[1] = Math.min( Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y), Math.max(yAxisExtent[0], yAxisExtent[1]) ); return out; }, /** * @param {Array.} point * @param {Array.} out * @return {Array.} */ pointToData: function (point, out) { var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); out = out || []; out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0])); out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1])); return out; }, /** * Get other axis * @param {module:echarts/coord/cartesian/Axis2D} axis */ getOtherAxis: function (axis) { return this.getAxis(axis.dim === 'x' ? 'y' : 'x'); } }; inherits(Cartesian2D, Cartesian); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Extend axis 2d * @constructor module:echarts/coord/cartesian/Axis2D * @extends {module:echarts/coord/cartesian/Axis} * @param {string} dim * @param {*} scale * @param {Array.} coordExtent * @param {string} axisType * @param {string} position */ var Axis2D = function (dim, scale, coordExtent, axisType, position) { Axis.call(this, dim, scale, coordExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = axisType || 'value'; /** * Axis position * - 'top' * - 'bottom' * - 'left' * - 'right' */ this.position = position || 'bottom'; }; Axis2D.prototype = { constructor: Axis2D, /** * Index of axis, can be used as key */ index: 0, /** * Implemented in . * @return {Array.} * If not on zero of other axis, return null/undefined. * If no axes, return an empty array. */ getAxesOnZeroOf: null, /** * Axis model * @param {module:echarts/coord/cartesian/AxisModel} */ model: null, isHorizontal: function () { var position = this.position; return position === 'top' || position === 'bottom'; }, /** * Each item cooresponds to this.getExtent(), which * means globalExtent[0] may greater than globalExtent[1], * unless `asc` is input. * * @param {boolean} [asc] * @return {Array.} */ getGlobalExtent: function (asc) { var ret = this.getExtent(); ret[0] = this.toGlobalCoord(ret[0]); ret[1] = this.toGlobalCoord(ret[1]); asc && ret[0] > ret[1] && ret.reverse(); return ret; }, getOtherAxis: function () { this.grid.getOtherAxis(); }, /** * @override */ pointToData: function (point, clamp) { return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp); }, /** * Transform global coord to local coord, * i.e. var localCoord = axis.toLocalCoord(80); * designate by module:echarts/coord/cartesian/Grid. * @type {Function} */ toLocalCoord: null, /** * Transform global coord to local coord, * i.e. var globalCoord = axis.toLocalCoord(40); * designate by module:echarts/coord/cartesian/Grid. * @type {Function} */ toGlobalCoord: null }; inherits(Axis2D, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var defaultOption = { show: true, zlevel: 0, z: 0, // Inverse the axis. inverse: false, // Axis name displayed. name: '', // 'start' | 'middle' | 'end' nameLocation: 'end', // By degree. By defualt auto rotate by nameLocation. nameRotate: null, nameTruncate: { maxWidth: null, ellipsis: '...', placeholder: '.' }, // Use global text style by default. nameTextStyle: {}, // The gap between axisName and axisLine. nameGap: 15, // Default `false` to support tooltip. silent: false, // Default `false` to avoid legacy user event listener fail. triggerEvent: false, tooltip: { show: false }, axisPointer: {}, axisLine: { show: true, onZero: true, onZeroAxisIndex: null, lineStyle: { color: '#333', width: 1, type: 'solid' }, // The arrow at both ends the the axis. symbol: ['none', 'none'], symbolSize: [10, 15] }, axisTick: { show: true, // Whether axisTick is inside the grid or outside the grid. inside: false, // The length of axisTick. length: 5, lineStyle: { width: 1 } }, axisLabel: { show: true, // Whether axisLabel is inside the grid or outside the grid. inside: false, rotate: 0, // true | false | null/undefined (auto) showMinLabel: null, // true | false | null/undefined (auto) showMaxLabel: null, margin: 8, // formatter: null, fontSize: 12 }, splitLine: { show: true, lineStyle: { color: ['#ccc'], width: 1, type: 'solid' } }, splitArea: { show: false, areaStyle: { color: ['rgba(250,250,250,0.3)', 'rgba(200,200,200,0.3)'] } } }; var axisDefault = {}; axisDefault.categoryAxis = merge({ // The gap at both ends of the axis. For categoryAxis, boolean. boundaryGap: true, // Set false to faster category collection. // Only usefull in the case like: category is // ['2012-01-01', '2012-01-02', ...], where the input // data has been ensured not duplicate and is large data. // null means "auto": // if axis.data provided, do not deduplication, // else do deduplication. deduplication: null, // splitArea: { // show: false // }, splitLine: { show: false }, axisTick: { // If tick is align with label when boundaryGap is true alignWithLabel: false, interval: 'auto' }, axisLabel: { interval: 'auto' } }, defaultOption); axisDefault.valueAxis = merge({ // The gap at both ends of the axis. For value axis, [GAP, GAP], where // `GAP` can be an absolute pixel number (like `35`), or percent (like `'30%'`) boundaryGap: [0, 0], // TODO // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60] // Min value of the axis. can be: // + a number // + 'dataMin': use the min value in data. // + null/undefined: auto decide min value (consider pretty look and boundaryGap). // min: null, // Max value of the axis. can be: // + a number // + 'dataMax': use the max value in data. // + null/undefined: auto decide max value (consider pretty look and boundaryGap). // max: null, // Readonly prop, specifies start value of the range when using data zoom. // rangeStart: null // Readonly prop, specifies end value of the range when using data zoom. // rangeEnd: null // Optional value can be: // + `false`: always include value 0. // + `true`: the extent do not consider value 0. // scale: false, // AxisTick and axisLabel and splitLine are caculated based on splitNumber. splitNumber: 5 // Interval specifies the span of the ticks is mandatorily. // interval: null // Specify min interval when auto calculate tick interval. // minInterval: null // Specify max interval when auto calculate tick interval. // maxInterval: null }, defaultOption); axisDefault.timeAxis = defaults({ scale: true, min: 'dataMin', max: 'dataMax' }, axisDefault.valueAxis); axisDefault.logAxis = defaults({ scale: true, logBase: 10 }, axisDefault.valueAxis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME axisType is fixed ? var AXIS_TYPES = ['value', 'category', 'time', 'log']; /** * Generate sub axis model class * @param {string} axisName 'x' 'y' 'radius' 'angle' 'parallel' * @param {module:echarts/model/Component} BaseAxisModelClass * @param {Function} axisTypeDefaulter * @param {Object} [extraDefaultOption] */ var axisModelCreator = function (axisName, BaseAxisModelClass, axisTypeDefaulter, extraDefaultOption) { each$1(AXIS_TYPES, function (axisType) { BaseAxisModelClass.extend({ /** * @readOnly */ type: axisName + 'Axis.' + axisType, mergeDefaultAndTheme: function (option, ecModel) { var layoutMode = this.layoutMode; var inputPositionParams = layoutMode ? getLayoutParams(option) : {}; var themeModel = ecModel.getTheme(); merge(option, themeModel.get(axisType + 'Axis')); merge(option, this.getDefaultOption()); option.type = axisTypeDefaulter(axisName, option); if (layoutMode) { mergeLayoutParam(option, inputPositionParams, layoutMode); } }, /** * @override */ optionUpdated: function () { var thisOption = this.option; if (thisOption.type === 'category') { this.__ordinalMeta = OrdinalMeta.createByAxisModel(this); } }, /** * Should not be called before all of 'getInitailData' finished. * Because categories are collected during initializing data. */ getCategories: function (rawData) { var option = this.option; // FIXME // warning if called before all of 'getInitailData' finished. if (option.type === 'category') { if (rawData) { return option.data; } return this.__ordinalMeta.categories; } }, getOrdinalMeta: function () { return this.__ordinalMeta; }, defaultOption: mergeAll( [ {}, axisDefault[axisType + 'Axis'], extraDefaultOption ], true ) }); }); ComponentModel.registerSubTypeDefaulter( axisName + 'Axis', curry(axisTypeDefaulter, axisName) ); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisModel = ComponentModel.extend({ type: 'cartesian2dAxis', /** * @type {module:echarts/coord/cartesian/Axis2D} */ axis: null, /** * @override */ init: function () { AxisModel.superApply(this, 'init', arguments); this.resetRange(); }, /** * @override */ mergeOption: function () { AxisModel.superApply(this, 'mergeOption', arguments); this.resetRange(); }, /** * @override */ restoreData: function () { AxisModel.superApply(this, 'restoreData', arguments); this.resetRange(); }, /** * @override * @return {module:echarts/model/Component} */ getCoordSysModel: function () { return this.ecModel.queryComponents({ mainType: 'grid', index: this.option.gridIndex, id: this.option.gridId })[0]; } }); function getAxisType(axisDim, option) { // Default axis with data is category axis return option.type || (option.data ? 'category' : 'value'); } merge(AxisModel.prototype, axisModelCommonMixin); var extraOption = { // gridIndex: 0, // gridId: '', // Offset is for multiple axis on the same position offset: 0 }; axisModelCreator('x', AxisModel, getAxisType, extraOption); axisModelCreator('y', AxisModel, getAxisType, extraOption); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Grid 是在有直角坐标系的时候必须要存在的 // 所以这里也要被 Cartesian2D 依赖 ComponentModel.extend({ type: 'grid', dependencies: ['xAxis', 'yAxis'], layoutMode: 'box', /** * @type {module:echarts/coord/cartesian/Grid} */ coordinateSystem: null, defaultOption: { show: false, zlevel: 0, z: 0, left: '10%', top: 60, right: '10%', bottom: 60, // If grid size contain label containLabel: false, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, backgroundColor: 'rgba(0,0,0,0)', borderWidth: 1, borderColor: '#ccc' } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Grid is a region which contains at most 4 cartesian systems * * TODO Default cartesian */ // Depends on GridModel, AxisModel, which performs preprocess. /** * Check if the axis is used in the specified grid * @inner */ function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) { return axisModel.getCoordSysModel() === gridModel; } function Grid(gridModel, ecModel, api) { /** * @type {Object.} * @private */ this._coordsMap = {}; /** * @type {Array.} * @private */ this._coordsList = []; /** * @type {Object.>} * @private */ this._axesMap = {}; /** * @type {Array.} * @private */ this._axesList = []; this._initCartesian(gridModel, ecModel, api); this.model = gridModel; } var gridProto = Grid.prototype; gridProto.type = 'grid'; gridProto.axisPointerEnabled = true; gridProto.getRect = function () { return this._rect; }; gridProto.update = function (ecModel, api) { var axesMap = this._axesMap; this._updateScale(ecModel, this.model); each$1(axesMap.x, function (xAxis) { niceScaleExtent(xAxis.scale, xAxis.model); }); each$1(axesMap.y, function (yAxis) { niceScaleExtent(yAxis.scale, yAxis.model); }); // Key: axisDim_axisIndex, value: boolean, whether onZero target. var onZeroRecords = {}; each$1(axesMap.x, function (xAxis) { fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords); }); each$1(axesMap.y, function (yAxis) { fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords); }); // Resize again if containLabel is enabled // FIXME It may cause getting wrong grid size in data processing stage this.resize(this.model, api); }; function fixAxisOnZero(axesMap, otherAxisDim, axis, onZeroRecords) { axis.getAxesOnZeroOf = function () { // TODO: onZero of multiple axes. return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : []; }; // onZero can not be enabled in these two situations: // 1. When any other axis is a category axis. // 2. When no axis is cross 0 point. var otherAxes = axesMap[otherAxisDim]; var otherAxisOnZeroOf; var axisModel = axis.model; var onZero = axisModel.get('axisLine.onZero'); var onZeroAxisIndex = axisModel.get('axisLine.onZeroAxisIndex'); if (!onZero) { return; } // If target axis is specified. if (onZeroAxisIndex != null) { if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) { otherAxisOnZeroOf = otherAxes[onZeroAxisIndex]; } } else { // Find the first available other axis. for (var idx in otherAxes) { if (otherAxes.hasOwnProperty(idx) && canOnZeroToAxis(otherAxes[idx]) // Consider that two Y axes on one value axis, // if both onZero, the two Y axes overlap. && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])] ) { otherAxisOnZeroOf = otherAxes[idx]; break; } } } if (otherAxisOnZeroOf) { onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true; } function getOnZeroRecordKey(axis) { return axis.dim + '_' + axis.index; } } function canOnZeroToAxis(axis) { return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis); } /** * Resize the grid * @param {module:echarts/coord/cartesian/GridModel} gridModel * @param {module:echarts/ExtensionAPI} api */ gridProto.resize = function (gridModel, api, ignoreContainLabel) { var gridRect = getLayoutRect( gridModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); this._rect = gridRect; var axesList = this._axesList; adjustAxes(); // Minus label size if (!ignoreContainLabel && gridModel.get('containLabel')) { each$1(axesList, function (axis) { if (!axis.model.get('axisLabel.inside')) { var labelUnionRect = estimateLabelUnionRect(axis); if (labelUnionRect) { var dim = axis.isHorizontal() ? 'height' : 'width'; var margin = axis.model.get('axisLabel.margin'); gridRect[dim] -= labelUnionRect[dim] + margin; if (axis.position === 'top') { gridRect.y += labelUnionRect.height + margin; } else if (axis.position === 'left') { gridRect.x += labelUnionRect.width + margin; } } } }); adjustAxes(); } function adjustAxes() { each$1(axesList, function (axis) { var isHorizontal = axis.isHorizontal(); var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height]; var idx = axis.inverse ? 1 : 0; axis.setExtent(extent[idx], extent[1 - idx]); updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y); }); } }; /** * @param {string} axisType * @param {number} [axisIndex] */ gridProto.getAxis = function (axisType, axisIndex) { var axesMapOnDim = this._axesMap[axisType]; if (axesMapOnDim != null) { if (axisIndex == null) { // Find first axis for (var name in axesMapOnDim) { if (axesMapOnDim.hasOwnProperty(name)) { return axesMapOnDim[name]; } } } return axesMapOnDim[axisIndex]; } }; /** * @return {Array.} */ gridProto.getAxes = function () { return this._axesList.slice(); }; /** * Usage: * grid.getCartesian(xAxisIndex, yAxisIndex); * grid.getCartesian(xAxisIndex); * grid.getCartesian(null, yAxisIndex); * grid.getCartesian({xAxisIndex: ..., yAxisIndex: ...}); * * @param {number|Object} [xAxisIndex] * @param {number} [yAxisIndex] */ gridProto.getCartesian = function (xAxisIndex, yAxisIndex) { if (xAxisIndex != null && yAxisIndex != null) { var key = 'x' + xAxisIndex + 'y' + yAxisIndex; return this._coordsMap[key]; } if (isObject$1(xAxisIndex)) { yAxisIndex = xAxisIndex.yAxisIndex; xAxisIndex = xAxisIndex.xAxisIndex; } // When only xAxisIndex or yAxisIndex given, find its first cartesian. for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) { if (coordList[i].getAxis('x').index === xAxisIndex || coordList[i].getAxis('y').index === yAxisIndex ) { return coordList[i]; } } }; gridProto.getCartesians = function () { return this._coordsList.slice(); }; /** * @implements * see {module:echarts/CoodinateSystem} */ gridProto.convertToPixel = function (ecModel, finder, value) { var target = this._findConvertTarget(ecModel, finder); return target.cartesian ? target.cartesian.dataToPoint(value) : target.axis ? target.axis.toGlobalCoord(target.axis.dataToCoord(value)) : null; }; /** * @implements * see {module:echarts/CoodinateSystem} */ gridProto.convertFromPixel = function (ecModel, finder, value) { var target = this._findConvertTarget(ecModel, finder); return target.cartesian ? target.cartesian.pointToData(value) : target.axis ? target.axis.coordToData(target.axis.toLocalCoord(value)) : null; }; /** * @inner */ gridProto._findConvertTarget = function (ecModel, finder) { var seriesModel = finder.seriesModel; var xAxisModel = finder.xAxisModel || (seriesModel && seriesModel.getReferringComponents('xAxis')[0]); var yAxisModel = finder.yAxisModel || (seriesModel && seriesModel.getReferringComponents('yAxis')[0]); var gridModel = finder.gridModel; var coordsList = this._coordsList; var cartesian; var axis; if (seriesModel) { cartesian = seriesModel.coordinateSystem; indexOf(coordsList, cartesian) < 0 && (cartesian = null); } else if (xAxisModel && yAxisModel) { cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex); } else if (xAxisModel) { axis = this.getAxis('x', xAxisModel.componentIndex); } else if (yAxisModel) { axis = this.getAxis('y', yAxisModel.componentIndex); } // Lowest priority. else if (gridModel) { var grid = gridModel.coordinateSystem; if (grid === this) { cartesian = this._coordsList[0]; } } return {cartesian: cartesian, axis: axis}; }; /** * @implements * see {module:echarts/CoodinateSystem} */ gridProto.containPoint = function (point) { var coord = this._coordsList[0]; if (coord) { return coord.containPoint(point); } }; /** * Initialize cartesian coordinate systems * @private */ gridProto._initCartesian = function (gridModel, ecModel, api) { var axisPositionUsed = { left: false, right: false, top: false, bottom: false }; var axesMap = { x: {}, y: {} }; var axesCount = { x: 0, y: 0 }; /// Create axis ecModel.eachComponent('xAxis', createAxisCreator('x'), this); ecModel.eachComponent('yAxis', createAxisCreator('y'), this); if (!axesCount.x || !axesCount.y) { // Roll back when there no either x or y axis this._axesMap = {}; this._axesList = []; return; } this._axesMap = axesMap; /// Create cartesian2d each$1(axesMap.x, function (xAxis, xAxisIndex) { each$1(axesMap.y, function (yAxis, yAxisIndex) { var key = 'x' + xAxisIndex + 'y' + yAxisIndex; var cartesian = new Cartesian2D(key); cartesian.grid = this; cartesian.model = gridModel; this._coordsMap[key] = cartesian; this._coordsList.push(cartesian); cartesian.addAxis(xAxis); cartesian.addAxis(yAxis); }, this); }, this); function createAxisCreator(axisType) { return function (axisModel, idx) { if (!isAxisUsedInTheGrid(axisModel, gridModel, ecModel)) { return; } var axisPosition = axisModel.get('position'); if (axisType === 'x') { // Fix position if (axisPosition !== 'top' && axisPosition !== 'bottom') { // Default bottom of X axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom'; } } else { // Fix position if (axisPosition !== 'left' && axisPosition !== 'right') { // Default left of Y axisPosition = axisPositionUsed.left ? 'right' : 'left'; } } axisPositionUsed[axisPosition] = true; var axis = new Axis2D( axisType, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisPosition ); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); // Inject axis into axisModel axisModel.axis = axis; // Inject axisModel into axis axis.model = axisModel; // Inject grid info axis axis.grid = this; // Index of axis, can be used as key axis.index = idx; this._axesList.push(axis); axesMap[axisType][idx] = axis; axesCount[axisType]++; }; } }; /** * Update cartesian properties from series * @param {module:echarts/model/Option} option * @private */ gridProto._updateScale = function (ecModel, gridModel) { // Reset scale each$1(this._axesList, function (axis) { axis.scale.setExtent(Infinity, -Infinity); }); ecModel.eachSeries(function (seriesModel) { if (isCartesian2D(seriesModel)) { var axesModels = findAxesModels(seriesModel, ecModel); var xAxisModel = axesModels[0]; var yAxisModel = axesModels[1]; if (!isAxisUsedInTheGrid(xAxisModel, gridModel, ecModel) || !isAxisUsedInTheGrid(yAxisModel, gridModel, ecModel) ) { return; } var cartesian = this.getCartesian( xAxisModel.componentIndex, yAxisModel.componentIndex ); var data = seriesModel.getData(); var xAxis = cartesian.getAxis('x'); var yAxis = cartesian.getAxis('y'); if (data.type === 'list') { unionExtent(data, xAxis, seriesModel); unionExtent(data, yAxis, seriesModel); } } }, this); function unionExtent(data, axis, seriesModel) { each$1(data.mapDimension(axis.dim, true), function (dim) { axis.scale.unionExtentFromData( // For example, the extent of the orginal dimension // is [0.1, 0.5], the extent of the `stackResultDimension` // is [7, 9], the final extent should not include [0.1, 0.5]. data, getStackedDimension(data, dim) ); }); } }; /** * @param {string} [dim] 'x' or 'y' or 'auto' or null/undefined * @return {Object} {baseAxes: [], otherAxes: []} */ gridProto.getTooltipAxes = function (dim) { var baseAxes = []; var otherAxes = []; each$1(this.getCartesians(), function (cartesian) { var baseAxis = (dim != null && dim !== 'auto') ? cartesian.getAxis(dim) : cartesian.getBaseAxis(); var otherAxis = cartesian.getOtherAxis(baseAxis); indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis); indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis); }); return {baseAxes: baseAxes, otherAxes: otherAxes}; }; /** * @inner */ function updateAxisTransform(axis, coordBase) { var axisExtent = axis.getExtent(); var axisExtentSum = axisExtent[0] + axisExtent[1]; // Fast transform axis.toGlobalCoord = axis.dim === 'x' ? function (coord) { return coord + coordBase; } : function (coord) { return axisExtentSum - coord + coordBase; }; axis.toLocalCoord = axis.dim === 'x' ? function (coord) { return coord - coordBase; } : function (coord) { return axisExtentSum - coord + coordBase; }; } var axesTypes = ['xAxis', 'yAxis']; /** * @inner */ function findAxesModels(seriesModel, ecModel) { return map(axesTypes, function (axisType) { var axisModel = seriesModel.getReferringComponents(axisType)[0]; if (__DEV__) { if (!axisModel) { throw new Error(axisType + ' "' + retrieve( seriesModel.get(axisType + 'Index'), seriesModel.get(axisType + 'Id'), 0 ) + '" not found'); } } return axisModel; }); } /** * @inner */ function isCartesian2D(seriesModel) { return seriesModel.get('coordinateSystem') === 'cartesian2d'; } Grid.create = function (ecModel, api) { var grids = []; ecModel.eachComponent('grid', function (gridModel, idx) { var grid = new Grid(gridModel, ecModel, api); grid.name = 'grid_' + idx; // dataSampling requires axis extent, so resize // should be performed in create stage. grid.resize(gridModel, api, true); gridModel.coordinateSystem = grid; grids.push(grid); }); // Inject the coordinateSystems into seriesModel ecModel.eachSeries(function (seriesModel) { if (!isCartesian2D(seriesModel)) { return; } var axesModels = findAxesModels(seriesModel, ecModel); var xAxisModel = axesModels[0]; var yAxisModel = axesModels[1]; var gridModel = xAxisModel.getCoordSysModel(); if (__DEV__) { if (!gridModel) { throw new Error( 'Grid "' + retrieve( xAxisModel.get('gridIndex'), xAxisModel.get('gridId'), 0 ) + '" not found' ); } if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) { throw new Error('xAxis and yAxis must use the same grid'); } } var grid = gridModel.coordinateSystem; seriesModel.coordinateSystem = grid.getCartesian( xAxisModel.componentIndex, yAxisModel.componentIndex ); }); return grids; }; // For deciding which dimensions to use when creating list data Grid.dimensions = Grid.prototype.dimensions = Cartesian2D.prototype.dimensions; CoordinateSystemManager.register('cartesian2d', Grid); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI$2 = Math.PI; /** * A final axis is translated and rotated from a "standard axis". * So opt.position and opt.rotation is required. * * A standard axis is and axis from [0, 0] to [0, axisExtent[1]], * for example: (0, 0) ------------> (0, 50) * * nameDirection or tickDirection or labelDirection is 1 means tick * or label is below the standard axis, whereas is -1 means above * the standard axis. labelOffset means offset between label and axis, * which is useful when 'onZero', where axisLabel is in the grid and * label in outside grid. * * Tips: like always, * positive rotation represents anticlockwise, and negative rotation * represents clockwise. * The direction of position coordinate is the same as the direction * of screen coordinate. * * Do not need to consider axis 'inverse', which is auto processed by * axis extent. * * @param {module:zrender/container/Group} group * @param {Object} axisModel * @param {Object} opt Standard axis parameters. * @param {Array.} opt.position [x, y] * @param {number} opt.rotation by radian * @param {number} [opt.nameDirection=1] 1 or -1 Used when nameLocation is 'middle' or 'center'. * @param {number} [opt.tickDirection=1] 1 or -1 * @param {number} [opt.labelDirection=1] 1 or -1 * @param {number} [opt.labelOffset=0] Usefull when onZero. * @param {string} [opt.axisLabelShow] default get from axisModel. * @param {string} [opt.axisName] default get from axisModel. * @param {number} [opt.axisNameAvailableWidth] * @param {number} [opt.labelRotate] by degree, default get from axisModel. * @param {number} [opt.strokeContainThreshold] Default label interval when label * @param {number} [opt.nameTruncateMaxWidth] */ var AxisBuilder = function (axisModel, opt) { /** * @readOnly */ this.opt = opt; /** * @readOnly */ this.axisModel = axisModel; // Default value defaults( opt, { labelOffset: 0, nameDirection: 1, tickDirection: 1, labelDirection: 1, silent: true } ); /** * @readOnly */ this.group = new Group(); // FIXME Not use a seperate text group? var dumbGroup = new Group({ position: opt.position.slice(), rotation: opt.rotation }); // this.group.add(dumbGroup); // this._dumbGroup = dumbGroup; dumbGroup.updateTransform(); this._transform = dumbGroup.transform; this._dumbGroup = dumbGroup; }; AxisBuilder.prototype = { constructor: AxisBuilder, hasBuilder: function (name) { return !!builders[name]; }, add: function (name) { builders[name].call(this); }, getGroup: function () { return this.group; } }; var builders = { /** * @private */ axisLine: function () { var opt = this.opt; var axisModel = this.axisModel; if (!axisModel.get('axisLine.show')) { return; } var extent = this.axisModel.axis.getExtent(); var matrix = this._transform; var pt1 = [extent[0], 0]; var pt2 = [extent[1], 0]; if (matrix) { applyTransform(pt1, pt1, matrix); applyTransform(pt2, pt2, matrix); } var lineStyle = extend( { lineCap: 'round' }, axisModel.getModel('axisLine.lineStyle').getLineStyle() ); this.group.add(new Line({ // Id for animation anid: 'line', subPixelOptimize: true, shape: { x1: pt1[0], y1: pt1[1], x2: pt2[0], y2: pt2[1] }, style: lineStyle, strokeContainThreshold: opt.strokeContainThreshold || 5, silent: true, z2: 1 })); var arrows = axisModel.get('axisLine.symbol'); var arrowSize = axisModel.get('axisLine.symbolSize'); var arrowOffset = axisModel.get('axisLine.symbolOffset') || 0; if (typeof arrowOffset === 'number') { arrowOffset = [arrowOffset, arrowOffset]; } if (arrows != null) { if (typeof arrows === 'string') { // Use the same arrow for start and end point arrows = [arrows, arrows]; } if (typeof arrowSize === 'string' || typeof arrowSize === 'number' ) { // Use the same size for width and height arrowSize = [arrowSize, arrowSize]; } var symbolWidth = arrowSize[0]; var symbolHeight = arrowSize[1]; each$1([{ rotate: opt.rotation + Math.PI / 2, offset: arrowOffset[0], r: 0 }, { rotate: opt.rotation - Math.PI / 2, offset: arrowOffset[1], r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0]) + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1])) }], function (point, index) { if (arrows[index] !== 'none' && arrows[index] != null) { var symbol = createSymbol( arrows[index], -symbolWidth / 2, -symbolHeight / 2, symbolWidth, symbolHeight, lineStyle.stroke, true ); // Calculate arrow position with offset var r = point.r + point.offset; var pos = [ pt1[0] + r * Math.cos(opt.rotation), pt1[1] - r * Math.sin(opt.rotation) ]; symbol.attr({ rotation: point.rotate, position: pos, silent: true, z2: 11 }); this.group.add(symbol); } }, this); } }, /** * @private */ axisTickLabel: function () { var axisModel = this.axisModel; var opt = this.opt; var tickEls = buildAxisTick(this, axisModel, opt); var labelEls = buildAxisLabel(this, axisModel, opt); fixMinMaxLabelShow(axisModel, labelEls, tickEls); }, /** * @private */ axisName: function () { var opt = this.opt; var axisModel = this.axisModel; var name = retrieve(opt.axisName, axisModel.get('name')); if (!name) { return; } var nameLocation = axisModel.get('nameLocation'); var nameDirection = opt.nameDirection; var textStyleModel = axisModel.getModel('nameTextStyle'); var gap = axisModel.get('nameGap') || 0; var extent = this.axisModel.axis.getExtent(); var gapSignal = extent[0] > extent[1] ? -1 : 1; var pos = [ nameLocation === 'start' ? extent[0] - gapSignal * gap : nameLocation === 'end' ? extent[1] + gapSignal * gap : (extent[0] + extent[1]) / 2, // 'middle' // Reuse labelOffset. isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0 ]; var labelLayout; var nameRotation = axisModel.get('nameRotate'); if (nameRotation != null) { nameRotation = nameRotation * PI$2 / 180; // To radian. } var axisNameAvailableWidth; if (isNameLocationCenter(nameLocation)) { labelLayout = innerTextLayout( opt.rotation, nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis. nameDirection ); } else { labelLayout = endTextLayout( opt, nameLocation, nameRotation || 0, extent ); axisNameAvailableWidth = opt.axisNameAvailableWidth; if (axisNameAvailableWidth != null) { axisNameAvailableWidth = Math.abs( axisNameAvailableWidth / Math.sin(labelLayout.rotation) ); !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null); } } var textFont = textStyleModel.getFont(); var truncateOpt = axisModel.get('nameTruncate', true) || {}; var ellipsis = truncateOpt.ellipsis; var maxWidth = retrieve( opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth ); // FIXME // truncate rich text? (consider performance) var truncatedText = (ellipsis != null && maxWidth != null) ? truncateText$1( name, maxWidth, textFont, ellipsis, {minChar: 2, placeholder: truncateOpt.placeholder} ) : name; var tooltipOpt = axisModel.get('tooltip', true); var mainType = axisModel.mainType; var formatterParams = { componentType: mainType, name: name, $vars: ['name'] }; formatterParams[mainType + 'Index'] = axisModel.componentIndex; var textEl = new Text({ // Id for animation anid: 'name', __fullText: name, __truncatedText: truncatedText, position: pos, rotation: labelLayout.rotation, silent: isLabelSilent(axisModel), z2: 1, tooltip: (tooltipOpt && tooltipOpt.show) ? extend({ content: name, formatter: function () { return name; }, formatterParams: formatterParams }, tooltipOpt) : null }); setTextStyle(textEl.style, textStyleModel, { text: truncatedText, textFont: textFont, textFill: textStyleModel.getTextColor() || axisModel.get('axisLine.lineStyle.color'), textAlign: textStyleModel.get('align') || labelLayout.textAlign, textVerticalAlign: textStyleModel.get('verticalAlign') || labelLayout.textVerticalAlign }); if (axisModel.get('triggerEvent')) { textEl.eventData = makeAxisEventDataBase(axisModel); textEl.eventData.targetType = 'axisName'; textEl.eventData.name = name; } // FIXME this._dumbGroup.add(textEl); textEl.updateTransform(); this.group.add(textEl); textEl.decomposeTransform(); } }; var makeAxisEventDataBase = AxisBuilder.makeAxisEventDataBase = function (axisModel) { var eventData = { componentType: axisModel.mainType, componentIndex: axisModel.componentIndex }; eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex; return eventData; }; /** * @public * @static * @param {Object} opt * @param {number} axisRotation in radian * @param {number} textRotation in radian * @param {number} direction * @return {Object} { * rotation, // according to axis * textAlign, * textVerticalAlign * } */ var innerTextLayout = AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) { var rotationDiff = remRadian(textRotation - axisRotation); var textAlign; var textVerticalAlign; if (isRadianAroundZero(rotationDiff)) { // Label is parallel with axis line. textVerticalAlign = direction > 0 ? 'top' : 'bottom'; textAlign = 'center'; } else if (isRadianAroundZero(rotationDiff - PI$2)) { // Label is inverse parallel with axis line. textVerticalAlign = direction > 0 ? 'bottom' : 'top'; textAlign = 'center'; } else { textVerticalAlign = 'middle'; if (rotationDiff > 0 && rotationDiff < PI$2) { textAlign = direction > 0 ? 'right' : 'left'; } else { textAlign = direction > 0 ? 'left' : 'right'; } } return { rotation: rotationDiff, textAlign: textAlign, textVerticalAlign: textVerticalAlign }; }; function endTextLayout(opt, textPosition, textRotate, extent) { var rotationDiff = remRadian(textRotate - opt.rotation); var textAlign; var textVerticalAlign; var inverse = extent[0] > extent[1]; var onLeft = (textPosition === 'start' && !inverse) || (textPosition !== 'start' && inverse); if (isRadianAroundZero(rotationDiff - PI$2 / 2)) { textVerticalAlign = onLeft ? 'bottom' : 'top'; textAlign = 'center'; } else if (isRadianAroundZero(rotationDiff - PI$2 * 1.5)) { textVerticalAlign = onLeft ? 'top' : 'bottom'; textAlign = 'center'; } else { textVerticalAlign = 'middle'; if (rotationDiff < PI$2 * 1.5 && rotationDiff > PI$2 / 2) { textAlign = onLeft ? 'left' : 'right'; } else { textAlign = onLeft ? 'right' : 'left'; } } return { rotation: rotationDiff, textAlign: textAlign, textVerticalAlign: textVerticalAlign }; } var isLabelSilent = AxisBuilder.isLabelSilent = function (axisModel) { var tooltipOpt = axisModel.get('tooltip'); return axisModel.get('silent') // Consider mouse cursor, add these restrictions. || !( axisModel.get('triggerEvent') || (tooltipOpt && tooltipOpt.show) ); }; function fixMinMaxLabelShow(axisModel, labelEls, tickEls) { if (shouldShowAllLabels(axisModel.axis)) { return; } // If min or max are user set, we need to check // If the tick on min(max) are overlap on their neighbour tick // If they are overlapped, we need to hide the min(max) tick label var showMinLabel = axisModel.get('axisLabel.showMinLabel'); var showMaxLabel = axisModel.get('axisLabel.showMaxLabel'); // FIXME // Have not consider onBand yet, where tick els is more than label els. labelEls = labelEls || []; tickEls = tickEls || []; var firstLabel = labelEls[0]; var nextLabel = labelEls[1]; var lastLabel = labelEls[labelEls.length - 1]; var prevLabel = labelEls[labelEls.length - 2]; var firstTick = tickEls[0]; var nextTick = tickEls[1]; var lastTick = tickEls[tickEls.length - 1]; var prevTick = tickEls[tickEls.length - 2]; if (showMinLabel === false) { ignoreEl(firstLabel); ignoreEl(firstTick); } else if (isTwoLabelOverlapped(firstLabel, nextLabel)) { if (showMinLabel) { ignoreEl(nextLabel); ignoreEl(nextTick); } else { ignoreEl(firstLabel); ignoreEl(firstTick); } } if (showMaxLabel === false) { ignoreEl(lastLabel); ignoreEl(lastTick); } else if (isTwoLabelOverlapped(prevLabel, lastLabel)) { if (showMaxLabel) { ignoreEl(prevLabel); ignoreEl(prevTick); } else { ignoreEl(lastLabel); ignoreEl(lastTick); } } } function ignoreEl(el) { el && (el.ignore = true); } function isTwoLabelOverlapped(current, next, labelLayout) { // current and next has the same rotation. var firstRect = current && current.getBoundingRect().clone(); var nextRect = next && next.getBoundingRect().clone(); if (!firstRect || !nextRect) { return; } // When checking intersect of two rotated labels, we use mRotationBack // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`. var mRotationBack = identity([]); rotate(mRotationBack, mRotationBack, -current.rotation); firstRect.applyTransform(mul$1([], mRotationBack, current.getLocalTransform())); nextRect.applyTransform(mul$1([], mRotationBack, next.getLocalTransform())); return firstRect.intersect(nextRect); } function isNameLocationCenter(nameLocation) { return nameLocation === 'middle' || nameLocation === 'center'; } function buildAxisTick(axisBuilder, axisModel, opt) { var axis = axisModel.axis; if (!axisModel.get('axisTick.show') || axis.scale.isBlank()) { return; } var tickModel = axisModel.getModel('axisTick'); var lineStyleModel = tickModel.getModel('lineStyle'); var tickLen = tickModel.get('length'); var ticksCoords = axis.getTicksCoords(); var pt1 = []; var pt2 = []; var matrix = axisBuilder._transform; var tickEls = []; for (var i = 0; i < ticksCoords.length; i++) { var tickCoord = ticksCoords[i].coord; pt1[0] = tickCoord; pt1[1] = 0; pt2[0] = tickCoord; pt2[1] = opt.tickDirection * tickLen; if (matrix) { applyTransform(pt1, pt1, matrix); applyTransform(pt2, pt2, matrix); } // Tick line, Not use group transform to have better line draw var tickEl = new Line({ // Id for animation anid: 'tick_' + ticksCoords[i].tickValue, subPixelOptimize: true, shape: { x1: pt1[0], y1: pt1[1], x2: pt2[0], y2: pt2[1] }, style: defaults( lineStyleModel.getLineStyle(), { stroke: axisModel.get('axisLine.lineStyle.color') } ), z2: 2, silent: true }); axisBuilder.group.add(tickEl); tickEls.push(tickEl); } return tickEls; } function buildAxisLabel(axisBuilder, axisModel, opt) { var axis = axisModel.axis; var show = retrieve(opt.axisLabelShow, axisModel.get('axisLabel.show')); if (!show || axis.scale.isBlank()) { return; } var labelModel = axisModel.getModel('axisLabel'); var labelMargin = labelModel.get('margin'); var labels = axis.getViewLabels(); // Special label rotate. var labelRotation = ( retrieve(opt.labelRotate, labelModel.get('rotate')) || 0 ) * PI$2 / 180; var labelLayout = innerTextLayout(opt.rotation, labelRotation, opt.labelDirection); var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true); var labelEls = []; var silent = isLabelSilent(axisModel); var triggerEvent = axisModel.get('triggerEvent'); each$1(labels, function (labelItem, index) { var tickValue = labelItem.tickValue; var formattedLabel = labelItem.formattedLabel; var rawLabel = labelItem.rawLabel; var itemLabelModel = labelModel; if (rawCategoryData && rawCategoryData[tickValue] && rawCategoryData[tickValue].textStyle) { itemLabelModel = new Model( rawCategoryData[tickValue].textStyle, labelModel, axisModel.ecModel ); } var textColor = itemLabelModel.getTextColor() || axisModel.get('axisLine.lineStyle.color'); var tickCoord = axis.dataToCoord(tickValue); var pos = [ tickCoord, opt.labelOffset + opt.labelDirection * labelMargin ]; var textEl = new Text({ // Id for animation anid: 'label_' + tickValue, position: pos, rotation: labelLayout.rotation, silent: silent, z2: 10 }); setTextStyle(textEl.style, itemLabelModel, { text: formattedLabel, textAlign: itemLabelModel.getShallow('align', true) || labelLayout.textAlign, textVerticalAlign: itemLabelModel.getShallow('verticalAlign', true) || itemLabelModel.getShallow('baseline', true) || labelLayout.textVerticalAlign, textFill: typeof textColor === 'function' ? textColor( // (1) In category axis with data zoom, tick is not the original // index of axis.data. So tick should not be exposed to user // in category axis. // (2) Compatible with previous version, which always use formatted label as // input. But in interval scale the formatted label is like '223,445', which // maked user repalce ','. So we modify it to return original val but remain // it as 'string' to avoid error in replacing. axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index ) : textColor }); // Pack data for mouse event if (triggerEvent) { textEl.eventData = makeAxisEventDataBase(axisModel); textEl.eventData.targetType = 'axisLabel'; textEl.eventData.value = rawLabel; } // FIXME axisBuilder._dumbGroup.add(textEl); textEl.updateTransform(); labelEls.push(textEl); axisBuilder.group.add(textEl); textEl.decomposeTransform(); }); return labelEls; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$6 = each$1; var curry$1 = curry; // Build axisPointerModel, mergin tooltip.axisPointer model for each axis. // allAxesInfo should be updated when setOption performed. function collect(ecModel, api) { var result = { /** * key: makeKey(axis.model) * value: { * axis, * coordSys, * axisPointerModel, * triggerTooltip, * involveSeries, * snap, * seriesModels, * seriesDataCount * } */ axesInfo: {}, seriesInvolved: false, /** * key: makeKey(coordSys.model) * value: Object: key makeKey(axis.model), value: axisInfo */ coordSysAxesInfo: {}, coordSysMap: {} }; collectAxesInfo(result, ecModel, api); // Check seriesInvolved for performance, in case too many series in some chart. result.seriesInvolved && collectSeriesInfo(result, ecModel); return result; } function collectAxesInfo(result, ecModel, api) { var globalTooltipModel = ecModel.getComponent('tooltip'); var globalAxisPointerModel = ecModel.getComponent('axisPointer'); // links can only be set on global. var linksOption = globalAxisPointerModel.get('link', true) || []; var linkGroups = []; // Collect axes info. each$6(api.getCoordinateSystems(), function (coordSys) { // Some coordinate system do not support axes, like geo. if (!coordSys.axisPointerEnabled) { return; } var coordSysKey = makeKey(coordSys.model); var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {}; result.coordSysMap[coordSysKey] = coordSys; // Set tooltip (like 'cross') is a convienent way to show axisPointer // for user. So we enable seting tooltip on coordSys model. var coordSysModel = coordSys.model; var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel); each$6(coordSys.getAxes(), curry$1(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys. // Notice this case: coordSys is `grid` but not `cartesian2D` here. if (coordSys.getTooltipAxes && globalTooltipModel // If tooltip.showContent is set as false, tooltip will not // show but axisPointer will show as normal. && baseTooltipModel.get('show') ) { // Compatible with previous logic. But series.tooltip.trigger: 'axis' // or series.data[n].tooltip.trigger: 'axis' are not support any more. var triggerAxis = baseTooltipModel.get('trigger') === 'axis'; var cross = baseTooltipModel.get('axisPointer.type') === 'cross'; var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get('axisPointer.axis')); if (triggerAxis || cross) { each$6(tooltipAxes.baseAxes, curry$1( saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis )); } if (cross) { each$6(tooltipAxes.otherAxes, curry$1(saveTooltipAxisInfo, 'cross', false)); } } // fromTooltip: true | false | 'cross' // triggerTooltip: true | false | null function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) { var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel); var axisPointerShow = axisPointerModel.get('show'); if (!axisPointerShow || ( axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerModel) )) { return; } if (triggerTooltip == null) { triggerTooltip = axisPointerModel.get('triggerTooltip'); } axisPointerModel = fromTooltip ? makeAxisPointerModel( axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip ) : axisPointerModel; var snap = axisPointerModel.get('snap'); var key = makeKey(axis.model); var involveSeries = triggerTooltip || snap || axis.type === 'category'; // If result.axesInfo[key] exist, override it (tooltip has higher priority). var axisInfo = result.axesInfo[key] = { key: key, axis: axis, coordSys: coordSys, axisPointerModel: axisPointerModel, triggerTooltip: triggerTooltip, involveSeries: involveSeries, snap: snap, useHandle: isHandleTrigger(axisPointerModel), seriesModels: [] }; axesInfoInCoordSys[key] = axisInfo; result.seriesInvolved |= involveSeries; var groupIndex = getLinkGroupIndex(linksOption, axis); if (groupIndex != null) { var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = {axesInfo: {}}); linkGroup.axesInfo[key] = axisInfo; linkGroup.mapper = linksOption[groupIndex].mapper; axisInfo.linkGroup = linkGroup; } } }); } function makeAxisPointerModel( axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip ) { var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer'); var volatileOption = {}; each$6( [ 'type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z' ], function (field) { volatileOption[field] = clone(tooltipAxisPointerModel.get(field)); } ); // category axis do not auto snap, otherwise some tick that do not // has value can not be hovered. value/time/log axis default snap if // triggered from tooltip and trigger tooltip. volatileOption.snap = axis.type !== 'category' && !!triggerTooltip; // Compatibel with previous behavior, tooltip axis do not show label by default. // Only these properties can be overrided from tooltip to axisPointer. if (tooltipAxisPointerModel.get('type') === 'cross') { volatileOption.type = 'line'; } var labelOption = volatileOption.label || (volatileOption.label = {}); // Follow the convention, do not show label when triggered by tooltip by default. labelOption.show == null && (labelOption.show = false); if (fromTooltip === 'cross') { // When 'cross', both axes show labels. var tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get('label.show'); labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true; // If triggerTooltip, this is a base axis, which should better not use cross style // (cross style is dashed by default) if (!triggerTooltip) { var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle'); crossStyle && defaults(labelOption, crossStyle.textStyle); } } return axis.model.getModel( 'axisPointer', new Model(volatileOption, globalAxisPointerModel, ecModel) ); } function collectSeriesInfo(result, ecModel) { // Prepare data for axis trigger ecModel.eachSeries(function (seriesModel) { // Notice this case: this coordSys is `cartesian2D` but not `grid`. var coordSys = seriesModel.coordinateSystem; var seriesTooltipTrigger = seriesModel.get('tooltip.trigger', true); var seriesTooltipShow = seriesModel.get('tooltip.show', true); if (!coordSys || seriesTooltipTrigger === 'none' || seriesTooltipTrigger === false || seriesTooltipTrigger === 'item' || seriesTooltipShow === false || seriesModel.get('axisPointer.show', true) === false ) { return; } each$6(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) { var axis = axisInfo.axis; if (coordSys.getAxis(axis.dim) === axis) { axisInfo.seriesModels.push(seriesModel); axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0); axisInfo.seriesDataCount += seriesModel.getData().count(); } }); }, this); } /** * For example: * { * axisPointer: { * links: [{ * xAxisIndex: [2, 4], * yAxisIndex: 'all' * }, { * xAxisId: ['a5', 'a7'], * xAxisName: 'xxx' * }] * } * } */ function getLinkGroupIndex(linksOption, axis) { var axisModel = axis.model; var dim = axis.dim; for (var i = 0; i < linksOption.length; i++) { var linkOption = linksOption[i] || {}; if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id) || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex) || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name) ) { return i; } } } function checkPropInLink(linkPropValue, axisPropValue) { return linkPropValue === 'all' || (isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0) || linkPropValue === axisPropValue; } function fixValue(axisModel) { var axisInfo = getAxisInfo(axisModel); if (!axisInfo) { return; } var axisPointerModel = axisInfo.axisPointerModel; var scale = axisInfo.axis.scale; var option = axisPointerModel.option; var status = axisPointerModel.get('status'); var value = axisPointerModel.get('value'); // Parse init value for category and time axis. if (value != null) { value = scale.parse(value); } var useHandle = isHandleTrigger(axisPointerModel); // If `handle` used, `axisPointer` will always be displayed, so value // and status should be initialized. if (status == null) { option.status = useHandle ? 'show' : 'hide'; } var extent = scale.getExtent().slice(); extent[0] > extent[1] && extent.reverse(); if (// Pick a value on axis when initializing. value == null // If both `handle` and `dataZoom` are used, value may be out of axis extent, // where we should re-pick a value to keep `handle` displaying normally. || value > extent[1] ) { // Make handle displayed on the end of the axis when init, which looks better. value = extent[1]; } if (value < extent[0]) { value = extent[0]; } option.value = value; if (useHandle) { option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show'; } } function getAxisInfo(axisModel) { var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo; return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)]; } function getAxisPointerModel(axisModel) { var axisInfo = getAxisInfo(axisModel); return axisInfo && axisInfo.axisPointerModel; } function isHandleTrigger(axisPointerModel) { return !!axisPointerModel.get('handle.show'); } /** * @param {module:echarts/model/Model} model * @return {string} unique key */ function makeKey(model) { return model.type + '||' + model.id; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Base class of AxisView. */ var AxisView = extendComponentView({ type: 'axis', /** * @private */ _axisPointer: null, /** * @protected * @type {string} */ axisPointerClass: null, /** * @override */ render: function (axisModel, ecModel, api, payload) { // FIXME // This process should proformed after coordinate systems updated // (axis scale updated), and should be performed each time update. // So put it here temporarily, although it is not appropriate to // put a model-writing procedure in `view`. this.axisPointerClass && fixValue(axisModel); AxisView.superApply(this, 'render', arguments); updateAxisPointer(this, axisModel, ecModel, api, payload, true); }, /** * Action handler. * @public * @param {module:echarts/coord/cartesian/AxisModel} axisModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @param {Object} payload */ updateAxisPointer: function (axisModel, ecModel, api, payload, force) { updateAxisPointer(this, axisModel, ecModel, api, payload, false); }, /** * @override */ remove: function (ecModel, api) { var axisPointer = this._axisPointer; axisPointer && axisPointer.remove(api); AxisView.superApply(this, 'remove', arguments); }, /** * @override */ dispose: function (ecModel, api) { disposeAxisPointer(this, api); AxisView.superApply(this, 'dispose', arguments); } }); function updateAxisPointer(axisView, axisModel, ecModel, api, payload, forceRender) { var Clazz = AxisView.getAxisPointerClass(axisView.axisPointerClass); if (!Clazz) { return; } var axisPointerModel = getAxisPointerModel(axisModel); axisPointerModel ? (axisView._axisPointer || (axisView._axisPointer = new Clazz())) .render(axisModel, axisPointerModel, api, forceRender) : disposeAxisPointer(axisView, api); } function disposeAxisPointer(axisView, ecModel, api) { var axisPointer = axisView._axisPointer; axisPointer && axisPointer.dispose(ecModel, api); axisView._axisPointer = null; } var axisPointerClazz = []; AxisView.registerAxisPointerClass = function (type, clazz) { if (__DEV__) { if (axisPointerClazz[type]) { throw new Error('axisPointer ' + type + ' exists'); } } axisPointerClazz[type] = clazz; }; AxisView.getAxisPointerClass = function (type) { return type && axisPointerClazz[type]; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Can only be called after coordinate system creation stage. * (Can be called before coordinate system update stage). * * @param {Object} opt {labelInside} * @return {Object} { * position, rotation, labelDirection, labelOffset, * tickDirection, labelRotate, z2 * } */ function layout$1(gridModel, axisModel, opt) { opt = opt || {}; var grid = gridModel.coordinateSystem; var axis = axisModel.axis; var layout = {}; var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0]; var rawAxisPosition = axis.position; var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition; var axisDim = axis.dim; var rect = grid.getRect(); var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height]; var idx = {left: 0, right: 1, top: 0, bottom: 1, onZero: 2}; var axisOffset = axisModel.get('offset') || 0; var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset]; if (otherAxisOnZeroOf) { var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0)); posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]); } // Axis position layout.position = [ axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3] ]; // Axis rotation layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim var dirMap = {top: -1, bottom: 1, left: -1, right: 1}; layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition]; layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0; if (axisModel.get('axisTick.inside')) { layout.tickDirection = -layout.tickDirection; } if (retrieve(opt.labelInside, axisModel.get('axisLabel.inside'))) { layout.labelDirection = -layout.labelDirection; } // Special label rotation var labelRotate = axisModel.get('axisLabel.rotate'); layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea layout.z2 = 1; return layout; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs = [ 'axisLine', 'axisTickLabel', 'axisName' ]; var selfBuilderAttrs = [ 'splitArea', 'splitLine' ]; // function getAlignWithLabel(model, axisModel) { // var alignWithLabel = model.get('alignWithLabel'); // if (alignWithLabel === 'auto') { // alignWithLabel = axisModel.get('axisTick.alignWithLabel'); // } // return alignWithLabel; // } var CartesianAxisView = AxisView.extend({ type: 'cartesianAxis', axisPointerClass: 'CartesianAxisPointer', /** * @override */ render: function (axisModel, ecModel, api, payload) { this.group.removeAll(); var oldAxisGroup = this._axisGroup; this._axisGroup = new Group(); this.group.add(this._axisGroup); if (!axisModel.get('show')) { return; } var gridModel = axisModel.getCoordSysModel(); var layout = layout$1(gridModel, axisModel); var axisBuilder = new AxisBuilder(axisModel, layout); each$1(axisBuilderAttrs, axisBuilder.add, axisBuilder); this._axisGroup.add(axisBuilder.getGroup()); each$1(selfBuilderAttrs, function (name) { if (axisModel.get(name + '.show')) { this['_' + name](axisModel, gridModel); } }, this); groupTransition(oldAxisGroup, this._axisGroup, axisModel); CartesianAxisView.superCall(this, 'render', axisModel, ecModel, api, payload); }, remove: function () { this._splitAreaColors = null; }, /** * @param {module:echarts/coord/cartesian/AxisModel} axisModel * @param {module:echarts/coord/cartesian/GridModel} gridModel * @private */ _splitLine: function (axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitLineModel = axisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); lineColors = isArray(lineColors) ? lineColors : [lineColors]; var gridRect = gridModel.coordinateSystem.getRect(); var isHorizontal = axis.isHorizontal(); var lineCount = 0; var ticksCoords = axis.getTicksCoords({ tickModel: splitLineModel }); var p1 = []; var p2 = []; // Simple optimization // Batching the lines if color are the same var lineStyle = lineStyleModel.getLineStyle(); for (var i = 0; i < ticksCoords.length; i++) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); if (isHorizontal) { p1[0] = tickCoord; p1[1] = gridRect.y; p2[0] = tickCoord; p2[1] = gridRect.y + gridRect.height; } else { p1[0] = gridRect.x; p1[1] = tickCoord; p2[0] = gridRect.x + gridRect.width; p2[1] = tickCoord; } var colorIndex = (lineCount++) % lineColors.length; var tickValue = ticksCoords[i].tickValue; this._axisGroup.add(new Line({ anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null, subPixelOptimize: true, shape: { x1: p1[0], y1: p1[1], x2: p2[0], y2: p2[1] }, style: defaults({ stroke: lineColors[colorIndex] }, lineStyle), silent: true })); } }, /** * @param {module:echarts/coord/cartesian/AxisModel} axisModel * @param {module:echarts/coord/cartesian/GridModel} gridModel * @private */ _splitArea: function (axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitAreaModel = axisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var gridRect = gridModel.coordinateSystem.getRect(); var ticksCoords = axis.getTicksCoords({ tickModel: splitAreaModel, clamp: true }); if (!ticksCoords.length) { return; } // For Making appropriate splitArea animation, the color and anid // should be corresponding to previous one if possible. var areaColorsLen = areaColors.length; var lastSplitAreaColors = this._splitAreaColors; var newSplitAreaColors = createHashMap(); var colorIndex = 0; if (lastSplitAreaColors) { for (var i = 0; i < ticksCoords.length; i++) { var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue); if (cIndex != null) { colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen; break; } } } var prev = axis.toGlobalCoord(ticksCoords[0].coord); var areaStyle = areaStyleModel.getAreaStyle(); areaColors = isArray(areaColors) ? areaColors : [areaColors]; for (var i = 1; i < ticksCoords.length; i++) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); var x; var y; var width; var height; if (axis.isHorizontal()) { x = prev; y = gridRect.y; width = tickCoord - x; height = gridRect.height; prev = x + width; } else { x = gridRect.x; y = prev; width = gridRect.width; height = tickCoord - y; prev = y + height; } var tickValue = ticksCoords[i - 1].tickValue; tickValue != null && newSplitAreaColors.set(tickValue, colorIndex); this._axisGroup.add(new Rect({ anid: tickValue != null ? 'area_' + tickValue : null, shape: { x: x, y: y, width: width, height: height }, style: defaults({ fill: areaColors[colorIndex] }, areaStyle), silent: true })); colorIndex = (colorIndex + 1) % areaColorsLen; } this._splitAreaColors = newSplitAreaColors; } }); CartesianAxisView.extend({ type: 'xAxis' }); CartesianAxisView.extend({ type: 'yAxis' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Grid view extendComponentView({ type: 'grid', render: function (gridModel, ecModel) { this.group.removeAll(); if (gridModel.get('show')) { this.group.add(new Rect({ shape: gridModel.coordinateSystem.getRect(), style: defaults({ fill: gridModel.get('backgroundColor') }, gridModel.getItemStyle()), silent: true, z2: -1 })); } } }); registerPreprocessor(function (option) { // Only create grid when need if (option.xAxis && option.yAxis && !option.grid) { option.grid = {}; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // In case developer forget to include grid component registerVisual(visualSymbol('line', 'circle', 'line')); registerLayout(pointsLayout('line')); // Down sample after filter registerProcessor( PRIORITY.PROCESSOR.STATISTIC, dataSample('line') ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BaseBarSeries = SeriesModel.extend({ type: 'series.__base_bar__', getInitialData: function (option, ecModel) { return createListFromArray(this.getSource(), this); }, getMarkerPosition: function (value) { var coordSys = this.coordinateSystem; if (coordSys) { // PENDING if clamp ? var pt = coordSys.dataToPoint(coordSys.clampData(value)); var data = this.getData(); var offset = data.getLayout('offset'); var size = data.getLayout('size'); var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1; pt[offsetIndex] += offset + size / 2; return pt; } return [NaN, NaN]; }, defaultOption: { zlevel: 0, // 一级层叠 z: 2, // 二级层叠 coordinateSystem: 'cartesian2d', legendHoverLink: true, // stack: null // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // 最小高度改为0 barMinHeight: 0, // 最小角度为0,仅对极坐标系下的柱状图有效 barMinAngle: 0, // cursor: null, large: false, largeThreshold: 400, progressive: 3e3, progressiveChunkMode: 'mod', // barMaxWidth: null, // 默认自适应 // barWidth: null, // 柱间距离,默认为柱形宽度的30%,可设固定值 // barGap: '30%', // 类目间柱形距离,默认为类目间距的20%,可设固定值 // barCategoryGap: '20%', // label: { // show: false // }, itemStyle: {}, emphasis: {} } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ BaseBarSeries.extend({ type: 'series.bar', dependencies: ['grid', 'polar'], brushSelector: 'rect', /** * @override */ getProgressive: function () { // Do not support progressive in normal mode. return this.get('large') ? this.get('progressive') : false; }, /** * @override */ getProgressiveThreshold: function () { // Do not support progressive in normal mode. var progressiveThreshold = this.get('progressiveThreshold'); var largeThreshold = this.get('largeThreshold'); if (largeThreshold > progressiveThreshold) { progressiveThreshold = largeThreshold; } return progressiveThreshold; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function setLabel( normalStyle, hoverStyle, itemModel, color, seriesModel, dataIndex, labelPositionOutside ) { var labelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel('emphasis.label'); setLabelStyle( normalStyle, hoverStyle, labelModel, hoverLabelModel, { labelFetcher: seriesModel, labelDataIndex: dataIndex, defaultText: getDefaultLabel(seriesModel.getData(), dataIndex), isRectText: true, autoColor: color } ); fixPosition(normalStyle); fixPosition(hoverStyle); } function fixPosition(style, labelPositionOutside) { if (style.textPosition === 'outside') { style.textPosition = labelPositionOutside; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getBarItemStyle = makeStyleMapper( [ ['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], // Compatitable with 2 ['stroke', 'barBorderColor'], ['lineWidth', 'barBorderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] ] ); var barItemStyle = { getBarItemStyle: function (excludes) { var style = getBarItemStyle(this, excludes); if (this.getBorderLineDash) { var lineDash = this.getBorderLineDash(); lineDash && (style.lineDash = lineDash); } return style; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'barBorderWidth']; var _eventPos = [0, 0]; // FIXME // Just for compatible with ec2. extend(Model.prototype, barItemStyle); extendChartView({ type: 'bar', render: function (seriesModel, ecModel, api) { this._updateDrawMode(seriesModel); var coordinateSystemType = seriesModel.get('coordinateSystem'); if (coordinateSystemType === 'cartesian2d' || coordinateSystemType === 'polar' ) { this._isLargeDraw ? this._renderLarge(seriesModel, ecModel, api) : this._renderNormal(seriesModel, ecModel, api); } else if (__DEV__) { console.warn('Only cartesian2d and polar supported for bar.'); } return this.group; }, incrementalPrepareRender: function (seriesModel, ecModel, api) { this._clear(); this._updateDrawMode(seriesModel); }, incrementalRender: function (params, seriesModel, ecModel, api) { // Do not support progressive in normal mode. this._incrementalRenderLarge(params, seriesModel); }, _updateDrawMode: function (seriesModel) { var isLargeDraw = seriesModel.pipelineContext.large; if (this._isLargeDraw == null || isLargeDraw ^ this._isLargeDraw) { this._isLargeDraw = isLargeDraw; this._clear(); } }, _renderNormal: function (seriesModel, ecModel, api) { var group = this.group; var data = seriesModel.getData(); var oldData = this._data; var coord = seriesModel.coordinateSystem; var baseAxis = coord.getBaseAxis(); var isHorizontalOrRadial; if (coord.type === 'cartesian2d') { isHorizontalOrRadial = baseAxis.isHorizontal(); } else if (coord.type === 'polar') { isHorizontalOrRadial = baseAxis.dim === 'angle'; } var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null; data.diff(oldData) .add(function (dataIndex) { if (!data.hasValue(dataIndex)) { return; } var itemModel = data.getItemModel(dataIndex); var layout = getLayout[coord.type](data, dataIndex, itemModel); var el = elementCreator[coord.type]( data, dataIndex, itemModel, layout, isHorizontalOrRadial, animationModel ); data.setItemGraphicEl(dataIndex, el); group.add(el); updateStyle( el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar' ); }) .update(function (newIndex, oldIndex) { var el = oldData.getItemGraphicEl(oldIndex); if (!data.hasValue(newIndex)) { group.remove(el); return; } var itemModel = data.getItemModel(newIndex); var layout = getLayout[coord.type](data, newIndex, itemModel); if (el) { updateProps(el, {shape: layout}, animationModel, newIndex); } else { el = elementCreator[coord.type]( data, newIndex, itemModel, layout, isHorizontalOrRadial, animationModel, true ); } data.setItemGraphicEl(newIndex, el); // Add back group.add(el); updateStyle( el, data, newIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar' ); }) .remove(function (dataIndex) { var el = oldData.getItemGraphicEl(dataIndex); if (coord.type === 'cartesian2d') { el && removeRect(dataIndex, animationModel, el); } else { el && removeSector(dataIndex, animationModel, el); } }) .execute(); this._data = data; }, _renderLarge: function (seriesModel, ecModel, api) { this._clear(); createLarge(seriesModel, this.group); }, _incrementalRenderLarge: function (params, seriesModel) { createLarge(seriesModel, this.group, true); }, dispose: noop, remove: function (ecModel) { this._clear(ecModel); }, _clear: function (ecModel) { var group = this.group; var data = this._data; if (ecModel && ecModel.get('animation') && data && !this._isLargeDraw) { data.eachItemGraphicEl(function (el) { if (el.type === 'sector') { removeSector(el.dataIndex, ecModel, el); } else { removeRect(el.dataIndex, ecModel, el); } }); } else { group.removeAll(); } this._data = null; } }); var elementCreator = { cartesian2d: function ( data, dataIndex, itemModel, layout, isHorizontal, animationModel, isUpdate ) { var rect = new Rect({shape: extend({}, layout)}); // Animation if (animationModel) { var rectShape = rect.shape; var animateProperty = isHorizontal ? 'height' : 'width'; var animateTarget = {}; rectShape[animateProperty] = 0; animateTarget[animateProperty] = layout[animateProperty]; graphic[isUpdate ? 'updateProps' : 'initProps'](rect, { shape: animateTarget }, animationModel, dataIndex); } return rect; }, polar: function ( data, dataIndex, itemModel, layout, isRadial, animationModel, isUpdate ) { // Keep the same logic with bar in catesion: use end value to control // direction. Notice that if clockwise is true (by default), the sector // will always draw clockwisely, no matter whether endAngle is greater // or less than startAngle. var clockwise = layout.startAngle < layout.endAngle; var sector = new Sector({ shape: defaults({clockwise: clockwise}, layout) }); // Animation if (animationModel) { var sectorShape = sector.shape; var animateProperty = isRadial ? 'r' : 'endAngle'; var animateTarget = {}; sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle; animateTarget[animateProperty] = layout[animateProperty]; graphic[isUpdate ? 'updateProps' : 'initProps'](sector, { shape: animateTarget }, animationModel, dataIndex); } return sector; } }; function removeRect(dataIndex, animationModel, el) { // Not show text when animating el.style.text = null; updateProps(el, { shape: { width: 0 } }, animationModel, dataIndex, function () { el.parent && el.parent.remove(el); }); } function removeSector(dataIndex, animationModel, el) { // Not show text when animating el.style.text = null; updateProps(el, { shape: { r: el.shape.r0 } }, animationModel, dataIndex, function () { el.parent && el.parent.remove(el); }); } var getLayout = { cartesian2d: function (data, dataIndex, itemModel) { var layout = data.getItemLayout(dataIndex); var fixedLineWidth = getLineWidth(itemModel, layout); // fix layout with lineWidth var signX = layout.width > 0 ? 1 : -1; var signY = layout.height > 0 ? 1 : -1; return { x: layout.x + signX * fixedLineWidth / 2, y: layout.y + signY * fixedLineWidth / 2, width: layout.width - signX * fixedLineWidth, height: layout.height - signY * fixedLineWidth }; }, polar: function (data, dataIndex, itemModel) { var layout = data.getItemLayout(dataIndex); return { cx: layout.cx, cy: layout.cy, r0: layout.r0, r: layout.r, startAngle: layout.startAngle, endAngle: layout.endAngle }; } }; function updateStyle( el, data, dataIndex, itemModel, layout, seriesModel, isHorizontal, isPolar ) { var color = data.getItemVisual(dataIndex, 'color'); var opacity = data.getItemVisual(dataIndex, 'opacity'); var itemStyleModel = itemModel.getModel('itemStyle'); var hoverStyle = itemModel.getModel('emphasis.itemStyle').getBarItemStyle(); if (!isPolar) { el.setShape('r', itemStyleModel.get('barBorderRadius') || 0); } el.useStyle(defaults( { fill: color, opacity: opacity }, itemStyleModel.getBarItemStyle() )); var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && el.attr('cursor', cursorStyle); var labelPositionOutside = isHorizontal ? (layout.height > 0 ? 'bottom' : 'top') : (layout.width > 0 ? 'left' : 'right'); if (!isPolar) { setLabel( el.style, hoverStyle, itemModel, color, seriesModel, dataIndex, labelPositionOutside ); } setHoverStyle(el, hoverStyle); } // In case width or height are too small. function getLineWidth(itemModel, rawLayout) { var lineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0; return Math.min(lineWidth, Math.abs(rawLayout.width), Math.abs(rawLayout.height)); } var LargePath = Path.extend({ type: 'largeBar', shape: {points: []}, buildPath: function (ctx, shape) { // Drawing lines is more efficient than drawing // a whole line or drawing rects. var points = shape.points; var startPoint = this.__startPoint; var baseDimIdx = this.__baseDimIdx; for (var i = 0; i < points.length; i += 2) { startPoint[baseDimIdx] = points[i + baseDimIdx]; ctx.moveTo(startPoint[0], startPoint[1]); ctx.lineTo(points[i], points[i + 1]); } } }); function createLarge(seriesModel, group, incremental) { // TODO support polar var data = seriesModel.getData(); var startPoint = []; var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0; startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart'); var el = new LargePath({ shape: {points: data.getLayout('largePoints')}, incremental: !!incremental, __startPoint: startPoint, __baseDimIdx: baseDimIdx, __largeDataIndices: data.getLayout('largeDataIndices'), __barWidth: data.getLayout('barWidth') }); group.add(el); setLargeStyle(el, seriesModel, data); // Enable tooltip and user mouse/touch event handlers. el.seriesIndex = seriesModel.seriesIndex; if (!seriesModel.get('silent')) { el.on('mousedown', largePathUpdateDataIndex); el.on('mousemove', largePathUpdateDataIndex); } } // Use throttle to avoid frequently traverse to find dataIndex. var largePathUpdateDataIndex = throttle(function (event) { var largePath = this; var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY); largePath.dataIndex = dataIndex >= 0 ? dataIndex : null; }, 30, false); function largePathFindDataIndex(largePath, x, y) { var baseDimIdx = largePath.__baseDimIdx; var valueDimIdx = 1 - baseDimIdx; var points = largePath.shape.points; var largeDataIndices = largePath.__largeDataIndices; var barWidthHalf = Math.abs(largePath.__barWidth / 2); var startValueVal = largePath.__startPoint[valueDimIdx]; _eventPos[0] = x; _eventPos[1] = y; var pointerBaseVal = _eventPos[baseDimIdx]; var pointerValueVal = _eventPos[1 - baseDimIdx]; var baseLowerBound = pointerBaseVal - barWidthHalf; var baseUpperBound = pointerBaseVal + barWidthHalf; for (var i = 0, len = points.length / 2; i < len; i++) { var ii = i * 2; var barBaseVal = points[ii + baseDimIdx]; var barValueVal = points[ii + valueDimIdx]; if ( barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound && ( startValueVal <= barValueVal ? (pointerValueVal >= startValueVal && pointerValueVal <= barValueVal) : (pointerValueVal >= barValueVal && pointerValueVal <= startValueVal) ) ) { return largeDataIndices[i]; } } return -1; } function setLargeStyle(el, seriesModel, data) { var borderColor = data.getVisual('borderColor') || data.getVisual('color'); var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(['color', 'borderColor']); el.useStyle(itemStyle); el.style.fill = null; el.style.stroke = borderColor; el.style.lineWidth = data.getLayout('barWidth'); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // In case developer forget to include grid component registerLayout(PRIORITY.VISUAL.LAYOUT, curry(layout, 'bar')); // Use higher prority to avoid to be blocked by other overall layout, which do not // only exist in this module, but probably also exist in other modules, like `barPolar`. registerLayout(PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout); registerVisual({ seriesType: 'bar', reset: function (seriesModel) { // Visual coding for legend seriesModel.getData().setVisual('legendSymbol', 'roundRect'); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * [Usage]: * (1) * createListSimply(seriesModel, ['value']); * (2) * createListSimply(seriesModel, { * coordDimensions: ['value'], * dimensionsCount: 5 * }); * * @param {module:echarts/model/Series} seriesModel * @param {Object|Array.} opt opt or coordDimensions * The options in opt, see `echarts/data/helper/createDimensions` * @param {Array.} [nameList] * @return {module:echarts/data/List} */ var createListSimply = function (seriesModel, opt, nameList) { opt = isArray(opt) && {coordDimensions: opt} || extend({}, opt); var source = seriesModel.getSource(); var dimensionsInfo = createDimensions(source, opt); var list = new List(dimensionsInfo, seriesModel); list.initData(source, nameList); return list; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Data selectable mixin for chart series. * To eanble data select, option of series must have `selectedMode`. * And each data item will use `selected` to toggle itself selected status */ var selectableMixin = { /** * @param {Array.} targetList [{name, value, selected}, ...] * If targetList is an array, it should like [{name: ..., value: ...}, ...]. * If targetList is a "List", it must have coordDim: 'value' dimension and name. */ updateSelectedMap: function (targetList) { this._targetList = isArray(targetList) ? targetList.slice() : []; this._selectTargetMap = reduce(targetList || [], function (targetMap, target) { targetMap.set(target.name, target); return targetMap; }, createHashMap()); }, /** * Either name or id should be passed as input here. * If both of them are defined, id is used. * * @param {string|undefined} name name of data * @param {number|undefined} id dataIndex of data */ // PENGING If selectedMode is null ? select: function (name, id) { var target = id != null ? this._targetList[id] : this._selectTargetMap.get(name); var selectedMode = this.get('selectedMode'); if (selectedMode === 'single') { this._selectTargetMap.each(function (target) { target.selected = false; }); } target && (target.selected = true); }, /** * Either name or id should be passed as input here. * If both of them are defined, id is used. * * @param {string|undefined} name name of data * @param {number|undefined} id dataIndex of data */ unSelect: function (name, id) { var target = id != null ? this._targetList[id] : this._selectTargetMap.get(name); // var selectedMode = this.get('selectedMode'); // selectedMode !== 'single' && target && (target.selected = false); target && (target.selected = false); }, /** * Either name or id should be passed as input here. * If both of them are defined, id is used. * * @param {string|undefined} name name of data * @param {number|undefined} id dataIndex of data */ toggleSelected: function (name, id) { var target = id != null ? this._targetList[id] : this._selectTargetMap.get(name); if (target != null) { this[target.selected ? 'unSelect' : 'select'](name, id); return target.selected; } }, /** * Either name or id should be passed as input here. * If both of them are defined, id is used. * * @param {string|undefined} name name of data * @param {number|undefined} id dataIndex of data */ isSelected: function (name, id) { var target = id != null ? this._targetList[id] : this._selectTargetMap.get(name); return target && target.selected; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PieSeries = extendSeriesModel({ type: 'series.pie', // Overwrite init: function (option) { PieSeries.superApply(this, 'init', arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendDataProvider = function () { return this.getRawData(); }; this.updateSelectedMap(this._createSelectableList()); this._defaultLabelLine(option); }, // Overwrite mergeOption: function (newOption) { PieSeries.superCall(this, 'mergeOption', newOption); this.updateSelectedMap(this._createSelectableList()); }, getInitialData: function (option, ecModel) { return createListSimply(this, ['value']); }, _createSelectableList: function () { var data = this.getRawData(); var valueDim = data.mapDimension('value'); var targetList = []; for (var i = 0, len = data.count(); i < len; i++) { targetList.push({ name: data.getName(i), value: data.get(valueDim, i), selected: retrieveRawAttr(data, i, 'selected') }); } return targetList; }, // Overwrite getDataParams: function (dataIndex) { var data = this.getData(); var params = PieSeries.superCall(this, 'getDataParams', dataIndex); // FIXME toFixed? var valueList = []; data.each(data.mapDimension('value'), function (value) { valueList.push(value); }); params.percent = getPercentWithPrecision( valueList, dataIndex, data.hostModel.get('percentPrecision') ); params.$vars.push('percent'); return params; }, _defaultLabelLine: function (option) { // Extend labelLine emphasis defaultEmphasis(option, 'labelLine', ['show']); var labelLineNormalOpt = option.labelLine; var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false` labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show; labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show; }, defaultOption: { zlevel: 0, z: 2, legendHoverLink: true, hoverAnimation: true, // 默认全局居中 center: ['50%', '50%'], radius: [0, '75%'], // 默认顺时针 clockwise: true, startAngle: 90, // 最小角度改为0 minAngle: 0, // If the angle of a sector less than `minShowLabelAngle`, // the label will not be displayed. minShowLabelAngle: 0, // 选中时扇区偏移量 selectedOffset: 10, // 高亮扇区偏移量 hoverOffset: 10, // If use strategy to avoid label overlapping avoidLabelOverlap: true, // 选择模式,默认关闭,可选single,multiple // selectedMode: false, // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积) // roseType: null, percentPrecision: 2, // If still show when all data zero. stillShowZeroSum: true, // cursor: null, label: { // If rotate around circle rotate: false, show: true, // 'outer', 'inside', 'center' position: 'outer' // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 // 默认使用全局文本样式,详见TEXTSTYLE // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数 }, // Enabled when label.normal.position is 'outer' labelLine: { show: true, // 引导线两段中的第一段长度 length: 15, // 引导线两段中的第二段长度 length2: 15, smooth: false, lineStyle: { // color: 各异, width: 1, type: 'solid' } }, itemStyle: { borderWidth: 1 }, // Animation type canbe expansion, scale animationType: 'expansion', animationEasing: 'cubicOut' } }); mixin(PieSeries, selectableMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/model/Series} seriesModel * @param {boolean} hasAnimation * @inner */ function updateDataSelected(uid, seriesModel, hasAnimation, api) { var data = seriesModel.getData(); var dataIndex = this.dataIndex; var name = data.getName(dataIndex); var selectedOffset = seriesModel.get('selectedOffset'); api.dispatchAction({ type: 'pieToggleSelect', from: uid, name: name, seriesId: seriesModel.id }); data.each(function (idx) { toggleItemSelected( data.getItemGraphicEl(idx), data.getItemLayout(idx), seriesModel.isSelected(data.getName(idx)), selectedOffset, hasAnimation ); }); } /** * @param {module:zrender/graphic/Sector} el * @param {Object} layout * @param {boolean} isSelected * @param {number} selectedOffset * @param {boolean} hasAnimation * @inner */ function toggleItemSelected(el, layout, isSelected, selectedOffset, hasAnimation) { var midAngle = (layout.startAngle + layout.endAngle) / 2; var dx = Math.cos(midAngle); var dy = Math.sin(midAngle); var offset = isSelected ? selectedOffset : 0; var position = [dx * offset, dy * offset]; hasAnimation // animateTo will stop revious animation like update transition ? el.animate() .when(200, { position: position }) .start('bounceOut') : el.attr('position', position); } /** * Piece of pie including Sector, Label, LabelLine * @constructor * @extends {module:zrender/graphic/Group} */ function PiePiece(data, idx) { Group.call(this); var sector = new Sector({ z2: 2 }); var polyline = new Polyline(); var text = new Text(); this.add(sector); this.add(polyline); this.add(text); this.updateData(data, idx, true); } var piePieceProto = PiePiece.prototype; piePieceProto.updateData = function (data, idx, firstCreate) { var sector = this.childAt(0); var labelLine = this.childAt(1); var labelText = this.childAt(2); var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var sectorShape = extend({}, layout); sectorShape.label = null; if (firstCreate) { sector.setShape(sectorShape); var animationType = seriesModel.getShallow('animationType'); if (animationType === 'scale') { sector.shape.r = layout.r0; initProps(sector, { shape: { r: layout.r } }, seriesModel, idx); } // Expansion else { sector.shape.endAngle = layout.startAngle; updateProps(sector, { shape: { endAngle: layout.endAngle } }, seriesModel, idx); } } else { updateProps(sector, { shape: sectorShape }, seriesModel, idx); } // Update common style var visualColor = data.getItemVisual(idx, 'color'); sector.useStyle( defaults( { lineJoin: 'bevel', fill: visualColor }, itemModel.getModel('itemStyle').getItemStyle() ) ); sector.hoverStyle = itemModel.getModel('emphasis.itemStyle').getItemStyle(); var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && sector.attr('cursor', cursorStyle); // Toggle selected toggleItemSelected( this, data.getItemLayout(idx), seriesModel.isSelected(null, idx), seriesModel.get('selectedOffset'), seriesModel.get('animation') ); this._updateLabel(data, idx); this.highDownOnUpdate = (itemModel.get('hoverAnimation') && seriesModel.isAnimationEnabled()) ? function (fromState, toState) { if (toState === 'emphasis') { labelLine.ignore = labelLine.hoverIgnore; labelText.ignore = labelText.hoverIgnore; // Sector may has animation of updating data. Force to move to the last frame // Or it may stopped on the wrong shape sector.stopAnimation(true); sector.animateTo({ shape: { r: layout.r + seriesModel.get('hoverOffset') } }, 300, 'elasticOut'); } else { labelLine.ignore = labelLine.normalIgnore; labelText.ignore = labelText.normalIgnore; sector.stopAnimation(true); sector.animateTo({ shape: { r: layout.r } }, 300, 'elasticOut'); } } : null; setHoverStyle(this); }; piePieceProto._updateLabel = function (data, idx) { var labelLine = this.childAt(1); var labelText = this.childAt(2); var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var labelLayout = layout.label; var visualColor = data.getItemVisual(idx, 'color'); if (!labelLayout || isNaN(labelLayout.x) || isNaN(labelLayout.y)) { labelText.ignore = labelText.normalIgnore = labelText.hoverIgnore = labelLine.ignore = labelLine.normalIgnore = labelLine.hoverIgnore = true; return; } updateProps(labelLine, { shape: { points: labelLayout.linePoints || [ [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y] ] } }, seriesModel, idx); updateProps(labelText, { style: { x: labelLayout.x, y: labelLayout.y } }, seriesModel, idx); labelText.attr({ rotation: labelLayout.rotation, origin: [labelLayout.x, labelLayout.y], z2: 10 }); var labelModel = itemModel.getModel('label'); var labelHoverModel = itemModel.getModel('emphasis.label'); var labelLineModel = itemModel.getModel('labelLine'); var labelLineHoverModel = itemModel.getModel('emphasis.labelLine'); var visualColor = data.getItemVisual(idx, 'color'); setLabelStyle( labelText.style, labelText.hoverStyle = {}, labelModel, labelHoverModel, { labelFetcher: data.hostModel, labelDataIndex: idx, defaultText: data.getName(idx), autoColor: visualColor, useInsideStyle: !!labelLayout.inside }, { textAlign: labelLayout.textAlign, textVerticalAlign: labelLayout.verticalAlign, opacity: data.getItemVisual(idx, 'opacity') } ); labelText.ignore = labelText.normalIgnore = !labelModel.get('show'); labelText.hoverIgnore = !labelHoverModel.get('show'); labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show'); labelLine.hoverIgnore = !labelLineHoverModel.get('show'); // Default use item visual color labelLine.setStyle({ stroke: visualColor, opacity: data.getItemVisual(idx, 'opacity') }); labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle()); labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle(); var smooth = labelLineModel.get('smooth'); if (smooth && smooth === true) { smooth = 0.4; } labelLine.setShape({ smooth: smooth }); }; inherits(PiePiece, Group); // Pie view var PieView = Chart.extend({ type: 'pie', init: function () { var sectorGroup = new Group(); this._sectorGroup = sectorGroup; }, render: function (seriesModel, ecModel, api, payload) { if (payload && (payload.from === this.uid)) { return; } var data = seriesModel.getData(); var oldData = this._data; var group = this.group; var hasAnimation = ecModel.get('animation'); var isFirstRender = !oldData; var animationType = seriesModel.get('animationType'); var onSectorClick = curry( updateDataSelected, this.uid, seriesModel, hasAnimation, api ); var selectedMode = seriesModel.get('selectedMode'); data.diff(oldData) .add(function (idx) { var piePiece = new PiePiece(data, idx); // Default expansion animation if (isFirstRender && animationType !== 'scale') { piePiece.eachChild(function (child) { child.stopAnimation(true); }); } selectedMode && piePiece.on('click', onSectorClick); data.setItemGraphicEl(idx, piePiece); group.add(piePiece); }) .update(function (newIdx, oldIdx) { var piePiece = oldData.getItemGraphicEl(oldIdx); piePiece.updateData(data, newIdx); piePiece.off('click'); selectedMode && piePiece.on('click', onSectorClick); group.add(piePiece); data.setItemGraphicEl(newIdx, piePiece); }) .remove(function (idx) { var piePiece = oldData.getItemGraphicEl(idx); group.remove(piePiece); }) .execute(); if ( hasAnimation && isFirstRender && data.count() > 0 // Default expansion animation && animationType !== 'scale' ) { var shape = data.getItemLayout(0); for (var s = 1; isNaN(shape.startAngle) && s < data.count(); ++s) { shape = data.getItemLayout(s); } var r = Math.max(api.getWidth(), api.getHeight()) / 2; var removeClipPath = bind(group.removeClipPath, group); group.setClipPath(this._createClipPath( shape.cx, shape.cy, r, shape.startAngle, shape.clockwise, removeClipPath, seriesModel )); } else { // clipPath is used in first-time animation, so remove it when otherwise. See: #8994 group.removeClipPath(); } this._data = data; }, dispose: function () {}, _createClipPath: function ( cx, cy, r, startAngle, clockwise, cb, seriesModel ) { var clipPath = new Sector({ shape: { cx: cx, cy: cy, r0: 0, r: r, startAngle: startAngle, endAngle: startAngle, clockwise: clockwise } }); initProps(clipPath, { shape: { endAngle: startAngle + (clockwise ? 1 : -1) * Math.PI * 2 } }, seriesModel, cb); return clipPath; }, /** * @implement */ containPoint: function (point, seriesModel) { var data = seriesModel.getData(); var itemLayout = data.getItemLayout(0); if (itemLayout) { var dx = point[0] - itemLayout.cx; var dy = point[1] - itemLayout.cy; var radius = Math.sqrt(dx * dx + dy * dy); return radius <= itemLayout.r && radius >= itemLayout.r0; } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var createDataSelectAction = function (seriesType, actionInfos) { each$1(actionInfos, function (actionInfo) { actionInfo.update = 'updateView'; /** * @payload * @property {string} seriesName * @property {string} name */ registerAction(actionInfo, function (payload, ecModel) { var selected = {}; ecModel.eachComponent( {mainType: 'series', subType: seriesType, query: payload}, function (seriesModel) { if (seriesModel[actionInfo.method]) { seriesModel[actionInfo.method]( payload.name, payload.dataIndex ); } var data = seriesModel.getData(); // Create selected map data.each(function (idx) { var name = data.getName(idx); selected[name] = seriesModel.isSelected(name) || false; }); } ); return { name: payload.name, selected: selected, seriesId: payload.seriesId }; }); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Pick color from palette for each data item. // Applicable for charts that require applying color palette // in data level (like pie, funnel, chord). var dataColor = function (seriesType) { return { getTargetSeries: function (ecModel) { // Pie and funnel may use diferrent scope var paletteScope = {}; var seiresModelMap = createHashMap(); ecModel.eachSeriesByType(seriesType, function (seriesModel) { seriesModel.__paletteScope = paletteScope; seiresModelMap.set(seriesModel.uid, seriesModel); }); return seiresModelMap; }, reset: function (seriesModel, ecModel) { var dataAll = seriesModel.getRawData(); var idxMap = {}; var data = seriesModel.getData(); data.each(function (idx) { var rawIdx = data.getRawIndex(idx); idxMap[rawIdx] = idx; }); dataAll.each(function (rawIdx) { var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true); if (!singleDataColor) { // FIXME Performance var itemModel = dataAll.getItemModel(rawIdx); var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette( dataAll.getName(rawIdx) || (rawIdx + ''), seriesModel.__paletteScope, dataAll.count() ); // Legend may use the visual info in data before processed dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered if (filteredIdx != null) { data.setItemVisual(filteredIdx, 'color', color); } } else { // Set data all color for legend dataAll.setItemVisual(rawIdx, 'color', singleDataColor); } }); } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME emphasis label position is not same with normal label position var RADIAN$1 = Math.PI / 180; function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight) { list.sort(function (a, b) { return a.y - b.y; }); function shiftDown(start, end, delta, dir) { for (var j = start; j < end; j++) { list[j].y += delta; if (j > start && j + 1 < end && list[j + 1].y > list[j].y + list[j].height ) { shiftUp(j, delta / 2); return; } } shiftUp(end - 1, delta / 2); } function shiftUp(end, delta) { for (var j = end; j >= 0; j--) { list[j].y -= delta; if (j > 0 && list[j].y > list[j - 1].y + list[j - 1].height ) { break; } } } function changeX(list, isDownList, cx, cy, r, dir) { var lastDeltaX = dir > 0 ? isDownList // right-side ? Number.MAX_VALUE // down : 0 // up : isDownList // left-side ? Number.MAX_VALUE // down : 0; // up for (var i = 0, l = list.length; i < l; i++) { var deltaY = Math.abs(list[i].y - cy); var length = list[i].len; var length2 = list[i].len2; var deltaX = (deltaY < r + length) ? Math.sqrt( (r + length + length2) * (r + length + length2) - deltaY * deltaY ) : Math.abs(list[i].x - cx); if (isDownList && deltaX >= lastDeltaX) { // right-down, left-down deltaX = lastDeltaX - 10; } if (!isDownList && deltaX <= lastDeltaX) { // right-up, left-up deltaX = lastDeltaX + 10; } list[i].x = cx + deltaX * dir; lastDeltaX = deltaX; } } var lastY = 0; var delta; var len = list.length; var upList = []; var downList = []; for (var i = 0; i < len; i++) { delta = list[i].y - lastY; if (delta < 0) { shiftDown(i, len, -delta, dir); } lastY = list[i].y + list[i].height; } if (viewHeight - lastY < 0) { shiftUp(len - 1, lastY - viewHeight); } for (var i = 0; i < len; i++) { if (list[i].y >= cy) { downList.push(list[i]); } else { upList.push(list[i]); } } changeX(upList, false, cx, cy, r, dir); changeX(downList, true, cx, cy, r, dir); } function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight) { var leftList = []; var rightList = []; for (var i = 0; i < labelLayoutList.length; i++) { if (isPositionCenter(labelLayoutList[i])) { continue; } if (labelLayoutList[i].x < cx) { leftList.push(labelLayoutList[i]); } else { rightList.push(labelLayoutList[i]); } } adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight); adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight); for (var i = 0; i < labelLayoutList.length; i++) { if (isPositionCenter(labelLayoutList[i])) { continue; } var linePoints = labelLayoutList[i].linePoints; if (linePoints) { var dist = linePoints[1][0] - linePoints[2][0]; if (labelLayoutList[i].x < cx) { linePoints[2][0] = labelLayoutList[i].x + 3; } else { linePoints[2][0] = labelLayoutList[i].x - 3; } linePoints[1][1] = linePoints[2][1] = labelLayoutList[i].y; linePoints[1][0] = linePoints[2][0] + dist; } } } function isPositionCenter(layout) { // Not change x for center label return layout.position === 'center'; } var labelLayout = function (seriesModel, r, viewWidth, viewHeight, sum) { var data = seriesModel.getData(); var labelLayoutList = []; var cx; var cy; var hasLabelRotate = false; var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN$1; data.each(function (idx) { var layout = data.getItemLayout(idx); var itemModel = data.getItemModel(idx); var labelModel = itemModel.getModel('label'); // Use position in normal or emphasis var labelPosition = labelModel.get('position') || itemModel.get('emphasis.label.position'); var labelLineModel = itemModel.getModel('labelLine'); var labelLineLen = labelLineModel.get('length'); var labelLineLen2 = labelLineModel.get('length2'); if (layout.angle < minShowLabelRadian) { return; } var midAngle = (layout.startAngle + layout.endAngle) / 2; var dx = Math.cos(midAngle); var dy = Math.sin(midAngle); var textX; var textY; var linePoints; var textAlign; cx = layout.cx; cy = layout.cy; var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner'; if (labelPosition === 'center') { textX = layout.cx; textY = layout.cy; textAlign = 'center'; } else { var x1 = (isLabelInside ? (layout.r + layout.r0) / 2 * dx : layout.r * dx) + cx; var y1 = (isLabelInside ? (layout.r + layout.r0) / 2 * dy : layout.r * dy) + cy; textX = x1 + dx * 3; textY = y1 + dy * 3; if (!isLabelInside) { // For roseType var x2 = x1 + dx * (labelLineLen + r - layout.r); var y2 = y1 + dy * (labelLineLen + r - layout.r); var x3 = x2 + ((dx < 0 ? -1 : 1) * labelLineLen2); var y3 = y2; textX = x3 + (dx < 0 ? -5 : 5); textY = y3; linePoints = [[x1, y1], [x2, y2], [x3, y3]]; } textAlign = isLabelInside ? 'center' : (dx > 0 ? 'left' : 'right'); } var font = labelModel.getFont(); var labelRotate; var rotate = labelModel.get('rotate'); if (typeof rotate === 'number') { labelRotate = rotate * (Math.PI / 180); } else { labelRotate = rotate ? (dx < 0 ? -midAngle + Math.PI : -midAngle) : 0; } var text = seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx); var textRect = getBoundingRect( text, font, textAlign, 'top' ); hasLabelRotate = !!labelRotate; layout.label = { x: textX, y: textY, position: labelPosition, height: textRect.height, len: labelLineLen, len2: labelLineLen2, linePoints: linePoints, textAlign: textAlign, verticalAlign: 'middle', rotation: labelRotate, inside: isLabelInside }; // Not layout the inside label if (!isLabelInside) { labelLayoutList.push(layout.label); } }); if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) { avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI2$4 = Math.PI * 2; var RADIAN = Math.PI / 180; var pieLayout = function (seriesType, ecModel, api, payload) { ecModel.eachSeriesByType(seriesType, function (seriesModel) { var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var center = seriesModel.get('center'); var radius = seriesModel.get('radius'); if (!isArray(radius)) { radius = [0, radius]; } if (!isArray(center)) { center = [center, center]; } var width = api.getWidth(); var height = api.getHeight(); var size = Math.min(width, height); var cx = parsePercent$1(center[0], width); var cy = parsePercent$1(center[1], height); var r0 = parsePercent$1(radius[0], size / 2); var r = parsePercent$1(radius[1], size / 2); var startAngle = -seriesModel.get('startAngle') * RADIAN; var minAngle = seriesModel.get('minAngle') * RADIAN; var validDataCount = 0; data.each(valueDim, function (value) { !isNaN(value) && validDataCount++; }); var sum = data.getSum(valueDim); // Sum may be 0 var unitRadian = Math.PI / (sum || validDataCount) * 2; var clockwise = seriesModel.get('clockwise'); var roseType = seriesModel.get('roseType'); var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // [0...max] var extent = data.getDataExtent(valueDim); extent[0] = 0; // In the case some sector angle is smaller than minAngle var restAngle = PI2$4; var valueSumLargerThanMinAngle = 0; var currentAngle = startAngle; var dir = clockwise ? 1 : -1; data.each(valueDim, function (value, idx) { var angle; if (isNaN(value)) { data.setItemLayout(idx, { angle: NaN, startAngle: NaN, endAngle: NaN, clockwise: clockwise, cx: cx, cy: cy, r0: r0, r: roseType ? NaN : r }); return; } // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样? if (roseType !== 'area') { angle = (sum === 0 && stillShowZeroSum) ? unitRadian : (value * unitRadian); } else { angle = PI2$4 / validDataCount; } if (angle < minAngle) { angle = minAngle; restAngle -= minAngle; } else { valueSumLargerThanMinAngle += value; } var endAngle = currentAngle + dir * angle; data.setItemLayout(idx, { angle: angle, startAngle: currentAngle, endAngle: endAngle, clockwise: clockwise, cx: cx, cy: cy, r0: r0, r: roseType ? linearMap(value, extent, [r0, r]) : r }); currentAngle = endAngle; }); // Some sector is constrained by minAngle // Rest sectors needs recalculate angle if (restAngle < PI2$4 && validDataCount) { // Average the angle if rest angle is not enough after all angles is // Constrained by minAngle if (restAngle <= 1e-3) { var angle = PI2$4 / validDataCount; data.each(valueDim, function (value, idx) { if (!isNaN(value)) { var layout = data.getItemLayout(idx); layout.angle = angle; layout.startAngle = startAngle + dir * idx * angle; layout.endAngle = startAngle + dir * (idx + 1) * angle; } }); } else { unitRadian = restAngle / valueSumLargerThanMinAngle; currentAngle = startAngle; data.each(valueDim, function (value, idx) { if (!isNaN(value)) { var layout = data.getItemLayout(idx); var angle = layout.angle === minAngle ? minAngle : value * unitRadian; layout.startAngle = currentAngle; layout.endAngle = currentAngle + dir * angle; currentAngle += dir * angle; } }); } } labelLayout(seriesModel, r, width, height); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var dataFilter = function (seriesType) { return { seriesType: seriesType, reset: function (seriesModel, ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (!legendModels || !legendModels.length) { return; } var data = seriesModel.getData(); data.filterSelf(function (idx) { var name = data.getName(idx); // If in any legend component the status is not selected. for (var i = 0; i < legendModels.length; i++) { if (!legendModels[i].isSelected(name)) { return false; } } return true; }); } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ createDataSelectAction('pie', [{ type: 'pieToggleSelect', event: 'pieselectchanged', method: 'toggleSelected' }, { type: 'pieSelect', event: 'pieselected', method: 'select' }, { type: 'pieUnSelect', event: 'pieunselected', method: 'unSelect' }]); registerVisual(dataColor('pie')); registerLayout(curry(pieLayout, 'pie')); registerProcessor(dataFilter('pie')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.scatter', dependencies: ['grid', 'polar', 'geo', 'singleAxis', 'calendar'], getInitialData: function (option, ecModel) { return createListFromArray(this.getSource(), this); }, brushSelector: 'point', getProgressive: function () { var progressive = this.option.progressive; if (progressive == null) { // PENDING return this.option.large ? 5e3 : this.get('progressive'); } return progressive; }, getProgressiveThreshold: function () { var progressiveThreshold = this.option.progressiveThreshold; if (progressiveThreshold == null) { // PENDING return this.option.large ? 1e4 : this.get('progressiveThreshold'); } return progressiveThreshold; }, defaultOption: { coordinateSystem: 'cartesian2d', zlevel: 0, z: 2, legendHoverLink: true, hoverAnimation: true, // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Polar coordinate system // polarIndex: 0, // Geo coordinate system // geoIndex: 0, // symbol: null, // 图形类型 symbolSize: 10, // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2 // symbolRotate: null, // 图形旋转控制 large: false, // Available when large is true largeThreshold: 2000, // cursor: null, // label: { // show: false // distance: 5, // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为 // 'inside'|'left'|'right'|'top'|'bottom' // 默认使用全局文本样式,详见TEXTSTYLE // }, itemStyle: { opacity: 0.8 // color: 各异 } // progressive: null } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ // TODO Batch by color var BOOST_SIZE_THRESHOLD = 4; var LargeSymbolPath = extendShape({ shape: { points: null }, symbolProxy: null, buildPath: function (path, shape) { var points = shape.points; var size = shape.size; var symbolProxy = this.symbolProxy; var symbolProxyShape = symbolProxy.shape; var ctx = path.getContext ? path.getContext() : path; var canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD; // Do draw in afterBrush. if (canBoost) { return; } for (var i = 0; i < points.length;) { var x = points[i++]; var y = points[i++]; if (isNaN(x) || isNaN(y)) { continue; } symbolProxyShape.x = x - size[0] / 2; symbolProxyShape.y = y - size[1] / 2; symbolProxyShape.width = size[0]; symbolProxyShape.height = size[1]; symbolProxy.buildPath(path, symbolProxyShape, true); } }, afterBrush: function (ctx) { var shape = this.shape; var points = shape.points; var size = shape.size; var canBoost = size[0] < BOOST_SIZE_THRESHOLD; if (!canBoost) { return; } this.setTransform(ctx); // PENDING If style or other canvas status changed? for (var i = 0; i < points.length;) { var x = points[i++]; var y = points[i++]; if (isNaN(x) || isNaN(y)) { continue; } // fillRect is faster than building a rect path and draw. // And it support light globalCompositeOperation. ctx.fillRect( x - size[0] / 2, y - size[1] / 2, size[0], size[1] ); } this.restoreTransform(ctx); }, findDataIndex: function (x, y) { // TODO ??? // Consider transform var shape = this.shape; var points = shape.points; var size = shape.size; var w = Math.max(size[0], 4); var h = Math.max(size[1], 4); // Not consider transform // Treat each element as a rect // top down traverse for (var idx = points.length / 2 - 1; idx >= 0; idx--) { var i = idx * 2; var x0 = points[i] - w / 2; var y0 = points[i + 1] - h / 2; if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) { return idx; } } return -1; } }); function LargeSymbolDraw() { this.group = new Group(); } var largeSymbolProto = LargeSymbolDraw.prototype; largeSymbolProto.isPersistent = function () { return !this._incremental; }; /** * Update symbols draw by new data * @param {module:echarts/data/List} data */ largeSymbolProto.updateData = function (data) { this.group.removeAll(); var symbolEl = new LargeSymbolPath({ rectHover: true, cursor: 'default' }); symbolEl.setShape({ points: data.getLayout('symbolPoints') }); this._setCommon(symbolEl, data); this.group.add(symbolEl); this._incremental = null; }; largeSymbolProto.updateLayout = function (data) { if (this._incremental) { return; } var points = data.getLayout('symbolPoints'); this.group.eachChild(function (child) { if (child.startIndex != null) { var len = (child.endIndex - child.startIndex) * 2; var byteOffset = child.startIndex * 4 * 2; points = new Float32Array(points.buffer, byteOffset, len); } child.setShape('points', points); }); }; largeSymbolProto.incrementalPrepareUpdate = function (data) { this.group.removeAll(); this._clearIncremental(); // Only use incremental displayables when data amount is larger than 2 million. // PENDING Incremental data? if (data.count() > 2e6) { if (!this._incremental) { this._incremental = new IncrementalDisplayble({ silent: true }); } this.group.add(this._incremental); } else { this._incremental = null; } }; largeSymbolProto.incrementalUpdate = function (taskParams, data) { var symbolEl; if (this._incremental) { symbolEl = new LargeSymbolPath(); this._incremental.addDisplayable(symbolEl, true); } else { symbolEl = new LargeSymbolPath({ rectHover: true, cursor: 'default', startIndex: taskParams.start, endIndex: taskParams.end }); symbolEl.incremental = true; this.group.add(symbolEl); } symbolEl.setShape({ points: data.getLayout('symbolPoints') }); this._setCommon(symbolEl, data, !!this._incremental); }; largeSymbolProto._setCommon = function (symbolEl, data, isIncremental) { var hostModel = data.hostModel; // TODO // if (data.hasItemVisual.symbolSize) { // // TODO typed array? // symbolEl.setShape('sizes', data.mapArray( // function (idx) { // var size = data.getItemVisual(idx, 'symbolSize'); // return (size instanceof Array) ? size : [size, size]; // } // )); // } // else { var size = data.getVisual('symbolSize'); symbolEl.setShape('size', (size instanceof Array) ? size : [size, size]); // } // Create symbolProxy to build path for each data symbolEl.symbolProxy = createSymbol( data.getVisual('symbol'), 0, 0, 0, 0 ); // Use symbolProxy setColor method symbolEl.setColor = symbolEl.symbolProxy.setColor; var extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD; symbolEl.useStyle( // Draw shadow when doing fillRect is extremely slow. hostModel.getModel('itemStyle').getItemStyle(extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']) ); var visualColor = data.getVisual('color'); if (visualColor) { symbolEl.setColor(visualColor); } if (!isIncremental) { // Enable tooltip // PENDING May have performance issue when path is extremely large symbolEl.seriesIndex = hostModel.seriesIndex; symbolEl.on('mousemove', function (e) { symbolEl.dataIndex = null; var dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY); if (dataIndex >= 0) { // Provide dataIndex for tooltip symbolEl.dataIndex = dataIndex + (symbolEl.startIndex || 0); } }); } }; largeSymbolProto.remove = function () { this._clearIncremental(); this._incremental = null; this.group.removeAll(); }; largeSymbolProto._clearIncremental = function () { var incremental = this._incremental; if (incremental) { incremental.clearDisplaybles(); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendChartView({ type: 'scatter', render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolDraw = this._updateSymbolDraw(data, seriesModel); symbolDraw.updateData(data); this._finished = true; }, incrementalPrepareRender: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolDraw = this._updateSymbolDraw(data, seriesModel); symbolDraw.incrementalPrepareUpdate(data); this._finished = false; }, incrementalRender: function (taskParams, seriesModel, ecModel) { this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData()); this._finished = taskParams.end === seriesModel.getData().count(); }, updateTransform: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); // Must mark group dirty and make sure the incremental layer will be cleared // PENDING this.group.dirty(); if (!this._finished || data.count() > 1e4 || !this._symbolDraw.isPersistent()) { return { update: true }; } else { var res = pointsLayout().reset(seriesModel); if (res.progress) { res.progress({ start: 0, end: data.count() }, data); } this._symbolDraw.updateLayout(data); } }, _updateSymbolDraw: function (data, seriesModel) { var symbolDraw = this._symbolDraw; var pipelineContext = seriesModel.pipelineContext; var isLargeDraw = pipelineContext.large; if (!symbolDraw || isLargeDraw !== this._isLargeDraw) { symbolDraw && symbolDraw.remove(); symbolDraw = this._symbolDraw = isLargeDraw ? new LargeSymbolDraw() : new SymbolDraw(); this._isLargeDraw = isLargeDraw; this.group.removeAll(); } this.group.add(symbolDraw.group); return symbolDraw; }, remove: function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(true); this._symbolDraw = null; }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import * as zrUtil from 'zrender/src/core/util'; // In case developer forget to include grid component registerVisual(visualSymbol('scatter', 'circle')); registerLayout(pointsLayout('scatter')); // echarts.registerProcessor(function (ecModel, api) { // ecModel.eachSeriesByType('scatter', function (seriesModel) { // var data = seriesModel.getData(); // var coordSys = seriesModel.coordinateSystem; // if (coordSys.type !== 'geo') { // return; // } // var startPt = coordSys.pointToData([0, 0]); // var endPt = coordSys.pointToData([api.getWidth(), api.getHeight()]); // var dims = zrUtil.map(coordSys.dimensions, function (dim) { // return data.mapDimension(dim); // }); // var range = {}; // range[dims[0]] = [Math.min(startPt[0], endPt[0]), Math.max(startPt[0], endPt[0])]; // range[dims[1]] = [Math.min(startPt[1], endPt[1]), Math.max(startPt[1], endPt[1])]; // data.selectRange(range); // }); // }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function IndicatorAxis(dim, scale, radiusExtent) { Axis.call(this, dim, scale, radiusExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'value'; this.angle = 0; /** * Indicator name * @type {string} */ this.name = ''; /** * @type {module:echarts/model/Model} */ this.model; } inherits(IndicatorAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO clockwise function Radar(radarModel, ecModel, api) { this._model = radarModel; /** * Radar dimensions * @type {Array.} */ this.dimensions = []; this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) { var dim = 'indicator_' + idx; var indicatorAxis = new IndicatorAxis(dim, new IntervalScale()); indicatorAxis.name = indicatorModel.get('name'); // Inject model and axis indicatorAxis.model = indicatorModel; indicatorModel.axis = indicatorAxis; this.dimensions.push(dim); return indicatorAxis; }, this); this.resize(radarModel, api); /** * @type {number} * @readOnly */ this.cx; /** * @type {number} * @readOnly */ this.cy; /** * @type {number} * @readOnly */ this.r; /** * @type {number} * @readOnly */ this.r0; /** * @type {number} * @readOnly */ this.startAngle; } Radar.prototype.getIndicatorAxes = function () { return this._indicatorAxes; }; Radar.prototype.dataToPoint = function (value, indicatorIndex) { var indicatorAxis = this._indicatorAxes[indicatorIndex]; return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex); }; Radar.prototype.coordToPoint = function (coord, indicatorIndex) { var indicatorAxis = this._indicatorAxes[indicatorIndex]; var angle = indicatorAxis.angle; var x = this.cx + coord * Math.cos(angle); var y = this.cy - coord * Math.sin(angle); return [x, y]; }; Radar.prototype.pointToData = function (pt) { var dx = pt[0] - this.cx; var dy = pt[1] - this.cy; var radius = Math.sqrt(dx * dx + dy * dy); dx /= radius; dy /= radius; var radian = Math.atan2(-dy, dx); // Find the closest angle // FIXME index can calculated directly var minRadianDiff = Infinity; var closestAxis; var closestAxisIdx = -1; for (var i = 0; i < this._indicatorAxes.length; i++) { var indicatorAxis = this._indicatorAxes[i]; var diff = Math.abs(radian - indicatorAxis.angle); if (diff < minRadianDiff) { closestAxis = indicatorAxis; closestAxisIdx = i; minRadianDiff = diff; } } return [closestAxisIdx, +(closestAxis && closestAxis.coodToData(radius))]; }; Radar.prototype.resize = function (radarModel, api) { var center = radarModel.get('center'); var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); var viewSize = Math.min(viewWidth, viewHeight) / 2; this.cx = parsePercent$1(center[0], viewWidth); this.cy = parsePercent$1(center[1], viewHeight); this.startAngle = radarModel.get('startAngle') * Math.PI / 180; // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']` var radius = radarModel.get('radius'); if (typeof radius === 'string' || typeof radius === 'number') { radius = [0, radius]; } this.r0 = parsePercent$1(radius[0], viewSize); this.r = parsePercent$1(radius[1], viewSize); each$1(this._indicatorAxes, function (indicatorAxis, idx) { indicatorAxis.setExtent(this.r0, this.r); var angle = (this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length); // Normalize to [-PI, PI] angle = Math.atan2(Math.sin(angle), Math.cos(angle)); indicatorAxis.angle = angle; }, this); }; Radar.prototype.update = function (ecModel, api) { var indicatorAxes = this._indicatorAxes; var radarModel = this._model; each$1(indicatorAxes, function (indicatorAxis) { indicatorAxis.scale.setExtent(Infinity, -Infinity); }); ecModel.eachSeriesByType('radar', function (radarSeries, idx) { if (radarSeries.get('coordinateSystem') !== 'radar' || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel ) { return; } var data = radarSeries.getData(); each$1(indicatorAxes, function (indicatorAxis) { indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim)); }); }, this); var splitNumber = radarModel.get('splitNumber'); function increaseInterval(interval) { var exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10)); // Increase interval var f = interval / exp10; if (f === 2) { f = 5; } else { // f is 2 or 5 f *= 2; } return f * exp10; } // Force all the axis fixing the maxSplitNumber. each$1(indicatorAxes, function (indicatorAxis, idx) { var rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model); niceScaleExtent(indicatorAxis.scale, indicatorAxis.model); var axisModel = indicatorAxis.model; var scale = indicatorAxis.scale; var fixedMin = axisModel.getMin(); var fixedMax = axisModel.getMax(); var interval = scale.getInterval(); if (fixedMin != null && fixedMax != null) { // User set min, max, divide to get new interval scale.setExtent(+fixedMin, +fixedMax); scale.setInterval( (fixedMax - fixedMin) / splitNumber ); } else if (fixedMin != null) { var max; // User set min, expand extent on the other side do { max = fixedMin + interval * splitNumber; scale.setExtent(+fixedMin, max); // Interval must been set after extent // FIXME scale.setInterval(interval); interval = increaseInterval(interval); } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1])); } else if (fixedMax != null) { var min; // User set min, expand extent on the other side do { min = fixedMax - interval * splitNumber; scale.setExtent(min, +fixedMax); scale.setInterval(interval); interval = increaseInterval(interval); } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0])); } else { var nicedSplitNumber = scale.getTicks().length - 1; if (nicedSplitNumber > splitNumber) { interval = increaseInterval(interval); } // PENDING var center = Math.round((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval; var halfSplitNumber = Math.round(splitNumber / 2); scale.setExtent( round$1(center - halfSplitNumber * interval), round$1(center + (splitNumber - halfSplitNumber) * interval) ); scale.setInterval(interval); } }); }; /** * Radar dimensions is based on the data * @type {Array} */ Radar.dimensions = []; Radar.create = function (ecModel, api) { var radarList = []; ecModel.eachComponent('radar', function (radarModel) { var radar = new Radar(radarModel, ecModel, api); radarList.push(radar); radarModel.coordinateSystem = radar; }); ecModel.eachSeriesByType('radar', function (radarSeries) { if (radarSeries.get('coordinateSystem') === 'radar') { // Inject coordinate system radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0]; } }); return radarList; }; CoordinateSystemManager.register('radar', Radar); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var valueAxisDefault = axisDefault.valueAxis; function defaultsShow(opt, show) { return defaults({ show: show }, opt); } var RadarModel = extendComponentModel({ type: 'radar', optionUpdated: function () { var boundaryGap = this.get('boundaryGap'); var splitNumber = this.get('splitNumber'); var scale = this.get('scale'); var axisLine = this.get('axisLine'); var axisTick = this.get('axisTick'); var axisLabel = this.get('axisLabel'); var nameTextStyle = this.get('name'); var showName = this.get('name.show'); var nameFormatter = this.get('name.formatter'); var nameGap = this.get('nameGap'); var triggerEvent = this.get('triggerEvent'); var indicatorModels = map(this.get('indicator') || [], function (indicatorOpt) { // PENDING if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) { indicatorOpt.min = 0; } else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) { indicatorOpt.max = 0; } var iNameTextStyle = nameTextStyle; if (indicatorOpt.color != null) { iNameTextStyle = defaults({color: indicatorOpt.color}, nameTextStyle); } // Use same configuration indicatorOpt = merge(clone(indicatorOpt), { boundaryGap: boundaryGap, splitNumber: splitNumber, scale: scale, axisLine: axisLine, axisTick: axisTick, axisLabel: axisLabel, // Competitable with 2 and use text name: indicatorOpt.text, nameLocation: 'end', nameGap: nameGap, // min: 0, nameTextStyle: iNameTextStyle, triggerEvent: triggerEvent }, false); if (!showName) { indicatorOpt.name = ''; } if (typeof nameFormatter === 'string') { var indName = indicatorOpt.name; indicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : ''); } else if (typeof nameFormatter === 'function') { indicatorOpt.name = nameFormatter( indicatorOpt.name, indicatorOpt ); } var model = extend( new Model(indicatorOpt, null, this.ecModel), axisModelCommonMixin ); // For triggerEvent. model.mainType = 'radar'; model.componentIndex = this.componentIndex; return model; }, this); this.getIndicatorModels = function () { return indicatorModels; }; }, defaultOption: { zlevel: 0, z: 0, center: ['50%', '50%'], radius: '75%', startAngle: 90, name: { show: true // formatter: null // textStyle: {} }, boundaryGap: [0, 0], splitNumber: 5, nameGap: 15, scale: false, // Polygon or circle shape: 'polygon', axisLine: merge( { lineStyle: { color: '#bbb' } }, valueAxisDefault.axisLine ), axisLabel: defaultsShow(valueAxisDefault.axisLabel, false), axisTick: defaultsShow(valueAxisDefault.axisTick, false), splitLine: defaultsShow(valueAxisDefault.splitLine, true), splitArea: defaultsShow(valueAxisDefault.splitArea, true), // {text, min, max} indicator: [] } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs$1 = [ 'axisLine', 'axisTickLabel', 'axisName' ]; extendComponentView({ type: 'radar', render: function (radarModel, ecModel, api) { var group = this.group; group.removeAll(); this._buildAxes(radarModel); this._buildSplitLineAndArea(radarModel); }, _buildAxes: function (radarModel) { var radar = radarModel.coordinateSystem; var indicatorAxes = radar.getIndicatorAxes(); var axisBuilders = map(indicatorAxes, function (indicatorAxis) { var axisBuilder = new AxisBuilder(indicatorAxis.model, { position: [radar.cx, radar.cy], rotation: indicatorAxis.angle, labelDirection: -1, tickDirection: -1, nameDirection: 1 }); return axisBuilder; }); each$1(axisBuilders, function (axisBuilder) { each$1(axisBuilderAttrs$1, axisBuilder.add, axisBuilder); this.group.add(axisBuilder.getGroup()); }, this); }, _buildSplitLineAndArea: function (radarModel) { var radar = radarModel.coordinateSystem; var indicatorAxes = radar.getIndicatorAxes(); if (!indicatorAxes.length) { return; } var shape = radarModel.get('shape'); var splitLineModel = radarModel.getModel('splitLine'); var splitAreaModel = radarModel.getModel('splitArea'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var showSplitLine = splitLineModel.get('show'); var showSplitArea = splitAreaModel.get('show'); var splitLineColors = lineStyleModel.get('color'); var splitAreaColors = areaStyleModel.get('color'); splitLineColors = isArray(splitLineColors) ? splitLineColors : [splitLineColors]; splitAreaColors = isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors]; var splitLines = []; var splitAreas = []; function getColorIndex(areaOrLine, areaOrLineColorList, idx) { var colorIndex = idx % areaOrLineColorList.length; areaOrLine[colorIndex] = areaOrLine[colorIndex] || []; return colorIndex; } if (shape === 'circle') { var ticksRadius = indicatorAxes[0].getTicksCoords(); var cx = radar.cx; var cy = radar.cy; for (var i = 0; i < ticksRadius.length; i++) { if (showSplitLine) { var colorIndex = getColorIndex(splitLines, splitLineColors, i); splitLines[colorIndex].push(new Circle({ shape: { cx: cx, cy: cy, r: ticksRadius[i].coord } })); } if (showSplitArea && i < ticksRadius.length - 1) { var colorIndex = getColorIndex(splitAreas, splitAreaColors, i); splitAreas[colorIndex].push(new Ring({ shape: { cx: cx, cy: cy, r0: ticksRadius[i].coord, r: ticksRadius[i + 1].coord } })); } } } // Polyyon else { var realSplitNumber; var axesTicksPoints = map(indicatorAxes, function (indicatorAxis, idx) { var ticksCoords = indicatorAxis.getTicksCoords(); realSplitNumber = realSplitNumber == null ? ticksCoords.length - 1 : Math.min(ticksCoords.length - 1, realSplitNumber); return map(ticksCoords, function (tickCoord) { return radar.coordToPoint(tickCoord.coord, idx); }); }); var prevPoints = []; for (var i = 0; i <= realSplitNumber; i++) { var points = []; for (var j = 0; j < indicatorAxes.length; j++) { points.push(axesTicksPoints[j][i]); } // Close if (points[0]) { points.push(points[0].slice()); } else { if (__DEV__) { console.error('Can\'t draw value axis ' + i); } } if (showSplitLine) { var colorIndex = getColorIndex(splitLines, splitLineColors, i); splitLines[colorIndex].push(new Polyline({ shape: { points: points } })); } if (showSplitArea && prevPoints) { var colorIndex = getColorIndex(splitAreas, splitAreaColors, i - 1); splitAreas[colorIndex].push(new Polygon({ shape: { points: points.concat(prevPoints) } })); } prevPoints = points.slice().reverse(); } } var lineStyle = lineStyleModel.getLineStyle(); var areaStyle = areaStyleModel.getAreaStyle(); // Add splitArea before splitLine each$1(splitAreas, function (splitAreas, idx) { this.group.add(mergePath( splitAreas, { style: defaults({ stroke: 'none', fill: splitAreaColors[idx % splitAreaColors.length] }, areaStyle), silent: true } )); }, this); each$1(splitLines, function (splitLines, idx) { this.group.add(mergePath( splitLines, { style: defaults({ fill: 'none', stroke: splitLineColors[idx % splitLineColors.length] }, lineStyle), silent: true } )); }, this); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RadarSeries = SeriesModel.extend({ type: 'series.radar', dependencies: ['radar'], // Overwrite init: function (option) { RadarSeries.superApply(this, 'init', arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendDataProvider = function () { return this.getRawData(); }; }, getInitialData: function (option, ecModel) { return createListSimply(this, { generateCoord: 'indicator_', generateCoordCount: Infinity }); }, formatTooltip: function (dataIndex) { var data = this.getData(); var coordSys = this.coordinateSystem; var indicatorAxes = coordSys.getIndicatorAxes(); var name = this.getData().getName(dataIndex); return encodeHTML(name === '' ? this.name : name) + '
    ' + map(indicatorAxes, function (axis, idx) { var val = data.get(data.mapDimension(axis.dim), dataIndex); return encodeHTML(axis.name + ' : ' + val); }).join('
    '); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'radar', legendHoverLink: true, radarIndex: 0, lineStyle: { width: 2, type: 'solid' }, label: { position: 'top' }, // areaStyle: { // }, // itemStyle: {} symbol: 'emptyCircle', symbolSize: 4 // symbolRotate: null } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function normalizeSymbolSize(symbolSize) { if (!isArray(symbolSize)) { symbolSize = [+symbolSize, +symbolSize]; } return symbolSize; } extendChartView({ type: 'radar', render: function (seriesModel, ecModel, api) { var polar = seriesModel.coordinateSystem; var group = this.group; var data = seriesModel.getData(); var oldData = this._data; function createSymbol$$1(data, idx) { var symbolType = data.getItemVisual(idx, 'symbol') || 'circle'; var color = data.getItemVisual(idx, 'color'); if (symbolType === 'none') { return; } var symbolSize = normalizeSymbolSize( data.getItemVisual(idx, 'symbolSize') ); var symbolPath = createSymbol( symbolType, -1, -1, 2, 2, color ); symbolPath.attr({ style: { strokeNoScale: true }, z2: 100, scale: [symbolSize[0] / 2, symbolSize[1] / 2] }); return symbolPath; } function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) { // Simply rerender all symbolGroup.removeAll(); for (var i = 0; i < newPoints.length - 1; i++) { var symbolPath = createSymbol$$1(data, idx); if (symbolPath) { symbolPath.__dimIdx = i; if (oldPoints[i]) { symbolPath.attr('position', oldPoints[i]); graphic[isInit ? 'initProps' : 'updateProps']( symbolPath, { position: newPoints[i] }, seriesModel, idx ); } else { symbolPath.attr('position', newPoints[i]); } symbolGroup.add(symbolPath); } } } function getInitialPoints(points) { return map(points, function (pt) { return [polar.cx, polar.cy]; }); } data.diff(oldData) .add(function (idx) { var points = data.getItemLayout(idx); if (!points) { return; } var polygon = new Polygon(); var polyline = new Polyline(); var target = { shape: { points: points } }; polygon.shape.points = getInitialPoints(points); polyline.shape.points = getInitialPoints(points); initProps(polygon, target, seriesModel, idx); initProps(polyline, target, seriesModel, idx); var itemGroup = new Group(); var symbolGroup = new Group(); itemGroup.add(polyline); itemGroup.add(polygon); itemGroup.add(symbolGroup); updateSymbols( polyline.shape.points, points, symbolGroup, data, idx, true ); data.setItemGraphicEl(idx, itemGroup); }) .update(function (newIdx, oldIdx) { var itemGroup = oldData.getItemGraphicEl(oldIdx); var polyline = itemGroup.childAt(0); var polygon = itemGroup.childAt(1); var symbolGroup = itemGroup.childAt(2); var target = { shape: { points: data.getItemLayout(newIdx) } }; if (!target.shape.points) { return; } updateSymbols( polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false ); updateProps(polyline, target, seriesModel); updateProps(polygon, target, seriesModel); data.setItemGraphicEl(newIdx, itemGroup); }) .remove(function (idx) { group.remove(oldData.getItemGraphicEl(idx)); }) .execute(); data.eachItemGraphicEl(function (itemGroup, idx) { var itemModel = data.getItemModel(idx); var polyline = itemGroup.childAt(0); var polygon = itemGroup.childAt(1); var symbolGroup = itemGroup.childAt(2); var color = data.getItemVisual(idx, 'color'); group.add(itemGroup); polyline.useStyle( defaults( itemModel.getModel('lineStyle').getLineStyle(), { fill: 'none', stroke: color } ) ); polyline.hoverStyle = itemModel.getModel('emphasis.lineStyle').getLineStyle(); var areaStyleModel = itemModel.getModel('areaStyle'); var hoverAreaStyleModel = itemModel.getModel('emphasis.areaStyle'); var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty(); var hoverPolygonIgnore = hoverAreaStyleModel.isEmpty() && hoverAreaStyleModel.parentModel.isEmpty(); hoverPolygonIgnore = hoverPolygonIgnore && polygonIgnore; polygon.ignore = polygonIgnore; polygon.useStyle( defaults( areaStyleModel.getAreaStyle(), { fill: color, opacity: 0.7 } ) ); polygon.hoverStyle = hoverAreaStyleModel.getAreaStyle(); var itemStyle = itemModel.getModel('itemStyle').getItemStyle(['color']); var itemHoverStyle = itemModel.getModel('emphasis.itemStyle').getItemStyle(); var labelModel = itemModel.getModel('label'); var labelHoverModel = itemModel.getModel('emphasis.label'); symbolGroup.eachChild(function (symbolPath) { symbolPath.setStyle(itemStyle); symbolPath.hoverStyle = clone(itemHoverStyle); var defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx); (defaultText == null || isNaN(defaultText)) && (defaultText = ''); setLabelStyle( symbolPath.style, symbolPath.hoverStyle, labelModel, labelHoverModel, { labelFetcher: data.hostModel, labelDataIndex: idx, labelDimIndex: symbolPath.__dimIdx, defaultText: defaultText, autoColor: color, isRectText: true } ); }); itemGroup.highDownOnUpdate = function (fromState, toState) { polygon.attr('ignore', toState === 'emphasis' ? hoverPolygonIgnore : polygonIgnore); }; setHoverStyle(itemGroup); }); this._data = data; }, remove: function () { this.group.removeAll(); this._data = null; }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var radarLayout = function (ecModel) { ecModel.eachSeriesByType('radar', function (seriesModel) { var data = seriesModel.getData(); var points = []; var coordSys = seriesModel.coordinateSystem; if (!coordSys) { return; } var axes = coordSys.getIndicatorAxes(); each$1(axes, function (axis, axisIndex) { data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) { points[dataIndex] = points[dataIndex] || []; var point = coordSys.dataToPoint(val, axisIndex); points[dataIndex][axisIndex] = isValidPoint(point) ? point : getValueMissingPoint(coordSys); }); }); // Close polygon data.each(function (idx) { // TODO // Is it appropriate to connect to the next data when some data is missing? // Or, should trade it like `connectNull` in line chart? var firstPoint = find(points[idx], function (point) { return isValidPoint(point); }) || getValueMissingPoint(coordSys); // Copy the first actual point to the end of the array points[idx].push(firstPoint.slice()); data.setItemLayout(idx, points[idx]); }); }); }; function isValidPoint(point) { return !isNaN(point[0]) && !isNaN(point[1]); } function getValueMissingPoint(coordSys) { // It is error-prone to input [NaN, NaN] into polygon, polygon. // (probably cause problem when refreshing or animating) return [coordSys.cx, coordSys.cy]; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Backward compat for radar chart in 2 var backwardCompat$1 = function (option) { var polarOptArr = option.polar; if (polarOptArr) { if (!isArray(polarOptArr)) { polarOptArr = [polarOptArr]; } var polarNotRadar = []; each$1(polarOptArr, function (polarOpt, idx) { if (polarOpt.indicator) { if (polarOpt.type && !polarOpt.shape) { polarOpt.shape = polarOpt.type; } option.radar = option.radar || []; if (!isArray(option.radar)) { option.radar = [option.radar]; } option.radar.push(polarOpt); } else { polarNotRadar.push(polarOpt); } }); option.polar = polarNotRadar; } each$1(option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) { seriesOpt.radarIndex = seriesOpt.polarIndex; } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Must use radar component registerVisual(dataColor('radar')); registerVisual(visualSymbol('radar', 'circle')); registerLayout(radarLayout); registerProcessor(dataFilter('radar')); registerPreprocessor(backwardCompat$1); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Fix for 南海诸岛 var geoCoord = [126, 25]; var points$1 = [ [[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]] ]; for (var i$1 = 0; i$1 < points$1.length; i$1++) { for (var k = 0; k < points$1[i$1].length; k++) { points$1[i$1][k][0] /= 10.5; points$1[i$1][k][1] /= -10.5 / 0.75; points$1[i$1][k][0] += geoCoord[0]; points$1[i$1][k][1] += geoCoord[1]; } } var fixNanhai = function (mapType, regions) { if (mapType === 'china') { regions.push(new Region( '南海诸岛', map(points$1, function (exterior) { return { type: 'polygon', exterior: exterior }; }), geoCoord )); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var coordsOffsetMap = { '南海诸岛': [32, 80], // 全国 '广东': [0, -10], '香港': [10, 5], '澳门': [-10, 10], //'北京': [-10, 0], '天津': [5, 5] }; var fixTextCoord = function (mapType, region) { if (mapType === 'china') { var coordFix = coordsOffsetMap[region.name]; if (coordFix) { var cp = region.center; cp[0] += coordFix[0] / 10.5; cp[1] += -coordFix[1] / (10.5 / 0.75); } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var geoCoordMap = { 'Russia': [100, 60], 'United States': [-99, 38], 'United States of America': [-99, 38] }; var fixGeoCoord = function (mapType, region) { if (mapType === 'world') { var geoCoord = geoCoordMap[region.name]; if (geoCoord) { var cp = region.center; cp[0] = geoCoord[0]; cp[1] = geoCoord[1]; } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Fix for 钓鱼岛 // var Region = require('../Region'); // var zrUtil = require('zrender/src/core/util'); // var geoCoord = [126, 25]; var points$2 = [ [ [123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261] ] ]; var fixDiaoyuIsland = function (mapType, region) { if (mapType === 'china' && region.name === '台湾') { region.geometries.push({ type: 'polygon', exterior: points$2[0] }); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Built-in GEO fixer. var inner$7 = makeInner(); var geoJSONLoader = { /** * @param {string} mapName * @param {Object} mapRecord {specialAreas, geoJSON} * @return {Object} {regions, boundingRect} */ load: function (mapName, mapRecord) { var parsed = inner$7(mapRecord).parsed; if (parsed) { return parsed; } var specialAreas = mapRecord.specialAreas || {}; var geoJSON = mapRecord.geoJSON; var regions; // https://jsperf.com/try-catch-performance-overhead try { regions = geoJSON ? parseGeoJson$1(geoJSON) : []; } catch (e) { throw new Error('Invalid geoJson format\n' + e.message); } each$1(regions, function (region) { var regionName = region.name; fixTextCoord(mapName, region); fixGeoCoord(mapName, region); fixDiaoyuIsland(mapName, region); // Some area like Alaska in USA map needs to be tansformed // to look better var specialArea = specialAreas[regionName]; if (specialArea) { region.transformTo( specialArea.left, specialArea.top, specialArea.width, specialArea.height ); } }); fixNanhai(mapName, regions); return (inner$7(mapRecord).parsed = { regions: regions, boundingRect: getBoundingRect$1(regions) }); } }; function getBoundingRect$1(regions) { var rect; for (var i = 0; i < regions.length; i++) { var regionRect = regions[i].getBoundingRect(); rect = rect || regionRect.clone(); rect.union(regionRect); } return rect; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$8 = makeInner(); var geoSVGLoader = { /** * @param {string} mapName * @param {Object} mapRecord {specialAreas, geoJSON} * @return {Object} {root, boundingRect} */ load: function (mapName, mapRecord) { var originRoot = inner$8(mapRecord).originRoot; if (originRoot) { return { root: originRoot, boundingRect: inner$8(mapRecord).boundingRect }; } var graphic = buildGraphic(mapRecord); inner$8(mapRecord).originRoot = graphic.root; inner$8(mapRecord).boundingRect = graphic.boundingRect; return graphic; }, makeGraphic: function (mapName, mapRecord, hostKey) { // For performance consideration (in large SVG), graphic only maked // when necessary and reuse them according to hostKey. var field = inner$8(mapRecord); var rootMap = field.rootMap || (field.rootMap = createHashMap()); var root = rootMap.get(hostKey); if (root) { return root; } var originRoot = field.originRoot; var boundingRect = field.boundingRect; // For performance, if originRoot is not used by a view, // assign it to a view, but not reproduce graphic elements. if (!field.originRootHostKey) { field.originRootHostKey = hostKey; root = originRoot; } else { root = buildGraphic(mapRecord, boundingRect).root; } return rootMap.set(hostKey, root); }, removeGraphic: function (mapName, mapRecord, hostKey) { var field = inner$8(mapRecord); var rootMap = field.rootMap; rootMap && rootMap.removeKey(hostKey); if (hostKey === field.originRootHostKey) { field.originRootHostKey = null; } } }; function buildGraphic(mapRecord, boundingRect) { var svgXML = mapRecord.svgXML; var result; var root; try { result = svgXML && parseSVG(svgXML, { ignoreViewBox: true, ignoreRootClip: true }) || {}; root = result.root; assert$1(root != null); } catch (e) { throw new Error('Invalid svg format\n' + e.message); } var svgWidth = result.width; var svgHeight = result.height; var viewBoxRect = result.viewBoxRect; if (!boundingRect) { boundingRect = (svgWidth == null || svgHeight == null) // If svg width / height not specified, calculate // bounding rect as the width / height ? root.getBoundingRect() : new BoundingRect(0, 0, 0, 0); if (svgWidth != null) { boundingRect.width = svgWidth; } if (svgHeight != null) { boundingRect.height = svgHeight; } } if (viewBoxRect) { var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect.width, boundingRect.height); var elRoot = root; root = new Group(); root.add(elRoot); elRoot.scale = viewBoxTransform.scale; elRoot.position = viewBoxTransform.position; } root.setClipPath(new Rect({ shape: boundingRect.plain() })); return { root: root, boundingRect: boundingRect }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var loaders = { geoJSON: geoJSONLoader, svg: geoSVGLoader }; var geoSourceManager = { /** * @param {string} mapName * @param {Object} nameMap * @return {Object} source {regions, regionsMap, nameCoordMap, boundingRect} */ load: function (mapName, nameMap) { var regions = []; var regionsMap = createHashMap(); var nameCoordMap = createHashMap(); var boundingRect; var mapRecords = retrieveMap(mapName); each$1(mapRecords, function (record) { var singleSource = loaders[record.type].load(mapName, record); each$1(singleSource.regions, function (region) { var regionName = region.name; // Try use the alias in geoNameMap if (nameMap && nameMap.hasOwnProperty(regionName)) { region = region.cloneShallow(regionName = nameMap[regionName]); } regions.push(region); regionsMap.set(regionName, region); nameCoordMap.set(regionName, region.center); }); var rect = singleSource.boundingRect; if (rect) { boundingRect ? boundingRect.union(rect) : (boundingRect = rect.clone()); } }); return { regions: regions, regionsMap: regionsMap, nameCoordMap: nameCoordMap, // FIXME Always return new ? boundingRect: boundingRect || new BoundingRect(0, 0, 0, 0) }; }, /** * @param {string} mapName * @param {string} hostKey For cache. * @return {Array.} Roots. */ makeGraphic: makeInvoker('makeGraphic'), /** * @param {string} mapName * @param {string} hostKey For cache. */ removeGraphic: makeInvoker('removeGraphic') }; function makeInvoker(methodName) { return function (mapName, hostKey) { var mapRecords = retrieveMap(mapName); var results = []; each$1(mapRecords, function (record) { var method = loaders[record.type][methodName]; method && results.push(method(mapName, record, hostKey)); }); return results; }; } function mapNotExistsError(mapName) { if (__DEV__) { console.error( 'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.' ); } } function retrieveMap(mapName) { var mapRecords = mapDataStorage.retrieveMap(mapName) || []; if (__DEV__) { if (!mapRecords.length) { mapNotExistsError(mapName); } } return mapRecords; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MapSeries = SeriesModel.extend({ type: 'series.map', dependencies: ['geo'], layoutMode: 'box', /** * Only first map series of same mapType will drawMap * @type {boolean} */ needsDrawMap: false, /** * Group of all map series with same mapType * @type {boolean} */ seriesGroup: [], getInitialData: function (option) { var data = createListSimply(this, ['value']); var valueDim = data.mapDimension('value'); var dataNameMap = createHashMap(); var selectTargetList = []; var toAppendNames = []; for (var i = 0, len = data.count(); i < len; i++) { var name = data.getName(i); dataNameMap.set(name, true); selectTargetList.push({ name: name, value: data.get(valueDim, i), selected: retrieveRawAttr(data, i, 'selected') }); } var geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap); each$1(geoSource.regions, function (region) { var name = region.name; if (!dataNameMap.get(name)) { selectTargetList.push({name: name}); toAppendNames.push(name); } }); this.updateSelectedMap(selectTargetList); // Complete data with missing regions. The consequent processes (like visual // map and render) can not be performed without a "full data". For example, // find `dataIndex` by name. data.appendValues([], toAppendNames); return data; }, /** * If no host geo model, return null, which means using a * inner exclusive geo model. */ getHostGeoModel: function () { var geoIndex = this.option.geoIndex; return geoIndex != null ? this.dependentModels.geo[geoIndex] : null; }, getMapType: function () { return (this.getHostGeoModel() || this).option.map; }, // _fillOption: function (option, mapName) { // Shallow clone // option = zrUtil.extend({}, option); // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap); // return option; // }, getRawValue: function (dataIndex) { // Use value stored in data instead because it is calculated from multiple series // FIXME Provide all value of multiple series ? var data = this.getData(); return data.get(data.mapDimension('value'), dataIndex); }, /** * Get model of region * @param {string} name * @return {module:echarts/model/Model} */ getRegionModel: function (regionName) { var data = this.getData(); return data.getItemModel(data.indexOfName(regionName)); }, /** * Map tooltip formatter * * @param {number} dataIndex */ formatTooltip: function (dataIndex) { // FIXME orignalData and data is a bit confusing var data = this.getData(); var formattedValue = addCommas(this.getRawValue(dataIndex)); var name = data.getName(dataIndex); var seriesGroup = this.seriesGroup; var seriesNames = []; for (var i = 0; i < seriesGroup.length; i++) { var otherIndex = seriesGroup[i].originalData.indexOfName(name); var valueDim = data.mapDimension('value'); if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex))) { seriesNames.push( encodeHTML(seriesGroup[i].name) ); } } return seriesNames.join(', ') + '
    ' + encodeHTML(name + ' : ' + formattedValue); }, /** * @implement */ getTooltipPosition: function (dataIndex) { if (dataIndex != null) { var name = this.getData().getName(dataIndex); var geo = this.coordinateSystem; var region = geo.getRegion(name); return region && geo.dataToPoint(region.center); } }, setZoom: function (zoom) { this.option.zoom = zoom; }, setCenter: function (center) { this.option.center = center; }, defaultOption: { // 一级层叠 zlevel: 0, // 二级层叠 z: 2, coordinateSystem: 'geo', // map should be explicitly specified since ec3. map: '', // If `geoIndex` is not specified, a exclusive geo will be // created. Otherwise use the specified geo component, and // `map` and `mapType` are ignored. // geoIndex: 0, // 'center' | 'left' | 'right' | 'x%' | {number} left: 'center', // 'center' | 'top' | 'bottom' | 'x%' | {number} top: 'center', // right // bottom // width: // height // Aspect is width / height. Inited to be geoJson bbox aspect // This parameter is used for scale this aspect aspectScale: 0.75, ///// Layout with center and size // If you wan't to put map in a fixed size box with right aspect ratio // This two properties may more conveninet // layoutCenter: [50%, 50%] // layoutSize: 100 // 数值合并方式,默认加和,可选为: // 'sum' | 'average' | 'max' | 'min' // mapValueCalculation: 'sum', // 地图数值计算结果小数精度 // mapValuePrecision: 0, // 显示图例颜色标识(系列标识的小圆点),图例开启时有效 showLegendSymbol: true, // 选择模式,默认关闭,可选single,multiple // selectedMode: false, dataRangeHoverLink: true, // 是否开启缩放及漫游模式 // roam: false, // Define left-top, right-bottom coords to control view // For example, [ [180, 90], [-180, -90] ], // higher priority than center and zoom boundingCoords: null, // Default on center of map center: null, zoom: 1, scaleLimit: null, label: { show: false, color: '#000' }, // scaleLimit: null, itemStyle: { borderWidth: 0.5, borderColor: '#444', areaColor: '#eee' }, emphasis: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { areaColor: 'rgba(255,215,0,0.8)' } } } }); mixin(MapSeries, selectableMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ATTR = '\0_ec_interaction_mutex'; function take(zr, resourceKey, userKey) { var store = getStore(zr); store[resourceKey] = userKey; } function release(zr, resourceKey, userKey) { var store = getStore(zr); var uKey = store[resourceKey]; if (uKey === userKey) { store[resourceKey] = null; } } function isTaken(zr, resourceKey) { return !!getStore(zr)[resourceKey]; } function getStore(zr) { return zr[ATTR] || (zr[ATTR] = {}); } /** * payload: { * type: 'takeGlobalCursor', * key: 'dataZoomSelect', or 'brush', or ..., * If no userKey, release global cursor. * } */ registerAction( {type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update'}, function () {} ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @alias module:echarts/component/helper/RoamController * @constructor * @mixin {module:zrender/mixin/Eventful} * * @param {module:zrender/zrender~ZRender} zr */ function RoamController(zr) { /** * @type {Function} */ this.pointerChecker; /** * @type {module:zrender} */ this._zr = zr; /** * @type {Object} */ this._opt = {}; // Avoid two roamController bind the same handler var bind$$1 = bind; var mousedownHandler = bind$$1(mousedown, this); var mousemoveHandler = bind$$1(mousemove, this); var mouseupHandler = bind$$1(mouseup, this); var mousewheelHandler = bind$$1(mousewheel, this); var pinchHandler = bind$$1(pinch, this); Eventful.call(this); /** * @param {Function} pointerChecker * input: x, y * output: boolean */ this.setPointerChecker = function (pointerChecker) { this.pointerChecker = pointerChecker; }; /** * Notice: only enable needed types. For example, if 'zoom' * is not needed, 'zoom' should not be enabled, otherwise * default mousewheel behaviour (scroll page) will be disabled. * * @param {boolean|string} [controlType=true] Specify the control type, * which can be null/undefined or true/false * or 'pan/move' or 'zoom'/'scale' * @param {Object} [opt] * @param {Object} [opt.zoomOnMouseWheel=true] The value can be: true / false / 'shift' / 'ctrl' / 'alt'. * @param {Object} [opt.moveOnMouseMove=true] The value can be: true / false / 'shift' / 'ctrl' / 'alt'. * @param {Object} [opt.moveOnMouseWheel=false] The value can be: true / false / 'shift' / 'ctrl' / 'alt'. * @param {Object} [opt.preventDefaultMouseMove=true] When pan. */ this.enable = function (controlType, opt) { // Disable previous first this.disable(); this._opt = defaults(clone(opt) || {}, { zoomOnMouseWheel: true, moveOnMouseMove: true, // By default, wheel do not trigger move. moveOnMouseWheel: false, preventDefaultMouseMove: true }); if (controlType == null) { controlType = true; } if (controlType === true || (controlType === 'move' || controlType === 'pan')) { zr.on('mousedown', mousedownHandler); zr.on('mousemove', mousemoveHandler); zr.on('mouseup', mouseupHandler); } if (controlType === true || (controlType === 'scale' || controlType === 'zoom')) { zr.on('mousewheel', mousewheelHandler); zr.on('pinch', pinchHandler); } }; this.disable = function () { zr.off('mousedown', mousedownHandler); zr.off('mousemove', mousemoveHandler); zr.off('mouseup', mouseupHandler); zr.off('mousewheel', mousewheelHandler); zr.off('pinch', pinchHandler); }; this.dispose = this.disable; this.isDragging = function () { return this._dragging; }; this.isPinching = function () { return this._pinching; }; } mixin(RoamController, Eventful); function mousedown(e) { if (isMiddleOrRightButtonOnMouseUpDown(e) || (e.target && e.target.draggable) ) { return; } var x = e.offsetX; var y = e.offsetY; // Only check on mosedown, but not mousemove. // Mouse can be out of target when mouse moving. if (this.pointerChecker && this.pointerChecker(e, x, y)) { this._x = x; this._y = y; this._dragging = true; } } function mousemove(e) { if (!this._dragging || !isAvailableBehavior('moveOnMouseMove', e, this._opt) || e.gestureEvent === 'pinch' || isTaken(this._zr, 'globalPan') ) { return; } var x = e.offsetX; var y = e.offsetY; var oldX = this._x; var oldY = this._y; var dx = x - oldX; var dy = y - oldY; this._x = x; this._y = y; this._opt.preventDefaultMouseMove && stop(e.event); trigger(this, 'pan', 'moveOnMouseMove', e, { dx: dx, dy: dy, oldX: oldX, oldY: oldY, newX: x, newY: y }); } function mouseup(e) { if (!isMiddleOrRightButtonOnMouseUpDown(e)) { this._dragging = false; } } function mousewheel(e) { var shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt); var shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt); var wheelDelta = e.wheelDelta; var absWheelDeltaDelta = Math.abs(wheelDelta); var originX = e.offsetX; var originY = e.offsetY; // wheelDelta maybe -0 in chrome mac. if (wheelDelta === 0 || (!shouldZoom && !shouldMove)) { return; } // If both `shouldZoom` and `shouldMove` is true, trigger // their event both, and the final behavior is determined // by event listener themselves. if (shouldZoom) { // Convenience: // Mac and VM Windows on Mac: scroll up: zoom out. // Windows: scroll up: zoom in. // FIXME: Should do more test in different environment. // wheelDelta is too complicated in difference nvironment // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel), // although it has been normallized by zrender. // wheelDelta of mouse wheel is bigger than touch pad. var factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1; var scale = wheelDelta > 0 ? factor : 1 / factor; checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, { scale: scale, originX: originX, originY: originY }); } if (shouldMove) { // FIXME: Should do more test in different environment. var absDelta = Math.abs(wheelDelta); // wheelDelta of mouse wheel is bigger than touch pad. var scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05); checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, { scrollDelta: scrollDelta, originX: originX, originY: originY }); } } function pinch(e) { if (isTaken(this._zr, 'globalPan')) { return; } var scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1; checkPointerAndTrigger(this, 'zoom', null, e, { scale: scale, originX: e.pinchX, originY: e.pinchY }); } function checkPointerAndTrigger(controller, eventName, behaviorToCheck, e, contollerEvent) { if (controller.pointerChecker && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY) ) { // When mouse is out of roamController rect, // default befavoius should not be be disabled, otherwise // page sliding is disabled, contrary to expectation. stop(e.event); trigger(controller, eventName, behaviorToCheck, e, contollerEvent); } } function trigger(controller, eventName, behaviorToCheck, e, contollerEvent) { // Also provide behavior checker for event listener, for some case that // multiple components share one listener. contollerEvent.isAvailableBehavior = bind(isAvailableBehavior, null, behaviorToCheck, e); controller.trigger(eventName, contollerEvent); } // settings: { // zoomOnMouseWheel // moveOnMouseMove // moveOnMouseWheel // } // The value can be: true / false / 'shift' / 'ctrl' / 'alt'. function isAvailableBehavior(behaviorToCheck, e, settings) { var setting = settings[behaviorToCheck]; return !behaviorToCheck || ( setting && (!isString(setting) || e.event[setting + 'Key']) ); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * For geo and graph. * * @param {Object} controllerHost * @param {module:zrender/Element} controllerHost.target */ function updateViewOnPan(controllerHost, dx, dy) { var target = controllerHost.target; var pos = target.position; pos[0] += dx; pos[1] += dy; target.dirty(); } /** * For geo and graph. * * @param {Object} controllerHost * @param {module:zrender/Element} controllerHost.target * @param {number} controllerHost.zoom * @param {number} controllerHost.zoomLimit like: {min: 1, max: 2} */ function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) { var target = controllerHost.target; var zoomLimit = controllerHost.zoomLimit; var pos = target.position; var scale = target.scale; var newZoom = controllerHost.zoom = controllerHost.zoom || 1; newZoom *= zoomDelta; if (zoomLimit) { var zoomMin = zoomLimit.min || 0; var zoomMax = zoomLimit.max || Infinity; newZoom = Math.max( Math.min(zoomMax, newZoom), zoomMin ); } var zoomScale = newZoom / controllerHost.zoom; controllerHost.zoom = newZoom; // Keep the mouse center when scaling pos[0] -= (zoomX - pos[0]) * (zoomScale - 1); pos[1] -= (zoomY - pos[1]) * (zoomScale - 1); scale[0] *= zoomScale; scale[1] *= zoomScale; target.dirty(); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var IRRELEVANT_EXCLUDES = {'axisPointer': 1, 'tooltip': 1, 'brush': 1}; /** * Avoid that: mouse click on a elements that is over geo or graph, * but roam is triggered. */ function onIrrelevantElement(e, api, targetCoordSysModel) { var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem. var coordSys = model && model.coordinateSystem; return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES[model.mainType] && (coordSys && coordSys.model !== targetCoordSysModel); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getFixedItemStyle(model, scale) { var itemStyle = model.getItemStyle(); var areaColor = model.get('areaColor'); // If user want the color not to be changed when hover, // they should both set areaColor and color to be null. if (areaColor != null) { itemStyle.fill = areaColor; } return itemStyle; } function updateMapSelectHandler(mapDraw, mapOrGeoModel, regionsGroup, api, fromView) { regionsGroup.off('click'); regionsGroup.off('mousedown'); if (mapOrGeoModel.get('selectedMode')) { regionsGroup.on('mousedown', function () { mapDraw._mouseDownFlag = true; }); regionsGroup.on('click', function (e) { if (!mapDraw._mouseDownFlag) { return; } mapDraw._mouseDownFlag = false; var el = e.target; while (!el.__regions) { el = el.parent; } if (!el) { return; } var action = { type: (mapOrGeoModel.mainType === 'geo' ? 'geo' : 'map') + 'ToggleSelect', batch: map(el.__regions, function (region) { return { name: region.name, from: fromView.uid }; }) }; action[mapOrGeoModel.mainType + 'Id'] = mapOrGeoModel.id; api.dispatchAction(action); updateMapSelected(mapOrGeoModel, regionsGroup); }); } } function updateMapSelected(mapOrGeoModel, regionsGroup) { // FIXME regionsGroup.eachChild(function (otherRegionEl) { each$1(otherRegionEl.__regions, function (region) { otherRegionEl.trigger(mapOrGeoModel.isSelected(region.name) ? 'emphasis' : 'normal'); }); }); } /** * @alias module:echarts/component/helper/MapDraw * @param {module:echarts/ExtensionAPI} api * @param {boolean} updateGroup */ function MapDraw(api, updateGroup) { var group = new Group(); /** * @type {string} * @private */ this.uid = getUID('ec_map_draw'); /** * @type {module:echarts/component/helper/RoamController} * @private */ this._controller = new RoamController(api.getZr()); /** * @type {Object} {target, zoom, zoomLimit} * @private */ this._controllerHost = {target: updateGroup ? group : null}; /** * @type {module:zrender/container/Group} * @readOnly */ this.group = group; /** * @type {boolean} * @private */ this._updateGroup = updateGroup; /** * This flag is used to make sure that only one among * `pan`, `zoom`, `click` can occurs, otherwise 'selected' * action may be triggered when `pan`, which is unexpected. * @type {booelan} */ this._mouseDownFlag; /** * @type {string} */ this._mapName; /** * @type {boolean} */ this._initialized; /** * @type {module:zrender/container/Group} */ group.add(this._regionsGroup = new Group()); /** * @type {module:zrender/container/Group} */ group.add(this._backgroundGroup = new Group()); } MapDraw.prototype = { constructor: MapDraw, draw: function (mapOrGeoModel, ecModel, api, fromView, payload) { var isGeo = mapOrGeoModel.mainType === 'geo'; // Map series has data. GEO model that controlled by map series // will be assigned with map data. Other GEO model has no data. var data = mapOrGeoModel.getData && mapOrGeoModel.getData(); isGeo && ecModel.eachComponent({mainType: 'series', subType: 'map'}, function (mapSeries) { if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) { data = mapSeries.getData(); } }); var geo = mapOrGeoModel.coordinateSystem; this._updateBackground(geo); var regionsGroup = this._regionsGroup; var group = this.group; var scale = geo.scale; var transform = { position: geo.position, scale: scale }; // No animation when first draw or in action if (!regionsGroup.childAt(0) || payload) { group.attr(transform); } else { updateProps(group, transform, mapOrGeoModel); } regionsGroup.removeAll(); var itemStyleAccessPath = ['itemStyle']; var hoverItemStyleAccessPath = ['emphasis', 'itemStyle']; var labelAccessPath = ['label']; var hoverLabelAccessPath = ['emphasis', 'label']; var nameMap = createHashMap(); each$1(geo.regions, function (region) { // Consider in GeoJson properties.name may be duplicated, for example, // there is multiple region named "United Kindom" or "France" (so many // colonies). And it is not appropriate to merge them in geo, which // will make them share the same label and bring trouble in label // location calculation. var regionGroup = nameMap.get(region.name) || nameMap.set(region.name, new Group()); var compoundPath = new CompoundPath({ segmentIgnoreThreshold: 1, shape: { paths: [] } }); regionGroup.add(compoundPath); var regionModel = mapOrGeoModel.getRegionModel(region.name) || mapOrGeoModel; var itemStyleModel = regionModel.getModel(itemStyleAccessPath); var hoverItemStyleModel = regionModel.getModel(hoverItemStyleAccessPath); var itemStyle = getFixedItemStyle(itemStyleModel, scale); var hoverItemStyle = getFixedItemStyle(hoverItemStyleModel, scale); var labelModel = regionModel.getModel(labelAccessPath); var hoverLabelModel = regionModel.getModel(hoverLabelAccessPath); var dataIdx; // Use the itemStyle in data if has data if (data) { dataIdx = data.indexOfName(region.name); // Only visual color of each item will be used. It can be encoded by dataRange // But visual color of series is used in symbol drawing // // Visual color for each series is for the symbol draw var visualColor = data.getItemVisual(dataIdx, 'color', true); if (visualColor) { itemStyle.fill = visualColor; } } each$1(region.geometries, function (geometry) { if (geometry.type !== 'polygon') { return; } compoundPath.shape.paths.push(new Polygon({ segmentIgnoreThreshold: 1, shape: { points: geometry.exterior } })); for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); i++) { compoundPath.shape.paths.push(new Polygon({ segmentIgnoreThreshold: 1, shape: { points: geometry.interiors[i] } })); } }); compoundPath.setStyle(itemStyle); compoundPath.style.strokeNoScale = true; compoundPath.culling = true; // Label var showLabel = labelModel.get('show'); var hoverShowLabel = hoverLabelModel.get('show'); var isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx)); var itemLayout = data && data.getItemLayout(dataIdx); // In the following cases label will be drawn // 1. In map series and data value is NaN // 2. In geo component // 4. Region has no series legendSymbol, which will be add a showLabel flag in mapSymbolLayout if ( (isGeo || isDataNaN && (showLabel || hoverShowLabel)) || (itemLayout && itemLayout.showLabel) ) { var query = !isGeo ? dataIdx : region.name; var labelFetcher; // Consider dataIdx not found. if (!data || dataIdx >= 0) { labelFetcher = mapOrGeoModel; } var textEl = new Text({ position: region.center.slice(), // FIXME // label rotation is not support yet in geo or regions of series-map // that has no data. The rotation will be effected by this `scale`. // So needed to change to RectText? scale: [1 / scale[0], 1 / scale[1]], z2: 10, silent: true }); setLabelStyle( textEl.style, textEl.hoverStyle = {}, labelModel, hoverLabelModel, { labelFetcher: labelFetcher, labelDataIndex: query, defaultText: region.name, useInsideStyle: false }, { textAlign: 'center', textVerticalAlign: 'middle' } ); regionGroup.add(textEl); } // setItemGraphicEl, setHoverStyle after all polygons and labels // are added to the rigionGroup if (data) { data.setItemGraphicEl(dataIdx, regionGroup); } else { var regionModel = mapOrGeoModel.getRegionModel(region.name); // Package custom mouse event for geo component compoundPath.eventData = { componentType: 'geo', componentIndex: mapOrGeoModel.componentIndex, geoIndex: mapOrGeoModel.componentIndex, name: region.name, region: (regionModel && regionModel.option) || {} }; } var groupRegions = regionGroup.__regions || (regionGroup.__regions = []); groupRegions.push(region); regionGroup.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode'); setHoverStyle(regionGroup, hoverItemStyle); regionsGroup.add(regionGroup); }); this._updateController(mapOrGeoModel, ecModel, api); updateMapSelectHandler(this, mapOrGeoModel, regionsGroup, api, fromView); updateMapSelected(mapOrGeoModel, regionsGroup); }, remove: function () { this._regionsGroup.removeAll(); this._backgroundGroup.removeAll(); this._controller.dispose(); this._mapName && geoSourceManager.removeGraphic(this._mapName, this.uid); this._mapName = null; this._controllerHost = {}; }, _updateBackground: function (geo) { var mapName = geo.map; if (this._mapName !== mapName) { each$1(geoSourceManager.makeGraphic(mapName, this.uid), function (root) { this._backgroundGroup.add(root); }, this); } this._mapName = mapName; }, _updateController: function (mapOrGeoModel, ecModel, api) { var geo = mapOrGeoModel.coordinateSystem; var controller = this._controller; var controllerHost = this._controllerHost; controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit'); controllerHost.zoom = geo.getZoom(); // roamType is will be set default true if it is null controller.enable(mapOrGeoModel.get('roam') || false); var mainType = mapOrGeoModel.mainType; function makeActionBase() { var action = { type: 'geoRoam', componentType: mainType }; action[mainType + 'Id'] = mapOrGeoModel.id; return action; } controller.off('pan').on('pan', function (e) { this._mouseDownFlag = false; updateViewOnPan(controllerHost, e.dx, e.dy); api.dispatchAction(extend(makeActionBase(), { dx: e.dx, dy: e.dy })); }, this); controller.off('zoom').on('zoom', function (e) { this._mouseDownFlag = false; updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY); api.dispatchAction(extend(makeActionBase(), { zoom: e.scale, originX: e.originX, originY: e.originY })); if (this._updateGroup) { var scale = this.group.scale; this._regionsGroup.traverse(function (el) { if (el.type === 'text') { el.attr('scale', [1 / scale[0], 1 / scale[1]]); } }); } }, this); controller.setPointerChecker(function (e, x, y) { return geo.getViewRectAfterRoam().contain(x, y) && !onIrrelevantElement(e, api, mapOrGeoModel); }); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var HIGH_DOWN_PROP = '__seriesMapHighDown'; var RECORD_VERSION_PROP = '__seriesMapCallKey'; extendChartView({ type: 'map', render: function (mapModel, ecModel, api, payload) { // Not render if it is an toggleSelect action from self if (payload && payload.type === 'mapToggleSelect' && payload.from === this.uid ) { return; } var group = this.group; group.removeAll(); if (mapModel.getHostGeoModel()) { return; } // Not update map if it is an roam action from self if (!(payload && payload.type === 'geoRoam' && payload.componentType === 'series' && payload.seriesId === mapModel.id ) ) { if (mapModel.needsDrawMap) { var mapDraw = this._mapDraw || new MapDraw(api, true); group.add(mapDraw.group); mapDraw.draw(mapModel, ecModel, api, this, payload); this._mapDraw = mapDraw; } else { // Remove drawed map this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; } } else { var mapDraw = this._mapDraw; mapDraw && group.add(mapDraw.group); } mapModel.get('showLegendSymbol') && ecModel.getComponent('legend') && this._renderSymbols(mapModel, ecModel, api); }, remove: function () { this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; this.group.removeAll(); }, dispose: function () { this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; }, _renderSymbols: function (mapModel, ecModel, api) { var originalData = mapModel.originalData; var group = this.group; originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) { if (isNaN(value)) { return; } var layout = originalData.getItemLayout(originalDataIndex); if (!layout || !layout.point) { // Not exists in map return; } var point = layout.point; var offset = layout.offset; var circle = new Circle({ style: { // Because the special of map draw. // Which needs statistic of multiple series and draw on one map. // And each series also need a symbol with legend color // // Layout and visual are put one the different data fill: mapModel.getData().getVisual('color') }, shape: { cx: point[0] + offset * 9, cy: point[1], r: 3 }, silent: true, // Do not overlap the first series, on which labels are displayed. z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0) }); // Only the series that has the first value on the same region is in charge of rendering the label. // But consider the case: // series: [ // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]}, // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]} // ] // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`. // For backward compatibility, we follow the rule that render label `A` by the // settings on series `X` but render label `C` by the settings on series `Y`. if (!offset) { var fullData = mapModel.mainSeries.getData(); var name = originalData.getName(originalDataIndex); var fullIndex = fullData.indexOfName(name); var itemModel = originalData.getItemModel(originalDataIndex); var labelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel('emphasis.label'); var regionGroup = fullData.getItemGraphicEl(fullIndex); // `getFormattedLabel` needs to use `getData` inside. Here // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`. // FIXME // If this is not the `mainSeries`, the item model (like label formatter) // set on original data item will never get. But it has been working // like that from the begining, and this scenario is rarely encountered. // So it won't be fixed until have to. var normalText = retrieve2( mapModel.getFormattedLabel(fullIndex, 'normal'), name ); var emphasisText = retrieve2( mapModel.getFormattedLabel(fullIndex, 'emphasis'), normalText ); var highDownRecord = regionGroup[HIGH_DOWN_PROP]; var recordVersion = Math.random(); // Prevent from register listeners duplicatedly when roaming. if (!highDownRecord) { highDownRecord = regionGroup[HIGH_DOWN_PROP] = {}; var onEmphasis = curry(onRegionHighDown, true); var onNormal = curry(onRegionHighDown, false); regionGroup.on('mouseover', onEmphasis) .on('mouseout', onNormal) .on('emphasis', onEmphasis) .on('normal', onNormal); } // Prevent removed regions effect current grapics. regionGroup[RECORD_VERSION_PROP] = recordVersion; extend(highDownRecord, { recordVersion: recordVersion, circle: circle, labelModel: labelModel, hoverLabelModel: hoverLabelModel, emphasisText: emphasisText, normalText: normalText }); // FIXME // Consider set option when emphasis. enterRegionHighDown(highDownRecord, false); } group.add(circle); }); } }); function onRegionHighDown(toHighOrDown) { var highDownRecord = this[HIGH_DOWN_PROP]; if (highDownRecord && highDownRecord.recordVersion === this[RECORD_VERSION_PROP]) { enterRegionHighDown(highDownRecord, toHighOrDown); } } function enterRegionHighDown(highDownRecord, toHighOrDown) { var circle = highDownRecord.circle; var labelModel = highDownRecord.labelModel; var hoverLabelModel = highDownRecord.hoverLabelModel; var emphasisText = highDownRecord.emphasisText; var normalText = highDownRecord.normalText; if (toHighOrDown) { circle.style.extendFrom( setTextStyle({}, hoverLabelModel, { text: hoverLabelModel.get('show') ? emphasisText : null }, {isRectText: true, useInsideStyle: false}, true) ); // Make label upper than others if overlaps. circle.__mapOriginalZ2 = circle.z2; circle.z2 += Z2_EMPHASIS_LIFT; } else { setTextStyle(circle.style, labelModel, { text: labelModel.get('show') ? normalText : null, textPosition: labelModel.getShallow('position') || 'bottom' }, {isRectText: true, useInsideStyle: false}); // Trigger normalize style like padding. circle.dirty(false); if (circle.__mapOriginalZ2 != null) { circle.z2 = circle.__mapOriginalZ2; circle.__mapOriginalZ2 = null; } } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/coord/View} view * @param {Object} payload * @param {Object} [zoomLimit] */ function updateCenterAndZoom( view, payload, zoomLimit ) { var previousZoom = view.getZoom(); var center = view.getCenter(); var zoom = payload.zoom; var point = view.dataToPoint(center); if (payload.dx != null && payload.dy != null) { point[0] -= payload.dx; point[1] -= payload.dy; var center = view.pointToData(point); view.setCenter(center); } if (zoom != null) { if (zoomLimit) { var zoomMin = zoomLimit.min || 0; var zoomMax = zoomLimit.max || Infinity; zoom = Math.max( Math.min(previousZoom * zoom, zoomMax), zoomMin ) / previousZoom; } // Zoom on given point(originX, originY) view.scale[0] *= zoom; view.scale[1] *= zoom; var position = view.position; var fixX = (payload.originX - position[0]) * (zoom - 1); var fixY = (payload.originY - position[1]) * (zoom - 1); position[0] -= fixX; position[1] -= fixY; view.updateTransform(); // Get the new center var center = view.pointToData(point); view.setCenter(center); view.setZoom(zoom * previousZoom); } return { center: view.getCenter(), zoom: view.getZoom() }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @payload * @property {string} [componentType=series] * @property {number} [dx] * @property {number} [dy] * @property {number} [zoom] * @property {number} [originX] * @property {number} [originY] */ registerAction({ type: 'geoRoam', event: 'geoRoam', update: 'updateTransform' }, function (payload, ecModel) { var componentType = payload.componentType || 'series'; ecModel.eachComponent( { mainType: componentType, query: payload }, function (componentModel) { var geo = componentModel.coordinateSystem; if (geo.type !== 'geo') { return; } var res = updateCenterAndZoom( geo, payload, componentModel.get('scaleLimit') ); componentModel.setCenter && componentModel.setCenter(res.center); componentModel.setZoom && componentModel.setZoom(res.zoom); // All map series with same `map` use the same geo coordinate system // So the center and zoom must be in sync. Include the series not selected by legend if (componentType === 'series') { each$1(componentModel.seriesGroup, function (seriesModel) { seriesModel.setCenter(res.center); seriesModel.setZoom(res.zoom); }); } } ); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Simple view coordinate system * Mapping given x, y to transformd view x, y */ var v2ApplyTransform$1 = applyTransform; // Dummy transform node function TransformDummy() { Transformable.call(this); } mixin(TransformDummy, Transformable); function View(name) { /** * @type {string} */ this.name = name; /** * @type {Object} */ this.zoomLimit; Transformable.call(this); this._roamTransformable = new TransformDummy(); this._rawTransformable = new TransformDummy(); this._center; this._zoom; } View.prototype = { constructor: View, type: 'view', /** * @param {Array.} * @readOnly */ dimensions: ['x', 'y'], /** * Set bounding rect * @param {number} x * @param {number} y * @param {number} width * @param {number} height */ // PENDING to getRect setBoundingRect: function (x, y, width, height) { this._rect = new BoundingRect(x, y, width, height); return this._rect; }, /** * @return {module:zrender/core/BoundingRect} */ // PENDING to getRect getBoundingRect: function () { return this._rect; }, /** * @param {number} x * @param {number} y * @param {number} width * @param {number} height */ setViewRect: function (x, y, width, height) { this.transformTo(x, y, width, height); this._viewRect = new BoundingRect(x, y, width, height); }, /** * Transformed to particular position and size * @param {number} x * @param {number} y * @param {number} width * @param {number} height */ transformTo: function (x, y, width, height) { var rect = this.getBoundingRect(); var rawTransform = this._rawTransformable; rawTransform.transform = rect.calculateTransform( new BoundingRect(x, y, width, height) ); rawTransform.decomposeTransform(); this._updateTransform(); }, /** * Set center of view * @param {Array.} [centerCoord] */ setCenter: function (centerCoord) { if (!centerCoord) { return; } this._center = centerCoord; this._updateCenterAndZoom(); }, /** * @param {number} zoom */ setZoom: function (zoom) { zoom = zoom || 1; var zoomLimit = this.zoomLimit; if (zoomLimit) { if (zoomLimit.max != null) { zoom = Math.min(zoomLimit.max, zoom); } if (zoomLimit.min != null) { zoom = Math.max(zoomLimit.min, zoom); } } this._zoom = zoom; this._updateCenterAndZoom(); }, /** * Get default center without roam */ getDefaultCenter: function () { // Rect before any transform var rawRect = this.getBoundingRect(); var cx = rawRect.x + rawRect.width / 2; var cy = rawRect.y + rawRect.height / 2; return [cx, cy]; }, getCenter: function () { return this._center || this.getDefaultCenter(); }, getZoom: function () { return this._zoom || 1; }, /** * @return {Array.} data * @param {boolean} noRoam * @param {Array.} [out] * @return {Array.} */ dataToPoint: function (data, noRoam, out) { var transform = noRoam ? this._rawTransform : this.transform; out = out || []; return transform ? v2ApplyTransform$1(out, data, transform) : copy(out, data); }, /** * Convert a (x, y) point to (lon, lat) data * @param {Array.} point * @return {Array.} */ pointToData: function (point) { var invTransform = this.invTransform; return invTransform ? v2ApplyTransform$1([], point, invTransform) : [point[0], point[1]]; }, /** * @implements * see {module:echarts/CoodinateSystem} */ convertToPixel: curry(doConvert$1, 'dataToPoint'), /** * @implements * see {module:echarts/CoodinateSystem} */ convertFromPixel: curry(doConvert$1, 'pointToData'), /** * @implements * see {module:echarts/CoodinateSystem} */ containPoint: function (point) { return this.getViewRectAfterRoam().contain(point[0], point[1]); } /** * @return {number} */ // getScalarScale: function () { // // Use determinant square root of transform to mutiply scalar // var m = this.transform; // var det = Math.sqrt(Math.abs(m[0] * m[3] - m[2] * m[1])); // return det; // } }; mixin(View, Transformable); function doConvert$1(methodName, ecModel, finder, value) { var seriesModel = finder.seriesModel; var coordSys = seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph. return coordSys === this ? coordSys[methodName](value) : null; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * [Geo description] * For backward compatibility, the orginal interface: * `name, map, geoJson, specialAreas, nameMap` is kept. * * @param {string|Object} name * @param {string} map Map type * Specify the positioned areas by left, top, width, height * @param {Object.} [nameMap] * Specify name alias * @param {boolean} [invertLongitute=true] */ function Geo(name, map$$1, nameMap, invertLongitute) { View.call(this, name); /** * Map type * @type {string} */ this.map = map$$1; var source = geoSourceManager.load(map$$1, nameMap); this._nameCoordMap = source.nameCoordMap; this._regionsMap = source.regionsMap; this._invertLongitute = invertLongitute == null ? true : invertLongitute; /** * @readOnly */ this.regions = source.regions; /** * @type {module:zrender/src/core/BoundingRect} */ this._rect = source.boundingRect; } Geo.prototype = { constructor: Geo, type: 'geo', /** * @param {Array.} * @readOnly */ dimensions: ['lng', 'lat'], /** * If contain given lng,lat coord * @param {Array.} * @readOnly */ containCoord: function (coord) { var regions = this.regions; for (var i = 0; i < regions.length; i++) { if (regions[i].contain(coord)) { return true; } } return false; }, /** * @override */ transformTo: function (x, y, width, height) { var rect = this.getBoundingRect(); var invertLongitute = this._invertLongitute; rect = rect.clone(); if (invertLongitute) { // Longitute is inverted rect.y = -rect.y - rect.height; } var rawTransformable = this._rawTransformable; rawTransformable.transform = rect.calculateTransform( new BoundingRect(x, y, width, height) ); rawTransformable.decomposeTransform(); if (invertLongitute) { var scale = rawTransformable.scale; scale[1] = -scale[1]; } rawTransformable.updateTransform(); this._updateTransform(); }, /** * @param {string} name * @return {module:echarts/coord/geo/Region} */ getRegion: function (name) { return this._regionsMap.get(name); }, getRegionByCoord: function (coord) { var regions = this.regions; for (var i = 0; i < regions.length; i++) { if (regions[i].contain(coord)) { return regions[i]; } } }, /** * Add geoCoord for indexing by name * @param {string} name * @param {Array.} geoCoord */ addGeoCoord: function (name, geoCoord) { this._nameCoordMap.set(name, geoCoord); }, /** * Get geoCoord by name * @param {string} name * @return {Array.} */ getGeoCoord: function (name) { return this._nameCoordMap.get(name); }, /** * @override */ getBoundingRect: function () { return this._rect; }, /** * @param {string|Array.} data * @param {boolean} noRoam * @param {Array.} [out] * @return {Array.} */ dataToPoint: function (data, noRoam, out) { if (typeof data === 'string') { // Map area name to geoCoord data = this.getGeoCoord(data); } if (data) { return View.prototype.dataToPoint.call(this, data, noRoam, out); } }, /** * @override */ convertToPixel: curry(doConvert, 'dataToPoint'), /** * @override */ convertFromPixel: curry(doConvert, 'pointToData') }; mixin(Geo, View); function doConvert(methodName, ecModel, finder, value) { var geoModel = finder.geoModel; var seriesModel = finder.seriesModel; var coordSys = geoModel ? geoModel.coordinateSystem : seriesModel ? ( seriesModel.coordinateSystem // For map. || (seriesModel.getReferringComponents('geo')[0] || {}).coordinateSystem ) : null; return coordSys === this ? coordSys[methodName](value) : null; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Resize method bound to the geo * @param {module:echarts/coord/geo/GeoModel|module:echarts/chart/map/MapModel} geoModel * @param {module:echarts/ExtensionAPI} api */ function resizeGeo(geoModel, api) { var boundingCoords = geoModel.get('boundingCoords'); if (boundingCoords != null) { var leftTop = boundingCoords[0]; var rightBottom = boundingCoords[1]; if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) { if (__DEV__) { console.error('Invalid boundingCoords'); } } else { this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]); } } var rect = this.getBoundingRect(); var boxLayoutOption; var center = geoModel.get('layoutCenter'); var size = geoModel.get('layoutSize'); var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); var aspect = rect.width / rect.height * this.aspectScale; var useCenterAndSize = false; if (center && size) { center = [ parsePercent$1(center[0], viewWidth), parsePercent$1(center[1], viewHeight) ]; size = parsePercent$1(size, Math.min(viewWidth, viewHeight)); if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) { useCenterAndSize = true; } else { if (__DEV__) { console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.'); } } } var viewRect; if (useCenterAndSize) { var viewRect = {}; if (aspect > 1) { // Width is same with size viewRect.width = size; viewRect.height = size / aspect; } else { viewRect.height = size; viewRect.width = size * aspect; } viewRect.y = center[1] - viewRect.height / 2; viewRect.x = center[0] - viewRect.width / 2; } else { // Use left/top/width/height boxLayoutOption = geoModel.getBoxLayoutParams(); // 0.75 rate boxLayoutOption.aspect = aspect; viewRect = getLayoutRect(boxLayoutOption, { width: viewWidth, height: viewHeight }); } this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height); this.setCenter(geoModel.get('center')); this.setZoom(geoModel.get('zoom')); } /** * @param {module:echarts/coord/Geo} geo * @param {module:echarts/model/Model} model * @inner */ function setGeoCoords(geo, model) { each$1(model.get('geoCoord'), function (geoCoord, name) { geo.addGeoCoord(name, geoCoord); }); } var geoCreator = { // For deciding which dimensions to use when creating list data dimensions: Geo.prototype.dimensions, create: function (ecModel, api) { var geoList = []; // FIXME Create each time may be slow ecModel.eachComponent('geo', function (geoModel, idx) { var name = geoModel.get('map'); var aspectScale = geoModel.get('aspectScale'); var invertLongitute = true; var mapRecords = mapDataStorage.retrieveMap(name); if (mapRecords && mapRecords[0] && mapRecords[0].type === 'svg') { aspectScale == null && (aspectScale = 1); invertLongitute = false; } else { aspectScale == null && (aspectScale = 0.75); } var geo = new Geo(name + idx, name, geoModel.get('nameMap'), invertLongitute); geo.aspectScale = aspectScale; geo.zoomLimit = geoModel.get('scaleLimit'); geoList.push(geo); setGeoCoords(geo, geoModel); geoModel.coordinateSystem = geo; geo.model = geoModel; // Inject resize method geo.resize = resizeGeo; geo.resize(geoModel, api); }); ecModel.eachSeries(function (seriesModel) { var coordSys = seriesModel.get('coordinateSystem'); if (coordSys === 'geo') { var geoIndex = seriesModel.get('geoIndex') || 0; seriesModel.coordinateSystem = geoList[geoIndex]; } }); // If has map series var mapModelGroupBySeries = {}; ecModel.eachSeriesByType('map', function (seriesModel) { if (!seriesModel.getHostGeoModel()) { var mapType = seriesModel.getMapType(); mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || []; mapModelGroupBySeries[mapType].push(seriesModel); } }); each$1(mapModelGroupBySeries, function (mapSeries, mapType) { var nameMapList = map(mapSeries, function (singleMapSeries) { return singleMapSeries.get('nameMap'); }); var geo = new Geo(mapType, mapType, mergeAll(nameMapList)); geo.zoomLimit = retrieve.apply(null, map(mapSeries, function (singleMapSeries) { return singleMapSeries.get('scaleLimit'); })); geoList.push(geo); // Inject resize method geo.resize = resizeGeo; geo.aspectScale = mapSeries[0].get('aspectScale'); geo.resize(mapSeries[0], api); each$1(mapSeries, function (singleMapSeries) { singleMapSeries.coordinateSystem = geo; setGeoCoords(geo, singleMapSeries); }); }); return geoList; }, /** * Fill given regions array * @param {Array.} originRegionArr * @param {string} mapName * @param {Object} [nameMap] * @return {Array} */ getFilledRegions: function (originRegionArr, mapName, nameMap) { // Not use the original var regionsArr = (originRegionArr || []).slice(); var dataNameMap = createHashMap(); for (var i = 0; i < regionsArr.length; i++) { dataNameMap.set(regionsArr[i].name, regionsArr[i]); } var source = geoSourceManager.load(mapName, nameMap); each$1(source.regions, function (region) { var name = region.name; !dataNameMap.get(name) && regionsArr.push({name: name}); }); return regionsArr; } }; registerCoordinateSystem('geo', geoCreator); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mapSymbolLayout = function (ecModel) { var processedMapType = {}; ecModel.eachSeriesByType('map', function (mapSeries) { var mapType = mapSeries.getMapType(); if (mapSeries.getHostGeoModel() || processedMapType[mapType]) { return; } var mapSymbolOffsets = {}; each$1(mapSeries.seriesGroup, function (subMapSeries) { var geo = subMapSeries.coordinateSystem; var data = subMapSeries.originalData; if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) { data.each(data.mapDimension('value'), function (value, idx) { var name = data.getName(idx); var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44], // it will be filled with NaN: [11, 22, NaN, 44] and NaN will // not be drawn. So here must validate if value is NaN. if (!region || isNaN(value)) { return; } var offset = mapSymbolOffsets[name] || 0; var point = geo.dataToPoint(region.center); mapSymbolOffsets[name] = offset + 1; data.setItemLayout(idx, { point: point, offset: offset }); }); } }); // Show label of those region not has legendSymbol(which is offset 0) var data = mapSeries.getData(); data.each(function (idx) { var name = data.getName(idx); var layout = data.getItemLayout(idx) || {}; layout.showLabel = !mapSymbolOffsets[name]; data.setItemLayout(idx, layout); }); processedMapType[mapType] = true; }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mapVisual = function (ecModel) { ecModel.eachSeriesByType('map', function (seriesModel) { var colorList = seriesModel.get('color'); var itemStyleModel = seriesModel.getModel('itemStyle'); var areaColor = itemStyleModel.get('areaColor'); var color = itemStyleModel.get('color') || colorList[seriesModel.seriesIndex % colorList.length]; seriesModel.getData().setVisual({ 'areaColor': areaColor, 'color': color }); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME 公用? /** * @param {Array.} datas * @param {string} statisticType 'average' 'sum' * @inner */ function dataStatistics(datas, statisticType) { var dataNameMap = {}; each$1(datas, function (data) { data.each(data.mapDimension('value'), function (value, idx) { // Add prefix to avoid conflict with Object.prototype. var mapKey = 'ec-' + data.getName(idx); dataNameMap[mapKey] = dataNameMap[mapKey] || []; if (!isNaN(value)) { dataNameMap[mapKey].push(value); } }); }); return datas[0].map(datas[0].mapDimension('value'), function (value, idx) { var mapKey = 'ec-' + datas[0].getName(idx); var sum = 0; var min = Infinity; var max = -Infinity; var len = dataNameMap[mapKey].length; for (var i = 0; i < len; i++) { min = Math.min(min, dataNameMap[mapKey][i]); max = Math.max(max, dataNameMap[mapKey][i]); sum += dataNameMap[mapKey][i]; } var result; if (statisticType === 'min') { result = min; } else if (statisticType === 'max') { result = max; } else if (statisticType === 'average') { result = sum / len; } else { result = sum; } return len === 0 ? NaN : result; }); } var mapDataStatistic = function (ecModel) { var seriesGroups = {}; ecModel.eachSeriesByType('map', function (seriesModel) { var hostGeoModel = seriesModel.getHostGeoModel(); var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType(); (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel); }); each$1(seriesGroups, function (seriesList, key) { var data = dataStatistics( map(seriesList, function (seriesModel) { return seriesModel.getData(); }), seriesList[0].get('mapValueCalculation') ); for (var i = 0; i < seriesList.length; i++) { seriesList[i].originalData = seriesList[i].getData(); } // FIXME Put where? for (var i = 0; i < seriesList.length; i++) { seriesList[i].seriesGroup = seriesList; seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel(); seriesList[i].setData(data.cloneShallow()); seriesList[i].mainSeries = seriesList[0]; } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var backwardCompat$2 = function (option) { // Save geoCoord var mapSeries = []; each$1(option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'map') { mapSeries.push(seriesOpt); seriesOpt.map = seriesOpt.map || seriesOpt.mapType; // Put x, y, width, height, x2, y2 in the top level defaults(seriesOpt, seriesOpt.mapLocation); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerLayout(mapSymbolLayout); registerVisual(mapVisual); registerProcessor(PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic); registerPreprocessor(backwardCompat$2); createDataSelectAction('map', [{ type: 'mapToggleSelect', event: 'mapselectchanged', method: 'toggleSelected' }, { type: 'mapSelect', event: 'mapselected', method: 'select' }, { type: 'mapUnSelect', event: 'mapunselected', method: 'unSelect' }]); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Link lists and struct (graph or tree) */ var each$7 = each$1; var DATAS = '\0__link_datas'; var MAIN_DATA = '\0__link_mainData'; // Caution: // In most case, either list or its shallow clones (see list.cloneShallow) // is active in echarts process. So considering heap memory consumption, // we do not clone tree or graph, but share them among list and its shallow clones. // But in some rare case, we have to keep old list (like do animation in chart). So // please take care that both the old list and the new list share the same tree/graph. /** * @param {Object} opt * @param {module:echarts/data/List} opt.mainData * @param {Object} [opt.struct] For example, instance of Graph or Tree. * @param {string} [opt.structAttr] designation: list[structAttr] = struct; * @param {Object} [opt.datas] {dataType: data}, * like: {node: nodeList, edge: edgeList}. * Should contain mainData. * @param {Object} [opt.datasAttr] {dataType: attr}, * designation: struct[datasAttr[dataType]] = list; */ function linkList(opt) { var mainData = opt.mainData; var datas = opt.datas; if (!datas) { datas = {main: mainData}; opt.datasAttr = {main: 'data'}; } opt.datas = opt.mainData = null; linkAll(mainData, datas, opt); // Porxy data original methods. each$7(datas, function (data) { each$7(mainData.TRANSFERABLE_METHODS, function (methodName) { data.wrapMethod(methodName, curry(transferInjection, opt)); }); }); // Beyond transfer, additional features should be added to `cloneShallow`. mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt)); // Only mainData trigger change, because struct.update may trigger // another changable methods, which may bring about dead lock. each$7(mainData.CHANGABLE_METHODS, function (methodName) { mainData.wrapMethod(methodName, curry(changeInjection, opt)); }); // Make sure datas contains mainData. assert$1(datas[mainData.dataType] === mainData); } function transferInjection(opt, res) { if (isMainData(this)) { // Transfer datas to new main data. var datas = extend({}, this[DATAS]); datas[this.dataType] = res; linkAll(res, datas, opt); } else { // Modify the reference in main data to point newData. linkSingle(res, this.dataType, this[MAIN_DATA], opt); } return res; } function changeInjection(opt, res) { opt.struct && opt.struct.update(this); return res; } function cloneShallowInjection(opt, res) { // cloneShallow, which brings about some fragilities, may be inappropriate // to be exposed as an API. So for implementation simplicity we can make // the restriction that cloneShallow of not-mainData should not be invoked // outside, but only be invoked here. each$7(res[DATAS], function (data, dataType) { data !== res && linkSingle(data.cloneShallow(), dataType, res, opt); }); return res; } /** * Supplement method to List. * * @public * @param {string} [dataType] If not specified, return mainData. * @return {module:echarts/data/List} */ function getLinkedData(dataType) { var mainData = this[MAIN_DATA]; return (dataType == null || mainData == null) ? mainData : mainData[DATAS][dataType]; } function isMainData(data) { return data[MAIN_DATA] === data; } function linkAll(mainData, datas, opt) { mainData[DATAS] = {}; each$7(datas, function (data, dataType) { linkSingle(data, dataType, mainData, opt); }); } function linkSingle(data, dataType, mainData, opt) { mainData[DATAS][dataType] = data; data[MAIN_DATA] = mainData; data.dataType = dataType; if (opt.struct) { data[opt.structAttr] = opt.struct; opt.struct[opt.datasAttr[dataType]] = data; } // Supplement method. data.getLinkedData = getLinkedData; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Tree data structure * * @module echarts/data/Tree */ /** * @constructor module:echarts/data/Tree~TreeNode * @param {string} name * @param {module:echarts/data/Tree} hostTree */ var TreeNode = function (name, hostTree) { /** * @type {string} */ this.name = name || ''; /** * Depth of node * * @type {number} * @readOnly */ this.depth = 0; /** * Height of the subtree rooted at this node. * @type {number} * @readOnly */ this.height = 0; /** * @type {module:echarts/data/Tree~TreeNode} * @readOnly */ this.parentNode = null; /** * Reference to list item. * Do not persistent dataIndex outside, * besause it may be changed by list. * If dataIndex -1, * this node is logical deleted (filtered) in list. * * @type {Object} * @readOnly */ this.dataIndex = -1; /** * @type {Array.} * @readOnly */ this.children = []; /** * @type {Array.} * @pubilc */ this.viewChildren = []; /** * @type {moduel:echarts/data/Tree} * @readOnly */ this.hostTree = hostTree; }; TreeNode.prototype = { constructor: TreeNode, /** * The node is removed. * @return {boolean} is removed. */ isRemoved: function () { return this.dataIndex < 0; }, /** * Travel this subtree (include this node). * Usage: * node.eachNode(function () { ... }); // preorder * node.eachNode('preorder', function () { ... }); // preorder * node.eachNode('postorder', function () { ... }); // postorder * node.eachNode( * {order: 'postorder', attr: 'viewChildren'}, * function () { ... } * ); // postorder * * @param {(Object|string)} options If string, means order. * @param {string=} options.order 'preorder' or 'postorder' * @param {string=} options.attr 'children' or 'viewChildren' * @param {Function} cb If in preorder and return false, * its subtree will not be visited. * @param {Object} [context] */ eachNode: function (options, cb, context) { if (typeof options === 'function') { context = cb; cb = options; options = null; } options = options || {}; if (isString(options)) { options = {order: options}; } var order = options.order || 'preorder'; var children = this[options.attr || 'children']; var suppressVisitSub; order === 'preorder' && (suppressVisitSub = cb.call(context, this)); for (var i = 0; !suppressVisitSub && i < children.length; i++) { children[i].eachNode(options, cb, context); } order === 'postorder' && cb.call(context, this); }, /** * Update depth and height of this subtree. * * @param {number} depth */ updateDepthAndHeight: function (depth) { var height = 0; this.depth = depth; for (var i = 0; i < this.children.length; i++) { var child = this.children[i]; child.updateDepthAndHeight(depth + 1); if (child.height > height) { height = child.height; } } this.height = height + 1; }, /** * @param {string} id * @return {module:echarts/data/Tree~TreeNode} */ getNodeById: function (id) { if (this.getId() === id) { return this; } for (var i = 0, children = this.children, len = children.length; i < len; i++) { var res = children[i].getNodeById(id); if (res) { return res; } } }, /** * @param {module:echarts/data/Tree~TreeNode} node * @return {boolean} */ contains: function (node) { if (node === this) { return true; } for (var i = 0, children = this.children, len = children.length; i < len; i++) { var res = children[i].contains(node); if (res) { return res; } } }, /** * @param {boolean} includeSelf Default false. * @return {Array.} order: [root, child, grandchild, ...] */ getAncestors: function (includeSelf) { var ancestors = []; var node = includeSelf ? this : this.parentNode; while (node) { ancestors.push(node); node = node.parentNode; } ancestors.reverse(); return ancestors; }, /** * @param {string|Array=} [dimension='value'] Default 'value'. can be 0, 1, 2, 3 * @return {number} Value. */ getValue: function (dimension) { var data = this.hostTree.data; return data.get(data.getDimension(dimension || 'value'), this.dataIndex); }, /** * @param {Object} layout * @param {boolean=} [merge=false] */ setLayout: function (layout, merge$$1) { this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge$$1); }, /** * @return {Object} layout */ getLayout: function () { return this.hostTree.data.getItemLayout(this.dataIndex); }, /** * @param {string} [path] * @return {module:echarts/model/Model} */ getModel: function (path) { if (this.dataIndex < 0) { return; } var hostTree = this.hostTree; var itemModel = hostTree.data.getItemModel(this.dataIndex); var levelModel = this.getLevelModel(); var leavesModel; if (!levelModel && (this.children.length === 0 || (this.children.length !== 0 && this.isExpand === false))) { leavesModel = this.getLeavesModel(); } return itemModel.getModel(path, (levelModel || leavesModel || hostTree.hostModel).getModel(path)); }, /** * @return {module:echarts/model/Model} */ getLevelModel: function () { return (this.hostTree.levelModels || [])[this.depth]; }, /** * @return {module:echarts/model/Model} */ getLeavesModel: function () { return this.hostTree.leavesModel; }, /** * @example * setItemVisual('color', color); * setItemVisual({ * 'color': color * }); */ setVisual: function (key, value) { this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, key, value); }, /** * Get item visual */ getVisual: function (key, ignoreParent) { return this.hostTree.data.getItemVisual(this.dataIndex, key, ignoreParent); }, /** * @public * @return {number} */ getRawIndex: function () { return this.hostTree.data.getRawIndex(this.dataIndex); }, /** * @public * @return {string} */ getId: function () { return this.hostTree.data.getId(this.dataIndex); }, /** * if this is an ancestor of another node * * @public * @param {TreeNode} node another node * @return {boolean} if is ancestor */ isAncestorOf: function (node) { var parent = node.parentNode; while (parent) { if (parent === this) { return true; } parent = parent.parentNode; } return false; }, /** * if this is an descendant of another node * * @public * @param {TreeNode} node another node * @return {boolean} if is descendant */ isDescendantOf: function (node) { return node !== this && node.isAncestorOf(this); } }; /** * @constructor * @alias module:echarts/data/Tree * @param {module:echarts/model/Model} hostModel * @param {Array.} levelOptions * @param {Object} leavesOption */ function Tree(hostModel, levelOptions, leavesOption) { /** * @type {module:echarts/data/Tree~TreeNode} * @readOnly */ this.root; /** * @type {module:echarts/data/List} * @readOnly */ this.data; /** * Index of each item is the same as the raw index of coresponding list item. * @private * @type {Array.} treeOptions.levels * @param {Array.} treeOptions.leaves * @return module:echarts/data/Tree */ Tree.createTree = function (dataRoot, hostModel, treeOptions) { var tree = new Tree(hostModel, treeOptions.levels, treeOptions.leaves); var listData = []; var dimMax = 1; buildHierarchy(dataRoot); function buildHierarchy(dataNode, parentNode) { var value = dataNode.value; dimMax = Math.max(dimMax, isArray(value) ? value.length : 1); listData.push(dataNode); var node = new TreeNode(dataNode.name, tree); parentNode ? addChild(node, parentNode) : (tree.root = node); tree._nodes.push(node); var children = dataNode.children; if (children) { for (var i = 0; i < children.length; i++) { buildHierarchy(children[i], node); } } } tree.root.updateDepthAndHeight(0); var dimensionsInfo = createDimensions(listData, { coordDimensions: ['value'], dimensionsCount: dimMax }); var list = new List(dimensionsInfo, hostModel); list.initData(listData); linkList({ mainData: list, struct: tree, structAttr: 'tree' }); tree.update(); return tree; }; /** * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote, * so this function is not ready and not necessary to be public. * * @param {(module:echarts/data/Tree~TreeNode|Object)} child */ function addChild(child, node) { var children = node.children; if (child.parentNode === node) { return; } children.push(child); child.parentNode = node; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.tree', layoutInfo: null, // can support the position parameters 'left', 'top','right','bottom', 'width', // 'height' in the setOption() with 'merge' mode normal. layoutMode: 'box', /** * Init a tree data structure from data in option series * @param {Object} option the object used to config echarts view * @return {module:echarts/data/List} storage initial data */ getInitialData: function (option) { //create an virtual root var root = {name: option.name, children: option.data}; var leaves = option.leaves || {}; var treeOption = {}; treeOption.leaves = leaves; var tree = Tree.createTree(root, this, treeOption); var treeDepth = 0; tree.eachNode('preorder', function (node) { if (node.depth > treeDepth) { treeDepth = node.depth; } }); var expandAndCollapse = option.expandAndCollapse; var expandTreeDepth = (expandAndCollapse && option.initialTreeDepth >= 0) ? option.initialTreeDepth : treeDepth; tree.root.eachNode('preorder', function (node) { var item = node.hostTree.data.getRawDataItem(node.dataIndex); // Add item.collapsed != null, because users can collapse node original in the series.data. node.isExpand = (item && item.collapsed != null) ? !item.collapsed : node.depth <= expandTreeDepth; }); return tree.data; }, /** * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'. * @returns {string} orient */ getOrient: function () { var orient = this.get('orient'); if (orient === 'horizontal') { orient = 'LR'; } else if (orient === 'vertical') { orient = 'TB'; } return orient; }, setZoom: function (zoom) { this.option.zoom = zoom; }, setCenter: function (center) { this.option.center = center; }, /** * @override * @param {number} dataIndex */ formatTooltip: function (dataIndex) { var tree = this.getData().tree; var realRoot = tree.root.children[0]; var node = tree.getNodeByDataIndex(dataIndex); var value = node.getValue(); var name = node.name; while (node && (node !== realRoot)) { name = node.parentNode.name + '.' + name; node = node.parentNode; } return encodeHTML(name + ( (isNaN(value) || value == null) ? '' : ' : ' + value )); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'view', // the position of the whole view left: '12%', top: '12%', right: '12%', bottom: '12%', // the layout of the tree, two value can be selected, 'orthogonal' or 'radial' layout: 'orthogonal', roam: false, // true | false | 'move' | 'scale', see module:component/helper/RoamController. // Symbol size scale ratio in roam nodeScaleRatio: 0.4, // Default on center of graph center: null, zoom: 1, // The orient of orthoginal layout, can be setted to 'LR', 'TB', 'RL', 'BT'. // and the backward compatibility configuration 'horizontal = LR', 'vertical = TB'. orient: 'LR', symbol: 'emptyCircle', symbolSize: 7, expandAndCollapse: true, initialTreeDepth: 2, lineStyle: { color: '#ccc', width: 1.5, curveness: 0.5 }, itemStyle: { color: 'lightsteelblue', borderColor: '#c23531', borderWidth: 1.5 }, label: { show: true, color: '#555' }, leaves: { label: { show: true } }, animationEasing: 'linear', animationDuration: 700, animationDurationUpdate: 1000 } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embeded for some of the code in this file: * The tree layoutHelper implementation was originally copied from * "d3.js"(https://github.com/d3/d3-hierarchy) with * some modifications made for this project. * (see more details in the comment of the specific method below.) * The use of the source code of this file is also subject to the terms * and consitions of the licence of "d3.js" (BSD-3Clause, see * ). */ /** * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing * the tree. */ /** * Initialize all computational message for following algorithm. * * @param {module:echarts/data/Tree~TreeNode} root The virtual root of the tree. */ function init$2(root) { root.hierNode = { defaultAncestor: null, ancestor: root, prelim: 0, modifier: 0, change: 0, shift: 0, i: 0, thread: null }; var nodes = [root]; var node; var children; while (node = nodes.pop()) { // jshint ignore:line children = node.children; if (node.isExpand && children.length) { var n = children.length; for (var i = n - 1; i >= 0; i--) { var child = children[i]; child.hierNode = { defaultAncestor: null, ancestor: child, prelim: 0, modifier: 0, change: 0, shift: 0, i: i, thread: null }; nodes.push(child); } } } } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Computes a preliminary x coordinate for node. Before that, this function is * applied recursively to the children of node, as well as the function * apportion(). After spacing out the children by calling executeShifts(), the * node is placed to the midpoint of its outermost children. * * @param {module:echarts/data/Tree~TreeNode} node * @param {Function} separation */ function firstWalk(node, separation) { var children = node.isExpand ? node.children : []; var siblings = node.parentNode.children; var subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null; if (children.length) { executeShifts(node); var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2; if (subtreeW) { node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW); node.hierNode.modifier = node.hierNode.prelim - midPoint; } else { node.hierNode.prelim = midPoint; } } else if (subtreeW) { node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW); } node.parentNode.hierNode.defaultAncestor = apportion( node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation ); } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Computes all real x-coordinates by summing up the modifiers recursively. * * @param {module:echarts/data/Tree~TreeNode} node */ function secondWalk(node) { var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier; node.setLayout({x: nodeX}, true); node.hierNode.modifier += node.parentNode.hierNode.modifier; } function separation(cb) { return arguments.length ? cb : defaultSeparation; } /** * Transform the common coordinate to radial coordinate. * * @param {number} x * @param {number} y * @return {Object} */ function radialCoordinate(x, y) { var radialCoor = {}; x -= Math.PI / 2; radialCoor.x = y * Math.cos(x); radialCoor.y = y * Math.sin(x); return radialCoor; } /** * Get the layout position of the whole view. * * @param {module:echarts/model/Series} seriesModel the model object of sankey series * @param {module:echarts/ExtensionAPI} api provide the API list that the developer can call * @return {module:zrender/core/BoundingRect} size of rect to draw the sankey view */ function getViewRect(seriesModel, api) { return getLayoutRect( seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() } ); } /** * All other shifts, applied to the smaller subtrees between w- and w+, are * performed by this function. * * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * @param {module:echarts/data/Tree~TreeNode} node */ function executeShifts(node) { var children = node.children; var n = children.length; var shift = 0; var change = 0; while (--n >= 0) { var child = children[n]; child.hierNode.prelim += shift; child.hierNode.modifier += shift; change += child.hierNode.change; shift += child.hierNode.shift + change; } } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * The core of the algorithm. Here, a new subtree is combined with the * previous subtrees. Threads are used to traverse the inside and outside * contours of the left and right subtree up to the highest common level. * Whenever two nodes of the inside contours conflict, we compute the left * one of the greatest uncommon ancestors using the function nextAncestor() * and call moveSubtree() to shift the subtree and prepare the shifts of * smaller subtrees. Finally, we add a new thread (if necessary). * * @param {module:echarts/data/Tree~TreeNode} subtreeV * @param {module:echarts/data/Tree~TreeNode} subtreeW * @param {module:echarts/data/Tree~TreeNode} ancestor * @param {Function} separation * @return {module:echarts/data/Tree~TreeNode} */ function apportion(subtreeV, subtreeW, ancestor, separation) { if (subtreeW) { var nodeOutRight = subtreeV; var nodeInRight = subtreeV; var nodeOutLeft = nodeInRight.parentNode.children[0]; var nodeInLeft = subtreeW; var sumOutRight = nodeOutRight.hierNode.modifier; var sumInRight = nodeInRight.hierNode.modifier; var sumOutLeft = nodeOutLeft.hierNode.modifier; var sumInLeft = nodeInLeft.hierNode.modifier; while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) { nodeOutRight = nextRight(nodeOutRight); nodeOutLeft = nextLeft(nodeOutLeft); nodeOutRight.hierNode.ancestor = subtreeV; var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim - sumInRight + separation(nodeInLeft, nodeInRight); if (shift > 0) { moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift); sumInRight += shift; sumOutRight += shift; } sumInLeft += nodeInLeft.hierNode.modifier; sumInRight += nodeInRight.hierNode.modifier; sumOutRight += nodeOutRight.hierNode.modifier; sumOutLeft += nodeOutLeft.hierNode.modifier; } if (nodeInLeft && !nextRight(nodeOutRight)) { nodeOutRight.hierNode.thread = nodeInLeft; nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight; } if (nodeInRight && !nextLeft(nodeOutLeft)) { nodeOutLeft.hierNode.thread = nodeInRight; nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft; ancestor = subtreeV; } } return ancestor; } /** * This function is used to traverse the right contour of a subtree. * It returns the rightmost child of node or the thread of node. The function * returns null if and only if node is on the highest depth of its subtree. * * @param {module:echarts/data/Tree~TreeNode} node * @return {module:echarts/data/Tree~TreeNode} */ function nextRight(node) { var children = node.children; return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread; } /** * This function is used to traverse the left contour of a subtree (or a subforest). * It returns the leftmost child of node or the thread of node. The function * returns null if and only if node is on the highest depth of its subtree. * * @param {module:echarts/data/Tree~TreeNode} node * @return {module:echarts/data/Tree~TreeNode} */ function nextLeft(node) { var children = node.children; return children.length && node.isExpand ? children[0] : node.hierNode.thread; } /** * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor. * Otherwise, returns the specified ancestor. * * @param {module:echarts/data/Tree~TreeNode} nodeInLeft * @param {module:echarts/data/Tree~TreeNode} node * @param {module:echarts/data/Tree~TreeNode} ancestor * @return {module:echarts/data/Tree~TreeNode} */ function nextAncestor(nodeInLeft, node, ancestor) { return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode ? nodeInLeft.hierNode.ancestor : ancestor; } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Shifts the current subtree rooted at wr. * This is done by increasing prelim(w+) and modifier(w+) by shift. * * @param {module:echarts/data/Tree~TreeNode} wl * @param {module:echarts/data/Tree~TreeNode} wr * @param {number} shift [description] */ function moveSubtree(wl, wr, shift) { var change = shift / (wr.hierNode.i - wl.hierNode.i); wr.hierNode.change -= change; wr.hierNode.shift += shift; wr.hierNode.modifier += shift; wr.hierNode.prelim += shift; wl.hierNode.change += change; } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. */ function defaultSeparation(node1, node2) { return node1.parentNode === node2.parentNode ? 1 : 2; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendChartView({ type: 'tree', /** * Init the chart * @override * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ init: function (ecModel, api) { /** * @private * @type {module:echarts/data/Tree} */ this._oldTree; /** * @private * @type {module:zrender/container/Group} */ this._mainGroup = new Group(); /** * @private * @type {module:echarts/componet/helper/RoamController} */ this._controller = new RoamController(api.getZr()); this._controllerHost = {target: this.group}; this.group.add(this._mainGroup); }, render: function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var layoutInfo = seriesModel.layoutInfo; var group = this._mainGroup; var layout = seriesModel.get('layout'); if (layout === 'radial') { group.attr('position', [layoutInfo.x + layoutInfo.width / 2, layoutInfo.y + layoutInfo.height / 2]); } else { group.attr('position', [layoutInfo.x, layoutInfo.y]); } this._updateViewCoordSys(seriesModel); this._updateController(seriesModel, ecModel, api); var oldData = this._data; var seriesScope = { expandAndCollapse: seriesModel.get('expandAndCollapse'), layout: layout, orient: seriesModel.getOrient(), curvature: seriesModel.get('lineStyle.curveness'), symbolRotate: seriesModel.get('symbolRotate'), symbolOffset: seriesModel.get('symbolOffset'), hoverAnimation: seriesModel.get('hoverAnimation'), useNameLabel: true, fadeIn: true }; data.diff(oldData) .add(function (newIdx) { if (symbolNeedsDraw$1(data, newIdx)) { // Create node and edge updateNode(data, newIdx, null, group, seriesModel, seriesScope); } }) .update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); if (!symbolNeedsDraw$1(data, newIdx)) { symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel, seriesScope); return; } // Update node and edge updateNode(data, newIdx, symbolEl, group, seriesModel, seriesScope); }) .remove(function (oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); // When remove a collapsed node of subtree, since the collapsed // node haven't been initialized with a symbol element, // you can't found it's symbol element through index. // so if we want to remove the symbol element we should insure // that the symbol element is not null. if (symbolEl) { removeNode(oldData, oldIdx, symbolEl, group, seriesModel, seriesScope); } }) .execute(); this._nodeScaleRatio = seriesModel.get('nodeScaleRatio'); this._updateNodeAndLinkScale(seriesModel); if (seriesScope.expandAndCollapse === true) { data.eachItemGraphicEl(function (el, dataIndex) { el.off('click').on('click', function () { api.dispatchAction({ type: 'treeExpandAndCollapse', seriesId: seriesModel.id, dataIndex: dataIndex }); }); }); } this._data = data; }, _updateViewCoordSys: function (seriesModel) { var data = seriesModel.getData(); var points = []; data.each(function (idx) { var layout = data.getItemLayout(idx); if (layout && !isNaN(layout.x) && !isNaN(layout.y)) { points.push([+layout.x, +layout.y]); } }); var min = []; var max = []; fromPoints(points, min, max); // If width or height is 0 if (max[0] - min[0] === 0) { max[0] += 1; min[0] -= 1; } if (max[1] - min[1] === 0) { max[1] += 1; min[1] -= 1; } var viewCoordSys = seriesModel.coordinateSystem = new View(); viewCoordSys.zoomLimit = seriesModel.get('scaleLimit'); viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]); viewCoordSys.setCenter(seriesModel.get('center')); viewCoordSys.setZoom(seriesModel.get('zoom')); // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group this.group.attr({ position: viewCoordSys.position, scale: viewCoordSys.scale }); this._viewCoordSys = viewCoordSys; }, _updateController: function (seriesModel, ecModel, api) { var controller = this._controller; var controllerHost = this._controllerHost; var group = this.group; controller.setPointerChecker(function (e, x, y) { var rect = group.getBoundingRect(); rect.applyTransform(group.transform); return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel); }); controller.enable(seriesModel.get('roam')); controllerHost.zoomLimit = seriesModel.get('scaleLimit'); controllerHost.zoom = seriesModel.coordinateSystem.getZoom(); controller .off('pan') .off('zoom') .on('pan', function (e) { updateViewOnPan(controllerHost, e.dx, e.dy); api.dispatchAction({ seriesId: seriesModel.id, type: 'treeRoam', dx: e.dx, dy: e.dy }); }, this) .on('zoom', function (e) { updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY); api.dispatchAction({ seriesId: seriesModel.id, type: 'treeRoam', zoom: e.scale, originX: e.originX, originY: e.originY }); this._updateNodeAndLinkScale(seriesModel); }, this); }, _updateNodeAndLinkScale: function (seriesModel) { var data = seriesModel.getData(); var nodeScale = this._getNodeGlobalScale(seriesModel); var invScale = [nodeScale, nodeScale]; data.eachItemGraphicEl(function (el, idx) { el.attr('scale', invScale); }); }, _getNodeGlobalScale: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = this._nodeScaleRatio; var groupScale = coordSys.scale; var groupZoom = (groupScale && groupScale[0]) || 1; // Scale node when zoom changes var roamZoom = coordSys.getZoom(); var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1; return nodeScale / groupZoom; }, dispose: function () { this._controller && this._controller.dispose(); this._controllerHost = {}; }, remove: function () { this._mainGroup.removeAll(); this._data = null; } }); function symbolNeedsDraw$1(data, dataIndex) { var layout = data.getItemLayout(dataIndex); return layout && !isNaN(layout.x) && !isNaN(layout.y) && data.getItemVisual(dataIndex, 'symbol') !== 'none'; } function getTreeNodeStyle(node, itemModel, seriesScope) { seriesScope.itemModel = itemModel; seriesScope.itemStyle = itemModel.getModel('itemStyle').getItemStyle(); seriesScope.hoverItemStyle = itemModel.getModel('emphasis.itemStyle').getItemStyle(); seriesScope.lineStyle = itemModel.getModel('lineStyle').getLineStyle(); seriesScope.labelModel = itemModel.getModel('label'); seriesScope.hoverLabelModel = itemModel.getModel('emphasis.label'); if (node.isExpand === false && node.children.length !== 0) { seriesScope.symbolInnerColor = seriesScope.itemStyle.fill; } else { seriesScope.symbolInnerColor = '#fff'; } return seriesScope; } function updateNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope) { var isInit = !symbolEl; var node = data.tree.getNodeByDataIndex(dataIndex); var itemModel = node.getModel(); var seriesScope = getTreeNodeStyle(node, itemModel, seriesScope); var virtualRoot = data.tree.root; var source = node.parentNode === virtualRoot ? node : node.parentNode || node; var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex); var sourceLayout = source.getLayout(); var sourceOldLayout = sourceSymbolEl ? { x: sourceSymbolEl.position[0], y: sourceSymbolEl.position[1], rawX: sourceSymbolEl.__radialOldRawX, rawY: sourceSymbolEl.__radialOldRawY } : sourceLayout; var targetLayout = node.getLayout(); if (isInit) { symbolEl = new SymbolClz$1(data, dataIndex, seriesScope); symbolEl.attr('position', [sourceOldLayout.x, sourceOldLayout.y]); } else { symbolEl.updateData(data, dataIndex, seriesScope); } symbolEl.__radialOldRawX = symbolEl.__radialRawX; symbolEl.__radialOldRawY = symbolEl.__radialRawY; symbolEl.__radialRawX = targetLayout.rawX; symbolEl.__radialRawY = targetLayout.rawY; group.add(symbolEl); data.setItemGraphicEl(dataIndex, symbolEl); updateProps(symbolEl, { position: [targetLayout.x, targetLayout.y] }, seriesModel); var symbolPath = symbolEl.getSymbolPath(); if (seriesScope.layout === 'radial') { var realRoot = virtualRoot.children[0]; var rootLayout = realRoot.getLayout(); var length = realRoot.children.length; var rad; var isLeft; if (targetLayout.x === rootLayout.x && node.isExpand === true) { var center = {}; center.x = (realRoot.children[0].getLayout().x + realRoot.children[length - 1].getLayout().x) / 2; center.y = (realRoot.children[0].getLayout().y + realRoot.children[length - 1].getLayout().y) / 2; rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x); if (rad < 0) { rad = Math.PI * 2 + rad; } isLeft = center.x < rootLayout.x; if (isLeft) { rad = rad - Math.PI; } } else { rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x); if (rad < 0) { rad = Math.PI * 2 + rad; } if (node.children.length === 0 || (node.children.length !== 0 && node.isExpand === false)) { isLeft = targetLayout.x < rootLayout.x; if (isLeft) { rad = rad - Math.PI; } } else { isLeft = targetLayout.x > rootLayout.x; if (!isLeft) { rad = rad - Math.PI; } } } var textPosition = isLeft ? 'left' : 'right'; symbolPath.setStyle({ textPosition: textPosition, textRotation: -rad, textOrigin: 'center', verticalAlign: 'middle' }); } if (node.parentNode && node.parentNode !== virtualRoot) { var edge = symbolEl.__edge; if (!edge) { edge = symbolEl.__edge = new BezierCurve({ shape: getEdgeShape(seriesScope, sourceOldLayout, sourceOldLayout), style: defaults({opacity: 0, strokeNoScale: true}, seriesScope.lineStyle) }); } updateProps(edge, { shape: getEdgeShape(seriesScope, sourceLayout, targetLayout), style: {opacity: 1} }, seriesModel); group.add(edge); } } function removeNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope) { var node = data.tree.getNodeByDataIndex(dataIndex); var virtualRoot = data.tree.root; var itemModel = node.getModel(); var seriesScope = getTreeNodeStyle(node, itemModel, seriesScope); var source = node.parentNode === virtualRoot ? node : node.parentNode || node; var sourceLayout; while (sourceLayout = source.getLayout(), sourceLayout == null) { source = source.parentNode === virtualRoot ? source : source.parentNode || source; } updateProps(symbolEl, { position: [sourceLayout.x + 1, sourceLayout.y + 1] }, seriesModel, function () { group.remove(symbolEl); data.setItemGraphicEl(dataIndex, null); }); symbolEl.fadeOut(null, {keepLabel: true}); var edge = symbolEl.__edge; if (edge) { updateProps(edge, { shape: getEdgeShape(seriesScope, sourceLayout, sourceLayout), style: { opacity: 0 } }, seriesModel, function () { group.remove(edge); }); } } function getEdgeShape(seriesScope, sourceLayout, targetLayout) { var cpx1; var cpy1; var cpx2; var cpy2; var orient = seriesScope.orient; var x1; var x2; var y1; var y2; if (seriesScope.layout === 'radial') { x1 = sourceLayout.rawX; y1 = sourceLayout.rawY; x2 = targetLayout.rawX; y2 = targetLayout.rawY; var radialCoor1 = radialCoordinate(x1, y1); var radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * seriesScope.curvature); var radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * seriesScope.curvature); var radialCoor4 = radialCoordinate(x2, y2); return { x1: radialCoor1.x, y1: radialCoor1.y, x2: radialCoor4.x, y2: radialCoor4.y, cpx1: radialCoor2.x, cpy1: radialCoor2.y, cpx2: radialCoor3.x, cpy2: radialCoor3.y }; } else { x1 = sourceLayout.x; y1 = sourceLayout.y; x2 = targetLayout.x; y2 = targetLayout.y; if (orient === 'LR' || orient === 'RL') { cpx1 = x1 + (x2 - x1) * seriesScope.curvature; cpy1 = y1; cpx2 = x2 + (x1 - x2) * seriesScope.curvature; cpy2 = y2; } if (orient === 'TB' || orient === 'BT') { cpx1 = x1; cpy1 = y1 + (y2 - y1) * seriesScope.curvature; cpx2 = x2; cpy2 = y2 + (y1 - y2) * seriesScope.curvature; } } return { x1: x1, y1: y1, x2: x2, y2: y2, cpx1: cpx1, cpy1: cpy1, cpx2: cpx2, cpy2: cpy2 }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerAction({ type: 'treeExpandAndCollapse', event: 'treeExpandAndCollapse', update: 'update' }, function (payload, ecModel) { ecModel.eachComponent({mainType: 'series', subType: 'tree', query: payload}, function (seriesModel) { var dataIndex = payload.dataIndex; var tree = seriesModel.getData().tree; var node = tree.getNodeByDataIndex(dataIndex); node.isExpand = !node.isExpand; }); }); registerAction({ type: 'treeRoam', event: 'treeRoam', // Here we set 'none' instead of 'update', because roam action // just need to update the transform matrix without having to recalculate // the layout. So don't need to go through the whole update process, such // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on. update: 'none' }, function (payload, ecModel) { ecModel.eachComponent({mainType: 'series', subType: 'tree', query: payload}, function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var res = updateCenterAndZoom(coordSys, payload); seriesModel.setCenter && seriesModel.setCenter(res.center); seriesModel.setZoom && seriesModel.setZoom(res.zoom); }); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Traverse the tree from bottom to top and do something * @param {module:echarts/data/Tree~TreeNode} root The real root of the tree * @param {Function} callback */ function eachAfter(root, callback, separation) { var nodes = [root]; var next = []; var node; while (node = nodes.pop()) { // jshint ignore:line next.push(node); if (node.isExpand) { var children = node.children; if (children.length) { for (var i = 0; i < children.length; i++) { nodes.push(children[i]); } } } } while (node = next.pop()) { // jshint ignore:line callback(node, separation); } } /** * Traverse the tree from top to bottom and do something * @param {module:echarts/data/Tree~TreeNode} root The real root of the tree * @param {Function} callback */ function eachBefore(root, callback) { var nodes = [root]; var node; while (node = nodes.pop()) { // jshint ignore:line callback(node); if (node.isExpand) { var children = node.children; if (children.length) { for (var i = children.length - 1; i >= 0; i--) { nodes.push(children[i]); } } } } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var treeLayout = function (ecModel, api) { ecModel.eachSeriesByType('tree', function (seriesModel) { commonLayout(seriesModel, api); }); }; function commonLayout(seriesModel, api) { var layoutInfo = getViewRect(seriesModel, api); seriesModel.layoutInfo = layoutInfo; var layout = seriesModel.get('layout'); var width = 0; var height = 0; var separation$$1 = null; if (layout === 'radial') { width = 2 * Math.PI; height = Math.min(layoutInfo.height, layoutInfo.width) / 2; separation$$1 = separation(function (node1, node2) { return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth; }); } else { width = layoutInfo.width; height = layoutInfo.height; separation$$1 = separation(); } var virtualRoot = seriesModel.getData().tree.root; var realRoot = virtualRoot.children[0]; if (realRoot) { init$2(virtualRoot); eachAfter(realRoot, firstWalk, separation$$1); virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim; eachBefore(realRoot, secondWalk); var left = realRoot; var right = realRoot; var bottom = realRoot; eachBefore(realRoot, function (node) { var x = node.getLayout().x; if (x < left.getLayout().x) { left = node; } if (x > right.getLayout().x) { right = node; } if (node.depth > bottom.depth) { bottom = node; } }); var delta = left === right ? 1 : separation$$1(left, right) / 2; var tx = delta - left.getLayout().x; var kx = 0; var ky = 0; var coorX = 0; var coorY = 0; if (layout === 'radial') { kx = width / (right.getLayout().x + delta + tx); // here we use (node.depth - 1), bucause the real root's depth is 1 ky = height / ((bottom.depth - 1) || 1); eachBefore(realRoot, function (node) { coorX = (node.getLayout().x + tx) * kx; coorY = (node.depth - 1) * ky; var finalCoor = radialCoordinate(coorX, coorY); node.setLayout({x: finalCoor.x, y: finalCoor.y, rawX: coorX, rawY: coorY}, true); }); } else { var orient = seriesModel.getOrient(); if (orient === 'RL' || orient === 'LR') { ky = height / (right.getLayout().x + delta + tx); kx = width / ((bottom.depth - 1) || 1); eachBefore(realRoot, function (node) { coorY = (node.getLayout().x + tx) * ky; coorX = orient === 'LR' ? (node.depth - 1) * kx : width - (node.depth - 1) * kx; node.setLayout({x: coorX, y: coorY}, true); }); } else if (orient === 'TB' || orient === 'BT') { kx = width / (right.getLayout().x + delta + tx); ky = height / ((bottom.depth - 1) || 1); eachBefore(realRoot, function (node) { coorX = (node.getLayout().x + tx) * kx; coorY = orient === 'TB' ? (node.depth - 1) * ky : height - (node.depth - 1) * ky; node.setLayout({x: coorX, y: coorY}, true); }); } } } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(visualSymbol('tree', 'circle')); registerLayout(treeLayout); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) { if (payload && indexOf(validPayloadTypes, payload.type) >= 0) { var root = seriesModel.getData().tree.root; var targetNode = payload.targetNode; if (typeof targetNode === 'string') { targetNode = root.getNodeById(targetNode); } if (targetNode && root.contains(targetNode)) { return {node: targetNode}; } var targetNodeId = payload.targetNodeId; if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) { return {node: targetNode}; } } } // Not includes the given node at the last item. function getPathToRoot(node) { var path = []; while (node) { node = node.parentNode; node && path.push(node); } return path.reverse(); } function aboveViewRoot(viewRoot, node) { var viewPath = getPathToRoot(viewRoot); return indexOf(viewPath, node) >= 0; } // From root to the input node (the input node will be included). function wrapTreePathInfo(node, seriesModel) { var treePathInfo = []; while (node) { var nodeDataIndex = node.dataIndex; treePathInfo.push({ name: node.name, dataIndex: nodeDataIndex, value: seriesModel.getRawValue(nodeDataIndex) }); node = node.parentNode; } treePathInfo.reverse(); return treePathInfo; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.treemap', layoutMode: 'box', dependencies: ['grid', 'polar'], preventUsingHoverLayer: true, /** * @type {module:echarts/data/Tree~Node} */ _viewRoot: null, defaultOption: { // Disable progressive rendering progressive: 0, // center: ['50%', '50%'], // not supported in ec3. // size: ['80%', '80%'], // deprecated, compatible with ec2. left: 'center', top: 'middle', right: null, bottom: null, width: '80%', height: '80%', sort: true, // Can be null or false or true // (order by desc default, asc not supported yet (strange effect)) clipWindow: 'origin', // Size of clipped window when zooming. 'origin' or 'fullscreen' squareRatio: 0.5 * (1 + Math.sqrt(5)), // golden ratio leafDepth: null, // Nodes on depth from root are regarded as leaves. // Count from zero (zero represents only view root). drillDownIcon: '▶', // Use html character temporarily because it is complicated // to align specialized icon. ▷▶❒❐▼✚ zoomToNodeRatio: 0.32 * 0.32, // Be effective when using zoomToNode. Specify the proportion of the // target node area in the view area. roam: true, // true, false, 'scale' or 'zoom', 'move'. nodeClick: 'zoomToNode', // Leaf node click behaviour: 'zoomToNode', 'link', false. // If leafDepth is set and clicking a node which has children but // be on left depth, the behaviour would be changing root. Otherwise // use behavious defined above. animation: true, animationDurationUpdate: 900, animationEasing: 'quinticInOut', breadcrumb: { show: true, height: 22, left: 'center', top: 'bottom', // right // bottom emptyItemWidth: 25, // Width of empty node. itemStyle: { color: 'rgba(0,0,0,0.7)', //'#5793f3', borderColor: 'rgba(255,255,255,0.7)', borderWidth: 1, shadowColor: 'rgba(150,150,150,1)', shadowBlur: 3, shadowOffsetX: 0, shadowOffsetY: 0, textStyle: { color: '#fff' } }, emphasis: { textStyle: {} } }, label: { show: true, // Do not use textDistance, for ellipsis rect just the same as treemap node rect. distance: 0, padding: 5, position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ... // formatter: null, color: '#fff', ellipsis: true // align // verticalAlign }, upperLabel: { // Label when node is parent. show: false, position: [0, '50%'], height: 20, // formatter: null, color: '#fff', ellipsis: true, // align: null, verticalAlign: 'middle' }, itemStyle: { color: null, // Can be 'none' if not necessary. colorAlpha: null, // Can be 'none' if not necessary. colorSaturation: null, // Can be 'none' if not necessary. borderWidth: 0, gapWidth: 0, borderColor: '#fff', borderColorSaturation: null // If specified, borderColor will be ineffective, and the // border color is evaluated by color of current node and // borderColorSaturation. }, emphasis: { upperLabel: { show: true, position: [0, '50%'], color: '#fff', ellipsis: true, verticalAlign: 'middle' } }, visualDimension: 0, // Can be 0, 1, 2, 3. visualMin: null, visualMax: null, color: [], // + treemapSeries.color should not be modified. Please only modified // level[n].color (if necessary). // + Specify color list of each level. level[0].color would be global // color list if not specified. (see method `setDefault`). // + But set as a empty array to forbid fetch color from global palette // when using nodeModel.get('color'), otherwise nodes on deep level // will always has color palette set and are not able to inherit color // from parent node. // + TreemapSeries.color can not be set as 'none', otherwise effect // legend color fetching (see seriesColor.js). colorAlpha: null, // Array. Specify color alpha range of each level, like [0.2, 0.8] colorSaturation: null, // Array. Specify color saturation of each level, like [0.2, 0.5] colorMappingBy: 'index', // 'value' or 'index' or 'id'. visibleMin: 10, // If area less than this threshold (unit: pixel^2), node will not // be rendered. Only works when sort is 'asc' or 'desc'. childrenVisibleMin: null, // If area of a node less than this threshold (unit: pixel^2), // grandchildren will not show. // Why grandchildren? If not grandchildren but children, // some siblings show children and some not, // the appearance may be mess and not consistent, levels: [] // Each item: { // visibleMin, itemStyle, visualDimension, label // } // data: { // value: [], // children: [], // link: 'http://xxx.xxx.xxx', // target: 'blank' or 'self' // } }, /** * @override */ getInitialData: function (option, ecModel) { // Create a virtual root. var root = {name: option.name, children: option.data}; completeTreeValue(root); var levels = option.levels || []; levels = option.levels = setDefault(levels, ecModel); var treeOption = {}; treeOption.levels = levels; // Make sure always a new tree is created when setOption, // in TreemapView, we check whether oldTree === newTree // to choose mappings approach among old shapes and new shapes. return Tree.createTree(root, this, treeOption).data; }, optionUpdated: function () { this.resetViewRoot(); }, /** * @override * @param {number} dataIndex * @param {boolean} [mutipleSeries=false] */ formatTooltip: function (dataIndex) { var data = this.getData(); var value = this.getRawValue(dataIndex); var formattedValue = isArray(value) ? addCommas(value[0]) : addCommas(value); var name = data.getName(dataIndex); return encodeHTML(name + ': ' + formattedValue); }, /** * Add tree path to tooltip param * * @override * @param {number} dataIndex * @return {Object} */ getDataParams: function (dataIndex) { var params = SeriesModel.prototype.getDataParams.apply(this, arguments); var node = this.getData().tree.getNodeByDataIndex(dataIndex); params.treePathInfo = wrapTreePathInfo(node, this); return params; }, /** * @public * @param {Object} layoutInfo { * x: containerGroup x * y: containerGroup y * width: containerGroup width * height: containerGroup height * } */ setLayoutInfo: function (layoutInfo) { /** * @readOnly * @type {Object} */ this.layoutInfo = this.layoutInfo || {}; extend(this.layoutInfo, layoutInfo); }, /** * @param {string} id * @return {number} index */ mapIdToIndex: function (id) { // A feature is implemented: // index is monotone increasing with the sequence of // input id at the first time. // This feature can make sure that each data item and its // mapped color have the same index between data list and // color list at the beginning, which is useful for user // to adjust data-color mapping. /** * @private * @type {Object} */ var idIndexMap = this._idIndexMap; if (!idIndexMap) { idIndexMap = this._idIndexMap = createHashMap(); /** * @private * @type {number} */ this._idIndexMapCount = 0; } var index = idIndexMap.get(id); if (index == null) { idIndexMap.set(id, index = this._idIndexMapCount++); } return index; }, getViewRoot: function () { return this._viewRoot; }, /** * @param {module:echarts/data/Tree~Node} [viewRoot] */ resetViewRoot: function (viewRoot) { viewRoot ? (this._viewRoot = viewRoot) : (viewRoot = this._viewRoot); var root = this.getRawData().tree.root; if (!viewRoot || (viewRoot !== root && !root.contains(viewRoot)) ) { this._viewRoot = root; } } }); /** * @param {Object} dataNode */ function completeTreeValue(dataNode) { // Postorder travel tree. // If value of none-leaf node is not set, // calculate it by suming up the value of all children. var sum = 0; each$1(dataNode.children, function (child) { completeTreeValue(child); var childValue = child.value; isArray(childValue) && (childValue = childValue[0]); sum += childValue; }); var thisValue = dataNode.value; if (isArray(thisValue)) { thisValue = thisValue[0]; } if (thisValue == null || isNaN(thisValue)) { thisValue = sum; } // Value should not less than 0. if (thisValue < 0) { thisValue = 0; } isArray(dataNode.value) ? (dataNode.value[0] = thisValue) : (dataNode.value = thisValue); } /** * set default to level configuration */ function setDefault(levels, ecModel) { var globalColorList = ecModel.get('color'); if (!globalColorList) { return; } levels = levels || []; var hasColorDefine; each$1(levels, function (levelDefine) { var model = new Model(levelDefine); var modelColor = model.get('color'); if (model.get('itemStyle.color') || (modelColor && modelColor !== 'none') ) { hasColorDefine = true; } }); if (!hasColorDefine) { var level0 = levels[0] || (levels[0] = {}); level0.color = globalColorList.slice(); } return levels; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TEXT_PADDING = 8; var ITEM_GAP = 8; var ARRAY_LENGTH = 5; function Breadcrumb(containerGroup) { /** * @private * @type {module:zrender/container/Group} */ this.group = new Group(); containerGroup.add(this.group); } Breadcrumb.prototype = { constructor: Breadcrumb, render: function (seriesModel, api, targetNode, onSelect) { var model = seriesModel.getModel('breadcrumb'); var thisGroup = this.group; thisGroup.removeAll(); if (!model.get('show') || !targetNode) { return; } var normalStyleModel = model.getModel('itemStyle'); // var emphasisStyleModel = model.getModel('emphasis.itemStyle'); var textStyleModel = normalStyleModel.getModel('textStyle'); var layoutParam = { pos: { left: model.get('left'), right: model.get('right'), top: model.get('top'), bottom: model.get('bottom') }, box: { width: api.getWidth(), height: api.getHeight() }, emptyItemWidth: model.get('emptyItemWidth'), totalWidth: 0, renderList: [] }; this._prepare(targetNode, layoutParam, textStyleModel); this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect); positionElement(thisGroup, layoutParam.pos, layoutParam.box); }, /** * Prepare render list and total width * @private */ _prepare: function (targetNode, layoutParam, textStyleModel) { for (var node = targetNode; node; node = node.parentNode) { var text = node.getModel().get('name'); var textRect = textStyleModel.getTextRect(text); var itemWidth = Math.max( textRect.width + TEXT_PADDING * 2, layoutParam.emptyItemWidth ); layoutParam.totalWidth += itemWidth + ITEM_GAP; layoutParam.renderList.push({node: node, text: text, width: itemWidth}); } }, /** * @private */ _renderContent: function ( seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect ) { // Start rendering. var lastX = 0; var emptyItemWidth = layoutParam.emptyItemWidth; var height = seriesModel.get('breadcrumb.height'); var availableSize = getAvailableSize(layoutParam.pos, layoutParam.box); var totalWidth = layoutParam.totalWidth; var renderList = layoutParam.renderList; for (var i = renderList.length - 1; i >= 0; i--) { var item = renderList[i]; var itemNode = item.node; var itemWidth = item.width; var text = item.text; // Hdie text and shorten width if necessary. if (totalWidth > availableSize.width) { totalWidth -= itemWidth - emptyItemWidth; itemWidth = emptyItemWidth; text = null; } var el = new Polygon({ shape: { points: makeItemPoints( lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0 ) }, style: defaults( normalStyleModel.getItemStyle(), { lineJoin: 'bevel', text: text, textFill: textStyleModel.getTextColor(), textFont: textStyleModel.getFont() } ), z: 10, onclick: curry(onSelect, itemNode) }); this.group.add(el); packEventData(el, seriesModel, itemNode); lastX += itemWidth + ITEM_GAP; } }, /** * @override */ remove: function () { this.group.removeAll(); } }; function makeItemPoints(x, y, itemWidth, itemHeight, head, tail) { var points = [ [head ? x : x - ARRAY_LENGTH, y], [x + itemWidth, y], [x + itemWidth, y + itemHeight], [head ? x : x - ARRAY_LENGTH, y + itemHeight] ]; !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]); !head && points.push([x, y + itemHeight / 2]); return points; } // Package custom mouse event. function packEventData(el, seriesModel, itemNode) { el.eventData = { componentType: 'series', componentSubType: 'treemap', componentIndex: seriesModel.componentIndex, seriesIndex: seriesModel.componentIndex, seriesName: seriesModel.name, seriesType: 'treemap', selfType: 'breadcrumb', // Distinguish with click event on treemap node. nodeData: { dataIndex: itemNode && itemNode.dataIndex, name: itemNode && itemNode.name }, treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel) }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {number} [time=500] Time in ms * @param {string} [easing='linear'] * @param {number} [delay=0] * @param {Function} [callback] * * @example * // Animate position * animation * .createWrap() * .add(el1, {position: [10, 10]}) * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400) * .done(function () { // done }) * .start('cubicOut'); */ function createWrap() { var storage = []; var elExistsMap = {}; var doneCallback; return { /** * Caution: a el can only be added once, otherwise 'done' * might not be called. This method checks this (by el.id), * suppresses adding and returns false when existing el found. * * @param {modele:zrender/Element} el * @param {Object} target * @param {number} [time=500] * @param {number} [delay=0] * @param {string} [easing='linear'] * @return {boolean} Whether adding succeeded. * * @example * add(el, target, time, delay, easing); * add(el, target, time, easing); * add(el, target, time); * add(el, target); */ add: function (el, target, time, delay, easing) { if (isString(delay)) { easing = delay; delay = 0; } if (elExistsMap[el.id]) { return false; } elExistsMap[el.id] = 1; storage.push( {el: el, target: target, time: time, delay: delay, easing: easing} ); return true; }, /** * Only execute when animation finished. Will not execute when any * of 'stop' or 'stopAnimation' called. * * @param {Function} callback */ done: function (callback) { doneCallback = callback; return this; }, /** * Will stop exist animation firstly. */ start: function () { var count = storage.length; for (var i = 0, len = storage.length; i < len; i++) { var item = storage[i]; item.el.animateTo(item.target, item.time, item.delay, item.easing, done); } return this; function done() { count--; if (!count) { storage.length = 0; elExistsMap = {}; doneCallback && doneCallback(); } } } }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var bind$1 = bind; var Group$2 = Group; var Rect$1 = Rect; var each$8 = each$1; var DRAG_THRESHOLD = 3; var PATH_LABEL_NOAMAL = ['label']; var PATH_LABEL_EMPHASIS = ['emphasis', 'label']; var PATH_UPPERLABEL_NORMAL = ['upperLabel']; var PATH_UPPERLABEL_EMPHASIS = ['emphasis', 'upperLabel']; var Z_BASE = 10; // Should bigger than every z. var Z_BG = 1; var Z_CONTENT = 2; var getItemStyleEmphasis = makeStyleMapper([ ['fill', 'color'], // `borderColor` and `borderWidth` has been occupied, // so use `stroke` to indicate the stroke of the rect. ['stroke', 'strokeColor'], ['lineWidth', 'strokeWidth'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] ]); var getItemStyleNormal = function (model) { // Normal style props should include emphasis style props. var itemStyle = getItemStyleEmphasis(model); // Clear styles set by emphasis. itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null; return itemStyle; }; extendChartView({ type: 'treemap', /** * @override */ init: function (o, api) { /** * @private * @type {module:zrender/container/Group} */ this._containerGroup; /** * @private * @type {Object.>} */ this._storage = createStorage(); /** * @private * @type {module:echarts/data/Tree} */ this._oldTree; /** * @private * @type {module:echarts/chart/treemap/Breadcrumb} */ this._breadcrumb; /** * @private * @type {module:echarts/component/helper/RoamController} */ this._controller; /** * 'ready', 'animating' * @private */ this._state = 'ready'; }, /** * @override */ render: function (seriesModel, ecModel, api, payload) { var models = ecModel.findComponents({ mainType: 'series', subType: 'treemap', query: payload }); if (indexOf(models, seriesModel) < 0) { return; } this.seriesModel = seriesModel; this.api = api; this.ecModel = ecModel; var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = retrieveTargetInfo(payload, types, seriesModel); var payloadType = payload && payload.type; var layoutInfo = seriesModel.layoutInfo; var isInit = !this._oldTree; var thisStorage = this._storage; // Mark new root when action is treemapRootToNode. var reRoot = (payloadType === 'treemapRootToNode' && targetInfo && thisStorage) ? { rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()], direction: payload.direction } : null; var containerGroup = this._giveContainerGroup(layoutInfo); var renderResult = this._doRender(containerGroup, seriesModel, reRoot); ( !isInit && ( !payloadType || payloadType === 'treemapZoomToNode' || payloadType === 'treemapRootToNode' ) ) ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot) : renderResult.renderFinally(); this._resetController(api); this._renderBreadcrumb(seriesModel, api, targetInfo); }, /** * @private */ _giveContainerGroup: function (layoutInfo) { var containerGroup = this._containerGroup; if (!containerGroup) { // FIXME // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。 containerGroup = this._containerGroup = new Group$2(); this._initEvents(containerGroup); this.group.add(containerGroup); } containerGroup.attr('position', [layoutInfo.x, layoutInfo.y]); return containerGroup; }, /** * @private */ _doRender: function (containerGroup, seriesModel, reRoot) { var thisTree = seriesModel.getData().tree; var oldTree = this._oldTree; // Clear last shape records. var lastsForAnimation = createStorage(); var thisStorage = createStorage(); var oldStorage = this._storage; var willInvisibleEls = []; var doRenderNode = curry( renderNode, seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls ); // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow), // the oldTree is actually losted, so we can not find all of the old graphic // elements from tree. So we use this stragegy: make element storage, move // from old storage to new storage, clear old storage. dualTravel( thisTree.root ? [thisTree.root] : [], (oldTree && oldTree.root) ? [oldTree.root] : [], containerGroup, thisTree === oldTree || !oldTree, 0 ); // Process all removing. var willDeleteEls = clearStorage(oldStorage); this._oldTree = thisTree; this._storage = thisStorage; return { lastsForAnimation: lastsForAnimation, willDeleteEls: willDeleteEls, renderFinally: renderFinally }; function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) { // When 'render' is triggered by action, // 'this' and 'old' may be the same tree, // we use rawIndex in that case. if (sameTree) { oldViewChildren = thisViewChildren; each$8(thisViewChildren, function (child, index) { !child.isRemoved() && processNode(index, index); }); } // Diff hierarchically (diff only in each subtree, but not whole). // because, consistency of view is important. else { (new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey)) .add(processNode) .update(processNode) .remove(curry(processNode, null)) .execute(); } function getKey(node) { // Identify by name or raw index. return node.getId(); } function processNode(newIndex, oldIndex) { var thisNode = newIndex != null ? thisViewChildren[newIndex] : null; var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null; var group = doRenderNode(thisNode, oldNode, parentGroup, depth); group && dualTravel( thisNode && thisNode.viewChildren || [], oldNode && oldNode.viewChildren || [], group, sameTree, depth + 1 ); } } function clearStorage(storage) { var willDeleteEls = createStorage(); storage && each$8(storage, function (store, storageName) { var delEls = willDeleteEls[storageName]; each$8(store, function (el) { el && (delEls.push(el), el.__tmWillDelete = 1); }); }); return willDeleteEls; } function renderFinally() { each$8(willDeleteEls, function (els) { each$8(els, function (el) { el.parent && el.parent.remove(el); }); }); each$8(willInvisibleEls, function (el) { el.invisible = true; // Setting invisible is for optimizing, so no need to set dirty, // just mark as invisible. el.dirty(); }); } }, /** * @private */ _doAnimation: function (containerGroup, renderResult, seriesModel, reRoot) { if (!seriesModel.get('animation')) { return; } var duration = seriesModel.get('animationDurationUpdate'); var easing = seriesModel.get('animationEasing'); var animationWrap = createWrap(); // Make delete animations. each$8(renderResult.willDeleteEls, function (store, storageName) { each$8(store, function (el, rawIndex) { if (el.invisible) { return; } var parent = el.parent; // Always has parent, and parent is nodeGroup. var target; if (reRoot && reRoot.direction === 'drillDown') { target = parent === reRoot.rootNodeGroup // This is the content element of view root. // Only `content` will enter this branch, because // `background` and `nodeGroup` will not be deleted. ? { shape: { x: 0, y: 0, width: parent.__tmNodeWidth, height: parent.__tmNodeHeight }, style: { opacity: 0 } } // Others. : {style: {opacity: 0}}; } else { var targetX = 0; var targetY = 0; if (!parent.__tmWillDelete) { // Let node animate to right-bottom corner, cooperating with fadeout, // which is appropriate for user understanding. // Divided by 2 for reRoot rolling up effect. targetX = parent.__tmNodeWidth / 2; targetY = parent.__tmNodeHeight / 2; } target = storageName === 'nodeGroup' ? {position: [targetX, targetY], style: {opacity: 0}} : { shape: {x: targetX, y: targetY, width: 0, height: 0}, style: {opacity: 0} }; } target && animationWrap.add(el, target, duration, easing); }); }); // Make other animations each$8(this._storage, function (store, storageName) { each$8(store, function (el, rawIndex) { var last = renderResult.lastsForAnimation[storageName][rawIndex]; var target = {}; if (!last) { return; } if (storageName === 'nodeGroup') { if (last.old) { target.position = el.position.slice(); el.attr('position', last.old); } } else { if (last.old) { target.shape = extend({}, el.shape); el.setShape(last.old); } if (last.fadein) { el.setStyle('opacity', 0); target.style = {opacity: 1}; } // When animation is stopped for succedent animation starting, // el.style.opacity might not be 1 else if (el.style.opacity !== 1) { target.style = {opacity: 1}; } } animationWrap.add(el, target, duration, easing); }); }, this); this._state = 'animating'; animationWrap .done(bind$1(function () { this._state = 'ready'; renderResult.renderFinally(); }, this)) .start(); }, /** * @private */ _resetController: function (api) { var controller = this._controller; // Init controller. if (!controller) { controller = this._controller = new RoamController(api.getZr()); controller.enable(this.seriesModel.get('roam')); controller.on('pan', bind$1(this._onPan, this)); controller.on('zoom', bind$1(this._onZoom, this)); } var rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight()); controller.setPointerChecker(function (e, x, y) { return rect.contain(x, y); }); }, /** * @private */ _clearController: function () { var controller = this._controller; if (controller) { controller.dispose(); controller = null; } }, /** * @private */ _onPan: function (e) { if (this._state !== 'animating' && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD) ) { // These param must not be cached. var root = this.seriesModel.getData().tree.root; if (!root) { return; } var rootLayout = root.getLayout(); if (!rootLayout) { return; } this.api.dispatchAction({ type: 'treemapMove', from: this.uid, seriesId: this.seriesModel.id, rootRect: { x: rootLayout.x + e.dx, y: rootLayout.y + e.dy, width: rootLayout.width, height: rootLayout.height } }); } }, /** * @private */ _onZoom: function (e) { var mouseX = e.originX; var mouseY = e.originY; if (this._state !== 'animating') { // These param must not be cached. var root = this.seriesModel.getData().tree.root; if (!root) { return; } var rootLayout = root.getLayout(); if (!rootLayout) { return; } var rect = new BoundingRect( rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height ); var layoutInfo = this.seriesModel.layoutInfo; // Transform mouse coord from global to containerGroup. mouseX -= layoutInfo.x; mouseY -= layoutInfo.y; // Scale root bounding rect. var m = create$1(); translate(m, m, [-mouseX, -mouseY]); scale$1(m, m, [e.scale, e.scale]); translate(m, m, [mouseX, mouseY]); rect.applyTransform(m); this.api.dispatchAction({ type: 'treemapRender', from: this.uid, seriesId: this.seriesModel.id, rootRect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height } }); } }, /** * @private */ _initEvents: function (containerGroup) { containerGroup.on('click', function (e) { if (this._state !== 'ready') { return; } var nodeClick = this.seriesModel.get('nodeClick', true); if (!nodeClick) { return; } var targetInfo = this.findTarget(e.offsetX, e.offsetY); if (!targetInfo) { return; } var node = targetInfo.node; if (node.getLayout().isLeafRoot) { this._rootToNode(targetInfo); } else { if (nodeClick === 'zoomToNode') { this._zoomToNode(targetInfo); } else if (nodeClick === 'link') { var itemModel = node.hostTree.data.getItemModel(node.dataIndex); var link = itemModel.get('link', true); var linkTarget = itemModel.get('target', true) || 'blank'; link && window.open(link, linkTarget); } } }, this); }, /** * @private */ _renderBreadcrumb: function (seriesModel, api, targetInfo) { if (!targetInfo) { targetInfo = seriesModel.get('leafDepth', true) != null ? {node: seriesModel.getViewRoot()} // FIXME // better way? // Find breadcrumb tail on center of containerGroup. : this.findTarget(api.getWidth() / 2, api.getHeight() / 2); if (!targetInfo) { targetInfo = {node: seriesModel.getData().tree.root}; } } (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group))) .render(seriesModel, api, targetInfo.node, bind$1(onSelect, this)); function onSelect(node) { if (this._state !== 'animating') { aboveViewRoot(seriesModel.getViewRoot(), node) ? this._rootToNode({node: node}) : this._zoomToNode({node: node}); } } }, /** * @override */ remove: function () { this._clearController(); this._containerGroup && this._containerGroup.removeAll(); this._storage = createStorage(); this._state = 'ready'; this._breadcrumb && this._breadcrumb.remove(); }, dispose: function () { this._clearController(); }, /** * @private */ _zoomToNode: function (targetInfo) { this.api.dispatchAction({ type: 'treemapZoomToNode', from: this.uid, seriesId: this.seriesModel.id, targetNode: targetInfo.node }); }, /** * @private */ _rootToNode: function (targetInfo) { this.api.dispatchAction({ type: 'treemapRootToNode', from: this.uid, seriesId: this.seriesModel.id, targetNode: targetInfo.node }); }, /** * @public * @param {number} x Global coord x. * @param {number} y Global coord y. * @return {Object} info If not found, return undefined; * @return {number} info.node Target node. * @return {number} info.offsetX x refer to target node. * @return {number} info.offsetY y refer to target node. */ findTarget: function (x, y) { var targetInfo; var viewRoot = this.seriesModel.getViewRoot(); viewRoot.eachNode({attr: 'viewChildren', order: 'preorder'}, function (node) { var bgEl = this._storage.background[node.getRawIndex()]; // If invisible, there might be no element. if (bgEl) { var point = bgEl.transformCoordToLocal(x, y); var shape = bgEl.shape; // For performance consideration, dont use 'getBoundingRect'. if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height ) { targetInfo = {node: node, offsetX: point[0], offsetY: point[1]}; } else { return false; // Suppress visit subtree. } } }, this); return targetInfo; } }); /** * @inner */ function createStorage() { return {nodeGroup: [], background: [], content: []}; } /** * @inner * @return Return undefined means do not travel further. */ function renderNode( seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth ) { // Whether under viewRoot. if (!thisNode) { // Deleting nodes will be performed finally. This method just find // element from old storage, or create new element, set them to new // storage, and set styles. return; } // ------------------------------------------------------------------- // Start of closure variables available in "Procedures in renderNode". var thisLayout = thisNode.getLayout(); if (!thisLayout || !thisLayout.isInView) { return; } var thisWidth = thisLayout.width; var thisHeight = thisLayout.height; var borderWidth = thisLayout.borderWidth; var thisInvisible = thisLayout.invisible; var thisRawIndex = thisNode.getRawIndex(); var oldRawIndex = oldNode && oldNode.getRawIndex(); var thisViewChildren = thisNode.viewChildren; var upperHeight = thisLayout.upperHeight; var isParent = thisViewChildren && thisViewChildren.length; var itemStyleNormalModel = thisNode.getModel('itemStyle'); var itemStyleEmphasisModel = thisNode.getModel('emphasis.itemStyle'); // End of closure ariables available in "Procedures in renderNode". // ----------------------------------------------------------------- // Node group var group = giveGraphic('nodeGroup', Group$2); if (!group) { return; } parentGroup.add(group); // x,y are not set when el is above view root. group.attr('position', [thisLayout.x || 0, thisLayout.y || 0]); group.__tmNodeWidth = thisWidth; group.__tmNodeHeight = thisHeight; if (thisLayout.isAboveViewRoot) { return group; } // Background var bg = giveGraphic('background', Rect$1, depth, Z_BG); bg && renderBackground(group, bg, isParent && thisLayout.upperHeight); // No children, render content. if (!isParent) { var content = giveGraphic('content', Rect$1, depth, Z_CONTENT); content && renderContent(group, content); } return group; // ---------------------------- // | Procedures in renderNode | // ---------------------------- function renderBackground(group, bg, useUpperLabel) { // For tooltip. bg.dataIndex = thisNode.dataIndex; bg.seriesIndex = seriesModel.seriesIndex; bg.setShape({x: 0, y: 0, width: thisWidth, height: thisHeight}); var visualBorderColor = thisNode.getVisual('borderColor', true); var emphasisBorderColor = itemStyleEmphasisModel.get('borderColor'); updateStyle(bg, function () { var normalStyle = getItemStyleNormal(itemStyleNormalModel); normalStyle.fill = visualBorderColor; var emphasisStyle = getItemStyleEmphasis(itemStyleEmphasisModel); emphasisStyle.fill = emphasisBorderColor; if (useUpperLabel) { var upperLabelWidth = thisWidth - 2 * borderWidth; prepareText( normalStyle, emphasisStyle, visualBorderColor, upperLabelWidth, upperHeight, {x: borderWidth, y: 0, width: upperLabelWidth, height: upperHeight} ); } // For old bg. else { normalStyle.text = emphasisStyle.text = null; } bg.setStyle(normalStyle); setHoverStyle(bg, emphasisStyle); }); group.add(bg); } function renderContent(group, content) { // For tooltip. content.dataIndex = thisNode.dataIndex; content.seriesIndex = seriesModel.seriesIndex; var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0); var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0); content.culling = true; content.setShape({ x: borderWidth, y: borderWidth, width: contentWidth, height: contentHeight }); var visualColor = thisNode.getVisual('color', true); updateStyle(content, function () { var normalStyle = getItemStyleNormal(itemStyleNormalModel); normalStyle.fill = visualColor; var emphasisStyle = getItemStyleEmphasis(itemStyleEmphasisModel); prepareText(normalStyle, emphasisStyle, visualColor, contentWidth, contentHeight); content.setStyle(normalStyle); setHoverStyle(content, emphasisStyle); }); group.add(content); } function updateStyle(element, cb) { if (!thisInvisible) { // If invisible, do not set visual, otherwise the element will // change immediately before animation. We think it is OK to // remain its origin color when moving out of the view window. cb(); if (!element.__tmWillVisible) { element.invisible = false; } } else { // Delay invisible setting utill animation finished, // avoid element vanish suddenly before animation. !element.invisible && willInvisibleEls.push(element); } } function prepareText(normalStyle, emphasisStyle, visualColor, width, height, upperLabelRect) { var nodeModel = thisNode.getModel(); var text = retrieve( seriesModel.getFormattedLabel( thisNode.dataIndex, 'normal', null, null, upperLabelRect ? 'upperLabel' : 'label' ), nodeModel.get('name') ); if (!upperLabelRect && thisLayout.isLeafRoot) { var iconChar = seriesModel.get('drillDownIcon', true); text = iconChar ? iconChar + ' ' + text : text; } var normalLabelModel = nodeModel.getModel( upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL ); var emphasisLabelModel = nodeModel.getModel( upperLabelRect ? PATH_UPPERLABEL_EMPHASIS : PATH_LABEL_EMPHASIS ); var isShow = normalLabelModel.getShallow('show'); setLabelStyle( normalStyle, emphasisStyle, normalLabelModel, emphasisLabelModel, { defaultText: isShow ? text : null, autoColor: visualColor, isRectText: true } ); upperLabelRect && (normalStyle.textRect = clone(upperLabelRect)); normalStyle.truncate = (isShow && normalLabelModel.get('ellipsis')) ? { outerWidth: width, outerHeight: height, minChar: 2 } : null; } function giveGraphic(storageName, Ctor, depth, z) { var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex]; var lasts = lastsForAnimation[storageName]; if (element) { // Remove from oldStorage oldStorage[storageName][oldRawIndex] = null; prepareAnimationWhenHasOld(lasts, element, storageName); } // If invisible and no old element, do not create new element (for optimizing). else if (!thisInvisible) { element = new Ctor({z: calculateZ(depth, z)}); element.__tmDepth = depth; element.__tmStorageName = storageName; prepareAnimationWhenNoOld(lasts, element, storageName); } // Set to thisStorage return (thisStorage[storageName][thisRawIndex] = element); } function prepareAnimationWhenHasOld(lasts, element, storageName) { var lastCfg = lasts[thisRawIndex] = {}; lastCfg.old = storageName === 'nodeGroup' ? element.position.slice() : extend({}, element.shape); } // If a element is new, we need to find the animation start point carefully, // otherwise it will looks strange when 'zoomToNode'. function prepareAnimationWhenNoOld(lasts, element, storageName) { var lastCfg = lasts[thisRawIndex] = {}; var parentNode = thisNode.parentNode; if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) { var parentOldX = 0; var parentOldY = 0; // New nodes appear from right-bottom corner in 'zoomToNode' animation. // For convenience, get old bounding rect from background. var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()]; if (!reRoot && parentOldBg && parentOldBg.old) { parentOldX = parentOldBg.old.width; parentOldY = parentOldBg.old.height; } // When no parent old shape found, its parent is new too, // so we can just use {x:0, y:0}. lastCfg.old = storageName === 'nodeGroup' ? [0, parentOldY] : {x: parentOldX, y: parentOldY, width: 0, height: 0}; } // Fade in, user can be aware that these nodes are new. lastCfg.fadein = storageName !== 'nodeGroup'; } } // We can not set all backgroud with the same z, Because the behaviour of // drill down and roll up differ background creation sequence from tree // hierarchy sequence, which cause that lowser background element overlap // upper ones. So we calculate z based on depth. // Moreover, we try to shrink down z interval to [0, 1] to avoid that // treemap with large z overlaps other components. function calculateZ(depth, zInLevel) { var zb = depth * Z_BASE + zInLevel; return (zb - 1) / zb; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Treemap action */ var noop$1 = function () {}; var actionTypes = [ 'treemapZoomToNode', 'treemapRender', 'treemapMove' ]; for (var i$2 = 0; i$2 < actionTypes.length; i$2++) { registerAction({type: actionTypes[i$2], update: 'updateView'}, noop$1); } registerAction( {type: 'treemapRootToNode', update: 'updateView'}, function (payload, ecModel) { ecModel.eachComponent( {mainType: 'series', subType: 'treemap', query: payload}, handleRootToNode ); function handleRootToNode(model, index) { var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = retrieveTargetInfo(payload, types, model); if (targetInfo) { var originViewRoot = model.getViewRoot(); if (originViewRoot) { payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown'; } model.resetViewRoot(targetInfo.node); } } } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$9 = each$1; var isObject$5 = isObject$1; var CATEGORY_DEFAULT_VISUAL_INDEX = -1; /** * @param {Object} option * @param {string} [option.type] See visualHandlers. * @param {string} [option.mappingMethod] 'linear' or 'piecewise' or 'category' or 'fixed' * @param {Array.=} [option.dataExtent] [minExtent, maxExtent], * required when mappingMethod is 'linear' * @param {Array.=} [option.pieceList] [ * {value: someValue}, * {interval: [min1, max1], visual: {...}}, * {interval: [min2, max2]} * ], * required when mappingMethod is 'piecewise'. * Visual for only each piece can be specified. * @param {Array.=} [option.categories] ['cate1', 'cate2'] * required when mappingMethod is 'category'. * If no option.categories, categories is set * as [0, 1, 2, ...]. * @param {boolean} [option.loop=false] Whether loop mapping when mappingMethod is 'category'. * @param {(Array|Object|*)} [option.visual] Visual data. * when mappingMethod is 'category', * visual data can be array or object * (like: {cate1: '#222', none: '#fff'}) * or primary types (which represents * defualt category visual), otherwise visual * can be array or primary (which will be * normalized to array). * */ var VisualMapping = function (option) { var mappingMethod = option.mappingMethod; var visualType = option.type; /** * @readOnly * @type {Object} */ var thisOption = this.option = clone(option); /** * @readOnly * @type {string} */ this.type = visualType; /** * @readOnly * @type {string} */ this.mappingMethod = mappingMethod; /** * @private * @type {Function} */ this._normalizeData = normalizers[mappingMethod]; var visualHandler = visualHandlers[visualType]; /** * @public * @type {Function} */ this.applyVisual = visualHandler.applyVisual; /** * @public * @type {Function} */ this.getColorMapper = visualHandler.getColorMapper; /** * @private * @type {Function} */ this._doMap = visualHandler._doMap[mappingMethod]; if (mappingMethod === 'piecewise') { normalizeVisualRange(thisOption); preprocessForPiecewise(thisOption); } else if (mappingMethod === 'category') { thisOption.categories ? preprocessForSpecifiedCategory(thisOption) // categories is ordinal when thisOption.categories not specified, // which need no more preprocess except normalize visual. : normalizeVisualRange(thisOption, true); } else { // mappingMethod === 'linear' or 'fixed' assert$1(mappingMethod !== 'linear' || thisOption.dataExtent); normalizeVisualRange(thisOption); } }; VisualMapping.prototype = { constructor: VisualMapping, mapValueToVisual: function (value) { var normalized = this._normalizeData(value); return this._doMap(normalized, value); }, getNormalizer: function () { return bind(this._normalizeData, this); } }; var visualHandlers = VisualMapping.visualHandlers = { color: { applyVisual: makeApplyVisual('color'), /** * Create a mapper function * @return {Function} */ getColorMapper: function () { var thisOption = this.option; return bind( thisOption.mappingMethod === 'category' ? function (value, isNormalized) { !isNormalized && (value = this._normalizeData(value)); return doMapCategory.call(this, value); } : function (value, isNormalized, out) { // If output rgb array // which will be much faster and useful in pixel manipulation var returnRGBArray = !!out; !isNormalized && (value = this._normalizeData(value)); out = fastLerp(value, thisOption.parsedVisual, out); return returnRGBArray ? out : stringify(out, 'rgba'); }, this ); }, _doMap: { linear: function (normalized) { return stringify( fastLerp(normalized, this.option.parsedVisual), 'rgba' ); }, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = stringify( fastLerp(normalized, this.option.parsedVisual), 'rgba' ); } return result; }, fixed: doMapFixed } }, colorHue: makePartialColorVisualHandler(function (color, value) { return modifyHSL(color, value); }), colorSaturation: makePartialColorVisualHandler(function (color, value) { return modifyHSL(color, null, value); }), colorLightness: makePartialColorVisualHandler(function (color, value) { return modifyHSL(color, null, null, value); }), colorAlpha: makePartialColorVisualHandler(function (color, value) { return modifyAlpha(color, value); }), opacity: { applyVisual: makeApplyVisual('opacity'), _doMap: makeDoMap([0, 1]) }, liftZ: { applyVisual: makeApplyVisual('liftZ'), _doMap: { linear: doMapFixed, category: doMapFixed, piecewise: doMapFixed, fixed: doMapFixed } }, symbol: { applyVisual: function (value, getter, setter) { var symbolCfg = this.mapValueToVisual(value); if (isString(symbolCfg)) { setter('symbol', symbolCfg); } else if (isObject$5(symbolCfg)) { for (var name in symbolCfg) { if (symbolCfg.hasOwnProperty(name)) { setter(name, symbolCfg[name]); } } } }, _doMap: { linear: doMapToArray, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = doMapToArray.call(this, normalized); } return result; }, fixed: doMapFixed } }, symbolSize: { applyVisual: makeApplyVisual('symbolSize'), _doMap: makeDoMap([0, 1]) } }; function preprocessForPiecewise(thisOption) { var pieceList = thisOption.pieceList; thisOption.hasSpecialVisual = false; each$1(pieceList, function (piece, index) { piece.originIndex = index; // piece.visual is "result visual value" but not // a visual range, so it does not need to be normalized. if (piece.visual != null) { thisOption.hasSpecialVisual = true; } }); } function preprocessForSpecifiedCategory(thisOption) { // Hash categories. var categories = thisOption.categories; var visual = thisOption.visual; var categoryMap = thisOption.categoryMap = {}; each$9(categories, function (cate, index) { categoryMap[cate] = index; }); // Process visual map input. if (!isArray(visual)) { var visualArr = []; if (isObject$1(visual)) { each$9(visual, function (v, cate) { var index = categoryMap[cate]; visualArr[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v; }); } else { // Is primary type, represents default visual. visualArr[CATEGORY_DEFAULT_VISUAL_INDEX] = visual; } visual = setVisualToOption(thisOption, visualArr); } // Remove categories that has no visual, // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX. for (var i = categories.length - 1; i >= 0; i--) { if (visual[i] == null) { delete categoryMap[categories[i]]; categories.pop(); } } } function normalizeVisualRange(thisOption, isCategory) { var visual = thisOption.visual; var visualArr = []; if (isObject$1(visual)) { each$9(visual, function (v) { visualArr.push(v); }); } else if (visual != null) { visualArr.push(visual); } var doNotNeedPair = {color: 1, symbol: 1}; if (!isCategory && visualArr.length === 1 && !doNotNeedPair.hasOwnProperty(thisOption.type) ) { // Do not care visualArr.length === 0, which is illegal. visualArr[1] = visualArr[0]; } setVisualToOption(thisOption, visualArr); } function makePartialColorVisualHandler(applyValue) { return { applyVisual: function (value, getter, setter) { value = this.mapValueToVisual(value); // Must not be array value setter('color', applyValue(getter('color'), value)); }, _doMap: makeDoMap([0, 1]) }; } function doMapToArray(normalized) { var visual = this.option.visual; return visual[ Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true)) ] || {}; } function makeApplyVisual(visualType) { return function (value, getter, setter) { setter(visualType, this.mapValueToVisual(value)); }; } function doMapCategory(normalized) { var visual = this.option.visual; return visual[ (this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX) ? normalized % visual.length : normalized ]; } function doMapFixed() { return this.option.visual[0]; } function makeDoMap(sourceExtent) { return { linear: function (normalized) { return linearMap(normalized, sourceExtent, this.option.visual, true); }, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = linearMap(normalized, sourceExtent, this.option.visual, true); } return result; }, fixed: doMapFixed }; } function getSpecifiedVisual(value) { var thisOption = this.option; var pieceList = thisOption.pieceList; if (thisOption.hasSpecialVisual) { var pieceIndex = VisualMapping.findPieceIndex(value, pieceList); var piece = pieceList[pieceIndex]; if (piece && piece.visual) { return piece.visual[this.type]; } } } function setVisualToOption(thisOption, visualArr) { thisOption.visual = visualArr; if (thisOption.type === 'color') { thisOption.parsedVisual = map(visualArr, function (item) { return parse(item); }); } return visualArr; } /** * Normalizers by mapping methods. */ var normalizers = { linear: function (value) { return linearMap(value, this.option.dataExtent, [0, 1], true); }, piecewise: function (value) { var pieceList = this.option.pieceList; var pieceIndex = VisualMapping.findPieceIndex(value, pieceList, true); if (pieceIndex != null) { return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true); } }, category: function (value) { var index = this.option.categories ? this.option.categoryMap[value] : value; // ordinal return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index; }, fixed: noop }; /** * List available visual types. * * @public * @return {Array.} */ VisualMapping.listVisualTypes = function () { var visualTypes = []; each$1(visualHandlers, function (handler, key) { visualTypes.push(key); }); return visualTypes; }; /** * @public */ VisualMapping.addVisualHandler = function (name, handler) { visualHandlers[name] = handler; }; /** * @public */ VisualMapping.isValidType = function (visualType) { return visualHandlers.hasOwnProperty(visualType); }; /** * Convinent method. * Visual can be Object or Array or primary type. * * @public */ VisualMapping.eachVisual = function (visual, callback, context) { if (isObject$1(visual)) { each$1(visual, callback, context); } else { callback.call(context, visual); } }; VisualMapping.mapVisual = function (visual, callback, context) { var isPrimary; var newVisual = isArray(visual) ? [] : isObject$1(visual) ? {} : (isPrimary = true, null); VisualMapping.eachVisual(visual, function (v, key) { var newVal = callback.call(context, v, key); isPrimary ? (newVisual = newVal) : (newVisual[key] = newVal); }); return newVisual; }; /** * @public * @param {Object} obj * @return {Object} new object containers visual values. * If no visuals, return null. */ VisualMapping.retrieveVisuals = function (obj) { var ret = {}; var hasVisual; obj && each$9(visualHandlers, function (h, visualType) { if (obj.hasOwnProperty(visualType)) { ret[visualType] = obj[visualType]; hasVisual = true; } }); return hasVisual ? ret : null; }; /** * Give order to visual types, considering colorSaturation, colorAlpha depends on color. * * @public * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...} * IF Array, like: ['color', 'symbol', 'colorSaturation'] * @return {Array.} Sorted visual types. */ VisualMapping.prepareVisualTypes = function (visualTypes) { if (isObject$5(visualTypes)) { var types = []; each$9(visualTypes, function (item, type) { types.push(type); }); visualTypes = types; } else if (isArray(visualTypes)) { visualTypes = visualTypes.slice(); } else { return []; } visualTypes.sort(function (type1, type2) { // color should be front of colorSaturation, colorAlpha, ... // symbol and symbolSize do not matter. return (type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0) ? 1 : -1; }); return visualTypes; }; /** * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'. * Other visuals are only depends on themself. * * @public * @param {string} visualType1 * @param {string} visualType2 * @return {boolean} */ VisualMapping.dependsOn = function (visualType1, visualType2) { return visualType2 === 'color' ? !!(visualType1 && visualType1.indexOf(visualType2) === 0) : visualType1 === visualType2; }; /** * @param {number} value * @param {Array.} pieceList [{value: ..., interval: [min, max]}, ...] * Always from small to big. * @param {boolean} [findClosestWhenOutside=false] * @return {number} index */ VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) { var possibleI; var abs = Infinity; // value has the higher priority. for (var i = 0, len = pieceList.length; i < len; i++) { var pieceValue = pieceList[i].value; if (pieceValue != null) { if (pieceValue === value // FIXME // It is supposed to compare value according to value type of dimension, // but currently value type can exactly be string or number. // Compromise for numeric-like string (like '12'), especially // in the case that visualMap.categories is ['22', '33']. || (typeof pieceValue === 'string' && pieceValue === value + '') ) { return i; } findClosestWhenOutside && updatePossible(pieceValue, i); } } for (var i = 0, len = pieceList.length; i < len; i++) { var piece = pieceList[i]; var interval = piece.interval; var close = piece.close; if (interval) { if (interval[0] === -Infinity) { if (littleThan(close[1], value, interval[1])) { return i; } } else if (interval[1] === Infinity) { if (littleThan(close[0], interval[0], value)) { return i; } } else if ( littleThan(close[0], interval[0], value) && littleThan(close[1], value, interval[1]) ) { return i; } findClosestWhenOutside && updatePossible(interval[0], i); findClosestWhenOutside && updatePossible(interval[1], i); } } if (findClosestWhenOutside) { return value === Infinity ? pieceList.length - 1 : value === -Infinity ? 0 : possibleI; } function updatePossible(val, index) { var newAbs = Math.abs(val - value); if (newAbs < abs) { abs = newAbs; possibleI = index; } } }; function littleThan(close, a, b) { return close ? a <= b : a < b; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var isArray$2 = isArray; var ITEM_STYLE_NORMAL = 'itemStyle'; var treemapVisual = { seriesType: 'treemap', reset: function (seriesModel, ecModel, api, payload) { var tree = seriesModel.getData().tree; var root = tree.root; var seriesItemStyleModel = seriesModel.getModel(ITEM_STYLE_NORMAL); if (root.isRemoved()) { return; } var levelItemStyles = map(tree.levelModels, function (levelModel) { return levelModel ? levelModel.get(ITEM_STYLE_NORMAL) : null; }); travelTree( root, // Visual should calculate from tree root but not view root. {}, levelItemStyles, seriesItemStyleModel, seriesModel.getViewRoot().getAncestors(), seriesModel ); } }; function travelTree( node, designatedVisual, levelItemStyles, seriesItemStyleModel, viewRootAncestors, seriesModel ) { var nodeModel = node.getModel(); var nodeLayout = node.getLayout(); // Optimize if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) { return; } var nodeItemStyleModel = node.getModel(ITEM_STYLE_NORMAL); var levelItemStyle = levelItemStyles[node.depth]; var visuals = buildVisuals( nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel ); // calculate border color var borderColor = nodeItemStyleModel.get('borderColor'); var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation'); var thisNodeColor; if (borderColorSaturation != null) { // For performance, do not always execute 'calculateColor'. thisNodeColor = calculateColor(visuals, node); borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor); } node.setVisual('borderColor', borderColor); var viewChildren = node.viewChildren; if (!viewChildren || !viewChildren.length) { thisNodeColor = calculateColor(visuals, node); // Apply visual to this node. node.setVisual('color', thisNodeColor); } else { var mapping = buildVisualMapping( node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren ); // Designate visual to children. each$1(viewChildren, function (child, index) { // If higher than viewRoot, only ancestors of viewRoot is needed to visit. if (child.depth >= viewRootAncestors.length || child === viewRootAncestors[child.depth] ) { var childVisual = mapVisual$1( nodeModel, visuals, child, index, mapping, seriesModel ); travelTree( child, childVisual, levelItemStyles, seriesItemStyleModel, viewRootAncestors, seriesModel ); } }); } } function buildVisuals( nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel ) { var visuals = extend({}, designatedVisual); each$1(['color', 'colorAlpha', 'colorSaturation'], function (visualName) { // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel var val = nodeItemStyleModel.get(visualName, true); // Ignore parent val == null && levelItemStyle && (val = levelItemStyle[visualName]); val == null && (val = designatedVisual[visualName]); val == null && (val = seriesItemStyleModel.get(visualName)); val != null && (visuals[visualName] = val); }); return visuals; } function calculateColor(visuals) { var color = getValueVisualDefine(visuals, 'color'); if (color) { var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha'); var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation'); if (colorSaturation) { color = modifyHSL(color, null, null, colorSaturation); } if (colorAlpha) { color = modifyAlpha(color, colorAlpha); } return color; } } function calculateBorderColor(borderColorSaturation, thisNodeColor) { return thisNodeColor != null ? modifyHSL(thisNodeColor, null, null, borderColorSaturation) : null; } function getValueVisualDefine(visuals, name) { var value = visuals[name]; if (value != null && value !== 'none') { return value; } } function buildVisualMapping( node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren ) { if (!viewChildren || !viewChildren.length) { return; } var rangeVisual = getRangeVisual(nodeModel, 'color') || ( visuals.color != null && visuals.color !== 'none' && ( getRangeVisual(nodeModel, 'colorAlpha') || getRangeVisual(nodeModel, 'colorSaturation') ) ); if (!rangeVisual) { return; } var visualMin = nodeModel.get('visualMin'); var visualMax = nodeModel.get('visualMax'); var dataExtent = nodeLayout.dataExtent.slice(); visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin); visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax); var colorMappingBy = nodeModel.get('colorMappingBy'); var opt = { type: rangeVisual.name, dataExtent: dataExtent, visual: rangeVisual.range }; if (opt.type === 'color' && (colorMappingBy === 'index' || colorMappingBy === 'id') ) { opt.mappingMethod = 'category'; opt.loop = true; // categories is ordinal, so do not set opt.categories. } else { opt.mappingMethod = 'linear'; } var mapping = new VisualMapping(opt); mapping.__drColorMappingBy = colorMappingBy; return mapping; } // Notice: If we dont have the attribute 'colorRange', but only use // attribute 'color' to represent both concepts of 'colorRange' and 'color', // (It means 'colorRange' when 'color' is Array, means 'color' when not array), // this problem will be encountered: // If a level-1 node dont have children, and its siblings has children, // and colorRange is set on level-1, then the node can not be colored. // So we separate 'colorRange' and 'color' to different attributes. function getRangeVisual(nodeModel, name) { // 'colorRange', 'colorARange', 'colorSRange'. // If not exsits on this node, fetch from levels and series. var range = nodeModel.get(name); return (isArray$2(range) && range.length) ? {name: name, range: range} : null; } function mapVisual$1(nodeModel, visuals, child, index, mapping, seriesModel) { var childVisuals = extend({}, visuals); if (mapping) { var mappingType = mapping.type; var colorMappingBy = mappingType === 'color' && mapping.__drColorMappingBy; var value = colorMappingBy === 'index' ? index : colorMappingBy === 'id' ? seriesModel.mapIdToIndex(child.getId()) : child.getValue(nodeModel.get('visualDimension')); childVisuals[mappingType] = mapping.mapValueToVisual(value); } return childVisuals; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embeded for some of the code in this file: * The treemap layout implementation was originally copied from * "d3.js" with some modifications made for this project. * (See more details in the comment of the method "squarify" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var mathMax$4 = Math.max; var mathMin$4 = Math.min; var retrieveValue = retrieve; var each$10 = each$1; var PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth']; var PATH_GAP_WIDTH = ['itemStyle', 'gapWidth']; var PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show']; var PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height']; /** * @public */ var treemapLayout = { seriesType: 'treemap', reset: function (seriesModel, ecModel, api, payload) { // Layout result in each node: // {x, y, width, height, area, borderWidth} var ecWidth = api.getWidth(); var ecHeight = api.getHeight(); var seriesOption = seriesModel.option; var layoutInfo = getLayoutRect( seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() } ); var size = seriesOption.size || []; // Compatible with ec2. var containerWidth = parsePercent$1( retrieveValue(layoutInfo.width, size[0]), ecWidth ); var containerHeight = parsePercent$1( retrieveValue(layoutInfo.height, size[1]), ecHeight ); // Fetch payload info. var payloadType = payload && payload.type; var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = retrieveTargetInfo(payload, types, seriesModel); var rootRect = (payloadType === 'treemapRender' || payloadType === 'treemapMove') ? payload.rootRect : null; var viewRoot = seriesModel.getViewRoot(); var viewAbovePath = getPathToRoot(viewRoot); if (payloadType !== 'treemapMove') { var rootSize = payloadType === 'treemapZoomToNode' ? estimateRootSize( seriesModel, targetInfo, viewRoot, containerWidth, containerHeight ) : rootRect ? [rootRect.width, rootRect.height] : [containerWidth, containerHeight]; var sort = seriesOption.sort; if (sort && sort !== 'asc' && sort !== 'desc') { sort = 'desc'; } var options = { squareRatio: seriesOption.squareRatio, sort: sort, leafDepth: seriesOption.leafDepth }; // layout should be cleared because using updateView but not update. viewRoot.hostTree.clearLayouts(); // TODO // optimize: if out of view clip, do not layout. // But take care that if do not render node out of view clip, // how to calculate start po var viewRootLayout = { x: 0, y: 0, width: rootSize[0], height: rootSize[1], area: rootSize[0] * rootSize[1] }; viewRoot.setLayout(viewRootLayout); squarify(viewRoot, options, false, 0); // Supplement layout. var viewRootLayout = viewRoot.getLayout(); each$10(viewAbovePath, function (node, index) { var childValue = (viewAbovePath[index + 1] || viewRoot).getValue(); node.setLayout(extend( {dataExtent: [childValue, childValue], borderWidth: 0, upperHeight: 0}, viewRootLayout )); }); } var treeRoot = seriesModel.getData().tree.root; treeRoot.setLayout( calculateRootPosition(layoutInfo, rootRect, targetInfo), true ); seriesModel.setLayoutInfo(layoutInfo); // FIXME // 现在没有clip功能,暂时取ec高宽。 prunning( treeRoot, // Transform to base element coordinate system. new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight), viewAbovePath, viewRoot, 0 ); } }; /** * Layout treemap with squarify algorithm. * The original presentation of this algorithm * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk * . * The implementation of this algorithm was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * @protected * @param {module:echarts/data/Tree~TreeNode} node * @param {Object} options * @param {string} options.sort 'asc' or 'desc' * @param {number} options.squareRatio * @param {boolean} hideChildren * @param {number} depth */ function squarify(node, options, hideChildren, depth) { var width; var height; if (node.isRemoved()) { return; } var thisLayout = node.getLayout(); width = thisLayout.width; height = thisLayout.height; // Considering border and gap var nodeModel = node.getModel(); var borderWidth = nodeModel.get(PATH_BORDER_WIDTH); var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2; var upperLabelHeight = getUpperLabelHeight(nodeModel); var upperHeight = Math.max(borderWidth, upperLabelHeight); var layoutOffset = borderWidth - halfGapWidth; var layoutOffsetUpper = upperHeight - halfGapWidth; var nodeModel = node.getModel(); node.setLayout({ borderWidth: borderWidth, upperHeight: upperHeight, upperLabelHeight: upperLabelHeight }, true); width = mathMax$4(width - 2 * layoutOffset, 0); height = mathMax$4(height - layoutOffset - layoutOffsetUpper, 0); var totalArea = width * height; var viewChildren = initChildren( node, nodeModel, totalArea, options, hideChildren, depth ); if (!viewChildren.length) { return; } var rect = {x: layoutOffset, y: layoutOffsetUpper, width: width, height: height}; var rowFixedLength = mathMin$4(width, height); var best = Infinity; // the best row score so far var row = []; row.area = 0; for (var i = 0, len = viewChildren.length; i < len;) { var child = viewChildren[i]; row.push(child); row.area += child.getLayout().area; var score = worst(row, rowFixedLength, options.squareRatio); // continue with this orientation if (score <= best) { i++; best = score; } // abort, and try a different orientation else { row.area -= row.pop().getLayout().area; position(row, rowFixedLength, rect, halfGapWidth, false); rowFixedLength = mathMin$4(rect.width, rect.height); row.length = row.area = 0; best = Infinity; } } if (row.length) { position(row, rowFixedLength, rect, halfGapWidth, true); } if (!hideChildren) { var childrenVisibleMin = nodeModel.get('childrenVisibleMin'); if (childrenVisibleMin != null && totalArea < childrenVisibleMin) { hideChildren = true; } } for (var i = 0, len = viewChildren.length; i < len; i++) { squarify(viewChildren[i], options, hideChildren, depth + 1); } } /** * Set area to each child, and calculate data extent for visual coding. */ function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) { var viewChildren = node.children || []; var orderBy = options.sort; orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null); var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority. if (hideChildren && !overLeafDepth) { return (node.viewChildren = []); } // Sort children, order by desc. viewChildren = filter(viewChildren, function (child) { return !child.isRemoved(); }); sort$1(viewChildren, orderBy); var info = statistic(nodeModel, viewChildren, orderBy); if (info.sum === 0) { return (node.viewChildren = []); } info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren); if (info.sum === 0) { return (node.viewChildren = []); } // Set area to each child. for (var i = 0, len = viewChildren.length; i < len; i++) { var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout. viewChildren[i].setLayout({area: area}); } if (overLeafDepth) { viewChildren.length && node.setLayout({isLeafRoot: true}, true); viewChildren.length = 0; } node.viewChildren = viewChildren; node.setLayout({dataExtent: info.dataExtent}, true); return viewChildren; } /** * Consider 'visibleMin'. Modify viewChildren and get new sum. */ function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) { // visibleMin is not supported yet when no option.sort. if (!orderBy) { return sum; } var visibleMin = nodeModel.get('visibleMin'); var len = orderedChildren.length; var deletePoint = len; // Always travel from little value to big value. for (var i = len - 1; i >= 0; i--) { var value = orderedChildren[ orderBy === 'asc' ? len - i - 1 : i ].getValue(); if (value / sum * totalArea < visibleMin) { deletePoint = i; sum -= value; } } orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint); return sum; } /** * Sort */ function sort$1(viewChildren, orderBy) { if (orderBy) { viewChildren.sort(function (a, b) { var diff = orderBy === 'asc' ? a.getValue() - b.getValue() : b.getValue() - a.getValue(); return diff === 0 ? (orderBy === 'asc' ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex ) : diff; }); } return viewChildren; } /** * Statistic */ function statistic(nodeModel, children, orderBy) { // Calculate sum. var sum = 0; for (var i = 0, len = children.length; i < len; i++) { sum += children[i].getValue(); } // Statistic data extent for latter visual coding. // Notice: data extent should be calculate based on raw children // but not filtered view children, otherwise visual mapping will not // be stable when zoom (where children is filtered by visibleMin). var dimension = nodeModel.get('visualDimension'); var dataExtent; // The same as area dimension. if (!children || !children.length) { dataExtent = [NaN, NaN]; } else if (dimension === 'value' && orderBy) { dataExtent = [ children[children.length - 1].getValue(), children[0].getValue() ]; orderBy === 'asc' && dataExtent.reverse(); } // Other dimension. else { var dataExtent = [Infinity, -Infinity]; each$10(children, function (child) { var value = child.getValue(dimension); value < dataExtent[0] && (dataExtent[0] = value); value > dataExtent[1] && (dataExtent[1] = value); }); } return {sum: sum, dataExtent: dataExtent}; } /** * Computes the score for the specified row, * as the worst aspect ratio. */ function worst(row, rowFixedLength, ratio) { var areaMax = 0; var areaMin = Infinity; for (var i = 0, area, len = row.length; i < len; i++) { area = row[i].getLayout().area; if (area) { area < areaMin && (areaMin = area); area > areaMax && (areaMax = area); } } var squareArea = row.area * row.area; var f = rowFixedLength * rowFixedLength * ratio; return squareArea ? mathMax$4( (f * areaMax) / squareArea, squareArea / (f * areaMin) ) : Infinity; } /** * Positions the specified row of nodes. Modifies `rect`. */ function position(row, rowFixedLength, rect, halfGapWidth, flush) { // When rowFixedLength === rect.width, // it is horizontal subdivision, // rowFixedLength is the width of the subdivision, // rowOtherLength is the height of the subdivision, // and nodes will be positioned from left to right. // wh[idx0WhenH] means: when horizontal, // wh[idx0WhenH] => wh[0] => 'width'. // xy[idx1WhenH] => xy[1] => 'y'. var idx0WhenH = rowFixedLength === rect.width ? 0 : 1; var idx1WhenH = 1 - idx0WhenH; var xy = ['x', 'y']; var wh = ['width', 'height']; var last = rect[xy[idx0WhenH]]; var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0; if (flush || rowOtherLength > rect[wh[idx1WhenH]]) { rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow } for (var i = 0, rowLen = row.length; i < rowLen; i++) { var node = row[i]; var nodeLayout = {}; var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0; var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax$4(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width. var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last; var modWH = (i === rowLen - 1 || remain < step) ? remain : step; var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax$4(modWH - 2 * halfGapWidth, 0); nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin$4(halfGapWidth, wh1 / 2); nodeLayout[xy[idx0WhenH]] = last + mathMin$4(halfGapWidth, wh0 / 2); last += modWH; node.setLayout(nodeLayout, true); } rect[xy[idx1WhenH]] += rowOtherLength; rect[wh[idx1WhenH]] -= rowOtherLength; } // Return [containerWidth, containerHeight] as defualt. function estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) { // If targetInfo.node exists, we zoom to the node, // so estimate whold width and heigth by target node. var currNode = (targetInfo || {}).node; var defaultSize = [containerWidth, containerHeight]; if (!currNode || currNode === viewRoot) { return defaultSize; } var parent; var viewArea = containerWidth * containerHeight; var area = viewArea * seriesModel.option.zoomToNodeRatio; while (parent = currNode.parentNode) { // jshint ignore:line var sum = 0; var siblings = parent.children; for (var i = 0, len = siblings.length; i < len; i++) { sum += siblings[i].getValue(); } var currNodeValue = currNode.getValue(); if (currNodeValue === 0) { return defaultSize; } area *= sum / currNodeValue; // Considering border, suppose aspect ratio is 1. var parentModel = parent.getModel(); var borderWidth = parentModel.get(PATH_BORDER_WIDTH); var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel, borderWidth)); area += 4 * borderWidth * borderWidth + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5); area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER); currNode = parent; } area < viewArea && (area = viewArea); var scale = Math.pow(area / viewArea, 0.5); return [containerWidth * scale, containerHeight * scale]; } // Root postion base on coord of containerGroup function calculateRootPosition(layoutInfo, rootRect, targetInfo) { if (rootRect) { return {x: rootRect.x, y: rootRect.y}; } var defaultPosition = {x: 0, y: 0}; if (!targetInfo) { return defaultPosition; } // If targetInfo is fetched by 'retrieveTargetInfo', // old tree and new tree are the same tree, // so the node still exists and we can visit it. var targetNode = targetInfo.node; var layout = targetNode.getLayout(); if (!layout) { return defaultPosition; } // Transform coord from local to container. var targetCenter = [layout.width / 2, layout.height / 2]; var node = targetNode; while (node) { var nodeLayout = node.getLayout(); targetCenter[0] += nodeLayout.x; targetCenter[1] += nodeLayout.y; node = node.parentNode; } return { x: layoutInfo.width / 2 - targetCenter[0], y: layoutInfo.height / 2 - targetCenter[1] }; } // Mark nodes visible for prunning when visual coding and rendering. // Prunning depends on layout and root position, so we have to do it after layout. function prunning(node, clipRect, viewAbovePath, viewRoot, depth) { var nodeLayout = node.getLayout(); var nodeInViewAbovePath = viewAbovePath[depth]; var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node; if ( (nodeInViewAbovePath && !isAboveViewRoot) || (depth === viewAbovePath.length && node !== viewRoot) ) { return; } node.setLayout({ // isInView means: viewRoot sub tree + viewAbovePath isInView: true, // invisible only means: outside view clip so that the node can not // see but still layout for animation preparation but not render. invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout), isAboveViewRoot: isAboveViewRoot }, true); // Transform to child coordinate. var childClipRect = new BoundingRect( clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height ); each$10(node.viewChildren || [], function (child) { prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1); }); } function getUpperLabelHeight(model) { return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(treemapVisual); registerLayout(treemapLayout); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // id may be function name of Object, add a prefix to avoid this problem. function generateNodeKey(id) { return '_EC_' + id; } /** * @alias module:echarts/data/Graph * @constructor * @param {boolean} directed */ var Graph = function (directed) { /** * 是否是有向图 * @type {boolean} * @private */ this._directed = directed || false; /** * @type {Array.} * @readOnly */ this.nodes = []; /** * @type {Array.} * @readOnly */ this.edges = []; /** * @type {Object.} * @private */ this._nodesMap = {}; /** * @type {Object.} * @private */ this._edgesMap = {}; /** * @type {module:echarts/data/List} * @readOnly */ this.data; /** * @type {module:echarts/data/List} * @readOnly */ this.edgeData; }; var graphProto = Graph.prototype; /** * @type {string} */ graphProto.type = 'graph'; /** * If is directed graph * @return {boolean} */ graphProto.isDirected = function () { return this._directed; }; /** * Add a new node * @param {string} id * @param {number} [dataIndex] */ graphProto.addNode = function (id, dataIndex) { id = id == null ? ('' + dataIndex) : ('' + id); var nodesMap = this._nodesMap; if (nodesMap[generateNodeKey(id)]) { if (__DEV__) { console.error('Graph nodes have duplicate name or id'); } return; } var node = new Node(id, dataIndex); node.hostGraph = this; this.nodes.push(node); nodesMap[generateNodeKey(id)] = node; return node; }; /** * Get node by data index * @param {number} dataIndex * @return {module:echarts/data/Graph~Node} */ graphProto.getNodeByIndex = function (dataIndex) { var rawIdx = this.data.getRawIndex(dataIndex); return this.nodes[rawIdx]; }; /** * Get node by id * @param {string} id * @return {module:echarts/data/Graph.Node} */ graphProto.getNodeById = function (id) { return this._nodesMap[generateNodeKey(id)]; }; /** * Add a new edge * @param {number|string|module:echarts/data/Graph.Node} n1 * @param {number|string|module:echarts/data/Graph.Node} n2 * @param {number} [dataIndex=-1] * @return {module:echarts/data/Graph.Edge} */ graphProto.addEdge = function (n1, n2, dataIndex) { var nodesMap = this._nodesMap; var edgesMap = this._edgesMap; // PNEDING if (typeof n1 === 'number') { n1 = this.nodes[n1]; } if (typeof n2 === 'number') { n2 = this.nodes[n2]; } if (!Node.isInstance(n1)) { n1 = nodesMap[generateNodeKey(n1)]; } if (!Node.isInstance(n2)) { n2 = nodesMap[generateNodeKey(n2)]; } if (!n1 || !n2) { return; } var key = n1.id + '-' + n2.id; // PENDING if (edgesMap[key]) { return; } var edge = new Edge(n1, n2, dataIndex); edge.hostGraph = this; if (this._directed) { n1.outEdges.push(edge); n2.inEdges.push(edge); } n1.edges.push(edge); if (n1 !== n2) { n2.edges.push(edge); } this.edges.push(edge); edgesMap[key] = edge; return edge; }; /** * Get edge by data index * @param {number} dataIndex * @return {module:echarts/data/Graph~Node} */ graphProto.getEdgeByIndex = function (dataIndex) { var rawIdx = this.edgeData.getRawIndex(dataIndex); return this.edges[rawIdx]; }; /** * Get edge by two linked nodes * @param {module:echarts/data/Graph.Node|string} n1 * @param {module:echarts/data/Graph.Node|string} n2 * @return {module:echarts/data/Graph.Edge} */ graphProto.getEdge = function (n1, n2) { if (Node.isInstance(n1)) { n1 = n1.id; } if (Node.isInstance(n2)) { n2 = n2.id; } var edgesMap = this._edgesMap; if (this._directed) { return edgesMap[n1 + '-' + n2]; } else { return edgesMap[n1 + '-' + n2] || edgesMap[n2 + '-' + n1]; } }; /** * Iterate all nodes * @param {Function} cb * @param {*} [context] */ graphProto.eachNode = function (cb, context) { var nodes = this.nodes; var len = nodes.length; for (var i = 0; i < len; i++) { if (nodes[i].dataIndex >= 0) { cb.call(context, nodes[i], i); } } }; /** * Iterate all edges * @param {Function} cb * @param {*} [context] */ graphProto.eachEdge = function (cb, context) { var edges = this.edges; var len = edges.length; for (var i = 0; i < len; i++) { if (edges[i].dataIndex >= 0 && edges[i].node1.dataIndex >= 0 && edges[i].node2.dataIndex >= 0 ) { cb.call(context, edges[i], i); } } }; /** * Breadth first traverse * @param {Function} cb * @param {module:echarts/data/Graph.Node} startNode * @param {string} [direction='none'] 'none'|'in'|'out' * @param {*} [context] */ graphProto.breadthFirstTraverse = function ( cb, startNode, direction, context ) { if (!Node.isInstance(startNode)) { startNode = this._nodesMap[generateNodeKey(startNode)]; } if (!startNode) { return; } var edgeType = direction === 'out' ? 'outEdges' : (direction === 'in' ? 'inEdges' : 'edges'); for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].__visited = false; } if (cb.call(context, startNode, null)) { return; } var queue = [startNode]; while (queue.length) { var currentNode = queue.shift(); var edges = currentNode[edgeType]; for (var i = 0; i < edges.length; i++) { var e = edges[i]; var otherNode = e.node1 === currentNode ? e.node2 : e.node1; if (!otherNode.__visited) { if (cb.call(context, otherNode, currentNode)) { // Stop traversing return; } queue.push(otherNode); otherNode.__visited = true; } } } }; // TODO // graphProto.depthFirstTraverse = function ( // cb, startNode, direction, context // ) { // }; // Filter update graphProto.update = function () { var data = this.data; var edgeData = this.edgeData; var nodes = this.nodes; var edges = this.edges; for (var i = 0, len = nodes.length; i < len; i++) { nodes[i].dataIndex = -1; } for (var i = 0, len = data.count(); i < len; i++) { nodes[data.getRawIndex(i)].dataIndex = i; } edgeData.filterSelf(function (idx) { var edge = edges[edgeData.getRawIndex(idx)]; return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0; }); // Update edge for (var i = 0, len = edges.length; i < len; i++) { edges[i].dataIndex = -1; } for (var i = 0, len = edgeData.count(); i < len; i++) { edges[edgeData.getRawIndex(i)].dataIndex = i; } }; /** * @return {module:echarts/data/Graph} */ graphProto.clone = function () { var graph = new Graph(this._directed); var nodes = this.nodes; var edges = this.edges; for (var i = 0; i < nodes.length; i++) { graph.addNode(nodes[i].id, nodes[i].dataIndex); } for (var i = 0; i < edges.length; i++) { var e = edges[i]; graph.addEdge(e.node1.id, e.node2.id, e.dataIndex); } return graph; }; /** * @alias module:echarts/data/Graph.Node */ function Node(id, dataIndex) { /** * @type {string} */ this.id = id == null ? '' : id; /** * @type {Array.} */ this.inEdges = []; /** * @type {Array.} */ this.outEdges = []; /** * @type {Array.} */ this.edges = []; /** * @type {module:echarts/data/Graph} */ this.hostGraph; /** * @type {number} */ this.dataIndex = dataIndex == null ? -1 : dataIndex; } Node.prototype = { constructor: Node, /** * @return {number} */ degree: function () { return this.edges.length; }, /** * @return {number} */ inDegree: function () { return this.inEdges.length; }, /** * @return {number} */ outDegree: function () { return this.outEdges.length; }, /** * @param {string} [path] * @return {module:echarts/model/Model} */ getModel: function (path) { if (this.dataIndex < 0) { return; } var graph = this.hostGraph; var itemModel = graph.data.getItemModel(this.dataIndex); return itemModel.getModel(path); } }; /** * 图边 * @alias module:echarts/data/Graph.Edge * @param {module:echarts/data/Graph.Node} n1 * @param {module:echarts/data/Graph.Node} n2 * @param {number} [dataIndex=-1] */ function Edge(n1, n2, dataIndex) { /** * 节点1,如果是有向图则为源节点 * @type {module:echarts/data/Graph.Node} */ this.node1 = n1; /** * 节点2,如果是有向图则为目标节点 * @type {module:echarts/data/Graph.Node} */ this.node2 = n2; this.dataIndex = dataIndex == null ? -1 : dataIndex; } /** * @param {string} [path] * @return {module:echarts/model/Model} */ Edge.prototype.getModel = function (path) { if (this.dataIndex < 0) { return; } var graph = this.hostGraph; var itemModel = graph.edgeData.getItemModel(this.dataIndex); return itemModel.getModel(path); }; var createGraphDataProxyMixin = function (hostName, dataName) { return { /** * @param {string=} [dimension='value'] Default 'value'. can be 'a', 'b', 'c', 'd', 'e'. * @return {number} */ getValue: function (dimension) { var data = this[hostName][dataName]; return data.get(data.getDimension(dimension || 'value'), this.dataIndex); }, /** * @param {Object|string} key * @param {*} [value] */ setVisual: function (key, value) { this.dataIndex >= 0 && this[hostName][dataName].setItemVisual(this.dataIndex, key, value); }, /** * @param {string} key * @return {boolean} */ getVisual: function (key, ignoreParent) { return this[hostName][dataName].getItemVisual(this.dataIndex, key, ignoreParent); }, /** * @param {Object} layout * @return {boolean} [merge=false] */ setLayout: function (layout, merge$$1) { this.dataIndex >= 0 && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge$$1); }, /** * @return {Object} */ getLayout: function () { return this[hostName][dataName].getItemLayout(this.dataIndex); }, /** * @return {module:zrender/Element} */ getGraphicEl: function () { return this[hostName][dataName].getItemGraphicEl(this.dataIndex); }, /** * @return {number} */ getRawIndex: function () { return this[hostName][dataName].getRawIndex(this.dataIndex); } }; }; mixin(Node, createGraphDataProxyMixin('hostGraph', 'data')); mixin(Edge, createGraphDataProxyMixin('hostGraph', 'edgeData')); Graph.Node = Node; Graph.Edge = Edge; enableClassCheck(Node); enableClassCheck(Edge); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var createGraphFromNodeEdge = function (nodes, edges, seriesModel, directed, beforeLink) { // ??? TODO // support dataset? var graph = new Graph(directed); for (var i = 0; i < nodes.length; i++) { graph.addNode(retrieve( // Id, name, dataIndex nodes[i].id, nodes[i].name, i ), i); } var linkNameList = []; var validEdges = []; var linkCount = 0; for (var i = 0; i < edges.length; i++) { var link = edges[i]; var source = link.source; var target = link.target; // addEdge may fail when source or target not exists if (graph.addEdge(source, target, linkCount)) { validEdges.push(link); linkNameList.push(retrieve(link.id, source + ' > ' + target)); linkCount++; } } var coordSys = seriesModel.get('coordinateSystem'); var nodeData; if (coordSys === 'cartesian2d' || coordSys === 'polar') { nodeData = createListFromArray(nodes, seriesModel); } else { var coordSysCtor = CoordinateSystemManager.get(coordSys); var coordDimensions = (coordSysCtor && coordSysCtor.type !== 'view') ? (coordSysCtor.dimensions || []) : []; // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs // `value` dimension, but graph need `value` dimension. It's better to // uniform this behavior. if (indexOf(coordDimensions, 'value') < 0) { coordDimensions.concat(['value']); } var dimensionNames = createDimensions(nodes, { coordDimensions: coordDimensions }); nodeData = new List(dimensionNames, seriesModel); nodeData.initData(nodes); } var edgeData = new List(['value'], seriesModel); edgeData.initData(validEdges, linkNameList); beforeLink && beforeLink(nodeData, edgeData); linkList({ mainData: nodeData, struct: graph, structAttr: 'graph', datas: {node: nodeData, edge: edgeData}, datasAttr: {node: 'data', edge: 'edgeData'} }); // Update dataIndex of nodes and edges because invalid edge may be removed graph.update(); return graph; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GraphSeries = extendSeriesModel({ type: 'series.graph', init: function (option) { GraphSeries.superApply(this, 'init', arguments); // Provide data for legend select this.legendDataProvider = function () { return this._categoriesData; }; this.fillDataTextStyle(option.edges || option.links); this._updateCategoriesData(); }, mergeOption: function (option) { GraphSeries.superApply(this, 'mergeOption', arguments); this.fillDataTextStyle(option.edges || option.links); this._updateCategoriesData(); }, mergeDefaultAndTheme: function (option) { GraphSeries.superApply(this, 'mergeDefaultAndTheme', arguments); defaultEmphasis(option, ['edgeLabel'], ['show']); }, getInitialData: function (option, ecModel) { var edges = option.edges || option.links || []; var nodes = option.data || option.nodes || []; var self = this; if (nodes && edges) { return createGraphFromNodeEdge(nodes, edges, this, true, beforeLink).data; } function beforeLink(nodeData, edgeData) { // Overwrite nodeData.getItemModel to nodeData.wrapMethod('getItemModel', function (model) { var categoriesModels = self._categoriesModels; var categoryIdx = model.getShallow('category'); var categoryModel = categoriesModels[categoryIdx]; if (categoryModel) { categoryModel.parentModel = model.parentModel; model.parentModel = categoryModel; } return model; }); var edgeLabelModel = self.getModel('edgeLabel'); // For option `edgeLabel` can be found by label.xxx.xxx on item mode. var fakeSeriesModel = new Model( {label: edgeLabelModel.option}, edgeLabelModel.parentModel, ecModel ); var emphasisEdgeLabelModel = self.getModel('emphasis.edgeLabel'); var emphasisFakeSeriesModel = new Model( {emphasis: {label: emphasisEdgeLabelModel.option}}, emphasisEdgeLabelModel.parentModel, ecModel ); edgeData.wrapMethod('getItemModel', function (model) { model.customizeGetParent(edgeGetParent); return model; }); function edgeGetParent(path) { path = this.parsePath(path); return (path && path[0] === 'label') ? fakeSeriesModel : (path && path[0] === 'emphasis' && path[1] === 'label') ? emphasisFakeSeriesModel : this.parentModel; } } }, /** * @return {module:echarts/data/Graph} */ getGraph: function () { return this.getData().graph; }, /** * @return {module:echarts/data/List} */ getEdgeData: function () { return this.getGraph().edgeData; }, /** * @return {module:echarts/data/List} */ getCategoriesData: function () { return this._categoriesData; }, /** * @override */ formatTooltip: function (dataIndex, multipleSeries, dataType) { if (dataType === 'edge') { var nodeData = this.getData(); var params = this.getDataParams(dataIndex, dataType); var edge = nodeData.graph.getEdgeByIndex(dataIndex); var sourceName = nodeData.getName(edge.node1.dataIndex); var targetName = nodeData.getName(edge.node2.dataIndex); var html = []; sourceName != null && html.push(sourceName); targetName != null && html.push(targetName); html = encodeHTML(html.join(' > ')); if (params.value) { html += ' : ' + encodeHTML(params.value); } return html; } else { // dataType === 'node' or empty return GraphSeries.superApply(this, 'formatTooltip', arguments); } }, _updateCategoriesData: function () { var categories = map(this.option.categories || [], function (category) { // Data must has value return category.value != null ? category : extend({ value: 0 }, category); }); var categoriesData = new List(['value'], this); categoriesData.initData(categories); this._categoriesData = categoriesData; this._categoriesModels = categoriesData.mapArray(function (idx) { return categoriesData.getItemModel(idx, true); }); }, setZoom: function (zoom) { this.option.zoom = zoom; }, setCenter: function (center) { this.option.center = center; }, isAnimationEnabled: function () { return GraphSeries.superCall(this, 'isAnimationEnabled') // Not enable animation when do force layout && !(this.get('layout') === 'force' && this.get('force.layoutAnimation')); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'view', // Default option for all coordinate systems // xAxisIndex: 0, // yAxisIndex: 0, // polarIndex: 0, // geoIndex: 0, legendHoverLink: true, hoverAnimation: true, layout: null, focusNodeAdjacency: false, // Configuration of circular layout circular: { rotateLabel: false }, // Configuration of force directed layout force: { initLayout: null, // Node repulsion. Can be an array to represent range. repulsion: [0, 50], gravity: 0.1, // Edge length. Can be an array to represent range. edgeLength: 30, layoutAnimation: true }, left: 'center', top: 'center', // right: null, // bottom: null, // width: '80%', // height: '80%', symbol: 'circle', symbolSize: 10, edgeSymbol: ['none', 'none'], edgeSymbolSize: 10, edgeLabel: { position: 'middle' }, draggable: false, roam: false, // Default on center of graph center: null, zoom: 1, // Symbol size scale ratio in roam nodeScaleRatio: 0.6, // cursor: null, // categories: [], // data: [] // Or // nodes: [] // // links: [] // Or // edges: [] label: { show: false, formatter: '{b}' }, itemStyle: {}, lineStyle: { color: '#aaa', width: 1, curveness: 0, opacity: 0.5 }, emphasis: { label: { show: true } } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Line path for bezier and straight line draw */ var straightLineProto = Line.prototype; var bezierCurveProto = BezierCurve.prototype; function isLine(shape) { return isNaN(+shape.cpx1) || isNaN(+shape.cpy1); } var LinePath = extendShape({ type: 'ec-line', style: { stroke: '#000', fill: null }, shape: { x1: 0, y1: 0, x2: 0, y2: 0, percent: 1, cpx1: null, cpy1: null }, buildPath: function (ctx, shape) { this[isLine(shape) ? '_buildPathLine' : '_buildPathCurve'](ctx, shape); }, _buildPathLine: straightLineProto.buildPath, _buildPathCurve: bezierCurveProto.buildPath, pointAt: function (t) { return this[isLine(this.shape) ? '_pointAtLine' : '_pointAtCurve'](t); }, _pointAtLine: straightLineProto.pointAt, _pointAtCurve: bezierCurveProto.pointAt, tangentAt: function (t) { var shape = this.shape; var p = isLine(shape) ? [shape.x2 - shape.x1, shape.y2 - shape.y1] : this._tangentAtCurve(t); return normalize(p, p); }, _tangentAtCurve: bezierCurveProto.tangentAt }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/chart/helper/Line */ var SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol']; function makeSymbolTypeKey(symbolCategory) { return '_' + symbolCategory + 'Type'; } /** * @inner */ function createSymbol$1(name, lineData, idx) { var color = lineData.getItemVisual(idx, 'color'); var symbolType = lineData.getItemVisual(idx, name); var symbolSize = lineData.getItemVisual(idx, name + 'Size'); if (!symbolType || symbolType === 'none') { return; } if (!isArray(symbolSize)) { symbolSize = [symbolSize, symbolSize]; } var symbolPath = createSymbol( symbolType, -symbolSize[0] / 2, -symbolSize[1] / 2, symbolSize[0], symbolSize[1], color ); symbolPath.name = name; return symbolPath; } function createLine(points) { var line = new LinePath({ name: 'line', subPixelOptimize: true }); setLinePoints(line.shape, points); return line; } function setLinePoints(targetShape, points) { targetShape.x1 = points[0][0]; targetShape.y1 = points[0][1]; targetShape.x2 = points[1][0]; targetShape.y2 = points[1][1]; targetShape.percent = 1; var cp1 = points[2]; if (cp1) { targetShape.cpx1 = cp1[0]; targetShape.cpy1 = cp1[1]; } else { targetShape.cpx1 = NaN; targetShape.cpy1 = NaN; } } function updateSymbolAndLabelBeforeLineUpdate() { var lineGroup = this; var symbolFrom = lineGroup.childOfName('fromSymbol'); var symbolTo = lineGroup.childOfName('toSymbol'); var label = lineGroup.childOfName('label'); // Quick reject if (!symbolFrom && !symbolTo && label.ignore) { return; } var invScale = 1; var parentNode = this.parent; while (parentNode) { if (parentNode.scale) { invScale /= parentNode.scale[0]; } parentNode = parentNode.parent; } var line = lineGroup.childOfName('line'); // If line not changed // FIXME Parent scale changed if (!this.__dirty && !line.__dirty) { return; } var percent = line.shape.percent; var fromPos = line.pointAt(0); var toPos = line.pointAt(percent); var d = sub([], toPos, fromPos); normalize(d, d); if (symbolFrom) { symbolFrom.attr('position', fromPos); var tangent = line.tangentAt(0); symbolFrom.attr('rotation', Math.PI / 2 - Math.atan2( tangent[1], tangent[0] )); symbolFrom.attr('scale', [invScale * percent, invScale * percent]); } if (symbolTo) { symbolTo.attr('position', toPos); var tangent = line.tangentAt(1); symbolTo.attr('rotation', -Math.PI / 2 - Math.atan2( tangent[1], tangent[0] )); symbolTo.attr('scale', [invScale * percent, invScale * percent]); } if (!label.ignore) { label.attr('position', toPos); var textPosition; var textAlign; var textVerticalAlign; var distance$$1 = 5 * invScale; // End if (label.__position === 'end') { textPosition = [d[0] * distance$$1 + toPos[0], d[1] * distance$$1 + toPos[1]]; textAlign = d[0] > 0.8 ? 'left' : (d[0] < -0.8 ? 'right' : 'center'); textVerticalAlign = d[1] > 0.8 ? 'top' : (d[1] < -0.8 ? 'bottom' : 'middle'); } // Middle else if (label.__position === 'middle') { var halfPercent = percent / 2; var tangent = line.tangentAt(halfPercent); var n = [tangent[1], -tangent[0]]; var cp = line.pointAt(halfPercent); if (n[1] > 0) { n[0] = -n[0]; n[1] = -n[1]; } textPosition = [cp[0] + n[0] * distance$$1, cp[1] + n[1] * distance$$1]; textAlign = 'center'; textVerticalAlign = 'bottom'; var rotation = -Math.atan2(tangent[1], tangent[0]); if (toPos[0] < fromPos[0]) { rotation = Math.PI + rotation; } label.attr('rotation', rotation); } // Start else { textPosition = [-d[0] * distance$$1 + fromPos[0], -d[1] * distance$$1 + fromPos[1]]; textAlign = d[0] > 0.8 ? 'right' : (d[0] < -0.8 ? 'left' : 'center'); textVerticalAlign = d[1] > 0.8 ? 'bottom' : (d[1] < -0.8 ? 'top' : 'middle'); } label.attr({ style: { // Use the user specified text align and baseline first textVerticalAlign: label.__verticalAlign || textVerticalAlign, textAlign: label.__textAlign || textAlign }, position: textPosition, scale: [invScale, invScale] }); } } /** * @constructor * @extends {module:zrender/graphic/Group} * @alias {module:echarts/chart/helper/Line} */ function Line$1(lineData, idx, seriesScope) { Group.call(this); this._createLine(lineData, idx, seriesScope); } var lineProto = Line$1.prototype; // Update symbol position and rotation lineProto.beforeUpdate = updateSymbolAndLabelBeforeLineUpdate; lineProto._createLine = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var linePoints = lineData.getItemLayout(idx); var line = createLine(linePoints); line.shape.percent = 0; initProps(line, { shape: { percent: 1 } }, seriesModel, idx); this.add(line); var label = new Text({ name: 'label', // FIXME // Temporary solution for `focusNodeAdjacency`. // line label do not use the opacity of lineStyle. lineLabelOriginalOpacity: 1 }); this.add(label); each$1(SYMBOL_CATEGORIES, function (symbolCategory) { var symbol = createSymbol$1(symbolCategory, lineData, idx); // symbols must added after line to make sure // it will be updated after line#update. // Or symbol position and rotation update in line#beforeUpdate will be one frame slow this.add(symbol); this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory); }, this); this._updateCommonStl(lineData, idx, seriesScope); }; lineProto.updateData = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childOfName('line'); var linePoints = lineData.getItemLayout(idx); var target = { shape: {} }; setLinePoints(target.shape, linePoints); updateProps(line, target, seriesModel, idx); each$1(SYMBOL_CATEGORIES, function (symbolCategory) { var symbolType = lineData.getItemVisual(idx, symbolCategory); var key = makeSymbolTypeKey(symbolCategory); // Symbol changed if (this[key] !== symbolType) { this.remove(this.childOfName(symbolCategory)); var symbol = createSymbol$1(symbolCategory, lineData, idx); this.add(symbol); } this[key] = symbolType; }, this); this._updateCommonStl(lineData, idx, seriesScope); }; lineProto._updateCommonStl = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childOfName('line'); var lineStyle = seriesScope && seriesScope.lineStyle; var hoverLineStyle = seriesScope && seriesScope.hoverLineStyle; var labelModel = seriesScope && seriesScope.labelModel; var hoverLabelModel = seriesScope && seriesScope.hoverLabelModel; // Optimization for large dataset if (!seriesScope || lineData.hasItemOption) { var itemModel = lineData.getItemModel(idx); lineStyle = itemModel.getModel('lineStyle').getLineStyle(); hoverLineStyle = itemModel.getModel('emphasis.lineStyle').getLineStyle(); labelModel = itemModel.getModel('label'); hoverLabelModel = itemModel.getModel('emphasis.label'); } var visualColor = lineData.getItemVisual(idx, 'color'); var visualOpacity = retrieve3( lineData.getItemVisual(idx, 'opacity'), lineStyle.opacity, 1 ); line.useStyle(defaults( { strokeNoScale: true, fill: 'none', stroke: visualColor, opacity: visualOpacity }, lineStyle )); line.hoverStyle = hoverLineStyle; // Update symbol each$1(SYMBOL_CATEGORIES, function (symbolCategory) { var symbol = this.childOfName(symbolCategory); if (symbol) { symbol.setColor(visualColor); symbol.setStyle({ opacity: visualOpacity }); } }, this); var showLabel = labelModel.getShallow('show'); var hoverShowLabel = hoverLabelModel.getShallow('show'); var label = this.childOfName('label'); var defaultLabelColor; var baseText; // FIXME: the logic below probably should be merged to `graphic.setLabelStyle`. if (showLabel || hoverShowLabel) { defaultLabelColor = visualColor || '#000'; baseText = seriesModel.getFormattedLabel(idx, 'normal', lineData.dataType); if (baseText == null) { var rawVal = seriesModel.getRawValue(idx); baseText = rawVal == null ? lineData.getName(idx) : isFinite(rawVal) ? round$1(rawVal) : rawVal; } } var normalText = showLabel ? baseText : null; var emphasisText = hoverShowLabel ? retrieve2( seriesModel.getFormattedLabel(idx, 'emphasis', lineData.dataType), baseText ) : null; var labelStyle = label.style; // Always set `textStyle` even if `normalStyle.text` is null, because default // values have to be set on `normalStyle`. if (normalText != null || emphasisText != null) { setTextStyle(label.style, labelModel, { text: normalText }, { autoColor: defaultLabelColor }); label.__textAlign = labelStyle.textAlign; label.__verticalAlign = labelStyle.textVerticalAlign; // 'start', 'middle', 'end' label.__position = labelModel.get('position') || 'middle'; } if (emphasisText != null) { // Only these properties supported in this emphasis style here. label.hoverStyle = { text: emphasisText, textFill: hoverLabelModel.getTextColor(true), // For merging hover style to normal style, do not use // `hoverLabelModel.getFont()` here. fontStyle: hoverLabelModel.getShallow('fontStyle'), fontWeight: hoverLabelModel.getShallow('fontWeight'), fontSize: hoverLabelModel.getShallow('fontSize'), fontFamily: hoverLabelModel.getShallow('fontFamily') }; } else { label.hoverStyle = { text: null }; } label.ignore = !showLabel && !hoverShowLabel; setHoverStyle(this); }; lineProto.highlight = function () { this.trigger('emphasis'); }; lineProto.downplay = function () { this.trigger('normal'); }; lineProto.updateLayout = function (lineData, idx) { this.setLinePoints(lineData.getItemLayout(idx)); }; lineProto.setLinePoints = function (points) { var linePath = this.childOfName('line'); setLinePoints(linePath.shape, points); linePath.dirty(); }; inherits(Line$1, Group); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/chart/helper/LineDraw */ // import IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable'; /** * @alias module:echarts/component/marker/LineDraw * @constructor */ function LineDraw(ctor) { this._ctor = ctor || Line$1; this.group = new Group(); } var lineDrawProto = LineDraw.prototype; lineDrawProto.isPersistent = function () { return true; }; /** * @param {module:echarts/data/List} lineData */ lineDrawProto.updateData = function (lineData) { var lineDraw = this; var group = lineDraw.group; var oldLineData = lineDraw._lineData; lineDraw._lineData = lineData; // There is no oldLineData only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!oldLineData) { group.removeAll(); } var seriesScope = makeSeriesScope$1(lineData); lineData.diff(oldLineData) .add(function (idx) { doAdd(lineDraw, lineData, idx, seriesScope); }) .update(function (newIdx, oldIdx) { doUpdate(lineDraw, oldLineData, lineData, oldIdx, newIdx, seriesScope); }) .remove(function (idx) { group.remove(oldLineData.getItemGraphicEl(idx)); }) .execute(); }; function doAdd(lineDraw, lineData, idx, seriesScope) { var itemLayout = lineData.getItemLayout(idx); if (!lineNeedsDraw(itemLayout)) { return; } var el = new lineDraw._ctor(lineData, idx, seriesScope); lineData.setItemGraphicEl(idx, el); lineDraw.group.add(el); } function doUpdate(lineDraw, oldLineData, newLineData, oldIdx, newIdx, seriesScope) { var itemEl = oldLineData.getItemGraphicEl(oldIdx); if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) { lineDraw.group.remove(itemEl); return; } if (!itemEl) { itemEl = new lineDraw._ctor(newLineData, newIdx, seriesScope); } else { itemEl.updateData(newLineData, newIdx, seriesScope); } newLineData.setItemGraphicEl(newIdx, itemEl); lineDraw.group.add(itemEl); } lineDrawProto.updateLayout = function () { var lineData = this._lineData; // Do not support update layout in incremental mode. if (!lineData) { return; } lineData.eachItemGraphicEl(function (el, idx) { el.updateLayout(lineData, idx); }, this); }; lineDrawProto.incrementalPrepareUpdate = function (lineData) { this._seriesScope = makeSeriesScope$1(lineData); this._lineData = null; this.group.removeAll(); }; lineDrawProto.incrementalUpdate = function (taskParams, lineData) { function updateIncrementalAndHover(el) { if (!el.isGroup) { el.incremental = el.useHoverLayer = true; } } for (var idx = taskParams.start; idx < taskParams.end; idx++) { var itemLayout = lineData.getItemLayout(idx); if (lineNeedsDraw(itemLayout)) { var el = new this._ctor(lineData, idx, this._seriesScope); el.traverse(updateIncrementalAndHover); this.group.add(el); lineData.setItemGraphicEl(idx, el); } } }; function makeSeriesScope$1(lineData) { var hostModel = lineData.hostModel; return { lineStyle: hostModel.getModel('lineStyle').getLineStyle(), hoverLineStyle: hostModel.getModel('emphasis.lineStyle').getLineStyle(), labelModel: hostModel.getModel('label'), hoverLabelModel: hostModel.getModel('emphasis.label') }; } lineDrawProto.remove = function () { this._clearIncremental(); this._incremental = null; this.group.removeAll(); }; lineDrawProto._clearIncremental = function () { var incremental = this._incremental; if (incremental) { incremental.clearDisplaybles(); } }; function isPointNaN(pt) { return isNaN(pt[0]) || isNaN(pt[1]); } function lineNeedsDraw(pts) { return !isPointNaN(pts[0]) && !isPointNaN(pts[1]); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getNodeGlobalScale(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = seriesModel.option.nodeScaleRatio; var groupScale = coordSys.scale; var groupZoom = (groupScale && groupScale[0]) || 1; // Scale node when zoom changes var roamZoom = coordSys.getZoom(); var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1; return nodeScale / groupZoom; } function getSymbolSize$1(node) { var symbolSize = node.getVisual('symbolSize'); if (symbolSize instanceof Array) { symbolSize = (symbolSize[0] + symbolSize[1]) / 2; } return +symbolSize; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var v1 = []; var v2 = []; var v3 = []; var quadraticAt$1 = quadraticAt; var v2DistSquare = distSquare; var mathAbs$1 = Math.abs; function intersectCurveCircle(curvePoints, center, radius) { var p0 = curvePoints[0]; var p1 = curvePoints[1]; var p2 = curvePoints[2]; var d = Infinity; var t; var radiusSquare = radius * radius; var interval = 0.1; for (var _t = 0.1; _t <= 0.9; _t += 0.1) { v1[0] = quadraticAt$1(p0[0], p1[0], p2[0], _t); v1[1] = quadraticAt$1(p0[1], p1[1], p2[1], _t); var diff = mathAbs$1(v2DistSquare(v1, center) - radiusSquare); if (diff < d) { d = diff; t = _t; } } // Assume the segment is monotone,Find root through Bisection method // At most 32 iteration for (var i = 0; i < 32; i++) { // var prev = t - interval; var next = t + interval; // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev); // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev); v2[0] = quadraticAt$1(p0[0], p1[0], p2[0], t); v2[1] = quadraticAt$1(p0[1], p1[1], p2[1], t); v3[0] = quadraticAt$1(p0[0], p1[0], p2[0], next); v3[1] = quadraticAt$1(p0[1], p1[1], p2[1], next); var diff = v2DistSquare(v2, center) - radiusSquare; if (mathAbs$1(diff) < 1e-2) { break; } // var prevDiff = v2DistSquare(v1, center) - radiusSquare; var nextDiff = v2DistSquare(v3, center) - radiusSquare; interval /= 2; if (diff < 0) { if (nextDiff >= 0) { t = t + interval; } else { t = t - interval; } } else { if (nextDiff >= 0) { t = t - interval; } else { t = t + interval; } } } return t; } // Adjust edge to avoid var adjustEdge = function (graph, scale$$1) { var tmp0 = []; var quadraticSubdivide$$1 = quadraticSubdivide; var pts = [[], [], []]; var pts2 = [[], []]; var v = []; scale$$1 /= 2; graph.eachEdge(function (edge, idx) { var linePoints = edge.getLayout(); var fromSymbol = edge.getVisual('fromSymbol'); var toSymbol = edge.getVisual('toSymbol'); if (!linePoints.__original) { linePoints.__original = [ clone$1(linePoints[0]), clone$1(linePoints[1]) ]; if (linePoints[2]) { linePoints.__original.push(clone$1(linePoints[2])); } } var originalPoints = linePoints.__original; // Quadratic curve if (linePoints[2] != null) { copy(pts[0], originalPoints[0]); copy(pts[1], originalPoints[2]); copy(pts[2], originalPoints[1]); if (fromSymbol && fromSymbol !== 'none') { var symbolSize = getSymbolSize$1(edge.node1); var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale$$1); // Subdivide and get the second quadraticSubdivide$$1(pts[0][0], pts[1][0], pts[2][0], t, tmp0); pts[0][0] = tmp0[3]; pts[1][0] = tmp0[4]; quadraticSubdivide$$1(pts[0][1], pts[1][1], pts[2][1], t, tmp0); pts[0][1] = tmp0[3]; pts[1][1] = tmp0[4]; } if (toSymbol && toSymbol !== 'none') { var symbolSize = getSymbolSize$1(edge.node2); var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale$$1); // Subdivide and get the first quadraticSubdivide$$1(pts[0][0], pts[1][0], pts[2][0], t, tmp0); pts[1][0] = tmp0[1]; pts[2][0] = tmp0[2]; quadraticSubdivide$$1(pts[0][1], pts[1][1], pts[2][1], t, tmp0); pts[1][1] = tmp0[1]; pts[2][1] = tmp0[2]; } // Copy back to layout copy(linePoints[0], pts[0]); copy(linePoints[1], pts[2]); copy(linePoints[2], pts[1]); } // Line else { copy(pts2[0], originalPoints[0]); copy(pts2[1], originalPoints[1]); sub(v, pts2[1], pts2[0]); normalize(v, v); if (fromSymbol && fromSymbol !== 'none') { var symbolSize = getSymbolSize$1(edge.node1); scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale$$1); } if (toSymbol && toSymbol !== 'none') { var symbolSize = getSymbolSize$1(edge.node2); scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale$$1); } copy(linePoints[0], pts2[0]); copy(linePoints[1], pts2[1]); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var FOCUS_ADJACENCY = '__focusNodeAdjacency'; var UNFOCUS_ADJACENCY = '__unfocusNodeAdjacency'; var nodeOpacityPath = ['itemStyle', 'opacity']; var lineOpacityPath = ['lineStyle', 'opacity']; function getItemOpacity(item, opacityPath) { var opacity = item.getVisual('opacity'); return opacity != null ? opacity : item.getModel().get(opacityPath); } function fadeOutItem(item, opacityPath, opacityRatio) { var el = item.getGraphicEl(); var opacity = getItemOpacity(item, opacityPath); if (opacityRatio != null) { opacity == null && (opacity = 1); opacity *= opacityRatio; } el.downplay && el.downplay(); el.traverse(function (child) { if (!child.isGroup) { var opct = child.lineLabelOriginalOpacity; if (opct == null || opacityRatio != null) { opct = opacity; } child.setStyle('opacity', opct); } }); } function fadeInItem(item, opacityPath) { var opacity = getItemOpacity(item, opacityPath); var el = item.getGraphicEl(); // Should go back to normal opacity first, consider hoverLayer, // where current state is copied to elMirror, and support // emphasis opacity here. el.traverse(function (child) { !child.isGroup && child.setStyle('opacity', opacity); }); el.highlight && el.highlight(); } extendChartView({ type: 'graph', init: function (ecModel, api) { var symbolDraw = new SymbolDraw(); var lineDraw = new LineDraw(); var group = this.group; this._controller = new RoamController(api.getZr()); this._controllerHost = {target: group}; group.add(symbolDraw.group); group.add(lineDraw.group); this._symbolDraw = symbolDraw; this._lineDraw = lineDraw; this._firstRender = true; }, render: function (seriesModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; this._model = seriesModel; var symbolDraw = this._symbolDraw; var lineDraw = this._lineDraw; var group = this.group; if (coordSys.type === 'view') { var groupNewProp = { position: coordSys.position, scale: coordSys.scale }; if (this._firstRender) { group.attr(groupNewProp); } else { updateProps(group, groupNewProp, seriesModel); } } // Fix edge contact point with node adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel)); var data = seriesModel.getData(); symbolDraw.updateData(data); var edgeData = seriesModel.getEdgeData(); lineDraw.updateData(edgeData); this._updateNodeAndLinkScale(); this._updateController(seriesModel, ecModel, api); clearTimeout(this._layoutTimeout); var forceLayout = seriesModel.forceLayout; var layoutAnimation = seriesModel.get('force.layoutAnimation'); if (forceLayout) { this._startForceLayoutIteration(forceLayout, layoutAnimation); } data.eachItemGraphicEl(function (el, idx) { var itemModel = data.getItemModel(idx); // Update draggable el.off('drag').off('dragend'); var draggable = itemModel.get('draggable'); if (draggable) { el.on('drag', function () { if (forceLayout) { forceLayout.warmUp(); !this._layouting && this._startForceLayoutIteration(forceLayout, layoutAnimation); forceLayout.setFixed(idx); // Write position back to layout data.setItemLayout(idx, el.position); } }, this).on('dragend', function () { if (forceLayout) { forceLayout.setUnfixed(idx); } }, this); } el.setDraggable(draggable && forceLayout); el[FOCUS_ADJACENCY] && el.off('mouseover', el[FOCUS_ADJACENCY]); el[UNFOCUS_ADJACENCY] && el.off('mouseout', el[UNFOCUS_ADJACENCY]); if (itemModel.get('focusNodeAdjacency')) { el.on('mouseover', el[FOCUS_ADJACENCY] = function () { api.dispatchAction({ type: 'focusNodeAdjacency', seriesId: seriesModel.id, dataIndex: el.dataIndex }); }); el.on('mouseout', el[UNFOCUS_ADJACENCY] = function () { api.dispatchAction({ type: 'unfocusNodeAdjacency', seriesId: seriesModel.id }); }); } }, this); data.graph.eachEdge(function (edge) { var el = edge.getGraphicEl(); el[FOCUS_ADJACENCY] && el.off('mouseover', el[FOCUS_ADJACENCY]); el[UNFOCUS_ADJACENCY] && el.off('mouseout', el[UNFOCUS_ADJACENCY]); if (edge.getModel().get('focusNodeAdjacency')) { el.on('mouseover', el[FOCUS_ADJACENCY] = function () { api.dispatchAction({ type: 'focusNodeAdjacency', seriesId: seriesModel.id, edgeDataIndex: edge.dataIndex }); }); el.on('mouseout', el[UNFOCUS_ADJACENCY] = function () { api.dispatchAction({ type: 'unfocusNodeAdjacency', seriesId: seriesModel.id }); }); } }); var circularRotateLabel = seriesModel.get('layout') === 'circular' && seriesModel.get('circular.rotateLabel'); var cx = data.getLayout('cx'); var cy = data.getLayout('cy'); data.eachItemGraphicEl(function (el, idx) { var itemModel = data.getItemModel(idx); var labelRotate = itemModel.get('label.rotate') || 0; var symbolPath = el.getSymbolPath(); if (circularRotateLabel) { var pos = data.getItemLayout(idx); var rad = Math.atan2(pos[1] - cy, pos[0] - cx); if (rad < 0) { rad = Math.PI * 2 + rad; } var isLeft = pos[0] < cx; if (isLeft) { rad = rad - Math.PI; } var textPosition = isLeft ? 'left' : 'right'; modifyLabelStyle( symbolPath, { textRotation: -rad, textPosition: textPosition, textOrigin: 'center' }, { textPosition: textPosition } ); } else { modifyLabelStyle( symbolPath, { textRotation: labelRotate *= Math.PI / 180 } ); } }); this._firstRender = false; }, dispose: function () { this._controller && this._controller.dispose(); this._controllerHost = {}; }, focusNodeAdjacency: function (seriesModel, ecModel, api, payload) { var data = this._model.getData(); var graph = data.graph; var dataIndex = payload.dataIndex; var edgeDataIndex = payload.edgeDataIndex; var node = graph.getNodeByIndex(dataIndex); var edge = graph.getEdgeByIndex(edgeDataIndex); if (!node && !edge) { return; } graph.eachNode(function (node) { fadeOutItem(node, nodeOpacityPath, 0.1); }); graph.eachEdge(function (edge) { fadeOutItem(edge, lineOpacityPath, 0.1); }); if (node) { fadeInItem(node, nodeOpacityPath); each$1(node.edges, function (adjacentEdge) { if (adjacentEdge.dataIndex < 0) { return; } fadeInItem(adjacentEdge, lineOpacityPath); fadeInItem(adjacentEdge.node1, nodeOpacityPath); fadeInItem(adjacentEdge.node2, nodeOpacityPath); }); } if (edge) { fadeInItem(edge, lineOpacityPath); fadeInItem(edge.node1, nodeOpacityPath); fadeInItem(edge.node2, nodeOpacityPath); } }, unfocusNodeAdjacency: function (seriesModel, ecModel, api, payload) { var graph = this._model.getData().graph; graph.eachNode(function (node) { fadeOutItem(node, nodeOpacityPath); }); graph.eachEdge(function (edge) { fadeOutItem(edge, lineOpacityPath); }); }, _startForceLayoutIteration: function (forceLayout, layoutAnimation) { var self = this; (function step() { forceLayout.step(function (stopped) { self.updateLayout(self._model); (self._layouting = !stopped) && ( layoutAnimation ? (self._layoutTimeout = setTimeout(step, 16)) : step() ); }); })(); }, _updateController: function (seriesModel, ecModel, api) { var controller = this._controller; var controllerHost = this._controllerHost; var group = this.group; controller.setPointerChecker(function (e, x, y) { var rect = group.getBoundingRect(); rect.applyTransform(group.transform); return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel); }); if (seriesModel.coordinateSystem.type !== 'view') { controller.disable(); return; } controller.enable(seriesModel.get('roam')); controllerHost.zoomLimit = seriesModel.get('scaleLimit'); controllerHost.zoom = seriesModel.coordinateSystem.getZoom(); controller .off('pan') .off('zoom') .on('pan', function (e) { updateViewOnPan(controllerHost, e.dx, e.dy); api.dispatchAction({ seriesId: seriesModel.id, type: 'graphRoam', dx: e.dx, dy: e.dy }); }) .on('zoom', function (e) { updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY); api.dispatchAction({ seriesId: seriesModel.id, type: 'graphRoam', zoom: e.scale, originX: e.originX, originY: e.originY }); this._updateNodeAndLinkScale(); adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel)); this._lineDraw.updateLayout(); }, this); }, _updateNodeAndLinkScale: function () { var seriesModel = this._model; var data = seriesModel.getData(); var nodeScale = getNodeGlobalScale(seriesModel); var invScale = [nodeScale, nodeScale]; data.eachItemGraphicEl(function (el, idx) { el.attr('scale', invScale); }); }, updateLayout: function (seriesModel) { adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel)); this._symbolDraw.updateLayout(); this._lineDraw.updateLayout(); }, remove: function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(); this._lineDraw && this._lineDraw.remove(); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @payload * @property {number} [seriesIndex] * @property {string} [seriesId] * @property {string} [seriesName] * @property {number} [dataIndex] */ registerAction({ type: 'focusNodeAdjacency', event: 'focusNodeAdjacency', update: 'series:focusNodeAdjacency' }, function () {}); /** * @payload * @property {number} [seriesIndex] * @property {string} [seriesId] * @property {string} [seriesName] */ registerAction({ type: 'unfocusNodeAdjacency', event: 'unfocusNodeAdjacency', update: 'series:unfocusNodeAdjacency' }, function () {}); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var actionInfo = { type: 'graphRoam', event: 'graphRoam', update: 'none' }; /** * @payload * @property {string} name Series name * @property {number} [dx] * @property {number} [dy] * @property {number} [zoom] * @property {number} [originX] * @property {number} [originY] */ registerAction(actionInfo, function (payload, ecModel) { ecModel.eachComponent({mainType: 'series', query: payload}, function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var res = updateCenterAndZoom(coordSys, payload); seriesModel.setCenter && seriesModel.setCenter(res.center); seriesModel.setZoom && seriesModel.setZoom(res.zoom); }); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var categoryFilter = function (ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (!legendModels || !legendModels.length) { return; } ecModel.eachSeriesByType('graph', function (graphSeries) { var categoriesData = graphSeries.getCategoriesData(); var graph = graphSeries.getGraph(); var data = graph.data; var categoryNames = categoriesData.mapArray(categoriesData.getName); data.filterSelf(function (idx) { var model = data.getItemModel(idx); var category = model.getShallow('category'); if (category != null) { if (typeof category === 'number') { category = categoryNames[category]; } // If in any legend component the status is not selected. for (var i = 0; i < legendModels.length; i++) { if (!legendModels[i].isSelected(category)) { return false; } } } return true; }); }, this); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var categoryVisual = function (ecModel) { var paletteScope = {}; ecModel.eachSeriesByType('graph', function (seriesModel) { var categoriesData = seriesModel.getCategoriesData(); var data = seriesModel.getData(); var categoryNameIdxMap = {}; categoriesData.each(function (idx) { var name = categoriesData.getName(idx); // Add prefix to avoid conflict with Object.prototype. categoryNameIdxMap['ec-' + name] = idx; var itemModel = categoriesData.getItemModel(idx); var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(name, paletteScope); categoriesData.setItemVisual(idx, 'color', color); var itemStyleList = ['opacity', 'symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < itemStyleList.length; i++) { var itemStyle = itemModel.getShallow(itemStyleList[i], true); if (itemStyle != null) { categoriesData.setItemVisual(idx, itemStyleList[i], itemStyle); } } }); // Assign category color to visual if (categoriesData.count()) { data.each(function (idx) { var model = data.getItemModel(idx); var category = model.getShallow('category'); if (category != null) { if (typeof category === 'string') { category = categoryNameIdxMap['ec-' + category]; } var itemStyleList = ['color', 'opacity', 'symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < itemStyleList.length; i++) { if (data.getItemVisual(idx, itemStyleList[i], true) == null) { data.setItemVisual( idx, itemStyleList[i], categoriesData.getItemVisual(category, itemStyleList[i]) ); } } } }); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function normalize$1(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; } var edgeVisual = function (ecModel) { ecModel.eachSeriesByType('graph', function (seriesModel) { var graph = seriesModel.getGraph(); var edgeData = seriesModel.getEdgeData(); var symbolType = normalize$1(seriesModel.get('edgeSymbol')); var symbolSize = normalize$1(seriesModel.get('edgeSymbolSize')); var colorQuery = 'lineStyle.color'.split('.'); var opacityQuery = 'lineStyle.opacity'.split('.'); edgeData.setVisual('fromSymbol', symbolType && symbolType[0]); edgeData.setVisual('toSymbol', symbolType && symbolType[1]); edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]); edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]); edgeData.setVisual('color', seriesModel.get(colorQuery)); edgeData.setVisual('opacity', seriesModel.get(opacityQuery)); edgeData.each(function (idx) { var itemModel = edgeData.getItemModel(idx); var edge = graph.getEdgeByIndex(idx); var symbolType = normalize$1(itemModel.getShallow('symbol', true)); var symbolSize = normalize$1(itemModel.getShallow('symbolSize', true)); // Edge visual must after node visual var color = itemModel.get(colorQuery); var opacity = itemModel.get(opacityQuery); switch (color) { case 'source': color = edge.node1.getVisual('color'); break; case 'target': color = edge.node2.getVisual('color'); break; } symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]); symbolType[1] && edge.setVisual('toSymbol', symbolType[1]); symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]); symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]); edge.setVisual('color', color); edge.setVisual('opacity', opacity); }); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function simpleLayout$1(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } var graph = seriesModel.getGraph(); graph.eachNode(function (node) { var model = node.getModel(); node.setLayout([+model.get('x'), +model.get('y')]); }); simpleLayoutEdge(graph); } function simpleLayoutEdge(graph) { graph.eachEdge(function (edge) { var curveness = edge.getModel().get('lineStyle.curveness') || 0; var p1 = clone$1(edge.node1.getLayout()); var p2 = clone$1(edge.node2.getLayout()); var points = [p1, p2]; if (+curveness) { points.push([ (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness ]); } edge.setLayout(points); }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var simpleLayout = function (ecModel, api) { ecModel.eachSeriesByType('graph', function (seriesModel) { var layout = seriesModel.get('layout'); var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { var data = seriesModel.getData(); var dimensions = []; each$1(coordSys.dimensions, function (coordDim) { dimensions = dimensions.concat(data.mapDimension(coordDim, true)); }); for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) { var value = []; var hasValue = false; for (var i = 0; i < dimensions.length; i++) { var val = data.get(dimensions[i], dataIndex); if (!isNaN(val)) { hasValue = true; } value.push(val); } if (hasValue) { data.setItemLayout(dataIndex, coordSys.dataToPoint(value)); } else { // Also {Array.}, not undefined to avoid if...else... statement data.setItemLayout(dataIndex, [NaN, NaN]); } } simpleLayoutEdge(data.graph); } else if (!layout || layout === 'none') { simpleLayout$1(seriesModel); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI$3 = Math.PI; var _symbolRadiansHalf = []; /** * `basedOn` can be: * 'value': * This layout is not accurate and have same bad case. For example, * if the min value is very smaller than the max value, the nodes * with the min value probably overlap even though there is enough * space to layout them. So we only use this approach in the as the * init layout of the force layout. * FIXME * Probably we do not need this method any more but use * `basedOn: 'symbolSize'` in force layout if * delay its init operations to GraphView. * 'symbolSize': * This approach work only if all of the symbol size calculated. * That is, the progressive rendering is not applied to graph. * FIXME * If progressive rendering is applied to graph some day, * probably we have to use `basedOn: 'value'`. * * @param {module:echarts/src/model/Series} seriesModel * @param {string} basedOn 'value' or 'symbolSize' */ function circularLayout$1(seriesModel, basedOn) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } var rect = coordSys.getBoundingRect(); var nodeData = seriesModel.getData(); var graph = nodeData.graph; var cx = rect.width / 2 + rect.x; var cy = rect.height / 2 + rect.y; var r = Math.min(rect.width, rect.height) / 2; var count = nodeData.count(); nodeData.setLayout({ cx: cx, cy: cy }); if (!count) { return; } _layoutNodesBasedOn[basedOn](seriesModel, coordSys, graph, nodeData, r, cx, cy, count); graph.eachEdge(function (edge) { var curveness = edge.getModel().get('lineStyle.curveness') || 0; var p1 = clone$1(edge.node1.getLayout()); var p2 = clone$1(edge.node2.getLayout()); var cp1; var x12 = (p1[0] + p2[0]) / 2; var y12 = (p1[1] + p2[1]) / 2; if (+curveness) { curveness *= 3; cp1 = [ cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness) ]; } edge.setLayout([p1, p2, cp1]); }); } var _layoutNodesBasedOn = { value: function (seriesModel, coordSys, graph, nodeData, r, cx, cy, count) { var angle = 0; var sum = nodeData.getSum('value'); var unitAngle = Math.PI * 2 / (sum || count); graph.eachNode(function (node) { var value = node.getValue('value'); var radianHalf = unitAngle * (sum ? value : 1) / 2; angle += radianHalf; node.setLayout([ r * Math.cos(angle) + cx, r * Math.sin(angle) + cy ]); angle += radianHalf; }); }, symbolSize: function (seriesModel, coordSys, graph, nodeData, r, cx, cy, count) { var sumRadian = 0; _symbolRadiansHalf.length = count; var nodeScale = getNodeGlobalScale(seriesModel); graph.eachNode(function (node) { var symbolSize = getSymbolSize$1(node); // Normally this case will not happen, but we still add // some the defensive code (2px is an arbitrary value). isNaN(symbolSize) && (symbolSize = 2); symbolSize < 0 && (symbolSize = 0); symbolSize *= nodeScale; var symbolRadianHalf = Math.asin(symbolSize / 2 / r); // when `symbolSize / 2` is bigger than `r`. isNaN(symbolRadianHalf) && (symbolRadianHalf = PI$3 / 2); _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf; sumRadian += symbolRadianHalf * 2; }); var halfRemainRadian = (2 * PI$3 - sumRadian) / count / 2; var angle = 0; graph.eachNode(function (node) { var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex]; angle += radianHalf; node.setLayout([ r * Math.cos(angle) + cx, r * Math.sin(angle) + cy ]); angle += radianHalf; }); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var circularLayout = function (ecModel) { ecModel.eachSeriesByType('graph', function (seriesModel) { if (seriesModel.get('layout') === 'circular') { circularLayout$1(seriesModel, 'symbolSize'); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embeded for some of the code in this file: * Some formulas were originally copied from "d3.js" with some * modifications made for this project. * (See more details in the comment of the method "step" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var scaleAndAdd$2 = scaleAndAdd; // function adjacentNode(n, e) { // return e.n1 === n ? e.n2 : e.n1; // } function forceLayout$1(nodes, edges, opts) { var rect = opts.rect; var width = rect.width; var height = rect.height; var center = [rect.x + width / 2, rect.y + height / 2]; // var scale = opts.scale || 1; var gravity = opts.gravity == null ? 0.1 : opts.gravity; // for (var i = 0; i < edges.length; i++) { // var e = edges[i]; // var n1 = e.n1; // var n2 = e.n2; // n1.edges = n1.edges || []; // n2.edges = n2.edges || []; // n1.edges.push(e); // n2.edges.push(e); // } // Init position for (var i = 0; i < nodes.length; i++) { var n = nodes[i]; if (!n.p) { n.p = create( width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1] ); } n.pp = clone$1(n.p); n.edges = null; } // Formula in 'Graph Drawing by Force-directed Placement' // var k = scale * Math.sqrt(width * height / nodes.length); // var k2 = k * k; var friction = 0.6; return { warmUp: function () { friction = 0.5; }, setFixed: function (idx) { nodes[idx].fixed = true; }, setUnfixed: function (idx) { nodes[idx].fixed = false; }, /** * Some formulas were originally copied from "d3.js" * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js * with some modifications made for this project. * See the license statement at the head of this file. */ step: function (cb) { var v12 = []; var nLen = nodes.length; for (var i = 0; i < edges.length; i++) { var e = edges[i]; var n1 = e.n1; var n2 = e.n2; sub(v12, n2.p, n1.p); var d = len(v12) - e.d; var w = n2.w / (n1.w + n2.w); if (isNaN(w)) { w = 0; } normalize(v12, v12); !n1.fixed && scaleAndAdd$2(n1.p, n1.p, v12, w * d * friction); !n2.fixed && scaleAndAdd$2(n2.p, n2.p, v12, -(1 - w) * d * friction); } // Gravity for (var i = 0; i < nLen; i++) { var n = nodes[i]; if (!n.fixed) { sub(v12, center, n.p); // var d = vec2.len(v12); // vec2.scale(v12, v12, 1 / d); // var gravityFactor = gravity; scaleAndAdd$2(n.p, n.p, v12, gravity * friction); } } // Repulsive // PENDING for (var i = 0; i < nLen; i++) { var n1 = nodes[i]; for (var j = i + 1; j < nLen; j++) { var n2 = nodes[j]; sub(v12, n2.p, n1.p); var d = len(v12); if (d === 0) { // Random repulse set(v12, Math.random() - 0.5, Math.random() - 0.5); d = 1; } var repFact = (n1.rep + n2.rep) / d / d; !n1.fixed && scaleAndAdd$2(n1.pp, n1.pp, v12, repFact); !n2.fixed && scaleAndAdd$2(n2.pp, n2.pp, v12, -repFact); } } var v = []; for (var i = 0; i < nLen; i++) { var n = nodes[i]; if (!n.fixed) { sub(v, n.p, n.pp); scaleAndAdd$2(n.p, n.p, v, friction); copy(n.pp, n.p); } } friction = friction * 0.992; cb && cb(nodes, edges, friction < 0.01); } }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var forceLayout = function (ecModel) { ecModel.eachSeriesByType('graph', function (graphSeries) { var coordSys = graphSeries.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } if (graphSeries.get('layout') === 'force') { var preservedPoints = graphSeries.preservedPoints || {}; var graph = graphSeries.getGraph(); var nodeData = graph.data; var edgeData = graph.edgeData; var forceModel = graphSeries.getModel('force'); var initLayout = forceModel.get('initLayout'); if (graphSeries.preservedPoints) { nodeData.each(function (idx) { var id = nodeData.getId(idx); nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]); }); } else if (!initLayout || initLayout === 'none') { simpleLayout$1(graphSeries); } else if (initLayout === 'circular') { circularLayout$1(graphSeries, 'value'); } var nodeDataExtent = nodeData.getDataExtent('value'); var edgeDataExtent = edgeData.getDataExtent('value'); // var edgeDataExtent = edgeData.getDataExtent('value'); var repulsion = forceModel.get('repulsion'); var edgeLength = forceModel.get('edgeLength'); if (!isArray(repulsion)) { repulsion = [repulsion, repulsion]; } if (!isArray(edgeLength)) { edgeLength = [edgeLength, edgeLength]; } // Larger value has smaller length edgeLength = [edgeLength[1], edgeLength[0]]; var nodes = nodeData.mapArray('value', function (value, idx) { var point = nodeData.getItemLayout(idx); var rep = linearMap(value, nodeDataExtent, repulsion); if (isNaN(rep)) { rep = (repulsion[0] + repulsion[1]) / 2; } return { w: rep, rep: rep, fixed: nodeData.getItemModel(idx).get('fixed'), p: (!point || isNaN(point[0]) || isNaN(point[1])) ? null : point }; }); var edges = edgeData.mapArray('value', function (value, idx) { var edge = graph.getEdgeByIndex(idx); var d = linearMap(value, edgeDataExtent, edgeLength); if (isNaN(d)) { d = (edgeLength[0] + edgeLength[1]) / 2; } return { n1: nodes[edge.node1.dataIndex], n2: nodes[edge.node2.dataIndex], d: d, curveness: edge.getModel().get('lineStyle.curveness') || 0 }; }); var coordSys = graphSeries.coordinateSystem; var rect = coordSys.getBoundingRect(); var forceInstance = forceLayout$1(nodes, edges, { rect: rect, gravity: forceModel.get('gravity') }); var oldStep = forceInstance.step; forceInstance.step = function (cb) { for (var i = 0, l = nodes.length; i < l; i++) { if (nodes[i].fixed) { // Write back to layout instance copy(nodes[i].p, graph.getNodeByIndex(i).getLayout()); } } oldStep(function (nodes, edges, stopped) { for (var i = 0, l = nodes.length; i < l; i++) { if (!nodes[i].fixed) { graph.getNodeByIndex(i).setLayout(nodes[i].p); } preservedPoints[nodeData.getId(i)] = nodes[i].p; } for (var i = 0, l = edges.length; i < l; i++) { var e = edges[i]; var edge = graph.getEdgeByIndex(i); var p1 = e.n1.p; var p2 = e.n2.p; var points = edge.getLayout(); points = points ? points.slice() : []; points[0] = points[0] || []; points[1] = points[1] || []; copy(points[0], p1); copy(points[1], p2); if (+e.curveness) { points[2] = [ (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness ]; } edge.setLayout(points); } // Update layout cb && cb(stopped); }); }; graphSeries.forceLayout = forceInstance; graphSeries.preservedPoints = preservedPoints; // Step to get the layout forceInstance.step(); } else { // Remove prev injected forceLayout instance graphSeries.forceLayout = null; } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME Where to create the simple view coordinate system function getViewRect$1(seriesModel, api, aspect) { var option = seriesModel.getBoxLayoutParams(); option.aspect = aspect; return getLayoutRect(option, { width: api.getWidth(), height: api.getHeight() }); } var createView = function (ecModel, api) { var viewList = []; ecModel.eachSeriesByType('graph', function (seriesModel) { var coordSysType = seriesModel.get('coordinateSystem'); if (!coordSysType || coordSysType === 'view') { var data = seriesModel.getData(); var positions = data.mapArray(function (idx) { var itemModel = data.getItemModel(idx); return [+itemModel.get('x'), +itemModel.get('y')]; }); var min = []; var max = []; fromPoints(positions, min, max); // If width or height is 0 if (max[0] - min[0] === 0) { max[0] += 1; min[0] -= 1; } if (max[1] - min[1] === 0) { max[1] += 1; min[1] -= 1; } var aspect = (max[0] - min[0]) / (max[1] - min[1]); // FIXME If get view rect after data processed? var viewRect = getViewRect$1(seriesModel, api, aspect); // Position may be NaN, use view rect instead if (isNaN(aspect)) { min = [viewRect.x, viewRect.y]; max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height]; } var bbWidth = max[0] - min[0]; var bbHeight = max[1] - min[1]; var viewWidth = viewRect.width; var viewHeight = viewRect.height; var viewCoordSys = seriesModel.coordinateSystem = new View(); viewCoordSys.zoomLimit = seriesModel.get('scaleLimit'); viewCoordSys.setBoundingRect( min[0], min[1], bbWidth, bbHeight ); viewCoordSys.setViewRect( viewRect.x, viewRect.y, viewWidth, viewHeight ); // Update roam info viewCoordSys.setCenter(seriesModel.get('center')); viewCoordSys.setZoom(seriesModel.get('zoom')); viewList.push(viewCoordSys); } }); return viewList; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerProcessor(categoryFilter); registerVisual(visualSymbol('graph', 'circle', null)); registerVisual(categoryVisual); registerVisual(edgeVisual); registerLayout(simpleLayout); registerLayout(PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout); registerLayout(forceLayout); // Graph view coordinate system registerCoordinateSystem('graphView', { create: createView }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GaugeSeries = SeriesModel.extend({ type: 'series.gauge', getInitialData: function (option, ecModel) { var dataOpt = option.data || []; if (!isArray(dataOpt)) { dataOpt = [dataOpt]; } option.data = dataOpt; return createListSimply(this, ['value']); }, defaultOption: { zlevel: 0, z: 2, // 默认全局居中 center: ['50%', '50%'], legendHoverLink: true, radius: '75%', startAngle: 225, endAngle: -45, clockwise: true, // 最小值 min: 0, // 最大值 max: 100, // 分割段数,默认为10 splitNumber: 10, // 坐标轴线 axisLine: { // 默认显示,属性show控制显示与否 show: true, lineStyle: { // 属性lineStyle控制线条样式 color: [[0.2, '#91c7ae'], [0.8, '#63869e'], [1, '#c23531']], width: 30 } }, // 分隔线 splitLine: { // 默认显示,属性show控制显示与否 show: true, // 属性length控制线长 length: 30, // 属性lineStyle(详见lineStyle)控制线条样式 lineStyle: { color: '#eee', width: 2, type: 'solid' } }, // 坐标轴小标记 axisTick: { // 属性show控制显示与否,默认不显示 show: true, // 每份split细分多少段 splitNumber: 5, // 属性length控制线长 length: 8, // 属性lineStyle控制线条样式 lineStyle: { color: '#eee', width: 1, type: 'solid' } }, axisLabel: { show: true, distance: 5, // formatter: null, color: 'auto' }, pointer: { show: true, length: '80%', width: 8 }, itemStyle: { color: 'auto' }, title: { show: true, // x, y,单位px offsetCenter: [0, '-40%'], // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#333', fontSize: 15 }, detail: { show: true, backgroundColor: 'rgba(0,0,0,0)', borderWidth: 0, borderColor: '#ccc', width: 100, height: null, // self-adaption padding: [5, 10], // x, y,单位px offsetCenter: [0, '40%'], // formatter: null, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: 'auto', fontSize: 30 } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PointerPath = Path.extend({ type: 'echartsGaugePointer', shape: { angle: 0, width: 10, r: 10, x: 0, y: 0 }, buildPath: function (ctx, shape) { var mathCos = Math.cos; var mathSin = Math.sin; var r = shape.r; var width = shape.width; var angle = shape.angle; var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2); var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2); angle = shape.angle - Math.PI / 2; ctx.moveTo(x, y); ctx.lineTo( shape.x + mathCos(angle) * width, shape.y + mathSin(angle) * width ); ctx.lineTo( shape.x + mathCos(shape.angle) * r, shape.y + mathSin(shape.angle) * r ); ctx.lineTo( shape.x - mathCos(angle) * width, shape.y - mathSin(angle) * width ); ctx.lineTo(x, y); return; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function parsePosition(seriesModel, api) { var center = seriesModel.get('center'); var width = api.getWidth(); var height = api.getHeight(); var size = Math.min(width, height); var cx = parsePercent$1(center[0], api.getWidth()); var cy = parsePercent$1(center[1], api.getHeight()); var r = parsePercent$1(seriesModel.get('radius'), size / 2); return { cx: cx, cy: cy, r: r }; } function formatLabel(label, labelFormatter) { if (labelFormatter) { if (typeof labelFormatter === 'string') { label = labelFormatter.replace('{value}', label != null ? label : ''); } else if (typeof labelFormatter === 'function') { label = labelFormatter(label); } } return label; } var PI2$5 = Math.PI * 2; var GaugeView = Chart.extend({ type: 'gauge', render: function (seriesModel, ecModel, api) { this.group.removeAll(); var colorList = seriesModel.get('axisLine.lineStyle.color'); var posInfo = parsePosition(seriesModel, api); this._renderMain( seriesModel, ecModel, api, colorList, posInfo ); }, dispose: function () {}, _renderMain: function (seriesModel, ecModel, api, colorList, posInfo) { var group = this.group; var axisLineModel = seriesModel.getModel('axisLine'); var lineStyleModel = axisLineModel.getModel('lineStyle'); var clockwise = seriesModel.get('clockwise'); var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI; var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI; var angleRangeSpan = (endAngle - startAngle) % PI2$5; var prevEndAngle = startAngle; var axisLineWidth = lineStyleModel.get('width'); var showAxis = axisLineModel.get('show'); for (var i = 0; showAxis && i < colorList.length; i++) { // Clamp var percent = Math.min(Math.max(colorList[i][0], 0), 1); var endAngle = startAngle + angleRangeSpan * percent; var sector = new Sector({ shape: { startAngle: prevEndAngle, endAngle: endAngle, cx: posInfo.cx, cy: posInfo.cy, clockwise: clockwise, r0: posInfo.r - axisLineWidth, r: posInfo.r }, silent: true }); sector.setStyle({ fill: colorList[i][1] }); sector.setStyle(lineStyleModel.getLineStyle( // Because we use sector to simulate arc // so the properties for stroking are useless ['color', 'borderWidth', 'borderColor'] )); group.add(sector); prevEndAngle = endAngle; } var getColor = function (percent) { // Less than 0 if (percent <= 0) { return colorList[0][1]; } for (var i = 0; i < colorList.length; i++) { if (colorList[i][0] >= percent && (i === 0 ? 0 : colorList[i - 1][0]) < percent ) { return colorList[i][1]; } } // More than 1 return colorList[i - 1][1]; }; if (!clockwise) { var tmp = startAngle; startAngle = endAngle; endAngle = tmp; } this._renderTicks( seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise ); this._renderPointer( seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise ); this._renderTitle( seriesModel, ecModel, api, getColor, posInfo ); this._renderDetail( seriesModel, ecModel, api, getColor, posInfo ); }, _renderTicks: function ( seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise ) { var group = this.group; var cx = posInfo.cx; var cy = posInfo.cy; var r = posInfo.r; var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); var splitLineModel = seriesModel.getModel('splitLine'); var tickModel = seriesModel.getModel('axisTick'); var labelModel = seriesModel.getModel('axisLabel'); var splitNumber = seriesModel.get('splitNumber'); var subSplitNumber = tickModel.get('splitNumber'); var splitLineLen = parsePercent$1( splitLineModel.get('length'), r ); var tickLen = parsePercent$1( tickModel.get('length'), r ); var angle = startAngle; var step = (endAngle - startAngle) / splitNumber; var subStep = step / subSplitNumber; var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle(); var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle(); for (var i = 0; i <= splitNumber; i++) { var unitX = Math.cos(angle); var unitY = Math.sin(angle); // Split line if (splitLineModel.get('show')) { var splitLine = new Line({ shape: { x1: unitX * r + cx, y1: unitY * r + cy, x2: unitX * (r - splitLineLen) + cx, y2: unitY * (r - splitLineLen) + cy }, style: splitLineStyle, silent: true }); if (splitLineStyle.stroke === 'auto') { splitLine.setStyle({ stroke: getColor(i / splitNumber) }); } group.add(splitLine); } // Label if (labelModel.get('show')) { var label = formatLabel( round$1(i / splitNumber * (maxVal - minVal) + minVal), labelModel.get('formatter') ); var distance = labelModel.get('distance'); var autoColor = getColor(i / splitNumber); group.add(new Text({ style: setTextStyle({}, labelModel, { text: label, x: unitX * (r - splitLineLen - distance) + cx, y: unitY * (r - splitLineLen - distance) + cy, textVerticalAlign: unitY < -0.4 ? 'top' : (unitY > 0.4 ? 'bottom' : 'middle'), textAlign: unitX < -0.4 ? 'left' : (unitX > 0.4 ? 'right' : 'center') }, {autoColor: autoColor}), silent: true })); } // Axis tick if (tickModel.get('show') && i !== splitNumber) { for (var j = 0; j <= subSplitNumber; j++) { var unitX = Math.cos(angle); var unitY = Math.sin(angle); var tickLine = new Line({ shape: { x1: unitX * r + cx, y1: unitY * r + cy, x2: unitX * (r - tickLen) + cx, y2: unitY * (r - tickLen) + cy }, silent: true, style: tickLineStyle }); if (tickLineStyle.stroke === 'auto') { tickLine.setStyle({ stroke: getColor((i + j / subSplitNumber) / splitNumber) }); } group.add(tickLine); angle += subStep; } angle -= subStep; } else { angle += step; } } }, _renderPointer: function ( seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise ) { var group = this.group; var oldData = this._data; if (!seriesModel.get('pointer.show')) { // Remove old element oldData && oldData.eachItemGraphicEl(function (el) { group.remove(el); }); return; } var valueExtent = [+seriesModel.get('min'), +seriesModel.get('max')]; var angleExtent = [startAngle, endAngle]; var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); data.diff(oldData) .add(function (idx) { var pointer = new PointerPath({ shape: { angle: startAngle } }); initProps(pointer, { shape: { angle: linearMap(data.get(valueDim, idx), valueExtent, angleExtent, true) } }, seriesModel); group.add(pointer); data.setItemGraphicEl(idx, pointer); }) .update(function (newIdx, oldIdx) { var pointer = oldData.getItemGraphicEl(oldIdx); updateProps(pointer, { shape: { angle: linearMap(data.get(valueDim, newIdx), valueExtent, angleExtent, true) } }, seriesModel); group.add(pointer); data.setItemGraphicEl(newIdx, pointer); }) .remove(function (idx) { var pointer = oldData.getItemGraphicEl(idx); group.remove(pointer); }) .execute(); data.eachItemGraphicEl(function (pointer, idx) { var itemModel = data.getItemModel(idx); var pointerModel = itemModel.getModel('pointer'); pointer.setShape({ x: posInfo.cx, y: posInfo.cy, width: parsePercent$1( pointerModel.get('width'), posInfo.r ), r: parsePercent$1(pointerModel.get('length'), posInfo.r) }); pointer.useStyle(itemModel.getModel('itemStyle').getItemStyle()); if (pointer.style.fill === 'auto') { pointer.setStyle('fill', getColor( linearMap(data.get(valueDim, idx), valueExtent, [0, 1], true) )); } setHoverStyle( pointer, itemModel.getModel('emphasis.itemStyle').getItemStyle() ); }); this._data = data; }, _renderTitle: function ( seriesModel, ecModel, api, getColor, posInfo ) { var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var titleModel = seriesModel.getModel('title'); if (titleModel.get('show')) { var offsetCenter = titleModel.get('offsetCenter'); var x = posInfo.cx + parsePercent$1(offsetCenter[0], posInfo.r); var y = posInfo.cy + parsePercent$1(offsetCenter[1], posInfo.r); var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); var value = seriesModel.getData().get(valueDim, 0); var autoColor = getColor( linearMap(value, [minVal, maxVal], [0, 1], true) ); this.group.add(new Text({ silent: true, style: setTextStyle({}, titleModel, { x: x, y: y, // FIXME First data name ? text: data.getName(0), textAlign: 'center', textVerticalAlign: 'middle' }, {autoColor: autoColor, forceRich: true}) })); } }, _renderDetail: function ( seriesModel, ecModel, api, getColor, posInfo ) { var detailModel = seriesModel.getModel('detail'); var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); if (detailModel.get('show')) { var offsetCenter = detailModel.get('offsetCenter'); var x = posInfo.cx + parsePercent$1(offsetCenter[0], posInfo.r); var y = posInfo.cy + parsePercent$1(offsetCenter[1], posInfo.r); var width = parsePercent$1(detailModel.get('width'), posInfo.r); var height = parsePercent$1(detailModel.get('height'), posInfo.r); var data = seriesModel.getData(); var value = data.get(data.mapDimension('value'), 0); var autoColor = getColor( linearMap(value, [minVal, maxVal], [0, 1], true) ); this.group.add(new Text({ silent: true, style: setTextStyle({}, detailModel, { x: x, y: y, text: formatLabel( // FIXME First data name ? value, detailModel.get('formatter') ), textWidth: isNaN(width) ? null : width, textHeight: isNaN(height) ? null : height, textAlign: 'center', textVerticalAlign: 'middle' }, {autoColor: autoColor, forceRich: true}) })); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var FunnelSeries = extendSeriesModel({ type: 'series.funnel', init: function (option) { FunnelSeries.superApply(this, 'init', arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendDataProvider = function () { return this.getRawData(); }; // Extend labelLine emphasis this._defaultLabelLine(option); }, getInitialData: function (option, ecModel) { return createListSimply(this, ['value']); }, _defaultLabelLine: function (option) { // Extend labelLine emphasis defaultEmphasis(option, 'labelLine', ['show']); var labelLineNormalOpt = option.labelLine; var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false` labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show; labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show; }, // Overwrite getDataParams: function (dataIndex) { var data = this.getData(); var params = FunnelSeries.superCall(this, 'getDataParams', dataIndex); var valueDim = data.mapDimension('value'); var sum = data.getSum(valueDim); // Percent is 0 if sum is 0 params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) / sum * 100).toFixed(2); params.$vars.push('percent'); return params; }, defaultOption: { zlevel: 0, // 一级层叠 z: 2, // 二级层叠 legendHoverLink: true, left: 80, top: 60, right: 80, bottom: 60, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, // 默认取数据最小最大值 // min: 0, // max: 100, minSize: '0%', maxSize: '100%', sort: 'descending', // 'ascending', 'descending' gap: 0, funnelAlign: 'center', label: { show: true, position: 'outer' // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 }, labelLine: { show: true, length: 20, lineStyle: { // color: 各异, width: 1, type: 'solid' } }, itemStyle: { // color: 各异, borderColor: '#fff', borderWidth: 1 }, emphasis: { label: { show: true } } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Piece of pie including Sector, Label, LabelLine * @constructor * @extends {module:zrender/graphic/Group} */ function FunnelPiece(data, idx) { Group.call(this); var polygon = new Polygon(); var labelLine = new Polyline(); var text = new Text(); this.add(polygon); this.add(labelLine); this.add(text); this.highDownOnUpdate = function (fromState, toState) { if (toState === 'emphasis') { labelLine.ignore = labelLine.hoverIgnore; text.ignore = text.hoverIgnore; } else { labelLine.ignore = labelLine.normalIgnore; text.ignore = text.normalIgnore; } }; this.updateData(data, idx, true); } var funnelPieceProto = FunnelPiece.prototype; var opacityAccessPath = ['itemStyle', 'opacity']; funnelPieceProto.updateData = function (data, idx, firstCreate) { var polygon = this.childAt(0); var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var opacity = data.getItemModel(idx).get(opacityAccessPath); opacity = opacity == null ? 1 : opacity; // Reset style polygon.useStyle({}); if (firstCreate) { polygon.setShape({ points: layout.points }); polygon.setStyle({opacity: 0}); initProps(polygon, { style: { opacity: opacity } }, seriesModel, idx); } else { updateProps(polygon, { style: { opacity: opacity }, shape: { points: layout.points } }, seriesModel, idx); } // Update common style var itemStyleModel = itemModel.getModel('itemStyle'); var visualColor = data.getItemVisual(idx, 'color'); polygon.setStyle( defaults( { lineJoin: 'round', fill: visualColor }, itemStyleModel.getItemStyle(['opacity']) ) ); polygon.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle(); this._updateLabel(data, idx); setHoverStyle(this); }; funnelPieceProto._updateLabel = function (data, idx) { var labelLine = this.childAt(1); var labelText = this.childAt(2); var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var labelLayout = layout.label; var visualColor = data.getItemVisual(idx, 'color'); updateProps(labelLine, { shape: { points: labelLayout.linePoints || labelLayout.linePoints } }, seriesModel, idx); updateProps(labelText, { style: { x: labelLayout.x, y: labelLayout.y } }, seriesModel, idx); labelText.attr({ rotation: labelLayout.rotation, origin: [labelLayout.x, labelLayout.y], z2: 10 }); var labelModel = itemModel.getModel('label'); var labelHoverModel = itemModel.getModel('emphasis.label'); var labelLineModel = itemModel.getModel('labelLine'); var labelLineHoverModel = itemModel.getModel('emphasis.labelLine'); var visualColor = data.getItemVisual(idx, 'color'); setLabelStyle( labelText.style, labelText.hoverStyle = {}, labelModel, labelHoverModel, { labelFetcher: data.hostModel, labelDataIndex: idx, defaultText: data.getName(idx), autoColor: visualColor, useInsideStyle: !!labelLayout.inside }, { textAlign: labelLayout.textAlign, textVerticalAlign: labelLayout.verticalAlign } ); labelText.ignore = labelText.normalIgnore = !labelModel.get('show'); labelText.hoverIgnore = !labelHoverModel.get('show'); labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show'); labelLine.hoverIgnore = !labelLineHoverModel.get('show'); // Default use item visual color labelLine.setStyle({ stroke: visualColor }); labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle()); labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle(); }; inherits(FunnelPiece, Group); var FunnelView = Chart.extend({ type: 'funnel', render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var oldData = this._data; var group = this.group; data.diff(oldData) .add(function (idx) { var funnelPiece = new FunnelPiece(data, idx); data.setItemGraphicEl(idx, funnelPiece); group.add(funnelPiece); }) .update(function (newIdx, oldIdx) { var piePiece = oldData.getItemGraphicEl(oldIdx); piePiece.updateData(data, newIdx); group.add(piePiece); data.setItemGraphicEl(newIdx, piePiece); }) .remove(function (idx) { var piePiece = oldData.getItemGraphicEl(idx); group.remove(piePiece); }) .execute(); this._data = data; }, remove: function () { this.group.removeAll(); this._data = null; }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getViewRect$2(seriesModel, api) { return getLayoutRect( seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() } ); } function getSortedIndices(data, sort) { var valueDim = data.mapDimension('value'); var valueArr = data.mapArray(valueDim, function (val) { return val; }); var indices = []; var isAscending = sort === 'ascending'; for (var i = 0, len = data.count(); i < len; i++) { indices[i] = i; } // Add custom sortable function & none sortable opetion by "options.sort" if (typeof sort === 'function') { indices.sort(sort); } else if (sort !== 'none') { indices.sort(function (a, b) { return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a]; }); } return indices; } function labelLayout$1(data) { data.each(function (idx) { var itemModel = data.getItemModel(idx); var labelModel = itemModel.getModel('label'); var labelPosition = labelModel.get('position'); var labelLineModel = itemModel.getModel('labelLine'); var layout = data.getItemLayout(idx); var points = layout.points; var isLabelInside = labelPosition === 'inner' || labelPosition === 'inside' || labelPosition === 'center' || labelPosition === 'insideLeft' || labelPosition === 'insideRight'; var textAlign; var textX; var textY; var linePoints; if (isLabelInside) { if (labelPosition === 'insideLeft') { textX = (points[0][0] + points[3][0]) / 2 + 5; textY = (points[0][1] + points[3][1]) / 2; textAlign = 'left'; } else if (labelPosition === 'insideRight') { textX = (points[1][0] + points[2][0]) / 2 - 5; textY = (points[1][1] + points[2][1]) / 2; textAlign = 'right'; } else { textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4; textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4; textAlign = 'center'; } linePoints = [ [textX, textY], [textX, textY] ]; } else { var x1; var y1; var x2; var labelLineLen = labelLineModel.get('length'); if (labelPosition === 'left') { // Left side x1 = (points[3][0] + points[0][0]) / 2; y1 = (points[3][1] + points[0][1]) / 2; x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } else if (labelPosition === 'right') { // Right side x1 = (points[1][0] + points[2][0]) / 2; y1 = (points[1][1] + points[2][1]) / 2; x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'left'; } else if (labelPosition === 'rightTop') { // RightTop side x1 = points[1][0]; y1 = points[1][1]; x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'top'; } else if (labelPosition === 'rightBottom') { // RightBottom side x1 = points[2][0]; y1 = points[2][1]; x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'bottom'; } else if (labelPosition === 'leftTop') { // LeftTop side x1 = points[0][0]; y1 = points[1][1]; x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } else if (labelPosition === 'leftBottom') { // LeftBottom side x1 = points[3][0]; y1 = points[2][1]; x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } else { // Right side x1 = (points[1][0] + points[2][0]) / 2; y1 = (points[1][1] + points[2][1]) / 2; x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'left'; } var y2 = y1; linePoints = [[x1, y1], [x2, y2]]; textY = y2; } layout.label = { linePoints: linePoints, x: textX, y: textY, verticalAlign: 'middle', textAlign: textAlign, inside: isLabelInside }; }); } var funnelLayout = function (ecModel, api, payload) { ecModel.eachSeriesByType('funnel', function (seriesModel) { var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var sort = seriesModel.get('sort'); var viewRect = getViewRect$2(seriesModel, api); var indices = getSortedIndices(data, sort); var sizeExtent = [ parsePercent$1(seriesModel.get('minSize'), viewRect.width), parsePercent$1(seriesModel.get('maxSize'), viewRect.width) ]; var dataExtent = data.getDataExtent(valueDim); var min = seriesModel.get('min'); var max = seriesModel.get('max'); if (min == null) { min = Math.min(dataExtent[0], 0); } if (max == null) { max = dataExtent[1]; } var funnelAlign = seriesModel.get('funnelAlign'); var gap = seriesModel.get('gap'); var itemHeight = (viewRect.height - gap * (data.count() - 1)) / data.count(); var y = viewRect.y; var getLinePoints = function (idx, offY) { // End point index is data.count() and we assign it 0 var val = data.get(valueDim, idx) || 0; var itemWidth = linearMap(val, [min, max], sizeExtent, true); var x0; switch (funnelAlign) { case 'left': x0 = viewRect.x; break; case 'center': x0 = viewRect.x + (viewRect.width - itemWidth) / 2; break; case 'right': x0 = viewRect.x + viewRect.width - itemWidth; break; } return [ [x0, offY], [x0 + itemWidth, offY] ]; }; if (sort === 'ascending') { // From bottom to top itemHeight = -itemHeight; gap = -gap; y += viewRect.height; indices = indices.reverse(); } for (var i = 0; i < indices.length; i++) { var idx = indices[i]; var nextIdx = indices[i + 1]; var itemModel = data.getItemModel(idx); var height = itemModel.get('itemStyle.height'); if (height == null) { height = itemHeight; } else { height = parsePercent$1(height, viewRect.height); if (sort === 'ascending') { height = -height; } } var start = getLinePoints(idx, y); var end = getLinePoints(nextIdx, y + height); y += height + gap; data.setItemLayout(idx, { points: start.concat(end.slice().reverse()) }); } labelLayout$1(data); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(dataColor('funnel')); registerLayout(funnelLayout); registerProcessor(dataFilter('funnel')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var parallelPreprocessor = function (option) { createParallelIfNeeded(option); mergeAxisOptionFromParallel(option); }; /** * Create a parallel coordinate if not exists. * @inner */ function createParallelIfNeeded(option) { if (option.parallel) { return; } var hasParallelSeries = false; each$1(option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'parallel') { hasParallelSeries = true; } }); if (hasParallelSeries) { option.parallel = [{}]; } } /** * Merge aixs definition from parallel option (if exists) to axis option. * @inner */ function mergeAxisOptionFromParallel(option) { var axes = normalizeToArray(option.parallelAxis); each$1(axes, function (axisOption) { if (!isObject$1(axisOption)) { return; } var parallelIndex = axisOption.parallelIndex || 0; var parallelOption = normalizeToArray(option.parallel)[parallelIndex]; if (parallelOption && parallelOption.parallelAxisDefault) { merge(axisOption, parallelOption.parallelAxisDefault, false); } }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @constructor module:echarts/coord/parallel/ParallelAxis * @extends {module:echarts/coord/Axis} * @param {string} dim * @param {*} scale * @param {Array.} coordExtent * @param {string} axisType */ var ParallelAxis = function (dim, scale, coordExtent, axisType, axisIndex) { Axis.call(this, dim, scale, coordExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = axisType || 'value'; /** * @type {number} * @readOnly */ this.axisIndex = axisIndex; }; ParallelAxis.prototype = { constructor: ParallelAxis, /** * Axis model * @param {module:echarts/coord/parallel/AxisModel} */ model: null, /** * @override */ isHorizontal: function () { return this.coordinateSystem.getModel().get('layout') !== 'horizontal'; } }; inherits(ParallelAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Calculate slider move result. * Usage: * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`. * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`. * * @param {number} delta Move length. * @param {Array.} handleEnds handleEnds[0] can be bigger then handleEnds[1]. * handleEnds will be modified in this method. * @param {Array.} extent handleEnds is restricted by extent. * extent[0] should less or equals than extent[1]. * @param {number|string} handleIndex Can be 'all', means that both move the two handleEnds. * @param {number} [minSpan] The range of dataZoom can not be smaller than that. * If not set, handle0 and cross handle1. If set as a non-negative * number (including `0`), handles will push each other when reaching * the minSpan. * @param {number} [maxSpan] The range of dataZoom can not be larger than that. * @return {Array.} The input handleEnds. */ var sliderMove = function (delta, handleEnds, extent, handleIndex, minSpan, maxSpan) { delta = delta || 0; var extentSpan = extent[1] - extent[0]; // Notice maxSpan and minSpan can be null/undefined. if (minSpan != null) { minSpan = restrict$1(minSpan, [0, extentSpan]); } if (maxSpan != null) { maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0); } if (handleIndex === 'all') { var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]); handleSpan = restrict$1(handleSpan, [0, extentSpan]); minSpan = maxSpan = restrict$1(handleSpan, [minSpan, maxSpan]); handleIndex = 0; } handleEnds[0] = restrict$1(handleEnds[0], extent); handleEnds[1] = restrict$1(handleEnds[1], extent); var originalDistSign = getSpanSign(handleEnds, handleIndex); handleEnds[handleIndex] += delta; // Restrict in extent. var extentMinSpan = minSpan || 0; var realExtent = extent.slice(); originalDistSign.sign < 0 ? (realExtent[0] += extentMinSpan) : (realExtent[1] -= extentMinSpan); handleEnds[handleIndex] = restrict$1(handleEnds[handleIndex], realExtent); // Expand span. var currDistSign = getSpanSign(handleEnds, handleIndex); if (minSpan != null && ( currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan )) { // If minSpan exists, 'cross' is forbidden. handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan; } // Shrink span. var currDistSign = getSpanSign(handleEnds, handleIndex); if (maxSpan != null && currDistSign.span > maxSpan) { handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan; } return handleEnds; }; function getSpanSign(handleEnds, handleIndex) { var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex]; // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0] // is at left of handleEnds[1] for non-cross case. return {span: Math.abs(dist), sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1}; } function restrict$1(value, extend) { return Math.min( extend[1] != null ? extend[1] : Infinity, Math.max(extend[0] != null ? extend[0] : -Infinity, value) ); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parallel Coordinates * */ var each$11 = each$1; var mathMin$5 = Math.min; var mathMax$5 = Math.max; var mathFloor$2 = Math.floor; var mathCeil$2 = Math.ceil; var round$2 = round$1; var PI$4 = Math.PI; function Parallel(parallelModel, ecModel, api) { /** * key: dimension * @type {Object.} * @private */ this._axesMap = createHashMap(); /** * key: dimension * value: {position: [], rotation, } * @type {Object.} * @private */ this._axesLayout = {}; /** * Always follow axis order. * @type {Array.} * @readOnly */ this.dimensions = parallelModel.dimensions; /** * @type {module:zrender/core/BoundingRect} */ this._rect; /** * @type {module:echarts/coord/parallel/ParallelModel} */ this._model = parallelModel; this._init(parallelModel, ecModel, api); } Parallel.prototype = { type: 'parallel', constructor: Parallel, /** * Initialize cartesian coordinate systems * @private */ _init: function (parallelModel, ecModel, api) { var dimensions = parallelModel.dimensions; var parallelAxisIndex = parallelModel.parallelAxisIndex; each$11(dimensions, function (dim, idx) { var axisIndex = parallelAxisIndex[idx]; var axisModel = ecModel.getComponent('parallelAxis', axisIndex); var axis = this._axesMap.set(dim, new ParallelAxis( dim, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisIndex )); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); // Injection axisModel.axis = axis; axis.model = axisModel; axis.coordinateSystem = axisModel.coordinateSystem = this; }, this); }, /** * Update axis scale after data processed * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ update: function (ecModel, api) { this._updateAxesFromSeries(this._model, ecModel); }, /** * @override */ containPoint: function (point) { var layoutInfo = this._makeLayoutInfo(); var axisBase = layoutInfo.axisBase; var layoutBase = layoutInfo.layoutBase; var pixelDimIndex = layoutInfo.pixelDimIndex; var pAxis = point[1 - pixelDimIndex]; var pLayout = point[pixelDimIndex]; return pAxis >= axisBase && pAxis <= axisBase + layoutInfo.axisLength && pLayout >= layoutBase && pLayout <= layoutBase + layoutInfo.layoutLength; }, getModel: function () { return this._model; }, /** * Update properties from series * @private */ _updateAxesFromSeries: function (parallelModel, ecModel) { ecModel.eachSeries(function (seriesModel) { if (!parallelModel.contains(seriesModel, ecModel)) { return; } var data = seriesModel.getData(); each$11(this.dimensions, function (dim) { var axis = this._axesMap.get(dim); axis.scale.unionExtentFromData(data, data.mapDimension(dim)); niceScaleExtent(axis.scale, axis.model); }, this); }, this); }, /** * Resize the parallel coordinate system. * @param {module:echarts/coord/parallel/ParallelModel} parallelModel * @param {module:echarts/ExtensionAPI} api */ resize: function (parallelModel, api) { this._rect = getLayoutRect( parallelModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() } ); this._layoutAxes(); }, /** * @return {module:zrender/core/BoundingRect} */ getRect: function () { return this._rect; }, /** * @private */ _makeLayoutInfo: function () { var parallelModel = this._model; var rect = this._rect; var xy = ['x', 'y']; var wh = ['width', 'height']; var layout = parallelModel.get('layout'); var pixelDimIndex = layout === 'horizontal' ? 0 : 1; var layoutLength = rect[wh[pixelDimIndex]]; var layoutExtent = [0, layoutLength]; var axisCount = this.dimensions.length; var axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent); var axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]); var axisExpandable = parallelModel.get('axisExpandable') && axisCount > 3 && axisCount > axisExpandCount && axisExpandCount > 1 && axisExpandWidth > 0 && layoutLength > 0; // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength], // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow), // where collapsed axes should be overlapped. var axisExpandWindow = parallelModel.get('axisExpandWindow'); var winSize; if (!axisExpandWindow) { winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent); var axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor$2(axisCount / 2); axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2]; axisExpandWindow[1] = axisExpandWindow[0] + winSize; } else { winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent); axisExpandWindow[1] = axisExpandWindow[0] + winSize; } var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount); // Avoid axisCollapseWidth is too small. axisCollapseWidth < 3 && (axisCollapseWidth = 0); // Find the first and last indices > ewin[0] and < ewin[1]. var winInnerIndices = [ mathFloor$2(round$2(axisExpandWindow[0] / axisExpandWidth, 1)) + 1, mathCeil$2(round$2(axisExpandWindow[1] / axisExpandWidth, 1)) - 1 ]; // Pos in ec coordinates. var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0]; return { layout: layout, pixelDimIndex: pixelDimIndex, layoutBase: rect[xy[pixelDimIndex]], layoutLength: layoutLength, axisBase: rect[xy[1 - pixelDimIndex]], axisLength: rect[wh[1 - pixelDimIndex]], axisExpandable: axisExpandable, axisExpandWidth: axisExpandWidth, axisCollapseWidth: axisCollapseWidth, axisExpandWindow: axisExpandWindow, axisCount: axisCount, winInnerIndices: winInnerIndices, axisExpandWindow0Pos: axisExpandWindow0Pos }; }, /** * @private */ _layoutAxes: function () { var rect = this._rect; var axes = this._axesMap; var dimensions = this.dimensions; var layoutInfo = this._makeLayoutInfo(); var layout = layoutInfo.layout; axes.each(function (axis) { var axisExtent = [0, layoutInfo.axisLength]; var idx = axis.inverse ? 1 : 0; axis.setExtent(axisExtent[idx], axisExtent[1 - idx]); }); each$11(dimensions, function (dim, idx) { var posInfo = (layoutInfo.axisExpandable ? layoutAxisWithExpand : layoutAxisWithoutExpand )(idx, layoutInfo); var positionTable = { horizontal: { x: posInfo.position, y: layoutInfo.axisLength }, vertical: { x: 0, y: posInfo.position } }; var rotationTable = { horizontal: PI$4 / 2, vertical: 0 }; var position = [ positionTable[layout].x + rect.x, positionTable[layout].y + rect.y ]; var rotation = rotationTable[layout]; var transform = create$1(); rotate(transform, transform, rotation); translate(transform, transform, position); // TODO // tick等排布信息。 // TODO // 根据axis order 更新 dimensions顺序。 this._axesLayout[dim] = { position: position, rotation: rotation, transform: transform, axisNameAvailableWidth: posInfo.axisNameAvailableWidth, axisLabelShow: posInfo.axisLabelShow, nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth, tickDirection: 1, labelDirection: 1 }; }, this); }, /** * Get axis by dim. * @param {string} dim * @return {module:echarts/coord/parallel/ParallelAxis} [description] */ getAxis: function (dim) { return this._axesMap.get(dim); }, /** * Convert a dim value of a single item of series data to Point. * @param {*} value * @param {string} dim * @return {Array} */ dataToPoint: function (value, dim) { return this.axisCoordToPoint( this._axesMap.get(dim).dataToCoord(value), dim ); }, /** * Travel data for one time, get activeState of each data item. * @param {module:echarts/data/List} data * @param {Functio} cb param: {string} activeState 'active' or 'inactive' or 'normal' * {number} dataIndex * @param {number} [start=0] the start dataIndex that travel from. * @param {number} [end=data.count()] the next dataIndex of the last dataIndex will be travel. */ eachActiveState: function (data, callback, start, end) { start == null && (start = 0); end == null && (end = data.count()); var axesMap = this._axesMap; var dimensions = this.dimensions; var dataDimensions = []; var axisModels = []; each$1(dimensions, function (axisDim) { dataDimensions.push(data.mapDimension(axisDim)); axisModels.push(axesMap.get(axisDim).model); }); var hasActiveSet = this.hasAxisBrushed(); for (var dataIndex = start; dataIndex < end; dataIndex++) { var activeState; if (!hasActiveSet) { activeState = 'normal'; } else { activeState = 'active'; var values = data.getValues(dataDimensions, dataIndex); for (var j = 0, lenj = dimensions.length; j < lenj; j++) { var state = axisModels[j].getActiveState(values[j]); if (state === 'inactive') { activeState = 'inactive'; break; } } } callback(activeState, dataIndex); } }, /** * Whether has any activeSet. * @return {boolean} */ hasAxisBrushed: function () { var dimensions = this.dimensions; var axesMap = this._axesMap; var hasActiveSet = false; for (var j = 0, lenj = dimensions.length; j < lenj; j++) { if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') { hasActiveSet = true; } } return hasActiveSet; }, /** * Convert coords of each axis to Point. * Return point. For example: [10, 20] * @param {Array.} coords * @param {string} dim * @return {Array.} */ axisCoordToPoint: function (coord, dim) { var axisLayout = this._axesLayout[dim]; return applyTransform$1([coord, 0], axisLayout.transform); }, /** * Get axis layout. */ getAxisLayout: function (dim) { return clone(this._axesLayout[dim]); }, /** * @param {Array.} point * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}. */ getSlidedAxisExpandWindow: function (point) { var layoutInfo = this._makeLayoutInfo(); var pixelDimIndex = layoutInfo.pixelDimIndex; var axisExpandWindow = layoutInfo.axisExpandWindow.slice(); var winSize = axisExpandWindow[1] - axisExpandWindow[0]; var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)]; // Out of the area of coordinate system. if (!this.containPoint(point)) { return {behavior: 'none', axisExpandWindow: axisExpandWindow}; } // Conver the point from global to expand coordinates. var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos; // For dragging operation convenience, the window should not be // slided when mouse is the center area of the window. var delta; var behavior = 'slide'; var axisCollapseWidth = layoutInfo.axisCollapseWidth; var triggerArea = this._model.get('axisExpandSlideTriggerArea'); // But consider touch device, jump is necessary. var useJump = triggerArea[0] != null; if (axisCollapseWidth) { if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) { behavior = 'jump'; delta = pointCoord - winSize * triggerArea[2]; } else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) { behavior = 'jump'; delta = pointCoord - winSize * (1 - triggerArea[2]); } else { (delta = pointCoord - winSize * triggerArea[1]) >= 0 && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0 && (delta = 0); } delta *= layoutInfo.axisExpandWidth / axisCollapseWidth; delta ? sliderMove(delta, axisExpandWindow, extent, 'all') // Avoid nonsense triger on mousemove. : (behavior = 'none'); } // When screen is too narrow, make it visible and slidable, although it is hard to interact. else { var winSize = axisExpandWindow[1] - axisExpandWindow[0]; var pos = extent[1] * pointCoord / winSize; axisExpandWindow = [mathMax$5(0, pos - winSize / 2)]; axisExpandWindow[1] = mathMin$5(extent[1], axisExpandWindow[0] + winSize); axisExpandWindow[0] = axisExpandWindow[1] - winSize; } return { axisExpandWindow: axisExpandWindow, behavior: behavior }; } }; function restrict(len, extent) { return mathMin$5(mathMax$5(len, extent[0]), extent[1]); } function layoutAxisWithoutExpand(axisIndex, layoutInfo) { var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1); return { position: step * axisIndex, axisNameAvailableWidth: step, axisLabelShow: true }; } function layoutAxisWithExpand(axisIndex, layoutInfo) { var layoutLength = layoutInfo.layoutLength; var axisExpandWidth = layoutInfo.axisExpandWidth; var axisCount = layoutInfo.axisCount; var axisCollapseWidth = layoutInfo.axisCollapseWidth; var winInnerIndices = layoutInfo.winInnerIndices; var position; var axisNameAvailableWidth = axisCollapseWidth; var axisLabelShow = false; var nameTruncateMaxWidth; if (axisIndex < winInnerIndices[0]) { position = axisIndex * axisCollapseWidth; nameTruncateMaxWidth = axisCollapseWidth; } else if (axisIndex <= winInnerIndices[1]) { position = layoutInfo.axisExpandWindow0Pos + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0]; axisNameAvailableWidth = axisExpandWidth; axisLabelShow = true; } else { position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth; nameTruncateMaxWidth = axisCollapseWidth; } return { position: position, axisNameAvailableWidth: axisNameAvailableWidth, axisLabelShow: axisLabelShow, nameTruncateMaxWidth: nameTruncateMaxWidth }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parallel coordinate system creater. */ function create$2(ecModel, api) { var coordSysList = []; ecModel.eachComponent('parallel', function (parallelModel, idx) { var coordSys = new Parallel(parallelModel, ecModel, api); coordSys.name = 'parallel_' + idx; coordSys.resize(parallelModel, api); parallelModel.coordinateSystem = coordSys; coordSys.model = parallelModel; coordSysList.push(coordSys); }); // Inject the coordinateSystems into seriesModel ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'parallel') { var parallelModel = ecModel.queryComponents({ mainType: 'parallel', index: seriesModel.get('parallelIndex'), id: seriesModel.get('parallelId') })[0]; seriesModel.coordinateSystem = parallelModel.coordinateSystem; } }); return coordSysList; } CoordinateSystemManager.register('parallel', {create: create$2}); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisModel$2 = ComponentModel.extend({ type: 'baseParallelAxis', /** * @type {module:echarts/coord/parallel/Axis} */ axis: null, /** * @type {Array.} * @readOnly */ activeIntervals: [], /** * @return {Object} */ getAreaSelectStyle: function () { return makeStyleMapper( [ ['fill', 'color'], ['lineWidth', 'borderWidth'], ['stroke', 'borderColor'], ['width', 'width'], ['opacity', 'opacity'] ] )(this.getModel('areaSelectStyle')); }, /** * The code of this feature is put on AxisModel but not ParallelAxis, * because axisModel can be alive after echarts updating but instance of * ParallelAxis having been disposed. this._activeInterval should be kept * when action dispatched (i.e. legend click). * * @param {Array.>} intervals interval.length === 0 * means set all active. * @public */ setActiveIntervals: function (intervals) { var activeIntervals = this.activeIntervals = clone(intervals); // Normalize if (activeIntervals) { for (var i = activeIntervals.length - 1; i >= 0; i--) { asc(activeIntervals[i]); } } }, /** * @param {number|string} [value] When attempting to detect 'no activeIntervals set', * value can not be input. * @return {string} 'normal': no activeIntervals set, * 'active', * 'inactive'. * @public */ getActiveState: function (value) { var activeIntervals = this.activeIntervals; if (!activeIntervals.length) { return 'normal'; } if (value == null || isNaN(value)) { return 'inactive'; } // Simple optimization if (activeIntervals.length === 1) { var interval = activeIntervals[0]; if (interval[0] <= value && value <= interval[1]) { return 'active'; } } else { for (var i = 0, len = activeIntervals.length; i < len; i++) { if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) { return 'active'; } } } return 'inactive'; } }); var defaultOption$1 = { type: 'value', /** * @type {Array.} */ dim: null, // 0, 1, 2, ... // parallelIndex: null, areaSelectStyle: { width: 20, borderWidth: 1, borderColor: 'rgba(160,197,232)', color: 'rgba(160,197,232)', opacity: 0.3 }, realtime: true, // Whether realtime update view when select. z: 10 }; merge(AxisModel$2.prototype, axisModelCommonMixin); function getAxisType$1(axisName, option) { return option.type || (option.data ? 'category' : 'value'); } axisModelCreator('parallel', AxisModel$2, getAxisType$1, defaultOption$1); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ComponentModel.extend({ type: 'parallel', dependencies: ['parallelAxis'], /** * @type {module:echarts/coord/parallel/Parallel} */ coordinateSystem: null, /** * Each item like: 'dim0', 'dim1', 'dim2', ... * @type {Array.} * @readOnly */ dimensions: null, /** * Coresponding to dimensions. * @type {Array.} * @readOnly */ parallelAxisIndex: null, layoutMode: 'box', defaultOption: { zlevel: 0, z: 0, left: 80, top: 60, right: 80, bottom: 60, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, layout: 'horizontal', // 'horizontal' or 'vertical' // FIXME // naming? axisExpandable: false, axisExpandCenter: null, axisExpandCount: 0, axisExpandWidth: 50, // FIXME '10%' ? axisExpandRate: 17, axisExpandDebounce: 50, // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full. // Do not doc to user until necessary. axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4], axisExpandTriggerOn: 'click', // 'mousemove' or 'click' parallelAxisDefault: null }, /** * @override */ init: function () { ComponentModel.prototype.init.apply(this, arguments); this.mergeOption({}); }, /** * @override */ mergeOption: function (newOption) { var thisOption = this.option; newOption && merge(thisOption, newOption, true); this._initDimensions(); }, /** * Whether series or axis is in this coordinate system. * @param {module:echarts/model/Series|module:echarts/coord/parallel/AxisModel} model * @param {module:echarts/model/Global} ecModel */ contains: function (model, ecModel) { var parallelIndex = model.get('parallelIndex'); return parallelIndex != null && ecModel.getComponent('parallel', parallelIndex) === this; }, setAxisExpand: function (opt) { each$1( ['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'], function (name) { if (opt.hasOwnProperty(name)) { this.option[name] = opt[name]; } }, this ); }, /** * @private */ _initDimensions: function () { var dimensions = this.dimensions = []; var parallelAxisIndex = this.parallelAxisIndex = []; var axisModels = filter(this.dependentModels.parallelAxis, function (axisModel) { // Can not use this.contains here, because // initialization has not been completed yet. return (axisModel.get('parallelIndex') || 0) === this.componentIndex; }, this); each$1(axisModels, function (axisModel) { dimensions.push('dim' + axisModel.get('dim')); parallelAxisIndex.push(axisModel.componentIndex); }); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @payload * @property {string} parallelAxisId * @property {Array.>} intervals */ var actionInfo$1 = { type: 'axisAreaSelect', event: 'axisAreaSelected' // update: 'updateVisual' }; registerAction(actionInfo$1, function (payload, ecModel) { ecModel.eachComponent( {mainType: 'parallelAxis', query: payload}, function (parallelAxisModel) { parallelAxisModel.axis.model.setActiveIntervals(payload.intervals); } ); }); /** * @payload */ registerAction('parallelAxisExpand', function (payload, ecModel) { ecModel.eachComponent( {mainType: 'parallel', query: payload}, function (parallelModel) { parallelModel.setAxisExpand(payload); } ); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var curry$2 = curry; var each$12 = each$1; var map$2 = map; var mathMin$6 = Math.min; var mathMax$6 = Math.max; var mathPow$2 = Math.pow; var COVER_Z = 10000; var UNSELECT_THRESHOLD = 6; var MIN_RESIZE_LINE_WIDTH = 6; var MUTEX_RESOURCE_KEY = 'globalPan'; var DIRECTION_MAP = { w: [0, 0], e: [0, 1], n: [1, 0], s: [1, 1] }; var CURSOR_MAP = { w: 'ew', e: 'ew', n: 'ns', s: 'ns', ne: 'nesw', sw: 'nesw', nw: 'nwse', se: 'nwse' }; var DEFAULT_BRUSH_OPT = { brushStyle: { lineWidth: 2, stroke: 'rgba(0,0,0,0.3)', fill: 'rgba(0,0,0,0.1)' }, transformable: true, brushMode: 'single', removeOnClick: false }; var baseUID = 0; /** * @alias module:echarts/component/helper/BrushController * @constructor * @mixin {module:zrender/mixin/Eventful} * @event module:echarts/component/helper/BrushController#brush * params: * areas: Array., coord relates to container group, * If no container specified, to global. * opt { * isEnd: boolean, * removeOnClick: boolean * } * * @param {module:zrender/zrender~ZRender} zr */ function BrushController(zr) { if (__DEV__) { assert$1(zr); } Eventful.call(this); /** * @type {module:zrender/zrender~ZRender} * @private */ this._zr = zr; /** * @type {module:zrender/container/Group} * @readOnly */ this.group = new Group(); /** * Only for drawing (after enabledBrush). * 'line', 'rect', 'polygon' or false * If passing false/null/undefined, disable brush. * If passing 'auto', determined by panel.defaultBrushType * @private * @type {string} */ this._brushType; /** * Only for drawing (after enabledBrush). * * @private * @type {Object} */ this._brushOption; /** * @private * @type {Object} */ this._panels; /** * @private * @type {Array.} */ this._track = []; /** * @private * @type {boolean} */ this._dragging; /** * @private * @type {Array} */ this._covers = []; /** * @private * @type {moudule:zrender/container/Group} */ this._creatingCover; /** * `true` means global panel * @private * @type {module:zrender/container/Group|boolean} */ this._creatingPanel; /** * @private * @type {boolean} */ this._enableGlobalPan; /** * @private * @type {boolean} */ if (__DEV__) { this._mounted; } /** * @private * @type {string} */ this._uid = 'brushController_' + baseUID++; /** * @private * @type {Object} */ this._handlers = {}; each$12(mouseHandlers, function (handler, eventName) { this._handlers[eventName] = bind(handler, this); }, this); } BrushController.prototype = { constructor: BrushController, /** * If set to null/undefined/false, select disabled. * @param {Object} brushOption * @param {string|boolean} brushOption.brushType 'line', 'rect', 'polygon' or false * If passing false/null/undefined, disable brush. * If passing 'auto', determined by panel.defaultBrushType. * ('auto' can not be used in global panel) * @param {number} [brushOption.brushMode='single'] 'single' or 'multiple' * @param {boolean} [brushOption.transformable=true] * @param {boolean} [brushOption.removeOnClick=false] * @param {Object} [brushOption.brushStyle] * @param {number} [brushOption.brushStyle.width] * @param {number} [brushOption.brushStyle.lineWidth] * @param {string} [brushOption.brushStyle.stroke] * @param {string} [brushOption.brushStyle.fill] * @param {number} [brushOption.z] */ enableBrush: function (brushOption) { if (__DEV__) { assert$1(this._mounted); } this._brushType && doDisableBrush(this); brushOption.brushType && doEnableBrush(this, brushOption); return this; }, /** * @param {Array.} panelOpts If not pass, it is global brush. * Each items: { * panelId, // mandatory. * clipPath, // mandatory. function. * isTargetByCursor, // mandatory. function. * defaultBrushType, // optional, only used when brushType is 'auto'. * getLinearBrushOtherExtent, // optional. function. * } */ setPanels: function (panelOpts) { if (panelOpts && panelOpts.length) { var panels = this._panels = {}; each$1(panelOpts, function (panelOpts) { panels[panelOpts.panelId] = clone(panelOpts); }); } else { this._panels = null; } return this; }, /** * @param {Object} [opt] * @return {boolean} [opt.enableGlobalPan=false] */ mount: function (opt) { opt = opt || {}; if (__DEV__) { this._mounted = true; // should be at first. } this._enableGlobalPan = opt.enableGlobalPan; var thisGroup = this.group; this._zr.add(thisGroup); thisGroup.attr({ position: opt.position || [0, 0], rotation: opt.rotation || 0, scale: opt.scale || [1, 1] }); this._transform = thisGroup.getLocalTransform(); return this; }, eachCover: function (cb, context) { each$12(this._covers, cb, context); }, /** * Update covers. * @param {Array.} brushOptionList Like: * [ * {id: 'xx', brushType: 'line', range: [23, 44], brushStyle, transformable}, * {id: 'yy', brushType: 'rect', range: [[23, 44], [23, 54]]}, * ... * ] * `brushType` is required in each cover info. (can not be 'auto') * `id` is not mandatory. * `brushStyle`, `transformable` is not mandatory, use DEFAULT_BRUSH_OPT by default. * If brushOptionList is null/undefined, all covers removed. */ updateCovers: function (brushOptionList) { if (__DEV__) { assert$1(this._mounted); } brushOptionList = map(brushOptionList, function (brushOption) { return merge(clone(DEFAULT_BRUSH_OPT), brushOption, true); }); var tmpIdPrefix = '\0-brush-index-'; var oldCovers = this._covers; var newCovers = this._covers = []; var controller = this; var creatingCover = this._creatingCover; (new DataDiffer(oldCovers, brushOptionList, oldGetKey, getKey)) .add(addOrUpdate) .update(addOrUpdate) .remove(remove) .execute(); return this; function getKey(brushOption, index) { return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index) + '-' + brushOption.brushType; } function oldGetKey(cover, index) { return getKey(cover.__brushOption, index); } function addOrUpdate(newIndex, oldIndex) { var newBrushOption = brushOptionList[newIndex]; // Consider setOption in event listener of brushSelect, // where updating cover when creating should be forbiden. if (oldIndex != null && oldCovers[oldIndex] === creatingCover) { newCovers[newIndex] = oldCovers[oldIndex]; } else { var cover = newCovers[newIndex] = oldIndex != null ? ( oldCovers[oldIndex].__brushOption = newBrushOption, oldCovers[oldIndex] ) : endCreating(controller, createCover(controller, newBrushOption)); updateCoverAfterCreation(controller, cover); } } function remove(oldIndex) { if (oldCovers[oldIndex] !== creatingCover) { controller.group.remove(oldCovers[oldIndex]); } } }, unmount: function () { if (__DEV__) { if (!this._mounted) { return; } } this.enableBrush(false); // container may 'removeAll' outside. clearCovers(this); this._zr.remove(this.group); if (__DEV__) { this._mounted = false; // should be at last. } return this; }, dispose: function () { this.unmount(); this.off(); } }; mixin(BrushController, Eventful); function doEnableBrush(controller, brushOption) { var zr = controller._zr; // Consider roam, which takes globalPan too. if (!controller._enableGlobalPan) { take(zr, MUTEX_RESOURCE_KEY, controller._uid); } each$12(controller._handlers, function (handler, eventName) { zr.on(eventName, handler); }); controller._brushType = brushOption.brushType; controller._brushOption = merge(clone(DEFAULT_BRUSH_OPT), brushOption, true); } function doDisableBrush(controller) { var zr = controller._zr; release(zr, MUTEX_RESOURCE_KEY, controller._uid); each$12(controller._handlers, function (handler, eventName) { zr.off(eventName, handler); }); controller._brushType = controller._brushOption = null; } function createCover(controller, brushOption) { var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption); cover.__brushOption = brushOption; updateZ$1(cover, brushOption); controller.group.add(cover); return cover; } function endCreating(controller, creatingCover) { var coverRenderer = getCoverRenderer(creatingCover); if (coverRenderer.endCreating) { coverRenderer.endCreating(controller, creatingCover); updateZ$1(creatingCover, creatingCover.__brushOption); } return creatingCover; } function updateCoverShape(controller, cover) { var brushOption = cover.__brushOption; getCoverRenderer(cover).updateCoverShape( controller, cover, brushOption.range, brushOption ); } function updateZ$1(cover, brushOption) { var z = brushOption.z; z == null && (z = COVER_Z); cover.traverse(function (el) { el.z = z; el.z2 = z; // Consider in given container. }); } function updateCoverAfterCreation(controller, cover) { getCoverRenderer(cover).updateCommon(controller, cover); updateCoverShape(controller, cover); } function getCoverRenderer(cover) { return coverRenderers[cover.__brushOption.brushType]; } // return target panel or `true` (means global panel) function getPanelByPoint(controller, e, localCursorPoint) { var panels = controller._panels; if (!panels) { return true; // Global panel } var panel; var transform = controller._transform; each$12(panels, function (pn) { pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn); }); return panel; } // Return a panel or true function getPanelByCover(controller, cover) { var panels = controller._panels; if (!panels) { return true; // Global panel } var panelId = cover.__brushOption.panelId; // User may give cover without coord sys info, // which is then treated as global panel. return panelId != null ? panels[panelId] : true; } function clearCovers(controller) { var covers = controller._covers; var originalLength = covers.length; each$12(covers, function (cover) { controller.group.remove(cover); }, controller); covers.length = 0; return !!originalLength; } function trigger$1(controller, opt) { var areas = map$2(controller._covers, function (cover) { var brushOption = cover.__brushOption; var range = clone(brushOption.range); return { brushType: brushOption.brushType, panelId: brushOption.panelId, range: range }; }); controller.trigger('brush', areas, { isEnd: !!opt.isEnd, removeOnClick: !!opt.removeOnClick }); } function shouldShowCover(controller) { var track = controller._track; if (!track.length) { return false; } var p2 = track[track.length - 1]; var p1 = track[0]; var dx = p2[0] - p1[0]; var dy = p2[1] - p1[1]; var dist = mathPow$2(dx * dx + dy * dy, 0.5); return dist > UNSELECT_THRESHOLD; } function getTrackEnds(track) { var tail = track.length - 1; tail < 0 && (tail = 0); return [track[0], track[tail]]; } function createBaseRectCover(doDrift, controller, brushOption, edgeNames) { var cover = new Group(); cover.add(new Rect({ name: 'main', style: makeStyle(brushOption), silent: true, draggable: true, cursor: 'move', drift: curry$2(doDrift, controller, cover, 'nswe'), ondragend: curry$2(trigger$1, controller, {isEnd: true}) })); each$12( edgeNames, function (name) { cover.add(new Rect({ name: name, style: {opacity: 0}, draggable: true, silent: true, invisible: true, drift: curry$2(doDrift, controller, cover, name), ondragend: curry$2(trigger$1, controller, {isEnd: true}) })); } ); return cover; } function updateBaseRect(controller, cover, localRange, brushOption) { var lineWidth = brushOption.brushStyle.lineWidth || 0; var handleSize = mathMax$6(lineWidth, MIN_RESIZE_LINE_WIDTH); var x = localRange[0][0]; var y = localRange[1][0]; var xa = x - lineWidth / 2; var ya = y - lineWidth / 2; var x2 = localRange[0][1]; var y2 = localRange[1][1]; var x2a = x2 - handleSize + lineWidth / 2; var y2a = y2 - handleSize + lineWidth / 2; var width = x2 - x; var height = y2 - y; var widtha = width + lineWidth; var heighta = height + lineWidth; updateRectShape(controller, cover, 'main', x, y, width, height); if (brushOption.transformable) { updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta); updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta); updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize); updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize); updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize); updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize); updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize); updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize); } } function updateCommon(controller, cover) { var brushOption = cover.__brushOption; var transformable = brushOption.transformable; var mainEl = cover.childAt(0); mainEl.useStyle(makeStyle(brushOption)); mainEl.attr({ silent: !transformable, cursor: transformable ? 'move' : 'default' }); each$12( ['w', 'e', 'n', 's', 'se', 'sw', 'ne', 'nw'], function (name) { var el = cover.childOfName(name); var globalDir = getGlobalDirection(controller, name); el && el.attr({ silent: !transformable, invisible: !transformable, cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null }); } ); } function updateRectShape(controller, cover, name, x, y, w, h) { var el = cover.childOfName(name); el && el.setShape(pointsToRect( clipByPanel(controller, cover, [[x, y], [x + w, y + h]]) )); } function makeStyle(brushOption) { return defaults({strokeNoScale: true}, brushOption.brushStyle); } function formatRectRange(x, y, x2, y2) { var min = [mathMin$6(x, x2), mathMin$6(y, y2)]; var max = [mathMax$6(x, x2), mathMax$6(y, y2)]; return [ [min[0], max[0]], // x range [min[1], max[1]] // y range ]; } function getTransform$1(controller) { return getTransform(controller.group); } function getGlobalDirection(controller, localDirection) { if (localDirection.length > 1) { localDirection = localDirection.split(''); var globalDir = [ getGlobalDirection(controller, localDirection[0]), getGlobalDirection(controller, localDirection[1]) ]; (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse(); return globalDir.join(''); } else { var map$$1 = {w: 'left', e: 'right', n: 'top', s: 'bottom'}; var inverseMap = {left: 'w', right: 'e', top: 'n', bottom: 's'}; var globalDir = transformDirection( map$$1[localDirection], getTransform$1(controller) ); return inverseMap[globalDir]; } } function driftRect(toRectRange, fromRectRange, controller, cover, name, dx, dy, e) { var brushOption = cover.__brushOption; var rectRange = toRectRange(brushOption.range); var localDelta = toLocalDelta(controller, dx, dy); each$12(name.split(''), function (namePart) { var ind = DIRECTION_MAP[namePart]; rectRange[ind[0]][ind[1]] += localDelta[ind[0]]; }); brushOption.range = fromRectRange(formatRectRange( rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1] )); updateCoverAfterCreation(controller, cover); trigger$1(controller, {isEnd: false}); } function driftPolygon(controller, cover, dx, dy, e) { var range = cover.__brushOption.range; var localDelta = toLocalDelta(controller, dx, dy); each$12(range, function (point) { point[0] += localDelta[0]; point[1] += localDelta[1]; }); updateCoverAfterCreation(controller, cover); trigger$1(controller, {isEnd: false}); } function toLocalDelta(controller, dx, dy) { var thisGroup = controller.group; var localD = thisGroup.transformCoordToLocal(dx, dy); var localZero = thisGroup.transformCoordToLocal(0, 0); return [localD[0] - localZero[0], localD[1] - localZero[1]]; } function clipByPanel(controller, cover, data) { var panel = getPanelByCover(controller, cover); return (panel && panel !== true) ? panel.clipPath(data, controller._transform) : clone(data); } function pointsToRect(points) { var xmin = mathMin$6(points[0][0], points[1][0]); var ymin = mathMin$6(points[0][1], points[1][1]); var xmax = mathMax$6(points[0][0], points[1][0]); var ymax = mathMax$6(points[0][1], points[1][1]); return { x: xmin, y: ymin, width: xmax - xmin, height: ymax - ymin }; } function resetCursor(controller, e, localCursorPoint) { // Check active if (!controller._brushType) { return; } var zr = controller._zr; var covers = controller._covers; var currPanel = getPanelByPoint(controller, e, localCursorPoint); // Check whether in covers. if (!controller._dragging) { for (var i = 0; i < covers.length; i++) { var brushOption = covers[i].__brushOption; if (currPanel && (currPanel === true || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain( covers[i], localCursorPoint[0], localCursorPoint[1] ) ) { // Use cursor style set on cover. return; } } } currPanel && zr.setCursorStyle('crosshair'); } function preventDefault(e) { var rawE = e.event; rawE.preventDefault && rawE.preventDefault(); } function mainShapeContain(cover, x, y) { return cover.childOfName('main').contain(x, y); } function updateCoverByMouse(controller, e, localCursorPoint, isEnd) { var creatingCover = controller._creatingCover; var panel = controller._creatingPanel; var thisBrushOption = controller._brushOption; var eventParams; controller._track.push(localCursorPoint.slice()); if (shouldShowCover(controller) || creatingCover) { if (panel && !creatingCover) { thisBrushOption.brushMode === 'single' && clearCovers(controller); var brushOption = clone(thisBrushOption); brushOption.brushType = determineBrushType(brushOption.brushType, panel); brushOption.panelId = panel === true ? null : panel.panelId; creatingCover = controller._creatingCover = createCover(controller, brushOption); controller._covers.push(creatingCover); } if (creatingCover) { var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)]; var coverBrushOption = creatingCover.__brushOption; coverBrushOption.range = coverRenderer.getCreatingRange( clipByPanel(controller, creatingCover, controller._track) ); if (isEnd) { endCreating(controller, creatingCover); coverRenderer.updateCommon(controller, creatingCover); } updateCoverShape(controller, creatingCover); eventParams = {isEnd: isEnd}; } } else if ( isEnd && thisBrushOption.brushMode === 'single' && thisBrushOption.removeOnClick ) { // Help user to remove covers easily, only by a tiny drag, in 'single' mode. // But a single click do not clear covers, because user may have casual // clicks (for example, click on other component and do not expect covers // disappear). // Only some cover removed, trigger action, but not every click trigger action. if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) { eventParams = {isEnd: isEnd, removeOnClick: true}; } } return eventParams; } function determineBrushType(brushType, panel) { if (brushType === 'auto') { if (__DEV__) { assert$1( panel && panel.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"' ); } return panel.defaultBrushType; } return brushType; } var mouseHandlers = { mousedown: function (e) { if (this._dragging) { // In case some browser do not support globalOut, // and release mose out side the browser. handleDragEnd.call(this, e); } else if (!e.target || !e.target.draggable) { preventDefault(e); var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY); this._creatingCover = null; var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint); if (panel) { this._dragging = true; this._track = [localCursorPoint.slice()]; } } }, mousemove: function (e) { var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY); resetCursor(this, e, localCursorPoint); if (this._dragging) { preventDefault(e); var eventParams = updateCoverByMouse(this, e, localCursorPoint, false); eventParams && trigger$1(this, eventParams); } }, mouseup: handleDragEnd //, // FIXME // in tooltip, globalout should not be triggered. // globalout: handleDragEnd }; function handleDragEnd(e) { if (this._dragging) { preventDefault(e); var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY); var eventParams = updateCoverByMouse(this, e, localCursorPoint, true); this._dragging = false; this._track = []; this._creatingCover = null; // trigger event shoule be at final, after procedure will be nested. eventParams && trigger$1(this, eventParams); } } /** * key: brushType * @type {Object} */ var coverRenderers = { lineX: getLineRenderer(0), lineY: getLineRenderer(1), rect: { createCover: function (controller, brushOption) { return createBaseRectCover( curry$2( driftRect, function (range) { return range; }, function (range) { return range; } ), controller, brushOption, ['w', 'e', 'n', 's', 'se', 'sw', 'ne', 'nw'] ); }, getCreatingRange: function (localTrack) { var ends = getTrackEnds(localTrack); return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]); }, updateCoverShape: function (controller, cover, localRange, brushOption) { updateBaseRect(controller, cover, localRange, brushOption); }, updateCommon: updateCommon, contain: mainShapeContain }, polygon: { createCover: function (controller, brushOption) { var cover = new Group(); // Do not use graphic.Polygon because graphic.Polyline do not close the // border of the shape when drawing, which is a better experience for user. cover.add(new Polyline({ name: 'main', style: makeStyle(brushOption), silent: true })); return cover; }, getCreatingRange: function (localTrack) { return localTrack; }, endCreating: function (controller, cover) { cover.remove(cover.childAt(0)); // Use graphic.Polygon close the shape. cover.add(new Polygon({ name: 'main', draggable: true, drift: curry$2(driftPolygon, controller, cover), ondragend: curry$2(trigger$1, controller, {isEnd: true}) })); }, updateCoverShape: function (controller, cover, localRange, brushOption) { cover.childAt(0).setShape({ points: clipByPanel(controller, cover, localRange) }); }, updateCommon: updateCommon, contain: mainShapeContain } }; function getLineRenderer(xyIndex) { return { createCover: function (controller, brushOption) { return createBaseRectCover( curry$2( driftRect, function (range) { var rectRange = [range, [0, 100]]; xyIndex && rectRange.reverse(); return rectRange; }, function (rectRange) { return rectRange[xyIndex]; } ), controller, brushOption, [['w', 'e'], ['n', 's']][xyIndex] ); }, getCreatingRange: function (localTrack) { var ends = getTrackEnds(localTrack); var min = mathMin$6(ends[0][xyIndex], ends[1][xyIndex]); var max = mathMax$6(ends[0][xyIndex], ends[1][xyIndex]); return [min, max]; }, updateCoverShape: function (controller, cover, localRange, brushOption) { var otherExtent; // If brushWidth not specified, fit the panel. var panel = getPanelByCover(controller, cover); if (panel !== true && panel.getLinearBrushOtherExtent) { otherExtent = panel.getLinearBrushOtherExtent( xyIndex, controller._transform ); } else { var zr = controller._zr; otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]]; } var rectRange = [localRange, otherExtent]; xyIndex && rectRange.reverse(); updateBaseRect(controller, cover, rectRange, brushOption); }, updateCommon: updateCommon, contain: mainShapeContain }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function makeRectPanelClipPath(rect) { rect = normalizeRect(rect); return function (localPoints, transform) { return clipPointsByRect(localPoints, rect); }; } function makeLinearBrushOtherExtent(rect, specifiedXYIndex) { rect = normalizeRect(rect); return function (xyIndex) { var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex; var brushWidth = idx ? rect.width : rect.height; var base = idx ? rect.x : rect.y; return [base, base + (brushWidth || 0)]; }; } function makeRectIsTargetByCursor(rect, api, targetModel) { rect = normalizeRect(rect); return function (e, localCursorPoint, transform) { return rect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel); }; } // Consider width/height is negative. function normalizeRect(rect) { return BoundingRect.create(rect); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var elementList = ['axisLine', 'axisTickLabel', 'axisName']; var AxisView$2 = extendComponentView({ type: 'parallelAxis', /** * @override */ init: function (ecModel, api) { AxisView$2.superApply(this, 'init', arguments); /** * @type {module:echarts/component/helper/BrushController} */ (this._brushController = new BrushController(api.getZr())) .on('brush', bind(this._onBrush, this)); }, /** * @override */ render: function (axisModel, ecModel, api, payload) { if (fromAxisAreaSelect(axisModel, ecModel, payload)) { return; } this.axisModel = axisModel; this.api = api; this.group.removeAll(); var oldAxisGroup = this._axisGroup; this._axisGroup = new Group(); this.group.add(this._axisGroup); if (!axisModel.get('show')) { return; } var coordSysModel = getCoordSysModel(axisModel, ecModel); var coordSys = coordSysModel.coordinateSystem; var areaSelectStyle = axisModel.getAreaSelectStyle(); var areaWidth = areaSelectStyle.width; var dim = axisModel.axis.dim; var axisLayout = coordSys.getAxisLayout(dim); var builderOpt = extend( {strokeContainThreshold: areaWidth}, axisLayout ); var axisBuilder = new AxisBuilder(axisModel, builderOpt); each$1(elementList, axisBuilder.add, axisBuilder); this._axisGroup.add(axisBuilder.getGroup()); this._refreshBrushController( builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api ); var animationModel = (payload && payload.animation === false) ? null : axisModel; groupTransition(oldAxisGroup, this._axisGroup, animationModel); }, // /** // * @override // */ // updateVisual: function (axisModel, ecModel, api, payload) { // this._brushController && this._brushController // .updateCovers(getCoverInfoList(axisModel)); // }, _refreshBrushController: function ( builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api ) { // After filtering, axis may change, select area needs to be update. var extent = axisModel.axis.getExtent(); var extentLen = extent[1] - extent[0]; var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value. // width/height might be negative, which will be // normalized in BoundingRect. var rect = BoundingRect.create({ x: extent[0], y: -areaWidth / 2, width: extentLen, height: areaWidth }); rect.x -= extra; rect.width += 2 * extra; this._brushController .mount({ enableGlobalPan: true, rotation: builderOpt.rotation, position: builderOpt.position }) .setPanels([{ panelId: 'pl', clipPath: makeRectPanelClipPath(rect), isTargetByCursor: makeRectIsTargetByCursor(rect, api, coordSysModel), getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect, 0) }]) .enableBrush({ brushType: 'lineX', brushStyle: areaSelectStyle, removeOnClick: true }) .updateCovers(getCoverInfoList(axisModel)); }, _onBrush: function (coverInfoList, opt) { // Do not cache these object, because the mey be changed. var axisModel = this.axisModel; var axis = axisModel.axis; var intervals = map(coverInfoList, function (coverInfo) { return [ axis.coordToData(coverInfo.range[0], true), axis.coordToData(coverInfo.range[1], true) ]; }); // If realtime is true, action is not dispatched on drag end, because // the drag end emits the same params with the last drag move event, // and may have some delay when using touch pad. if (!axisModel.option.realtime === opt.isEnd || opt.removeOnClick) { // jshint ignore:line this.api.dispatchAction({ type: 'axisAreaSelect', parallelAxisId: axisModel.id, intervals: intervals }); } }, /** * @override */ dispose: function () { this._brushController.dispose(); } }); function fromAxisAreaSelect(axisModel, ecModel, payload) { return payload && payload.type === 'axisAreaSelect' && ecModel.findComponents( {mainType: 'parallelAxis', query: payload} )[0] === axisModel; } function getCoverInfoList(axisModel) { var axis = axisModel.axis; return map(axisModel.activeIntervals, function (interval) { return { brushType: 'lineX', panelId: 'pl', range: [ axis.dataToCoord(interval[0], true), axis.dataToCoord(interval[1], true) ] }; }); } function getCoordSysModel(axisModel, ecModel) { return ecModel.getComponent( 'parallel', axisModel.get('parallelIndex') ); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CLICK_THRESHOLD = 5; // > 4 // Parallel view extendComponentView({ type: 'parallel', render: function (parallelModel, ecModel, api) { this._model = parallelModel; this._api = api; if (!this._handlers) { this._handlers = {}; each$1(handlers, function (handler, eventName) { api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this)); }, this); } createOrUpdate( this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate' ); }, dispose: function (ecModel, api) { each$1(this._handlers, function (handler, eventName) { api.getZr().off(eventName, handler); }); this._handlers = null; }, /** * @param {Object} [opt] If null, cancle the last action triggering for debounce. */ _throttledDispatchExpand: function (opt) { this._dispatchExpand(opt); }, _dispatchExpand: function (opt) { opt && this._api.dispatchAction( extend({type: 'parallelAxisExpand'}, opt) ); } }); var handlers = { mousedown: function (e) { if (checkTrigger(this, 'click')) { this._mouseDownPoint = [e.offsetX, e.offsetY]; } }, mouseup: function (e) { var mouseDownPoint = this._mouseDownPoint; if (checkTrigger(this, 'click') && mouseDownPoint) { var point = [e.offsetX, e.offsetY]; var dist = Math.pow(mouseDownPoint[0] - point[0], 2) + Math.pow(mouseDownPoint[1] - point[1], 2); if (dist > CLICK_THRESHOLD) { return; } var result = this._model.coordinateSystem.getSlidedAxisExpandWindow( [e.offsetX, e.offsetY] ); result.behavior !== 'none' && this._dispatchExpand({ axisExpandWindow: result.axisExpandWindow }); } this._mouseDownPoint = null; }, mousemove: function (e) { // Should do nothing when brushing. if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) { return; } var model = this._model; var result = model.coordinateSystem.getSlidedAxisExpandWindow( [e.offsetX, e.offsetY] ); var behavior = result.behavior; behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce')); this._throttledDispatchExpand( behavior === 'none' ? null // Cancle the last trigger, in case that mouse slide out of the area quickly. : { axisExpandWindow: result.axisExpandWindow, // Jumping uses animation, and sliding suppresses animation. animation: behavior === 'jump' ? null : false } ); } }; function checkTrigger(view, triggerOn) { var model = view._model; return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn; } registerPreprocessor(parallelPreprocessor); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.parallel', dependencies: ['parallel'], visualColorAccessPath: 'lineStyle.color', getInitialData: function (option, ecModel) { var source = this.getSource(); setEncodeAndDimensions(source, this); return createListFromArray(source, this); }, /** * User can get data raw indices on 'axisAreaSelected' event received. * * @public * @param {string} activeState 'active' or 'inactive' or 'normal' * @return {Array.} Raw indices */ getRawIndicesByActiveState: function (activeState) { var coordSys = this.coordinateSystem; var data = this.getData(); var indices = []; coordSys.eachActiveState(data, function (theActiveState, dataIndex) { if (activeState === theActiveState) { indices.push(data.getRawIndex(dataIndex)); } }); return indices; }, defaultOption: { zlevel: 0, // 一级层叠 z: 2, // 二级层叠 coordinateSystem: 'parallel', parallelIndex: 0, label: { show: false }, inactiveOpacity: 0.05, activeOpacity: 1, lineStyle: { width: 1, opacity: 0.45, type: 'solid' }, emphasis: { label: { show: false } }, progressive: 500, smooth: false, // true | false | number animationEasing: 'linear' } }); function setEncodeAndDimensions(source, seriesModel) { // The mapping of parallelAxis dimension to data dimension can // be specified in parallelAxis.option.dim. For example, if // parallelAxis.option.dim is 'dim3', it mapping to the third // dimension of data. But `data.encode` has higher priority. // Moreover, parallelModel.dimension should not be regarded as data // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6']; if (source.encodeDefine) { return; } var parallelModel = seriesModel.ecModel.getComponent( 'parallel', seriesModel.get('parallelIndex') ); if (!parallelModel) { return; } var encodeDefine = source.encodeDefine = createHashMap(); each$1(parallelModel.dimensions, function (axisDim) { var dataDimIndex = convertDimNameToNumber(axisDim); encodeDefine.set(axisDim, dataDimIndex); }); } function convertDimNameToNumber(dimName) { return +dimName.replace('dim', ''); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_SMOOTH = 0.3; var ParallelView = Chart.extend({ type: 'parallel', init: function () { /** * @type {module:zrender/container/Group} * @private */ this._dataGroup = new Group(); this.group.add(this._dataGroup); /** * @type {module:echarts/data/List} */ this._data; /** * @type {boolean} */ this._initialized; }, /** * @override */ render: function (seriesModel, ecModel, api, payload) { var dataGroup = this._dataGroup; var data = seriesModel.getData(); var oldData = this._data; var coordSys = seriesModel.coordinateSystem; var dimensions = coordSys.dimensions; var seriesScope = makeSeriesScope$2(seriesModel); data.diff(oldData) .add(add) .update(update) .remove(remove) .execute(); function add(newDataIndex) { var line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys); updateElCommon(line, data, newDataIndex, seriesScope); } function update(newDataIndex, oldDataIndex) { var line = oldData.getItemGraphicEl(oldDataIndex); var points = createLinePoints(data, newDataIndex, dimensions, coordSys); data.setItemGraphicEl(newDataIndex, line); var animationModel = (payload && payload.animation === false) ? null : seriesModel; updateProps(line, {shape: {points: points}}, animationModel, newDataIndex); updateElCommon(line, data, newDataIndex, seriesScope); } function remove(oldDataIndex) { var line = oldData.getItemGraphicEl(oldDataIndex); dataGroup.remove(line); } // First create if (!this._initialized) { this._initialized = true; var clipPath = createGridClipShape$1( coordSys, seriesModel, function () { // Callback will be invoked immediately if there is no animation setTimeout(function () { dataGroup.removeClipPath(); }); } ); dataGroup.setClipPath(clipPath); } this._data = data; }, incrementalPrepareRender: function (seriesModel, ecModel, api) { this._initialized = true; this._data = null; this._dataGroup.removeAll(); }, incrementalRender: function (taskParams, seriesModel, ecModel) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; var dimensions = coordSys.dimensions; var seriesScope = makeSeriesScope$2(seriesModel); for (var dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) { var line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys); line.incremental = true; updateElCommon(line, data, dataIndex, seriesScope); } }, dispose: function () {}, // _renderForProgressive: function (seriesModel) { // var dataGroup = this._dataGroup; // var data = seriesModel.getData(); // var oldData = this._data; // var coordSys = seriesModel.coordinateSystem; // var dimensions = coordSys.dimensions; // var option = seriesModel.option; // var progressive = option.progressive; // var smooth = option.smooth ? SMOOTH : null; // // In progressive animation is disabled, so use simple data diff, // // which effects performance less. // // (Typically performance for data with length 7000+ like: // // simpleDiff: 60ms, addEl: 184ms, // // in RMBP 2.4GHz intel i7, OSX 10.9 chrome 50.0.2661.102 (64-bit)) // if (simpleDiff(oldData, data, dimensions)) { // dataGroup.removeAll(); // data.each(function (dataIndex) { // addEl(data, dataGroup, dataIndex, dimensions, coordSys); // }); // } // updateElCommon(data, progressive, smooth); // // Consider switch between progressive and not. // data.__plProgressive = true; // this._data = data; // }, /** * @override */ remove: function () { this._dataGroup && this._dataGroup.removeAll(); this._data = null; } }); function createGridClipShape$1(coordSys, seriesModel, cb) { var parallelModel = coordSys.model; var rect = coordSys.getRect(); var rectEl = new Rect({ shape: { x: rect.x, y: rect.y, width: rect.width, height: rect.height } }); var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height'; rectEl.setShape(dim, 0); initProps(rectEl, { shape: { width: rect.width, height: rect.height } }, seriesModel, cb); return rectEl; } function createLinePoints(data, dataIndex, dimensions, coordSys) { var points = []; for (var i = 0; i < dimensions.length; i++) { var dimName = dimensions[i]; var value = data.get(data.mapDimension(dimName), dataIndex); if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) { points.push(coordSys.dataToPoint(value, dimName)); } } return points; } function addEl(data, dataGroup, dataIndex, dimensions, coordSys) { var points = createLinePoints(data, dataIndex, dimensions, coordSys); var line = new Polyline({ shape: {points: points}, silent: true, z2: 10 }); dataGroup.add(line); data.setItemGraphicEl(dataIndex, line); return line; } function makeSeriesScope$2(seriesModel) { var smooth = seriesModel.get('smooth', true); smooth === true && (smooth = DEFAULT_SMOOTH); return { lineStyle: seriesModel.getModel('lineStyle').getLineStyle(), smooth: smooth != null ? smooth : DEFAULT_SMOOTH }; } function updateElCommon(el, data, dataIndex, seriesScope) { var lineStyle = seriesScope.lineStyle; if (data.hasItemOption) { var lineStyleModel = data.getItemModel(dataIndex).getModel('lineStyle'); lineStyle = lineStyleModel.getLineStyle(); } el.useStyle(lineStyle); var elStyle = el.style; elStyle.fill = null; // lineStyle.color have been set to itemVisual in module:echarts/visual/seriesColor. elStyle.stroke = data.getItemVisual(dataIndex, 'color'); // lineStyle.opacity have been set to itemVisual in parallelVisual. elStyle.opacity = data.getItemVisual(dataIndex, 'opacity'); seriesScope.smooth && (el.shape.smooth = seriesScope.smooth); } // function simpleDiff(oldData, newData, dimensions) { // var oldLen; // if (!oldData // || !oldData.__plProgressive // || (oldLen = oldData.count()) !== newData.count() // ) { // return true; // } // var dimLen = dimensions.length; // for (var i = 0; i < oldLen; i++) { // for (var j = 0; j < dimLen; j++) { // if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) { // return true; // } // } // } // return false; // } // FIXME // 公用方法? function isEmptyValue(val, axisType) { return axisType === 'category' ? val == null : (val == null || isNaN(val)); // axisType === 'value' } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var opacityAccessPath$1 = ['lineStyle', 'normal', 'opacity']; var parallelVisual = { seriesType: 'parallel', reset: function (seriesModel, ecModel, api) { var itemStyleModel = seriesModel.getModel('itemStyle'); var lineStyleModel = seriesModel.getModel('lineStyle'); var globalColors = ecModel.get('color'); var color = lineStyleModel.get('color') || itemStyleModel.get('color') || globalColors[seriesModel.seriesIndex % globalColors.length]; var inactiveOpacity = seriesModel.get('inactiveOpacity'); var activeOpacity = seriesModel.get('activeOpacity'); var lineStyle = seriesModel.getModel('lineStyle').getLineStyle(); var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var opacityMap = { normal: lineStyle.opacity, active: activeOpacity, inactive: inactiveOpacity }; data.setVisual('color', color); function progress(params, data) { coordSys.eachActiveState(data, function (activeState, dataIndex) { var opacity = opacityMap[activeState]; if (activeState === 'normal' && data.hasItemOption) { var itemOpacity = data.getItemModel(dataIndex).get(opacityAccessPath$1, true); itemOpacity != null && (opacity = itemOpacity); } data.setItemVisual(dataIndex, 'opacity', opacity); }, params.start, params.end); } return {progress: progress}; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(parallelVisual); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SankeySeries = SeriesModel.extend({ type: 'series.sankey', layoutInfo: null, levelModels: null, /** * Init a graph data structure from data in option series * * @param {Object} option the object used to config echarts view * @return {module:echarts/data/List} storage initial data */ getInitialData: function (option, ecModel) { var links = option.edges || option.links; var nodes = option.data || option.nodes; var levels = option.levels; var levelModels = this.levelModels = {}; for (var i = 0; i < levels.length; i++) { if (levels[i].depth != null && levels[i].depth >= 0) { levelModels[levels[i].depth] = new Model(levels[i], this, ecModel); } else { if (__DEV__) { throw new Error('levels[i].depth is mandatory and should be natural number'); } } } if (nodes && links) { var graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink); return graph.data; } function beforeLink(nodeData, edgeData) { nodeData.wrapMethod('getItemModel', function (model, idx) { model.customizeGetParent(function (path) { var parentModel = this.parentModel; var nodeDepth = parentModel.getData().getItemLayout(idx).depth; var levelModel = parentModel.levelModels[nodeDepth]; return levelModel || this.parentModel; }); return model; }); edgeData.wrapMethod('getItemModel', function (model, idx) { model.customizeGetParent(function (path) { var parentModel = this.parentModel; var edge = parentModel.getGraph().getEdgeByIndex(idx); var depth = edge.node1.getLayout().depth; var levelModel = parentModel.levelModels[depth]; return levelModel || this.parentModel; }); return model; }); } }, setNodePosition: function (dataIndex, localPosition) { var dataItem = this.option.data[dataIndex]; dataItem.localX = localPosition[0]; dataItem.localY = localPosition[1]; }, /** * Return the graphic data structure * * @return {module:echarts/data/Graph} graphic data structure */ getGraph: function () { return this.getData().graph; }, /** * Get edge data of graphic data structure * * @return {module:echarts/data/List} data structure of list */ getEdgeData: function () { return this.getGraph().edgeData; }, /** * @override */ formatTooltip: function (dataIndex, multipleSeries, dataType) { // dataType === 'node' or empty do not show tooltip by default if (dataType === 'edge') { var params = this.getDataParams(dataIndex, dataType); var rawDataOpt = params.data; var html = rawDataOpt.source + ' -- ' + rawDataOpt.target; if (params.value) { html += ' : ' + params.value; } return encodeHTML(html); } else if (dataType === 'node') { var node = this.getGraph().getNodeByIndex(dataIndex); var value = node.getLayout().value; var name = this.getDataParams(dataIndex, dataType).data.name; if (value) { var html = name + ' : ' + value; } return encodeHTML(html); } return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries); }, optionUpdated: function () { var option = this.option; if (option.focusNodeAdjacency === true) { option.focusNodeAdjacency = 'allEdges'; } }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'view', layout: null, // The position of the whole view left: '5%', top: '5%', right: '20%', bottom: '5%', // Value can be 'vertical' orient: 'horizontal', // The dx of the node nodeWidth: 20, // The vertical distance between two nodes nodeGap: 8, // Control if the node can move or not draggable: true, // Value can be 'inEdges', 'outEdges', 'allEdges', true (the same as 'allEdges'). focusNodeAdjacency: false, // The number of iterations to change the position of the node layoutIterations: 32, label: { show: true, position: 'right', color: '#000', fontSize: 12 }, levels: [], // Value can be 'left' or 'right' nodeAlign: 'justify', itemStyle: { borderWidth: 1, borderColor: '#333' }, lineStyle: { color: '#314656', opacity: 0.2, curveness: 0.5 }, emphasis: { label: { show: true }, lineStyle: { opacity: 0.6 } }, animationEasing: 'linear', animationDuration: 1000 } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var nodeOpacityPath$1 = ['itemStyle', 'opacity']; var lineOpacityPath$1 = ['lineStyle', 'opacity']; function getItemOpacity$1(item, opacityPath) { return item.getVisual('opacity') || item.getModel().get(opacityPath); } function fadeOutItem$1(item, opacityPath, opacityRatio) { var el = item.getGraphicEl(); var opacity = getItemOpacity$1(item, opacityPath); if (opacityRatio != null) { opacity == null && (opacity = 1); opacity *= opacityRatio; } el.downplay && el.downplay(); el.traverse(function (child) { if (child.type !== 'group') { child.setStyle('opacity', opacity); } }); } function fadeInItem$1(item, opacityPath) { var opacity = getItemOpacity$1(item, opacityPath); var el = item.getGraphicEl(); el.highlight && el.highlight(); el.traverse(function (child) { if (child.type !== 'group') { child.setStyle('opacity', opacity); } }); } var SankeyShape = extendShape({ shape: { x1: 0, y1: 0, x2: 0, y2: 0, cpx1: 0, cpy1: 0, cpx2: 0, cpy2: 0, extent: 0, orient: '' }, buildPath: function (ctx, shape) { var extent = shape.extent; ctx.moveTo(shape.x1, shape.y1); ctx.bezierCurveTo( shape.cpx1, shape.cpy1, shape.cpx2, shape.cpy2, shape.x2, shape.y2 ); if (shape.orient === 'vertical') { ctx.lineTo(shape.x2 + extent, shape.y2); ctx.bezierCurveTo( shape.cpx2 + extent, shape.cpy2, shape.cpx1 + extent, shape.cpy1, shape.x1 + extent, shape.y1 ); } else { ctx.lineTo(shape.x2, shape.y2 + extent); ctx.bezierCurveTo( shape.cpx2, shape.cpy2 + extent, shape.cpx1, shape.cpy1 + extent, shape.x1, shape.y1 + extent ); } ctx.closePath(); } }); extendChartView({ type: 'sankey', /** * @private * @type {module:echarts/chart/sankey/SankeySeries} */ _model: null, /** * @private * @type {boolean} */ _focusAdjacencyDisabled: false, render: function (seriesModel, ecModel, api) { var sankeyView = this; var graph = seriesModel.getGraph(); var group = this.group; var layoutInfo = seriesModel.layoutInfo; // view width var width = layoutInfo.width; // view height var height = layoutInfo.height; var nodeData = seriesModel.getData(); var edgeData = seriesModel.getData('edge'); var orient = seriesModel.get('orient'); this._model = seriesModel; group.removeAll(); group.attr('position', [layoutInfo.x, layoutInfo.y]); // generate a bezire Curve for each edge graph.eachEdge(function (edge) { var curve = new SankeyShape(); curve.dataIndex = edge.dataIndex; curve.seriesIndex = seriesModel.seriesIndex; curve.dataType = 'edge'; var lineStyleModel = edge.getModel('lineStyle'); var curvature = lineStyleModel.get('curveness'); var n1Layout = edge.node1.getLayout(); var node1Model = edge.node1.getModel(); var dragX1 = node1Model.get('localX'); var dragY1 = node1Model.get('localY'); var n2Layout = edge.node2.getLayout(); var node2Model = edge.node2.getModel(); var dragX2 = node2Model.get('localX'); var dragY2 = node2Model.get('localY'); var edgeLayout = edge.getLayout(); var x1; var y1; var x2; var y2; var cpx1; var cpy1; var cpx2; var cpy2; curve.shape.extent = Math.max(1, edgeLayout.dy); curve.shape.orient = orient; if (orient === 'vertical') { x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy; y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy; x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty; y2 = dragY2 != null ? dragY2 * height : n2Layout.y; cpx1 = x1; cpy1 = y1 * (1 - curvature) + y2 * curvature; cpx2 = x2; cpy2 = y1 * curvature + y2 * (1 - curvature); } else { x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx; y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy; x2 = dragX2 != null ? dragX2 * width : n2Layout.x; y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty; cpx1 = x1 * (1 - curvature) + x2 * curvature; cpy1 = y1; cpx2 = x1 * curvature + x2 * (1 - curvature); cpy2 = y2; } curve.setShape({ x1: x1, y1: y1, x2: x2, y2: y2, cpx1: cpx1, cpy1: cpy1, cpx2: cpx2, cpy2: cpy2 }); curve.setStyle(lineStyleModel.getItemStyle()); // Special color, use source node color or target node color switch (curve.style.fill) { case 'source': curve.style.fill = edge.node1.getVisual('color'); break; case 'target': curve.style.fill = edge.node2.getVisual('color'); break; } setHoverStyle(curve, edge.getModel('emphasis.lineStyle').getItemStyle()); group.add(curve); edgeData.setItemGraphicEl(edge.dataIndex, curve); }); // Generate a rect for each node graph.eachNode(function (node) { var layout = node.getLayout(); var itemModel = node.getModel(); var dragX = itemModel.get('localX'); var dragY = itemModel.get('localY'); var labelModel = itemModel.getModel('label'); var labelHoverModel = itemModel.getModel('emphasis.label'); var rect = new Rect({ shape: { x: dragX != null ? dragX * width : layout.x, y: dragY != null ? dragY * height : layout.y, width: layout.dx, height: layout.dy }, style: itemModel.getModel('itemStyle').getItemStyle() }); var hoverStyle = node.getModel('emphasis.itemStyle').getItemStyle(); setLabelStyle( rect.style, hoverStyle, labelModel, labelHoverModel, { labelFetcher: seriesModel, labelDataIndex: node.dataIndex, defaultText: node.id, isRectText: true } ); rect.setStyle('fill', node.getVisual('color')); setHoverStyle(rect, hoverStyle); group.add(rect); nodeData.setItemGraphicEl(node.dataIndex, rect); rect.dataType = 'node'; }); nodeData.eachItemGraphicEl(function (el, dataIndex) { var itemModel = nodeData.getItemModel(dataIndex); if (itemModel.get('draggable')) { el.drift = function (dx, dy) { sankeyView._focusAdjacencyDisabled = true; this.shape.x += dx; this.shape.y += dy; this.dirty(); api.dispatchAction({ type: 'dragNode', seriesId: seriesModel.id, dataIndex: nodeData.getRawIndex(dataIndex), localX: this.shape.x / width, localY: this.shape.y / height }); }; el.ondragend = function () { sankeyView._focusAdjacencyDisabled = false; }; el.draggable = true; el.cursor = 'move'; } if (itemModel.get('focusNodeAdjacency')) { el.off('mouseover').on('mouseover', function () { if (!sankeyView._focusAdjacencyDisabled) { api.dispatchAction({ type: 'focusNodeAdjacency', seriesId: seriesModel.id, dataIndex: el.dataIndex }); } }); el.off('mouseout').on('mouseout', function () { if (!sankeyView._focusAdjacencyDisabled) { api.dispatchAction({ type: 'unfocusNodeAdjacency', seriesId: seriesModel.id }); } }); } }); edgeData.eachItemGraphicEl(function (el, dataIndex) { var edgeModel = edgeData.getItemModel(dataIndex); if (edgeModel.get('focusNodeAdjacency')) { el.off('mouseover').on('mouseover', function () { if (!sankeyView._focusAdjacencyDisabled) { api.dispatchAction({ type: 'focusNodeAdjacency', seriesId: seriesModel.id, edgeDataIndex: el.dataIndex }); } }); el.off('mouseout').on('mouseout', function () { if (!sankeyView._focusAdjacencyDisabled) { api.dispatchAction({ type: 'unfocusNodeAdjacency', seriesId: seriesModel.id }); } }); } }); if (!this._data && seriesModel.get('animation')) { group.setClipPath(createGridClipShape$2(group.getBoundingRect(), seriesModel, function () { group.removeClipPath(); })); } this._data = seriesModel.getData(); }, dispose: function () {}, focusNodeAdjacency: function (seriesModel, ecModel, api, payload) { var data = this._model.getData(); var graph = data.graph; var dataIndex = payload.dataIndex; var itemModel = data.getItemModel(dataIndex); var edgeDataIndex = payload.edgeDataIndex; if (dataIndex == null && edgeDataIndex == null) { return; } var node = graph.getNodeByIndex(dataIndex); var edge = graph.getEdgeByIndex(edgeDataIndex); graph.eachNode(function (node) { fadeOutItem$1(node, nodeOpacityPath$1, 0.1); }); graph.eachEdge(function (edge) { fadeOutItem$1(edge, lineOpacityPath$1, 0.1); }); if (node) { fadeInItem$1(node, nodeOpacityPath$1); var focusNodeAdj = itemModel.get('focusNodeAdjacency'); if (focusNodeAdj === 'outEdges') { each$1(node.outEdges, function (edge) { if (edge.dataIndex < 0) { return; } fadeInItem$1(edge, lineOpacityPath$1); fadeInItem$1(edge.node2, nodeOpacityPath$1); }); } else if (focusNodeAdj === 'inEdges') { each$1(node.inEdges, function (edge) { if (edge.dataIndex < 0) { return; } fadeInItem$1(edge, lineOpacityPath$1); fadeInItem$1(edge.node1, nodeOpacityPath$1); }); } else if (focusNodeAdj === 'allEdges') { each$1(node.edges, function (edge) { if (edge.dataIndex < 0) { return; } fadeInItem$1(edge, lineOpacityPath$1); fadeInItem$1(edge.node1, nodeOpacityPath$1); fadeInItem$1(edge.node2, nodeOpacityPath$1); }); } } if (edge) { fadeInItem$1(edge, lineOpacityPath$1); fadeInItem$1(edge.node1, nodeOpacityPath$1); fadeInItem$1(edge.node2, nodeOpacityPath$1); } }, unfocusNodeAdjacency: function (seriesModel, ecModel, api, payload) { var graph = this._model.getGraph(); graph.eachNode(function (node) { fadeOutItem$1(node, nodeOpacityPath$1); }); graph.eachEdge(function (edge) { fadeOutItem$1(edge, lineOpacityPath$1); }); } }); // Add animation to the view function createGridClipShape$2(rect, seriesModel, cb) { var rectEl = new Rect({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); initProps(rectEl, { shape: { width: rect.width + 20, height: rect.height + 20 } }, seriesModel, cb); return rectEl; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerAction({ type: 'dragNode', event: 'dragNode', // here can only use 'update' now, other value is not support in echarts. update: 'update' }, function (payload, ecModel) { ecModel.eachComponent({mainType: 'series', subType: 'sankey', query: payload}, function (seriesModel) { seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]); }); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var sankeyLayout = function (ecModel, api, payload) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var nodeWidth = seriesModel.get('nodeWidth'); var nodeGap = seriesModel.get('nodeGap'); var layoutInfo = getViewRect$3(seriesModel, api); seriesModel.layoutInfo = layoutInfo; var width = layoutInfo.width; var height = layoutInfo.height; var graph = seriesModel.getGraph(); var nodes = graph.nodes; var edges = graph.edges; computeNodeValues(nodes); var filteredNodes = filter(nodes, function (node) { return node.getLayout().value === 0; }); var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations'); var orient = seriesModel.get('orient'); var nodeAlign = seriesModel.get('nodeAlign'); layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign); }); }; /** * Get the layout position of the whole view * * @param {module:echarts/model/Series} seriesModel the model object of sankey series * @param {module:echarts/ExtensionAPI} api provide the API list that the developer can call * @return {module:zrender/core/BoundingRect} size of rect to draw the sankey view */ function getViewRect$3(seriesModel, api) { return getLayoutRect( seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() } ); } function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) { computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign); computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient); computeEdgeDepths(nodes, orient); } /** * Compute the value of each node by summing the associated edge's value * * @param {module:echarts/data/Graph~Node} nodes node of sankey view */ function computeNodeValues(nodes) { each$1(nodes, function (node) { var value1 = sum(node.outEdges, getEdgeValue); var value2 = sum(node.inEdges, getEdgeValue); var value = Math.max(value1, value2); node.setLayout({value: value}, true); }); } /** * Compute the x-position for each node. * * Here we use Kahn algorithm to detect cycle when we traverse * the node to computer the initial x position. * * @param {module:echarts/data/Graph~Node} nodes node of sankey view * @param {number} nodeWidth the dx of the node * @param {number} width the whole width of the area to draw the view */ function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) { // Used to mark whether the edge is deleted. if it is deleted, // the value is 0, otherwise it is 1. var remainEdges = []; // Storage each node's indegree. var indegreeArr = []; //Used to storage the node with indegree is equal to 0. var zeroIndegrees = []; var nextTargetNode = []; var x = 0; var kx = 0; for (var i = 0; i < edges.length; i++) { remainEdges[i] = 1; } for (i = 0; i < nodes.length; i++) { indegreeArr[i] = nodes[i].inEdges.length; if (indegreeArr[i] === 0) { zeroIndegrees.push(nodes[i]); } } var maxNodeDepth = -1; // Traversing nodes using topological sorting to calculate the // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical') // position of the nodes. while (zeroIndegrees.length) { for (var idx = 0; idx < zeroIndegrees.length; idx++) { var node = zeroIndegrees[idx]; var item = node.hostGraph.data.getRawDataItem(node.dataIndex); var isItemDepth = item.depth != null && item.depth >= 0; if (isItemDepth && item.depth > maxNodeDepth) { maxNodeDepth = item.depth; } node.setLayout({depth: isItemDepth ? item.depth : x}, true); orient === 'vertical' ? node.setLayout({dy: nodeWidth}, true) : node.setLayout({dx: nodeWidth}, true); for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) { var edge = node.outEdges[edgeIdx]; var indexEdge = edges.indexOf(edge); remainEdges[indexEdge] = 0; var targetNode = edge.node2; var nodeIndex = nodes.indexOf(targetNode); if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) { nextTargetNode.push(targetNode); } } } ++x; zeroIndegrees = nextTargetNode; nextTargetNode = []; } for (i = 0; i < remainEdges.length; i++) { if (remainEdges[i] === 1) { throw new Error('Sankey is a DAG, the original data has cycle!'); } } var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1; if (nodeAlign && nodeAlign !== 'left') { adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth); } var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width - nodeWidth) / maxDepth; scaleNodeBreadths(nodes, kx, orient); } function isNodeDepth(node) { var item = node.hostGraph.data.getRawDataItem(node.dataIndex); return item.depth != null && item.depth >= 0; } function adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) { if (nodeAlign === 'right') { var nextSourceNode = []; var remainNodes = nodes; var nodeHeight = 0; while (remainNodes.length) { for (var i = 0; i < remainNodes.length; i++) { var node = remainNodes[i]; node.setLayout({skNodeHeight: nodeHeight}, true); for (var j = 0; j < node.inEdges.length; j++) { var edge = node.inEdges[j]; if (nextSourceNode.indexOf(edge.node1) < 0) { nextSourceNode.push(edge.node1); } } } remainNodes = nextSourceNode; nextSourceNode = []; ++nodeHeight; } each$1(nodes, function (node) { if (!isNodeDepth(node)) { node.setLayout({depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)}, true); } }); } else if (nodeAlign === 'justify') { moveSinksRight(nodes, maxDepth); } } /** * All the node without outEgdes are assigned maximum x-position and * be aligned in the last column. * * @param {module:echarts/data/Graph~Node} nodes. node of sankey view. * @param {number} maxDepth. use to assign to node without outEdges as x-position. */ function moveSinksRight(nodes, maxDepth) { each$1(nodes, function (node) { if (!isNodeDepth(node) && !node.outEdges.length) { node.setLayout({depth: maxDepth}, true); } }); } /** * Scale node x-position to the width * * @param {module:echarts/data/Graph~Node} nodes node of sankey view * @param {number} kx multiple used to scale nodes */ function scaleNodeBreadths(nodes, kx, orient) { each$1(nodes, function (node) { var nodeDepth = node.getLayout().depth * kx; orient === 'vertical' ? node.setLayout({y: nodeDepth}, true) : node.setLayout({x: nodeDepth}, true); }); } /** * Using Gauss-Seidel iterations method to compute the node depth(y-position) * * @param {module:echarts/data/Graph~Node} nodes node of sankey view * @param {module:echarts/data/Graph~Edge} edges edge of sankey view * @param {number} height the whole height of the area to draw the view * @param {number} nodeGap the vertical distance between two nodes * in the same column. * @param {number} iterations the number of iterations for the algorithm */ function computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) { var nodesByBreadth = prepareNodesByBreadth(nodes, orient); initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); for (var alpha = 1; iterations > 0; iterations--) { // 0.99 is a experience parameter, ensure that each iterations of // changes as small as possible. alpha *= 0.99; relaxRightToLeft(nodesByBreadth, alpha, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); relaxLeftToRight(nodesByBreadth, alpha, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); } } function prepareNodesByBreadth(nodes, orient) { var nodesByBreadth = []; var keyAttr = orient === 'vertical' ? 'y' : 'x'; var groupResult = groupData(nodes, function (node) { return node.getLayout()[keyAttr]; }); groupResult.keys.sort(function (a, b) { return a - b; }); each$1(groupResult.keys, function (key) { nodesByBreadth.push(groupResult.buckets.get(key)); }); return nodesByBreadth; } /** * Compute the original y-position for each node * * @param {module:echarts/data/Graph~Node} nodes node of sankey view * @param {Array.>} nodesByBreadth * group by the array of all sankey nodes based on the nodes x-position. * @param {module:echarts/data/Graph~Edge} edges edge of sankey view * @param {number} height the whole height of the area to draw the view * @param {number} nodeGap the vertical distance between two nodes */ function initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) { var minKy = Infinity; each$1(nodesByBreadth, function (nodes) { var n = nodes.length; var sum = 0; each$1(nodes, function (node) { sum += node.getLayout().value; }); var ky = orient === 'vertical' ? (width - (n - 1) * nodeGap) / sum : (height - (n - 1) * nodeGap) / sum; if (ky < minKy) { minKy = ky; } }); each$1(nodesByBreadth, function (nodes) { each$1(nodes, function (node, i) { var nodeDy = node.getLayout().value * minKy; if (orient === 'vertical') { node.setLayout({x: i}, true); node.setLayout({dx: nodeDy}, true); } else { node.setLayout({y: i}, true); node.setLayout({dy: nodeDy}, true); } }); }); each$1(edges, function (edge) { var edgeDy = +edge.getValue() * minKy; edge.setLayout({dy: edgeDy}, true); }); } /** * Resolve the collision of initialized depth (y-position) * * @param {Array.>} nodesByBreadth * group by the array of all sankey nodes based on the nodes x-position. * @param {number} nodeGap the vertical distance between two nodes * @param {number} height the whole height of the area to draw the view */ function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) { var keyAttr = orient === 'vertical' ? 'x' : 'y'; each$1(nodesByBreadth, function (nodes) { nodes.sort(function (a, b) { return a.getLayout()[keyAttr] - b.getLayout()[keyAttr]; }); var nodeX; var node; var dy; var y0 = 0; var n = nodes.length; var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy'; for (var i = 0; i < n; i++) { node = nodes[i]; dy = y0 - node.getLayout()[keyAttr]; if (dy > 0) { nodeX = node.getLayout()[keyAttr] + dy; orient === 'vertical' ? node.setLayout({x: nodeX}, true) : node.setLayout({y: nodeX}, true); } y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap; } var viewWidth = orient === 'vertical' ? width : height; // If the bottommost node goes outside the bounds, push it back up dy = y0 - nodeGap - viewWidth; if (dy > 0) { nodeX = node.getLayout()[keyAttr] - dy; orient === 'vertical' ? node.setLayout({x: nodeX}, true) : node.setLayout({y: nodeX}, true); y0 = nodeX; for (i = n - 2; i >= 0; --i) { node = nodes[i]; dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0; if (dy > 0) { nodeX = node.getLayout()[keyAttr] - dy; orient === 'vertical' ? node.setLayout({x: nodeX}, true) : node.setLayout({y: nodeX}, true); } y0 = node.getLayout()[keyAttr]; } } }); } /** * Change the y-position of the nodes, except most the right side nodes * * @param {Array.>} nodesByBreadth * group by the array of all sankey nodes based on the node x-position. * @param {number} alpha parameter used to adjust the nodes y-position */ function relaxRightToLeft(nodesByBreadth, alpha, orient) { each$1(nodesByBreadth.slice().reverse(), function (nodes) { each$1(nodes, function (node) { if (node.outEdges.length) { var y = sum(node.outEdges, weightedTarget, orient) / sum(node.outEdges, getEdgeValue, orient); if (orient === 'vertical') { var nodeX = node.getLayout().x + (y - center$1(node, orient)) * alpha; node.setLayout({x: nodeX}, true); } else { var nodeY = node.getLayout().y + (y - center$1(node, orient)) * alpha; node.setLayout({y: nodeY}, true); } } }); }); } function weightedTarget(edge, orient) { return center$1(edge.node2, orient) * edge.getValue(); } function weightedSource(edge, orient) { return center$1(edge.node1, orient) * edge.getValue(); } function center$1(node, orient) { return orient === 'vertical' ? node.getLayout().x + node.getLayout().dx / 2 : node.getLayout().y + node.getLayout().dy / 2; } function getEdgeValue(edge) { return edge.getValue(); } function sum(array, f, orient) { var sum = 0; var len = array.length; var i = -1; while (++i < len) { var value = +f.call(array, array[i], orient); if (!isNaN(value)) { sum += value; } } return sum; } /** * Change the y-position of the nodes, except most the left side nodes * * @param {Array.>} nodesByBreadth * group by the array of all sankey nodes based on the node x-position. * @param {number} alpha parameter used to adjust the nodes y-position */ function relaxLeftToRight(nodesByBreadth, alpha, orient) { each$1(nodesByBreadth, function (nodes) { each$1(nodes, function (node) { if (node.inEdges.length) { var y = sum(node.inEdges, weightedSource, orient) / sum(node.inEdges, getEdgeValue, orient); if (orient === 'vertical') { var nodeX = node.getLayout().x + (y - center$1(node, orient)) * alpha; node.setLayout({x: nodeX}, true); } else { var nodeY = node.getLayout().y + (y - center$1(node, orient)) * alpha; node.setLayout({y: nodeY}, true); } } }); }); } /** * Compute the depth(y-position) of each edge * * @param {module:echarts/data/Graph~Node} nodes node of sankey view */ function computeEdgeDepths(nodes, orient) { var keyAttr = orient === 'vertical' ? 'x' : 'y'; each$1(nodes, function (node) { node.outEdges.sort(function (a, b) { return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr]; }); node.inEdges.sort(function (a, b) { return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr]; }); }); each$1(nodes, function (node) { var sy = 0; var ty = 0; each$1(node.outEdges, function (edge) { edge.setLayout({sy: sy}, true); sy += edge.getLayout().dy; }); each$1(node.inEdges, function (edge) { edge.setLayout({ty: ty}, true); ty += edge.getLayout().dy; }); }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var sankeyVisual = function (ecModel, payload) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var graph = seriesModel.getGraph(); var nodes = graph.nodes; if (nodes.length) { var minValue = Infinity; var maxValue = -Infinity; each$1(nodes, function (node) { var nodeValue = node.getLayout().value; if (nodeValue < minValue) { minValue = nodeValue; } if (nodeValue > maxValue) { maxValue = nodeValue; } }); each$1(nodes, function (node) { var mapping = new VisualMapping({ type: 'color', mappingMethod: 'linear', dataExtent: [minValue, maxValue], visual: seriesModel.get('color') }); var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value); var customColor = node.getModel().get('itemStyle.color'); customColor != null ? node.setVisual('color', customColor) : node.setVisual('color', mapValueToColor); }); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerLayout(sankeyLayout); registerVisual(sankeyVisual); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var seriesModelMixin = { /** * @private * @type {string} */ _baseAxisDim: null, /** * @override */ getInitialData: function (option, ecModel) { // When both types of xAxis and yAxis are 'value', layout is // needed to be specified by user. Otherwise, layout can be // judged by which axis is category. var ordinalMeta; var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex')); var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex')); var xAxisType = xAxisModel.get('type'); var yAxisType = yAxisModel.get('type'); var addOrdinal; // FIXME // 考虑时间轴 if (xAxisType === 'category') { option.layout = 'horizontal'; ordinalMeta = xAxisModel.getOrdinalMeta(); addOrdinal = true; } else if (yAxisType === 'category') { option.layout = 'vertical'; ordinalMeta = yAxisModel.getOrdinalMeta(); addOrdinal = true; } else { option.layout = option.layout || 'horizontal'; } var coordDims = ['x', 'y']; var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1; var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex]; var otherAxisDim = coordDims[1 - baseAxisDimIndex]; var axisModels = [xAxisModel, yAxisModel]; var baseAxisType = axisModels[baseAxisDimIndex].get('type'); var otherAxisType = axisModels[1 - baseAxisDimIndex].get('type'); var data = option.data; // ??? FIXME make a stage to perform data transfrom. // MUST create a new data, consider setOption({}) again. if (data && addOrdinal) { var newOptionData = []; each$1(data, function (item, index) { var newItem; if (item.value && isArray(item.value)) { newItem = item.value.slice(); item.value.unshift(index); } else if (isArray(item)) { newItem = item.slice(); item.unshift(index); } else { newItem = item; } newOptionData.push(newItem); }); option.data = newOptionData; } var defaultValueDimensions = this.defaultValueDimensions; return createListSimply( this, { coordDimensions: [{ name: baseAxisDim, type: getDimensionTypeByAxis(baseAxisType), ordinalMeta: ordinalMeta, otherDims: { tooltip: false, itemName: 0 }, dimsDef: ['base'] }, { name: otherAxisDim, type: getDimensionTypeByAxis(otherAxisType), dimsDef: defaultValueDimensions.slice() }], dimensionsCount: defaultValueDimensions.length + 1 } ); }, /** * If horizontal, base axis is x, otherwise y. * @override */ getBaseAxis: function () { var dim = this._baseAxisDim; return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BoxplotSeries = SeriesModel.extend({ type: 'series.boxplot', dependencies: ['xAxis', 'yAxis', 'grid'], // TODO // box width represents group size, so dimension should have 'size'. /** * @see * The meanings of 'min' and 'max' depend on user, * and echarts do not need to know it. * @readOnly */ defaultValueDimensions: [ {name: 'min', defaultTooltip: true}, {name: 'Q1', defaultTooltip: true}, {name: 'median', defaultTooltip: true}, {name: 'Q3', defaultTooltip: true}, {name: 'max', defaultTooltip: true} ], /** * @type {Array.} * @readOnly */ dimensions: null, /** * @override */ defaultOption: { zlevel: 0, // 一级层叠 z: 2, // 二级层叠 coordinateSystem: 'cartesian2d', legendHoverLink: true, hoverAnimation: true, // xAxisIndex: 0, // yAxisIndex: 0, layout: null, // 'horizontal' or 'vertical' boxWidth: [7, 50], // [min, max] can be percent of band width. itemStyle: { color: '#fff', borderWidth: 1 }, emphasis: { itemStyle: { borderWidth: 2, shadowBlur: 5, shadowOffsetX: 2, shadowOffsetY: 2, shadowColor: 'rgba(0,0,0,0.4)' } }, animationEasing: 'elasticOut', animationDuration: 800 } }); mixin(BoxplotSeries, seriesModelMixin, true); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Update common properties var NORMAL_ITEM_STYLE_PATH = ['itemStyle']; var EMPHASIS_ITEM_STYLE_PATH = ['emphasis', 'itemStyle']; var BoxplotView = Chart.extend({ type: 'boxplot', render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var group = this.group; var oldData = this._data; // There is no old data only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!this._data) { group.removeAll(); } var constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0; data.diff(oldData) .add(function (newIdx) { if (data.hasValue(newIdx)) { var itemLayout = data.getItemLayout(newIdx); var symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true); data.setItemGraphicEl(newIdx, symbolEl); group.add(symbolEl); } }) .update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); // Empty data if (!data.hasValue(newIdx)) { group.remove(symbolEl); return; } var itemLayout = data.getItemLayout(newIdx); if (!symbolEl) { symbolEl = createNormalBox(itemLayout, data, newIdx, constDim); } else { updateNormalBoxData(itemLayout, symbolEl, data, newIdx); } group.add(symbolEl); data.setItemGraphicEl(newIdx, symbolEl); }) .remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && group.remove(el); }) .execute(); this._data = data; }, remove: function (ecModel) { var group = this.group; var data = this._data; this._data = null; data && data.eachItemGraphicEl(function (el) { el && group.remove(el); }); }, dispose: noop }); var BoxPath = Path.extend({ type: 'boxplotBoxPath', shape: {}, buildPath: function (ctx, shape) { var ends = shape.points; var i = 0; ctx.moveTo(ends[i][0], ends[i][1]); i++; for (; i < 4; i++) { ctx.lineTo(ends[i][0], ends[i][1]); } ctx.closePath(); for (; i < ends.length; i++) { ctx.moveTo(ends[i][0], ends[i][1]); i++; ctx.lineTo(ends[i][0], ends[i][1]); } } }); function createNormalBox(itemLayout, data, dataIndex, constDim, isInit) { var ends = itemLayout.ends; var el = new BoxPath({ shape: { points: isInit ? transInit(ends, constDim, itemLayout) : ends } }); updateNormalBoxData(itemLayout, el, data, dataIndex, isInit); return el; } function updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) { var seriesModel = data.hostModel; var updateMethod = graphic[isInit ? 'initProps' : 'updateProps']; updateMethod( el, {shape: {points: itemLayout.ends}}, seriesModel, dataIndex ); var itemModel = data.getItemModel(dataIndex); var normalItemStyleModel = itemModel.getModel(NORMAL_ITEM_STYLE_PATH); var borderColor = data.getItemVisual(dataIndex, 'color'); // Exclude borderColor. var itemStyle = normalItemStyleModel.getItemStyle(['borderColor']); itemStyle.stroke = borderColor; itemStyle.strokeNoScale = true; el.useStyle(itemStyle); el.z2 = 100; var hoverStyle = itemModel.getModel(EMPHASIS_ITEM_STYLE_PATH).getItemStyle(); setHoverStyle(el, hoverStyle); } function transInit(points, dim, itemLayout) { return map(points, function (point) { point = point.slice(); point[dim] = itemLayout.initBaseline; return point; }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var borderColorQuery = ['itemStyle', 'borderColor']; var boxplotVisual = function (ecModel, api) { var globalColors = ecModel.get('color'); ecModel.eachRawSeriesByType('boxplot', function (seriesModel) { var defaulColor = globalColors[seriesModel.seriesIndex % globalColors.length]; var data = seriesModel.getData(); data.setVisual({ legendSymbol: 'roundRect', // Use name 'color' but not 'borderColor' for legend usage and // visual coding from other component like dataRange. color: seriesModel.get(borderColorQuery) || defaulColor }); // Only visible series has each data be visual encoded if (!ecModel.isSeriesFiltered(seriesModel)) { data.each(function (idx) { var itemModel = data.getItemModel(idx); data.setItemVisual( idx, {color: itemModel.get(borderColorQuery, true)} ); }); } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$13 = each$1; var boxplotLayout = function (ecModel) { var groupResult = groupSeriesByAxis(ecModel); each$13(groupResult, function (groupItem) { var seriesModels = groupItem.seriesModels; if (!seriesModels.length) { return; } calculateBase(groupItem); each$13(seriesModels, function (seriesModel, idx) { layoutSingleSeries( seriesModel, groupItem.boxOffsetList[idx], groupItem.boxWidthList[idx] ); }); }); }; /** * Group series by axis. */ function groupSeriesByAxis(ecModel) { var result = []; var axisList = []; ecModel.eachSeriesByType('boxplot', function (seriesModel) { var baseAxis = seriesModel.getBaseAxis(); var idx = indexOf(axisList, baseAxis); if (idx < 0) { idx = axisList.length; axisList[idx] = baseAxis; result[idx] = {axis: baseAxis, seriesModels: []}; } result[idx].seriesModels.push(seriesModel); }); return result; } /** * Calculate offset and box width for each series. */ function calculateBase(groupItem) { var extent; var baseAxis = groupItem.axis; var seriesModels = groupItem.seriesModels; var seriesCount = seriesModels.length; var boxWidthList = groupItem.boxWidthList = []; var boxOffsetList = groupItem.boxOffsetList = []; var boundList = []; var bandWidth; if (baseAxis.type === 'category') { bandWidth = baseAxis.getBandWidth(); } else { var maxDataCount = 0; each$13(seriesModels, function (seriesModel) { maxDataCount = Math.max(maxDataCount, seriesModel.getData().count()); }); extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / maxDataCount; } each$13(seriesModels, function (seriesModel) { var boxWidthBound = seriesModel.get('boxWidth'); if (!isArray(boxWidthBound)) { boxWidthBound = [boxWidthBound, boxWidthBound]; } boundList.push([ parsePercent$1(boxWidthBound[0], bandWidth) || 0, parsePercent$1(boxWidthBound[1], bandWidth) || 0 ]); }); var availableWidth = bandWidth * 0.8 - 2; var boxGap = availableWidth / seriesCount * 0.3; var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount; var base = boxWidth / 2 - availableWidth / 2; each$13(seriesModels, function (seriesModel, idx) { boxOffsetList.push(base); base += boxGap + boxWidth; boxWidthList.push( Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1]) ); }); } /** * Calculate points location for each series. */ function layoutSingleSeries(seriesModel, offset, boxWidth) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var halfWidth = boxWidth / 2; var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1; var vDimIdx = 1 - cDimIdx; var coordDims = ['x', 'y']; var cDim = data.mapDimension(coordDims[cDimIdx]); var vDims = data.mapDimension(coordDims[vDimIdx], true); if (cDim == null || vDims.length < 5) { return; } for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) { var axisDimVal = data.get(cDim, dataIndex); var median = getPoint(axisDimVal, vDims[2], dataIndex); var end1 = getPoint(axisDimVal, vDims[0], dataIndex); var end2 = getPoint(axisDimVal, vDims[1], dataIndex); var end4 = getPoint(axisDimVal, vDims[3], dataIndex); var end5 = getPoint(axisDimVal, vDims[4], dataIndex); var ends = []; addBodyEnd(ends, end2, 0); addBodyEnd(ends, end4, 1); ends.push(end1, end2, end5, end4); layEndLine(ends, end1); layEndLine(ends, end5); layEndLine(ends, median); data.setItemLayout(dataIndex, { initBaseline: median[vDimIdx], ends: ends }); } function getPoint(axisDimVal, dimIdx, dataIndex) { var val = data.get(dimIdx, dataIndex); var p = []; p[cDimIdx] = axisDimVal; p[vDimIdx] = val; var point; if (isNaN(axisDimVal) || isNaN(val)) { point = [NaN, NaN]; } else { point = coordSys.dataToPoint(p); point[cDimIdx] += offset; } return point; } function addBodyEnd(ends, point, start) { var point1 = point.slice(); var point2 = point.slice(); point1[cDimIdx] += halfWidth; point2[cDimIdx] -= halfWidth; start ? ends.push(point1, point2) : ends.push(point2, point1); } function layEndLine(ends, endCenter) { var from = endCenter.slice(); var to = endCenter.slice(); from[cDimIdx] -= halfWidth; to[cDimIdx] += halfWidth; ends.push(from, to); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(boxplotVisual); registerLayout(boxplotLayout); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CandlestickSeries = SeriesModel.extend({ type: 'series.candlestick', dependencies: ['xAxis', 'yAxis', 'grid'], /** * @readOnly */ defaultValueDimensions: [ {name: 'open', defaultTooltip: true}, {name: 'close', defaultTooltip: true}, {name: 'lowest', defaultTooltip: true}, {name: 'highest', defaultTooltip: true} ], /** * @type {Array.} * @readOnly */ dimensions: null, /** * @override */ defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'cartesian2d', legendHoverLink: true, hoverAnimation: true, // xAxisIndex: 0, // yAxisIndex: 0, layout: null, // 'horizontal' or 'vertical' itemStyle: { color: '#c23531', // 阳线 positive color0: '#314656', // 阴线 negative '#c23531', '#314656' borderWidth: 1, // FIXME // ec2中使用的是lineStyle.color 和 lineStyle.color0 borderColor: '#c23531', borderColor0: '#314656' }, emphasis: { itemStyle: { borderWidth: 2 } }, barMaxWidth: null, barMinWidth: null, barWidth: null, large: true, largeThreshold: 600, progressive: 3e3, progressiveThreshold: 1e4, progressiveChunkMode: 'mod', animationUpdate: false, animationEasing: 'linear', animationDuration: 300 }, /** * Get dimension for shadow in dataZoom * @return {string} dimension name */ getShadowDim: function () { return 'open'; }, brushSelector: function (dataIndex, data, selectors) { var itemLayout = data.getItemLayout(dataIndex); return itemLayout && selectors.rect(itemLayout.brushRect); } }); mixin(CandlestickSeries, seriesModelMixin, true); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var NORMAL_ITEM_STYLE_PATH$1 = ['itemStyle']; var EMPHASIS_ITEM_STYLE_PATH$1 = ['emphasis', 'itemStyle']; var SKIP_PROPS = ['color', 'color0', 'borderColor', 'borderColor0']; var CandlestickView = Chart.extend({ type: 'candlestick', render: function (seriesModel, ecModel, api) { this._updateDrawMode(seriesModel); this._isLargeDraw ? this._renderLarge(seriesModel) : this._renderNormal(seriesModel); }, incrementalPrepareRender: function (seriesModel, ecModel, api) { this._clear(); this._updateDrawMode(seriesModel); }, incrementalRender: function (params, seriesModel, ecModel, api) { this._isLargeDraw ? this._incrementalRenderLarge(params, seriesModel) : this._incrementalRenderNormal(params, seriesModel); }, _updateDrawMode: function (seriesModel) { var isLargeDraw = seriesModel.pipelineContext.large; if (this._isLargeDraw == null || isLargeDraw ^ this._isLargeDraw) { this._isLargeDraw = isLargeDraw; this._clear(); } }, _renderNormal: function (seriesModel) { var data = seriesModel.getData(); var oldData = this._data; var group = this.group; var isSimpleBox = data.getLayout('isSimpleBox'); // There is no old data only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!this._data) { group.removeAll(); } data.diff(oldData) .add(function (newIdx) { if (data.hasValue(newIdx)) { var el; var itemLayout = data.getItemLayout(newIdx); el = createNormalBox$1(itemLayout, newIdx, true); initProps(el, {shape: {points: itemLayout.ends}}, seriesModel, newIdx); setBoxCommon(el, data, newIdx, isSimpleBox); group.add(el); data.setItemGraphicEl(newIdx, el); } }) .update(function (newIdx, oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); // Empty data if (!data.hasValue(newIdx)) { group.remove(el); return; } var itemLayout = data.getItemLayout(newIdx); if (!el) { el = createNormalBox$1(itemLayout, newIdx); } else { updateProps(el, {shape: {points: itemLayout.ends}}, seriesModel, newIdx); } setBoxCommon(el, data, newIdx, isSimpleBox); group.add(el); data.setItemGraphicEl(newIdx, el); }) .remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && group.remove(el); }) .execute(); this._data = data; }, _renderLarge: function (seriesModel) { this._clear(); createLarge$1(seriesModel, this.group); }, _incrementalRenderNormal: function (params, seriesModel) { var data = seriesModel.getData(); var isSimpleBox = data.getLayout('isSimpleBox'); var dataIndex; while ((dataIndex = params.next()) != null) { var el; var itemLayout = data.getItemLayout(dataIndex); el = createNormalBox$1(itemLayout, dataIndex); setBoxCommon(el, data, dataIndex, isSimpleBox); el.incremental = true; this.group.add(el); } }, _incrementalRenderLarge: function (params, seriesModel) { createLarge$1(seriesModel, this.group, true); }, remove: function (ecModel) { this._clear(); }, _clear: function () { this.group.removeAll(); this._data = null; }, dispose: noop }); var NormalBoxPath = Path.extend({ type: 'normalCandlestickBox', shape: {}, buildPath: function (ctx, shape) { var ends = shape.points; if (this.__simpleBox) { ctx.moveTo(ends[4][0], ends[4][1]); ctx.lineTo(ends[6][0], ends[6][1]); } else { ctx.moveTo(ends[0][0], ends[0][1]); ctx.lineTo(ends[1][0], ends[1][1]); ctx.lineTo(ends[2][0], ends[2][1]); ctx.lineTo(ends[3][0], ends[3][1]); ctx.closePath(); ctx.moveTo(ends[4][0], ends[4][1]); ctx.lineTo(ends[5][0], ends[5][1]); ctx.moveTo(ends[6][0], ends[6][1]); ctx.lineTo(ends[7][0], ends[7][1]); } } }); function createNormalBox$1(itemLayout, dataIndex, isInit) { var ends = itemLayout.ends; return new NormalBoxPath({ shape: { points: isInit ? transInit$1(ends, itemLayout) : ends }, z2: 100 }); } function setBoxCommon(el, data, dataIndex, isSimpleBox) { var itemModel = data.getItemModel(dataIndex); var normalItemStyleModel = itemModel.getModel(NORMAL_ITEM_STYLE_PATH$1); var color = data.getItemVisual(dataIndex, 'color'); var borderColor = data.getItemVisual(dataIndex, 'borderColor') || color; // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var itemStyle = normalItemStyleModel.getItemStyle(SKIP_PROPS); el.useStyle(itemStyle); el.style.strokeNoScale = true; el.style.fill = color; el.style.stroke = borderColor; el.__simpleBox = isSimpleBox; var hoverStyle = itemModel.getModel(EMPHASIS_ITEM_STYLE_PATH$1).getItemStyle(); setHoverStyle(el, hoverStyle); } function transInit$1(points, itemLayout) { return map(points, function (point) { point = point.slice(); point[1] = itemLayout.initBaseline; return point; }); } var LargeBoxPath = Path.extend({ type: 'largeCandlestickBox', shape: {}, buildPath: function (ctx, shape) { // Drawing lines is more efficient than drawing // a whole line or drawing rects. var points = shape.points; for (var i = 0; i < points.length;) { if (this.__sign === points[i++]) { var x = points[i++]; ctx.moveTo(x, points[i++]); ctx.lineTo(x, points[i++]); } else { i += 3; } } } }); function createLarge$1(seriesModel, group, incremental) { var data = seriesModel.getData(); var largePoints = data.getLayout('largePoints'); var elP = new LargeBoxPath({ shape: {points: largePoints}, __sign: 1 }); group.add(elP); var elN = new LargeBoxPath({ shape: {points: largePoints}, __sign: -1 }); group.add(elN); setLargeStyle$1(1, elP, seriesModel, data); setLargeStyle$1(-1, elN, seriesModel, data); if (incremental) { elP.incremental = true; elN.incremental = true; } } function setLargeStyle$1(sign, el, seriesModel, data) { var suffix = sign > 0 ? 'P' : 'N'; var borderColor = data.getVisual('borderColor' + suffix) || data.getVisual('color' + suffix); // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var itemStyle = seriesModel.getModel(NORMAL_ITEM_STYLE_PATH$1).getItemStyle(SKIP_PROPS); el.useStyle(itemStyle); el.style.fill = null; el.style.stroke = borderColor; // No different // el.style.lineWidth = .5; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var preprocessor = function (option) { if (!option || !isArray(option.series)) { return; } // Translate 'k' to 'candlestick'. each$1(option.series, function (seriesItem) { if (isObject$1(seriesItem) && seriesItem.type === 'k') { seriesItem.type = 'candlestick'; } }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var positiveBorderColorQuery = ['itemStyle', 'borderColor']; var negativeBorderColorQuery = ['itemStyle', 'borderColor0']; var positiveColorQuery = ['itemStyle', 'color']; var negativeColorQuery = ['itemStyle', 'color0']; var candlestickVisual = { seriesType: 'candlestick', plan: createRenderPlanner(), // For legend. performRawSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); var isLargeRender = seriesModel.pipelineContext.large; data.setVisual({ legendSymbol: 'roundRect', colorP: getColor(1, seriesModel), colorN: getColor(-1, seriesModel), borderColorP: getBorderColor(1, seriesModel), borderColorN: getBorderColor(-1, seriesModel) }); // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } return !isLargeRender && {progress: progress}; function progress(params, data) { var dataIndex; while ((dataIndex = params.next()) != null) { var itemModel = data.getItemModel(dataIndex); var sign = data.getItemLayout(dataIndex).sign; data.setItemVisual( dataIndex, { color: getColor(sign, itemModel), borderColor: getBorderColor(sign, itemModel) } ); } } function getColor(sign, model) { return model.get( sign > 0 ? positiveColorQuery : negativeColorQuery ); } function getBorderColor(sign, model) { return model.get( sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery ); } } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var LargeArr$1 = typeof Float32Array !== 'undefined' ? Float32Array : Array; var candlestickLayout = { seriesType: 'candlestick', plan: createRenderPlanner(), reset: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var candleWidth = calculateCandleWidth(seriesModel, data); var cDimIdx = 0; var vDimIdx = 1; var coordDims = ['x', 'y']; var cDim = data.mapDimension(coordDims[cDimIdx]); var vDims = data.mapDimension(coordDims[vDimIdx], true); var openDim = vDims[0]; var closeDim = vDims[1]; var lowestDim = vDims[2]; var highestDim = vDims[3]; data.setLayout({ candleWidth: candleWidth, // The value is experimented visually. isSimpleBox: candleWidth <= 1.3 }); if (cDim == null || vDims.length < 4) { return; } return { progress: seriesModel.pipelineContext.large ? largeProgress : normalProgress }; function normalProgress(params, data) { var dataIndex; while ((dataIndex = params.next()) != null) { var axisDimVal = data.get(cDim, dataIndex); var openVal = data.get(openDim, dataIndex); var closeVal = data.get(closeDim, dataIndex); var lowestVal = data.get(lowestDim, dataIndex); var highestVal = data.get(highestDim, dataIndex); var ocLow = Math.min(openVal, closeVal); var ocHigh = Math.max(openVal, closeVal); var ocLowPoint = getPoint(ocLow, axisDimVal); var ocHighPoint = getPoint(ocHigh, axisDimVal); var lowestPoint = getPoint(lowestVal, axisDimVal); var highestPoint = getPoint(highestVal, axisDimVal); var ends = []; addBodyEnd(ends, ocHighPoint, 0); addBodyEnd(ends, ocLowPoint, 1); ends.push( subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint) ); data.setItemLayout(dataIndex, { sign: getSign(data, dataIndex, openVal, closeVal, closeDim), initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], // open point. ends: ends, brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal) }); } function getPoint(val, axisDimVal) { var p = []; p[cDimIdx] = axisDimVal; p[vDimIdx] = val; return (isNaN(axisDimVal) || isNaN(val)) ? [NaN, NaN] : coordSys.dataToPoint(p); } function addBodyEnd(ends, point, start) { var point1 = point.slice(); var point2 = point.slice(); point1[cDimIdx] = subPixelOptimize( point1[cDimIdx] + candleWidth / 2, 1, false ); point2[cDimIdx] = subPixelOptimize( point2[cDimIdx] - candleWidth / 2, 1, true ); start ? ends.push(point1, point2) : ends.push(point2, point1); } function makeBrushRect(lowestVal, highestVal, axisDimVal) { var pmin = getPoint(lowestVal, axisDimVal); var pmax = getPoint(highestVal, axisDimVal); pmin[cDimIdx] -= candleWidth / 2; pmax[cDimIdx] -= candleWidth / 2; return { x: pmin[0], y: pmin[1], width: vDimIdx ? candleWidth : pmax[0] - pmin[0], height: vDimIdx ? pmax[1] - pmin[1] : candleWidth }; } function subPixelOptimizePoint(point) { point[cDimIdx] = subPixelOptimize(point[cDimIdx], 1); return point; } } function largeProgress(params, data) { // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...] var points = new LargeArr$1(params.count * 5); var offset = 0; var point; var tmpIn = []; var tmpOut = []; var dataIndex; while ((dataIndex = params.next()) != null) { var axisDimVal = data.get(cDim, dataIndex); var openVal = data.get(openDim, dataIndex); var closeVal = data.get(closeDim, dataIndex); var lowestVal = data.get(lowestDim, dataIndex); var highestVal = data.get(highestDim, dataIndex); if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) { points[offset++] = NaN; offset += 4; continue; } points[offset++] = getSign(data, dataIndex, openVal, closeVal, closeDim); tmpIn[cDimIdx] = axisDimVal; tmpIn[vDimIdx] = lowestVal; point = coordSys.dataToPoint(tmpIn, null, tmpOut); points[offset++] = point ? point[0] : NaN; points[offset++] = point ? point[1] : NaN; tmpIn[vDimIdx] = highestVal; point = coordSys.dataToPoint(tmpIn, null, tmpOut); points[offset++] = point ? point[1] : NaN; } data.setLayout('largePoints', points); } } }; function getSign(data, dataIndex, openVal, closeVal, closeDim) { var sign; if (openVal > closeVal) { sign = -1; } else if (openVal < closeVal) { sign = 1; } else { sign = dataIndex > 0 // If close === open, compare with close of last record ? (data.get(closeDim, dataIndex - 1) <= closeVal ? 1 : -1) // No record of previous, set to be positive : 1; } return sign; } function calculateCandleWidth(seriesModel, data) { var baseAxis = seriesModel.getBaseAxis(); var extent; var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : ( extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / data.count() ); var barMaxWidth = parsePercent$1( retrieve2(seriesModel.get('barMaxWidth'), bandWidth), bandWidth ); var barMinWidth = parsePercent$1( retrieve2(seriesModel.get('barMinWidth'), 1), bandWidth ); var barWidth = seriesModel.get('barWidth'); return barWidth != null ? parsePercent$1(barWidth, bandWidth) // Put max outer to ensure bar visible in spite of overlap. : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerPreprocessor(preprocessor); registerVisual(candlestickVisual); registerLayout(candlestickLayout); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.effectScatter', dependencies: ['grid', 'polar'], getInitialData: function (option, ecModel) { return createListFromArray(this.getSource(), this); }, brushSelector: 'point', defaultOption: { coordinateSystem: 'cartesian2d', zlevel: 0, z: 2, legendHoverLink: true, effectType: 'ripple', progressive: 0, // When to show the effect, option: 'render'|'emphasis' showEffectOn: 'render', // Ripple effect config rippleEffect: { period: 4, // Scale of ripple scale: 2.5, // Brush type can be fill or stroke brushType: 'fill' }, // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Polar coordinate system // polarIndex: 0, // Geo coordinate system // geoIndex: 0, // symbol: null, // 图形类型 symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2 // symbolRotate: null, // 图形旋转控制 // large: false, // Available when large is true // largeThreshold: 2000, // itemStyle: { // opacity: 1 // } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Symbol with ripple effect * @module echarts/chart/helper/EffectSymbol */ var EFFECT_RIPPLE_NUMBER = 3; function normalizeSymbolSize$1(symbolSize) { if (!isArray(symbolSize)) { symbolSize = [+symbolSize, +symbolSize]; } return symbolSize; } function updateRipplePath(rippleGroup, effectCfg) { rippleGroup.eachChild(function (ripplePath) { ripplePath.attr({ z: effectCfg.z, zlevel: effectCfg.zlevel, style: { stroke: effectCfg.brushType === 'stroke' ? effectCfg.color : null, fill: effectCfg.brushType === 'fill' ? effectCfg.color : null } }); }); } /** * @constructor * @param {module:echarts/data/List} data * @param {number} idx * @extends {module:zrender/graphic/Group} */ function EffectSymbol(data, idx) { Group.call(this); var symbol = new SymbolClz$1(data, idx); var rippleGroup = new Group(); this.add(symbol); this.add(rippleGroup); rippleGroup.beforeUpdate = function () { this.attr(symbol.getScale()); }; this.updateData(data, idx); } var effectSymbolProto = EffectSymbol.prototype; effectSymbolProto.stopEffectAnimation = function () { this.childAt(1).removeAll(); }; effectSymbolProto.startEffectAnimation = function (effectCfg) { var symbolType = effectCfg.symbolType; var color = effectCfg.color; var rippleGroup = this.childAt(1); for (var i = 0; i < EFFECT_RIPPLE_NUMBER; i++) { // var ripplePath = createSymbol( // symbolType, -0.5, -0.5, 1, 1, color // ); // If width/height are set too small (e.g., set to 1) on ios10 // and macOS Sierra, a circle stroke become a rect, no matter what // the scale is set. So we set width/height as 2. See #4136. var ripplePath = createSymbol( symbolType, -1, -1, 2, 2, color ); ripplePath.attr({ style: { strokeNoScale: true }, z2: 99, silent: true, scale: [0.5, 0.5] }); var delay = -i / EFFECT_RIPPLE_NUMBER * effectCfg.period + effectCfg.effectOffset; // TODO Configurable effectCfg.period ripplePath.animate('', true) .when(effectCfg.period, { scale: [effectCfg.rippleScale / 2, effectCfg.rippleScale / 2] }) .delay(delay) .start(); ripplePath.animateStyle(true) .when(effectCfg.period, { opacity: 0 }) .delay(delay) .start(); rippleGroup.add(ripplePath); } updateRipplePath(rippleGroup, effectCfg); }; /** * Update effect symbol */ effectSymbolProto.updateEffectAnimation = function (effectCfg) { var oldEffectCfg = this._effectCfg; var rippleGroup = this.childAt(1); // Must reinitialize effect if following configuration changed var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale']; for (var i = 0; i < DIFFICULT_PROPS.length; i++) { var propName = DIFFICULT_PROPS[i]; if (oldEffectCfg[propName] !== effectCfg[propName]) { this.stopEffectAnimation(); this.startEffectAnimation(effectCfg); return; } } updateRipplePath(rippleGroup, effectCfg); }; /** * Highlight symbol */ effectSymbolProto.highlight = function () { this.trigger('emphasis'); }; /** * Downplay symbol */ effectSymbolProto.downplay = function () { this.trigger('normal'); }; /** * Update symbol properties * @param {module:echarts/data/List} data * @param {number} idx */ effectSymbolProto.updateData = function (data, idx) { var seriesModel = data.hostModel; this.childAt(0).updateData(data, idx); var rippleGroup = this.childAt(1); var itemModel = data.getItemModel(idx); var symbolType = data.getItemVisual(idx, 'symbol'); var symbolSize = normalizeSymbolSize$1(data.getItemVisual(idx, 'symbolSize')); var color = data.getItemVisual(idx, 'color'); rippleGroup.attr('scale', symbolSize); rippleGroup.traverse(function (ripplePath) { ripplePath.attr({ fill: color }); }); var symbolOffset = itemModel.getShallow('symbolOffset'); if (symbolOffset) { var pos = rippleGroup.position; pos[0] = parsePercent$1(symbolOffset[0], symbolSize[0]); pos[1] = parsePercent$1(symbolOffset[1], symbolSize[1]); } rippleGroup.rotation = (itemModel.getShallow('symbolRotate') || 0) * Math.PI / 180 || 0; var effectCfg = {}; effectCfg.showEffectOn = seriesModel.get('showEffectOn'); effectCfg.rippleScale = itemModel.get('rippleEffect.scale'); effectCfg.brushType = itemModel.get('rippleEffect.brushType'); effectCfg.period = itemModel.get('rippleEffect.period') * 1000; effectCfg.effectOffset = idx / data.count(); effectCfg.z = itemModel.getShallow('z') || 0; effectCfg.zlevel = itemModel.getShallow('zlevel') || 0; effectCfg.symbolType = symbolType; effectCfg.color = color; this.off('mouseover').off('mouseout').off('emphasis').off('normal'); if (effectCfg.showEffectOn === 'render') { this._effectCfg ? this.updateEffectAnimation(effectCfg) : this.startEffectAnimation(effectCfg); this._effectCfg = effectCfg; } else { // Not keep old effect config this._effectCfg = null; this.stopEffectAnimation(); var symbol = this.childAt(0); var onEmphasis = function () { symbol.highlight(); if (effectCfg.showEffectOn !== 'render') { this.startEffectAnimation(effectCfg); } }; var onNormal = function () { symbol.downplay(); if (effectCfg.showEffectOn !== 'render') { this.stopEffectAnimation(); } }; this.on('mouseover', onEmphasis, this) .on('mouseout', onNormal, this) .on('emphasis', onEmphasis, this) .on('normal', onNormal, this); } this._effectCfg = effectCfg; }; effectSymbolProto.fadeOut = function (cb) { this.off('mouseover').off('mouseout').off('emphasis').off('normal'); cb && cb(); }; inherits(EffectSymbol, Group); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendChartView({ type: 'effectScatter', init: function () { this._symbolDraw = new SymbolDraw(EffectSymbol); }, render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var effectSymbolDraw = this._symbolDraw; effectSymbolDraw.updateData(data); this.group.add(effectSymbolDraw.group); }, updateTransform: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); this.group.dirty(); var res = pointsLayout().reset(seriesModel); if (res.progress) { res.progress({ start: 0, end: data.count() }, data); } this._symbolDraw.updateLayout(data); }, _updateGroupTransform: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.getRoamTransform) { this.group.transform = clone$2(coordSys.getRoamTransform()); this.group.decomposeTransform(); } }, remove: function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(api); }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(visualSymbol('effectScatter', 'circle')); registerLayout(pointsLayout('effectScatter')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Uint32Array, Float64Array, Float32Array */ var Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array; var Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array; function compatEc2(seriesOpt) { var data = seriesOpt.data; if (data && data[0] && data[0][0] && data[0][0].coord) { if (__DEV__) { console.warn('Lines data configuration has been changed to' + ' { coords:[[1,2],[2,3]] }'); } seriesOpt.data = map(data, function (itemOpt) { var coords = [ itemOpt[0].coord, itemOpt[1].coord ]; var target = { coords: coords }; if (itemOpt[0].name) { target.fromName = itemOpt[0].name; } if (itemOpt[1].name) { target.toName = itemOpt[1].name; } return mergeAll([target, itemOpt[0], itemOpt[1]]); }); } } var LinesSeries = SeriesModel.extend({ type: 'series.lines', dependencies: ['grid', 'polar'], visualColorAccessPath: 'lineStyle.color', init: function (option) { // The input data may be null/undefined. option.data = option.data || []; // Not using preprocessor because mergeOption may not have series.type compatEc2(option); var result = this._processFlatCoordsArray(option.data); this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; if (result.flatCoords) { option.data = new Float32Array(result.count); } LinesSeries.superApply(this, 'init', arguments); }, mergeOption: function (option) { // The input data may be null/undefined. option.data = option.data || []; compatEc2(option); if (option.data) { // Only update when have option data to merge. var result = this._processFlatCoordsArray(option.data); this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; if (result.flatCoords) { option.data = new Float32Array(result.count); } } LinesSeries.superApply(this, 'mergeOption', arguments); }, appendData: function (params) { var result = this._processFlatCoordsArray(params.data); if (result.flatCoords) { if (!this._flatCoords) { this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; } else { this._flatCoords = concatArray(this._flatCoords, result.flatCoords); this._flatCoordsOffset = concatArray(this._flatCoordsOffset, result.flatCoordsOffset); } params.data = new Float32Array(result.count); } this.getRawData().appendData(params.data); }, _getCoordsFromItemModel: function (idx) { var itemModel = this.getData().getItemModel(idx); var coords = (itemModel.option instanceof Array) ? itemModel.option : itemModel.getShallow('coords'); if (__DEV__) { if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) { throw new Error( 'Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.' ); } } return coords; }, getLineCoordsCount: function (idx) { if (this._flatCoordsOffset) { return this._flatCoordsOffset[idx * 2 + 1]; } else { return this._getCoordsFromItemModel(idx).length; } }, getLineCoords: function (idx, out) { if (this._flatCoordsOffset) { var offset = this._flatCoordsOffset[idx * 2]; var len = this._flatCoordsOffset[idx * 2 + 1]; for (var i = 0; i < len; i++) { out[i] = out[i] || []; out[i][0] = this._flatCoords[offset + i * 2]; out[i][1] = this._flatCoords[offset + i * 2 + 1]; } return len; } else { var coords = this._getCoordsFromItemModel(idx); for (var i = 0; i < coords.length; i++) { out[i] = out[i] || []; out[i][0] = coords[i][0]; out[i][1] = coords[i][1]; } return coords.length; } }, _processFlatCoordsArray: function (data) { var startOffset = 0; if (this._flatCoords) { startOffset = this._flatCoords.length; } // Stored as a typed array. In format // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y | if (typeof data[0] === 'number') { var len = data.length; // Store offset and len of each segment var coordsOffsetAndLenStorage = new Uint32Arr(len); var coordsStorage = new Float64Arr(len); var coordsCursor = 0; var offsetCursor = 0; var dataCount = 0; for (var i = 0; i < len;) { dataCount++; var count = data[i++]; // Offset coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset; // Len coordsOffsetAndLenStorage[offsetCursor++] = count; for (var k = 0; k < count; k++) { var x = data[i++]; var y = data[i++]; coordsStorage[coordsCursor++] = x; coordsStorage[coordsCursor++] = y; if (i > len) { if (__DEV__) { throw new Error('Invalid data format.'); } } } } return { flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor), flatCoords: coordsStorage, count: dataCount }; } return { flatCoordsOffset: null, flatCoords: null, count: data.length }; }, getInitialData: function (option, ecModel) { if (__DEV__) { var CoordSys = CoordinateSystemManager.get(option.coordinateSystem); if (!CoordSys) { throw new Error('Unkown coordinate system ' + option.coordinateSystem); } } var lineData = new List(['value'], this); lineData.hasItemOption = false; lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) { // dataItem is simply coords if (dataItem instanceof Array) { return NaN; } else { lineData.hasItemOption = true; var value = dataItem.value; if (value != null) { return value instanceof Array ? value[dimIndex] : value; } } }); return lineData; }, formatTooltip: function (dataIndex) { var data = this.getData(); var itemModel = data.getItemModel(dataIndex); var name = itemModel.get('name'); if (name) { return name; } var fromName = itemModel.get('fromName'); var toName = itemModel.get('toName'); var html = []; fromName != null && html.push(fromName); toName != null && html.push(toName); return encodeHTML(html.join(' > ')); }, preventIncremental: function () { return !!this.get('effect.show'); }, getProgressive: function () { var progressive = this.option.progressive; if (progressive == null) { return this.option.large ? 1e4 : this.get('progressive'); } return progressive; }, getProgressiveThreshold: function () { var progressiveThreshold = this.option.progressiveThreshold; if (progressiveThreshold == null) { return this.option.large ? 2e4 : this.get('progressiveThreshold'); } return progressiveThreshold; }, defaultOption: { coordinateSystem: 'geo', zlevel: 0, z: 2, legendHoverLink: true, hoverAnimation: true, // Cartesian coordinate system xAxisIndex: 0, yAxisIndex: 0, symbol: ['none', 'none'], symbolSize: [10, 10], // Geo coordinate system geoIndex: 0, effect: { show: false, period: 4, // Animation delay. support callback // delay: 0, // If move with constant speed px/sec // period will be ignored if this property is > 0, constantSpeed: 0, symbol: 'circle', symbolSize: 3, loop: true, // Length of trail, 0 - 1 trailLength: 0.2 // Same with lineStyle.color // color }, large: false, // Available when large is true largeThreshold: 2000, // If lines are polyline // polyline not support curveness, label, animation polyline: false, label: { show: false, position: 'end' // distance: 5, // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 }, lineStyle: { opacity: 0.5 } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Provide effect for line * @module echarts/chart/helper/EffectLine */ /** * @constructor * @extends {module:zrender/graphic/Group} * @alias {module:echarts/chart/helper/Line} */ function EffectLine(lineData, idx, seriesScope) { Group.call(this); this.add(this.createLine(lineData, idx, seriesScope)); this._updateEffectSymbol(lineData, idx); } var effectLineProto = EffectLine.prototype; effectLineProto.createLine = function (lineData, idx, seriesScope) { return new Line$1(lineData, idx, seriesScope); }; effectLineProto._updateEffectSymbol = function (lineData, idx) { var itemModel = lineData.getItemModel(idx); var effectModel = itemModel.getModel('effect'); var size = effectModel.get('symbolSize'); var symbolType = effectModel.get('symbol'); if (!isArray(size)) { size = [size, size]; } var color = effectModel.get('color') || lineData.getItemVisual(idx, 'color'); var symbol = this.childAt(1); if (this._symbolType !== symbolType) { // Remove previous this.remove(symbol); symbol = createSymbol( symbolType, -0.5, -0.5, 1, 1, color ); symbol.z2 = 100; symbol.culling = true; this.add(symbol); } // Symbol may be removed if loop is false if (!symbol) { return; } // Shadow color is same with color in default symbol.setStyle('shadowColor', color); symbol.setStyle(effectModel.getItemStyle(['color'])); symbol.attr('scale', size); symbol.setColor(color); symbol.attr('scale', size); this._symbolType = symbolType; this._updateEffectAnimation(lineData, effectModel, idx); }; effectLineProto._updateEffectAnimation = function (lineData, effectModel, idx) { var symbol = this.childAt(1); if (!symbol) { return; } var self = this; var points = lineData.getItemLayout(idx); var period = effectModel.get('period') * 1000; var loop = effectModel.get('loop'); var constantSpeed = effectModel.get('constantSpeed'); var delayExpr = retrieve(effectModel.get('delay'), function (idx) { return idx / lineData.count() * period / 3; }); var isDelayFunc = typeof delayExpr === 'function'; // Ignore when updating symbol.ignore = true; this.updateAnimationPoints(symbol, points); if (constantSpeed > 0) { period = this.getLineLength(symbol) / constantSpeed * 1000; } if (period !== this._period || loop !== this._loop) { symbol.stopAnimation(); var delay = delayExpr; if (isDelayFunc) { delay = delayExpr(idx); } if (symbol.__t > 0) { delay = -period * symbol.__t; } symbol.__t = 0; var animator = symbol.animate('', loop) .when(period, { __t: 1 }) .delay(delay) .during(function () { self.updateSymbolPosition(symbol); }); if (!loop) { animator.done(function () { self.remove(symbol); }); } animator.start(); } this._period = period; this._loop = loop; }; effectLineProto.getLineLength = function (symbol) { // Not so accurate return (dist(symbol.__p1, symbol.__cp1) + dist(symbol.__cp1, symbol.__p2)); }; effectLineProto.updateAnimationPoints = function (symbol, points) { symbol.__p1 = points[0]; symbol.__p2 = points[1]; symbol.__cp1 = points[2] || [ (points[0][0] + points[1][0]) / 2, (points[0][1] + points[1][1]) / 2 ]; }; effectLineProto.updateData = function (lineData, idx, seriesScope) { this.childAt(0).updateData(lineData, idx, seriesScope); this._updateEffectSymbol(lineData, idx); }; effectLineProto.updateSymbolPosition = function (symbol) { var p1 = symbol.__p1; var p2 = symbol.__p2; var cp1 = symbol.__cp1; var t = symbol.__t; var pos = symbol.position; var quadraticAt$$1 = quadraticAt; var quadraticDerivativeAt$$1 = quadraticDerivativeAt; pos[0] = quadraticAt$$1(p1[0], cp1[0], p2[0], t); pos[1] = quadraticAt$$1(p1[1], cp1[1], p2[1], t); // Tangent var tx = quadraticDerivativeAt$$1(p1[0], cp1[0], p2[0], t); var ty = quadraticDerivativeAt$$1(p1[1], cp1[1], p2[1], t); symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; symbol.ignore = false; }; effectLineProto.updateLayout = function (lineData, idx) { this.childAt(0).updateLayout(lineData, idx); var effectModel = lineData.getItemModel(idx).getModel('effect'); this._updateEffectAnimation(lineData, effectModel, idx); }; inherits(EffectLine, Group); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/chart/helper/Line */ /** * @constructor * @extends {module:zrender/graphic/Group} * @alias {module:echarts/chart/helper/Polyline} */ function Polyline$2(lineData, idx, seriesScope) { Group.call(this); this._createPolyline(lineData, idx, seriesScope); } var polylineProto = Polyline$2.prototype; polylineProto._createPolyline = function (lineData, idx, seriesScope) { // var seriesModel = lineData.hostModel; var points = lineData.getItemLayout(idx); var line = new Polyline({ shape: { points: points } }); this.add(line); this._updateCommonStl(lineData, idx, seriesScope); }; polylineProto.updateData = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childAt(0); var target = { shape: { points: lineData.getItemLayout(idx) } }; updateProps(line, target, seriesModel, idx); this._updateCommonStl(lineData, idx, seriesScope); }; polylineProto._updateCommonStl = function (lineData, idx, seriesScope) { var line = this.childAt(0); var itemModel = lineData.getItemModel(idx); var visualColor = lineData.getItemVisual(idx, 'color'); var lineStyle = seriesScope && seriesScope.lineStyle; var hoverLineStyle = seriesScope && seriesScope.hoverLineStyle; if (!seriesScope || lineData.hasItemOption) { lineStyle = itemModel.getModel('lineStyle').getLineStyle(); hoverLineStyle = itemModel.getModel('emphasis.lineStyle').getLineStyle(); } line.useStyle(defaults( { strokeNoScale: true, fill: 'none', stroke: visualColor }, lineStyle )); line.hoverStyle = hoverLineStyle; setHoverStyle(this); }; polylineProto.updateLayout = function (lineData, idx) { var polyline = this.childAt(0); polyline.setShape('points', lineData.getItemLayout(idx)); }; inherits(Polyline$2, Group); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Provide effect for line * @module echarts/chart/helper/EffectLine */ /** * @constructor * @extends {module:echarts/chart/helper/EffectLine} * @alias {module:echarts/chart/helper/Polyline} */ function EffectPolyline(lineData, idx, seriesScope) { EffectLine.call(this, lineData, idx, seriesScope); this._lastFrame = 0; this._lastFramePercent = 0; } var effectPolylineProto = EffectPolyline.prototype; // Overwrite effectPolylineProto.createLine = function (lineData, idx, seriesScope) { return new Polyline$2(lineData, idx, seriesScope); }; // Overwrite effectPolylineProto.updateAnimationPoints = function (symbol, points) { this._points = points; var accLenArr = [0]; var len$$1 = 0; for (var i = 1; i < points.length; i++) { var p1 = points[i - 1]; var p2 = points[i]; len$$1 += dist(p1, p2); accLenArr.push(len$$1); } if (len$$1 === 0) { return; } for (var i = 0; i < accLenArr.length; i++) { accLenArr[i] /= len$$1; } this._offsets = accLenArr; this._length = len$$1; }; // Overwrite effectPolylineProto.getLineLength = function (symbol) { return this._length; }; // Overwrite effectPolylineProto.updateSymbolPosition = function (symbol) { var t = symbol.__t; var points = this._points; var offsets = this._offsets; var len$$1 = points.length; if (!offsets) { // Has length 0 return; } var lastFrame = this._lastFrame; var frame; if (t < this._lastFramePercent) { // Start from the next frame // PENDING start from lastFrame ? var start = Math.min(lastFrame + 1, len$$1 - 1); for (frame = start; frame >= 0; frame--) { if (offsets[frame] <= t) { break; } } // PENDING really need to do this ? frame = Math.min(frame, len$$1 - 2); } else { for (var frame = lastFrame; frame < len$$1; frame++) { if (offsets[frame] > t) { break; } } frame = Math.min(frame - 1, len$$1 - 2); } lerp( symbol.position, points[frame], points[frame + 1], (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]) ); var tx = points[frame + 1][0] - points[frame][0]; var ty = points[frame + 1][1] - points[frame][1]; symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; this._lastFrame = frame; this._lastFramePercent = t; symbol.ignore = false; }; inherits(EffectPolyline, EffectLine); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Batch by color var LargeLineShape = extendShape({ shape: { polyline: false, curveness: 0, segs: [] }, buildPath: function (path, shape) { var segs = shape.segs; var curveness = shape.curveness; if (shape.polyline) { for (var i = 0; i < segs.length;) { var count = segs[i++]; if (count > 0) { path.moveTo(segs[i++], segs[i++]); for (var k = 1; k < count; k++) { path.lineTo(segs[i++], segs[i++]); } } } } else { for (var i = 0; i < segs.length;) { var x0 = segs[i++]; var y0 = segs[i++]; var x1 = segs[i++]; var y1 = segs[i++]; path.moveTo(x0, y0); if (curveness > 0) { var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness; var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness; path.quadraticCurveTo(x2, y2, x1, y1); } else { path.lineTo(x1, y1); } } } }, findDataIndex: function (x, y) { var shape = this.shape; var segs = shape.segs; var curveness = shape.curveness; if (shape.polyline) { var dataIndex = 0; for (var i = 0; i < segs.length;) { var count = segs[i++]; if (count > 0) { var x0 = segs[i++]; var y0 = segs[i++]; for (var k = 1; k < count; k++) { var x1 = segs[i++]; var y1 = segs[i++]; if (containStroke$1(x0, y0, x1, y1)) { return dataIndex; } } } dataIndex++; } } else { var dataIndex = 0; for (var i = 0; i < segs.length;) { var x0 = segs[i++]; var y0 = segs[i++]; var x1 = segs[i++]; var y1 = segs[i++]; if (curveness > 0) { var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness; var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness; if (containStroke$3(x0, y0, x2, y2, x1, y1)) { return dataIndex; } } else { if (containStroke$1(x0, y0, x1, y1)) { return dataIndex; } } dataIndex++; } } return -1; } }); function LargeLineDraw() { this.group = new Group(); } var largeLineProto = LargeLineDraw.prototype; largeLineProto.isPersistent = function () { return !this._incremental; }; /** * Update symbols draw by new data * @param {module:echarts/data/List} data */ largeLineProto.updateData = function (data) { this.group.removeAll(); var lineEl = new LargeLineShape({ rectHover: true, cursor: 'default' }); lineEl.setShape({ segs: data.getLayout('linesPoints') }); this._setCommon(lineEl, data); // Add back this.group.add(lineEl); this._incremental = null; }; /** * @override */ largeLineProto.incrementalPrepareUpdate = function (data) { this.group.removeAll(); this._clearIncremental(); if (data.count() > 5e5) { if (!this._incremental) { this._incremental = new IncrementalDisplayble({ silent: true }); } this.group.add(this._incremental); } else { this._incremental = null; } }; /** * @override */ largeLineProto.incrementalUpdate = function (taskParams, data) { var lineEl = new LargeLineShape(); lineEl.setShape({ segs: data.getLayout('linesPoints') }); this._setCommon(lineEl, data, !!this._incremental); if (!this._incremental) { lineEl.rectHover = true; lineEl.cursor = 'default'; lineEl.__startIndex = taskParams.start; this.group.add(lineEl); } else { this._incremental.addDisplayable(lineEl, true); } }; /** * @override */ largeLineProto.remove = function () { this._clearIncremental(); this._incremental = null; this.group.removeAll(); }; largeLineProto._setCommon = function (lineEl, data, isIncremental) { var hostModel = data.hostModel; lineEl.setShape({ polyline: hostModel.get('polyline'), curveness: hostModel.get('lineStyle.curveness') }); lineEl.useStyle( hostModel.getModel('lineStyle').getLineStyle() ); lineEl.style.strokeNoScale = true; var visualColor = data.getVisual('color'); if (visualColor) { lineEl.setStyle('stroke', visualColor); } lineEl.setStyle('fill'); if (!isIncremental) { // Enable tooltip // PENDING May have performance issue when path is extremely large lineEl.seriesIndex = hostModel.seriesIndex; lineEl.on('mousemove', function (e) { lineEl.dataIndex = null; var dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY); if (dataIndex > 0) { // Provide dataIndex for tooltip lineEl.dataIndex = dataIndex + lineEl.__startIndex; } }); } }; largeLineProto._clearIncremental = function () { var incremental = this._incremental; if (incremental) { incremental.clearDisplaybles(); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var linesLayout = { seriesType: 'lines', plan: createRenderPlanner(), reset: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var isPolyline = seriesModel.get('polyline'); var isLarge = seriesModel.pipelineContext.large; function progress(params, lineData) { var lineCoords = []; if (isLarge) { var points; var segCount = params.end - params.start; if (isPolyline) { var totalCoordsCount = 0; for (var i = params.start; i < params.end; i++) { totalCoordsCount += seriesModel.getLineCoordsCount(i); } points = new Float32Array(segCount + totalCoordsCount * 2); } else { points = new Float32Array(segCount * 4); } var offset = 0; var pt = []; for (var i = params.start; i < params.end; i++) { var len = seriesModel.getLineCoords(i, lineCoords); if (isPolyline) { points[offset++] = len; } for (var k = 0; k < len; k++) { pt = coordSys.dataToPoint(lineCoords[k], false, pt); points[offset++] = pt[0]; points[offset++] = pt[1]; } } lineData.setLayout('linesPoints', points); } else { for (var i = params.start; i < params.end; i++) { var itemModel = lineData.getItemModel(i); var len = seriesModel.getLineCoords(i, lineCoords); var pts = []; if (isPolyline) { for (var j = 0; j < len; j++) { pts.push(coordSys.dataToPoint(lineCoords[j])); } } else { pts[0] = coordSys.dataToPoint(lineCoords[0]); pts[1] = coordSys.dataToPoint(lineCoords[1]); var curveness = itemModel.get('lineStyle.curveness'); if (+curveness) { pts[2] = [ (pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness, (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness ]; } } lineData.setItemLayout(i, pts); } } } return { progress: progress }; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendChartView({ type: 'lines', init: function () {}, render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var lineDraw = this._updateLineDraw(data, seriesModel); var zlevel = seriesModel.get('zlevel'); var trailLength = seriesModel.get('effect.trailLength'); var zr = api.getZr(); // Avoid the drag cause ghost shadow // FIXME Better way ? // SVG doesn't support var isSvg = zr.painter.getType() === 'svg'; if (!isSvg) { zr.painter.getLayer(zlevel).clear(true); } // Config layer with motion blur if (this._lastZlevel != null && !isSvg) { zr.configLayer(this._lastZlevel, { motionBlur: false }); } if (this._showEffect(seriesModel) && trailLength) { if (__DEV__) { var notInIndividual = false; ecModel.eachSeries(function (otherSeriesModel) { if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) { notInIndividual = true; } }); notInIndividual && console.warn('Lines with trail effect should have an individual zlevel'); } if (!isSvg) { zr.configLayer(zlevel, { motionBlur: true, lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0) }); } } lineDraw.updateData(data); this._lastZlevel = zlevel; this._finished = true; }, incrementalPrepareRender: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var lineDraw = this._updateLineDraw(data, seriesModel); lineDraw.incrementalPrepareUpdate(data); this._clearLayer(api); this._finished = false; }, incrementalRender: function (taskParams, seriesModel, ecModel) { this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData()); this._finished = taskParams.end === seriesModel.getData().count(); }, updateTransform: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var pipelineContext = seriesModel.pipelineContext; if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) { // TODO Don't have to do update in large mode. Only do it when there are millions of data. return { update: true }; } else { // TODO Use same logic with ScatterView. // Manually update layout var res = linesLayout.reset(seriesModel); if (res.progress) { res.progress({ start: 0, end: data.count() }, data); } this._lineDraw.updateLayout(); this._clearLayer(api); } }, _updateLineDraw: function (data, seriesModel) { var lineDraw = this._lineDraw; var hasEffect = this._showEffect(seriesModel); var isPolyline = !!seriesModel.get('polyline'); var pipelineContext = seriesModel.pipelineContext; var isLargeDraw = pipelineContext.large; if (__DEV__) { if (hasEffect && isLargeDraw) { console.warn('Large lines not support effect'); } } if (!lineDraw || hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLargeDraw !== this._isLargeDraw ) { if (lineDraw) { lineDraw.remove(); } lineDraw = this._lineDraw = isLargeDraw ? new LargeLineDraw() : new LineDraw( isPolyline ? (hasEffect ? EffectPolyline : Polyline$2) : (hasEffect ? EffectLine : Line$1) ); this._hasEffet = hasEffect; this._isPolyline = isPolyline; this._isLargeDraw = isLargeDraw; this.group.removeAll(); } this.group.add(lineDraw.group); return lineDraw; }, _showEffect: function (seriesModel) { return !!seriesModel.get('effect.show'); }, _clearLayer: function (api) { // Not use motion when dragging or zooming var zr = api.getZr(); var isSvg = zr.painter.getType() === 'svg'; if (!isSvg && this._lastZlevel != null) { zr.painter.getLayer(this._lastZlevel).clear(true); } }, remove: function (ecModel, api) { this._lineDraw && this._lineDraw.remove(); this._lineDraw = null; // Clear motion when lineDraw is removed this._clearLayer(api); }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function normalize$2(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; } var opacityQuery = 'lineStyle.opacity'.split('.'); var linesVisual = { seriesType: 'lines', reset: function (seriesModel, ecModel, api) { var symbolType = normalize$2(seriesModel.get('symbol')); var symbolSize = normalize$2(seriesModel.get('symbolSize')); var data = seriesModel.getData(); data.setVisual('fromSymbol', symbolType && symbolType[0]); data.setVisual('toSymbol', symbolType && symbolType[1]); data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]); data.setVisual('toSymbolSize', symbolSize && symbolSize[1]); data.setVisual('opacity', seriesModel.get(opacityQuery)); function dataEach(data, idx) { var itemModel = data.getItemModel(idx); var symbolType = normalize$2(itemModel.getShallow('symbol', true)); var symbolSize = normalize$2(itemModel.getShallow('symbolSize', true)); var opacity = itemModel.get(opacityQuery); symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]); symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]); symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]); symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]); data.setItemVisual(idx, 'opacity', opacity); } return {dataEach: data.hasItemOption ? dataEach : null}; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerLayout(linesLayout); registerVisual(linesVisual); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.heatmap', getInitialData: function (option, ecModel) { return createListFromArray(this.getSource(), this, { generateCoord: 'value' }); }, preventIncremental: function () { var coordSysCreator = CoordinateSystemManager.get(this.get('coordinateSystem')); if (coordSysCreator && coordSysCreator.dimensions) { return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat'; } }, defaultOption: { // Cartesian2D or geo coordinateSystem: 'cartesian2d', zlevel: 0, z: 2, // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Geo coordinate system geoIndex: 0, blurSize: 30, pointSize: 20, maxOpacity: 1, minOpacity: 0 } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Uint8ClampedArray */ var GRADIENT_LEVELS = 256; /** * Heatmap Chart * * @class */ function Heatmap() { var canvas = createCanvas(); this.canvas = canvas; this.blurSize = 30; this.pointSize = 20; this.maxOpacity = 1; this.minOpacity = 0; this._gradientPixels = {}; } Heatmap.prototype = { /** * Renders Heatmap and returns the rendered canvas * @param {Array} data array of data, each has x, y, value * @param {number} width canvas width * @param {number} height canvas height */ update: function (data, width, height, normalize, colorFunc, isInRange) { var brush = this._getBrush(); var gradientInRange = this._getGradient(data, colorFunc, 'inRange'); var gradientOutOfRange = this._getGradient(data, colorFunc, 'outOfRange'); var r = this.pointSize + this.blurSize; var canvas = this.canvas; var ctx = canvas.getContext('2d'); var len = data.length; canvas.width = width; canvas.height = height; for (var i = 0; i < len; ++i) { var p = data[i]; var x = p[0]; var y = p[1]; var value = p[2]; // calculate alpha using value var alpha = normalize(value); // draw with the circle brush with alpha ctx.globalAlpha = alpha; ctx.drawImage(brush, x - r, y - r); } if (!canvas.width || !canvas.height) { // Avoid "Uncaught DOMException: Failed to execute 'getImageData' on // 'CanvasRenderingContext2D': The source height is 0." return canvas; } // colorize the canvas using alpha value and set with gradient var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height); var pixels = imageData.data; var offset = 0; var pixelLen = pixels.length; var minOpacity = this.minOpacity; var maxOpacity = this.maxOpacity; var diffOpacity = maxOpacity - minOpacity; while (offset < pixelLen) { var alpha = pixels[offset + 3] / 256; var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4; // Simple optimize to ignore the empty data if (alpha > 0) { var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange; // Any alpha > 0 will be mapped to [minOpacity, maxOpacity] alpha > 0 && (alpha = alpha * diffOpacity + minOpacity); pixels[offset++] = gradient[gradientOffset]; pixels[offset++] = gradient[gradientOffset + 1]; pixels[offset++] = gradient[gradientOffset + 2]; pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256; } else { offset += 4; } } ctx.putImageData(imageData, 0, 0); return canvas; }, /** * get canvas of a black circle brush used for canvas to draw later * @private * @returns {Object} circle brush canvas */ _getBrush: function () { var brushCanvas = this._brushCanvas || (this._brushCanvas = createCanvas()); // set brush size var r = this.pointSize + this.blurSize; var d = r * 2; brushCanvas.width = d; brushCanvas.height = d; var ctx = brushCanvas.getContext('2d'); ctx.clearRect(0, 0, d, d); // in order to render shadow without the distinct circle, // draw the distinct circle in an invisible place, // and use shadowOffset to draw shadow in the center of the canvas ctx.shadowOffsetX = d; ctx.shadowBlur = this.blurSize; // draw the shadow in black, and use alpha and shadow blur to generate // color in color map ctx.shadowColor = '#000'; // draw circle in the left to the canvas ctx.beginPath(); ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true); ctx.closePath(); ctx.fill(); return brushCanvas; }, /** * get gradient color map * @private */ _getGradient: function (data, colorFunc, state) { var gradientPixels = this._gradientPixels; var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4)); var color = [0, 0, 0, 0]; var off = 0; for (var i = 0; i < 256; i++) { colorFunc[state](i / 255, true, color); pixelsSingleState[off++] = color[0]; pixelsSingleState[off++] = color[1]; pixelsSingleState[off++] = color[2]; pixelsSingleState[off++] = color[3]; } return pixelsSingleState; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getIsInPiecewiseRange(dataExtent, pieceList, selected) { var dataSpan = dataExtent[1] - dataExtent[0]; pieceList = map(pieceList, function (piece) { return { interval: [ (piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan ] }; }); var len = pieceList.length; var lastIndex = 0; return function (val) { // Try to find in the location of the last found for (var i = lastIndex; i < len; i++) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } if (i === len) { // Not found, back interation for (var i = lastIndex - 1; i >= 0; i--) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } } return i >= 0 && i < len && selected[i]; }; } function getIsInContinuousRange(dataExtent, range) { var dataSpan = dataExtent[1] - dataExtent[0]; range = [ (range[0] - dataExtent[0]) / dataSpan, (range[1] - dataExtent[0]) / dataSpan ]; return function (val) { return val >= range[0] && val <= range[1]; }; } function isGeoCoordSys(coordSys) { var dimensions = coordSys.dimensions; // Not use coorSys.type === 'geo' because coordSys maybe extended return dimensions[0] === 'lng' && dimensions[1] === 'lat'; } extendChartView({ type: 'heatmap', render: function (seriesModel, ecModel, api) { var visualMapOfThisSeries; ecModel.eachComponent('visualMap', function (visualMap) { visualMap.eachTargetSeries(function (targetSeries) { if (targetSeries === seriesModel) { visualMapOfThisSeries = visualMap; } }); }); if (__DEV__) { if (!visualMapOfThisSeries) { throw new Error('Heatmap must use with visualMap'); } } this.group.removeAll(); this._incrementalDisplayable = null; var coordSys = seriesModel.coordinateSystem; if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') { this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count()); } else if (isGeoCoordSys(coordSys)) { this._renderOnGeo( coordSys, seriesModel, visualMapOfThisSeries, api ); } }, incrementalPrepareRender: function (seriesModel, ecModel, api) { this.group.removeAll(); }, incrementalRender: function (params, seriesModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; if (coordSys) { this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true); } }, _renderOnCartesianAndCalendar: function (seriesModel, api, start, end, incremental) { var coordSys = seriesModel.coordinateSystem; var width; var height; if (coordSys.type === 'cartesian2d') { var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); if (__DEV__) { if (!(xAxis.type === 'category' && yAxis.type === 'category')) { throw new Error('Heatmap on cartesian must have two category axes'); } if (!(xAxis.onBand && yAxis.onBand)) { throw new Error('Heatmap on cartesian must have two axes with boundaryGap true'); } } width = xAxis.getBandWidth(); height = yAxis.getBandWidth(); } var group = this.group; var data = seriesModel.getData(); var itemStyleQuery = 'itemStyle'; var hoverItemStyleQuery = 'emphasis.itemStyle'; var labelQuery = 'label'; var hoverLabelQuery = 'emphasis.label'; var style = seriesModel.getModel(itemStyleQuery).getItemStyle(['color']); var hoverStl = seriesModel.getModel(hoverItemStyleQuery).getItemStyle(); var labelModel = seriesModel.getModel(labelQuery); var hoverLabelModel = seriesModel.getModel(hoverLabelQuery); var coordSysType = coordSys.type; var dataDims = coordSysType === 'cartesian2d' ? [ data.mapDimension('x'), data.mapDimension('y'), data.mapDimension('value') ] : [ data.mapDimension('time'), data.mapDimension('value') ]; for (var idx = start; idx < end; idx++) { var rect; if (coordSysType === 'cartesian2d') { // Ignore empty data if (isNaN(data.get(dataDims[2], idx))) { continue; } var point = coordSys.dataToPoint([ data.get(dataDims[0], idx), data.get(dataDims[1], idx) ]); rect = new Rect({ shape: { x: point[0] - width / 2, y: point[1] - height / 2, width: width, height: height }, style: { fill: data.getItemVisual(idx, 'color'), opacity: data.getItemVisual(idx, 'opacity') } }); } else { // Ignore empty data if (isNaN(data.get(dataDims[1], idx))) { continue; } rect = new Rect({ z2: 1, shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape, style: { fill: data.getItemVisual(idx, 'color'), opacity: data.getItemVisual(idx, 'opacity') } }); } var itemModel = data.getItemModel(idx); // Optimization for large datset if (data.hasItemOption) { style = itemModel.getModel(itemStyleQuery).getItemStyle(['color']); hoverStl = itemModel.getModel(hoverItemStyleQuery).getItemStyle(); labelModel = itemModel.getModel(labelQuery); hoverLabelModel = itemModel.getModel(hoverLabelQuery); } var rawValue = seriesModel.getRawValue(idx); var defaultText = '-'; if (rawValue && rawValue[2] != null) { defaultText = rawValue[2]; } setLabelStyle( style, hoverStl, labelModel, hoverLabelModel, { labelFetcher: seriesModel, labelDataIndex: idx, defaultText: defaultText, isRectText: true } ); rect.setStyle(style); setHoverStyle(rect, data.hasItemOption ? hoverStl : extend({}, hoverStl)); rect.incremental = incremental; // PENDING if (incremental) { // Rect must use hover layer if it's incremental. rect.useHoverLayer = true; } group.add(rect); data.setItemGraphicEl(idx, rect); } }, _renderOnGeo: function (geo, seriesModel, visualMapModel, api) { var inRangeVisuals = visualMapModel.targetVisuals.inRange; var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange; // if (!visualMapping) { // throw new Error('Data range must have color visuals'); // } var data = seriesModel.getData(); var hmLayer = this._hmLayer || (this._hmLayer || new Heatmap()); hmLayer.blurSize = seriesModel.get('blurSize'); hmLayer.pointSize = seriesModel.get('pointSize'); hmLayer.minOpacity = seriesModel.get('minOpacity'); hmLayer.maxOpacity = seriesModel.get('maxOpacity'); var rect = geo.getViewRect().clone(); var roamTransform = geo.getRoamTransform(); rect.applyTransform(roamTransform); // Clamp on viewport var x = Math.max(rect.x, 0); var y = Math.max(rect.y, 0); var x2 = Math.min(rect.width + rect.x, api.getWidth()); var y2 = Math.min(rect.height + rect.y, api.getHeight()); var width = x2 - x; var height = y2 - y; var dims = [ data.mapDimension('lng'), data.mapDimension('lat'), data.mapDimension('value') ]; var points = data.mapArray(dims, function (lng, lat, value) { var pt = geo.dataToPoint([lng, lat]); pt[0] -= x; pt[1] -= y; pt.push(value); return pt; }); var dataExtent = visualMapModel.getExtent(); var isInRange = visualMapModel.type === 'visualMap.continuous' ? getIsInContinuousRange(dataExtent, visualMapModel.option.range) : getIsInPiecewiseRange( dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected ); hmLayer.update( points, width, height, inRangeVisuals.color.getNormalizer(), { inRange: inRangeVisuals.color.getColorMapper(), outOfRange: outOfRangeVisuals.color.getColorMapper() }, isInRange ); var img = new ZImage({ style: { width: width, height: height, x: x, y: y, image: hmLayer.canvas }, silent: true }); this.group.add(img); }, dispose: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PictorialBarSeries = BaseBarSeries.extend({ type: 'series.pictorialBar', dependencies: ['grid'], defaultOption: { symbol: 'circle', // Customized bar shape symbolSize: null, // Can be ['100%', '100%'], null means auto. symbolRotate: null, symbolPosition: null, // 'start' or 'end' or 'center', null means auto. symbolOffset: null, symbolMargin: null, // start margin and end margin. Can be a number or a percent string. // Auto margin by defualt. symbolRepeat: false, // false/null/undefined, means no repeat. // Can be true, means auto calculate repeat times and cut by data. // Can be a number, specifies repeat times, and do not cut by data. // Can be 'fixed', means auto calculate repeat times but do not cut by data. symbolRepeatDirection: 'end', // 'end' means from 'start' to 'end'. symbolClip: false, symbolBoundingData: null, // Can be 60 or -40 or [-40, 60] symbolPatternSize: 400, // 400 * 400 px barGap: '-100%', // In most case, overlap is needed. // z can be set in data item, which is z2 actually. // Disable progressive progressive: 0, hoverAnimation: false // Open only when needed. }, getInitialData: function (option) { // Disable stack. option.stack = null; return PictorialBarSeries.superApply(this, 'getInitialData', arguments); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BAR_BORDER_WIDTH_QUERY$1 = ['itemStyle', 'borderWidth']; // index: +isHorizontal var LAYOUT_ATTRS = [ {xy: 'x', wh: 'width', index: 0, posDesc: ['left', 'right']}, {xy: 'y', wh: 'height', index: 1, posDesc: ['top', 'bottom']} ]; var pathForLineWidth = new Circle(); var BarView$1 = extendChartView({ type: 'pictorialBar', render: function (seriesModel, ecModel, api) { var group = this.group; var data = seriesModel.getData(); var oldData = this._data; var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var isHorizontal = !!baseAxis.isHorizontal(); var coordSysRect = cartesian.grid.getRect(); var opt = { ecSize: {width: api.getWidth(), height: api.getHeight()}, seriesModel: seriesModel, coordSys: cartesian, coordSysExtent: [ [coordSysRect.x, coordSysRect.x + coordSysRect.width], [coordSysRect.y, coordSysRect.y + coordSysRect.height] ], isHorizontal: isHorizontal, valueDim: LAYOUT_ATTRS[+isHorizontal], categoryDim: LAYOUT_ATTRS[1 - isHorizontal] }; data.diff(oldData) .add(function (dataIndex) { if (!data.hasValue(dataIndex)) { return; } var itemModel = getItemModel(data, dataIndex); var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt); var bar = createBar(data, opt, symbolMeta); data.setItemGraphicEl(dataIndex, bar); group.add(bar); updateCommon$1(bar, opt, symbolMeta); }) .update(function (newIndex, oldIndex) { var bar = oldData.getItemGraphicEl(oldIndex); if (!data.hasValue(newIndex)) { group.remove(bar); return; } var itemModel = getItemModel(data, newIndex); var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt); var pictorialShapeStr = getShapeStr(data, symbolMeta); if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) { group.remove(bar); data.setItemGraphicEl(newIndex, null); bar = null; } if (bar) { updateBar(bar, opt, symbolMeta); } else { bar = createBar(data, opt, symbolMeta, true); } data.setItemGraphicEl(newIndex, bar); bar.__pictorialSymbolMeta = symbolMeta; // Add back group.add(bar); updateCommon$1(bar, opt, symbolMeta); }) .remove(function (dataIndex) { var bar = oldData.getItemGraphicEl(dataIndex); bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar); }) .execute(); this._data = data; return this.group; }, dispose: noop, remove: function (ecModel, api) { var group = this.group; var data = this._data; if (ecModel.get('animation')) { if (data) { data.eachItemGraphicEl(function (bar) { removeBar(data, bar.dataIndex, ecModel, bar); }); } } else { group.removeAll(); } } }); // Set or calculate default value about symbol, and calculate layout info. function getSymbolMeta(data, dataIndex, itemModel, opt) { var layout = data.getItemLayout(dataIndex); var symbolRepeat = itemModel.get('symbolRepeat'); var symbolClip = itemModel.get('symbolClip'); var symbolPosition = itemModel.get('symbolPosition') || 'start'; var symbolRotate = itemModel.get('symbolRotate'); var rotation = (symbolRotate || 0) * Math.PI / 180 || 0; var symbolPatternSize = itemModel.get('symbolPatternSize') || 2; var isAnimationEnabled = itemModel.isAnimationEnabled(); var symbolMeta = { dataIndex: dataIndex, layout: layout, itemModel: itemModel, symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle', color: data.getItemVisual(dataIndex, 'color'), symbolClip: symbolClip, symbolRepeat: symbolRepeat, symbolRepeatDirection: itemModel.get('symbolRepeatDirection'), symbolPatternSize: symbolPatternSize, rotation: rotation, animationModel: isAnimationEnabled ? itemModel : null, hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'), z2: itemModel.getShallow('z', true) || 0 }; prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta); prepareSymbolSize( data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta ); prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta); var symbolSize = symbolMeta.symbolSize; var symbolOffset = itemModel.get('symbolOffset'); if (isArray(symbolOffset)) { symbolOffset = [ parsePercent$1(symbolOffset[0], symbolSize[0]), parsePercent$1(symbolOffset[1], symbolSize[1]) ]; } prepareLayoutInfo( itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta ); return symbolMeta; } // bar length can be negative. function prepareBarLength(itemModel, symbolRepeat, layout, opt, output) { var valueDim = opt.valueDim; var symbolBoundingData = itemModel.get('symbolBoundingData'); var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis()); var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0)); var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0); var boundingLength; if (isArray(symbolBoundingData)) { var symbolBoundingExtent = [ convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx, convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx ]; symbolBoundingExtent[1] < symbolBoundingExtent[0] && (symbolBoundingExtent.reverse()); boundingLength = symbolBoundingExtent[pxSignIdx]; } else if (symbolBoundingData != null) { boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx; } else if (symbolRepeat) { boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx; } else { boundingLength = layout[valueDim.wh]; } output.boundingLength = boundingLength; if (symbolRepeat) { output.repeatCutLength = layout[valueDim.wh]; } output.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0; } function convertToCoordOnAxis(axis, value) { return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value))); } // Support ['100%', '100%'] function prepareSymbolSize( data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, output ) { var valueDim = opt.valueDim; var categoryDim = opt.categoryDim; var categorySize = Math.abs(layout[categoryDim.wh]); var symbolSize = data.getItemVisual(dataIndex, 'symbolSize'); if (isArray(symbolSize)) { symbolSize = symbolSize.slice(); } else { if (symbolSize == null) { symbolSize = '100%'; } symbolSize = [symbolSize, symbolSize]; } // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is // to complicated to calculate real percent value if considering scaled lineWidth. // So the actual size will bigger than layout size if lineWidth is bigger than zero, // which can be tolerated in pictorial chart. symbolSize[categoryDim.index] = parsePercent$1( symbolSize[categoryDim.index], categorySize ); symbolSize[valueDim.index] = parsePercent$1( symbolSize[valueDim.index], symbolRepeat ? categorySize : Math.abs(boundingLength) ); output.symbolSize = symbolSize; // If x or y is less than zero, show reversed shape. var symbolScale = output.symbolScale = [ symbolSize[0] / symbolPatternSize, symbolSize[1] / symbolPatternSize ]; // Follow convention, 'right' and 'top' is the normal scale. symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign; } function prepareLineWidth(itemModel, symbolScale, rotation, opt, output) { // In symbols are drawn with scale, so do not need to care about the case that width // or height are too small. But symbol use strokeNoScale, where acture lineWidth should // be calculated. var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY$1) || 0; if (valueLineWidth) { pathForLineWidth.attr({ scale: symbolScale.slice(), rotation: rotation }); pathForLineWidth.updateTransform(); valueLineWidth /= pathForLineWidth.getLineScale(); valueLineWidth *= symbolScale[opt.valueDim.index]; } output.valueLineWidth = valueLineWidth; } function prepareLayoutInfo( itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, output ) { var categoryDim = opt.categoryDim; var valueDim = opt.valueDim; var pxSign = output.pxSign; var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0); var pathLen = unitLength; // Note: rotation will not effect the layout of symbols, because user may // want symbols to rotate on its center, which should not be translated // when rotating. if (symbolRepeat) { var absBoundingLength = Math.abs(boundingLength); var symbolMargin = retrieve(itemModel.get('symbolMargin'), '15%') + ''; var hasEndGap = false; if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) { hasEndGap = true; symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1); } symbolMargin = parsePercent$1(symbolMargin, symbolSize[valueDim.index]); var uLenWithMargin = Math.max(unitLength + symbolMargin * 2, 0); // When symbol margin is less than 0, margin at both ends will be subtracted // to ensure that all of the symbols will not be overflow the given area. var endFix = hasEndGap ? 0 : symbolMargin * 2; // Both final repeatTimes and final symbolMargin area calculated based on // boundingLength. var repeatSpecified = isNumeric(symbolRepeat); var repeatTimes = repeatSpecified ? symbolRepeat : toIntTimes((absBoundingLength + endFix) / uLenWithMargin); // Adjust calculate margin, to ensure each symbol is displayed // entirely in the given layout area. var mDiff = absBoundingLength - repeatTimes * unitLength; symbolMargin = mDiff / 2 / (hasEndGap ? repeatTimes : repeatTimes - 1); uLenWithMargin = unitLength + symbolMargin * 2; endFix = hasEndGap ? 0 : symbolMargin * 2; // Update repeatTimes when not all symbol will be shown. if (!repeatSpecified && symbolRepeat !== 'fixed') { repeatTimes = repeatCutLength ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin) : 0; } pathLen = repeatTimes * uLenWithMargin - endFix; output.repeatTimes = repeatTimes; output.symbolMargin = symbolMargin; } var sizeFix = pxSign * (pathLen / 2); var pathPosition = output.pathPosition = []; pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2; pathPosition[valueDim.index] = symbolPosition === 'start' ? sizeFix : symbolPosition === 'end' ? boundingLength - sizeFix : boundingLength / 2; // 'center' if (symbolOffset) { pathPosition[0] += symbolOffset[0]; pathPosition[1] += symbolOffset[1]; } var bundlePosition = output.bundlePosition = []; bundlePosition[categoryDim.index] = layout[categoryDim.xy]; bundlePosition[valueDim.index] = layout[valueDim.xy]; var barRectShape = output.barRectShape = extend({}, layout); barRectShape[valueDim.wh] = pxSign * Math.max( Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix) ); barRectShape[categoryDim.wh] = layout[categoryDim.wh]; var clipShape = output.clipShape = {}; // Consider that symbol may be overflow layout rect. clipShape[categoryDim.xy] = -layout[categoryDim.xy]; clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh]; clipShape[valueDim.xy] = 0; clipShape[valueDim.wh] = layout[valueDim.wh]; } function createPath(symbolMeta) { var symbolPatternSize = symbolMeta.symbolPatternSize; var path = createSymbol( // Consider texture img, make a big size. symbolMeta.symbolType, -symbolPatternSize / 2, -symbolPatternSize / 2, symbolPatternSize, symbolPatternSize, symbolMeta.color ); path.attr({ culling: true }); path.type !== 'image' && path.setStyle({ strokeNoScale: true }); return path; } function createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) { var bundle = bar.__pictorialBundle; var symbolSize = symbolMeta.symbolSize; var valueLineWidth = symbolMeta.valueLineWidth; var pathPosition = symbolMeta.pathPosition; var valueDim = opt.valueDim; var repeatTimes = symbolMeta.repeatTimes || 0; var index = 0; var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2; eachPath(bar, function (path) { path.__pictorialAnimationIndex = index; path.__pictorialRepeatTimes = repeatTimes; if (index < repeatTimes) { updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate); } else { updateAttr(path, null, {scale: [0, 0]}, symbolMeta, isUpdate, function () { bundle.remove(path); }); } updateHoverAnimation(path, symbolMeta); index++; }); for (; index < repeatTimes; index++) { var path = createPath(symbolMeta); path.__pictorialAnimationIndex = index; path.__pictorialRepeatTimes = repeatTimes; bundle.add(path); var target = makeTarget(index); updateAttr( path, { position: target.position, scale: [0, 0] }, { scale: target.scale, rotation: target.rotation }, symbolMeta, isUpdate ); // FIXME // If all emphasis/normal through action. path .on('mouseover', onMouseOver) .on('mouseout', onMouseOut); updateHoverAnimation(path, symbolMeta); } function makeTarget(index) { var position = pathPosition.slice(); // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index // Otherwise: i = index; var pxSign = symbolMeta.pxSign; var i = index; if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) { i = repeatTimes - 1 - index; } position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index]; return { position: position, scale: symbolMeta.symbolScale.slice(), rotation: symbolMeta.rotation }; } function onMouseOver() { eachPath(bar, function (path) { path.trigger('emphasis'); }); } function onMouseOut() { eachPath(bar, function (path) { path.trigger('normal'); }); } } function createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) { var bundle = bar.__pictorialBundle; var mainPath = bar.__pictorialMainPath; if (!mainPath) { mainPath = bar.__pictorialMainPath = createPath(symbolMeta); bundle.add(mainPath); updateAttr( mainPath, { position: symbolMeta.pathPosition.slice(), scale: [0, 0], rotation: symbolMeta.rotation }, { scale: symbolMeta.symbolScale.slice() }, symbolMeta, isUpdate ); mainPath .on('mouseover', onMouseOver) .on('mouseout', onMouseOut); } else { updateAttr( mainPath, null, { position: symbolMeta.pathPosition.slice(), scale: symbolMeta.symbolScale.slice(), rotation: symbolMeta.rotation }, symbolMeta, isUpdate ); } updateHoverAnimation(mainPath, symbolMeta); function onMouseOver() { this.trigger('emphasis'); } function onMouseOut() { this.trigger('normal'); } } // bar rect is used for label. function createOrUpdateBarRect(bar, symbolMeta, isUpdate) { var rectShape = extend({}, symbolMeta.barRectShape); var barRect = bar.__pictorialBarRect; if (!barRect) { barRect = bar.__pictorialBarRect = new Rect({ z2: 2, shape: rectShape, silent: true, style: { stroke: 'transparent', fill: 'transparent', lineWidth: 0 } }); bar.add(barRect); } else { updateAttr(barRect, null, {shape: rectShape}, symbolMeta, isUpdate); } } function createOrUpdateClip(bar, opt, symbolMeta, isUpdate) { // If not clip, symbol will be remove and rebuilt. if (symbolMeta.symbolClip) { var clipPath = bar.__pictorialClipPath; var clipShape = extend({}, symbolMeta.clipShape); var valueDim = opt.valueDim; var animationModel = symbolMeta.animationModel; var dataIndex = symbolMeta.dataIndex; if (clipPath) { updateProps( clipPath, {shape: clipShape}, animationModel, dataIndex ); } else { clipShape[valueDim.wh] = 0; clipPath = new Rect({shape: clipShape}); bar.__pictorialBundle.setClipPath(clipPath); bar.__pictorialClipPath = clipPath; var target = {}; target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh]; graphic[isUpdate ? 'updateProps' : 'initProps']( clipPath, {shape: target}, animationModel, dataIndex ); } } } function getItemModel(data, dataIndex) { var itemModel = data.getItemModel(dataIndex); itemModel.getAnimationDelayParams = getAnimationDelayParams; itemModel.isAnimationEnabled = isAnimationEnabled; return itemModel; } function getAnimationDelayParams(path) { // The order is the same as the z-order, see `symbolRepeatDiretion`. return { index: path.__pictorialAnimationIndex, count: path.__pictorialRepeatTimes }; } function isAnimationEnabled() { // `animation` prop can be set on itemModel in pictorial bar chart. return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation'); } function updateHoverAnimation(path, symbolMeta) { path.off('emphasis').off('normal'); var scale = symbolMeta.symbolScale.slice(); symbolMeta.hoverAnimation && path .on('emphasis', function () { this.animateTo({ scale: [scale[0] * 1.1, scale[1] * 1.1] }, 400, 'elasticOut'); }) .on('normal', function () { this.animateTo({ scale: scale.slice() }, 400, 'elasticOut'); }); } function createBar(data, opt, symbolMeta, isUpdate) { // bar is the main element for each data. var bar = new Group(); // bundle is used for location and clip. var bundle = new Group(); bar.add(bundle); bar.__pictorialBundle = bundle; bundle.attr('position', symbolMeta.bundlePosition.slice()); if (symbolMeta.symbolRepeat) { createOrUpdateRepeatSymbols(bar, opt, symbolMeta); } else { createOrUpdateSingleSymbol(bar, opt, symbolMeta); } createOrUpdateBarRect(bar, symbolMeta, isUpdate); createOrUpdateClip(bar, opt, symbolMeta, isUpdate); bar.__pictorialShapeStr = getShapeStr(data, symbolMeta); bar.__pictorialSymbolMeta = symbolMeta; return bar; } function updateBar(bar, opt, symbolMeta) { var animationModel = symbolMeta.animationModel; var dataIndex = symbolMeta.dataIndex; var bundle = bar.__pictorialBundle; updateProps( bundle, {position: symbolMeta.bundlePosition.slice()}, animationModel, dataIndex ); if (symbolMeta.symbolRepeat) { createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true); } else { createOrUpdateSingleSymbol(bar, opt, symbolMeta, true); } createOrUpdateBarRect(bar, symbolMeta, true); createOrUpdateClip(bar, opt, symbolMeta, true); } function removeBar(data, dataIndex, animationModel, bar) { // Not show text when animating var labelRect = bar.__pictorialBarRect; labelRect && (labelRect.style.text = null); var pathes = []; eachPath(bar, function (path) { pathes.push(path); }); bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath); // I do not find proper remove animation for clip yet. bar.__pictorialClipPath && (animationModel = null); each$1(pathes, function (path) { updateProps( path, {scale: [0, 0]}, animationModel, dataIndex, function () { bar.parent && bar.parent.remove(bar); } ); }); data.setItemGraphicEl(dataIndex, null); } function getShapeStr(data, symbolMeta) { return [ data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, !!symbolMeta.symbolClip ].join(':'); } function eachPath(bar, cb, context) { // Do not use Group#eachChild, because it do not support remove. each$1(bar.__pictorialBundle.children(), function (el) { el !== bar.__pictorialBarRect && cb.call(context, el); }); } function updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) { immediateAttrs && el.attr(immediateAttrs); // when symbolCip used, only clip path has init animation, otherwise it would be weird effect. if (symbolMeta.symbolClip && !isUpdate) { animationAttrs && el.attr(animationAttrs); } else { animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps']( el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb ); } } function updateCommon$1(bar, opt, symbolMeta) { var color = symbolMeta.color; var dataIndex = symbolMeta.dataIndex; var itemModel = symbolMeta.itemModel; // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var normalStyle = itemModel.getModel('itemStyle').getItemStyle(['color']); var hoverStyle = itemModel.getModel('emphasis.itemStyle').getItemStyle(); var cursorStyle = itemModel.getShallow('cursor'); eachPath(bar, function (path) { // PENDING setColor should be before setStyle!!! path.setColor(color); path.setStyle(defaults( { fill: color, opacity: symbolMeta.opacity }, normalStyle )); setHoverStyle(path, hoverStyle); cursorStyle && (path.cursor = cursorStyle); path.z2 = symbolMeta.z2; }); var barRectHoverStyle = {}; var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)]; var barRect = bar.__pictorialBarRect; setLabel( barRect.style, barRectHoverStyle, itemModel, color, opt.seriesModel, dataIndex, barPositionOutside ); setHoverStyle(barRect, barRectHoverStyle); } function toIntTimes(times) { var roundedTimes = Math.round(times); // Escapse accurate error return Math.abs(times - roundedTimes) < 1e-4 ? roundedTimes : Math.ceil(times); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // In case developer forget to include grid component registerLayout(curry( layout, 'pictorialBar' )); registerVisual(visualSymbol('pictorialBar', 'roundRect')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @constructor module:echarts/coord/single/SingleAxis * @extends {module:echarts/coord/Axis} * @param {string} dim * @param {*} scale * @param {Array.} coordExtent * @param {string} axisType * @param {string} position */ var SingleAxis = function (dim, scale, coordExtent, axisType, position) { Axis.call(this, dim, scale, coordExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = axisType || 'value'; /** * Axis position * - 'top' * - 'bottom' * - 'left' * - 'right' * @type {string} */ this.position = position || 'bottom'; /** * Axis orient * - 'horizontal' * - 'vertical' * @type {[type]} */ this.orient = null; }; SingleAxis.prototype = { constructor: SingleAxis, /** * Axis model * @type {module:echarts/coord/single/AxisModel} */ model: null, /** * Judge the orient of the axis. * @return {boolean} */ isHorizontal: function () { var position = this.position; return position === 'top' || position === 'bottom'; }, /** * @override */ pointToData: function (point, clamp) { return this.coordinateSystem.pointToData(point, clamp)[0]; }, /** * Convert the local coord(processed by dataToCoord()) * to global coord(concrete pixel coord). * designated by module:echarts/coord/single/Single. * @type {Function} */ toGlobalCoord: null, /** * Convert the global coord to local coord. * designated by module:echarts/coord/single/Single. * @type {Function} */ toLocalCoord: null }; inherits(SingleAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Single coordinates system. */ /** * Create a single coordinates system. * * @param {module:echarts/coord/single/AxisModel} axisModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ function Single(axisModel, ecModel, api) { /** * @type {string} * @readOnly */ this.dimension = 'single'; /** * Add it just for draw tooltip. * * @type {Array.} * @readOnly */ this.dimensions = ['single']; /** * @private * @type {module:echarts/coord/single/SingleAxis}. */ this._axis = null; /** * @private * @type {module:zrender/core/BoundingRect} */ this._rect; this._init(axisModel, ecModel, api); /** * @type {module:echarts/coord/single/AxisModel} */ this.model = axisModel; } Single.prototype = { type: 'singleAxis', axisPointerEnabled: true, constructor: Single, /** * Initialize single coordinate system. * * @param {module:echarts/coord/single/AxisModel} axisModel * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @private */ _init: function (axisModel, ecModel, api) { var dim = this.dimension; var axis = new SingleAxis( dim, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisModel.get('position') ); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); axis.orient = axisModel.get('orient'); axisModel.axis = axis; axis.model = axisModel; axis.coordinateSystem = this; this._axis = axis; }, /** * Update axis scale after data processed * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ update: function (ecModel, api) { ecModel.eachSeries(function (seriesModel) { if (seriesModel.coordinateSystem === this) { var data = seriesModel.getData(); each$1(data.mapDimension(this.dimension, true), function (dim) { this._axis.scale.unionExtentFromData(data, dim); }, this); niceScaleExtent(this._axis.scale, this._axis.model); } }, this); }, /** * Resize the single coordinate system. * * @param {module:echarts/coord/single/AxisModel} axisModel * @param {module:echarts/ExtensionAPI} api */ resize: function (axisModel, api) { this._rect = getLayoutRect( { left: axisModel.get('left'), top: axisModel.get('top'), right: axisModel.get('right'), bottom: axisModel.get('bottom'), width: axisModel.get('width'), height: axisModel.get('height') }, { width: api.getWidth(), height: api.getHeight() } ); this._adjustAxis(); }, /** * @return {module:zrender/core/BoundingRect} */ getRect: function () { return this._rect; }, /** * @private */ _adjustAxis: function () { var rect = this._rect; var axis = this._axis; var isHorizontal = axis.isHorizontal(); var extent = isHorizontal ? [0, rect.width] : [0, rect.height]; var idx = axis.reverse ? 1 : 0; axis.setExtent(extent[idx], extent[1 - idx]); this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y); }, /** * @param {module:echarts/coord/single/SingleAxis} axis * @param {number} coordBase */ _updateAxisTransform: function (axis, coordBase) { var axisExtent = axis.getExtent(); var extentSum = axisExtent[0] + axisExtent[1]; var isHorizontal = axis.isHorizontal(); axis.toGlobalCoord = isHorizontal ? function (coord) { return coord + coordBase; } : function (coord) { return extentSum - coord + coordBase; }; axis.toLocalCoord = isHorizontal ? function (coord) { return coord - coordBase; } : function (coord) { return extentSum - coord + coordBase; }; }, /** * Get axis. * * @return {module:echarts/coord/single/SingleAxis} */ getAxis: function () { return this._axis; }, /** * Get axis, add it just for draw tooltip. * * @return {[type]} [description] */ getBaseAxis: function () { return this._axis; }, /** * @return {Array.} */ getAxes: function () { return [this._axis]; }, /** * @return {Object} {baseAxes: [], otherAxes: []} */ getTooltipAxes: function () { return {baseAxes: [this.getAxis()]}; }, /** * If contain point. * * @param {Array.} point * @return {boolean} */ containPoint: function (point) { var rect = this.getRect(); var axis = this.getAxis(); var orient = axis.orient; if (orient === 'horizontal') { return axis.contain(axis.toLocalCoord(point[0])) && (point[1] >= rect.y && point[1] <= (rect.y + rect.height)); } else { return axis.contain(axis.toLocalCoord(point[1])) && (point[0] >= rect.y && point[0] <= (rect.y + rect.height)); } }, /** * @param {Array.} point * @return {Array.} */ pointToData: function (point) { var axis = this.getAxis(); return [axis.coordToData(axis.toLocalCoord( point[axis.orient === 'horizontal' ? 0 : 1] ))]; }, /** * Convert the series data to concrete point. * * @param {number|Array.} val * @return {Array.} */ dataToPoint: function (val) { var axis = this.getAxis(); var rect = this.getRect(); var pt = []; var idx = axis.orient === 'horizontal' ? 0 : 1; if (val instanceof Array) { val = val[0]; } pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val)); pt[1 - idx] = idx === 0 ? (rect.y + rect.height / 2) : (rect.x + rect.width / 2); return pt; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Single coordinate system creator. */ /** * Create single coordinate system and inject it into seriesModel. * * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @return {Array.} */ function create$3(ecModel, api) { var singles = []; ecModel.eachComponent('singleAxis', function (axisModel, idx) { var single = new Single(axisModel, ecModel, api); single.name = 'single_' + idx; single.resize(axisModel, api); axisModel.coordinateSystem = single; singles.push(single); }); ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'singleAxis') { var singleAxisModel = ecModel.queryComponents({ mainType: 'singleAxis', index: seriesModel.get('singleAxisIndex'), id: seriesModel.get('singleAxisId') })[0]; seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem; } }); return singles; } CoordinateSystemManager.register('single', { create: create$3, dimensions: Single.prototype.dimensions }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {Object} opt {labelInside} * @return {Object} { * position, rotation, labelDirection, labelOffset, * tickDirection, labelRotate, z2 * } */ function layout$2(axisModel, opt) { opt = opt || {}; var single = axisModel.coordinateSystem; var axis = axisModel.axis; var layout = {}; var axisPosition = axis.position; var orient = axis.orient; var rect = single.getRect(); var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height]; var positionMap = { horizontal: {top: rectBound[2], bottom: rectBound[3]}, vertical: {left: rectBound[0], right: rectBound[1]} }; layout.position = [ orient === 'vertical' ? positionMap.vertical[axisPosition] : rectBound[0], orient === 'horizontal' ? positionMap.horizontal[axisPosition] : rectBound[3] ]; var r = {horizontal: 0, vertical: 1}; layout.rotation = Math.PI / 2 * r[orient]; var directionMap = {top: -1, bottom: 1, right: 1, left: -1}; layout.labelDirection = layout.tickDirection = layout.nameDirection = directionMap[axisPosition]; if (axisModel.get('axisTick.inside')) { layout.tickDirection = -layout.tickDirection; } if (retrieve(opt.labelInside, axisModel.get('axisLabel.inside'))) { layout.labelDirection = -layout.labelDirection; } var labelRotation = opt.rotate; labelRotation == null && (labelRotation = axisModel.get('axisLabel.rotate')); layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation; layout.z2 = 1; return layout; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs$2 = [ 'axisLine', 'axisTickLabel', 'axisName' ]; var selfBuilderAttr = 'splitLine'; var SingleAxisView = AxisView.extend({ type: 'singleAxis', axisPointerClass: 'SingleAxisPointer', render: function (axisModel, ecModel, api, payload) { var group = this.group; group.removeAll(); var layout = layout$2(axisModel); var axisBuilder = new AxisBuilder(axisModel, layout); each$1(axisBuilderAttrs$2, axisBuilder.add, axisBuilder); group.add(axisBuilder.getGroup()); if (axisModel.get(selfBuilderAttr + '.show')) { this['_' + selfBuilderAttr](axisModel); } SingleAxisView.superCall(this, 'render', axisModel, ecModel, api, payload); }, _splitLine: function (axisModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitLineModel = axisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineWidth = lineStyleModel.get('width'); var lineColors = lineStyleModel.get('color'); lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var gridRect = axisModel.coordinateSystem.getRect(); var isHorizontal = axis.isHorizontal(); var splitLines = []; var lineCount = 0; var ticksCoords = axis.getTicksCoords({ tickModel: splitLineModel }); var p1 = []; var p2 = []; for (var i = 0; i < ticksCoords.length; ++i) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); if (isHorizontal) { p1[0] = tickCoord; p1[1] = gridRect.y; p2[0] = tickCoord; p2[1] = gridRect.y + gridRect.height; } else { p1[0] = gridRect.x; p1[1] = tickCoord; p2[0] = gridRect.x + gridRect.width; p2[1] = tickCoord; } var colorIndex = (lineCount++) % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(new Line({ subPixelOptimize: true, shape: { x1: p1[0], y1: p1[1], x2: p2[0], y2: p2[1] }, style: { lineWidth: lineWidth }, silent: true })); } for (var i = 0; i < splitLines.length; ++i) { this.group.add(mergePath(splitLines[i], { style: { stroke: lineColors[i % lineColors.length], lineDash: lineStyleModel.getLineDash(lineWidth), lineWidth: lineWidth }, silent: true })); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisModel$4 = ComponentModel.extend({ type: 'singleAxis', layoutMode: 'box', /** * @type {module:echarts/coord/single/SingleAxis} */ axis: null, /** * @type {module:echarts/coord/single/Single} */ coordinateSystem: null, /** * @override */ getCoordSysModel: function () { return this; } }); var defaultOption$2 = { left: '5%', top: '5%', right: '5%', bottom: '5%', type: 'value', position: 'bottom', orient: 'horizontal', axisLine: { show: true, lineStyle: { width: 1, type: 'solid' } }, // Single coordinate system and single axis is the, // which is used as the parent tooltip model. // same model, so we set default tooltip show as true. tooltip: { show: true }, axisTick: { show: true, length: 6, lineStyle: { width: 1 } }, axisLabel: { show: true, interval: 'auto' }, splitLine: { show: true, lineStyle: { type: 'dashed', opacity: 0.2 } } }; function getAxisType$2(axisName, option) { return option.type || (option.data ? 'category' : 'value'); } merge(AxisModel$4.prototype, axisModelCommonMixin); axisModelCreator('single', AxisModel$4, getAxisType$2, defaultOption$2); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {Object} finder contains {seriesIndex, dataIndex, dataIndexInside} * @param {module:echarts/model/Global} ecModel * @return {Object} {point: [x, y], el: ...} point Will not be null. */ var findPointFromSeries = function (finder, ecModel) { var point = []; var seriesIndex = finder.seriesIndex; var seriesModel; if (seriesIndex == null || !( seriesModel = ecModel.getSeriesByIndex(seriesIndex) )) { return {point: []}; } var data = seriesModel.getData(); var dataIndex = queryDataIndex(data, finder); if (dataIndex == null || dataIndex < 0 || isArray(dataIndex)) { return {point: []}; } var el = data.getItemGraphicEl(dataIndex); var coordSys = seriesModel.coordinateSystem; if (seriesModel.getTooltipPosition) { point = seriesModel.getTooltipPosition(dataIndex) || []; } else if (coordSys && coordSys.dataToPoint) { point = coordSys.dataToPoint( data.getValues( map(coordSys.dimensions, function (dim) { return data.mapDimension(dim); }), dataIndex, true ) ) || []; } else if (el) { // Use graphic bounding rect var rect = el.getBoundingRect().clone(); rect.applyTransform(el.transform); point = [ rect.x + rect.width / 2, rect.y + rect.height / 2 ]; } return {point: point, el: el}; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$14 = each$1; var curry$3 = curry; var inner$9 = makeInner(); /** * Basic logic: check all axis, if they do not demand show/highlight, * then hide/downplay them. * * @param {Object} coordSysAxesInfo * @param {Object} payload * @param {string} [payload.currTrigger] 'click' | 'mousemove' | 'leave' * @param {Array.} [payload.x] x and y, which are mandatory, specify a point to * trigger axisPointer and tooltip. * @param {Array.} [payload.y] x and y, which are mandatory, specify a point to * trigger axisPointer and tooltip. * @param {Object} [payload.seriesIndex] finder, optional, restrict target axes. * @param {Object} [payload.dataIndex] finder, restrict target axes. * @param {Object} [payload.axesInfo] finder, restrict target axes. * [{ * axisDim: 'x'|'y'|'angle'|..., * axisIndex: ..., * value: ... * }, ...] * @param {Function} [payload.dispatchAction] * @param {Object} [payload.tooltipOption] * @param {Object|Array.|Function} [payload.position] Tooltip position, * which can be specified in dispatchAction * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @return {Object} content of event obj for echarts.connect. */ var axisTrigger = function (payload, ecModel, api) { var currTrigger = payload.currTrigger; var point = [payload.x, payload.y]; var finder = payload; var dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api); var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; // Pending // See #6121. But we are not able to reproduce it yet. if (!coordSysAxesInfo) { return; } if (illegalPoint(point)) { // Used in the default behavior of `connection`: use the sample seriesIndex // and dataIndex. And also used in the tooltipView trigger. point = findPointFromSeries({ seriesIndex: finder.seriesIndex, // Do not use dataIndexInside from other ec instance. // FIXME: auto detect it? dataIndex: finder.dataIndex }, ecModel).point; } var isIllegalPoint = illegalPoint(point); // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}). // Notice: In this case, it is difficult to get the `point` (which is necessary to show // tooltip, so if point is not given, we just use the point found by sample seriesIndex // and dataIndex. var inputAxesInfo = finder.axesInfo; var axesInfo = coordSysAxesInfo.axesInfo; var shouldHide = currTrigger === 'leave' || illegalPoint(point); var outputFinder = {}; var showValueMap = {}; var dataByCoordSys = {list: [], map: {}}; var updaters = { showPointer: curry$3(showPointer, showValueMap), showTooltip: curry$3(showTooltip, dataByCoordSys) }; // Process for triggered axes. each$14(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) { // If a point given, it must be contained by the coordinate system. var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point); each$14(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) { var axis = axisInfo.axis; var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo); // If no inputAxesInfo, no axis is restricted. if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) { var val = inputAxisInfo && inputAxisInfo.value; if (val == null && !isIllegalPoint) { val = axis.pointToData(point); } val != null && processOnAxis(axisInfo, val, updaters, false, outputFinder); } }); }); // Process for linked axes. var linkTriggers = {}; each$14(axesInfo, function (tarAxisInfo, tarKey) { var linkGroup = tarAxisInfo.linkGroup; // If axis has been triggered in the previous stage, it should not be triggered by link. if (linkGroup && !showValueMap[tarKey]) { each$14(linkGroup.axesInfo, function (srcAxisInfo, srcKey) { var srcValItem = showValueMap[srcKey]; // If srcValItem exist, source axis is triggered, so link to target axis. if (srcAxisInfo !== tarAxisInfo && srcValItem) { var val = srcValItem.value; linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper( val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo) ))); linkTriggers[tarAxisInfo.key] = val; } }); } }); each$14(linkTriggers, function (val, tarKey) { processOnAxis(axesInfo[tarKey], val, updaters, true, outputFinder); }); updateModelActually(showValueMap, axesInfo, outputFinder); dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction); dispatchHighDownActually(axesInfo, dispatchAction, api); return outputFinder; }; function processOnAxis(axisInfo, newValue, updaters, dontSnap, outputFinder) { var axis = axisInfo.axis; if (axis.scale.isBlank() || !axis.containData(newValue)) { return; } if (!axisInfo.involveSeries) { updaters.showPointer(axisInfo, newValue); return; } // Heavy calculation. So put it after axis.containData checking. var payloadInfo = buildPayloadsBySeries(newValue, axisInfo); var payloadBatch = payloadInfo.payloadBatch; var snapToValue = payloadInfo.snapToValue; // Fill content of event obj for echarts.connect. // By defualt use the first involved series data as a sample to connect. if (payloadBatch[0] && outputFinder.seriesIndex == null) { extend(outputFinder, payloadBatch[0]); } // If no linkSource input, this process is for collecting link // target, where snap should not be accepted. if (!dontSnap && axisInfo.snap) { if (axis.containData(snapToValue) && snapToValue != null) { newValue = snapToValue; } } updaters.showPointer(axisInfo, newValue, payloadBatch, outputFinder); // Tooltip should always be snapToValue, otherwise there will be // incorrect "axis value ~ series value" mapping displayed in tooltip. updaters.showTooltip(axisInfo, payloadInfo, snapToValue); } function buildPayloadsBySeries(value, axisInfo) { var axis = axisInfo.axis; var dim = axis.dim; var snapToValue = value; var payloadBatch = []; var minDist = Number.MAX_VALUE; var minDiff = -1; each$14(axisInfo.seriesModels, function (series, idx) { var dataDim = series.getData().mapDimension(dim, true); var seriesNestestValue; var dataIndices; if (series.getAxisTooltipData) { var result = series.getAxisTooltipData(dataDim, value, axis); dataIndices = result.dataIndices; seriesNestestValue = result.nestestValue; } else { dataIndices = series.getData().indicesOfNearest( dataDim[0], value, // Add a threshold to avoid find the wrong dataIndex // when data length is not same. // false, axis.type === 'category' ? 0.5 : null ); if (!dataIndices.length) { return; } seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]); } if (seriesNestestValue == null || !isFinite(seriesNestestValue)) { return; } var diff = value - seriesNestestValue; var dist = Math.abs(diff); // Consider category case if (dist <= minDist) { if (dist < minDist || (diff >= 0 && minDiff < 0)) { minDist = dist; minDiff = diff; snapToValue = seriesNestestValue; payloadBatch.length = 0; } each$14(dataIndices, function (dataIndex) { payloadBatch.push({ seriesIndex: series.seriesIndex, dataIndexInside: dataIndex, dataIndex: series.getData().getRawIndex(dataIndex) }); }); } }); return { payloadBatch: payloadBatch, snapToValue: snapToValue }; } function showPointer(showValueMap, axisInfo, value, payloadBatch) { showValueMap[axisInfo.key] = {value: value, payloadBatch: payloadBatch}; } function showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) { var payloadBatch = payloadInfo.payloadBatch; var axis = axisInfo.axis; var axisModel = axis.model; var axisPointerModel = axisInfo.axisPointerModel; // If no data, do not create anything in dataByCoordSys, // whose length will be used to judge whether dispatch action. if (!axisInfo.triggerTooltip || !payloadBatch.length) { return; } var coordSysModel = axisInfo.coordSys.model; var coordSysKey = makeKey(coordSysModel); var coordSysItem = dataByCoordSys.map[coordSysKey]; if (!coordSysItem) { coordSysItem = dataByCoordSys.map[coordSysKey] = { coordSysId: coordSysModel.id, coordSysIndex: coordSysModel.componentIndex, coordSysType: coordSysModel.type, coordSysMainType: coordSysModel.mainType, dataByAxis: [] }; dataByCoordSys.list.push(coordSysItem); } coordSysItem.dataByAxis.push({ axisDim: axis.dim, axisIndex: axisModel.componentIndex, axisType: axisModel.type, axisId: axisModel.id, value: value, // Caustion: viewHelper.getValueLabel is actually on "view stage", which // depends that all models have been updated. So it should not be performed // here. Considering axisPointerModel used here is volatile, which is hard // to be retrieve in TooltipView, we prepare parameters here. valueLabelOpt: { precision: axisPointerModel.get('label.precision'), formatter: axisPointerModel.get('label.formatter') }, seriesDataIndices: payloadBatch.slice() }); } function updateModelActually(showValueMap, axesInfo, outputFinder) { var outputAxesInfo = outputFinder.axesInfo = []; // Basic logic: If no 'show' required, 'hide' this axisPointer. each$14(axesInfo, function (axisInfo, key) { var option = axisInfo.axisPointerModel.option; var valItem = showValueMap[key]; if (valItem) { !axisInfo.useHandle && (option.status = 'show'); option.value = valItem.value; // For label formatter param and highlight. option.seriesDataIndices = (valItem.payloadBatch || []).slice(); } // When always show (e.g., handle used), remain // original value and status. else { // If hide, value still need to be set, consider // click legend to toggle axis blank. !axisInfo.useHandle && (option.status = 'hide'); } // If status is 'hide', should be no info in payload. option.status === 'show' && outputAxesInfo.push({ axisDim: axisInfo.axis.dim, axisIndex: axisInfo.axis.model.componentIndex, value: option.value }); }); } function dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) { // Basic logic: If no showTip required, hideTip will be dispatched. if (illegalPoint(point) || !dataByCoordSys.list.length) { dispatchAction({type: 'hideTip'}); return; } // In most case only one axis (or event one series is used). It is // convinient to fetch payload.seriesIndex and payload.dataIndex // dirtectly. So put the first seriesIndex and dataIndex of the first // axis on the payload. var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {}; dispatchAction({ type: 'showTip', escapeConnect: true, x: point[0], y: point[1], tooltipOption: payload.tooltipOption, position: payload.position, dataIndexInside: sampleItem.dataIndexInside, dataIndex: sampleItem.dataIndex, seriesIndex: sampleItem.seriesIndex, dataByCoordSys: dataByCoordSys.list }); } function dispatchHighDownActually(axesInfo, dispatchAction, api) { // FIXME // highlight status modification shoule be a stage of main process? // (Consider confilct (e.g., legend and axisPointer) and setOption) var zr = api.getZr(); var highDownKey = 'axisPointerLastHighlights'; var lastHighlights = inner$9(zr)[highDownKey] || {}; var newHighlights = inner$9(zr)[highDownKey] = {}; // Update highlight/downplay status according to axisPointer model. // Build hash map and remove duplicate incidentally. each$14(axesInfo, function (axisInfo, key) { var option = axisInfo.axisPointerModel.option; option.status === 'show' && each$14(option.seriesDataIndices, function (batchItem) { var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex; newHighlights[key] = batchItem; }); }); // Diff. var toHighlight = []; var toDownplay = []; each$1(lastHighlights, function (batchItem, key) { !newHighlights[key] && toDownplay.push(batchItem); }); each$1(newHighlights, function (batchItem, key) { !lastHighlights[key] && toHighlight.push(batchItem); }); toDownplay.length && api.dispatchAction({ type: 'downplay', escapeConnect: true, batch: toDownplay }); toHighlight.length && api.dispatchAction({ type: 'highlight', escapeConnect: true, batch: toHighlight }); } function findInputAxisInfo(inputAxesInfo, axisInfo) { for (var i = 0; i < (inputAxesInfo || []).length; i++) { var inputAxisInfo = inputAxesInfo[i]; if (axisInfo.axis.dim === inputAxisInfo.axisDim && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex ) { return inputAxisInfo; } } } function makeMapperParam(axisInfo) { var axisModel = axisInfo.axis.model; var item = {}; var dim = item.axisDim = axisInfo.axis.dim; item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex; item.axisName = item[dim + 'AxisName'] = axisModel.name; item.axisId = item[dim + 'AxisId'] = axisModel.id; return item; } function illegalPoint(point) { return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisPointerModel = extendComponentModel({ type: 'axisPointer', coordSysAxesInfo: null, defaultOption: { // 'auto' means that show when triggered by tooltip or handle. show: 'auto', // 'click' | 'mousemove' | 'none' triggerOn: null, // set default in AxisPonterView.js zlevel: 0, z: 50, type: 'line', // 'line' 'shadow' 'cross' 'none'. // axispointer triggered by tootip determine snap automatically, // see `modelHelper`. snap: false, triggerTooltip: true, value: null, status: null, // Init value depends on whether handle is used. // [group0, group1, ...] // Each group can be: { // mapper: function () {}, // singleTooltip: 'multiple', // 'multiple' or 'single' // xAxisId: ..., // yAxisName: ..., // angleAxisIndex: ... // } // mapper: can be ignored. // input: {axisInfo, value} // output: {axisInfo, value} link: [], // Do not set 'auto' here, otherwise global animation: false // will not effect at this axispointer. animation: null, animationDurationUpdate: 200, lineStyle: { color: '#aaa', width: 1, type: 'solid' }, shadowStyle: { color: 'rgba(150,150,150,0.3)' }, label: { show: true, formatter: null, // string | Function precision: 'auto', // Or a number like 0, 1, 2 ... margin: 3, color: '#fff', padding: [5, 7, 5, 7], backgroundColor: 'auto', // default: axis line color borderColor: null, borderWidth: 0, shadowBlur: 3, shadowColor: '#aaa' // Considering applicability, common style should // better not have shadowOffset. // shadowOffsetX: 0, // shadowOffsetY: 2 }, handle: { show: false, /* eslint-disable */ icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z', // jshint ignore:line /* eslint-enable */ size: 45, // handle margin is from symbol center to axis, which is stable when circular move. margin: 50, // color: '#1b8bbd' // color: '#2f4554' color: '#333', shadowBlur: 3, shadowColor: '#aaa', shadowOffsetX: 0, shadowOffsetY: 2, // For mobile performance throttle: 40 } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$10 = makeInner(); var each$15 = each$1; /** * @param {string} key * @param {module:echarts/ExtensionAPI} api * @param {Function} handler * param: {string} currTrigger * param: {Array.} point */ function register(key, api, handler) { if (env$1.node) { return; } var zr = api.getZr(); inner$10(zr).records || (inner$10(zr).records = {}); initGlobalListeners(zr, api); var record = inner$10(zr).records[key] || (inner$10(zr).records[key] = {}); record.handler = handler; } function initGlobalListeners(zr, api) { if (inner$10(zr).initialized) { return; } inner$10(zr).initialized = true; useHandler('click', curry(doEnter, 'click')); useHandler('mousemove', curry(doEnter, 'mousemove')); // useHandler('mouseout', onLeave); useHandler('globalout', onLeave); function useHandler(eventType, cb) { zr.on(eventType, function (e) { var dis = makeDispatchAction(api); each$15(inner$10(zr).records, function (record) { record && cb(record, e, dis.dispatchAction); }); dispatchTooltipFinally(dis.pendings, api); }); } } function dispatchTooltipFinally(pendings, api) { var showLen = pendings.showTip.length; var hideLen = pendings.hideTip.length; var actuallyPayload; if (showLen) { actuallyPayload = pendings.showTip[showLen - 1]; } else if (hideLen) { actuallyPayload = pendings.hideTip[hideLen - 1]; } if (actuallyPayload) { actuallyPayload.dispatchAction = null; api.dispatchAction(actuallyPayload); } } function onLeave(record, e, dispatchAction) { record.handler('leave', null, dispatchAction); } function doEnter(currTrigger, record, e, dispatchAction) { record.handler(currTrigger, e, dispatchAction); } function makeDispatchAction(api) { var pendings = { showTip: [], hideTip: [] }; // FIXME // better approach? // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip, // which may be conflict, (axisPointer call showTip but tooltip call hideTip); // So we have to add "final stage" to merge those dispatched actions. var dispatchAction = function (payload) { var pendingList = pendings[payload.type]; if (pendingList) { pendingList.push(payload); } else { payload.dispatchAction = dispatchAction; api.dispatchAction(payload); } }; return { dispatchAction: dispatchAction, pendings: pendings }; } /** * @param {string} key * @param {module:echarts/ExtensionAPI} api */ function unregister(key, api) { if (env$1.node) { return; } var zr = api.getZr(); var record = (inner$10(zr).records || {})[key]; if (record) { inner$10(zr).records[key] = null; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisPointerView = extendComponentView({ type: 'axisPointer', render: function (globalAxisPointerModel, ecModel, api) { var globalTooltipModel = ecModel.getComponent('tooltip'); var triggerOn = globalAxisPointerModel.get('triggerOn') || (globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click'); // Register global listener in AxisPointerView to enable // AxisPointerView to be independent to Tooltip. register( 'axisPointer', api, function (currTrigger, e, dispatchAction) { // If 'none', it is not controlled by mouse totally. if (triggerOn !== 'none' && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0) ) { dispatchAction({ type: 'updateAxisPointer', currTrigger: currTrigger, x: e && e.offsetX, y: e && e.offsetY }); } } ); }, /** * @override */ remove: function (ecModel, api) { unregister(api.getZr(), 'axisPointer'); AxisPointerView.superApply(this._model, 'remove', arguments); }, /** * @override */ dispose: function (ecModel, api) { unregister('axisPointer', api); AxisPointerView.superApply(this._model, 'dispose', arguments); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$11 = makeInner(); var clone$4 = clone; var bind$2 = bind; /** * Base axis pointer class in 2D. * Implemenents {module:echarts/component/axis/IAxisPointer}. */ function BaseAxisPointer() { } BaseAxisPointer.prototype = { /** * @private */ _group: null, /** * @private */ _lastGraphicKey: null, /** * @private */ _handle: null, /** * @private */ _dragging: false, /** * @private */ _lastValue: null, /** * @private */ _lastStatus: null, /** * @private */ _payloadInfo: null, /** * In px, arbitrary value. Do not set too small, * no animation is ok for most cases. * @protected */ animationThreshold: 15, /** * @implement */ render: function (axisModel, axisPointerModel, api, forceRender) { var value = axisPointerModel.get('value'); var status = axisPointerModel.get('status'); // Bind them to `this`, not in closure, otherwise they will not // be replaced when user calling setOption in not merge mode. this._axisModel = axisModel; this._axisPointerModel = axisPointerModel; this._api = api; // Optimize: `render` will be called repeatly during mouse move. // So it is power consuming if performing `render` each time, // especially on mobile device. if (!forceRender && this._lastValue === value && this._lastStatus === status ) { return; } this._lastValue = value; this._lastStatus = status; var group = this._group; var handle = this._handle; if (!status || status === 'hide') { // Do not clear here, for animation better. group && group.hide(); handle && handle.hide(); return; } group && group.show(); handle && handle.show(); // Otherwise status is 'show' var elOption = {}; this.makeElOption(elOption, value, axisModel, axisPointerModel, api); // Enable change axis pointer type. var graphicKey = elOption.graphicKey; if (graphicKey !== this._lastGraphicKey) { this.clear(api); } this._lastGraphicKey = graphicKey; var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel); if (!group) { group = this._group = new Group(); this.createPointerEl(group, elOption, axisModel, axisPointerModel); this.createLabelEl(group, elOption, axisModel, axisPointerModel); api.getZr().add(group); } else { var doUpdateProps = curry(updateProps$1, axisPointerModel, moveAnimation); this.updatePointerEl(group, elOption, doUpdateProps, axisPointerModel); this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel); } updateMandatoryProps(group, axisPointerModel, true); this._renderHandle(value); }, /** * @implement */ remove: function (api) { this.clear(api); }, /** * @implement */ dispose: function (api) { this.clear(api); }, /** * @protected */ determineAnimation: function (axisModel, axisPointerModel) { var animation = axisPointerModel.get('animation'); var axis = axisModel.axis; var isCategoryAxis = axis.type === 'category'; var useSnap = axisPointerModel.get('snap'); // Value axis without snap always do not snap. if (!useSnap && !isCategoryAxis) { return false; } if (animation === 'auto' || animation == null) { var animationThreshold = this.animationThreshold; if (isCategoryAxis && axis.getBandWidth() > animationThreshold) { return true; } // It is important to auto animation when snap used. Consider if there is // a dataZoom, animation will be disabled when too many points exist, while // it will be enabled for better visual effect when little points exist. if (useSnap) { var seriesDataCount = getAxisInfo(axisModel).seriesDataCount; var axisExtent = axis.getExtent(); // Approximate band width return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold; } return false; } return animation === true; }, /** * add {pointer, label, graphicKey} to elOption * @protected */ makeElOption: function (elOption, value, axisModel, axisPointerModel, api) { // Shoule be implemenented by sub-class. }, /** * @protected */ createPointerEl: function (group, elOption, axisModel, axisPointerModel) { var pointerOption = elOption.pointer; if (pointerOption) { var pointerEl = inner$11(group).pointerEl = new graphic[pointerOption.type]( clone$4(elOption.pointer) ); group.add(pointerEl); } }, /** * @protected */ createLabelEl: function (group, elOption, axisModel, axisPointerModel) { if (elOption.label) { var labelEl = inner$11(group).labelEl = new Rect( clone$4(elOption.label) ); group.add(labelEl); updateLabelShowHide(labelEl, axisPointerModel); } }, /** * @protected */ updatePointerEl: function (group, elOption, updateProps$$1) { var pointerEl = inner$11(group).pointerEl; if (pointerEl && elOption.pointer) { pointerEl.setStyle(elOption.pointer.style); updateProps$$1(pointerEl, {shape: elOption.pointer.shape}); } }, /** * @protected */ updateLabelEl: function (group, elOption, updateProps$$1, axisPointerModel) { var labelEl = inner$11(group).labelEl; if (labelEl) { labelEl.setStyle(elOption.label.style); updateProps$$1(labelEl, { // Consider text length change in vertical axis, animation should // be used on shape, otherwise the effect will be weird. shape: elOption.label.shape, position: elOption.label.position }); updateLabelShowHide(labelEl, axisPointerModel); } }, /** * @private */ _renderHandle: function (value) { if (this._dragging || !this.updateHandleTransform) { return; } var axisPointerModel = this._axisPointerModel; var zr = this._api.getZr(); var handle = this._handle; var handleModel = axisPointerModel.getModel('handle'); var status = axisPointerModel.get('status'); if (!handleModel.get('show') || !status || status === 'hide') { handle && zr.remove(handle); this._handle = null; return; } var isInit; if (!this._handle) { isInit = true; handle = this._handle = createIcon( handleModel.get('icon'), { cursor: 'move', draggable: true, onmousemove: function (e) { // Fot mobile devicem, prevent screen slider on the button. stop(e.event); }, onmousedown: bind$2(this._onHandleDragMove, this, 0, 0), drift: bind$2(this._onHandleDragMove, this), ondragend: bind$2(this._onHandleDragEnd, this) } ); zr.add(handle); } updateMandatoryProps(handle, axisPointerModel, false); // update style var includeStyles = [ 'color', 'borderColor', 'borderWidth', 'opacity', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY' ]; handle.setStyle(handleModel.getItemStyle(null, includeStyles)); // update position var handleSize = handleModel.get('size'); if (!isArray(handleSize)) { handleSize = [handleSize, handleSize]; } handle.attr('scale', [handleSize[0] / 2, handleSize[1] / 2]); createOrUpdate( this, '_doDispatchAxisPointer', handleModel.get('throttle') || 0, 'fixRate' ); this._moveHandleToValue(value, isInit); }, /** * @private */ _moveHandleToValue: function (value, isInit) { updateProps$1( this._axisPointerModel, !isInit && this._moveAnimation, this._handle, getHandleTransProps(this.getHandleTransform( value, this._axisModel, this._axisPointerModel )) ); }, /** * @private */ _onHandleDragMove: function (dx, dy) { var handle = this._handle; if (!handle) { return; } this._dragging = true; // Persistent for throttle. var trans = this.updateHandleTransform( getHandleTransProps(handle), [dx, dy], this._axisModel, this._axisPointerModel ); this._payloadInfo = trans; handle.stopAnimation(); handle.attr(getHandleTransProps(trans)); inner$11(handle).lastProp = null; this._doDispatchAxisPointer(); }, /** * Throttled method. * @private */ _doDispatchAxisPointer: function () { var handle = this._handle; if (!handle) { return; } var payloadInfo = this._payloadInfo; var axisModel = this._axisModel; this._api.dispatchAction({ type: 'updateAxisPointer', x: payloadInfo.cursorPoint[0], y: payloadInfo.cursorPoint[1], tooltipOption: payloadInfo.tooltipOption, axesInfo: [{ axisDim: axisModel.axis.dim, axisIndex: axisModel.componentIndex }] }); }, /** * @private */ _onHandleDragEnd: function (moveAnimation) { this._dragging = false; var handle = this._handle; if (!handle) { return; } var value = this._axisPointerModel.get('value'); // Consider snap or categroy axis, handle may be not consistent with // axisPointer. So move handle to align the exact value position when // drag ended. this._moveHandleToValue(value); // For the effect: tooltip will be shown when finger holding on handle // button, and will be hidden after finger left handle button. this._api.dispatchAction({ type: 'hideTip' }); }, /** * Should be implemenented by sub-class if support `handle`. * @protected * @param {number} value * @param {module:echarts/model/Model} axisModel * @param {module:echarts/model/Model} axisPointerModel * @return {Object} {position: [x, y], rotation: 0} */ getHandleTransform: null, /** * * Should be implemenented by sub-class if support `handle`. * @protected * @param {Object} transform {position, rotation} * @param {Array.} delta [dx, dy] * @param {module:echarts/model/Model} axisModel * @param {module:echarts/model/Model} axisPointerModel * @return {Object} {position: [x, y], rotation: 0, cursorPoint: [x, y]} */ updateHandleTransform: null, /** * @private */ clear: function (api) { this._lastValue = null; this._lastStatus = null; var zr = api.getZr(); var group = this._group; var handle = this._handle; if (zr && group) { this._lastGraphicKey = null; group && zr.remove(group); handle && zr.remove(handle); this._group = null; this._handle = null; this._payloadInfo = null; } }, /** * @protected */ doClear: function () { // Implemented by sub-class if necessary. }, /** * @protected * @param {Array.} xy * @param {Array.} wh * @param {number} [xDimIndex=0] or 1 */ buildLabel: function (xy, wh, xDimIndex) { xDimIndex = xDimIndex || 0; return { x: xy[xDimIndex], y: xy[1 - xDimIndex], width: wh[xDimIndex], height: wh[1 - xDimIndex] }; } }; BaseAxisPointer.prototype.constructor = BaseAxisPointer; function updateProps$1(animationModel, moveAnimation, el, props) { // Animation optimize. if (!propsEqual(inner$11(el).lastProp, props)) { inner$11(el).lastProp = props; moveAnimation ? updateProps(el, props, animationModel) : (el.stopAnimation(), el.attr(props)); } } function propsEqual(lastProps, newProps) { if (isObject$1(lastProps) && isObject$1(newProps)) { var equals = true; each$1(newProps, function (item, key) { equals = equals && propsEqual(lastProps[key], item); }); return !!equals; } else { return lastProps === newProps; } } function updateLabelShowHide(labelEl, axisPointerModel) { labelEl[axisPointerModel.get('label.show') ? 'show' : 'hide'](); } function getHandleTransProps(trans) { return { position: trans.position.slice(), rotation: trans.rotation || 0 }; } function updateMandatoryProps(group, axisPointerModel, silent) { var z = axisPointerModel.get('z'); var zlevel = axisPointerModel.get('zlevel'); group && group.traverse(function (el) { if (el.type !== 'group') { z != null && (el.z = z); zlevel != null && (el.zlevel = zlevel); el.silent = silent; } }); } enableClassExtend(BaseAxisPointer); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/model/Model} axisPointerModel */ function buildElStyle(axisPointerModel) { var axisPointerType = axisPointerModel.get('type'); var styleModel = axisPointerModel.getModel(axisPointerType + 'Style'); var style; if (axisPointerType === 'line') { style = styleModel.getLineStyle(); style.fill = null; } else if (axisPointerType === 'shadow') { style = styleModel.getAreaStyle(); style.stroke = null; } return style; } /** * @param {Function} labelPos {align, verticalAlign, position} */ function buildLabelElOption( elOption, axisModel, axisPointerModel, api, labelPos ) { var value = axisPointerModel.get('value'); var text = getValueLabel( value, axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), { precision: axisPointerModel.get('label.precision'), formatter: axisPointerModel.get('label.formatter') } ); var labelModel = axisPointerModel.getModel('label'); var paddings = normalizeCssArray$1(labelModel.get('padding') || 0); var font = labelModel.getFont(); var textRect = getBoundingRect(text, font); var position = labelPos.position; var width = textRect.width + paddings[1] + paddings[3]; var height = textRect.height + paddings[0] + paddings[2]; // Adjust by align. var align = labelPos.align; align === 'right' && (position[0] -= width); align === 'center' && (position[0] -= width / 2); var verticalAlign = labelPos.verticalAlign; verticalAlign === 'bottom' && (position[1] -= height); verticalAlign === 'middle' && (position[1] -= height / 2); // Not overflow ec container confineInContainer(position, width, height, api); var bgColor = labelModel.get('backgroundColor'); if (!bgColor || bgColor === 'auto') { bgColor = axisModel.get('axisLine.lineStyle.color'); } elOption.label = { shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')}, position: position.slice(), // TODO: rich style: { text: text, textFont: font, textFill: labelModel.getTextColor(), textPosition: 'inside', textPadding: paddings, fill: bgColor, stroke: labelModel.get('borderColor') || 'transparent', lineWidth: labelModel.get('borderWidth') || 0, shadowBlur: labelModel.get('shadowBlur'), shadowColor: labelModel.get('shadowColor'), shadowOffsetX: labelModel.get('shadowOffsetX'), shadowOffsetY: labelModel.get('shadowOffsetY') }, // Lable should be over axisPointer. z2: 10 }; } // Do not overflow ec container function confineInContainer(position, width, height, api) { var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); position[0] = Math.min(position[0] + width, viewWidth) - width; position[1] = Math.min(position[1] + height, viewHeight) - height; position[0] = Math.max(position[0], 0); position[1] = Math.max(position[1], 0); } /** * @param {number} value * @param {module:echarts/coord/Axis} axis * @param {module:echarts/model/Global} ecModel * @param {Object} opt * @param {Array.} seriesDataIndices * @param {number|string} opt.precision 'auto' or a number * @param {string|Function} opt.formatter label formatter */ function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) { value = axis.scale.parse(value); var text = axis.scale.getLabel( // If `precision` is set, width can be fixed (like '12.00500'), which // helps to debounce when when moving label. value, {precision: opt.precision} ); var formatter = opt.formatter; if (formatter) { var params = { value: getAxisRawValue(axis, value), axisDimension: axis.dim, axisIndex: axis.index, seriesData: [] }; each$1(seriesDataIndices, function (idxItem) { var series = ecModel.getSeriesByIndex(idxItem.seriesIndex); var dataIndex = idxItem.dataIndexInside; var dataParams = series && series.getDataParams(dataIndex); dataParams && params.seriesData.push(dataParams); }); if (isString(formatter)) { text = formatter.replace('{value}', text); } else if (isFunction$1(formatter)) { text = formatter(params); } } return text; } /** * @param {module:echarts/coord/Axis} axis * @param {number} value * @param {Object} layoutInfo { * rotation, position, labelOffset, labelDirection, labelMargin * } */ function getTransformedPosition(axis, value, layoutInfo) { var transform = create$1(); rotate(transform, transform, layoutInfo.rotation); translate(transform, transform, layoutInfo.position); return applyTransform$1([ axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0) ], transform); } function buildCartesianSingleLabelElOption( value, elOption, layoutInfo, axisModel, axisPointerModel, api ) { var textLayout = AxisBuilder.innerTextLayout( layoutInfo.rotation, 0, layoutInfo.labelDirection ); layoutInfo.labelMargin = axisPointerModel.get('label.margin'); buildLabelElOption(elOption, axisModel, axisPointerModel, api, { position: getTransformedPosition(axisModel.axis, value, layoutInfo), align: textLayout.textAlign, verticalAlign: textLayout.textVerticalAlign }); } /** * @param {Array.} p1 * @param {Array.} p2 * @param {number} [xDimIndex=0] or 1 */ function makeLineShape(p1, p2, xDimIndex) { xDimIndex = xDimIndex || 0; return { x1: p1[xDimIndex], y1: p1[1 - xDimIndex], x2: p2[xDimIndex], y2: p2[1 - xDimIndex] }; } /** * @param {Array.} xy * @param {Array.} wh * @param {number} [xDimIndex=0] or 1 */ function makeRectShape(xy, wh, xDimIndex) { xDimIndex = xDimIndex || 0; return { x: xy[xDimIndex], y: xy[1 - xDimIndex], width: wh[xDimIndex], height: wh[1 - xDimIndex] }; } function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) { return { cx: cx, cy: cy, r0: r0, r: r, startAngle: startAngle, endAngle: endAngle, clockwise: true }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CartesianAxisPointer = BaseAxisPointer.extend({ /** * @override */ makeElOption: function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; var grid = axis.grid; var axisPointerType = axisPointerModel.get('type'); var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(); var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true)); if (axisPointerType && axisPointerType !== 'none') { var elStyle = buildElStyle(axisPointerModel); var pointerOption = pointerShapeBuilder[axisPointerType]( axis, pixelValue, otherExtent ); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var layoutInfo = layout$1(grid.model, axisModel); buildCartesianSingleLabelElOption( value, elOption, layoutInfo, axisModel, axisPointerModel, api ); }, /** * @override */ getHandleTransform: function (value, axisModel, axisPointerModel) { var layoutInfo = layout$1(axisModel.axis.grid.model, axisModel, { labelInside: false }); layoutInfo.labelMargin = axisPointerModel.get('handle.margin'); return { position: getTransformedPosition(axisModel.axis, value, layoutInfo), rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0) }; }, /** * @override */ updateHandleTransform: function (transform, delta, axisModel, axisPointerModel) { var axis = axisModel.axis; var grid = axis.grid; var axisExtent = axis.getGlobalExtent(true); var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(); var dimIndex = axis.dim === 'x' ? 0 : 1; var currPosition = transform.position; currPosition[dimIndex] += delta[dimIndex]; currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]); currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]); var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2; var cursorPoint = [cursorOtherValue, cursorOtherValue]; cursorPoint[dimIndex] = currPosition[dimIndex]; // Make tooltip do not overlap axisPointer and in the middle of the grid. var tooltipOptions = [{verticalAlign: 'middle'}, {align: 'center'}]; return { position: currPosition, rotation: transform.rotation, cursorPoint: cursorPoint, tooltipOption: tooltipOptions[dimIndex] }; } }); function getCartesian(grid, axis) { var opt = {}; opt[axis.dim + 'AxisIndex'] = axis.index; return grid.getCartesian(opt); } var pointerShapeBuilder = { line: function (axis, pixelValue, otherExtent) { var targetShape = makeLineShape( [pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getAxisDimIndex(axis) ); return { type: 'Line', subPixelOptimize: true, shape: targetShape }; }, shadow: function (axis, pixelValue, otherExtent) { var bandWidth = Math.max(1, axis.getBandWidth()); var span = otherExtent[1] - otherExtent[0]; return { type: 'Rect', shape: makeRectShape( [pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getAxisDimIndex(axis) ) }; } }; function getAxisDimIndex(axis) { return axis.dim === 'x' ? 0 : 1; } AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // CartesianAxisPointer is not supposed to be required here. But consider // echarts.simple.js and online build tooltip, which only require gridSimple, // CartesianAxisPointer should be able to required somewhere. registerPreprocessor(function (option) { // Always has a global axisPointerModel for default setting. if (option) { (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {}); var link = option.axisPointer.link; // Normalize to array to avoid object mergin. But if link // is not set, remain null/undefined, otherwise it will // override existent link setting. if (link && !isArray(link)) { option.axisPointer.link = [link]; } } }); // This process should proformed after coordinate systems created // and series data processed. So put it on statistic processing stage. registerProcessor(PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) { // Build axisPointerModel, mergin tooltip.axisPointer model for each axis. // allAxesInfo should be updated when setOption performed. ecModel.getComponent('axisPointer').coordSysAxesInfo = collect(ecModel, api); }); // Broadcast to all views. registerAction({ type: 'updateAxisPointer', event: 'updateAxisPointer', update: ':updateAxisPointer' }, axisTrigger); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var XY = ['x', 'y']; var WH = ['width', 'height']; var SingleAxisPointer = BaseAxisPointer.extend({ /** * @override */ makeElOption: function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; var coordSys = axis.coordinateSystem; var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis)); var pixelValue = coordSys.dataToPoint(value)[0]; var axisPointerType = axisPointerModel.get('type'); if (axisPointerType && axisPointerType !== 'none') { var elStyle = buildElStyle(axisPointerModel); var pointerOption = pointerShapeBuilder$1[axisPointerType]( axis, pixelValue, otherExtent ); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var layoutInfo = layout$2(axisModel); buildCartesianSingleLabelElOption( value, elOption, layoutInfo, axisModel, axisPointerModel, api ); }, /** * @override */ getHandleTransform: function (value, axisModel, axisPointerModel) { var layoutInfo = layout$2(axisModel, {labelInside: false}); layoutInfo.labelMargin = axisPointerModel.get('handle.margin'); return { position: getTransformedPosition(axisModel.axis, value, layoutInfo), rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0) }; }, /** * @override */ updateHandleTransform: function (transform, delta, axisModel, axisPointerModel) { var axis = axisModel.axis; var coordSys = axis.coordinateSystem; var dimIndex = getPointDimIndex(axis); var axisExtent = getGlobalExtent(coordSys, dimIndex); var currPosition = transform.position; currPosition[dimIndex] += delta[dimIndex]; currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]); currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]); var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex); var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2; var cursorPoint = [cursorOtherValue, cursorOtherValue]; cursorPoint[dimIndex] = currPosition[dimIndex]; return { position: currPosition, rotation: transform.rotation, cursorPoint: cursorPoint, tooltipOption: { verticalAlign: 'middle' } }; } }); var pointerShapeBuilder$1 = { line: function (axis, pixelValue, otherExtent) { var targetShape = makeLineShape( [pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getPointDimIndex(axis) ); return { type: 'Line', subPixelOptimize: true, shape: targetShape }; }, shadow: function (axis, pixelValue, otherExtent) { var bandWidth = axis.getBandWidth(); var span = otherExtent[1] - otherExtent[0]; return { type: 'Rect', shape: makeRectShape( [pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getPointDimIndex(axis) ) }; } }; function getPointDimIndex(axis) { return axis.isHorizontal() ? 0 : 1; } function getGlobalExtent(coordSys, dimIndex) { var rect = coordSys.getRect(); return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]]; } AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentView({ type: 'single' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DATA_NAME_INDEX = 2; var ThemeRiverSeries = SeriesModel.extend({ type: 'series.themeRiver', dependencies: ['singleAxis'], /** * @readOnly * @type {module:zrender/core/util#HashMap} */ nameMap: null, /** * @override */ init: function (option) { // eslint-disable-next-line ThemeRiverSeries.superApply(this, 'init', arguments); // Put this function here is for the sake of consistency of code style. // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendDataProvider = function () { return this.getRawData(); }; }, /** * If there is no value of a certain point in the time for some event,set it value to 0. * * @param {Array} data initial data in the option * @return {Array} */ fixData: function (data) { var rawDataLength = data.length; // grouped data by name var groupResult = groupData(data, function (item) { return item[2]; }); var layData = []; groupResult.buckets.each(function (items, key) { layData.push({name: key, dataList: items}); }); var layerNum = layData.length; var largestLayer = -1; var index = -1; for (var i = 0; i < layerNum; ++i) { var len = layData[i].dataList.length; if (len > largestLayer) { largestLayer = len; index = i; } } for (var k = 0; k < layerNum; ++k) { if (k === index) { continue; } var name = layData[k].name; for (var j = 0; j < largestLayer; ++j) { var timeValue = layData[index].dataList[j][0]; var length = layData[k].dataList.length; var keyIndex = -1; for (var l = 0; l < length; ++l) { var value = layData[k].dataList[l][0]; if (value === timeValue) { keyIndex = l; break; } } if (keyIndex === -1) { data[rawDataLength] = []; data[rawDataLength][0] = timeValue; data[rawDataLength][1] = 0; data[rawDataLength][2] = name; rawDataLength++; } } } return data; }, /** * @override * @param {Object} option the initial option that user gived * @param {module:echarts/model/Model} ecModel the model object for themeRiver option * @return {module:echarts/data/List} */ getInitialData: function (option, ecModel) { var singleAxisModel = ecModel.queryComponents({ mainType: 'singleAxis', index: this.get('singleAxisIndex'), id: this.get('singleAxisId') })[0]; var axisType = singleAxisModel.get('type'); // filter the data item with the value of label is undefined var filterData = filter(option.data, function (dataItem) { return dataItem[2] !== undefined; }); // ??? TODO design a stage to transfer data for themeRiver and lines? var data = this.fixData(filterData || []); var nameList = []; var nameMap = this.nameMap = createHashMap(); var count = 0; for (var i = 0; i < data.length; ++i) { nameList.push(data[i][DATA_NAME_INDEX]); if (!nameMap.get(data[i][DATA_NAME_INDEX])) { nameMap.set(data[i][DATA_NAME_INDEX], count); count++; } } var dimensionsInfo = createDimensions(data, { coordDimensions: ['single'], dimensionsDefine: [ { name: 'time', type: getDimensionTypeByAxis(axisType) }, { name: 'value', type: 'float' }, { name: 'name', type: 'ordinal' } ], encodeDefine: { single: 0, value: 1, itemName: 2 } }); var list = new List(dimensionsInfo, this); list.initData(data); return list; }, /** * The raw data is divided into multiple layers and each layer * has same name. * * @return {Array.>} */ getLayerSeries: function () { var data = this.getData(); var lenCount = data.count(); var indexArr = []; for (var i = 0; i < lenCount; ++i) { indexArr[i] = i; } var timeDim = data.mapDimension('single'); // data group by name var groupResult = groupData(indexArr, function (index) { return data.get('name', index); }); var layerSeries = []; groupResult.buckets.each(function (items, key) { items.sort(function (index1, index2) { return data.get(timeDim, index1) - data.get(timeDim, index2); }); layerSeries.push({name: key, indices: items}); }); return layerSeries; }, /** * Get data indices for show tooltip content * @param {Array.|string} dim single coordinate dimension * @param {number} value axis value * @param {module:echarts/coord/single/SingleAxis} baseAxis single Axis used * the themeRiver. * @return {Object} {dataIndices, nestestValue} */ getAxisTooltipData: function (dim, value, baseAxis) { if (!isArray(dim)) { dim = dim ? [dim] : []; } var data = this.getData(); var layerSeries = this.getLayerSeries(); var indices = []; var layerNum = layerSeries.length; var nestestValue; for (var i = 0; i < layerNum; ++i) { var minDist = Number.MAX_VALUE; var nearestIdx = -1; var pointNum = layerSeries[i].indices.length; for (var j = 0; j < pointNum; ++j) { var theValue = data.get(dim[0], layerSeries[i].indices[j]); var dist = Math.abs(theValue - value); if (dist <= minDist) { nestestValue = theValue; minDist = dist; nearestIdx = layerSeries[i].indices[j]; } } indices.push(nearestIdx); } return {dataIndices: indices, nestestValue: nestestValue}; }, /** * @override * @param {number} dataIndex index of data */ formatTooltip: function (dataIndex) { var data = this.getData(); var htmlName = data.getName(dataIndex); var htmlValue = data.get(data.mapDimension('value'), dataIndex); if (isNaN(htmlValue) || htmlValue == null) { htmlValue = '-'; } return encodeHTML(htmlName + ' : ' + htmlValue); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'singleAxis', // gap in axis's orthogonal orientation boundaryGap: ['10%', '10%'], // legendHoverLink: true, singleAxisIndex: 0, animationEasing: 'linear', label: { margin: 4, show: true, position: 'left', color: '#000', fontSize: 11 }, emphasis: { label: { show: true } } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendChartView({ type: 'themeRiver', init: function () { this._layers = []; }, render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var group = this.group; var layerSeries = seriesModel.getLayerSeries(); var layoutInfo = data.getLayout('layoutInfo'); var rect = layoutInfo.rect; var boundaryGap = layoutInfo.boundaryGap; group.attr('position', [0, rect.y + boundaryGap[0]]); function keyGetter(item) { return item.name; } var dataDiffer = new DataDiffer( this._layersSeries || [], layerSeries, keyGetter, keyGetter ); var newLayersGroups = {}; dataDiffer .add(bind(process, this, 'add')) .update(bind(process, this, 'update')) .remove(bind(process, this, 'remove')) .execute(); function process(status, idx, oldIdx) { var oldLayersGroups = this._layers; if (status === 'remove') { group.remove(oldLayersGroups[idx]); return; } var points0 = []; var points1 = []; var color; var indices = layerSeries[idx].indices; for (var j = 0; j < indices.length; j++) { var layout = data.getItemLayout(indices[j]); var x = layout.x; var y0 = layout.y0; var y = layout.y; points0.push([x, y0]); points1.push([x, y0 + y]); color = data.getItemVisual(indices[j], 'color'); } var polygon; var text; var textLayout = data.getItemLayout(indices[0]); var itemModel = data.getItemModel(indices[j - 1]); var labelModel = itemModel.getModel('label'); var margin = labelModel.get('margin'); if (status === 'add') { var layerGroup = newLayersGroups[idx] = new Group(); polygon = new Polygon$1({ shape: { points: points0, stackedOnPoints: points1, smooth: 0.4, stackedOnSmooth: 0.4, smoothConstraint: false }, z2: 0 }); text = new Text({ style: { x: textLayout.x - margin, y: textLayout.y0 + textLayout.y / 2 } }); layerGroup.add(polygon); layerGroup.add(text); group.add(layerGroup); polygon.setClipPath(createGridClipShape$3(polygon.getBoundingRect(), seriesModel, function () { polygon.removeClipPath(); })); } else { var layerGroup = oldLayersGroups[oldIdx]; polygon = layerGroup.childAt(0); text = layerGroup.childAt(1); group.add(layerGroup); newLayersGroups[idx] = layerGroup; updateProps(polygon, { shape: { points: points0, stackedOnPoints: points1 } }, seriesModel); updateProps(text, { style: { x: textLayout.x - margin, y: textLayout.y0 + textLayout.y / 2 } }, seriesModel); } var hoverItemStyleModel = itemModel.getModel('emphasis.itemStyle'); var itemStyleModel = itemModel.getModel('itemStyle'); setTextStyle(text.style, labelModel, { text: labelModel.get('show') ? seriesModel.getFormattedLabel(indices[j - 1], 'normal') || data.getName(indices[j - 1]) : null, textVerticalAlign: 'middle' }); polygon.setStyle(extend({ fill: color }, itemStyleModel.getItemStyle(['color']))); setHoverStyle(polygon, hoverItemStyleModel.getItemStyle()); } this._layersSeries = layerSeries; this._layers = newLayersGroups; }, dispose: function () {} }); // add animation to the view function createGridClipShape$3(rect, seriesModel, cb) { var rectEl = new Rect({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); initProps(rectEl, { shape: { width: rect.width + 20, height: rect.height + 20 } }, seriesModel, cb); return rectEl; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var themeRiverLayout = function (ecModel, api) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var single = seriesModel.coordinateSystem; var layoutInfo = {}; // use the axis boundingRect for view var rect = single.getRect(); layoutInfo.rect = rect; var boundaryGap = seriesModel.get('boundaryGap'); var axis = single.getAxis(); layoutInfo.boundaryGap = boundaryGap; if (axis.orient === 'horizontal') { boundaryGap[0] = parsePercent$1(boundaryGap[0], rect.height); boundaryGap[1] = parsePercent$1(boundaryGap[1], rect.height); var height = rect.height - boundaryGap[0] - boundaryGap[1]; themeRiverLayout$1(data, seriesModel, height); } else { boundaryGap[0] = parsePercent$1(boundaryGap[0], rect.width); boundaryGap[1] = parsePercent$1(boundaryGap[1], rect.width); var width = rect.width - boundaryGap[0] - boundaryGap[1]; themeRiverLayout$1(data, seriesModel, width); } data.setLayout('layoutInfo', layoutInfo); }); }; /** * The layout information about themeriver * * @param {module:echarts/data/List} data data in the series * @param {module:echarts/model/Series} seriesModel the model object of themeRiver series * @param {number} height value used to compute every series height */ function themeRiverLayout$1(data, seriesModel, height) { if (!data.count()) { return; } var coordSys = seriesModel.coordinateSystem; // the data in each layer are organized into a series. var layerSeries = seriesModel.getLayerSeries(); // the points in each layer. var timeDim = data.mapDimension('single'); var valueDim = data.mapDimension('value'); var layerPoints = map(layerSeries, function (singleLayer) { return map(singleLayer.indices, function (idx) { var pt = coordSys.dataToPoint(data.get(timeDim, idx)); pt[1] = data.get(valueDim, idx); return pt; }); }); var base = computeBaseline(layerPoints); var baseLine = base.y0; var ky = height / base.max; // set layout information for each item. var n = layerSeries.length; var m = layerSeries[0].indices.length; var baseY0; for (var j = 0; j < m; ++j) { baseY0 = baseLine[j] * ky; data.setItemLayout(layerSeries[0].indices[j], { layerIndex: 0, x: layerPoints[0][j][0], y0: baseY0, y: layerPoints[0][j][1] * ky }); for (var i = 1; i < n; ++i) { baseY0 += layerPoints[i - 1][j][1] * ky; data.setItemLayout(layerSeries[i].indices[j], { layerIndex: i, x: layerPoints[i][j][0], y0: baseY0, y: layerPoints[i][j][1] * ky }); } } } /** * Compute the baseLine of the rawdata * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics * * @param {Array.} data the points in each layer * @return {Object} */ function computeBaseline(data) { var layerNum = data.length; var pointNum = data[0].length; var sums = []; var y0 = []; var max = 0; var temp; var base = {}; for (var i = 0; i < pointNum; ++i) { for (var j = 0, temp = 0; j < layerNum; ++j) { temp += data[j][i][1]; } if (temp > max) { max = temp; } sums.push(temp); } for (var k = 0; k < pointNum; ++k) { y0[k] = (max - sums[k]) / 2; } max = 0; for (var l = 0; l < pointNum; ++l) { var sum = sums[l] + y0[l]; if (sum > max) { max = sum; } } base.y0 = y0; base.max = max; return base; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var themeRiverVisual = function (ecModel) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var rawData = seriesModel.getRawData(); var colorList = seriesModel.get('color'); var idxMap = createHashMap(); data.each(function (idx) { idxMap.set(data.getRawIndex(idx), idx); }); rawData.each(function (rawIndex) { var name = rawData.getName(rawIndex); var color = colorList[(seriesModel.nameMap.get(name) - 1) % colorList.length]; rawData.setItemVisual(rawIndex, 'color', color); var idx = idxMap.get(rawIndex); if (idx != null) { data.setItemVisual(idx, 'color', color); } }); }); }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerLayout(themeRiverLayout); registerVisual(themeRiverVisual); registerProcessor(dataFilter('themeRiver')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ SeriesModel.extend({ type: 'series.sunburst', /** * @type {module:echarts/data/Tree~Node} */ _viewRoot: null, getInitialData: function (option, ecModel) { // Create a virtual root. var root = { name: option.name, children: option.data }; completeTreeValue$1(root); var levels = option.levels || []; // levels = option.levels = setDefault(levels, ecModel); var treeOption = {}; treeOption.levels = levels; // Make sure always a new tree is created when setOption, // in TreemapView, we check whether oldTree === newTree // to choose mappings approach among old shapes and new shapes. return Tree.createTree(root, this, treeOption).data; }, optionUpdated: function () { this.resetViewRoot(); }, /* * @override */ getDataParams: function (dataIndex) { var params = SeriesModel.prototype.getDataParams.apply(this, arguments); var node = this.getData().tree.getNodeByDataIndex(dataIndex); params.treePathInfo = wrapTreePathInfo(node, this); return params; }, defaultOption: { zlevel: 0, z: 2, // 默认全局居中 center: ['50%', '50%'], radius: [0, '75%'], // 默认顺时针 clockwise: true, startAngle: 90, // 最小角度改为0 minAngle: 0, percentPrecision: 2, // If still show when all data zero. stillShowZeroSum: true, // Policy of highlighting pieces when hover on one // Valid values: 'none' (for not downplay others), 'descendant', // 'ancestor', 'self' highlightPolicy: 'descendant', // 'rootToNode', 'link', or false nodeClick: 'rootToNode', renderLabelForZeroData: false, label: { // could be: 'radial', 'tangential', or 'none' rotate: 'radial', show: true, opacity: 1, // 'left' is for inner side of inside, and 'right' is for outter // side for inside align: 'center', position: 'inside', distance: 5, silent: true, emphasis: {} }, itemStyle: { borderWidth: 1, borderColor: 'white', borderType: 'solid', shadowBlur: 0, shadowColor: 'rgba(0, 0, 0, 0.2)', shadowOffsetX: 0, shadowOffsetY: 0, opacity: 1, emphasis: {}, highlight: { opacity: 1 }, downplay: { opacity: 0.9 } }, // Animation type canbe expansion, scale animationType: 'expansion', animationDuration: 1000, animationDurationUpdate: 500, animationEasing: 'cubicOut', data: [], levels: [], /** * Sort order. * * Valid values: 'desc', 'asc', null, or callback function. * 'desc' and 'asc' for descend and ascendant order; * null for not sorting; * example of callback function: * function(nodeA, nodeB) { * return nodeA.getValue() - nodeB.getValue(); * } */ sort: 'desc' }, getViewRoot: function () { return this._viewRoot; }, /** * @param {module:echarts/data/Tree~Node} [viewRoot] */ resetViewRoot: function (viewRoot) { viewRoot ? (this._viewRoot = viewRoot) : (viewRoot = this._viewRoot); var root = this.getRawData().tree.root; if (!viewRoot || (viewRoot !== root && !root.contains(viewRoot)) ) { this._viewRoot = root; } } }); /** * @param {Object} dataNode */ function completeTreeValue$1(dataNode) { // Postorder travel tree. // If value of none-leaf node is not set, // calculate it by suming up the value of all children. var sum = 0; each$1(dataNode.children, function (child) { completeTreeValue$1(child); var childValue = child.value; isArray(childValue) && (childValue = childValue[0]); sum += childValue; }); var thisValue = dataNode.value; if (isArray(thisValue)) { thisValue = thisValue[0]; } if (thisValue == null || isNaN(thisValue)) { thisValue = sum; } // Value should not less than 0. if (thisValue < 0) { thisValue = 0; } isArray(dataNode.value) ? (dataNode.value[0] = thisValue) : (dataNode.value = thisValue); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var NodeHighlightPolicy = { NONE: 'none', // not downplay others DESCENDANT: 'descendant', ANCESTOR: 'ancestor', SELF: 'self' }; var DEFAULT_SECTOR_Z = 2; var DEFAULT_TEXT_Z = 4; /** * Sunburstce of Sunburst including Sector, Label, LabelLine * @constructor * @extends {module:zrender/graphic/Group} */ function SunburstPiece(node, seriesModel, ecModel) { Group.call(this); var sector = new Sector({ z2: DEFAULT_SECTOR_Z }); sector.seriesIndex = seriesModel.seriesIndex; var text = new Text({ z2: DEFAULT_TEXT_Z, silent: node.getModel('label').get('silent') }); this.add(sector); this.add(text); this.updateData(true, node, 'normal', seriesModel, ecModel); // Hover to change label and labelLine function onEmphasis() { text.ignore = text.hoverIgnore; } function onNormal() { text.ignore = text.normalIgnore; } this.on('emphasis', onEmphasis) .on('normal', onNormal) .on('mouseover', onEmphasis) .on('mouseout', onNormal); } var SunburstPieceProto = SunburstPiece.prototype; SunburstPieceProto.updateData = function ( firstCreate, node, state, seriesModel, ecModel ) { this.node = node; node.piece = this; seriesModel = seriesModel || this._seriesModel; ecModel = ecModel || this._ecModel; var sector = this.childAt(0); sector.dataIndex = node.dataIndex; var itemModel = node.getModel(); var layout = node.getLayout(); // if (!layout) { // console.log(node.getLayout()); // } var sectorShape = extend({}, layout); sectorShape.label = null; var visualColor = getNodeColor(node, seriesModel, ecModel); fillDefaultColor(node, seriesModel, visualColor); var normalStyle = itemModel.getModel('itemStyle').getItemStyle(); var style; if (state === 'normal') { style = normalStyle; } else { var stateStyle = itemModel.getModel(state + '.itemStyle') .getItemStyle(); style = merge(stateStyle, normalStyle); } style = defaults( { lineJoin: 'bevel', fill: style.fill || visualColor }, style ); if (firstCreate) { sector.setShape(sectorShape); sector.shape.r = layout.r0; updateProps( sector, { shape: { r: layout.r } }, seriesModel, node.dataIndex ); sector.useStyle(style); } else if (typeof style.fill === 'object' && style.fill.type || typeof sector.style.fill === 'object' && sector.style.fill.type ) { // Disable animation for gradient since no interpolation method // is supported for gradient updateProps(sector, { shape: sectorShape }, seriesModel); sector.useStyle(style); } else { updateProps(sector, { shape: sectorShape, style: style }, seriesModel); } this._updateLabel(seriesModel, visualColor, state); var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && sector.attr('cursor', cursorStyle); if (firstCreate) { var highlightPolicy = seriesModel.getShallow('highlightPolicy'); this._initEvents(sector, node, seriesModel, highlightPolicy); } this._seriesModel = seriesModel || this._seriesModel; this._ecModel = ecModel || this._ecModel; }; SunburstPieceProto.onEmphasis = function (highlightPolicy) { var that = this; this.node.hostTree.root.eachNode(function (n) { if (n.piece) { if (that.node === n) { n.piece.updateData(false, n, 'emphasis'); } else if (isNodeHighlighted(n, that.node, highlightPolicy)) { n.piece.childAt(0).trigger('highlight'); } else if (highlightPolicy !== NodeHighlightPolicy.NONE) { n.piece.childAt(0).trigger('downplay'); } } }); }; SunburstPieceProto.onNormal = function () { this.node.hostTree.root.eachNode(function (n) { if (n.piece) { n.piece.updateData(false, n, 'normal'); } }); }; SunburstPieceProto.onHighlight = function () { this.updateData(false, this.node, 'highlight'); }; SunburstPieceProto.onDownplay = function () { this.updateData(false, this.node, 'downplay'); }; SunburstPieceProto._updateLabel = function (seriesModel, visualColor, state) { var itemModel = this.node.getModel(); var normalModel = itemModel.getModel('label'); var labelModel = state === 'normal' || state === 'emphasis' ? normalModel : itemModel.getModel(state + '.label'); var labelHoverModel = itemModel.getModel('emphasis.label'); var text = retrieve( seriesModel.getFormattedLabel( this.node.dataIndex, state, null, null, 'label' ), this.node.name ); if (getLabelAttr('show') === false) { text = ''; } var layout = this.node.getLayout(); var labelMinAngle = labelModel.get('minAngle'); if (labelMinAngle == null) { labelMinAngle = normalModel.get('minAngle'); } labelMinAngle = labelMinAngle / 180 * Math.PI; var angle = layout.endAngle - layout.startAngle; if (labelMinAngle != null && Math.abs(angle) < labelMinAngle) { // Not displaying text when angle is too small text = ''; } var label = this.childAt(1); setLabelStyle( label.style, label.hoverStyle || {}, normalModel, labelHoverModel, { defaultText: labelModel.getShallow('show') ? text : null, autoColor: visualColor, useInsideStyle: true } ); var midAngle = (layout.startAngle + layout.endAngle) / 2; var dx = Math.cos(midAngle); var dy = Math.sin(midAngle); var r; var labelPosition = getLabelAttr('position'); var labelPadding = getLabelAttr('distance') || 0; var textAlign = getLabelAttr('align'); if (labelPosition === 'outside') { r = layout.r + labelPadding; textAlign = midAngle > Math.PI / 2 ? 'right' : 'left'; } else { if (!textAlign || textAlign === 'center') { r = (layout.r + layout.r0) / 2; textAlign = 'center'; } else if (textAlign === 'left') { r = layout.r0 + labelPadding; if (midAngle > Math.PI / 2) { textAlign = 'right'; } } else if (textAlign === 'right') { r = layout.r - labelPadding; if (midAngle > Math.PI / 2) { textAlign = 'left'; } } } label.attr('style', { text: text, textAlign: textAlign, textVerticalAlign: getLabelAttr('verticalAlign') || 'middle', opacity: getLabelAttr('opacity') }); var textX = r * dx + layout.cx; var textY = r * dy + layout.cy; label.attr('position', [textX, textY]); var rotateType = getLabelAttr('rotate'); var rotate = 0; if (rotateType === 'radial') { rotate = -midAngle; if (rotate < -Math.PI / 2) { rotate += Math.PI; } } else if (rotateType === 'tangential') { rotate = Math.PI / 2 - midAngle; if (rotate > Math.PI / 2) { rotate -= Math.PI; } else if (rotate < -Math.PI / 2) { rotate += Math.PI; } } else if (typeof rotateType === 'number') { rotate = rotateType * Math.PI / 180; } label.attr('rotation', rotate); function getLabelAttr(name) { var stateAttr = labelModel.get(name); if (stateAttr == null) { return normalModel.get(name); } else { return stateAttr; } } }; SunburstPieceProto._initEvents = function ( sector, node, seriesModel, highlightPolicy ) { sector.off('mouseover').off('mouseout').off('emphasis').off('normal'); var that = this; var onEmphasis = function () { that.onEmphasis(highlightPolicy); }; var onNormal = function () { that.onNormal(); }; var onDownplay = function () { that.onDownplay(); }; var onHighlight = function () { that.onHighlight(); }; if (seriesModel.isAnimationEnabled()) { sector .on('mouseover', onEmphasis) .on('mouseout', onNormal) .on('emphasis', onEmphasis) .on('normal', onNormal) .on('downplay', onDownplay) .on('highlight', onHighlight); } }; inherits(SunburstPiece, Group); /** * Get node color * * @param {TreeNode} node the node to get color * @param {module:echarts/model/Series} seriesModel series * @param {module:echarts/model/Global} ecModel echarts defaults */ function getNodeColor(node, seriesModel, ecModel) { // Color from visualMap var visualColor = node.getVisual('color'); var visualMetaList = node.getVisual('visualMeta'); if (!visualMetaList || visualMetaList.length === 0) { // Use first-generation color if has no visualMap visualColor = null; } // Self color or level color var color = node.getModel('itemStyle').get('color'); if (color) { return color; } else if (visualColor) { // Color mapping return visualColor; } else if (node.depth === 0) { // Virtual root node return ecModel.option.color[0]; } else { // First-generation color var length = ecModel.option.color.length; color = ecModel.option.color[getRootId(node) % length]; } return color; } /** * Get index of root in sorted order * * @param {TreeNode} node current node * @return {number} index in root */ function getRootId(node) { var ancestor = node; while (ancestor.depth > 1) { ancestor = ancestor.parentNode; } var virtualRoot = node.getAncestors()[0]; return indexOf(virtualRoot.children, ancestor); } function isNodeHighlighted(node, activeNode, policy) { if (policy === NodeHighlightPolicy.NONE) { return false; } else if (policy === NodeHighlightPolicy.SELF) { return node === activeNode; } else if (policy === NodeHighlightPolicy.ANCESTOR) { return node === activeNode || node.isAncestorOf(activeNode); } else { return node === activeNode || node.isDescendantOf(activeNode); } } // Fix tooltip callback function params.color incorrect when pick a default color function fillDefaultColor(node, seriesModel, color) { var data = seriesModel.getData(); data.setItemVisual(node.dataIndex, 'color', color); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ROOT_TO_NODE_ACTION = 'sunburstRootToNode'; var SunburstView = Chart.extend({ type: 'sunburst', init: function () { }, render: function (seriesModel, ecModel, api, payload) { var that = this; this.seriesModel = seriesModel; this.api = api; this.ecModel = ecModel; var data = seriesModel.getData(); var virtualRoot = data.tree.root; var newRoot = seriesModel.getViewRoot(); var group = this.group; var renderLabelForZeroData = seriesModel.get('renderLabelForZeroData'); var newChildren = []; newRoot.eachNode(function (node) { newChildren.push(node); }); var oldChildren = this._oldChildren || []; dualTravel(newChildren, oldChildren); renderRollUp(virtualRoot, newRoot); if (payload && payload.highlight && payload.highlight.piece) { var highlightPolicy = seriesModel.getShallow('highlightPolicy'); payload.highlight.piece.onEmphasis(highlightPolicy); } else if (payload && payload.unhighlight) { var piece = this.virtualPiece; if (!piece && virtualRoot.children.length) { piece = virtualRoot.children[0].piece; } if (piece) { piece.onNormal(); } } this._initEvents(); this._oldChildren = newChildren; function dualTravel(newChildren, oldChildren) { if (newChildren.length === 0 && oldChildren.length === 0) { return; } new DataDiffer(oldChildren, newChildren, getKey, getKey) .add(processNode) .update(processNode) .remove(curry(processNode, null)) .execute(); function getKey(node) { return node.getId(); } function processNode(newId, oldId) { var newNode = newId == null ? null : newChildren[newId]; var oldNode = oldId == null ? null : oldChildren[oldId]; doRenderNode(newNode, oldNode); } } function doRenderNode(newNode, oldNode) { if (!renderLabelForZeroData && newNode && !newNode.getValue()) { // Not render data with value 0 newNode = null; } if (newNode !== virtualRoot && oldNode !== virtualRoot) { if (oldNode && oldNode.piece) { if (newNode) { // Update oldNode.piece.updateData( false, newNode, 'normal', seriesModel, ecModel); // For tooltip data.setItemGraphicEl(newNode.dataIndex, oldNode.piece); } else { // Remove removeNode(oldNode); } } else if (newNode) { // Add var piece = new SunburstPiece( newNode, seriesModel, ecModel ); group.add(piece); // For tooltip data.setItemGraphicEl(newNode.dataIndex, piece); } } } function removeNode(node) { if (!node) { return; } if (node.piece) { group.remove(node.piece); node.piece = null; } } function renderRollUp(virtualRoot, viewRoot) { if (viewRoot.depth > 0) { // Render if (that.virtualPiece) { // Update that.virtualPiece.updateData( false, virtualRoot, 'normal', seriesModel, ecModel); } else { // Add that.virtualPiece = new SunburstPiece( virtualRoot, seriesModel, ecModel ); group.add(that.virtualPiece); } if (viewRoot.piece._onclickEvent) { viewRoot.piece.off('click', viewRoot.piece._onclickEvent); } var event = function (e) { that._rootToNode(viewRoot.parentNode); }; viewRoot.piece._onclickEvent = event; that.virtualPiece.on('click', event); } else if (that.virtualPiece) { // Remove group.remove(that.virtualPiece); that.virtualPiece = null; } } }, dispose: function () { }, /** * @private */ _initEvents: function () { var that = this; var event = function (e) { var targetFound = false; var viewRoot = that.seriesModel.getViewRoot(); viewRoot.eachNode(function (node) { if (!targetFound && node.piece && node.piece.childAt(0) === e.target ) { var nodeClick = node.getModel().get('nodeClick'); if (nodeClick === 'rootToNode') { that._rootToNode(node); } else if (nodeClick === 'link') { var itemModel = node.getModel(); var link = itemModel.get('link'); if (link) { var linkTarget = itemModel.get('target', true) || '_blank'; window.open(link, linkTarget); } } targetFound = true; } }); }; if (this.group._onclickEvent) { this.group.off('click', this.group._onclickEvent); } this.group.on('click', event); this.group._onclickEvent = event; }, /** * @private */ _rootToNode: function (node) { if (node !== this.seriesModel.getViewRoot()) { this.api.dispatchAction({ type: ROOT_TO_NODE_ACTION, from: this.uid, seriesId: this.seriesModel.id, targetNode: node }); } }, /** * @implement */ containPoint: function (point, seriesModel) { var treeRoot = seriesModel.getData(); var itemLayout = treeRoot.getItemLayout(0); if (itemLayout) { var dx = point[0] - itemLayout.cx; var dy = point[1] - itemLayout.cy; var radius = Math.sqrt(dx * dx + dy * dy); return radius <= itemLayout.r && radius >= itemLayout.r0; } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Sunburst action */ var ROOT_TO_NODE_ACTION$1 = 'sunburstRootToNode'; registerAction( {type: ROOT_TO_NODE_ACTION$1, update: 'updateView'}, function (payload, ecModel) { ecModel.eachComponent( {mainType: 'series', subType: 'sunburst', query: payload}, handleRootToNode ); function handleRootToNode(model, index) { var targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION$1], model); if (targetInfo) { var originViewRoot = model.getViewRoot(); if (originViewRoot) { payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown'; } model.resetViewRoot(targetInfo.node); } } } ); var HIGHLIGHT_ACTION = 'sunburstHighlight'; registerAction( {type: HIGHLIGHT_ACTION, update: 'updateView'}, function (payload, ecModel) { ecModel.eachComponent( {mainType: 'series', subType: 'sunburst', query: payload}, handleHighlight ); function handleHighlight(model, index) { var targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model); if (targetInfo) { payload.highlight = targetInfo.node; } } } ); var UNHIGHLIGHT_ACTION = 'sunburstUnhighlight'; registerAction( {type: UNHIGHLIGHT_ACTION, update: 'updateView'}, function (payload, ecModel) { ecModel.eachComponent( {mainType: 'series', subType: 'sunburst', query: payload}, handleUnhighlight ); function handleUnhighlight(model, index) { payload.unhighlight = true; } } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RADIAN$2 = Math.PI / 180; var sunburstLayout = function (seriesType, ecModel, api, payload) { ecModel.eachSeriesByType(seriesType, function (seriesModel) { var center = seriesModel.get('center'); var radius = seriesModel.get('radius'); if (!isArray(radius)) { radius = [0, radius]; } if (!isArray(center)) { center = [center, center]; } var width = api.getWidth(); var height = api.getHeight(); var size = Math.min(width, height); var cx = parsePercent$1(center[0], width); var cy = parsePercent$1(center[1], height); var r0 = parsePercent$1(radius[0], size / 2); var r = parsePercent$1(radius[1], size / 2); var startAngle = -seriesModel.get('startAngle') * RADIAN$2; var minAngle = seriesModel.get('minAngle') * RADIAN$2; var virtualRoot = seriesModel.getData().tree.root; var treeRoot = seriesModel.getViewRoot(); var rootDepth = treeRoot.depth; var sort = seriesModel.get('sort'); if (sort != null) { initChildren$1(treeRoot, sort); } var validDataCount = 0; each$1(treeRoot.children, function (child) { !isNaN(child.getValue()) && validDataCount++; }); var sum = treeRoot.getValue(); // Sum may be 0 var unitRadian = Math.PI / (sum || validDataCount) * 2; var renderRollupNode = treeRoot.depth > 0; var levels = treeRoot.height - (renderRollupNode ? -1 : 1); var rPerLevel = (r - r0) / (levels || 1); var clockwise = seriesModel.get('clockwise'); var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // In the case some sector angle is smaller than minAngle var dir = clockwise ? 1 : -1; /** * Render a tree * @return increased angle */ var renderNode = function (node, startAngle) { if (!node) { return; } var endAngle = startAngle; // Render self if (node !== virtualRoot) { // Tree node is virtual, so it doesn't need to be drawn var value = node.getValue(); var angle = (sum === 0 && stillShowZeroSum) ? unitRadian : (value * unitRadian); if (angle < minAngle) { angle = minAngle; } else { } endAngle = startAngle + dir * angle; var depth = node.depth - rootDepth - (renderRollupNode ? -1 : 1); var rStart = r0 + rPerLevel * depth; var rEnd = r0 + rPerLevel * (depth + 1); var itemModel = node.getModel(); if (itemModel.get('r0') != null) { rStart = parsePercent$1(itemModel.get('r0'), size / 2); } if (itemModel.get('r') != null) { rEnd = parsePercent$1(itemModel.get('r'), size / 2); } node.setLayout({ angle: angle, startAngle: startAngle, endAngle: endAngle, clockwise: clockwise, cx: cx, cy: cy, r0: rStart, r: rEnd }); } // Render children if (node.children && node.children.length) { // currentAngle = startAngle; var siblingAngle = 0; each$1(node.children, function (node) { siblingAngle += renderNode(node, startAngle + siblingAngle); }); } return endAngle - startAngle; }; // Virtual root node for roll up if (renderRollupNode) { var rStart = r0; var rEnd = r0 + rPerLevel; var angle = Math.PI * 2; virtualRoot.setLayout({ angle: angle, startAngle: startAngle, endAngle: startAngle + angle, clockwise: clockwise, cx: cx, cy: cy, r0: rStart, r: rEnd }); } renderNode(treeRoot, startAngle); }); }; /** * Init node children by order and update visual * * @param {TreeNode} node root node * @param {boolean} isAsc if is in ascendant order */ function initChildren$1(node, isAsc) { var children = node.children || []; node.children = sort$2(children, isAsc); // Init children recursively if (children.length) { each$1(node.children, function (child) { initChildren$1(child, isAsc); }); } } /** * Sort children nodes * * @param {TreeNode[]} children children of node to be sorted * @param {string | function | null} sort sort method * See SunburstSeries.js for details. */ function sort$2(children, sortOrder) { if (typeof sortOrder === 'function') { return children.sort(sortOrder); } else { var isAsc = sortOrder === 'asc'; return children.sort(function (a, b) { var diff = (a.getValue() - b.getValue()) * (isAsc ? 1 : -1); return diff === 0 ? (a.dataIndex - b.dataIndex) * (isAsc ? -1 : 1) : diff; }); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerVisual(curry(dataColor, 'sunburst')); registerLayout(curry(sunburstLayout, 'sunburst')); registerProcessor(curry(dataFilter, 'sunburst')); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. dataItem = dataItem || [0, 0]; return map(['x', 'y'], function (dim, dimIdx) { var axis = this.getAxis(dim); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); }, this); } var prepareCartesian2d = function (coordSys) { var rect = coordSys.grid.getRect(); return { coordSys: { // The name exposed to user is always 'cartesian2d' but not 'grid'. type: 'cartesian2d', x: rect.x, y: rect.y, width: rect.width, height: rect.height }, api: { coord: function (data) { // do not provide "out" param return coordSys.dataToPoint(data); }, size: bind(dataToCoordSize, coordSys) } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize$1(dataSize, dataItem) { dataItem = dataItem || [0, 0]; return map([0, 1], function (dimIdx) { var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var p1 = []; var p2 = []; p1[dimIdx] = val - halfSize; p2[dimIdx] = val + halfSize; p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); }, this); } var prepareGeo = function (coordSys) { var rect = coordSys.getBoundingRect(); return { coordSys: { type: 'geo', x: rect.x, y: rect.y, width: rect.width, height: rect.height, zoom: coordSys.getZoom() }, api: { coord: function (data) { // do not provide "out" and noRoam param, // Compatible with this usage: // echarts.util.map(item.points, api.coord) return coordSys.dataToPoint(data); }, size: bind(dataToCoordSize$1, coordSys) } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize$2(dataSize, dataItem) { // dataItem is necessary in log axis. var axis = this.getAxis(); var val = dataItem instanceof Array ? dataItem[0] : dataItem; var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); } var prepareSingleAxis = function (coordSys) { var rect = coordSys.getRect(); return { coordSys: { type: 'singleAxis', x: rect.x, y: rect.y, width: rect.width, height: rect.height }, api: { coord: function (val) { // do not provide "out" param return coordSys.dataToPoint(val); }, size: bind(dataToCoordSize$2, coordSys) } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize$3(dataSize, dataItem) { // dataItem is necessary in log axis. return map(['Radius', 'Angle'], function (dim, dimIdx) { var axis = this['get' + dim + 'Axis'](); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var method = 'dataTo' + dim; var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis[method](val - halfSize) - axis[method](val + halfSize)); if (dim === 'Angle') { result = result * Math.PI / 180; } return result; }, this); } var preparePolar = function (coordSys) { var radiusAxis = coordSys.getRadiusAxis(); var angleAxis = coordSys.getAngleAxis(); var radius = radiusAxis.getExtent(); radius[0] > radius[1] && radius.reverse(); return { coordSys: { type: 'polar', cx: coordSys.cx, cy: coordSys.cy, r: radius[1], r0: radius[0] }, api: { coord: bind(function (data) { var radius = radiusAxis.dataToRadius(data[0]); var angle = angleAxis.dataToAngle(data[1]); var coord = coordSys.coordToPoint([radius, angle]); coord.push(radius, angle * Math.PI / 180); return coord; }), size: bind(dataToCoordSize$3, coordSys) } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var prepareCalendar = function (coordSys) { var rect = coordSys.getRect(); var rangeInfo = coordSys.getRangeInfo(); return { coordSys: { type: 'calendar', x: rect.x, y: rect.y, width: rect.width, height: rect.height, cellWidth: coordSys.getCellWidth(), cellHeight: coordSys.getCellHeight(), rangeInfo: { start: rangeInfo.start, end: rangeInfo.end, weeks: rangeInfo.weeks, dayCount: rangeInfo.allDay } }, api: { coord: function (data, clamp) { return coordSys.dataToPoint(data, clamp); } } }; }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CACHED_LABEL_STYLE_PROPERTIES$1 = CACHED_LABEL_STYLE_PROPERTIES; var ITEM_STYLE_NORMAL_PATH = ['itemStyle']; var ITEM_STYLE_EMPHASIS_PATH = ['emphasis', 'itemStyle']; var LABEL_NORMAL = ['label']; var LABEL_EMPHASIS = ['emphasis', 'label']; // Use prefix to avoid index to be the same as el.name, // which will cause weird udpate animation. var GROUP_DIFF_PREFIX = 'e\0\0'; /** * To reduce total package size of each coordinate systems, the modules `prepareCustom` * of each coordinate systems are not required by each coordinate systems directly, but * required by the module `custom`. * * prepareInfoForCustomSeries {Function}: optional * @return {Object} {coordSys: {...}, api: { * coord: function (data, clamp) {}, // return point in global. * size: function (dataSize, dataItem) {} // return size of each axis in coordSys. * }} */ var prepareCustoms = { cartesian2d: prepareCartesian2d, geo: prepareGeo, singleAxis: prepareSingleAxis, polar: preparePolar, calendar: prepareCalendar }; // ------ // Model // ------ SeriesModel.extend({ type: 'series.custom', dependencies: ['grid', 'polar', 'geo', 'singleAxis', 'calendar'], defaultOption: { coordinateSystem: 'cartesian2d', // Can be set as 'none' zlevel: 0, z: 2, legendHoverLink: true, useTransform: true // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Polar coordinate system // polarIndex: 0, // Geo coordinate system // geoIndex: 0, // label: {} // itemStyle: {} }, /** * @override */ getInitialData: function (option, ecModel) { return createListFromArray(this.getSource(), this); }, /** * @override */ getDataParams: function (dataIndex, dataType, el) { var params = SeriesModel.prototype.getDataParams.apply(this, arguments); el && (params.info = el.info); return params; } }); // ----- // View // ----- Chart.extend({ type: 'custom', /** * @private * @type {module:echarts/data/List} */ _data: null, /** * @override */ render: function (customSeries, ecModel, api, payload) { var oldData = this._data; var data = customSeries.getData(); var group = this.group; var renderItem = makeRenderItem(customSeries, data, ecModel, api); // By default, merge mode is applied. In most cases, custom series is // used in the scenario that data amount is not large but graphic elements // is complicated, where merge mode is probably necessary for optimization. // For example, reuse graphic elements and only update the transform when // roam or data zoom according to `actionType`. data.diff(oldData) .add(function (newIdx) { createOrUpdate$1( null, newIdx, renderItem(newIdx, payload), customSeries, group, data ); }) .update(function (newIdx, oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); createOrUpdate$1( el, newIdx, renderItem(newIdx, payload), customSeries, group, data ); }) .remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && group.remove(el); }) .execute(); this._data = data; }, incrementalPrepareRender: function (customSeries, ecModel, api) { this.group.removeAll(); this._data = null; }, incrementalRender: function (params, customSeries, ecModel, api, payload) { var data = customSeries.getData(); var renderItem = makeRenderItem(customSeries, data, ecModel, api); function setIncrementalAndHoverLayer(el) { if (!el.isGroup) { el.incremental = true; el.useHoverLayer = true; } } for (var idx = params.start; idx < params.end; idx++) { var el = createOrUpdate$1(null, idx, renderItem(idx, payload), customSeries, this.group, data); el.traverse(setIncrementalAndHoverLayer); } }, /** * @override */ dispose: noop, /** * @override */ filterForExposedEvent: function (eventType, query, targetEl, packedEvent) { var elementName = query.element; if (elementName == null || targetEl.name === elementName) { return true; } // Enable to give a name on a group made by `renderItem`, and listen // events that triggerd by its descendents. while ((targetEl = targetEl.parent) && targetEl !== this.group) { if (targetEl.name === elementName) { return true; } } return false; } }); function createEl(elOption) { var graphicType = elOption.type; var el; if (graphicType === 'path') { var shape = elOption.shape; // Using pathRect brings convenience to users sacle svg path. var pathRect = (shape.width != null && shape.height != null) ? { x: shape.x || 0, y: shape.y || 0, width: shape.width, height: shape.height } : null; var pathData = getPathData(shape); // Path is also used for icon, so layout 'center' by default. el = makePath(pathData, null, pathRect, shape.layout || 'center'); el.__customPathData = pathData; } else if (graphicType === 'image') { el = new ZImage({}); el.__customImagePath = elOption.style.image; } else if (graphicType === 'text') { el = new Text({}); el.__customText = elOption.style.text; } else { var Clz = graphic[graphicType.charAt(0).toUpperCase() + graphicType.slice(1)]; if (__DEV__) { assert$1(Clz, 'graphic type "' + graphicType + '" can not be found.'); } el = new Clz(); } el.__customGraphicType = graphicType; el.name = elOption.name; return el; } function updateEl(el, dataIndex, elOption, animatableModel, data, isInit, isRoot) { var transitionProps = {}; var elOptionStyle = elOption.style || {}; elOption.shape && (transitionProps.shape = clone(elOption.shape)); elOption.position && (transitionProps.position = elOption.position.slice()); elOption.scale && (transitionProps.scale = elOption.scale.slice()); elOption.origin && (transitionProps.origin = elOption.origin.slice()); elOption.rotation && (transitionProps.rotation = elOption.rotation); if (el.type === 'image' && elOption.style) { var targetStyle = transitionProps.style = {}; each$1(['x', 'y', 'width', 'height'], function (prop) { prepareStyleTransition(prop, targetStyle, elOptionStyle, el.style, isInit); }); } if (el.type === 'text' && elOption.style) { var targetStyle = transitionProps.style = {}; each$1(['x', 'y'], function (prop) { prepareStyleTransition(prop, targetStyle, elOptionStyle, el.style, isInit); }); // Compatible with previous: both support // textFill and fill, textStroke and stroke in 'text' element. !elOptionStyle.hasOwnProperty('textFill') && elOptionStyle.fill && ( elOptionStyle.textFill = elOptionStyle.fill ); !elOptionStyle.hasOwnProperty('textStroke') && elOptionStyle.stroke && ( elOptionStyle.textStroke = elOptionStyle.stroke ); } if (el.type !== 'group') { el.useStyle(elOptionStyle); // Init animation. if (isInit) { el.style.opacity = 0; var targetOpacity = elOptionStyle.opacity; targetOpacity == null && (targetOpacity = 1); initProps(el, {style: {opacity: targetOpacity}}, animatableModel, dataIndex); } } if (isInit) { el.attr(transitionProps); } else { updateProps(el, transitionProps, animatableModel, dataIndex); } // Merge by default. // z2 must not be null/undefined, otherwise sort error may occur. elOption.hasOwnProperty('z2') && el.attr('z2', elOption.z2 || 0); elOption.hasOwnProperty('silent') && el.attr('silent', elOption.silent); elOption.hasOwnProperty('invisible') && el.attr('invisible', elOption.invisible); elOption.hasOwnProperty('ignore') && el.attr('ignore', elOption.ignore); // `elOption.info` enables user to mount some info on // elements and use them in event handlers. // Update them only when user specified, otherwise, remain. elOption.hasOwnProperty('info') && el.attr('info', elOption.info); // If `elOption.styleEmphasis` is `false`, remove hover style. The // logic is ensured by `graphicUtil.setElementHoverStyle`. var styleEmphasis = elOption.styleEmphasis; var disableStyleEmphasis = styleEmphasis === false; if (!( // Try to escapse setting hover style for performance. (el.__cusHasEmphStl && styleEmphasis == null) || (!el.__cusHasEmphStl && disableStyleEmphasis) )) { // Should not use graphicUtil.setHoverStyle, since the styleEmphasis // should not be share by group and its descendants. setElementHoverStyle(el, styleEmphasis); el.__cusHasEmphStl = !disableStyleEmphasis; } if (isRoot) { setAsHighDownDispatcher(el, !disableStyleEmphasis); } } function prepareStyleTransition(prop, targetStyle, elOptionStyle, oldElStyle, isInit) { if (elOptionStyle[prop] != null && !isInit) { targetStyle[prop] = elOptionStyle[prop]; elOptionStyle[prop] = oldElStyle[prop]; } } function makeRenderItem(customSeries, data, ecModel, api) { var renderItem = customSeries.get('renderItem'); var coordSys = customSeries.coordinateSystem; var prepareResult = {}; if (coordSys) { if (__DEV__) { assert$1(renderItem, 'series.render is required.'); assert$1( coordSys.prepareCustoms || prepareCustoms[coordSys.type], 'This coordSys does not support custom series.' ); } prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms() : prepareCustoms[coordSys.type](coordSys); } var userAPI = defaults({ getWidth: api.getWidth, getHeight: api.getHeight, getZr: api.getZr, getDevicePixelRatio: api.getDevicePixelRatio, value: value, style: style, styleEmphasis: styleEmphasis, visual: visual, barLayout: barLayout, currentSeriesIndices: currentSeriesIndices, font: font }, prepareResult.api || {}); var userParams = { // The life cycle of context: current round of rendering. // The global life cycle is probably not necessary, because // user can store global status by themselves. context: {}, seriesId: customSeries.id, seriesName: customSeries.name, seriesIndex: customSeries.seriesIndex, coordSys: prepareResult.coordSys, dataInsideLength: data.count(), encode: wrapEncodeDef(customSeries.getData()) }; // Do not support call `api` asynchronously without dataIndexInside input. var currDataIndexInside; var currDirty = true; var currItemModel; var currLabelNormalModel; var currLabelEmphasisModel; var currVisualColor; return function (dataIndexInside, payload) { currDataIndexInside = dataIndexInside; currDirty = true; return renderItem && renderItem( defaults({ dataIndexInside: dataIndexInside, dataIndex: data.getRawIndex(dataIndexInside), // Can be used for optimization when zoom or roam. actionType: payload ? payload.type : null }, userParams), userAPI ); }; // Do not update cache until api called. function updateCache(dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); if (currDirty) { currItemModel = data.getItemModel(dataIndexInside); currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL); currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS); currVisualColor = data.getItemVisual(dataIndexInside, 'color'); currDirty = false; } } /** * @public * @param {number|string} dim * @param {number} [dataIndexInside=currDataIndexInside] * @return {number|string} value */ function value(dim, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); return data.get(data.getDimension(dim || 0), dataIndexInside); } /** * By default, `visual` is applied to style (to support visualMap). * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`, * it can be implemented as: * `api.style({stroke: api.visual('color'), fill: null})`; * @public * @param {Object} [extra] * @param {number} [dataIndexInside=currDataIndexInside] */ function style(extra, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); updateCache(dataIndexInside); var itemStyle = currItemModel.getModel(ITEM_STYLE_NORMAL_PATH).getItemStyle(); currVisualColor != null && (itemStyle.fill = currVisualColor); var opacity = data.getItemVisual(dataIndexInside, 'opacity'); opacity != null && (itemStyle.opacity = opacity); var labelModel = extra ? applyExtraBefore(extra, currLabelNormalModel) : currLabelNormalModel; setTextStyle(itemStyle, labelModel, null, { autoColor: currVisualColor, isRectText: true }); itemStyle.text = labelModel.getShallow('show') ? retrieve2( customSeries.getFormattedLabel(dataIndexInside, 'normal'), getDefaultLabel(data, dataIndexInside) ) : null; extra && applyExtraAfter(itemStyle, extra); return itemStyle; } /** * @public * @param {Object} [extra] * @param {number} [dataIndexInside=currDataIndexInside] */ function styleEmphasis(extra, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); updateCache(dataIndexInside); var itemStyle = currItemModel.getModel(ITEM_STYLE_EMPHASIS_PATH).getItemStyle(); var labelModel = extra ? applyExtraBefore(extra, currLabelEmphasisModel) : currLabelEmphasisModel; setTextStyle(itemStyle, labelModel, null, { isRectText: true }, true); itemStyle.text = labelModel.getShallow('show') ? retrieve3( customSeries.getFormattedLabel(dataIndexInside, 'emphasis'), customSeries.getFormattedLabel(dataIndexInside, 'normal'), getDefaultLabel(data, dataIndexInside) ) : null; extra && applyExtraAfter(itemStyle, extra); return itemStyle; } /** * @public * @param {string} visualType * @param {number} [dataIndexInside=currDataIndexInside] */ function visual(visualType, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); return data.getItemVisual(dataIndexInside, visualType); } /** * @public * @param {number} opt.count Positive interger. * @param {number} [opt.barWidth] * @param {number} [opt.barMaxWidth] * @param {number} [opt.barGap] * @param {number} [opt.barCategoryGap] * @return {Object} {width, offset, offsetCenter} is not support, return undefined. */ function barLayout(opt) { if (coordSys.getBaseAxis) { var baseAxis = coordSys.getBaseAxis(); return getLayoutOnAxis(defaults({axis: baseAxis}, opt), api); } } /** * @public * @return {Array.} */ function currentSeriesIndices() { return ecModel.getCurrentSeriesIndices(); } /** * @public * @param {Object} opt * @param {string} [opt.fontStyle] * @param {number} [opt.fontWeight] * @param {number} [opt.fontSize] * @param {string} [opt.fontFamily] * @return {string} font string */ function font(opt) { return getFont(opt, ecModel); } } function wrapEncodeDef(data) { var encodeDef = {}; each$1(data.dimensions, function (dimName, dataDimIndex) { var dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isExtraCoord) { var coordDim = dimInfo.coordDim; var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || []; dataDims[dimInfo.coordDimIndex] = dataDimIndex; } }); return encodeDef; } function createOrUpdate$1(el, dataIndex, elOption, animatableModel, group, data) { el = doCreateOrUpdate(el, dataIndex, elOption, animatableModel, group, data, true); el && data.setItemGraphicEl(dataIndex, el); return el; } function doCreateOrUpdate(el, dataIndex, elOption, animatableModel, group, data, isRoot) { // [Rule] // By default, follow merge mode. // (It probably brings benifit for performance in some cases of large data, where // user program can be optimized to that only updated props needed to be re-calculated, // or according to `actionType` some calculation can be skipped.) // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing. // (It seems that violate the "merge" principle, but most of users probably intuitively // regard "return;" as "show nothing element whatever", so make a exception to meet the // most cases.) var simplyRemove = !elOption; // `null`/`undefined`/`false` elOption = elOption || {}; var elOptionType = elOption.type; var elOptionShape = elOption.shape; var elOptionStyle = elOption.style; if (el && ( simplyRemove // || elOption.$merge === false // If `elOptionType` is `null`, follow the merge principle. || (elOptionType != null && elOptionType !== el.__customGraphicType ) || (elOptionType === 'path' && hasOwnPathData(elOptionShape) && getPathData(elOptionShape) !== el.__customPathData ) || (elOptionType === 'image' && hasOwn(elOptionStyle, 'image') && elOptionStyle.image !== el.__customImagePath ) // FIXME test and remove this restriction? || (elOptionType === 'text' && hasOwn(elOptionShape, 'text') && elOptionStyle.text !== el.__customText ) )) { group.remove(el); el = null; } // `elOption.type` is undefined when `renderItem` returns nothing. if (simplyRemove) { return; } var isInit = !el; !el && (el = createEl(elOption)); updateEl(el, dataIndex, elOption, animatableModel, data, isInit, isRoot); if (elOptionType === 'group') { mergeChildren(el, dataIndex, elOption, animatableModel, data); } // Always add whatever already added to ensure sequence. group.add(el); return el; } // Usage: // (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates that // the existing children will not be removed, and enables the feature that // update some of the props of some of the children simply by construct // the returned children of `renderItem` like: // `var children = group.children = []; children[3] = {opacity: 0.5};` // (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children // by child.name. But that might be lower performance. // (3) If `elOption.$mergeChildren` is `false`, the existing children will be // replaced totally. // (4) If `!elOption.children`, following the "merge" principle, nothing will happen. // // For implementation simpleness, do not provide a direct way to remove sinlge // child (otherwise the total indicies of the children array have to be modified). // User can remove a single child by set its `ignore` as `true` or replace // it by another element, where its `$merge` can be set as `true` if necessary. function mergeChildren(el, dataIndex, elOption, animatableModel, data) { var newChildren = elOption.children; var newLen = newChildren ? newChildren.length : 0; var mergeChildren = elOption.$mergeChildren; // `diffChildrenByName` has been deprecated. var byName = mergeChildren === 'byName' || elOption.diffChildrenByName; var notMerge = mergeChildren === false; // For better performance on roam update, only enter if necessary. if (!newLen && !byName && !notMerge) { return; } if (byName) { diffGroupChildren({ oldChildren: el.children() || [], newChildren: newChildren || [], dataIndex: dataIndex, animatableModel: animatableModel, group: el, data: data }); return; } notMerge && el.removeAll(); // Mapping children of a group simply by index, which // might be better performance. var index = 0; for (; index < newLen; index++) { newChildren[index] && doCreateOrUpdate( el.childAt(index), dataIndex, newChildren[index], animatableModel, el, data ); } if (__DEV__) { assert$1( !notMerge || el.childCount() === index, 'MUST NOT contain empty item in children array when `group.$mergeChildren` is `false`.' ); } } function diffGroupChildren(context) { (new DataDiffer( context.oldChildren, context.newChildren, getKey, getKey, context )) .add(processAddUpdate) .update(processAddUpdate) .remove(processRemove) .execute(); } function getKey(item, idx) { var name = item && item.name; return name != null ? name : GROUP_DIFF_PREFIX + idx; } function processAddUpdate(newIndex, oldIndex) { var context = this.context; var childOption = newIndex != null ? context.newChildren[newIndex] : null; var child = oldIndex != null ? context.oldChildren[oldIndex] : null; doCreateOrUpdate( child, context.dataIndex, childOption, context.animatableModel, context.group, context.data ); } // `graphic#applyDefaultTextStyle` will cache // textFill, textStroke, textStrokeWidth. // We have to do this trick. function applyExtraBefore(extra, model) { var dummyModel = new Model({}, model); each$1(CACHED_LABEL_STYLE_PROPERTIES$1, function (stylePropName, modelPropName) { if (extra.hasOwnProperty(stylePropName)) { dummyModel.option[modelPropName] = extra[stylePropName]; } }); return dummyModel; } function applyExtraAfter(itemStyle, extra) { for (var key in extra) { if (extra.hasOwnProperty(key) || !CACHED_LABEL_STYLE_PROPERTIES$1.hasOwnProperty(key) ) { itemStyle[key] = extra[key]; } } } function processRemove(oldIndex) { var context = this.context; var child = context.oldChildren[oldIndex]; child && context.group.remove(child); } function getPathData(shape) { // "d" follows the SVG convention. return shape && (shape.pathData || shape.d); } function hasOwnPathData(shape) { return shape && (shape.hasOwnProperty('pathData') || shape.hasOwnProperty('d')); } function hasOwn(host, prop) { return host && host.hasOwnProperty(prop); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getSeriesStackId$1(seriesModel) { return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex; } function getAxisKey$1(polar, axis) { return axis.dim + polar.model.componentIndex; } /** * @param {string} seriesType * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api */ function barLayoutPolar(seriesType, ecModel, api) { var lastStackCoords = {}; var barWidthAndOffset = calRadialBar( filter( ecModel.getSeriesByType(seriesType), function (seriesModel) { return !ecModel.isSeriesFiltered(seriesModel) && seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'polar'; } ) ); ecModel.eachSeriesByType(seriesType, function (seriesModel) { // Check series coordinate, do layout for polar only if (seriesModel.coordinateSystem.type !== 'polar') { return; } var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis(); var axisKey = getAxisKey$1(polar, baseAxis); var stackId = getSeriesStackId$1(seriesModel); var columnLayoutInfo = barWidthAndOffset[axisKey][stackId]; var columnOffset = columnLayoutInfo.offset; var columnWidth = columnLayoutInfo.width; var valueAxis = polar.getOtherAxis(baseAxis); var cx = seriesModel.coordinateSystem.cx; var cy = seriesModel.coordinateSystem.cy; var barMinHeight = seriesModel.get('barMinHeight') || 0; var barMinAngle = seriesModel.get('barMinAngle') || 0; lastStackCoords[stackId] = lastStackCoords[stackId] || []; var valueDim = data.mapDimension(valueAxis.dim); var baseDim = data.mapDimension(baseAxis.dim); var stacked = isDimensionStacked(data, valueDim /*, baseDim*/); var valueAxisStart = valueAxis.getExtent()[0]; for (var idx = 0, len = data.count(); idx < len; idx++) { var value = data.get(valueDim, idx); var baseValue = data.get(baseDim, idx); if (isNaN(value)) { continue; } var sign = value >= 0 ? 'p' : 'n'; var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in // stackResultDimension directly. // Only ordinal axis can be stacked. if (stacked) { if (!lastStackCoords[stackId][baseValue]) { lastStackCoords[stackId][baseValue] = { p: valueAxisStart, // Positive stack n: valueAxisStart // Negative stack }; } // Should also consider #4243 baseCoord = lastStackCoords[stackId][baseValue][sign]; } var r0; var r; var startAngle; var endAngle; // radial sector if (valueAxis.dim === 'radius') { var radiusSpan = valueAxis.dataToRadius(value) - valueAxisStart; var angle = baseAxis.dataToAngle(baseValue); if (Math.abs(radiusSpan) < barMinHeight) { radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight; } r0 = baseCoord; r = baseCoord + radiusSpan; startAngle = angle - columnOffset; endAngle = startAngle - columnWidth; stacked && (lastStackCoords[stackId][baseValue][sign] = r); } // tangential sector else { // angleAxis must be clamped. var angleSpan = valueAxis.dataToAngle(value, true) - valueAxisStart; var radius = baseAxis.dataToRadius(baseValue); if (Math.abs(angleSpan) < barMinAngle) { angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle; } r0 = radius + columnOffset; r = r0 + columnWidth; startAngle = baseCoord; endAngle = baseCoord + angleSpan; // if the previous stack is at the end of the ring, // add a round to differentiate it from origin // var extent = angleAxis.getExtent(); // var stackCoord = angle; // if (stackCoord === extent[0] && value > 0) { // stackCoord = extent[1]; // } // else if (stackCoord === extent[1] && value < 0) { // stackCoord = extent[0]; // } stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle); } data.setItemLayout(idx, { cx: cx, cy: cy, r0: r0, r: r, // Consider that positive angle is anti-clockwise, // while positive radian of sector is clockwise startAngle: -startAngle * Math.PI / 180, endAngle: -endAngle * Math.PI / 180 }); } }, this); } /** * Calculate bar width and offset for radial bar charts */ function calRadialBar(barSeries, api) { // Columns info on each category axis. Key is polar name var columnsMap = {}; each$1(barSeries, function (seriesModel, idx) { var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis(); var axisKey = getAxisKey$1(polar, baseAxis); var axisExtent = baseAxis.getExtent(); var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count()); var columnsOnAxis = columnsMap[axisKey] || { bandWidth: bandWidth, remainedWidth: bandWidth, autoWidthCount: 0, categoryGap: '20%', gap: '30%', stacks: {} }; var stacks = columnsOnAxis.stacks; columnsMap[axisKey] = columnsOnAxis; var stackId = getSeriesStackId$1(seriesModel); if (!stacks[stackId]) { columnsOnAxis.autoWidthCount++; } stacks[stackId] = stacks[stackId] || { width: 0, maxWidth: 0 }; var barWidth = parsePercent$1( seriesModel.get('barWidth'), bandWidth ); var barMaxWidth = parsePercent$1( seriesModel.get('barMaxWidth'), bandWidth ); var barGap = seriesModel.get('barGap'); var barCategoryGap = seriesModel.get('barCategoryGap'); if (barWidth && !stacks[stackId].width) { barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth); stacks[stackId].width = barWidth; columnsOnAxis.remainedWidth -= barWidth; } barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth); (barGap != null) && (columnsOnAxis.gap = barGap); (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap); }); var result = {}; each$1(columnsMap, function (columnsOnAxis, coordSysName) { result[coordSysName] = {}; var stacks = columnsOnAxis.stacks; var bandWidth = columnsOnAxis.bandWidth; var categoryGap = parsePercent$1(columnsOnAxis.categoryGap, bandWidth); var barGapPercent = parsePercent$1(columnsOnAxis.gap, 1); var remainedWidth = columnsOnAxis.remainedWidth; var autoWidthCount = columnsOnAxis.autoWidthCount; var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth each$1(stacks, function (column, stack) { var maxWidth = column.maxWidth; if (maxWidth && maxWidth < autoWidth) { maxWidth = Math.min(maxWidth, remainedWidth); if (column.width) { maxWidth = Math.min(maxWidth, column.width); } remainedWidth -= maxWidth; column.width = maxWidth; autoWidthCount--; } }); // Recalculate width again autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); var widthSum = 0; var lastColumn; each$1(stacks, function (column, idx) { if (!column.width) { column.width = autoWidth; } lastColumn = column; widthSum += column.width * (1 + barGapPercent); }); if (lastColumn) { widthSum -= lastColumn.width * barGapPercent; } var offset = -widthSum / 2; each$1(stacks, function (column, stackId) { result[coordSysName][stackId] = result[coordSysName][stackId] || { offset: offset, width: column.width }; offset += column.width * (1 + barGapPercent); }); }); return result; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function RadiusAxis(scale, radiusExtent) { Axis.call(this, 'radius', scale, radiusExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'category'; } RadiusAxis.prototype = { constructor: RadiusAxis, /** * @override */ pointToData: function (point, clamp) { return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1]; }, dataToRadius: Axis.prototype.dataToCoord, radiusToData: Axis.prototype.coordToData }; inherits(RadiusAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner$12 = makeInner(); function AngleAxis(scale, angleExtent) { angleExtent = angleExtent || [0, 360]; Axis.call(this, 'angle', scale, angleExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'category'; } AngleAxis.prototype = { constructor: AngleAxis, /** * @override */ pointToData: function (point, clamp) { return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1]; }, dataToAngle: Axis.prototype.dataToCoord, angleToData: Axis.prototype.coordToData, /** * Only be called in category axis. * Angle axis uses text height to decide interval * * @override * @return {number} Auto interval for cateogry axis tick and label */ calculateCategoryInterval: function () { var axis = this; var labelModel = axis.getLabelModel(); var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization: // avoid generating a long array by `getTicks` // in large category data case. var tickCount = ordinalScale.count(); if (ordinalExtent[1] - ordinalExtent[0] < 1) { return 0; } var tickValue = ordinalExtent[0]; var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue); var unitH = Math.abs(unitSpan); // Not precise, just use height as text width // and each distance from axis line yet. var rect = getBoundingRect( tickValue, labelModel.getFont(), 'center', 'top' ); var maxH = Math.max(rect.height, 7); var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity. isNaN(dh) && (dh = Infinity); var interval = Math.max(0, Math.floor(dh)); var cache = inner$12(axis.model); var lastAutoInterval = cache.lastAutoInterval; var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window, // otherwise the calculated interval might jitter when the zoom // window size is close to the interval-changing size. if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical // point is not the same when zooming in or zooming out. && lastAutoInterval > interval ) { interval = lastAutoInterval; } // Only update cache if cache not used, otherwise the // changing of interval is too insensitive. else { cache.lastTickCount = tickCount; cache.lastAutoInterval = interval; } return interval; } }; inherits(AngleAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @module echarts/coord/polar/Polar */ /** * @alias {module:echarts/coord/polar/Polar} * @constructor * @param {string} name */ var Polar = function (name) { /** * @type {string} */ this.name = name || ''; /** * x of polar center * @type {number} */ this.cx = 0; /** * y of polar center * @type {number} */ this.cy = 0; /** * @type {module:echarts/coord/polar/RadiusAxis} * @private */ this._radiusAxis = new RadiusAxis(); /** * @type {module:echarts/coord/polar/AngleAxis} * @private */ this._angleAxis = new AngleAxis(); this._radiusAxis.polar = this._angleAxis.polar = this; }; Polar.prototype = { type: 'polar', axisPointerEnabled: true, constructor: Polar, /** * @param {Array.} * @readOnly */ dimensions: ['radius', 'angle'], /** * @type {module:echarts/coord/PolarModel} */ model: null, /** * If contain coord * @param {Array.} point * @return {boolean} */ containPoint: function (point) { var coord = this.pointToCoord(point); return this._radiusAxis.contain(coord[0]) && this._angleAxis.contain(coord[1]); }, /** * If contain data * @param {Array.} data * @return {boolean} */ containData: function (data) { return this._radiusAxis.containData(data[0]) && this._angleAxis.containData(data[1]); }, /** * @param {string} dim * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis} */ getAxis: function (dim) { return this['_' + dim + 'Axis']; }, /** * @return {Array.} */ getAxes: function () { return [this._radiusAxis, this._angleAxis]; }, /** * Get axes by type of scale * @param {string} scaleType * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis} */ getAxesByScale: function (scaleType) { var axes = []; var angleAxis = this._angleAxis; var radiusAxis = this._radiusAxis; angleAxis.scale.type === scaleType && axes.push(angleAxis); radiusAxis.scale.type === scaleType && axes.push(radiusAxis); return axes; }, /** * @return {module:echarts/coord/polar/AngleAxis} */ getAngleAxis: function () { return this._angleAxis; }, /** * @return {module:echarts/coord/polar/RadiusAxis} */ getRadiusAxis: function () { return this._radiusAxis; }, /** * @param {module:echarts/coord/polar/Axis} * @return {module:echarts/coord/polar/Axis} */ getOtherAxis: function (axis) { var angleAxis = this._angleAxis; return axis === angleAxis ? this._radiusAxis : angleAxis; }, /** * Base axis will be used on stacking. * * @return {module:echarts/coord/polar/Axis} */ getBaseAxis: function () { return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAngleAxis(); }, /** * @param {string} [dim] 'radius' or 'angle' or 'auto' or null/undefined * @return {Object} {baseAxes: [], otherAxes: []} */ getTooltipAxes: function (dim) { var baseAxis = (dim != null && dim !== 'auto') ? this.getAxis(dim) : this.getBaseAxis(); return { baseAxes: [baseAxis], otherAxes: [this.getOtherAxis(baseAxis)] }; }, /** * Convert a single data item to (x, y) point. * Parameter data is an array which the first element is radius and the second is angle * @param {Array.} data * @param {boolean} [clamp=false] * @return {Array.} */ dataToPoint: function (data, clamp) { return this.coordToPoint([ this._radiusAxis.dataToRadius(data[0], clamp), this._angleAxis.dataToAngle(data[1], clamp) ]); }, /** * Convert a (x, y) point to data * @param {Array.} point * @param {boolean} [clamp=false] * @return {Array.} */ pointToData: function (point, clamp) { var coord = this.pointToCoord(point); return [ this._radiusAxis.radiusToData(coord[0], clamp), this._angleAxis.angleToData(coord[1], clamp) ]; }, /** * Convert a (x, y) point to (radius, angle) coord * @param {Array.} point * @return {Array.} */ pointToCoord: function (point) { var dx = point[0] - this.cx; var dy = point[1] - this.cy; var angleAxis = this.getAngleAxis(); var extent = angleAxis.getExtent(); var minAngle = Math.min(extent[0], extent[1]); var maxAngle = Math.max(extent[0], extent[1]); // Fix fixed extent in polarCreator // FIXME angleAxis.inverse ? (minAngle = maxAngle - 360) : (maxAngle = minAngle + 360); var radius = Math.sqrt(dx * dx + dy * dy); dx /= radius; dy /= radius; var radian = Math.atan2(-dy, dx) / Math.PI * 180; // move to angleExtent var dir = radian < minAngle ? 1 : -1; while (radian < minAngle || radian > maxAngle) { radian += dir * 360; } return [radius, radian]; }, /** * Convert a (radius, angle) coord to (x, y) point * @param {Array.} coord * @return {Array.} */ coordToPoint: function (coord) { var radius = coord[0]; var radian = coord[1] / 180 * Math.PI; var x = Math.cos(radian) * radius + this.cx; // Inverse the y var y = -Math.sin(radian) * radius + this.cy; return [x, y]; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PolarAxisModel = ComponentModel.extend({ type: 'polarAxis', /** * @type {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis} */ axis: null, /** * @override */ getCoordSysModel: function () { return this.ecModel.queryComponents({ mainType: 'polar', index: this.option.polarIndex, id: this.option.polarId })[0]; } }); merge(PolarAxisModel.prototype, axisModelCommonMixin); var polarAxisDefaultExtendedOption = { angle: { // polarIndex: 0, // polarId: '', startAngle: 90, clockwise: true, splitNumber: 12, axisLabel: { rotate: false } }, radius: { // polarIndex: 0, // polarId: '', splitNumber: 5 } }; function getAxisType$3(axisDim, option) { // Default axis with data is category axis return option.type || (option.data ? 'category' : 'value'); } axisModelCreator('angle', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.angle); axisModelCreator('radius', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.radius); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentModel({ type: 'polar', dependencies: ['polarAxis', 'angleAxis'], /** * @type {module:echarts/coord/polar/Polar} */ coordinateSystem: null, /** * @param {string} axisType * @return {module:echarts/coord/polar/AxisModel} */ findAxisModel: function (axisType) { var foundAxisModel; var ecModel = this.ecModel; ecModel.eachComponent(axisType, function (axisModel) { if (axisModel.getCoordSysModel() === this) { foundAxisModel = axisModel; } }, this); return foundAxisModel; }, defaultOption: { zlevel: 0, z: 0, center: ['50%', '50%'], radius: '80%' } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Axis scale /** * Resize method bound to the polar * @param {module:echarts/coord/polar/PolarModel} polarModel * @param {module:echarts/ExtensionAPI} api */ function resizePolar(polar, polarModel, api) { var center = polarModel.get('center'); var width = api.getWidth(); var height = api.getHeight(); polar.cx = parsePercent$1(center[0], width); polar.cy = parsePercent$1(center[1], height); var radiusAxis = polar.getRadiusAxis(); var size = Math.min(width, height) / 2; var radius = parsePercent$1(polarModel.get('radius'), size); radiusAxis.inverse ? radiusAxis.setExtent(radius, 0) : radiusAxis.setExtent(0, radius); } /** * Update polar */ function updatePolarScale(ecModel, api) { var polar = this; var angleAxis = polar.getAngleAxis(); var radiusAxis = polar.getRadiusAxis(); // Reset scale angleAxis.scale.setExtent(Infinity, -Infinity); radiusAxis.scale.setExtent(Infinity, -Infinity); ecModel.eachSeries(function (seriesModel) { if (seriesModel.coordinateSystem === polar) { var data = seriesModel.getData(); each$1(data.mapDimension('radius', true), function (dim) { radiusAxis.scale.unionExtentFromData( data, getStackedDimension(data, dim) ); }); each$1(data.mapDimension('angle', true), function (dim) { angleAxis.scale.unionExtentFromData( data, getStackedDimension(data, dim) ); }); } }); niceScaleExtent(angleAxis.scale, angleAxis.model); niceScaleExtent(radiusAxis.scale, radiusAxis.model); // Fix extent of category angle axis if (angleAxis.type === 'category' && !angleAxis.onBand) { var extent = angleAxis.getExtent(); var diff = 360 / angleAxis.scale.count(); angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff); angleAxis.setExtent(extent[0], extent[1]); } } /** * Set common axis properties * @param {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis} * @param {module:echarts/coord/polar/AxisModel} * @inner */ function setAxis(axis, axisModel) { axis.type = axisModel.get('type'); axis.scale = createScaleByModel(axisModel); axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category'; axis.inverse = axisModel.get('inverse'); if (axisModel.mainType === 'angleAxis') { axis.inverse ^= axisModel.get('clockwise'); var startAngle = axisModel.get('startAngle'); axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360)); } // Inject axis instance axisModel.axis = axis; axis.model = axisModel; } var polarCreator = { dimensions: Polar.prototype.dimensions, create: function (ecModel, api) { var polarList = []; ecModel.eachComponent('polar', function (polarModel, idx) { var polar = new Polar(idx); // Inject resize and update method polar.update = updatePolarScale; var radiusAxis = polar.getRadiusAxis(); var angleAxis = polar.getAngleAxis(); var radiusAxisModel = polarModel.findAxisModel('radiusAxis'); var angleAxisModel = polarModel.findAxisModel('angleAxis'); setAxis(radiusAxis, radiusAxisModel); setAxis(angleAxis, angleAxisModel); resizePolar(polar, polarModel, api); polarList.push(polar); polarModel.coordinateSystem = polar; polar.model = polarModel; }); // Inject coordinateSystem to series ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'polar') { var polarModel = ecModel.queryComponents({ mainType: 'polar', index: seriesModel.get('polarIndex'), id: seriesModel.get('polarId') })[0]; if (__DEV__) { if (!polarModel) { throw new Error( 'Polar "' + retrieve( seriesModel.get('polarIndex'), seriesModel.get('polarId'), 0 ) + '" not found' ); } } seriesModel.coordinateSystem = polarModel.coordinateSystem; } }); return polarList; } }; CoordinateSystemManager.register('polar', polarCreator); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var elementList$1 = ['axisLine', 'axisLabel', 'axisTick', 'splitLine', 'splitArea']; function getAxisLineShape(polar, rExtent, angle) { rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse()); var start = polar.coordToPoint([rExtent[0], angle]); var end = polar.coordToPoint([rExtent[1], angle]); return { x1: start[0], y1: start[1], x2: end[0], y2: end[1] }; } function getRadiusIdx(polar) { var radiusAxis = polar.getRadiusAxis(); return radiusAxis.inverse ? 0 : 1; } // Remove the last tick which will overlap the first tick function fixAngleOverlap(list) { var firstItem = list[0]; var lastItem = list[list.length - 1]; if (firstItem && lastItem && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4 ) { list.pop(); } } AxisView.extend({ type: 'angleAxis', axisPointerClass: 'PolarAxisPointer', render: function (angleAxisModel, ecModel) { this.group.removeAll(); if (!angleAxisModel.get('show')) { return; } var angleAxis = angleAxisModel.axis; var polar = angleAxis.polar; var radiusExtent = polar.getRadiusAxis().getExtent(); var ticksAngles = angleAxis.getTicksCoords(); var labels = map(angleAxis.getViewLabels(), function (labelItem) { var labelItem = clone(labelItem); labelItem.coord = angleAxis.dataToCoord(labelItem.tickValue); return labelItem; }); fixAngleOverlap(labels); fixAngleOverlap(ticksAngles); each$1(elementList$1, function (name) { if (angleAxisModel.get(name + '.show') && (!angleAxis.scale.isBlank() || name === 'axisLine') ) { this['_' + name](angleAxisModel, polar, ticksAngles, radiusExtent, labels); } }, this); }, /** * @private */ _axisLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) { var lineStyleModel = angleAxisModel.getModel('axisLine.lineStyle'); var circle = new Circle({ shape: { cx: polar.cx, cy: polar.cy, r: radiusExtent[getRadiusIdx(polar)] }, style: lineStyleModel.getLineStyle(), z2: 1, silent: true }); circle.style.fill = null; this.group.add(circle); }, /** * @private */ _axisTick: function (angleAxisModel, polar, ticksAngles, radiusExtent) { var tickModel = angleAxisModel.getModel('axisTick'); var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length'); var radius = radiusExtent[getRadiusIdx(polar)]; var lines = map(ticksAngles, function (tickAngleItem) { return new Line({ shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord) }); }); this.group.add(mergePath( lines, { style: defaults( tickModel.getModel('lineStyle').getLineStyle(), { stroke: angleAxisModel.get('axisLine.lineStyle.color') } ) } )); }, /** * @private */ _axisLabel: function (angleAxisModel, polar, ticksAngles, radiusExtent, labels) { var rawCategoryData = angleAxisModel.getCategories(true); var commonLabelModel = angleAxisModel.getModel('axisLabel'); var labelMargin = commonLabelModel.get('margin'); var triggerEvent = angleAxisModel.get('triggerEvent'); // Use length of ticksAngles because it may remove the last tick to avoid overlapping each$1(labels, function (labelItem, idx) { var labelModel = commonLabelModel; var tickValue = labelItem.tickValue; var r = radiusExtent[getRadiusIdx(polar)]; var p = polar.coordToPoint([r + labelMargin, labelItem.coord]); var cx = polar.cx; var cy = polar.cy; var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3 ? 'center' : (p[0] > cx ? 'left' : 'right'); var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3 ? 'middle' : (p[1] > cy ? 'top' : 'bottom'); if (rawCategoryData && rawCategoryData[tickValue] && rawCategoryData[tickValue].textStyle) { labelModel = new Model( rawCategoryData[tickValue].textStyle, commonLabelModel, commonLabelModel.ecModel ); } var textEl = new Text({ silent: AxisBuilder.isLabelSilent(angleAxisModel) }); this.group.add(textEl); setTextStyle(textEl.style, labelModel, { x: p[0], y: p[1], textFill: labelModel.getTextColor() || angleAxisModel.get('axisLine.lineStyle.color'), text: labelItem.formattedLabel, textAlign: labelTextAlign, textVerticalAlign: labelTextVerticalAlign }); // Pack data for mouse event if (triggerEvent) { textEl.eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel); textEl.eventData.targetType = 'axisLabel'; textEl.eventData.value = labelItem.rawLabel; } }, this); }, /** * @private */ _splitLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) { var splitLineModel = angleAxisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); var lineCount = 0; lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var splitLines = []; for (var i = 0; i < ticksAngles.length; i++) { var colorIndex = (lineCount++) % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(new Line({ shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord) })); } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitLines.length; i++) { this.group.add(mergePath(splitLines[i], { style: defaults({ stroke: lineColors[i % lineColors.length] }, lineStyleModel.getLineStyle()), silent: true, z: angleAxisModel.get('z') })); } }, /** * @private */ _splitArea: function (angleAxisModel, polar, ticksAngles, radiusExtent) { if (!ticksAngles.length) { return; } var splitAreaModel = angleAxisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var lineCount = 0; areaColors = areaColors instanceof Array ? areaColors : [areaColors]; var splitAreas = []; var RADIAN = Math.PI / 180; var prevAngle = -ticksAngles[0].coord * RADIAN; var r0 = Math.min(radiusExtent[0], radiusExtent[1]); var r1 = Math.max(radiusExtent[0], radiusExtent[1]); var clockwise = angleAxisModel.get('clockwise'); for (var i = 1; i < ticksAngles.length; i++) { var colorIndex = (lineCount++) % areaColors.length; splitAreas[colorIndex] = splitAreas[colorIndex] || []; splitAreas[colorIndex].push(new Sector({ shape: { cx: polar.cx, cy: polar.cy, r0: r0, r: r1, startAngle: prevAngle, endAngle: -ticksAngles[i].coord * RADIAN, clockwise: clockwise }, silent: true })); prevAngle = -ticksAngles[i].coord * RADIAN; } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitAreas.length; i++) { this.group.add(mergePath(splitAreas[i], { style: defaults({ fill: areaColors[i % areaColors.length] }, areaStyleModel.getAreaStyle()), silent: true })); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs$3 = [ 'axisLine', 'axisTickLabel', 'axisName' ]; var selfBuilderAttrs$1 = [ 'splitLine', 'splitArea' ]; AxisView.extend({ type: 'radiusAxis', axisPointerClass: 'PolarAxisPointer', render: function (radiusAxisModel, ecModel) { this.group.removeAll(); if (!radiusAxisModel.get('show')) { return; } var radiusAxis = radiusAxisModel.axis; var polar = radiusAxis.polar; var angleAxis = polar.getAngleAxis(); var ticksCoords = radiusAxis.getTicksCoords(); var axisAngle = angleAxis.getExtent()[0]; var radiusExtent = radiusAxis.getExtent(); var layout = layoutAxis(polar, radiusAxisModel, axisAngle); var axisBuilder = new AxisBuilder(radiusAxisModel, layout); each$1(axisBuilderAttrs$3, axisBuilder.add, axisBuilder); this.group.add(axisBuilder.getGroup()); each$1(selfBuilderAttrs$1, function (name) { if (radiusAxisModel.get(name + '.show') && !radiusAxis.scale.isBlank()) { this['_' + name](radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords); } }, this); }, /** * @private */ _splitLine: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) { var splitLineModel = radiusAxisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); var lineCount = 0; lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var splitLines = []; for (var i = 0; i < ticksCoords.length; i++) { var colorIndex = (lineCount++) % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(new Circle({ shape: { cx: polar.cx, cy: polar.cy, r: ticksCoords[i].coord }, silent: true })); } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitLines.length; i++) { this.group.add(mergePath(splitLines[i], { style: defaults({ stroke: lineColors[i % lineColors.length], fill: null }, lineStyleModel.getLineStyle()), silent: true })); } }, /** * @private */ _splitArea: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) { if (!ticksCoords.length) { return; } var splitAreaModel = radiusAxisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var lineCount = 0; areaColors = areaColors instanceof Array ? areaColors : [areaColors]; var splitAreas = []; var prevRadius = ticksCoords[0].coord; for (var i = 1; i < ticksCoords.length; i++) { var colorIndex = (lineCount++) % areaColors.length; splitAreas[colorIndex] = splitAreas[colorIndex] || []; splitAreas[colorIndex].push(new Sector({ shape: { cx: polar.cx, cy: polar.cy, r0: prevRadius, r: ticksCoords[i].coord, startAngle: 0, endAngle: Math.PI * 2 }, silent: true })); prevRadius = ticksCoords[i].coord; } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitAreas.length; i++) { this.group.add(mergePath(splitAreas[i], { style: defaults({ fill: areaColors[i % areaColors.length] }, areaStyleModel.getAreaStyle()), silent: true })); } } }); /** * @inner */ function layoutAxis(polar, radiusAxisModel, axisAngle) { return { position: [polar.cx, polar.cy], rotation: axisAngle / 180 * Math.PI, labelDirection: -1, tickDirection: -1, nameDirection: 1, labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'), // Over splitLine and splitArea z2: 1 }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PolarAxisPointer = BaseAxisPointer.extend({ /** * @override */ makeElOption: function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; if (axis.dim === 'angle') { this.animationThreshold = Math.PI / 18; } var polar = axis.polar; var otherAxis = polar.getOtherAxis(axis); var otherExtent = otherAxis.getExtent(); var coordValue; coordValue = axis['dataTo' + capitalFirst(axis.dim)](value); var axisPointerType = axisPointerModel.get('type'); if (axisPointerType && axisPointerType !== 'none') { var elStyle = buildElStyle(axisPointerModel); var pointerOption = pointerShapeBuilder$2[axisPointerType]( axis, polar, coordValue, otherExtent, elStyle ); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var labelMargin = axisPointerModel.get('label.margin'); var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin); buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos); } // Do not support handle, utill any user requires it. }); function getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) { var axis = axisModel.axis; var coord = axis.dataToCoord(value); var axisAngle = polar.getAngleAxis().getExtent()[0]; axisAngle = axisAngle / 180 * Math.PI; var radiusExtent = polar.getRadiusAxis().getExtent(); var position; var align; var verticalAlign; if (axis.dim === 'radius') { var transform = create$1(); rotate(transform, transform, axisAngle); translate(transform, transform, [polar.cx, polar.cy]); position = applyTransform$1([coord, -labelMargin], transform); var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0; var labelLayout = AxisBuilder.innerTextLayout( axisAngle, labelRotation * Math.PI / 180, -1 ); align = labelLayout.textAlign; verticalAlign = labelLayout.textVerticalAlign; } else { // angle axis var r = radiusExtent[1]; position = polar.coordToPoint([r + labelMargin, coord]); var cx = polar.cx; var cy = polar.cy; align = Math.abs(position[0] - cx) / r < 0.3 ? 'center' : (position[0] > cx ? 'left' : 'right'); verticalAlign = Math.abs(position[1] - cy) / r < 0.3 ? 'middle' : (position[1] > cy ? 'top' : 'bottom'); } return { position: position, align: align, verticalAlign: verticalAlign }; } var pointerShapeBuilder$2 = { line: function (axis, polar, coordValue, otherExtent, elStyle) { return axis.dim === 'angle' ? { type: 'Line', shape: makeLineShape( polar.coordToPoint([otherExtent[0], coordValue]), polar.coordToPoint([otherExtent[1], coordValue]) ) } : { type: 'Circle', shape: { cx: polar.cx, cy: polar.cy, r: coordValue } }; }, shadow: function (axis, polar, coordValue, otherExtent, elStyle) { var bandWidth = Math.max(1, axis.getBandWidth()); var radian = Math.PI / 180; return axis.dim === 'angle' ? { type: 'Sector', shape: makeSectorShape( polar.cx, polar.cy, otherExtent[0], otherExtent[1], // In ECharts y is negative if angle is positive (-coordValue - bandWidth / 2) * radian, (-coordValue + bandWidth / 2) * radian ) } : { type: 'Sector', shape: makeSectorShape( polar.cx, polar.cy, coordValue - bandWidth / 2, coordValue + bandWidth / 2, 0, Math.PI * 2 ) }; } }; AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // For reducing size of echarts.min, barLayoutPolar is required by polar. registerLayout(curry(barLayoutPolar, 'bar')); // Polar view extendComponentView({ type: 'polar' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GeoModel = ComponentModel.extend({ type: 'geo', /** * @type {module:echarts/coord/geo/Geo} */ coordinateSystem: null, layoutMode: 'box', init: function (option) { ComponentModel.prototype.init.apply(this, arguments); // Default label emphasis `show` defaultEmphasis(option, 'label', ['show']); }, optionUpdated: function () { var option = this.option; var self = this; option.regions = geoCreator.getFilledRegions(option.regions, option.map, option.nameMap); this._optionModelMap = reduce(option.regions || [], function (optionModelMap, regionOpt) { if (regionOpt.name) { optionModelMap.set(regionOpt.name, new Model(regionOpt, self)); } return optionModelMap; }, createHashMap()); this.updateSelectedMap(option.regions); }, defaultOption: { zlevel: 0, z: 0, show: true, left: 'center', top: 'center', // width:, // height:, // right // bottom // Aspect is width / height. Inited to be geoJson bbox aspect // This parameter is used for scale this aspect // If svg used, aspectScale is 1 by default. // aspectScale: 0.75, aspectScale: null, ///// Layout with center and size // If you wan't to put map in a fixed size box with right aspect ratio // This two properties may more conveninet // layoutCenter: [50%, 50%] // layoutSize: 100 silent: false, // Map type map: '', // Define left-top, right-bottom coords to control view // For example, [ [180, 90], [-180, -90] ] boundingCoords: null, // Default on center of map center: null, zoom: 1, scaleLimit: null, // selectedMode: false label: { show: false, color: '#000' }, itemStyle: { // color: 各异, borderWidth: 0.5, borderColor: '#444', color: '#eee' }, emphasis: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { color: 'rgba(255,215,0,0.8)' } }, regions: [] }, /** * Get model of region * @param {string} name * @return {module:echarts/model/Model} */ getRegionModel: function (name) { return this._optionModelMap.get(name) || new Model(null, this, this.ecModel); }, /** * Format label * @param {string} name Region name * @param {string} [status='normal'] 'normal' or 'emphasis' * @return {string} */ getFormattedLabel: function (name, status) { var regionModel = this.getRegionModel(name); var formatter = regionModel.get('label.' + status + '.formatter'); var params = { name: name }; if (typeof formatter === 'function') { params.status = status; return formatter(params); } else if (typeof formatter === 'string') { return formatter.replace('{a}', name != null ? name : ''); } }, setZoom: function (zoom) { this.option.zoom = zoom; }, setCenter: function (center) { this.option.center = center; } }); mixin(GeoModel, selectableMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentView({ type: 'geo', init: function (ecModel, api) { var mapDraw = new MapDraw(api, true); this._mapDraw = mapDraw; this.group.add(mapDraw.group); }, render: function (geoModel, ecModel, api, payload) { // Not render if it is an toggleSelect action from self if (payload && payload.type === 'geoToggleSelect' && payload.from === this.uid ) { return; } var mapDraw = this._mapDraw; if (geoModel.get('show')) { mapDraw.draw(geoModel, ecModel, api, this, payload); } else { this._mapDraw.group.removeAll(); } this.group.silent = geoModel.get('silent'); }, dispose: function () { this._mapDraw && this._mapDraw.remove(); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function makeAction(method, actionInfo) { actionInfo.update = 'updateView'; registerAction(actionInfo, function (payload, ecModel) { var selected = {}; ecModel.eachComponent( { mainType: 'geo', query: payload}, function (geoModel) { geoModel[method](payload.name); var geo = geoModel.coordinateSystem; each$1(geo.regions, function (region) { selected[region.name] = geoModel.isSelected(region.name) || false; }); } ); return { selected: selected, name: payload.name }; }); } makeAction('toggleSelected', { type: 'geoToggleSelect', event: 'geoselectchanged' }); makeAction('select', { type: 'geoSelect', event: 'geoselected' }); makeAction('unSelect', { type: 'geoUnSelect', event: 'geounselected' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // (24*60*60*1000) var PROXIMATE_ONE_DAY = 86400000; /** * Calendar * * @constructor * * @param {Object} calendarModel calendarModel * @param {Object} ecModel ecModel * @param {Object} api api */ function Calendar(calendarModel, ecModel, api) { this._model = calendarModel; } Calendar.prototype = { constructor: Calendar, type: 'calendar', dimensions: ['time', 'value'], // Required in createListFromData getDimensionsInfo: function () { return [{name: 'time', type: 'time'}, 'value']; }, getRangeInfo: function () { return this._rangeInfo; }, getModel: function () { return this._model; }, getRect: function () { return this._rect; }, getCellWidth: function () { return this._sw; }, getCellHeight: function () { return this._sh; }, getOrient: function () { return this._orient; }, /** * getFirstDayOfWeek * * @example * 0 : start at Sunday * 1 : start at Monday * * @return {number} */ getFirstDayOfWeek: function () { return this._firstDayOfWeek; }, /** * get date info * * @param {string|number} date date * @return {Object} * { * y: string, local full year, eg., '1940', * m: string, local month, from '01' ot '12', * d: string, local date, from '01' to '31' (if exists), * day: It is not date.getDay(). It is the location of the cell in a week, from 0 to 6, * time: timestamp, * formatedDate: string, yyyy-MM-dd, * date: original date object. * } */ getDateInfo: function (date) { date = parseDate(date); var y = date.getFullYear(); var m = date.getMonth() + 1; m = m < 10 ? '0' + m : m; var d = date.getDate(); d = d < 10 ? '0' + d : d; var day = date.getDay(); day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7); return { y: y, m: m, d: d, day: day, time: date.getTime(), formatedDate: y + '-' + m + '-' + d, date: date }; }, getNextNDay: function (date, n) { n = n || 0; if (n === 0) { return this.getDateInfo(date); } date = new Date(this.getDateInfo(date).time); date.setDate(date.getDate() + n); return this.getDateInfo(date); }, update: function (ecModel, api) { this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay'); this._orient = this._model.get('orient'); this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0; this._rangeInfo = this._getRangeInfo(this._initRangeOption()); var weeks = this._rangeInfo.weeks || 1; var whNames = ['width', 'height']; var cellSize = this._model.get('cellSize').slice(); var layoutParams = this._model.getBoxLayoutParams(); var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks]; each$1([0, 1], function (idx) { if (cellSizeSpecified(cellSize, idx)) { layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx]; } }); var whGlobal = { width: api.getWidth(), height: api.getHeight() }; var calendarRect = this._rect = getLayoutRect(layoutParams, whGlobal); each$1([0, 1], function (idx) { if (!cellSizeSpecified(cellSize, idx)) { cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx]; } }); function cellSizeSpecified(cellSize, idx) { return cellSize[idx] != null && cellSize[idx] !== 'auto'; } this._sw = cellSize[0]; this._sh = cellSize[1]; }, /** * Convert a time data(time, value) item to (x, y) point. * * @override * @param {Array|number} data data * @param {boolean} [clamp=true] out of range * @return {Array} point */ dataToPoint: function (data, clamp) { isArray(data) && (data = data[0]); clamp == null && (clamp = true); var dayInfo = this.getDateInfo(data); var range = this._rangeInfo; var date = dayInfo.formatedDate; // if not in range return [NaN, NaN] if (clamp && !( dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY )) { return [NaN, NaN]; } var week = dayInfo.day; var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek; if (this._orient === 'vertical') { return [ this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2 ]; } return [ this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2 ]; }, /** * Convert a (x, y) point to time data * * @override * @param {string} point point * @return {string} data */ pointToData: function (point) { var date = this.pointToDate(point); return date && date.time; }, /** * Convert a time date item to (x, y) four point. * * @param {Array} data date[0] is date * @param {boolean} [clamp=true] out of range * @return {Object} point */ dataToRect: function (data, clamp) { var point = this.dataToPoint(data, clamp); return { contentShape: { x: point[0] - (this._sw - this._lineWidth) / 2, y: point[1] - (this._sh - this._lineWidth) / 2, width: this._sw - this._lineWidth, height: this._sh - this._lineWidth }, center: point, tl: [ point[0] - this._sw / 2, point[1] - this._sh / 2 ], tr: [ point[0] + this._sw / 2, point[1] - this._sh / 2 ], br: [ point[0] + this._sw / 2, point[1] + this._sh / 2 ], bl: [ point[0] - this._sw / 2, point[1] + this._sh / 2 ] }; }, /** * Convert a (x, y) point to time date * * @param {Array} point point * @return {Object} date */ pointToDate: function (point) { var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1; var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1; var range = this._rangeInfo.range; if (this._orient === 'vertical') { return this._getDateByWeeksAndDay(nthY, nthX - 1, range); } return this._getDateByWeeksAndDay(nthX, nthY - 1, range); }, /** * @inheritDoc */ convertToPixel: curry(doConvert$2, 'dataToPoint'), /** * @inheritDoc */ convertFromPixel: curry(doConvert$2, 'pointToData'), /** * initRange * * @private * @return {Array} [start, end] */ _initRangeOption: function () { var range = this._model.get('range'); var rg = range; if (isArray(rg) && rg.length === 1) { rg = rg[0]; } if (/^\d{4}$/.test(rg)) { range = [rg + '-01-01', rg + '-12-31']; } if (/^\d{4}[\/|-]\d{1,2}$/.test(rg)) { var start = this.getDateInfo(rg); var firstDay = start.date; firstDay.setMonth(firstDay.getMonth() + 1); var end = this.getNextNDay(firstDay, -1); range = [start.formatedDate, end.formatedDate]; } if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rg)) { range = [rg, rg]; } var tmp = this._getRangeInfo(range); if (tmp.start.time > tmp.end.time) { range.reverse(); } return range; }, /** * range info * * @private * @param {Array} range range ['2017-01-01', '2017-07-08'] * If range[0] > range[1], they will not be reversed. * @return {Object} obj */ _getRangeInfo: function (range) { range = [ this.getDateInfo(range[0]), this.getDateInfo(range[1]) ]; var reversed; if (range[0].time > range[1].time) { reversed = true; range.reverse(); } var allDay = Math.floor(range[1].time / PROXIMATE_ONE_DAY) - Math.floor(range[0].time / PROXIMATE_ONE_DAY) + 1; // Consider case: // Firstly set system timezone as "Time Zone: America/Toronto", // ``` // var first = new Date(1478412000000 - 3600 * 1000 * 2.5); // var second = new Date(1478412000000); // var allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1; // ``` // will get wrong result because of DST. So we should fix it. var date = new Date(range[0].time); var startDateNum = date.getDate(); var endDateNum = range[1].date.getDate(); date.setDate(startDateNum + allDay - 1); // The bias can not over a month, so just compare date. if (date.getDate() !== endDateNum) { var sign = date.getTime() - range[1].time > 0 ? 1 : -1; while (date.getDate() !== endDateNum && (date.getTime() - range[1].time) * sign > 0) { allDay -= sign; date.setDate(startDateNum + allDay - 1); } } var weeks = Math.floor((allDay + range[0].day + 6) / 7); var nthWeek = reversed ? -weeks + 1 : weeks - 1; reversed && range.reverse(); return { range: [range[0].formatedDate, range[1].formatedDate], start: range[0], end: range[1], allDay: allDay, weeks: weeks, // From 0. nthWeek: nthWeek, fweek: range[0].day, lweek: range[1].day }; }, /** * get date by nthWeeks and week day in range * * @private * @param {number} nthWeek the week * @param {number} day the week day * @param {Array} range [d1, d2] * @return {Object} */ _getDateByWeeksAndDay: function (nthWeek, day, range) { var rangeInfo = this._getRangeInfo(range); if (nthWeek > rangeInfo.weeks || (nthWeek === 0 && day < rangeInfo.fweek) || (nthWeek === rangeInfo.weeks && day > rangeInfo.lweek) ) { return false; } var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day; var date = new Date(rangeInfo.start.time); date.setDate(rangeInfo.start.d + nthDay); return this.getDateInfo(date); } }; Calendar.dimensions = Calendar.prototype.dimensions; Calendar.getDimensionsInfo = Calendar.prototype.getDimensionsInfo; Calendar.create = function (ecModel, api) { var calendarList = []; ecModel.eachComponent('calendar', function (calendarModel) { var calendar = new Calendar(calendarModel, ecModel, api); calendarList.push(calendar); calendarModel.coordinateSystem = calendar; }); ecModel.eachSeries(function (calendarSeries) { if (calendarSeries.get('coordinateSystem') === 'calendar') { // Inject coordinate system calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0]; } }); return calendarList; }; function doConvert$2(methodName, ecModel, finder, value) { var calendarModel = finder.calendarModel; var seriesModel = finder.seriesModel; var coordSys = calendarModel ? calendarModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem : null; return coordSys === this ? coordSys[methodName](value) : null; } CoordinateSystemManager.register('calendar', Calendar); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CalendarModel = ComponentModel.extend({ type: 'calendar', /** * @type {module:echarts/coord/calendar/Calendar} */ coordinateSystem: null, defaultOption: { zlevel: 0, z: 2, left: 80, top: 60, cellSize: 20, // horizontal vertical orient: 'horizontal', // month separate line style splitLine: { show: true, lineStyle: { color: '#000', width: 1, type: 'solid' } }, // rect style temporarily unused emphasis itemStyle: { color: '#fff', borderWidth: 1, borderColor: '#ccc' }, // week text style dayLabel: { show: true, // a week first day firstDay: 0, // start end position: 'start', margin: '50%', // 50% of cellSize nameMap: 'en', color: '#000' }, // month text style monthLabel: { show: true, // start end position: 'start', margin: 5, // center or left align: 'center', // cn en [] nameMap: 'en', formatter: null, color: '#000' }, // year text style yearLabel: { show: true, // top bottom left right position: null, margin: 30, formatter: null, color: '#ccc', fontFamily: 'sans-serif', fontWeight: 'bolder', fontSize: 20 } }, /** * @override */ init: function (option, parentModel, ecModel, extraOpt) { var inputPositionParams = getLayoutParams(option); CalendarModel.superApply(this, 'init', arguments); mergeAndNormalizeLayoutParams(option, inputPositionParams); }, /** * @override */ mergeOption: function (option, extraOpt) { CalendarModel.superApply(this, 'mergeOption', arguments); mergeAndNormalizeLayoutParams(this.option, option); } }); function mergeAndNormalizeLayoutParams(target, raw) { // Normalize cellSize var cellSize = target.cellSize; if (!isArray(cellSize)) { cellSize = target.cellSize = [cellSize, cellSize]; } else if (cellSize.length === 1) { cellSize[1] = cellSize[0]; } var ignoreSize = map([0, 1], function (hvIdx) { // If user have set `width` or both `left` and `right`, cellSize // will be automatically set to 'auto', otherwise the default // setting of cellSize will make `width` setting not work. if (sizeCalculable(raw, hvIdx)) { cellSize[hvIdx] = 'auto'; } return cellSize[hvIdx] != null && cellSize[hvIdx] !== 'auto'; }); mergeLayoutParam(target, raw, { type: 'box', ignoreSize: ignoreSize }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MONTH_TEXT = { EN: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ], CN: [ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月' ] }; var WEEK_TEXT = { EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], CN: ['日', '一', '二', '三', '四', '五', '六'] }; extendComponentView({ type: 'calendar', /** * top/left line points * @private */ _tlpoints: null, /** * bottom/right line points * @private */ _blpoints: null, /** * first day of month * @private */ _firstDayOfMonth: null, /** * first day point of month * @private */ _firstDayPoints: null, render: function (calendarModel, ecModel, api) { var group = this.group; group.removeAll(); var coordSys = calendarModel.coordinateSystem; // range info var rangeData = coordSys.getRangeInfo(); var orient = coordSys.getOrient(); this._renderDayRect(calendarModel, rangeData, group); // _renderLines must be called prior to following function this._renderLines(calendarModel, rangeData, orient, group); this._renderYearText(calendarModel, rangeData, orient, group); this._renderMonthText(calendarModel, orient, group); this._renderWeekText(calendarModel, rangeData, orient, group); }, // render day rect _renderDayRect: function (calendarModel, rangeData, group) { var coordSys = calendarModel.coordinateSystem; var itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle(); var sw = coordSys.getCellWidth(); var sh = coordSys.getCellHeight(); for (var i = rangeData.start.time; i <= rangeData.end.time; i = coordSys.getNextNDay(i, 1).time ) { var point = coordSys.dataToRect([i], false).tl; // every rect var rect = new Rect({ shape: { x: point[0], y: point[1], width: sw, height: sh }, cursor: 'default', style: itemRectStyleModel }); group.add(rect); } }, // render separate line _renderLines: function (calendarModel, rangeData, orient, group) { var self = this; var coordSys = calendarModel.coordinateSystem; var lineStyleModel = calendarModel.getModel('splitLine.lineStyle').getLineStyle(); var show = calendarModel.get('splitLine.show'); var lineWidth = lineStyleModel.lineWidth; this._tlpoints = []; this._blpoints = []; this._firstDayOfMonth = []; this._firstDayPoints = []; var firstDay = rangeData.start; for (var i = 0; firstDay.time <= rangeData.end.time; i++) { addPoints(firstDay.formatedDate); if (i === 0) { firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m); } var date = firstDay.date; date.setMonth(date.getMonth() + 1); firstDay = coordSys.getDateInfo(date); } addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate); function addPoints(date) { self._firstDayOfMonth.push(coordSys.getDateInfo(date)); self._firstDayPoints.push(coordSys.dataToRect([date], false).tl); var points = self._getLinePointsOfOneWeek(calendarModel, date, orient); self._tlpoints.push(points[0]); self._blpoints.push(points[points.length - 1]); show && self._drawSplitline(points, lineStyleModel, group); } // render top/left line show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group); // render bottom/right line show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group); }, // get points at both ends _getEdgesPoints: function (points, lineWidth, orient) { var rs = [points[0].slice(), points[points.length - 1].slice()]; var idx = orient === 'horizontal' ? 0 : 1; // both ends of the line are extend half lineWidth rs[0][idx] = rs[0][idx] - lineWidth / 2; rs[1][idx] = rs[1][idx] + lineWidth / 2; return rs; }, // render split line _drawSplitline: function (points, lineStyleModel, group) { var poyline = new Polyline({ z2: 20, shape: { points: points }, style: lineStyleModel }); group.add(poyline); }, // render month line of one week points _getLinePointsOfOneWeek: function (calendarModel, date, orient) { var coordSys = calendarModel.coordinateSystem; date = coordSys.getDateInfo(date); var points = []; for (var i = 0; i < 7; i++) { var tmpD = coordSys.getNextNDay(date.time, i); var point = coordSys.dataToRect([tmpD.time], false); points[2 * tmpD.day] = point.tl; points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr']; } return points; }, _formatterLabel: function (formatter, params) { if (typeof formatter === 'string' && formatter) { return formatTplSimple(formatter, params); } if (typeof formatter === 'function') { return formatter(params); } return params.nameMap; }, _yearTextPositionControl: function (textEl, point, orient, position, margin) { point = point.slice(); var aligns = ['center', 'bottom']; if (position === 'bottom') { point[1] += margin; aligns = ['center', 'top']; } else if (position === 'left') { point[0] -= margin; } else if (position === 'right') { point[0] += margin; aligns = ['center', 'top']; } else { // top point[1] -= margin; } var rotate = 0; if (position === 'left' || position === 'right') { rotate = Math.PI / 2; } return { rotation: rotate, position: point, style: { textAlign: aligns[0], textVerticalAlign: aligns[1] } }; }, // render year _renderYearText: function (calendarModel, rangeData, orient, group) { var yearLabel = calendarModel.getModel('yearLabel'); if (!yearLabel.get('show')) { return; } var margin = yearLabel.get('margin'); var pos = yearLabel.get('position'); if (!pos) { pos = orient !== 'horizontal' ? 'top' : 'left'; } var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]]; var xc = (points[0][0] + points[1][0]) / 2; var yc = (points[0][1] + points[1][1]) / 2; var idx = orient === 'horizontal' ? 0 : 1; var posPoints = { top: [xc, points[idx][1]], bottom: [xc, points[1 - idx][1]], left: [points[1 - idx][0], yc], right: [points[idx][0], yc] }; var name = rangeData.start.y; if (+rangeData.end.y > +rangeData.start.y) { name = name + '-' + rangeData.end.y; } var formatter = yearLabel.get('formatter'); var params = { start: rangeData.start.y, end: rangeData.end.y, nameMap: name }; var content = this._formatterLabel(formatter, params); var yearText = new Text({z2: 30}); setTextStyle(yearText.style, yearLabel, {text: content}), yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin)); group.add(yearText); }, _monthTextPositionControl: function (point, isCenter, orient, position, margin) { var align = 'left'; var vAlign = 'top'; var x = point[0]; var y = point[1]; if (orient === 'horizontal') { y = y + margin; if (isCenter) { align = 'center'; } if (position === 'start') { vAlign = 'bottom'; } } else { x = x + margin; if (isCenter) { vAlign = 'middle'; } if (position === 'start') { align = 'right'; } } return { x: x, y: y, textAlign: align, textVerticalAlign: vAlign }; }, // render month and year text _renderMonthText: function (calendarModel, orient, group) { var monthLabel = calendarModel.getModel('monthLabel'); if (!monthLabel.get('show')) { return; } var nameMap = monthLabel.get('nameMap'); var margin = monthLabel.get('margin'); var pos = monthLabel.get('position'); var align = monthLabel.get('align'); var termPoints = [this._tlpoints, this._blpoints]; if (isString(nameMap)) { nameMap = MONTH_TEXT[nameMap.toUpperCase()] || []; } var idx = pos === 'start' ? 0 : 1; var axis = orient === 'horizontal' ? 0 : 1; margin = pos === 'start' ? -margin : margin; var isCenter = (align === 'center'); for (var i = 0; i < termPoints[idx].length - 1; i++) { var tmp = termPoints[idx][i].slice(); var firstDay = this._firstDayOfMonth[i]; if (isCenter) { var firstDayPoints = this._firstDayPoints[i]; tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2; } var formatter = monthLabel.get('formatter'); var name = nameMap[+firstDay.m - 1]; var params = { yyyy: firstDay.y, yy: (firstDay.y + '').slice(2), MM: firstDay.m, M: +firstDay.m, nameMap: name }; var content = this._formatterLabel(formatter, params); var monthText = new Text({z2: 30}); extend( setTextStyle(monthText.style, monthLabel, {text: content}), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin) ); group.add(monthText); } }, _weekTextPositionControl: function (point, orient, position, margin, cellSize) { var align = 'center'; var vAlign = 'middle'; var x = point[0]; var y = point[1]; var isStart = position === 'start'; if (orient === 'horizontal') { x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2; align = isStart ? 'right' : 'left'; } else { y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2; vAlign = isStart ? 'bottom' : 'top'; } return { x: x, y: y, textAlign: align, textVerticalAlign: vAlign }; }, // render weeks _renderWeekText: function (calendarModel, rangeData, orient, group) { var dayLabel = calendarModel.getModel('dayLabel'); if (!dayLabel.get('show')) { return; } var coordSys = calendarModel.coordinateSystem; var pos = dayLabel.get('position'); var nameMap = dayLabel.get('nameMap'); var margin = dayLabel.get('margin'); var firstDayOfWeek = coordSys.getFirstDayOfWeek(); if (isString(nameMap)) { nameMap = WEEK_TEXT[nameMap.toUpperCase()] || []; } var start = coordSys.getNextNDay( rangeData.end.time, (7 - rangeData.lweek) ).time; var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()]; margin = parsePercent$1(margin, cellSize[orient === 'horizontal' ? 0 : 1]); if (pos === 'start') { start = coordSys.getNextNDay( rangeData.start.time, -(7 + rangeData.fweek) ).time; margin = -margin; } for (var i = 0; i < 7; i++) { var tmpD = coordSys.getNextNDay(start, i); var point = coordSys.dataToRect([tmpD.time], false).center; var day = i; day = Math.abs((i + firstDayOfWeek) % 7); var weekText = new Text({z2: 30}); extend( setTextStyle(weekText.style, dayLabel, {text: nameMap[day]}), this._weekTextPositionControl(point, orient, pos, margin, cellSize) ); group.add(weekText); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // ------------- // Preprocessor // ------------- registerPreprocessor(function (option) { var graphicOption = option.graphic; // Convert // {graphic: [{left: 10, type: 'circle'}, ...]} // or // {graphic: {left: 10, type: 'circle'}} // to // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]} if (isArray(graphicOption)) { if (!graphicOption[0] || !graphicOption[0].elements) { option.graphic = [{elements: graphicOption}]; } else { // Only one graphic instance can be instantiated. (We dont // want that too many views are created in echarts._viewMap) option.graphic = [option.graphic[0]]; } } else if (graphicOption && !graphicOption.elements) { option.graphic = [{elements: [graphicOption]}]; } }); // ------ // Model // ------ var GraphicModel = extendComponentModel({ type: 'graphic', defaultOption: { // Extra properties for each elements: // // left/right/top/bottom: (like 12, '22%', 'center', default undefined) // If left/rigth is set, shape.x/shape.cx/position will not be used. // If top/bottom is set, shape.y/shape.cy/position will not be used. // This mechanism is useful when you want to position a group/element // against the right side or the center of this container. // // width/height: (can only be pixel value, default 0) // Only be used to specify contianer(group) size, if needed. And // can not be percentage value (like '33%'). See the reason in the // layout algorithm below. // // bounding: (enum: 'all' (default) | 'raw') // Specify how to calculate boundingRect when locating. // 'all': Get uioned and transformed boundingRect // from both itself and its descendants. // This mode simplies confining a group of elements in the bounding // of their ancester container (e.g., using 'right: 0'). // 'raw': Only use the boundingRect of itself and before transformed. // This mode is similar to css behavior, which is useful when you // want an element to be able to overflow its container. (Consider // a rotated circle needs to be located in a corner.) // info: custom info. enables user to mount some info on elements and use them // in event handlers. Update them only when user specified, otherwise, remain. // Note: elements is always behind its ancestors in this elements array. elements: [], parentId: null }, /** * Save el options for the sake of the performance (only update modified graphics). * The order is the same as those in option. (ancesters -> descendants) * * @private * @type {Array.} */ _elOptionsToUpdate: null, /** * @override */ mergeOption: function (option) { // Prevent default merge to elements var elements = this.option.elements; this.option.elements = null; GraphicModel.superApply(this, 'mergeOption', arguments); this.option.elements = elements; }, /** * @override */ optionUpdated: function (newOption, isInit) { var thisOption = this.option; var newList = (isInit ? thisOption : newOption).elements; var existList = thisOption.elements = isInit ? [] : thisOption.elements; var flattenedList = []; this._flatten(newList, flattenedList); var mappingResult = mappingToExists(existList, flattenedList); makeIdAndName(mappingResult); // Clear elOptionsToUpdate var elOptionsToUpdate = this._elOptionsToUpdate = []; each$1(mappingResult, function (resultItem, index) { var newElOption = resultItem.option; if (__DEV__) { assert$1( isObject$1(newElOption) || resultItem.exist, 'Empty graphic option definition' ); } if (!newElOption) { return; } elOptionsToUpdate.push(newElOption); setKeyInfoToNewElOption(resultItem, newElOption); mergeNewElOptionToExist(existList, index, newElOption); setLayoutInfoToExist(existList[index], newElOption); }, this); // Clean for (var i = existList.length - 1; i >= 0; i--) { if (existList[i] == null) { existList.splice(i, 1); } else { // $action should be volatile, otherwise option gotten from // `getOption` will contain unexpected $action. delete existList[i].$action; } } }, /** * Convert * [{ * type: 'group', * id: 'xx', * children: [{type: 'circle'}, {type: 'polygon'}] * }] * to * [ * {type: 'group', id: 'xx'}, * {type: 'circle', parentId: 'xx'}, * {type: 'polygon', parentId: 'xx'} * ] * * @private * @param {Array.} optionList option list * @param {Array.} result result of flatten * @param {Object} parentOption parent option */ _flatten: function (optionList, result, parentOption) { each$1(optionList, function (option) { if (!option) { return; } if (parentOption) { option.parentOption = parentOption; } result.push(option); var children = option.children; if (option.type === 'group' && children) { this._flatten(children, result, option); } // Deleting for JSON output, and for not affecting group creation. delete option.children; }, this); }, // FIXME // Pass to view using payload? setOption has a payload? useElOptionsToUpdate: function () { var els = this._elOptionsToUpdate; // Clear to avoid render duplicately when zooming. this._elOptionsToUpdate = null; return els; } }); // ----- // View // ----- extendComponentView({ type: 'graphic', /** * @override */ init: function (ecModel, api) { /** * @private * @type {module:zrender/core/util.HashMap} */ this._elMap = createHashMap(); /** * @private * @type {module:echarts/graphic/GraphicModel} */ this._lastGraphicModel; }, /** * @override */ render: function (graphicModel, ecModel, api) { // Having leveraged between use cases and algorithm complexity, a very // simple layout mechanism is used: // The size(width/height) can be determined by itself or its parent (not // implemented yet), but can not by its children. (Top-down travel) // The location(x/y) can be determined by the bounding rect of itself // (can including its descendants or not) and the size of its parent. // (Bottom-up travel) // When `chart.clear()` or `chart.setOption({...}, true)` with the same id, // view will be reused. if (graphicModel !== this._lastGraphicModel) { this._clear(); } this._lastGraphicModel = graphicModel; this._updateElements(graphicModel); this._relocate(graphicModel, api); }, /** * Update graphic elements. * * @private * @param {Object} graphicModel graphic model */ _updateElements: function (graphicModel) { var elOptionsToUpdate = graphicModel.useElOptionsToUpdate(); if (!elOptionsToUpdate) { return; } var elMap = this._elMap; var rootGroup = this.group; // Top-down tranverse to assign graphic settings to each elements. each$1(elOptionsToUpdate, function (elOption) { var $action = elOption.$action; var id = elOption.id; var existEl = elMap.get(id); var parentId = elOption.parentId; var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup; var elOptionStyle = elOption.style; if (elOption.type === 'text' && elOptionStyle) { // In top/bottom mode, textVerticalAlign should not be used, which cause // inaccurately locating. if (elOption.hv && elOption.hv[1]) { elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = null; } // Compatible with previous setting: both support fill and textFill, // stroke and textStroke. !elOptionStyle.hasOwnProperty('textFill') && elOptionStyle.fill && ( elOptionStyle.textFill = elOptionStyle.fill ); !elOptionStyle.hasOwnProperty('textStroke') && elOptionStyle.stroke && ( elOptionStyle.textStroke = elOptionStyle.stroke ); } // Remove unnecessary props to avoid potential problems. var elOptionCleaned = getCleanedElOption(elOption); // For simple, do not support parent change, otherwise reorder is needed. if (__DEV__) { existEl && assert$1( targetElParent === existEl.parent, 'Changing parent is not supported.' ); } if (!$action || $action === 'merge') { existEl ? existEl.attr(elOptionCleaned) : createEl$1(id, targetElParent, elOptionCleaned, elMap); } else if ($action === 'replace') { removeEl(existEl, elMap); createEl$1(id, targetElParent, elOptionCleaned, elMap); } else if ($action === 'remove') { removeEl(existEl, elMap); } var el = elMap.get(id); if (el) { el.__ecGraphicWidth = elOption.width; el.__ecGraphicHeight = elOption.height; setEventData(el, graphicModel, elOption); } }); }, /** * Locate graphic elements. * * @private * @param {Object} graphicModel graphic model * @param {module:echarts/ExtensionAPI} api extension API */ _relocate: function (graphicModel, api) { var elOptions = graphicModel.option.elements; var rootGroup = this.group; var elMap = this._elMap; // Bottom-up tranvese all elements (consider ec resize) to locate elements. for (var i = elOptions.length - 1; i >= 0; i--) { var elOption = elOptions[i]; var el = elMap.get(elOption.id); if (!el) { continue; } var parentEl = el.parent; var containerInfo = parentEl === rootGroup ? { width: api.getWidth(), height: api.getHeight() } : { // Like 'position:absolut' in css, default 0. width: parentEl.__ecGraphicWidth || 0, height: parentEl.__ecGraphicHeight || 0 }; positionElement( el, elOption, containerInfo, null, {hv: elOption.hv, boundingMode: elOption.bounding} ); } }, /** * Clear all elements. * * @private */ _clear: function () { var elMap = this._elMap; elMap.each(function (el) { removeEl(el, elMap); }); this._elMap = createHashMap(); }, /** * @override */ dispose: function () { this._clear(); } }); function createEl$1(id, targetElParent, elOption, elMap) { var graphicType = elOption.type; if (__DEV__) { assert$1(graphicType, 'graphic type MUST be set'); } var Clz = graphic[graphicType.charAt(0).toUpperCase() + graphicType.slice(1)]; if (__DEV__) { assert$1(Clz, 'graphic type can not be found'); } var el = new Clz(elOption); targetElParent.add(el); elMap.set(id, el); el.__ecGraphicId = id; } function removeEl(existEl, elMap) { var existElParent = existEl && existEl.parent; if (existElParent) { existEl.type === 'group' && existEl.traverse(function (el) { removeEl(el, elMap); }); elMap.removeKey(existEl.__ecGraphicId); existElParent.remove(existEl); } } // Remove unnecessary props to avoid potential problems. function getCleanedElOption(elOption) { elOption = extend({}, elOption); each$1( ['id', 'parentId', '$action', 'hv', 'bounding'].concat(LOCATION_PARAMS), function (name) { delete elOption[name]; } ); return elOption; } function isSetLoc(obj, props) { var isSet; each$1(props, function (prop) { obj[prop] != null && obj[prop] !== 'auto' && (isSet = true); }); return isSet; } function setKeyInfoToNewElOption(resultItem, newElOption) { var existElOption = resultItem.exist; // Set id and type after id assigned. newElOption.id = resultItem.keyInfo.id; !newElOption.type && existElOption && (newElOption.type = existElOption.type); // Set parent id if not specified if (newElOption.parentId == null) { var newElParentOption = newElOption.parentOption; if (newElParentOption) { newElOption.parentId = newElParentOption.id; } else if (existElOption) { newElOption.parentId = existElOption.parentId; } } // Clear newElOption.parentOption = null; } function mergeNewElOptionToExist(existList, index, newElOption) { // Update existing options, for `getOption` feature. var newElOptCopy = extend({}, newElOption); var existElOption = existList[index]; var $action = newElOption.$action || 'merge'; if ($action === 'merge') { if (existElOption) { if (__DEV__) { var newType = newElOption.type; assert$1( !newType || existElOption.type === newType, 'Please set $action: "replace" to change `type`' ); } // We can ensure that newElOptCopy and existElOption are not // the same object, so `merge` will not change newElOptCopy. merge(existElOption, newElOptCopy, true); // Rigid body, use ignoreSize. mergeLayoutParam(existElOption, newElOptCopy, {ignoreSize: true}); // Will be used in render. copyLayoutParams(newElOption, existElOption); } else { existList[index] = newElOptCopy; } } else if ($action === 'replace') { existList[index] = newElOptCopy; } else if ($action === 'remove') { // null will be cleaned later. existElOption && (existList[index] = null); } } function setLayoutInfoToExist(existItem, newElOption) { if (!existItem) { return; } existItem.hv = newElOption.hv = [ // Rigid body, dont care `width`. isSetLoc(newElOption, ['left', 'right']), // Rigid body, dont care `height`. isSetLoc(newElOption, ['top', 'bottom']) ]; // Give default group size. Otherwise layout error may occur. if (existItem.type === 'group') { existItem.width == null && (existItem.width = newElOption.width = 0); existItem.height == null && (existItem.height = newElOption.height = 0); } } function setEventData(el, graphicModel, elOption) { var eventData = el.eventData; // Simple optimize for large amount of elements that no need event. if (!el.silent && !el.ignore && !eventData) { eventData = el.eventData = { componentType: 'graphic', componentIndex: graphicModel.componentIndex, name: el.name }; } // `elOption.info` enables user to mount some info on // elements and use them in event handlers. if (eventData) { eventData.info = el.info; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var features = {}; function register$1(name, ctor) { features[name] = ctor; } function get$1(name) { return features[name]; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ToolboxModel = extendComponentModel({ type: 'toolbox', layoutMode: { type: 'box', ignoreSize: true }, optionUpdated: function () { ToolboxModel.superApply(this, 'optionUpdated', arguments); each$1(this.option.feature, function (featureOpt, featureName) { var Feature = get$1(featureName); Feature && merge(featureOpt, Feature.defaultOption); }); }, defaultOption: { show: true, z: 6, zlevel: 0, orient: 'horizontal', left: 'right', top: 'top', // right // bottom backgroundColor: 'transparent', borderColor: '#ccc', borderRadius: 0, borderWidth: 0, padding: 5, itemSize: 15, itemGap: 8, showTitle: true, iconStyle: { borderColor: '#666', color: 'none' }, emphasis: { iconStyle: { borderColor: '#3E98C5' } }, // textStyle: {}, // feature tooltip: { show: false } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Layout list like component. * It will box layout each items in group of component and then position the whole group in the viewport * @param {module:zrender/group/Group} group * @param {module:echarts/model/Component} componentModel * @param {module:echarts/ExtensionAPI} */ function layout$3(group, componentModel, api) { var boxLayoutParams = componentModel.getBoxLayoutParams(); var padding = componentModel.get('padding'); var viewportSize = {width: api.getWidth(), height: api.getHeight()}; var rect = getLayoutRect( boxLayoutParams, viewportSize, padding ); box( componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height ); positionElement( group, boxLayoutParams, viewportSize, padding ); } function makeBackground(rect, componentModel) { var padding = normalizeCssArray$1( componentModel.get('padding') ); var style = componentModel.getItemStyle(['color', 'opacity']); style.fill = componentModel.get('backgroundColor'); var rect = new Rect({ shape: { x: rect.x - padding[3], y: rect.y - padding[0], width: rect.width + padding[1] + padding[3], height: rect.height + padding[0] + padding[2], r: componentModel.get('borderRadius') }, style: style, silent: true, z2: -1 }); // FIXME // `subPixelOptimizeRect` may bring some gap between edge of viewpart // and background rect when setting like `left: 0`, `top: 0`. // graphic.subPixelOptimizeRect(rect); return rect; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentView({ type: 'toolbox', render: function (toolboxModel, ecModel, api, payload) { var group = this.group; group.removeAll(); if (!toolboxModel.get('show')) { return; } var itemSize = +toolboxModel.get('itemSize'); var featureOpts = toolboxModel.get('feature') || {}; var features = this._features || (this._features = {}); var featureNames = []; each$1(featureOpts, function (opt, name) { featureNames.push(name); }); (new DataDiffer(this._featureNames || [], featureNames)) .add(processFeature) .update(processFeature) .remove(curry(processFeature, null)) .execute(); // Keep for diff. this._featureNames = featureNames; function processFeature(newIndex, oldIndex) { var featureName = featureNames[newIndex]; var oldName = featureNames[oldIndex]; var featureOpt = featureOpts[featureName]; var featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel); var feature; if (featureName && !oldName) { // Create if (isUserFeatureName(featureName)) { feature = { model: featureModel, onclick: featureModel.option.onclick, featureName: featureName }; } else { var Feature = get$1(featureName); if (!Feature) { return; } feature = new Feature(featureModel, ecModel, api); } features[featureName] = feature; } else { feature = features[oldName]; // If feature does not exsit. if (!feature) { return; } feature.model = featureModel; feature.ecModel = ecModel; feature.api = api; } if (!featureName && oldName) { feature.dispose && feature.dispose(ecModel, api); return; } if (!featureModel.get('show') || feature.unusable) { feature.remove && feature.remove(ecModel, api); return; } createIconPaths(featureModel, feature, featureName); featureModel.setIconStatus = function (iconName, status) { var option = this.option; var iconPaths = this.iconPaths; option.iconStatus = option.iconStatus || {}; option.iconStatus[iconName] = status; // FIXME iconPaths[iconName] && iconPaths[iconName].trigger(status); }; if (feature.render) { feature.render(featureModel, ecModel, api, payload); } } function createIconPaths(featureModel, feature, featureName) { var iconStyleModel = featureModel.getModel('iconStyle'); var iconStyleEmphasisModel = featureModel.getModel('emphasis.iconStyle'); // If one feature has mutiple icon. they are orginaized as // { // icon: { // foo: '', // bar: '' // }, // title: { // foo: '', // bar: '' // } // } var icons = feature.getIcons ? feature.getIcons() : featureModel.get('icon'); var titles = featureModel.get('title') || {}; if (typeof icons === 'string') { var icon = icons; var title = titles; icons = {}; titles = {}; icons[featureName] = icon; titles[featureName] = title; } var iconPaths = featureModel.iconPaths = {}; each$1(icons, function (iconStr, iconName) { var path = createIcon( iconStr, {}, { x: -itemSize / 2, y: -itemSize / 2, width: itemSize, height: itemSize } ); path.setStyle(iconStyleModel.getItemStyle()); path.hoverStyle = iconStyleEmphasisModel.getItemStyle(); var tooltipModel = toolboxModel.getModel('tooltip'); if (tooltipModel && tooltipModel.get('show')) { path.attr('tooltip', extend({ content: titles[iconName], formatter: tooltipModel.get('formatter', true) || function () { return titles[iconName]; }, formatterParams: { componentType: 'toolbox', name: iconName, title: titles[iconName], $vars: ['name', 'title'] }, position: tooltipModel.get('position', true) || 'bottom' }, tooltipModel.option)); } setHoverStyle(path); if (toolboxModel.get('showTitle')) { path.__title = titles[iconName]; path.on('mouseover', function () { // Should not reuse above hoverStyle, which might be modified. var hoverStyle = iconStyleEmphasisModel.getItemStyle(); path.setStyle({ text: titles[iconName], textPosition: iconStyleEmphasisModel.get('textPosition') || 'bottom', textFill: iconStyleEmphasisModel.get('textFill') || hoverStyle.fill || hoverStyle.stroke || '#000', textAlign: iconStyleEmphasisModel.get('textAlign') || 'center', textBackgroundColor: iconStyleEmphasisModel.get('textBackgroundColor'), textBorderRadius: iconStyleEmphasisModel.get('textBorderRadius'), textPadding: iconStyleEmphasisModel.get('textPadding') }); }) .on('mouseout', function () { path.setStyle({ textFill: null, textBackgroundColor: null }); }); } path.trigger(featureModel.get('iconStatus.' + iconName) || 'normal'); group.add(path); path.on('click', bind( feature.onclick, feature, ecModel, api, iconName )); iconPaths[iconName] = path; }); } layout$3(group, toolboxModel, api); // Render background after group is layout // FIXME group.add(makeBackground(group.getBoundingRect(), toolboxModel)); // Adjust icon title positions to avoid them out of screen group.eachChild(function (icon) { var titleText = icon.__title; var hoverStyle = icon.hoverStyle; // May be background element if (hoverStyle && titleText) { var rect = getBoundingRect( titleText, makeFont(hoverStyle) ); var offsetX = icon.position[0] + group.position[0]; var offsetY = icon.position[1] + group.position[1] + itemSize; var needPutOnTop = false; if (offsetY + rect.height > api.getHeight()) { hoverStyle.textPosition = 'top'; needPutOnTop = true; } var topOffset = needPutOnTop ? (-5 - rect.height) : (itemSize + 8); if (offsetX + rect.width / 2 > api.getWidth()) { hoverStyle.textPosition = ['100%', topOffset]; hoverStyle.textAlign = 'right'; } else if (offsetX - rect.width / 2 < 0) { hoverStyle.textPosition = [0, topOffset]; hoverStyle.textAlign = 'left'; } } }); }, updateView: function (toolboxModel, ecModel, api, payload) { each$1(this._features, function (feature) { feature.updateView && feature.updateView(feature.model, ecModel, api, payload); }); }, // updateLayout: function (toolboxModel, ecModel, api, payload) { // zrUtil.each(this._features, function (feature) { // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload); // }); // }, remove: function (ecModel, api) { each$1(this._features, function (feature) { feature.remove && feature.remove(ecModel, api); }); this.group.removeAll(); }, dispose: function (ecModel, api) { each$1(this._features, function (feature) { feature.dispose && feature.dispose(ecModel, api); }); } }); function isUserFeatureName(featureName) { return featureName.indexOf('my') === 0; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Uint8Array */ var saveAsImageLang = lang.toolbox.saveAsImage; function SaveAsImage(model) { this.model = model; } SaveAsImage.defaultOption = { show: true, icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0', title: saveAsImageLang.title, type: 'png', // Default use option.backgroundColor // backgroundColor: '#fff', connectedBackgroundColor: '#fff', name: '', excludeComponents: ['toolbox'], pixelRatio: 1, lang: saveAsImageLang.lang.slice() }; SaveAsImage.prototype.unusable = !env$1.canvasSupported; var proto$2 = SaveAsImage.prototype; proto$2.onclick = function (ecModel, api) { var model = this.model; var title = model.get('name') || ecModel.get('title.0.text') || 'echarts'; var type = model.get('type', true) || 'png'; var url = api.getConnectedDataURL({ type: type, backgroundColor: model.get('backgroundColor', true) || ecModel.get('backgroundColor') || '#fff', connectedBackgroundColor: model.get('connectedBackgroundColor'), excludeComponents: model.get('excludeComponents'), pixelRatio: model.get('pixelRatio') }); // Chrome and Firefox if (typeof MouseEvent === 'function' && !env$1.browser.ie && !env$1.browser.edge) { var $a = document.createElement('a'); $a.download = title + '.' + type; $a.target = '_blank'; $a.href = url; var evt = new MouseEvent('click', { view: window, bubbles: true, cancelable: false }); $a.dispatchEvent(evt); } // IE else { if (window.navigator.msSaveOrOpenBlob) { var bstr = atob(url.split(',')[1]); var n = bstr.length; var u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } var blob = new Blob([u8arr]); window.navigator.msSaveOrOpenBlob(blob, title + '.' + type); } else { var lang$$1 = model.get('lang'); var html = '' + '' + '' + ''; var tab = window.open(); tab.document.write(html); } } }; register$1( 'saveAsImage', SaveAsImage ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var magicTypeLang = lang.toolbox.magicType; function MagicType(model) { this.model = model; } MagicType.defaultOption = { show: true, type: [], // Icon group icon: { /* eslint-disable */ line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4', bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7', stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z', // jshint ignore:line tiled: 'M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z' /* eslint-enable */ }, // `line`, `bar`, `stack`, `tiled` title: clone(magicTypeLang.title), option: {}, seriesIndex: {} }; var proto$3 = MagicType.prototype; proto$3.getIcons = function () { var model = this.model; var availableIcons = model.get('icon'); var icons = {}; each$1(model.get('type'), function (type) { if (availableIcons[type]) { icons[type] = availableIcons[type]; } }); return icons; }; var seriesOptGenreator = { 'line': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'bar') { return merge({ id: seriesId, type: 'line', // Preserve data related option data: seriesModel.get('data'), stack: seriesModel.get('stack'), markPoint: seriesModel.get('markPoint'), markLine: seriesModel.get('markLine') }, model.get('option.line') || {}, true); } }, 'bar': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'line') { return merge({ id: seriesId, type: 'bar', // Preserve data related option data: seriesModel.get('data'), stack: seriesModel.get('stack'), markPoint: seriesModel.get('markPoint'), markLine: seriesModel.get('markLine') }, model.get('option.bar') || {}, true); } }, 'stack': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'line' || seriesType === 'bar') { return merge({ id: seriesId, stack: '__ec_magicType_stack__' }, model.get('option.stack') || {}, true); } }, 'tiled': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'line' || seriesType === 'bar') { return merge({ id: seriesId, stack: '' }, model.get('option.tiled') || {}, true); } } }; var radioTypes = [ ['line', 'bar'], ['stack', 'tiled'] ]; proto$3.onclick = function (ecModel, api, type) { var model = this.model; var seriesIndex = model.get('seriesIndex.' + type); // Not supported magicType if (!seriesOptGenreator[type]) { return; } var newOption = { series: [] }; var generateNewSeriesTypes = function (seriesModel) { var seriesType = seriesModel.subType; var seriesId = seriesModel.id; var newSeriesOpt = seriesOptGenreator[type]( seriesType, seriesId, seriesModel, model ); if (newSeriesOpt) { // PENDING If merge original option? defaults(newSeriesOpt, seriesModel.option); newOption.series.push(newSeriesOpt); } // Modify boundaryGap var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) { var categoryAxis = coordSys.getAxesByScale('ordinal')[0]; if (categoryAxis) { var axisDim = categoryAxis.dim; var axisType = axisDim + 'Axis'; var axisModel = ecModel.queryComponents({ mainType: axisType, index: seriesModel.get(name + 'Index'), id: seriesModel.get(name + 'Id') })[0]; var axisIndex = axisModel.componentIndex; newOption[axisType] = newOption[axisType] || []; for (var i = 0; i <= axisIndex; i++) { newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {}; } newOption[axisType][axisIndex].boundaryGap = type === 'bar'; } } }; each$1(radioTypes, function (radio) { if (indexOf(radio, type) >= 0) { each$1(radio, function (item) { model.setIconStatus(item, 'normal'); }); } }); model.setIconStatus(type, 'emphasis'); ecModel.eachComponent( { mainType: 'series', query: seriesIndex == null ? null : { seriesIndex: seriesIndex } }, generateNewSeriesTypes ); api.dispatchAction({ type: 'changeMagicType', currentType: type, newOption: newOption }); }; registerAction({ type: 'changeMagicType', event: 'magicTypeChanged', update: 'prepareAndUpdate' }, function (payload, ecModel) { ecModel.mergeOption(payload.newOption); }); register$1('magicType', MagicType); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var dataViewLang = lang.toolbox.dataView; var BLOCK_SPLITER = new Array(60).join('-'); var ITEM_SPLITER = '\t'; /** * Group series into two types * 1. on category axis, like line, bar * 2. others, like scatter, pie * @param {module:echarts/model/Global} ecModel * @return {Object} * @inner */ function groupSeries(ecModel) { var seriesGroupByCategoryAxis = {}; var otherSeries = []; var meta = []; ecModel.eachRawSeries(function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) { var baseAxis = coordSys.getBaseAxis(); if (baseAxis.type === 'category') { var key = baseAxis.dim + '_' + baseAxis.index; if (!seriesGroupByCategoryAxis[key]) { seriesGroupByCategoryAxis[key] = { categoryAxis: baseAxis, valueAxis: coordSys.getOtherAxis(baseAxis), series: [] }; meta.push({ axisDim: baseAxis.dim, axisIndex: baseAxis.index }); } seriesGroupByCategoryAxis[key].series.push(seriesModel); } else { otherSeries.push(seriesModel); } } else { otherSeries.push(seriesModel); } }); return { seriesGroupByCategoryAxis: seriesGroupByCategoryAxis, other: otherSeries, meta: meta }; } /** * Assemble content of series on cateogory axis * @param {Array.} series * @return {string} * @inner */ function assembleSeriesWithCategoryAxis(series) { var tables = []; each$1(series, function (group, key) { var categoryAxis = group.categoryAxis; var valueAxis = group.valueAxis; var valueAxisDim = valueAxis.dim; var headers = [' '].concat(map(group.series, function (series) { return series.name; })); var columns = [categoryAxis.model.getCategories()]; each$1(group.series, function (series) { columns.push(series.getRawData().mapArray(valueAxisDim, function (val) { return val; })); }); // Assemble table content var lines = [headers.join(ITEM_SPLITER)]; for (var i = 0; i < columns[0].length; i++) { var items = []; for (var j = 0; j < columns.length; j++) { items.push(columns[j][i]); } lines.push(items.join(ITEM_SPLITER)); } tables.push(lines.join('\n')); }); return tables.join('\n\n' + BLOCK_SPLITER + '\n\n'); } /** * Assemble content of other series * @param {Array.} series * @return {string} * @inner */ function assembleOtherSeries(series) { return map(series, function (series) { var data = series.getRawData(); var lines = [series.name]; var vals = []; data.each(data.dimensions, function () { var argLen = arguments.length; var dataIndex = arguments[argLen - 1]; var name = data.getName(dataIndex); for (var i = 0; i < argLen - 1; i++) { vals[i] = arguments[i]; } lines.push((name ? (name + ITEM_SPLITER) : '') + vals.join(ITEM_SPLITER)); }); return lines.join('\n'); }).join('\n\n' + BLOCK_SPLITER + '\n\n'); } /** * @param {module:echarts/model/Global} * @return {Object} * @inner */ function getContentFromModel(ecModel) { var result = groupSeries(ecModel); return { value: filter([ assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis), assembleOtherSeries(result.other) ], function (str) { return str.replace(/[\n\t\s]/g, ''); }).join('\n\n' + BLOCK_SPLITER + '\n\n'), meta: result.meta }; } function trim$1(str) { return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } /** * If a block is tsv format */ function isTSVFormat(block) { // Simple method to find out if a block is tsv format var firstLine = block.slice(0, block.indexOf('\n')); if (firstLine.indexOf(ITEM_SPLITER) >= 0) { return true; } } var itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g'); /** * @param {string} tsv * @return {Object} */ function parseTSVContents(tsv) { var tsvLines = tsv.split(/\n+/g); var headers = trim$1(tsvLines.shift()).split(itemSplitRegex); var categories = []; var series = map(headers, function (header) { return { name: header, data: [] }; }); for (var i = 0; i < tsvLines.length; i++) { var items = trim$1(tsvLines[i]).split(itemSplitRegex); categories.push(items.shift()); for (var j = 0; j < items.length; j++) { series[j] && (series[j].data[i] = items[j]); } } return { series: series, categories: categories }; } /** * @param {string} str * @return {Array.} * @inner */ function parseListContents(str) { var lines = str.split(/\n+/g); var seriesName = trim$1(lines.shift()); var data = []; for (var i = 0; i < lines.length; i++) { var items = trim$1(lines[i]).split(itemSplitRegex); var name = ''; var value; var hasName = false; if (isNaN(items[0])) { // First item is name hasName = true; name = items[0]; items = items.slice(1); data[i] = { name: name, value: [] }; value = data[i].value; } else { value = data[i] = []; } for (var j = 0; j < items.length; j++) { value.push(+items[j]); } if (value.length === 1) { hasName ? (data[i].value = value[0]) : (data[i] = value[0]); } } return { name: seriesName, data: data }; } /** * @param {string} str * @param {Array.} blockMetaList * @return {Object} * @inner */ function parseContents(str, blockMetaList) { var blocks = str.split(new RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g')); var newOption = { series: [] }; each$1(blocks, function (block, idx) { if (isTSVFormat(block)) { var result = parseTSVContents(block); var blockMeta = blockMetaList[idx]; var axisKey = blockMeta.axisDim + 'Axis'; if (blockMeta) { newOption[axisKey] = newOption[axisKey] || []; newOption[axisKey][blockMeta.axisIndex] = { data: result.categories }; newOption.series = newOption.series.concat(result.series); } } else { var result = parseListContents(block); newOption.series.push(result); } }); return newOption; } /** * @alias {module:echarts/component/toolbox/feature/DataView} * @constructor * @param {module:echarts/model/Model} model */ function DataView(model) { this._dom = null; this.model = model; } DataView.defaultOption = { show: true, readOnly: false, optionToContent: null, contentToOption: null, icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28', title: clone(dataViewLang.title), lang: clone(dataViewLang.lang), backgroundColor: '#fff', textColor: '#000', textareaColor: '#fff', textareaBorderColor: '#333', buttonColor: '#c23531', buttonTextColor: '#fff' }; DataView.prototype.onclick = function (ecModel, api) { var container = api.getDom(); var model = this.model; if (this._dom) { container.removeChild(this._dom); } var root = document.createElement('div'); root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;'; root.style.backgroundColor = model.get('backgroundColor') || '#fff'; // Create elements var header = document.createElement('h4'); var lang$$1 = model.get('lang') || []; header.innerHTML = lang$$1[0] || model.get('title'); header.style.cssText = 'margin: 10px 20px;'; header.style.color = model.get('textColor'); var viewMain = document.createElement('div'); var textarea = document.createElement('textarea'); viewMain.style.cssText = 'display:block;width:100%;overflow:auto;'; var optionToContent = model.get('optionToContent'); var contentToOption = model.get('contentToOption'); var result = getContentFromModel(ecModel); if (typeof optionToContent === 'function') { var htmlOrDom = optionToContent(api.getOption()); if (typeof htmlOrDom === 'string') { viewMain.innerHTML = htmlOrDom; } else if (isDom(htmlOrDom)) { viewMain.appendChild(htmlOrDom); } } else { // Use default textarea viewMain.appendChild(textarea); textarea.readOnly = model.get('readOnly'); textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;'; textarea.style.color = model.get('textColor'); textarea.style.borderColor = model.get('textareaBorderColor'); textarea.style.backgroundColor = model.get('textareaColor'); textarea.value = result.value; } var blockMetaList = result.meta; var buttonContainer = document.createElement('div'); buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;'; var buttonStyle = 'float:right;margin-right:20px;border:none;' + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px'; var closeButton = document.createElement('div'); var refreshButton = document.createElement('div'); buttonStyle += ';background-color:' + model.get('buttonColor'); buttonStyle += ';color:' + model.get('buttonTextColor'); var self = this; function close() { container.removeChild(root); self._dom = null; } addEventListener(closeButton, 'click', close); addEventListener(refreshButton, 'click', function () { var newOption; try { if (typeof contentToOption === 'function') { newOption = contentToOption(viewMain, api.getOption()); } else { newOption = parseContents(textarea.value, blockMetaList); } } catch (e) { close(); throw new Error('Data view format error ' + e); } if (newOption) { api.dispatchAction({ type: 'changeDataView', newOption: newOption }); } close(); }); closeButton.innerHTML = lang$$1[1]; refreshButton.innerHTML = lang$$1[2]; refreshButton.style.cssText = buttonStyle; closeButton.style.cssText = buttonStyle; !model.get('readOnly') && buttonContainer.appendChild(refreshButton); buttonContainer.appendChild(closeButton); root.appendChild(header); root.appendChild(viewMain); root.appendChild(buttonContainer); viewMain.style.height = (container.clientHeight - 80) + 'px'; container.appendChild(root); this._dom = root; }; DataView.prototype.remove = function (ecModel, api) { this._dom && api.getDom().removeChild(this._dom); }; DataView.prototype.dispose = function (ecModel, api) { this.remove(ecModel, api); }; /** * @inner */ function tryMergeDataOption(newData, originalData) { return map(newData, function (newVal, idx) { var original = originalData && originalData[idx]; if (isObject$1(original) && !isArray(original)) { if (isObject$1(newVal) && !isArray(newVal)) { newVal = newVal.value; } // Original data has option return defaults({ value: newVal }, original); } else { return newVal; } }); } register$1('dataView', DataView); registerAction({ type: 'changeDataView', event: 'dataViewChanged', update: 'prepareAndUpdate' }, function (payload, ecModel) { var newSeriesOptList = []; each$1(payload.newOption.series, function (seriesOpt) { var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0]; if (!seriesModel) { // New created series // Geuss the series type newSeriesOptList.push(extend({ // Default is scatter type: 'scatter' }, seriesOpt)); } else { var originalData = seriesModel.get('data'); newSeriesOptList.push({ name: seriesOpt.name, data: tryMergeDataOption(seriesOpt.data, originalData) }); } }); ecModel.mergeOption(defaults({ series: newSeriesOptList }, payload.newOption)); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$17 = each$1; var indexOf$1 = indexOf; var curry$4 = curry; var COORD_CONVERTS = ['dataToPoint', 'pointToData']; // FIXME // how to genarialize to more coordinate systems. var INCLUDE_FINDER_MAIN_TYPES = [ 'grid', 'xAxis', 'yAxis', 'geo', 'graph', 'polar', 'radiusAxis', 'angleAxis', 'bmap' ]; /** * [option in constructor]: * { * Index/Id/Name of geo, xAxis, yAxis, grid: See util/model#parseFinder. * } * * * [targetInfo]: * * There can be multiple axes in a single targetInfo. Consider the case * of `grid` component, a targetInfo represents a grid which contains one or more * cartesian and one or more axes. And consider the case of parallel system, * which has multiple axes in a coordinate system. * Can be { * panelId: ..., * coordSys: , * coordSyses: all cartesians. * gridModel: * xAxes: correspond to coordSyses on index * yAxes: correspond to coordSyses on index * } * or { * panelId: ..., * coordSys: * coordSyses: [] * geoModel: * } * * * [panelOpt]: * * Make from targetInfo. Input to BrushController. * { * panelId: ..., * rect: ... * } * * * [area]: * * Generated by BrushController or user input. * { * panelId: Used to locate coordInfo directly. If user inpput, no panelId. * brushType: determine how to convert to/from coord('rect' or 'polygon' or 'lineX/Y'). * Index/Id/Name of geo, xAxis, yAxis, grid: See util/model#parseFinder. * range: pixel range. * coordRange: representitive coord range (the first one of coordRanges). * coordRanges: coord ranges, used in multiple cartesian in one grid. * } */ /** * @param {Object} option contains Index/Id/Name of xAxis/yAxis/geo/grid * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]} * @param {module:echarts/model/Global} ecModel * @param {Object} [opt] * @param {Array.} [opt.include] include coordinate system types. */ function BrushTargetManager(option, ecModel, opt) { /** * @private * @type {Array.} */ var targetInfoList = this._targetInfoList = []; var info = {}; var foundCpts = parseFinder$1(ecModel, option); each$17(targetInfoBuilders, function (builder, type) { if (!opt || !opt.include || indexOf$1(opt.include, type) >= 0) { builder(foundCpts, targetInfoList, info); } }); } var proto$5 = BrushTargetManager.prototype; proto$5.setOutputRanges = function (areas, ecModel) { this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) { (area.coordRanges || (area.coordRanges = [])).push(coordRange); // area.coordRange is the first of area.coordRanges if (!area.coordRange) { area.coordRange = coordRange; // In 'category' axis, coord to pixel is not reversible, so we can not // rebuild range by coordRange accrately, which may bring trouble when // brushing only one item. So we use __rangeOffset to rebuilding range // by coordRange. And this it only used in brush component so it is no // need to be adapted to coordRanges. var result = coordConvert[area.brushType](0, coordSys, coordRange); area.__rangeOffset = { offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]), xyMinMax: result.xyMinMax }; } }); }; proto$5.matchOutputRanges = function (areas, ecModel, cb) { each$17(areas, function (area) { var targetInfo = this.findTargetInfo(area, ecModel); if (targetInfo && targetInfo !== true) { each$1( targetInfo.coordSyses, function (coordSys) { var result = coordConvert[area.brushType](1, coordSys, area.range); cb(area, result.values, coordSys, ecModel); } ); } }, this); }; proto$5.setInputRanges = function (areas, ecModel) { each$17(areas, function (area) { var targetInfo = this.findTargetInfo(area, ecModel); if (__DEV__) { assert$1( !targetInfo || targetInfo === true || area.coordRange, 'coordRange must be specified when coord index specified.' ); assert$1( !targetInfo || targetInfo !== true || area.range, 'range must be specified in global brush.' ); } area.range = area.range || []; // convert coordRange to global range and set panelId. if (targetInfo && targetInfo !== true) { area.panelId = targetInfo.panelId; // (1) area.range shoule always be calculate from coordRange but does // not keep its original value, for the sake of the dataZoom scenario, // where area.coordRange remains unchanged but area.range may be changed. // (2) Only support converting one coordRange to pixel range in brush // component. So do not consider `coordRanges`. // (3) About __rangeOffset, see comment above. var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange); var rangeOffset = area.__rangeOffset; area.range = rangeOffset ? diffProcessor[area.brushType]( result.values, rangeOffset.offset, getScales(result.xyMinMax, rangeOffset.xyMinMax) ) : result.values; } }, this); }; proto$5.makePanelOpts = function (api, getDefaultBrushType) { return map(this._targetInfoList, function (targetInfo) { var rect = targetInfo.getPanelRect(); return { panelId: targetInfo.panelId, defaultBrushType: getDefaultBrushType && getDefaultBrushType(targetInfo), clipPath: makeRectPanelClipPath(rect), isTargetByCursor: makeRectIsTargetByCursor( rect, api, targetInfo.coordSysModel ), getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect) }; }); }; proto$5.controlSeries = function (area, seriesModel, ecModel) { // Check whether area is bound in coord, and series do not belong to that coord. // If do not do this check, some brush (like lineX) will controll all axes. var targetInfo = this.findTargetInfo(area, ecModel); return targetInfo === true || ( targetInfo && indexOf$1(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0 ); }; /** * If return Object, a coord found. * If reutrn true, global found. * Otherwise nothing found. * * @param {Object} area * @param {Array} targetInfoList * @return {Object|boolean} */ proto$5.findTargetInfo = function (area, ecModel) { var targetInfoList = this._targetInfoList; var foundCpts = parseFinder$1(ecModel, area); for (var i = 0; i < targetInfoList.length; i++) { var targetInfo = targetInfoList[i]; var areaPanelId = area.panelId; if (areaPanelId) { if (targetInfo.panelId === areaPanelId) { return targetInfo; } } else { for (var i = 0; i < targetInfoMatchers.length; i++) { if (targetInfoMatchers[i](foundCpts, targetInfo)) { return targetInfo; } } } } return true; }; function formatMinMax(minMax) { minMax[0] > minMax[1] && minMax.reverse(); return minMax; } function parseFinder$1(ecModel, option) { return parseFinder( ecModel, option, {includeMainTypes: INCLUDE_FINDER_MAIN_TYPES} ); } var targetInfoBuilders = { grid: function (foundCpts, targetInfoList) { var xAxisModels = foundCpts.xAxisModels; var yAxisModels = foundCpts.yAxisModels; var gridModels = foundCpts.gridModels; // Remove duplicated. var gridModelMap = createHashMap(); var xAxesHas = {}; var yAxesHas = {}; if (!xAxisModels && !yAxisModels && !gridModels) { return; } each$17(xAxisModels, function (axisModel) { var gridModel = axisModel.axis.grid.model; gridModelMap.set(gridModel.id, gridModel); xAxesHas[gridModel.id] = true; }); each$17(yAxisModels, function (axisModel) { var gridModel = axisModel.axis.grid.model; gridModelMap.set(gridModel.id, gridModel); yAxesHas[gridModel.id] = true; }); each$17(gridModels, function (gridModel) { gridModelMap.set(gridModel.id, gridModel); xAxesHas[gridModel.id] = true; yAxesHas[gridModel.id] = true; }); gridModelMap.each(function (gridModel) { var grid = gridModel.coordinateSystem; var cartesians = []; each$17(grid.getCartesians(), function (cartesian, index) { if (indexOf$1(xAxisModels, cartesian.getAxis('x').model) >= 0 || indexOf$1(yAxisModels, cartesian.getAxis('y').model) >= 0 ) { cartesians.push(cartesian); } }); targetInfoList.push({ panelId: 'grid--' + gridModel.id, gridModel: gridModel, coordSysModel: gridModel, // Use the first one as the representitive coordSys. coordSys: cartesians[0], coordSyses: cartesians, getPanelRect: panelRectBuilder.grid, xAxisDeclared: xAxesHas[gridModel.id], yAxisDeclared: yAxesHas[gridModel.id] }); }); }, geo: function (foundCpts, targetInfoList) { each$17(foundCpts.geoModels, function (geoModel) { var coordSys = geoModel.coordinateSystem; targetInfoList.push({ panelId: 'geo--' + geoModel.id, geoModel: geoModel, coordSysModel: geoModel, coordSys: coordSys, coordSyses: [coordSys], getPanelRect: panelRectBuilder.geo }); }); } }; var targetInfoMatchers = [ // grid function (foundCpts, targetInfo) { var xAxisModel = foundCpts.xAxisModel; var yAxisModel = foundCpts.yAxisModel; var gridModel = foundCpts.gridModel; !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model); !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model); return gridModel && gridModel === targetInfo.gridModel; }, // geo function (foundCpts, targetInfo) { var geoModel = foundCpts.geoModel; return geoModel && geoModel === targetInfo.geoModel; } ]; var panelRectBuilder = { grid: function () { // grid is not Transformable. return this.coordSys.grid.getRect().clone(); }, geo: function () { var coordSys = this.coordSys; var rect = coordSys.getBoundingRect().clone(); // geo roam and zoom transform rect.applyTransform(getTransform(coordSys)); return rect; } }; var coordConvert = { lineX: curry$4(axisConvert, 0), lineY: curry$4(axisConvert, 1), rect: function (to, coordSys, rangeOrCoordRange) { var xminymin = coordSys[COORD_CONVERTS[to]]([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]]); var xmaxymax = coordSys[COORD_CONVERTS[to]]([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]]); var values = [ formatMinMax([xminymin[0], xmaxymax[0]]), formatMinMax([xminymin[1], xmaxymax[1]]) ]; return {values: values, xyMinMax: values}; }, polygon: function (to, coordSys, rangeOrCoordRange) { var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]]; var values = map(rangeOrCoordRange, function (item) { var p = coordSys[COORD_CONVERTS[to]](item); xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]); xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]); xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]); xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]); return p; }); return {values: values, xyMinMax: xyMinMax}; } }; function axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) { if (__DEV__) { assert$1( coordSys.type === 'cartesian2d', 'lineX/lineY brush is available only in cartesian2d.' ); } var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]); var values = formatMinMax(map([0, 1], function (i) { return to ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i])) : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i])); })); var xyMinMax = []; xyMinMax[axisNameIndex] = values; xyMinMax[1 - axisNameIndex] = [NaN, NaN]; return {values: values, xyMinMax: xyMinMax}; } var diffProcessor = { lineX: curry$4(axisDiffProcessor, 0), lineY: curry$4(axisDiffProcessor, 1), rect: function (values, refer, scales) { return [ [values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]], [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]] ]; }, polygon: function (values, refer, scales) { return map(values, function (item, idx) { return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]]; }); } }; function axisDiffProcessor(axisNameIndex, values, refer, scales) { return [ values[0] - scales[axisNameIndex] * refer[0], values[1] - scales[axisNameIndex] * refer[1] ]; } // We have to process scale caused by dataZoom manually, // although it might be not accurate. function getScales(xyMinMaxCurr, xyMinMaxOrigin) { var sizeCurr = getSize(xyMinMaxCurr); var sizeOrigin = getSize(xyMinMaxOrigin); var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]]; isNaN(scales[0]) && (scales[0] = 1); isNaN(scales[1]) && (scales[1] = 1); return scales; } function getSize(xyMinMax) { return xyMinMax ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]] : [NaN, NaN]; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$18 = each$1; var ATTR$1 = '\0_ec_hist_store'; /** * @param {module:echarts/model/Global} ecModel * @param {Object} newSnapshot {dataZoomId, batch: [payloadInfo, ...]} */ function push(ecModel, newSnapshot) { var store = giveStore(ecModel); // If previous dataZoom can not be found, // complete an range with current range. each$18(newSnapshot, function (batchItem, dataZoomId) { var i = store.length - 1; for (; i >= 0; i--) { var snapshot = store[i]; if (snapshot[dataZoomId]) { break; } } if (i < 0) { // No origin range set, create one by current range. var dataZoomModel = ecModel.queryComponents( {mainType: 'dataZoom', subType: 'select', id: dataZoomId} )[0]; if (dataZoomModel) { var percentRange = dataZoomModel.getPercentRange(); store[0][dataZoomId] = { dataZoomId: dataZoomId, start: percentRange[0], end: percentRange[1] }; } } }); store.push(newSnapshot); } /** * @param {module:echarts/model/Global} ecModel * @return {Object} snapshot */ function pop(ecModel) { var store = giveStore(ecModel); var head = store[store.length - 1]; store.length > 1 && store.pop(); // Find top for all dataZoom. var snapshot = {}; each$18(head, function (batchItem, dataZoomId) { for (var i = store.length - 1; i >= 0; i--) { var batchItem = store[i][dataZoomId]; if (batchItem) { snapshot[dataZoomId] = batchItem; break; } } }); return snapshot; } /** * @param {module:echarts/model/Global} ecModel */ function clear$1(ecModel) { ecModel[ATTR$1] = null; } /** * @param {module:echarts/model/Global} ecModel * @return {number} records. always >= 1. */ function count(ecModel) { return giveStore(ecModel).length; } /** * [{key: dataZoomId, value: {dataZoomId, range}}, ...] * History length of each dataZoom may be different. * this._history[0] is used to store origin range. * @type {Array.} */ function giveStore(ecModel) { var store = ecModel[ATTR$1]; if (!store) { store = ecModel[ATTR$1] = [{}]; } return store; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ComponentModel.registerSubTypeDefaulter('dataZoom', function () { // Default 'slider' when no type specified. return 'slider'; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AXIS_DIMS = ['x', 'y', 'z', 'radius', 'angle', 'single']; // Supported coords. var COORDS = ['cartesian2d', 'polar', 'singleAxis']; /** * @param {string} coordType * @return {boolean} */ function isCoordSupported(coordType) { return indexOf(COORDS, coordType) >= 0; } /** * Create "each" method to iterate names. * * @pubilc * @param {Array.} names * @param {Array.=} attrs * @return {Function} */ function createNameEach(names, attrs) { names = names.slice(); var capitalNames = map(names, capitalFirst); attrs = (attrs || []).slice(); var capitalAttrs = map(attrs, capitalFirst); return function (callback, context) { each$1(names, function (name, index) { var nameObj = {name: name, capital: capitalNames[index]}; for (var j = 0; j < attrs.length; j++) { nameObj[attrs[j]] = name + capitalAttrs[j]; } callback.call(context, nameObj); }); }; } /** * Iterate each dimension name. * * @public * @param {Function} callback The parameter is like: * { * name: 'angle', * capital: 'Angle', * axis: 'angleAxis', * axisIndex: 'angleAixs', * index: 'angleIndex' * } * @param {Object} context */ var eachAxisDim$1 = createNameEach(AXIS_DIMS, ['axisIndex', 'axis', 'index', 'id']); /** * If tow dataZoomModels has the same axis controlled, we say that they are 'linked'. * dataZoomModels and 'links' make up one or more graphics. * This function finds the graphic where the source dataZoomModel is in. * * @public * @param {Function} forEachNode Node iterator. * @param {Function} forEachEdgeType edgeType iterator * @param {Function} edgeIdGetter Giving node and edgeType, return an array of edge id. * @return {Function} Input: sourceNode, Output: Like {nodes: [], dims: {}} */ function createLinkedNodesFinder(forEachNode, forEachEdgeType, edgeIdGetter) { return function (sourceNode) { var result = { nodes: [], records: {} // key: edgeType.name, value: Object (key: edge id, value: boolean). }; forEachEdgeType(function (edgeType) { result.records[edgeType.name] = {}; }); if (!sourceNode) { return result; } absorb(sourceNode, result); var existsLink; do { existsLink = false; forEachNode(processSingleNode); } while (existsLink); function processSingleNode(node) { if (!isNodeAbsorded(node, result) && isLinked(node, result)) { absorb(node, result); existsLink = true; } } return result; }; function isNodeAbsorded(node, result) { return indexOf(result.nodes, node) >= 0; } function isLinked(node, result) { var hasLink = false; forEachEdgeType(function (edgeType) { each$1(edgeIdGetter(node, edgeType) || [], function (edgeId) { result.records[edgeType.name][edgeId] && (hasLink = true); }); }); return hasLink; } function absorb(node, result) { result.nodes.push(node); forEachEdgeType(function (edgeType) { each$1(edgeIdGetter(node, edgeType) || [], function (edgeId) { result.records[edgeType.name][edgeId] = true; }); }); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$20 = each$1; var asc$1 = asc; /** * Operate single axis. * One axis can only operated by one axis operator. * Different dataZoomModels may be defined to operate the same axis. * (i.e. 'inside' data zoom and 'slider' data zoom components) * So dataZoomModels share one axisProxy in that case. * * @class */ var AxisProxy = function (dimName, axisIndex, dataZoomModel, ecModel) { /** * @private * @type {string} */ this._dimName = dimName; /** * @private */ this._axisIndex = axisIndex; /** * @private * @type {Array.} */ this._valueWindow; /** * @private * @type {Array.} */ this._percentWindow; /** * @private * @type {Array.} */ this._dataExtent; /** * {minSpan, maxSpan, minValueSpan, maxValueSpan} * @private * @type {Object} */ this._minMaxSpan; /** * @readOnly * @type {module: echarts/model/Global} */ this.ecModel = ecModel; /** * @private * @type {module: echarts/component/dataZoom/DataZoomModel} */ this._dataZoomModel = dataZoomModel; // /** // * @readOnly // * @private // */ // this.hasSeriesStacked; }; AxisProxy.prototype = { constructor: AxisProxy, /** * Whether the axisProxy is hosted by dataZoomModel. * * @public * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel * @return {boolean} */ hostedBy: function (dataZoomModel) { return this._dataZoomModel === dataZoomModel; }, /** * @return {Array.} Value can only be NaN or finite value. */ getDataValueWindow: function () { return this._valueWindow.slice(); }, /** * @return {Array.} */ getDataPercentWindow: function () { return this._percentWindow.slice(); }, /** * @public * @param {number} axisIndex * @return {Array} seriesModels */ getTargetSeriesModels: function () { var seriesModels = []; var ecModel = this.ecModel; ecModel.eachSeries(function (seriesModel) { if (isCoordSupported(seriesModel.get('coordinateSystem'))) { var dimName = this._dimName; var axisModel = ecModel.queryComponents({ mainType: dimName + 'Axis', index: seriesModel.get(dimName + 'AxisIndex'), id: seriesModel.get(dimName + 'AxisId') })[0]; if (this._axisIndex === (axisModel && axisModel.componentIndex)) { seriesModels.push(seriesModel); } } }, this); return seriesModels; }, getAxisModel: function () { return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex); }, getOtherAxisModel: function () { var axisDim = this._dimName; var ecModel = this.ecModel; var axisModel = this.getAxisModel(); var isCartesian = axisDim === 'x' || axisDim === 'y'; var otherAxisDim; var coordSysIndexName; if (isCartesian) { coordSysIndexName = 'gridIndex'; otherAxisDim = axisDim === 'x' ? 'y' : 'x'; } else { coordSysIndexName = 'polarIndex'; otherAxisDim = axisDim === 'angle' ? 'radius' : 'angle'; } var foundOtherAxisModel; ecModel.eachComponent(otherAxisDim + 'Axis', function (otherAxisModel) { if ((otherAxisModel.get(coordSysIndexName) || 0) === (axisModel.get(coordSysIndexName) || 0) ) { foundOtherAxisModel = otherAxisModel; } }); return foundOtherAxisModel; }, getMinMaxSpan: function () { return clone(this._minMaxSpan); }, /** * Only calculate by given range and this._dataExtent, do not change anything. * * @param {Object} opt * @param {number} [opt.start] * @param {number} [opt.end] * @param {number} [opt.startValue] * @param {number} [opt.endValue] */ calculateDataWindow: function (opt) { var dataExtent = this._dataExtent; var axisModel = this.getAxisModel(); var scale = axisModel.axis.scale; var rangePropMode = this._dataZoomModel.getRangePropMode(); var percentExtent = [0, 100]; var percentWindow = []; var valueWindow = []; var hasPropModeValue; each$20(['start', 'end'], function (prop, idx) { var boundPercent = opt[prop]; var boundValue = opt[prop + 'Value']; // Notice: dataZoom is based either on `percentProp` ('start', 'end') or // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent // but not min/max of axis, which will be calculated by data window then). // The former one is suitable for cases that a dataZoom component controls multiple // axes with different unit or extent, and the latter one is suitable for accurate // zoom by pixel (e.g., in dataZoomSelect). // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated // only when setOption or dispatchAction, otherwise it remains its original value. // (Why not only record `percentProp` and always map to `valueProp`? Because // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original // `valueProp`. consider two axes constrolled by one dataZoom. They have different // data extent. All of values that are overflow the `dataExtent` will be calculated // to percent '100%'). if (rangePropMode[idx] === 'percent') { boundPercent == null && (boundPercent = percentExtent[idx]); // Use scale.parse to math round for category or time axis. boundValue = scale.parse(linearMap( boundPercent, percentExtent, dataExtent )); } else { hasPropModeValue = true; boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue); // Calculating `percent` from `value` may be not accurate, because // This calculation can not be inversed, because all of values that // are overflow the `dataExtent` will be calculated to percent '100%' boundPercent = linearMap( boundValue, dataExtent, percentExtent ); } // valueWindow[idx] = round(boundValue); // percentWindow[idx] = round(boundPercent); valueWindow[idx] = boundValue; percentWindow[idx] = boundPercent; }); asc$1(valueWindow); asc$1(percentWindow); // The windows from user calling of `dispatchAction` might be out of the extent, // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint, // where API is able to initialize/modify the window size even though `zoomLock` // specified. var spans = this._minMaxSpan; hasPropModeValue ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false) : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true); function restrictSet(fromWindow, toWindow, fromExtent, toExtent, toValue) { var suffix = toValue ? 'Span' : 'ValueSpan'; sliderMove(0, fromWindow, fromExtent, 'all', spans['min' + suffix], spans['max' + suffix]); for (var i = 0; i < 2; i++) { toWindow[i] = linearMap(fromWindow[i], fromExtent, toExtent, true); toValue && (toWindow[i] = scale.parse(toWindow[i])); } } return { valueWindow: valueWindow, percentWindow: percentWindow }; }, /** * Notice: reset should not be called before series.restoreData() called, * so it is recommanded to be called in "process stage" but not "model init * stage". * * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel */ reset: function (dataZoomModel) { if (dataZoomModel !== this._dataZoomModel) { return; } var targetSeries = this.getTargetSeriesModels(); // Culculate data window and data extent, and record them. this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); // this.hasSeriesStacked = false; // each(targetSeries, function (series) { // var data = series.getData(); // var dataDim = data.mapDimension(this._dimName); // var stackedDimension = data.getCalculationInfo('stackedDimension'); // if (stackedDimension && stackedDimension === dataDim) { // this.hasSeriesStacked = true; // } // }, this); // `calculateDataWindow` uses min/maxSpan. setMinMaxSpan(this); var dataWindow = this.calculateDataWindow(dataZoomModel.option); this._valueWindow = dataWindow.valueWindow; this._percentWindow = dataWindow.percentWindow; // Update axis setting then. setAxisModel(this); }, /** * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel */ restore: function (dataZoomModel) { if (dataZoomModel !== this._dataZoomModel) { return; } this._valueWindow = this._percentWindow = null; setAxisModel(this, true); }, /** * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel */ filterData: function (dataZoomModel, api) { if (dataZoomModel !== this._dataZoomModel) { return; } var axisDim = this._dimName; var seriesModels = this.getTargetSeriesModels(); var filterMode = dataZoomModel.get('filterMode'); var valueWindow = this._valueWindow; if (filterMode === 'none') { return; } // FIXME // Toolbox may has dataZoom injected. And if there are stacked bar chart // with NaN data, NaN will be filtered and stack will be wrong. // So we need to force the mode to be set empty. // In fect, it is not a big deal that do not support filterMode-'filter' // when using toolbox#dataZoom, utill tooltip#dataZoom support "single axis // selection" some day, which might need "adapt to data extent on the // otherAxis", which is disabled by filterMode-'empty'. // But currently, stack has been fixed to based on value but not index, // so this is not an issue any more. // var otherAxisModel = this.getOtherAxisModel(); // if (dataZoomModel.get('$fromToolbox') // && otherAxisModel // && otherAxisModel.hasSeriesStacked // ) { // filterMode = 'empty'; // } // TODO // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet. each$20(seriesModels, function (seriesModel) { var seriesData = seriesModel.getData(); var dataDims = seriesData.mapDimension(axisDim, true); if (!dataDims.length) { return; } if (filterMode === 'weakFilter') { seriesData.filterSelf(function (dataIndex) { var leftOut; var rightOut; var hasValue; for (var i = 0; i < dataDims.length; i++) { var value = seriesData.get(dataDims[i], dataIndex); var thisHasValue = !isNaN(value); var thisLeftOut = value < valueWindow[0]; var thisRightOut = value > valueWindow[1]; if (thisHasValue && !thisLeftOut && !thisRightOut) { return true; } thisHasValue && (hasValue = true); thisLeftOut && (leftOut = true); thisRightOut && (rightOut = true); } // If both left out and right out, do not filter. return hasValue && leftOut && rightOut; }); } else { each$20(dataDims, function (dim) { if (filterMode === 'empty') { seriesModel.setData( seriesData = seriesData.map(dim, function (value) { return !isInWindow(value) ? NaN : value; }) ); } else { var range = {}; range[dim] = valueWindow; // console.time('select'); seriesData.selectRange(range); // console.timeEnd('select'); } }); } each$20(dataDims, function (dim) { seriesData.setApproximateExtent(valueWindow, dim); }); }); function isInWindow(value) { return value >= valueWindow[0] && value <= valueWindow[1]; } } }; function calculateDataExtent(axisProxy, axisDim, seriesModels) { var dataExtent = [Infinity, -Infinity]; each$20(seriesModels, function (seriesModel) { var seriesData = seriesModel.getData(); if (seriesData) { each$20(seriesData.mapDimension(axisDim, true), function (dim) { var seriesExtent = seriesData.getApproximateExtent(dim); seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]); seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]); }); } }); if (dataExtent[1] < dataExtent[0]) { dataExtent = [NaN, NaN]; } // It is important to get "consistent" extent when more then one axes is // controlled by a `dataZoom`, otherwise those axes will not be synchronized // when zooming. But it is difficult to know what is "consistent", considering // axes have different type or even different meanings (For example, two // time axes are used to compare data of the same date in different years). // So basically dataZoom just obtains extent by series.data (in category axis // extent can be obtained from axis.data). // Nevertheless, user can set min/max/scale on axes to make extent of axes // consistent. fixExtentByAxis(axisProxy, dataExtent); return dataExtent; } function fixExtentByAxis(axisProxy, dataExtent) { var axisModel = axisProxy.getAxisModel(); var min = axisModel.getMin(true); // For category axis, if min/max/scale are not set, extent is determined // by axis.data by default. var isCategoryAxis = axisModel.get('type') === 'category'; var axisDataLen = isCategoryAxis && axisModel.getCategories().length; if (min != null && min !== 'dataMin' && typeof min !== 'function') { dataExtent[0] = min; } else if (isCategoryAxis) { dataExtent[0] = axisDataLen > 0 ? 0 : NaN; } var max = axisModel.getMax(true); if (max != null && max !== 'dataMax' && typeof max !== 'function') { dataExtent[1] = max; } else if (isCategoryAxis) { dataExtent[1] = axisDataLen > 0 ? axisDataLen - 1 : NaN; } if (!axisModel.get('scale', true)) { dataExtent[0] > 0 && (dataExtent[0] = 0); dataExtent[1] < 0 && (dataExtent[1] = 0); } // For value axis, if min/max/scale are not set, we just use the extent obtained // by series data, which may be a little different from the extent calculated by // `axisHelper.getScaleExtent`. But the different just affects the experience a // little when zooming. So it will not be fixed until some users require it strongly. return dataExtent; } function setAxisModel(axisProxy, isRestore) { var axisModel = axisProxy.getAxisModel(); var percentWindow = axisProxy._percentWindow; var valueWindow = axisProxy._valueWindow; if (!percentWindow) { return; } // [0, 500]: arbitrary value, guess axis extent. var precision = getPixelPrecision(valueWindow, [0, 500]); precision = Math.min(precision, 20); // isRestore or isFull var useOrigin = isRestore || (percentWindow[0] === 0 && percentWindow[1] === 100); axisModel.setRange( useOrigin ? null : +valueWindow[0].toFixed(precision), useOrigin ? null : +valueWindow[1].toFixed(precision) ); } function setMinMaxSpan(axisProxy) { var minMaxSpan = axisProxy._minMaxSpan = {}; var dataZoomModel = axisProxy._dataZoomModel; var dataExtent = axisProxy._dataExtent; each$20(['min', 'max'], function (minMax) { var percentSpan = dataZoomModel.get(minMax + 'Span'); var valueSpan = dataZoomModel.get(minMax + 'ValueSpan'); valueSpan != null && (valueSpan = axisProxy.getAxisModel().axis.scale.parse(valueSpan)); // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan if (valueSpan != null) { percentSpan = linearMap( dataExtent[0] + valueSpan, dataExtent, [0, 100], true ); } else if (percentSpan != null) { valueSpan = linearMap( percentSpan, [0, 100], dataExtent, true ) - dataExtent[0]; } minMaxSpan[minMax + 'Span'] = percentSpan; minMaxSpan[minMax + 'ValueSpan'] = valueSpan; }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$19 = each$1; var eachAxisDim = eachAxisDim$1; var DataZoomModel = extendComponentModel({ type: 'dataZoom', dependencies: [ 'xAxis', 'yAxis', 'zAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series' ], /** * @protected */ defaultOption: { zlevel: 0, z: 4, // Higher than normal component (z: 2). orient: null, // Default auto by axisIndex. Possible value: 'horizontal', 'vertical'. xAxisIndex: null, // Default the first horizontal category axis. yAxisIndex: null, // Default the first vertical category axis. filterMode: 'filter', // Possible values: 'filter' or 'empty' or 'weakFilter'. // 'filter': data items which are out of window will be removed. This option is // applicable when filtering outliers. For each data item, it will be // filtered if one of the relevant dimensions is out of the window. // 'weakFilter': data items which are out of window will be removed. This option // is applicable when filtering outliers. For each data item, it will be // filtered only if all of the relevant dimensions are out of the same // side of the window. // 'empty': data items which are out of window will be set to empty. // This option is applicable when user should not neglect // that there are some data items out of window. // 'none': Do not filter. // Taking line chart as an example, line will be broken in // the filtered points when filterModel is set to 'empty', but // be connected when set to 'filter'. throttle: null, // Dispatch action by the fixed rate, avoid frequency. // default 100. Do not throttle when use null/undefined. // If animation === true and animationDurationUpdate > 0, // default value is 100, otherwise 20. start: 0, // Start percent. 0 ~ 100 end: 100, // End percent. 0 ~ 100 startValue: null, // Start value. If startValue specified, start is ignored. endValue: null, // End value. If endValue specified, end is ignored. minSpan: null, // 0 ~ 100 maxSpan: null, // 0 ~ 100 minValueSpan: null, // The range of dataZoom can not be smaller than that. maxValueSpan: null, // The range of dataZoom can not be larger than that. rangeMode: null // Array, can be 'value' or 'percent'. }, /** * @override */ init: function (option, parentModel, ecModel) { /** * key like x_0, y_1 * @private * @type {Object} */ this._dataIntervalByAxis = {}; /** * @private */ this._dataInfo = {}; /** * key like x_0, y_1 * @private */ this._axisProxies = {}; /** * @readOnly */ this.textStyleModel; /** * @private */ this._autoThrottle = true; /** * 'percent' or 'value' * @private */ this._rangePropMode = ['percent', 'percent']; var rawOption = retrieveRaw(option); this.mergeDefaultAndTheme(option, ecModel); this.doInit(rawOption); }, /** * @override */ mergeOption: function (newOption) { var rawOption = retrieveRaw(newOption); //FIX #2591 merge(this.option, newOption, true); this.doInit(rawOption); }, /** * @protected */ doInit: function (rawOption) { var thisOption = this.option; // Disable realtime view update if canvas is not supported. if (!env$1.canvasSupported) { thisOption.realtime = false; } this._setDefaultThrottle(rawOption); updateRangeUse(this, rawOption); each$19([['start', 'startValue'], ['end', 'endValue']], function (names, index) { // start/end has higher priority over startValue/endValue if they // both set, but we should make chart.setOption({endValue: 1000}) // effective, rather than chart.setOption({endValue: 1000, end: null}). if (this._rangePropMode[index] === 'value') { thisOption[names[0]] = null; } // Otherwise do nothing and use the merge result. }, this); this.textStyleModel = this.getModel('textStyle'); this._resetTarget(); this._giveAxisProxies(); }, /** * @private */ _giveAxisProxies: function () { var axisProxies = this._axisProxies; this.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel, ecModel) { var axisModel = this.dependentModels[dimNames.axis][axisIndex]; // If exists, share axisProxy with other dataZoomModels. var axisProxy = axisModel.__dzAxisProxy || ( // Use the first dataZoomModel as the main model of axisProxy. axisModel.__dzAxisProxy = new AxisProxy( dimNames.name, axisIndex, this, ecModel ) ); // FIXME // dispose __dzAxisProxy axisProxies[dimNames.name + '_' + axisIndex] = axisProxy; }, this); }, /** * @private */ _resetTarget: function () { var thisOption = this.option; var autoMode = this._judgeAutoMode(); eachAxisDim(function (dimNames) { var axisIndexName = dimNames.axisIndex; thisOption[axisIndexName] = normalizeToArray( thisOption[axisIndexName] ); }, this); if (autoMode === 'axisIndex') { this._autoSetAxisIndex(); } else if (autoMode === 'orient') { this._autoSetOrient(); } }, /** * @private */ _judgeAutoMode: function () { // Auto set only works for setOption at the first time. // The following is user's reponsibility. So using merged // option is OK. var thisOption = this.option; var hasIndexSpecified = false; eachAxisDim(function (dimNames) { // When user set axisIndex as a empty array, we think that user specify axisIndex // but do not want use auto mode. Because empty array may be encountered when // some error occured. if (thisOption[dimNames.axisIndex] != null) { hasIndexSpecified = true; } }, this); var orient = thisOption.orient; if (orient == null && hasIndexSpecified) { return 'orient'; } else if (!hasIndexSpecified) { if (orient == null) { thisOption.orient = 'horizontal'; } return 'axisIndex'; } }, /** * @private */ _autoSetAxisIndex: function () { var autoAxisIndex = true; var orient = this.get('orient', true); var thisOption = this.option; var dependentModels = this.dependentModels; if (autoAxisIndex) { // Find axis that parallel to dataZoom as default. var dimName = orient === 'vertical' ? 'y' : 'x'; if (dependentModels[dimName + 'Axis'].length) { thisOption[dimName + 'AxisIndex'] = [0]; autoAxisIndex = false; } else { each$19(dependentModels.singleAxis, function (singleAxisModel) { if (autoAxisIndex && singleAxisModel.get('orient', true) === orient) { thisOption.singleAxisIndex = [singleAxisModel.componentIndex]; autoAxisIndex = false; } }); } } if (autoAxisIndex) { // Find the first category axis as default. (consider polar) eachAxisDim(function (dimNames) { if (!autoAxisIndex) { return; } var axisIndices = []; var axisModels = this.dependentModels[dimNames.axis]; if (axisModels.length && !axisIndices.length) { for (var i = 0, len = axisModels.length; i < len; i++) { if (axisModels[i].get('type') === 'category') { axisIndices.push(i); } } } thisOption[dimNames.axisIndex] = axisIndices; if (axisIndices.length) { autoAxisIndex = false; } }, this); } if (autoAxisIndex) { // FIXME // 这里是兼容ec2的写法(没指定xAxisIndex和yAxisIndex时把scatter和双数值轴折柱纳入dataZoom控制), // 但是实际是否需要Grid.js#getScaleByOption来判断(考虑time,log等axis type)? // If both dataZoom.xAxisIndex and dataZoom.yAxisIndex is not specified, // dataZoom component auto adopts series that reference to // both xAxis and yAxis which type is 'value'. this.ecModel.eachSeries(function (seriesModel) { if (this._isSeriesHasAllAxesTypeOf(seriesModel, 'value')) { eachAxisDim(function (dimNames) { var axisIndices = thisOption[dimNames.axisIndex]; var axisIndex = seriesModel.get(dimNames.axisIndex); var axisId = seriesModel.get(dimNames.axisId); var axisModel = seriesModel.ecModel.queryComponents({ mainType: dimNames.axis, index: axisIndex, id: axisId })[0]; if (__DEV__) { if (!axisModel) { throw new Error( dimNames.axis + ' "' + retrieve( axisIndex, axisId, 0 ) + '" not found' ); } } axisIndex = axisModel.componentIndex; if (indexOf(axisIndices, axisIndex) < 0) { axisIndices.push(axisIndex); } }); } }, this); } }, /** * @private */ _autoSetOrient: function () { var dim; // Find the first axis this.eachTargetAxis(function (dimNames) { !dim && (dim = dimNames.name); }, this); this.option.orient = dim === 'y' ? 'vertical' : 'horizontal'; }, /** * @private */ _isSeriesHasAllAxesTypeOf: function (seriesModel, axisType) { // FIXME // 需要series的xAxisIndex和yAxisIndex都首先自动设置上。 // 例如series.type === scatter时。 var is = true; eachAxisDim(function (dimNames) { var seriesAxisIndex = seriesModel.get(dimNames.axisIndex); var axisModel = this.dependentModels[dimNames.axis][seriesAxisIndex]; if (!axisModel || axisModel.get('type') !== axisType) { is = false; } }, this); return is; }, /** * @private */ _setDefaultThrottle: function (rawOption) { // When first time user set throttle, auto throttle ends. if (rawOption.hasOwnProperty('throttle')) { this._autoThrottle = false; } if (this._autoThrottle) { var globalOption = this.ecModel.option; this.option.throttle = (globalOption.animation && globalOption.animationDurationUpdate > 0) ? 100 : 20; } }, /** * @public */ getFirstTargetAxisModel: function () { var firstAxisModel; eachAxisDim(function (dimNames) { if (firstAxisModel == null) { var indices = this.get(dimNames.axisIndex); if (indices.length) { firstAxisModel = this.dependentModels[dimNames.axis][indices[0]]; } } }, this); return firstAxisModel; }, /** * @public * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel */ eachTargetAxis: function (callback, context) { var ecModel = this.ecModel; eachAxisDim(function (dimNames) { each$19( this.get(dimNames.axisIndex), function (axisIndex) { callback.call(context, dimNames, axisIndex, this, ecModel); }, this ); }, this); }, /** * @param {string} dimName * @param {number} axisIndex * @return {module:echarts/component/dataZoom/AxisProxy} If not found, return null/undefined. */ getAxisProxy: function (dimName, axisIndex) { return this._axisProxies[dimName + '_' + axisIndex]; }, /** * @param {string} dimName * @param {number} axisIndex * @return {module:echarts/model/Model} If not found, return null/undefined. */ getAxisModel: function (dimName, axisIndex) { var axisProxy = this.getAxisProxy(dimName, axisIndex); return axisProxy && axisProxy.getAxisModel(); }, /** * If not specified, set to undefined. * * @public * @param {Object} opt * @param {number} [opt.start] * @param {number} [opt.end] * @param {number} [opt.startValue] * @param {number} [opt.endValue] * @param {boolean} [ignoreUpdateRangeUsg=false] */ setRawRange: function (opt, ignoreUpdateRangeUsg) { var option = this.option; each$19([['start', 'startValue'], ['end', 'endValue']], function (names) { // If only one of 'start' and 'startValue' is not null/undefined, the other // should be cleared, which enable clear the option. // If both of them are not set, keep option with the original value, which // enable use only set start but not set end when calling `dispatchAction`. // The same as 'end' and 'endValue'. if (opt[names[0]] != null || opt[names[1]] != null) { option[names[0]] = opt[names[0]]; option[names[1]] = opt[names[1]]; } }, this); !ignoreUpdateRangeUsg && updateRangeUse(this, opt); }, /** * @public * @return {Array.} [startPercent, endPercent] */ getPercentRange: function () { var axisProxy = this.findRepresentativeAxisProxy(); if (axisProxy) { return axisProxy.getDataPercentWindow(); } }, /** * @public * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0); * * @param {string} [axisDimName] * @param {number} [axisIndex] * @return {Array.} [startValue, endValue] value can only be '-' or finite number. */ getValueRange: function (axisDimName, axisIndex) { if (axisDimName == null && axisIndex == null) { var axisProxy = this.findRepresentativeAxisProxy(); if (axisProxy) { return axisProxy.getDataValueWindow(); } } else { return this.getAxisProxy(axisDimName, axisIndex).getDataValueWindow(); } }, /** * @public * @param {module:echarts/model/Model} [axisModel] If axisModel given, find axisProxy * corresponding to the axisModel * @return {module:echarts/component/dataZoom/AxisProxy} */ findRepresentativeAxisProxy: function (axisModel) { if (axisModel) { return axisModel.__dzAxisProxy; } // Find the first hosted axisProxy var axisProxies = this._axisProxies; for (var key in axisProxies) { if (axisProxies.hasOwnProperty(key) && axisProxies[key].hostedBy(this)) { return axisProxies[key]; } } // If no hosted axis find not hosted axisProxy. // Consider this case: dataZoomModel1 and dataZoomModel2 control the same axis, // and the option.start or option.end settings are different. The percentRange // should follow axisProxy. // (We encounter this problem in toolbox data zoom.) for (var key in axisProxies) { if (axisProxies.hasOwnProperty(key) && !axisProxies[key].hostedBy(this)) { return axisProxies[key]; } } }, /** * @return {Array.} */ getRangePropMode: function () { return this._rangePropMode.slice(); } }); function retrieveRaw(option) { var ret = {}; each$19( ['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) { option.hasOwnProperty(name) && (ret[name] = option[name]); } ); return ret; } function updateRangeUse(dataZoomModel, rawOption) { var rangePropMode = dataZoomModel._rangePropMode; var rangeModeInOption = dataZoomModel.get('rangeMode'); each$19([['start', 'startValue'], ['end', 'endValue']], function (names, index) { var percentSpecified = rawOption[names[0]] != null; var valueSpecified = rawOption[names[1]] != null; if (percentSpecified && !valueSpecified) { rangePropMode[index] = 'percent'; } else if (!percentSpecified && valueSpecified) { rangePropMode[index] = 'value'; } else if (rangeModeInOption) { rangePropMode[index] = rangeModeInOption[index]; } else if (percentSpecified) { // percentSpecified && valueSpecified rangePropMode[index] = 'percent'; } // else remain its original setting. }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DataZoomView = Component$1.extend({ type: 'dataZoom', render: function (dataZoomModel, ecModel, api, payload) { this.dataZoomModel = dataZoomModel; this.ecModel = ecModel; this.api = api; }, /** * Find the first target coordinate system. * * @protected * @return {Object} { * grid: [ * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1}, * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0}, * ... * ], // cartesians must not be null/undefined. * polar: [ * {model: coord0, axisModels: [axis4], coordIndex: 0}, * ... * ], // polars must not be null/undefined. * singleAxis: [ * {model: coord0, axisModels: [], coordIndex: 0} * ] */ getTargetCoordInfo: function () { var dataZoomModel = this.dataZoomModel; var ecModel = this.ecModel; var coordSysLists = {}; dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) { var axisModel = ecModel.getComponent(dimNames.axis, axisIndex); if (axisModel) { var coordModel = axisModel.getCoordSysModel(); coordModel && save( coordModel, axisModel, coordSysLists[coordModel.mainType] || (coordSysLists[coordModel.mainType] = []), coordModel.componentIndex ); } }, this); function save(coordModel, axisModel, store, coordIndex) { var item; for (var i = 0; i < store.length; i++) { if (store[i].model === coordModel) { item = store[i]; break; } } if (!item) { store.push(item = { model: coordModel, axisModels: [], coordIndex: coordIndex }); } item.axisModels.push(axisModel); } return coordSysLists; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ DataZoomModel.extend({ type: 'dataZoom.select' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ DataZoomView.extend({ type: 'dataZoom.select' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerProcessor({ // `dataZoomProcessor` will only be performed in needed series. Consider if // there is a line series and a pie series, it is better not to update the // line series if only pie series is needed to be updated. getTargetSeries: function (ecModel) { var seriesModelMap = createHashMap(); ecModel.eachComponent('dataZoom', function (dataZoomModel) { dataZoomModel.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel) { var axisProxy = dataZoomModel.getAxisProxy(dimNames.name, axisIndex); each$1(axisProxy.getTargetSeriesModels(), function (seriesModel) { seriesModelMap.set(seriesModel.uid, seriesModel); }); }); }); return seriesModelMap; }, modifyOutputEnd: true, // Consider appendData, where filter should be performed. Because data process is // in block mode currently, it is not need to worry about that the overallProgress // execute every frame. overallReset: function (ecModel, api) { ecModel.eachComponent('dataZoom', function (dataZoomModel) { // We calculate window and reset axis here but not in model // init stage and not after action dispatch handler, because // reset should be called after seriesData.restoreData. dataZoomModel.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel) { dataZoomModel.getAxisProxy(dimNames.name, axisIndex).reset(dataZoomModel, api); }); // Caution: data zoom filtering is order sensitive when using // percent range and no min/max/scale set on axis. // For example, we have dataZoom definition: // [ // {xAxisIndex: 0, start: 30, end: 70}, // {yAxisIndex: 0, start: 20, end: 80} // ] // In this case, [20, 80] of y-dataZoom should be based on data // that have filtered by x-dataZoom using range of [30, 70], // but should not be based on full raw data. Thus sliding // x-dataZoom will change both ranges of xAxis and yAxis, // while sliding y-dataZoom will only change the range of yAxis. // So we should filter x-axis after reset x-axis immediately, // and then reset y-axis and filter y-axis. dataZoomModel.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel) { dataZoomModel.getAxisProxy(dimNames.name, axisIndex).filterData(dataZoomModel, api); }); }); ecModel.eachComponent('dataZoom', function (dataZoomModel) { // Fullfill all of the range props so that user // is able to get them from chart.getOption(). var axisProxy = dataZoomModel.findRepresentativeAxisProxy(); var percentRange = axisProxy.getDataPercentWindow(); var valueRange = axisProxy.getDataValueWindow(); dataZoomModel.setRawRange({ start: percentRange[0], end: percentRange[1], startValue: valueRange[0], endValue: valueRange[1] }, true); }); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerAction('dataZoom', function (payload, ecModel) { var linkedNodesFinder = createLinkedNodesFinder( bind(ecModel.eachComponent, ecModel, 'dataZoom'), eachAxisDim$1, function (model, dimNames) { return model.get(dimNames.axisIndex); } ); var effectedModels = []; ecModel.eachComponent( {mainType: 'dataZoom', query: payload}, function (model, index) { effectedModels.push.apply( effectedModels, linkedNodesFinder(model).nodes ); } ); each$1(effectedModels, function (dataZoomModel, index) { dataZoomModel.setRawRange({ start: payload.start, end: payload.end, startValue: payload.startValue, endValue: payload.endValue }); }); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Only work for toolbox dataZoom. User * MUST NOT import this module directly. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Use dataZoomSelect var dataZoomLang = lang.toolbox.dataZoom; var each$16 = each$1; // Spectial component id start with \0ec\0, see echarts/model/Global.js~hasInnerId var DATA_ZOOM_ID_BASE = '\0_ec_\0toolbox-dataZoom_'; function DataZoom(model, ecModel, api) { /** * @private * @type {module:echarts/component/helper/BrushController} */ (this._brushController = new BrushController(api.getZr())) .on('brush', bind(this._onBrush, this)) .mount(); /** * @private * @type {boolean} */ this._isZoomActive; } DataZoom.defaultOption = { show: true, // Icon group icon: { zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1', back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26' }, // `zoom`, `back` title: clone(dataZoomLang.title) }; var proto$4 = DataZoom.prototype; proto$4.render = function (featureModel, ecModel, api, payload) { this.model = featureModel; this.ecModel = ecModel; this.api = api; updateZoomBtnStatus(featureModel, ecModel, this, payload, api); updateBackBtnStatus(featureModel, ecModel); }; proto$4.onclick = function (ecModel, api, type) { handlers$1[type].call(this); }; proto$4.remove = function (ecModel, api) { this._brushController.unmount(); }; proto$4.dispose = function (ecModel, api) { this._brushController.dispose(); }; /** * @private */ var handlers$1 = { zoom: function () { var nextActive = !this._isZoomActive; this.api.dispatchAction({ type: 'takeGlobalCursor', key: 'dataZoomSelect', dataZoomSelectActive: nextActive }); }, back: function () { this._dispatchZoomAction(pop(this.ecModel)); } }; /** * @private */ proto$4._onBrush = function (areas, opt) { if (!opt.isEnd || !areas.length) { return; } var snapshot = {}; var ecModel = this.ecModel; this._brushController.updateCovers([]); // remove cover var brushTargetManager = new BrushTargetManager( retrieveAxisSetting(this.model.option), ecModel, {include: ['grid']} ); brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) { if (coordSys.type !== 'cartesian2d') { return; } var brushType = area.brushType; if (brushType === 'rect') { setBatch('x', coordSys, coordRange[0]); setBatch('y', coordSys, coordRange[1]); } else { setBatch(({lineX: 'x', lineY: 'y'})[brushType], coordSys, coordRange); } }); push(ecModel, snapshot); this._dispatchZoomAction(snapshot); function setBatch(dimName, coordSys, minMax) { var axis = coordSys.getAxis(dimName); var axisModel = axis.model; var dataZoomModel = findDataZoom(dimName, axisModel, ecModel); // Restrict range. var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan(); if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) { minMax = sliderMove( 0, minMax.slice(), axis.scale.getExtent(), 0, minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan ); } dataZoomModel && (snapshot[dataZoomModel.id] = { dataZoomId: dataZoomModel.id, startValue: minMax[0], endValue: minMax[1] }); } function findDataZoom(dimName, axisModel, ecModel) { var found; ecModel.eachComponent({mainType: 'dataZoom', subType: 'select'}, function (dzModel) { var has = dzModel.getAxisModel(dimName, axisModel.componentIndex); has && (found = dzModel); }); return found; } }; /** * @private */ proto$4._dispatchZoomAction = function (snapshot) { var batch = []; // Convert from hash map to array. each$16(snapshot, function (batchItem, dataZoomId) { batch.push(clone(batchItem)); }); batch.length && this.api.dispatchAction({ type: 'dataZoom', from: this.uid, batch: batch }); }; function retrieveAxisSetting(option) { var setting = {}; // Compatible with previous setting: null => all axis, false => no axis. each$1(['xAxisIndex', 'yAxisIndex'], function (name) { setting[name] = option[name]; setting[name] == null && (setting[name] = 'all'); (setting[name] === false || setting[name] === 'none') && (setting[name] = []); }); return setting; } function updateBackBtnStatus(featureModel, ecModel) { featureModel.setIconStatus( 'back', count(ecModel) > 1 ? 'emphasis' : 'normal' ); } function updateZoomBtnStatus(featureModel, ecModel, view, payload, api) { var zoomActive = view._isZoomActive; if (payload && payload.type === 'takeGlobalCursor') { zoomActive = payload.key === 'dataZoomSelect' ? payload.dataZoomSelectActive : false; } view._isZoomActive = zoomActive; featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal'); var brushTargetManager = new BrushTargetManager( retrieveAxisSetting(featureModel.option), ecModel, {include: ['grid']} ); view._brushController .setPanels(brushTargetManager.makePanelOpts(api, function (targetInfo) { return (targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared) ? 'lineX' : (!targetInfo.xAxisDeclared && targetInfo.yAxisDeclared) ? 'lineY' : 'rect'; })) .enableBrush( zoomActive ? { brushType: 'auto', brushStyle: { // FIXME user customized? lineWidth: 0, fill: 'rgba(0,0,0,0.2)' } } : false ); } register$1('dataZoom', DataZoom); // Create special dataZoom option for select // FIXME consider the case of merge option, where axes options are not exists. registerPreprocessor(function (option) { if (!option) { return; } var dataZoomOpts = option.dataZoom || (option.dataZoom = []); if (!isArray(dataZoomOpts)) { option.dataZoom = dataZoomOpts = [dataZoomOpts]; } var toolboxOpt = option.toolbox; if (toolboxOpt) { // Assume there is only one toolbox if (isArray(toolboxOpt)) { toolboxOpt = toolboxOpt[0]; } if (toolboxOpt && toolboxOpt.feature) { var dataZoomOpt = toolboxOpt.feature.dataZoom; // FIXME: If add dataZoom when setOption in merge mode, // no axis info to be added. See `test/dataZoom-extreme.html` addForAxis('xAxis', dataZoomOpt); addForAxis('yAxis', dataZoomOpt); } } function addForAxis(axisName, dataZoomOpt) { if (!dataZoomOpt) { return; } // Try not to modify model, because it is not merged yet. var axisIndicesName = axisName + 'Index'; var givenAxisIndices = dataZoomOpt[axisIndicesName]; if (givenAxisIndices != null && givenAxisIndices !== 'all' && !isArray(givenAxisIndices) ) { givenAxisIndices = (givenAxisIndices === false || givenAxisIndices === 'none') ? [] : [givenAxisIndices]; } forEachComponent(axisName, function (axisOpt, axisIndex) { if (givenAxisIndices != null && givenAxisIndices !== 'all' && indexOf(givenAxisIndices, axisIndex) === -1 ) { return; } var newOpt = { type: 'select', $fromToolbox: true, // Id for merge mapping. id: DATA_ZOOM_ID_BASE + axisName + axisIndex }; // FIXME // Only support one axis now. newOpt[axisIndicesName] = axisIndex; dataZoomOpts.push(newOpt); }); } function forEachComponent(mainType, cb) { var opts = option[mainType]; if (!isArray(opts)) { opts = opts ? [opts] : []; } each$16(opts, cb); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var restoreLang = lang.toolbox.restore; function Restore(model) { this.model = model; } Restore.defaultOption = { show: true, /* eslint-disable */ icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5', /* eslint-enable */ title: restoreLang.title }; var proto$6 = Restore.prototype; proto$6.onclick = function (ecModel, api, type) { clear$1(ecModel); api.dispatchAction({ type: 'restore', from: this.uid }); }; register$1('restore', Restore); registerAction( {type: 'restore', event: 'restore', update: 'prepareAndUpdate'}, function (payload, ecModel) { ecModel.resetOption('recreate'); } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentModel({ type: 'tooltip', dependencies: ['axisPointer'], defaultOption: { zlevel: 0, z: 60, show: true, // tooltip主体内容 showContent: true, // 'trigger' only works on coordinate system. // 'item' | 'axis' | 'none' trigger: 'item', // 'click' | 'mousemove' | 'none' triggerOn: 'mousemove|click', alwaysShowContent: false, displayMode: 'single', // 'single' | 'multipleByCoordSys' renderMode: 'auto', // 'auto' | 'html' | 'richText' // 'auto': use html by default, and use non-html if `document` is not defined // 'html': use html for tooltip // 'richText': use canvas, svg, and etc. for tooltip // 位置 {Array} | {Function} // position: null // Consider triggered from axisPointer handle, verticalAlign should be 'middle' // align: null, // verticalAlign: null, // 是否约束 content 在 viewRect 中。默认 false 是为了兼容以前版本。 confine: false, // 内容格式器:{string}(Template) ¦ {Function} // formatter: null showDelay: 0, // 隐藏延迟,单位ms hideDelay: 100, // 动画变换时间,单位s transitionDuration: 0.4, enterable: false, // 提示背景颜色,默认为透明度为0.7的黑色 backgroundColor: 'rgba(50,50,50,0.7)', // 提示边框颜色 borderColor: '#333', // 提示边框圆角,单位px,默认为4 borderRadius: 4, // 提示边框线宽,单位px,默认为0(无边框) borderWidth: 0, // 提示内边距,单位px,默认各方向内边距为5, // 接受数组分别设定上右下左边距,同css padding: 5, // Extra css text extraCssText: '', // 坐标轴指示器,坐标轴触发有效 axisPointer: { // 默认为直线 // 可选为:'line' | 'shadow' | 'cross' type: 'line', // type 为 line 的时候有效,指定 tooltip line 所在的轴,可选 // 可选 'x' | 'y' | 'angle' | 'radius' | 'auto' // 默认 'auto',会选择类型为 category 的轴,对于双数值轴,笛卡尔坐标系会默认选择 x 轴 // 极坐标系会默认选择 angle 轴 axis: 'auto', animation: 'auto', animationDurationUpdate: 200, animationEasingUpdate: 'exponentialOut', crossStyle: { color: '#999', width: 1, type: 'dashed', // TODO formatter textStyle: {} } // lineStyle and shadowStyle should not be specified here, // otherwise it will always override those styles on option.axisPointer. }, textStyle: { color: '#fff', fontSize: 14 } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$22 = each$1; var toCamelCase$1 = toCamelCase; var vendors = ['', '-webkit-', '-moz-', '-o-']; var gCssText = 'position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;'; /** * @param {number} duration * @return {string} * @inner */ function assembleTransition(duration) { var transitionCurve = 'cubic-bezier(0.23, 1, 0.32, 1)'; var transitionText = 'left ' + duration + 's ' + transitionCurve + ',' + 'top ' + duration + 's ' + transitionCurve; return map(vendors, function (vendorPrefix) { return vendorPrefix + 'transition:' + transitionText; }).join(';'); } /** * @param {Object} textStyle * @return {string} * @inner */ function assembleFont(textStyleModel) { var cssText = []; var fontSize = textStyleModel.get('fontSize'); var color = textStyleModel.getTextColor(); color && cssText.push('color:' + color); cssText.push('font:' + textStyleModel.getFont()); fontSize && cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px'); each$22(['decoration', 'align'], function (name) { var val = textStyleModel.get(name); val && cssText.push('text-' + name + ':' + val); }); return cssText.join(';'); } /** * @param {Object} tooltipModel * @return {string} * @inner */ function assembleCssText(tooltipModel) { var cssText = []; var transitionDuration = tooltipModel.get('transitionDuration'); var backgroundColor = tooltipModel.get('backgroundColor'); var textStyleModel = tooltipModel.getModel('textStyle'); var padding = tooltipModel.get('padding'); // Animation transition. Do not animate when transitionDuration is 0. transitionDuration && cssText.push(assembleTransition(transitionDuration)); if (backgroundColor) { if (env$1.canvasSupported) { cssText.push('background-Color:' + backgroundColor); } else { // for ie cssText.push( 'background-Color:#' + toHex(backgroundColor) ); cssText.push('filter:alpha(opacity=70)'); } } // Border style each$22(['width', 'color', 'radius'], function (name) { var borderName = 'border-' + name; var camelCase = toCamelCase$1(borderName); var val = tooltipModel.get(camelCase); val != null && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px')); }); // Text style cssText.push(assembleFont(textStyleModel)); // Padding if (padding != null) { cssText.push('padding:' + normalizeCssArray$1(padding).join('px ') + 'px'); } return cssText.join(';') + ';'; } /** * @alias module:echarts/component/tooltip/TooltipContent * @constructor */ function TooltipContent(container, api) { if (env$1.wxa) { return null; } var el = document.createElement('div'); var zr = this._zr = api.getZr(); this.el = el; this._x = api.getWidth() / 2; this._y = api.getHeight() / 2; container.appendChild(el); this._container = container; this._show = false; /** * @private */ this._hideTimeout; // FIXME // Is it needed to trigger zr event manually if // the browser do not support `pointer-events: none`. var self = this; el.onmouseenter = function () { // clear the timeout in hideLater and keep showing tooltip if (self._enterable) { clearTimeout(self._hideTimeout); self._show = true; } self._inContent = true; }; el.onmousemove = function (e) { e = e || window.event; if (!self._enterable) { // `pointer-events: none` is set to tooltip content div // if `enterable` is set as `false`, and `el.onmousemove` // can not be triggered. But in browser that do not // support `pointer-events`, we need to do this: // Try trigger zrender event to avoid mouse // in and out shape too frequently var handler = zr.handler; normalizeEvent(container, e, true); handler.dispatch('mousemove', e); } }; el.onmouseleave = function () { if (self._enterable) { if (self._show) { self.hideLater(self._hideDelay); } } self._inContent = false; }; } TooltipContent.prototype = { constructor: TooltipContent, /** * @private * @type {boolean} */ _enterable: true, /** * Update when tooltip is rendered */ update: function () { // FIXME // Move this logic to ec main? var container = this._container; var stl = container.currentStyle || document.defaultView.getComputedStyle(container); var domStyle = container.style; if (domStyle.position !== 'absolute' && stl.position !== 'absolute') { domStyle.position = 'relative'; } // Hide the tooltip // PENDING // this.hide(); }, show: function (tooltipModel) { clearTimeout(this._hideTimeout); var el = this.el; el.style.cssText = gCssText + assembleCssText(tooltipModel) // Because of the reason described in: // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore // we should set initial value to `left` and `top`. + ';left:' + this._x + 'px;top:' + this._y + 'px;' + (tooltipModel.get('extraCssText') || ''); el.style.display = el.innerHTML ? 'block' : 'none'; // If mouse occsionally move over the tooltip, a mouseout event will be // triggered by canvas, and cuase some unexpectable result like dragging // stop, "unfocusAdjacency". Here `pointer-events: none` is used to solve // it. Although it is not suppored by IE8~IE10, fortunately it is a rare // scenario. el.style.pointerEvents = this._enterable ? 'auto' : 'none'; this._show = true; }, setContent: function (content) { this.el.innerHTML = content == null ? '' : content; }, setEnterable: function (enterable) { this._enterable = enterable; }, getSize: function () { var el = this.el; return [el.clientWidth, el.clientHeight]; }, moveTo: function (x, y) { // xy should be based on canvas root. But tooltipContent is // the sibling of canvas root. So padding of ec container // should be considered here. var zr = this._zr; var viewportRootOffset; if (zr && zr.painter && (viewportRootOffset = zr.painter.getViewportRootOffset())) { x += viewportRootOffset.offsetLeft; y += viewportRootOffset.offsetTop; } var style = this.el.style; style.left = x + 'px'; style.top = y + 'px'; this._x = x; this._y = y; }, hide: function () { this.el.style.display = 'none'; this._show = false; }, hideLater: function (time) { if (this._show && !(this._inContent && this._enterable)) { if (time) { this._hideDelay = time; // Set show false to avoid invoke hideLater mutiple times this._show = false; this._hideTimeout = setTimeout(bind(this.hide, this), time); } else { this.hide(); } } }, isShow: function () { return this._show; }, getOuterSize: function () { var width = this.el.clientWidth; var height = this.el.clientHeight; // Consider browser compatibility. // IE8 does not support getComputedStyle. if (document.defaultView && document.defaultView.getComputedStyle) { var stl = document.defaultView.getComputedStyle(this.el); if (stl) { width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10); height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10); } } return {width: width, height: height}; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import Group from 'zrender/src/container/Group'; /** * @alias module:echarts/component/tooltip/TooltipRichContent * @constructor */ function TooltipRichContent(api) { this._zr = api.getZr(); this._show = false; /** * @private */ this._hideTimeout; } TooltipRichContent.prototype = { constructor: TooltipRichContent, /** * @private * @type {boolean} */ _enterable: true, /** * Update when tooltip is rendered */ update: function () { // noop }, show: function (tooltipModel) { if (this._hideTimeout) { clearTimeout(this._hideTimeout); } this.el.attr('show', true); this._show = true; }, /** * Set tooltip content * * @param {string} content rich text string of content * @param {Object} markerRich rich text style * @param {Object} tooltipModel tooltip model */ setContent: function (content, markerRich, tooltipModel) { if (this.el) { this._zr.remove(this.el); } var markers = {}; var text = content; var prefix = '{marker'; var suffix = '|}'; var startId = text.indexOf(prefix); while (startId >= 0) { var endId = text.indexOf(suffix); var name = text.substr(startId + prefix.length, endId - startId - prefix.length); if (name.indexOf('sub') > -1) { markers['marker' + name] = { textWidth: 4, textHeight: 4, textBorderRadius: 2, textBackgroundColor: markerRich[name], // TODO: textOffset is not implemented for rich text textOffset: [3, 0] }; } else { markers['marker' + name] = { textWidth: 10, textHeight: 10, textBorderRadius: 5, textBackgroundColor: markerRich[name] }; } text = text.substr(endId + 1); startId = text.indexOf('{marker'); } this.el = new Text({ style: { rich: markers, text: content, textLineHeight: 20, textBackgroundColor: tooltipModel.get('backgroundColor'), textBorderRadius: tooltipModel.get('borderRadius'), textFill: tooltipModel.get('textStyle.color'), textPadding: tooltipModel.get('padding') }, z: tooltipModel.get('z') }); this._zr.add(this.el); var self = this; this.el.on('mouseover', function () { // clear the timeout in hideLater and keep showing tooltip if (self._enterable) { clearTimeout(self._hideTimeout); self._show = true; } self._inContent = true; }); this.el.on('mouseout', function () { if (self._enterable) { if (self._show) { self.hideLater(self._hideDelay); } } self._inContent = false; }); }, setEnterable: function (enterable) { this._enterable = enterable; }, getSize: function () { var bounding = this.el.getBoundingRect(); return [bounding.width, bounding.height]; }, moveTo: function (x, y) { if (this.el) { this.el.attr('position', [x, y]); } }, hide: function () { if (this.el) { this.el.hide(); } this._show = false; }, hideLater: function (time) { if (this._show && !(this._inContent && this._enterable)) { if (time) { this._hideDelay = time; // Set show false to avoid invoke hideLater mutiple times this._show = false; this._hideTimeout = setTimeout(bind(this.hide, this), time); } else { this.hide(); } } }, isShow: function () { return this._show; }, getOuterSize: function () { var size = this.getSize(); return { width: size[0], height: size[1] }; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var bind$3 = bind; var each$21 = each$1; var parsePercent$2 = parsePercent$1; var proxyRect = new Rect({ shape: {x: -1, y: -1, width: 2, height: 2} }); extendComponentView({ type: 'tooltip', init: function (ecModel, api) { if (env$1.node) { return; } var tooltipModel = ecModel.getComponent('tooltip'); var renderMode = tooltipModel.get('renderMode'); this._renderMode = getTooltipRenderMode(renderMode); var tooltipContent; if (this._renderMode === 'html') { tooltipContent = new TooltipContent(api.getDom(), api); this._newLine = '
    '; } else { tooltipContent = new TooltipRichContent(api); this._newLine = '\n'; } this._tooltipContent = tooltipContent; }, render: function (tooltipModel, ecModel, api) { if (env$1.node) { return; } // Reset this.group.removeAll(); /** * @private * @type {module:echarts/component/tooltip/TooltipModel} */ this._tooltipModel = tooltipModel; /** * @private * @type {module:echarts/model/Global} */ this._ecModel = ecModel; /** * @private * @type {module:echarts/ExtensionAPI} */ this._api = api; /** * Should be cleaned when render. * @private * @type {Array.>} */ this._lastDataByCoordSys = null; /** * @private * @type {boolean} */ this._alwaysShowContent = tooltipModel.get('alwaysShowContent'); var tooltipContent = this._tooltipContent; tooltipContent.update(); tooltipContent.setEnterable(tooltipModel.get('enterable')); this._initGlobalListener(); this._keepShow(); }, _initGlobalListener: function () { var tooltipModel = this._tooltipModel; var triggerOn = tooltipModel.get('triggerOn'); register( 'itemTooltip', this._api, bind$3(function (currTrigger, e, dispatchAction) { // If 'none', it is not controlled by mouse totally. if (triggerOn !== 'none') { if (triggerOn.indexOf(currTrigger) >= 0) { this._tryShow(e, dispatchAction); } else if (currTrigger === 'leave') { this._hide(dispatchAction); } } }, this) ); }, _keepShow: function () { var tooltipModel = this._tooltipModel; var ecModel = this._ecModel; var api = this._api; // Try to keep the tooltip show when refreshing if (this._lastX != null && this._lastY != null // When user is willing to control tooltip totally using API, // self.manuallyShowTip({x, y}) might cause tooltip hide, // which is not expected. && tooltipModel.get('triggerOn') !== 'none' ) { var self = this; clearTimeout(this._refreshUpdateTimeout); this._refreshUpdateTimeout = setTimeout(function () { // Show tip next tick after other charts are rendered // In case highlight action has wrong result // FIXME !api.isDisposed() && self.manuallyShowTip(tooltipModel, ecModel, api, { x: self._lastX, y: self._lastY }); }); } }, /** * Show tip manually by * dispatchAction({ * type: 'showTip', * x: 10, * y: 10 * }); * Or * dispatchAction({ * type: 'showTip', * seriesIndex: 0, * dataIndex or dataIndexInside or name * }); * * TODO Batch */ manuallyShowTip: function (tooltipModel, ecModel, api, payload) { if (payload.from === this.uid || env$1.node) { return; } var dispatchAction = makeDispatchAction$1(payload, api); // Reset ticket this._ticket = ''; // When triggered from axisPointer. var dataByCoordSys = payload.dataByCoordSys; if (payload.tooltip && payload.x != null && payload.y != null) { var el = proxyRect; el.position = [payload.x, payload.y]; el.update(); el.tooltip = payload.tooltip; // Manually show tooltip while view is not using zrender elements. this._tryShow({ offsetX: payload.x, offsetY: payload.y, target: el }, dispatchAction); } else if (dataByCoordSys) { this._tryShow({ offsetX: payload.x, offsetY: payload.y, position: payload.position, event: {}, dataByCoordSys: payload.dataByCoordSys, tooltipOption: payload.tooltipOption }, dispatchAction); } else if (payload.seriesIndex != null) { if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) { return; } var pointInfo = findPointFromSeries(payload, ecModel); var cx = pointInfo.point[0]; var cy = pointInfo.point[1]; if (cx != null && cy != null) { this._tryShow({ offsetX: cx, offsetY: cy, position: payload.position, target: pointInfo.el, event: {} }, dispatchAction); } } else if (payload.x != null && payload.y != null) { // FIXME // should wrap dispatchAction like `axisPointer/globalListener` ? api.dispatchAction({ type: 'updateAxisPointer', x: payload.x, y: payload.y }); this._tryShow({ offsetX: payload.x, offsetY: payload.y, position: payload.position, target: api.getZr().findHover(payload.x, payload.y).target, event: {} }, dispatchAction); } }, manuallyHideTip: function (tooltipModel, ecModel, api, payload) { var tooltipContent = this._tooltipContent; if (!this._alwaysShowContent && this._tooltipModel) { tooltipContent.hideLater(this._tooltipModel.get('hideDelay')); } this._lastX = this._lastY = null; if (payload.from !== this.uid) { this._hide(makeDispatchAction$1(payload, api)); } }, // Be compatible with previous design, that is, when tooltip.type is 'axis' and // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer // and tooltip. _manuallyAxisShowTip: function (tooltipModel, ecModel, api, payload) { var seriesIndex = payload.seriesIndex; var dataIndex = payload.dataIndex; var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) { return; } var seriesModel = ecModel.getSeriesByIndex(seriesIndex); if (!seriesModel) { return; } var data = seriesModel.getData(); var tooltipModel = buildTooltipModel([ data.getItemModel(dataIndex), seriesModel, (seriesModel.coordinateSystem || {}).model, tooltipModel ]); if (tooltipModel.get('trigger') !== 'axis') { return; } api.dispatchAction({ type: 'updateAxisPointer', seriesIndex: seriesIndex, dataIndex: dataIndex, position: payload.position }); return true; }, _tryShow: function (e, dispatchAction) { var el = e.target; var tooltipModel = this._tooltipModel; if (!tooltipModel) { return; } // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed this._lastX = e.offsetX; this._lastY = e.offsetY; var dataByCoordSys = e.dataByCoordSys; if (dataByCoordSys && dataByCoordSys.length) { this._showAxisTooltip(dataByCoordSys, e); } // Always show item tooltip if mouse is on the element with dataIndex else if (el && el.dataIndex != null) { this._lastDataByCoordSys = null; this._showSeriesItemTooltip(e, el, dispatchAction); } // Tooltip provided directly. Like legend. else if (el && el.tooltip) { this._lastDataByCoordSys = null; this._showComponentItemTooltip(e, el, dispatchAction); } else { this._lastDataByCoordSys = null; this._hide(dispatchAction); } }, _showOrMove: function (tooltipModel, cb) { // showDelay is used in this case: tooltip.enterable is set // as true. User intent to move mouse into tooltip and click // something. `showDelay` makes it easyer to enter the content // but tooltip do not move immediately. var delay = tooltipModel.get('showDelay'); cb = bind(cb, this); clearTimeout(this._showTimout); delay > 0 ? (this._showTimout = setTimeout(cb, delay)) : cb(); }, _showAxisTooltip: function (dataByCoordSys, e) { var ecModel = this._ecModel; var globalTooltipModel = this._tooltipModel; var point = [e.offsetX, e.offsetY]; var singleDefaultHTML = []; var singleParamsList = []; var singleTooltipModel = buildTooltipModel([ e.tooltipOption, globalTooltipModel ]); var renderMode = this._renderMode; var newLine = this._newLine; var markers = {}; each$21(dataByCoordSys, function (itemCoordSys) { // var coordParamList = []; // var coordDefaultHTML = []; // var coordTooltipModel = buildTooltipModel([ // e.tooltipOption, // itemCoordSys.tooltipOption, // ecModel.getComponent(itemCoordSys.coordSysMainType, itemCoordSys.coordSysIndex), // globalTooltipModel // ]); // var displayMode = coordTooltipModel.get('displayMode'); // var paramsList = displayMode === 'single' ? singleParamsList : []; each$21(itemCoordSys.dataByAxis, function (item) { var axisModel = ecModel.getComponent(item.axisDim + 'Axis', item.axisIndex); var axisValue = item.value; var seriesDefaultHTML = []; if (!axisModel || axisValue == null) { return; } var valueLabel = getValueLabel( axisValue, axisModel.axis, ecModel, item.seriesDataIndices, item.valueLabelOpt ); each$1(item.seriesDataIndices, function (idxItem) { var series = ecModel.getSeriesByIndex(idxItem.seriesIndex); var dataIndex = idxItem.dataIndexInside; var dataParams = series && series.getDataParams(dataIndex); dataParams.axisDim = item.axisDim; dataParams.axisIndex = item.axisIndex; dataParams.axisType = item.axisType; dataParams.axisId = item.axisId; dataParams.axisValue = getAxisRawValue(axisModel.axis, axisValue); dataParams.axisValueLabel = valueLabel; if (dataParams) { singleParamsList.push(dataParams); var seriesTooltip = series.formatTooltip(dataIndex, true, null, renderMode); var html; if (isObject$1(seriesTooltip)) { html = seriesTooltip.html; var newMarkers = seriesTooltip.markers; merge(markers, newMarkers); } else { html = seriesTooltip; } seriesDefaultHTML.push(html); } }); // Default tooltip content // FIXME // (1) shold be the first data which has name? // (2) themeRiver, firstDataIndex is array, and first line is unnecessary. var firstLine = valueLabel; if (renderMode !== 'html') { singleDefaultHTML.push(seriesDefaultHTML.join(newLine)); } else { singleDefaultHTML.push( (firstLine ? encodeHTML(firstLine) + newLine : '') + seriesDefaultHTML.join(newLine) ); } }); }, this); // In most case, the second axis is shown upper than the first one. singleDefaultHTML.reverse(); singleDefaultHTML = singleDefaultHTML.join(this._newLine + this._newLine); var positionExpr = e.position; this._showOrMove(singleTooltipModel, function () { if (this._updateContentNotChangedOnAxis(dataByCoordSys)) { this._updatePosition( singleTooltipModel, positionExpr, point[0], point[1], this._tooltipContent, singleParamsList ); } else { this._showTooltipContent( singleTooltipModel, singleDefaultHTML, singleParamsList, Math.random(), point[0], point[1], positionExpr, undefined, markers ); } }); // Do not trigger events here, because this branch only be entered // from dispatchAction. }, _showSeriesItemTooltip: function (e, el, dispatchAction) { var ecModel = this._ecModel; // Use dataModel in element if possible // Used when mouseover on a element like markPoint or edge // In which case, the data is not main data in series. var seriesIndex = el.seriesIndex; var seriesModel = ecModel.getSeriesByIndex(seriesIndex); // For example, graph link. var dataModel = el.dataModel || seriesModel; var dataIndex = el.dataIndex; var dataType = el.dataType; var data = dataModel.getData(); var tooltipModel = buildTooltipModel([ data.getItemModel(dataIndex), dataModel, seriesModel && (seriesModel.coordinateSystem || {}).model, this._tooltipModel ]); var tooltipTrigger = tooltipModel.get('trigger'); if (tooltipTrigger != null && tooltipTrigger !== 'item') { return; } var params = dataModel.getDataParams(dataIndex, dataType); var seriesTooltip = dataModel.formatTooltip(dataIndex, false, dataType, this._renderMode); var defaultHtml; var markers; if (isObject$1(seriesTooltip)) { defaultHtml = seriesTooltip.html; markers = seriesTooltip.markers; } else { defaultHtml = seriesTooltip; markers = null; } var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex; this._showOrMove(tooltipModel, function () { this._showTooltipContent( tooltipModel, defaultHtml, params, asyncTicket, e.offsetX, e.offsetY, e.position, e.target, markers ); }); // FIXME // duplicated showtip if manuallyShowTip is called from dispatchAction. dispatchAction({ type: 'showTip', dataIndexInside: dataIndex, dataIndex: data.getRawIndex(dataIndex), seriesIndex: seriesIndex, from: this.uid }); }, _showComponentItemTooltip: function (e, el, dispatchAction) { var tooltipOpt = el.tooltip; if (typeof tooltipOpt === 'string') { var content = tooltipOpt; tooltipOpt = { content: content, // Fixed formatter formatter: content }; } var subTooltipModel = new Model(tooltipOpt, this._tooltipModel, this._ecModel); var defaultHtml = subTooltipModel.get('content'); var asyncTicket = Math.random(); // Do not check whether `trigger` is 'none' here, because `trigger` // only works on cooridinate system. In fact, we have not found case // that requires setting `trigger` nothing on component yet. this._showOrMove(subTooltipModel, function () { this._showTooltipContent( subTooltipModel, defaultHtml, subTooltipModel.get('formatterParams') || {}, asyncTicket, e.offsetX, e.offsetY, e.position, el ); }); // If not dispatch showTip, tip may be hide triggered by axis. dispatchAction({ type: 'showTip', from: this.uid }); }, _showTooltipContent: function ( tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el, markers ) { // Reset ticket this._ticket = ''; if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) { return; } var tooltipContent = this._tooltipContent; var formatter = tooltipModel.get('formatter'); positionExpr = positionExpr || tooltipModel.get('position'); var html = defaultHtml; if (formatter && typeof formatter === 'string') { html = formatTpl(formatter, params, true); } else if (typeof formatter === 'function') { var callback = bind$3(function (cbTicket, html) { if (cbTicket === this._ticket) { tooltipContent.setContent(html, markers, tooltipModel); this._updatePosition( tooltipModel, positionExpr, x, y, tooltipContent, params, el ); } }, this); this._ticket = asyncTicket; html = formatter(params, asyncTicket, callback); } tooltipContent.setContent(html, markers, tooltipModel); tooltipContent.show(tooltipModel); this._updatePosition( tooltipModel, positionExpr, x, y, tooltipContent, params, el ); }, /** * @param {string|Function|Array.|Object} positionExpr * @param {number} x Mouse x * @param {number} y Mouse y * @param {boolean} confine Whether confine tooltip content in view rect. * @param {Object|} params * @param {module:zrender/Element} el target element * @param {module:echarts/ExtensionAPI} api * @return {Array.} */ _updatePosition: function (tooltipModel, positionExpr, x, y, content, params, el) { var viewWidth = this._api.getWidth(); var viewHeight = this._api.getHeight(); positionExpr = positionExpr || tooltipModel.get('position'); var contentSize = content.getSize(); var align = tooltipModel.get('align'); var vAlign = tooltipModel.get('verticalAlign'); var rect = el && el.getBoundingRect().clone(); el && rect.applyTransform(el.transform); if (typeof positionExpr === 'function') { // Callback of position can be an array or a string specify the position positionExpr = positionExpr([x, y], params, content.el, rect, { viewSize: [viewWidth, viewHeight], contentSize: contentSize.slice() }); } if (isArray(positionExpr)) { x = parsePercent$2(positionExpr[0], viewWidth); y = parsePercent$2(positionExpr[1], viewHeight); } else if (isObject$1(positionExpr)) { positionExpr.width = contentSize[0]; positionExpr.height = contentSize[1]; var layoutRect = getLayoutRect( positionExpr, {width: viewWidth, height: viewHeight} ); x = layoutRect.x; y = layoutRect.y; align = null; // When positionExpr is left/top/right/bottom, // align and verticalAlign will not work. vAlign = null; } // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element else if (typeof positionExpr === 'string' && el) { var pos = calcTooltipPosition( positionExpr, rect, contentSize ); x = pos[0]; y = pos[1]; } else { var pos = refixTooltipPosition( x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20 ); x = pos[0]; y = pos[1]; } align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0); vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0); if (tooltipModel.get('confine')) { var pos = confineTooltipPosition( x, y, content, viewWidth, viewHeight ); x = pos[0]; y = pos[1]; } content.moveTo(x, y); }, // FIXME // Should we remove this but leave this to user? _updateContentNotChangedOnAxis: function (dataByCoordSys) { var lastCoordSys = this._lastDataByCoordSys; var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length; contentNotChanged && each$21(lastCoordSys, function (lastItemCoordSys, indexCoordSys) { var lastDataByAxis = lastItemCoordSys.dataByAxis || {}; var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {}; var thisDataByAxis = thisItemCoordSys.dataByAxis || []; contentNotChanged &= lastDataByAxis.length === thisDataByAxis.length; contentNotChanged && each$21(lastDataByAxis, function (lastItem, indexAxis) { var thisItem = thisDataByAxis[indexAxis] || {}; var lastIndices = lastItem.seriesDataIndices || []; var newIndices = thisItem.seriesDataIndices || []; contentNotChanged &= lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length; contentNotChanged && each$21(lastIndices, function (lastIdxItem, j) { var newIdxItem = newIndices[j]; contentNotChanged &= lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex; }); }); }); this._lastDataByCoordSys = dataByCoordSys; return !!contentNotChanged; }, _hide: function (dispatchAction) { // Do not directly hideLater here, because this behavior may be prevented // in dispatchAction when showTip is dispatched. // FIXME // duplicated hideTip if manuallyHideTip is called from dispatchAction. this._lastDataByCoordSys = null; dispatchAction({ type: 'hideTip', from: this.uid }); }, dispose: function (ecModel, api) { if (env$1.node) { return; } this._tooltipContent.hide(); unregister('itemTooltip', api); } }); /** * @param {Array.} modelCascade * From top to bottom. (the last one should be globalTooltipModel); */ function buildTooltipModel(modelCascade) { var resultModel = modelCascade.pop(); while (modelCascade.length) { var tooltipOpt = modelCascade.pop(); if (tooltipOpt) { if (Model.isInstance(tooltipOpt)) { tooltipOpt = tooltipOpt.get('tooltip', true); } // In each data item tooltip can be simply write: // { // value: 10, // tooltip: 'Something you need to know' // } if (typeof tooltipOpt === 'string') { tooltipOpt = {formatter: tooltipOpt}; } resultModel = new Model(tooltipOpt, resultModel, resultModel.ecModel); } } return resultModel; } function makeDispatchAction$1(payload, api) { return payload.dispatchAction || bind(api.dispatchAction, api); } function refixTooltipPosition(x, y, content, viewWidth, viewHeight, gapH, gapV) { var size = content.getOuterSize(); var width = size.width; var height = size.height; if (gapH != null) { if (x + width + gapH > viewWidth) { x -= width + gapH; } else { x += gapH; } } if (gapV != null) { if (y + height + gapV > viewHeight) { y -= height + gapV; } else { y += gapV; } } return [x, y]; } function confineTooltipPosition(x, y, content, viewWidth, viewHeight) { var size = content.getOuterSize(); var width = size.width; var height = size.height; x = Math.min(x + width, viewWidth) - width; y = Math.min(y + height, viewHeight) - height; x = Math.max(x, 0); y = Math.max(y, 0); return [x, y]; } function calcTooltipPosition(position, rect, contentSize) { var domWidth = contentSize[0]; var domHeight = contentSize[1]; var gap = 5; var x = 0; var y = 0; var rectWidth = rect.width; var rectHeight = rect.height; switch (position) { case 'inside': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y + rectHeight / 2 - domHeight / 2; break; case 'top': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y - domHeight - gap; break; case 'bottom': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y + rectHeight + gap; break; case 'left': x = rect.x - domWidth - gap; y = rect.y + rectHeight / 2 - domHeight / 2; break; case 'right': x = rect.x + rectWidth + gap; y = rect.y + rectHeight / 2 - domHeight / 2; } return [x, y]; } function isCenterAlign(align) { return align === 'center' || align === 'middle'; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME Better way to pack data in graphic element /** * @action * @property {string} type * @property {number} seriesIndex * @property {number} dataIndex * @property {number} [x] * @property {number} [y] */ registerAction( { type: 'showTip', event: 'showTip', update: 'tooltip:manuallyShowTip' }, // noop function () {} ); registerAction( { type: 'hideTip', event: 'hideTip', update: 'tooltip:manuallyHideTip' }, // noop function () {} ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear']; var preprocessor$1 = function (option, isNew) { var brushComponents = option && option.brush; if (!isArray(brushComponents)) { brushComponents = brushComponents ? [brushComponents] : []; } if (!brushComponents.length) { return; } var brushComponentSpecifiedBtns = []; each$1(brushComponents, function (brushOpt) { var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : []; if (tbs instanceof Array) { brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs); } }); var toolbox = option && option.toolbox; if (isArray(toolbox)) { toolbox = toolbox[0]; } if (!toolbox) { toolbox = {feature: {}}; option.toolbox = [toolbox]; } var toolboxFeature = (toolbox.feature || (toolbox.feature = {})); var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {}); var brushTypes = toolboxBrush.type || (toolboxBrush.type = []); brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns); removeDuplicate(brushTypes); if (isNew && !brushTypes.length) { brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS); } }; function removeDuplicate(arr) { var map$$1 = {}; each$1(arr, function (val) { map$$1[val] = 1; }); arr.length = 0; each$1(map$$1, function (flag, val) { arr.push(val); }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Visual solution, for consistent option specification. */ var each$23 = each$1; function hasKeys(obj) { if (obj) { for (var name in obj) { if (obj.hasOwnProperty(name)) { return true; } } } } /** * @param {Object} option * @param {Array.} stateList * @param {Function} [supplementVisualOption] * @return {Object} visualMappings > */ function createVisualMappings(option, stateList, supplementVisualOption) { var visualMappings = {}; each$23(stateList, function (state) { var mappings = visualMappings[state] = createMappings(); each$23(option[state], function (visualData, visualType) { if (!VisualMapping.isValidType(visualType)) { return; } var mappingOption = { type: visualType, visual: visualData }; supplementVisualOption && supplementVisualOption(mappingOption, state); mappings[visualType] = new VisualMapping(mappingOption); // Prepare a alpha for opacity, for some case that opacity // is not supported, such as rendering using gradient color. if (visualType === 'opacity') { mappingOption = clone(mappingOption); mappingOption.type = 'colorAlpha'; mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption); } }); }); return visualMappings; function createMappings() { var Creater = function () {}; // Make sure hidden fields will not be visited by // object iteration (with hasOwnProperty checking). Creater.prototype.__hidden = Creater.prototype; var obj = new Creater(); return obj; } } /** * @param {Object} thisOption * @param {Object} newOption * @param {Array.} keys */ function replaceVisualOption(thisOption, newOption, keys) { // Visual attributes merge is not supported, otherwise it // brings overcomplicated merge logic. See #2853. So if // newOption has anyone of these keys, all of these keys // will be reset. Otherwise, all keys remain. var has; each$1(keys, function (key) { if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) { has = true; } }); has && each$1(keys, function (key) { if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) { thisOption[key] = clone(newOption[key]); } else { delete thisOption[key]; } }); } /** * @param {Array.} stateList * @param {Object} visualMappings > * @param {module:echarts/data/List} list * @param {Function} getValueState param: valueOrIndex, return: state. * @param {object} [scope] Scope for getValueState * @param {string} [dimension] Concrete dimension, if used. */ // ???! handle brush? function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) { var visualTypesMap = {}; each$1(stateList, function (state) { var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]); visualTypesMap[state] = visualTypes; }); var dataIndex; function getVisual(key) { return data.getItemVisual(dataIndex, key); } function setVisual(key, value) { data.setItemVisual(dataIndex, key, value); } if (dimension == null) { data.each(eachItem); } else { data.each([dimension], eachItem); } function eachItem(valueOrIndex, index) { dataIndex = dimension == null ? valueOrIndex : index; var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance if (rawDataItem && rawDataItem.visualMap === false) { return; } var valueState = getValueState.call(scope, valueOrIndex); var mappings = visualMappings[valueState]; var visualTypes = visualTypesMap[valueState]; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; mappings[type] && mappings[type].applyVisual( valueOrIndex, getVisual, setVisual ); } } } /** * @param {module:echarts/data/List} data * @param {Array.} stateList * @param {Object} visualMappings > * @param {Function} getValueState param: valueOrIndex, return: state. * @param {number} [dim] dimension or dimension index. */ function incrementalApplyVisual(stateList, visualMappings, getValueState, dim) { var visualTypesMap = {}; each$1(stateList, function (state) { var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]); visualTypesMap[state] = visualTypes; }); function progress(params, data) { if (dim != null) { dim = data.getDimension(dim); } function getVisual(key) { return data.getItemVisual(dataIndex, key); } function setVisual(key, value) { data.setItemVisual(dataIndex, key, value); } var dataIndex; while ((dataIndex = params.next()) != null) { var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance if (rawDataItem && rawDataItem.visualMap === false) { continue; } var value = dim != null ? data.get(dim, dataIndex, true) : dataIndex; var valueState = getValueState(value); var mappings = visualMappings[valueState]; var visualTypes = visualTypesMap[valueState]; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual); } } } return {progress: progress}; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Key of the first level is brushType: `line`, `rect`, `polygon`. // Key of the second level is chart element type: `point`, `rect`. // See moudule:echarts/component/helper/BrushController // function param: // {Object} itemLayout fetch from data.getItemLayout(dataIndex) // {Object} selectors {point: selector, rect: selector, ...} // {Object} area {range: [[], [], ..], boudingRect} // function return: // {boolean} Whether in the given brush. var selector = { lineX: getLineSelectors(0), lineY: getLineSelectors(1), rect: { point: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]); }, rect: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.intersect(itemLayout); } }, polygon: { point: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]) && contain$1(area.range, itemLayout[0], itemLayout[1]); }, rect: function (itemLayout, selectors, area) { var points = area.range; if (!itemLayout || points.length <= 1) { return false; } var x = itemLayout.x; var y = itemLayout.y; var width = itemLayout.width; var height = itemLayout.height; var p = points[0]; if (contain$1(points, x, y) || contain$1(points, x + width, y) || contain$1(points, x, y + height) || contain$1(points, x + width, y + height) || BoundingRect.create(itemLayout).contain(p[0], p[1]) || linePolygonIntersect(x, y, x + width, y, points) || linePolygonIntersect(x, y, x, y + height, points) || linePolygonIntersect(x + width, y, x + width, y + height, points) || linePolygonIntersect(x, y + height, x + width, y + height, points) ) { return true; } } } }; function getLineSelectors(xyIndex) { var xy = ['x', 'y']; var wh = ['width', 'height']; return { point: function (itemLayout, selectors, area) { if (itemLayout) { var range = area.range; var p = itemLayout[xyIndex]; return inLineRange(p, range); } }, rect: function (itemLayout, selectors, area) { if (itemLayout) { var range = area.range; var layoutRange = [ itemLayout[xy[xyIndex]], itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]] ]; layoutRange[1] < layoutRange[0] && layoutRange.reverse(); return inLineRange(layoutRange[0], range) || inLineRange(layoutRange[1], range) || inLineRange(range[0], layoutRange) || inLineRange(range[1], layoutRange); } } }; } function inLineRange(p, range) { return range[0] <= p && p <= range[1]; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var STATE_LIST = ['inBrush', 'outOfBrush']; var DISPATCH_METHOD = '__ecBrushSelect'; var DISPATCH_FLAG = '__ecInBrushSelectEvent'; var PRIORITY_BRUSH = PRIORITY.VISUAL.BRUSH; /** * Layout for visual, the priority higher than other layout, and before brush visual. */ registerLayout(PRIORITY_BRUSH, function (ecModel, api, payload) { ecModel.eachComponent({mainType: 'brush'}, function (brushModel) { payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption( payload.key === 'brush' ? payload.brushOption : {brushType: false} ); var brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel); brushTargetManager.setInputRanges(brushModel.areas, ecModel); }); }); /** * Register the visual encoding if this modules required. */ registerVisual(PRIORITY_BRUSH, function (ecModel, api, payload) { var brushSelected = []; var throttleType; var throttleDelay; ecModel.eachComponent({mainType: 'brush'}, function (brushModel, brushIndex) { var thisBrushSelected = { brushId: brushModel.id, brushIndex: brushIndex, brushName: brushModel.name, areas: clone(brushModel.areas), selected: [] }; // Every brush component exists in event params, convenient // for user to find by index. brushSelected.push(thisBrushSelected); var brushOption = brushModel.option; var brushLink = brushOption.brushLink; var linkedSeriesMap = []; var selectedDataIndexForLink = []; var rangeInfoBySeries = []; var hasBrushExists = 0; if (!brushIndex) { // Only the first throttle setting works. throttleType = brushOption.throttleType; throttleDelay = brushOption.throttleDelay; } // Add boundingRect and selectors to range. var areas = map(brushModel.areas, function (area) { return bindSelector( defaults( {boundingRect: boundingRectBuilders[area.brushType](area)}, area ) ); }); var visualMappings = createVisualMappings( brushModel.option, STATE_LIST, function (mappingOption) { mappingOption.mappingMethod = 'fixed'; } ); isArray(brushLink) && each$1(brushLink, function (seriesIndex) { linkedSeriesMap[seriesIndex] = 1; }); function linkOthers(seriesIndex) { return brushLink === 'all' || linkedSeriesMap[seriesIndex]; } // If no supported brush or no brush on the series, // all visuals should be in original state. function brushed(rangeInfoList) { return !!rangeInfoList.length; } /** * Logic for each series: (If the logic has to be modified one day, do it carefully!) * * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers ) => StepA: ┬record, ┬ StepB: ┬visualByRecord. * !brushed┘ ├hasBrushExist ┤ └nothing,┘ ├visualByRecord. * └!hasBrushExist┘ └nothing. * ( !brushed && ┬hasBrushExist ┬ && linkOthers ) => StepA: nothing, StepB: ┬visualByRecord. * └!hasBrushExist┘ └nothing. * ( brushed ┬ && !linkOthers ) => StepA: nothing, StepB: ┬visualByCheck. * !brushed┘ └nothing. * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing. */ // Step A ecModel.eachSeries(function (seriesModel, seriesIndex) { var rangeInfoList = rangeInfoBySeries[seriesIndex] = []; seriesModel.subType === 'parallel' ? stepAParallel(seriesModel, seriesIndex, rangeInfoList) : stepAOthers(seriesModel, seriesIndex, rangeInfoList); }); function stepAParallel(seriesModel, seriesIndex) { var coordSys = seriesModel.coordinateSystem; hasBrushExists |= coordSys.hasAxisBrushed(); linkOthers(seriesIndex) && coordSys.eachActiveState( seriesModel.getData(), function (activeState, dataIndex) { activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1); } ); } function stepAOthers(seriesModel, seriesIndex, rangeInfoList) { var selectorsByBrushType = getSelectorsByBrushType(seriesModel); if (!selectorsByBrushType || brushModelNotControll(brushModel, seriesIndex)) { return; } each$1(areas, function (area) { selectorsByBrushType[area.brushType] && brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel) && rangeInfoList.push(area); hasBrushExists |= brushed(rangeInfoList); }); if (linkOthers(seriesIndex) && brushed(rangeInfoList)) { var data = seriesModel.getData(); data.each(function (dataIndex) { if (checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex)) { selectedDataIndexForLink[dataIndex] = 1; } }); } } // Step B ecModel.eachSeries(function (seriesModel, seriesIndex) { var seriesBrushSelected = { seriesId: seriesModel.id, seriesIndex: seriesIndex, seriesName: seriesModel.name, dataIndex: [] }; // Every series exists in event params, convenient // for user to find series by seriesIndex. thisBrushSelected.selected.push(seriesBrushSelected); var selectorsByBrushType = getSelectorsByBrushType(seriesModel); var rangeInfoList = rangeInfoBySeries[seriesIndex]; var data = seriesModel.getData(); var getValueState = linkOthers(seriesIndex) ? function (dataIndex) { return selectedDataIndexForLink[dataIndex] ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush'; } : function (dataIndex) { return checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex) ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush'; }; // If no supported brush or no brush, all visuals are in original state. (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList)) && applyVisual( STATE_LIST, visualMappings, data, getValueState ); }); }); dispatchAction(api, throttleType, throttleDelay, brushSelected, payload); }); function dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) { // This event will not be triggered when `setOpion`, otherwise dead lock may // triggered when do `setOption` in event listener, which we do not find // satisfactory way to solve yet. Some considered resolutions: // (a) Diff with prevoius selected data ant only trigger event when changed. // But store previous data and diff precisely (i.e., not only by dataIndex, but // also detect value changes in selected data) might bring complexity or fragility. // (b) Use spectial param like `silent` to suppress event triggering. // But such kind of volatile param may be weird in `setOption`. if (!payload) { return; } var zr = api.getZr(); if (zr[DISPATCH_FLAG]) { return; } if (!zr[DISPATCH_METHOD]) { zr[DISPATCH_METHOD] = doDispatch; } var fn = createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType); fn(api, brushSelected); } function doDispatch(api, brushSelected) { if (!api.isDisposed()) { var zr = api.getZr(); zr[DISPATCH_FLAG] = true; api.dispatchAction({ type: 'brushSelect', batch: brushSelected }); zr[DISPATCH_FLAG] = false; } } function checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex) { for (var i = 0, len = rangeInfoList.length; i < len; i++) { var area = rangeInfoList[i]; if (selectorsByBrushType[area.brushType]( dataIndex, data, area.selectors, area )) { return true; } } } function getSelectorsByBrushType(seriesModel) { var brushSelector = seriesModel.brushSelector; if (isString(brushSelector)) { var sels = []; each$1(selector, function (selectorsByElementType, brushType) { sels[brushType] = function (dataIndex, data, selectors, area) { var itemLayout = data.getItemLayout(dataIndex); return selectorsByElementType[brushSelector](itemLayout, selectors, area); }; }); return sels; } else if (isFunction$1(brushSelector)) { var bSelector = {}; each$1(selector, function (sel, brushType) { bSelector[brushType] = brushSelector; }); return bSelector; } return brushSelector; } function brushModelNotControll(brushModel, seriesIndex) { var seriesIndices = brushModel.option.seriesIndex; return seriesIndices != null && seriesIndices !== 'all' && ( isArray(seriesIndices) ? indexOf(seriesIndices, seriesIndex) < 0 : seriesIndex !== seriesIndices ); } function bindSelector(area) { var selectors = area.selectors = {}; each$1(selector[area.brushType], function (selFn, elType) { // Do not use function binding or curry for performance. selectors[elType] = function (itemLayout) { return selFn(itemLayout, selectors, area); }; }); return area; } var boundingRectBuilders = { lineX: noop, lineY: noop, rect: function (area) { return getBoundingRectFromMinMax(area.range); }, polygon: function (area) { var minMax; var range = area.range; for (var i = 0, len = range.length; i < len; i++) { minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]]; var rg = range[i]; rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]); rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]); rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]); rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]); } return minMax && getBoundingRectFromMinMax(minMax); } }; function getBoundingRectFromMinMax(minMax) { return new BoundingRect( minMax[0][0], minMax[1][0], minMax[0][1] - minMax[0][0], minMax[1][1] - minMax[1][0] ); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_OUT_OF_BRUSH_COLOR = ['#ddd']; var BrushModel = extendComponentModel({ type: 'brush', dependencies: ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'], /** * @protected */ defaultOption: { // inBrush: null, // outOfBrush: null, toolbox: null, // Default value see preprocessor. brushLink: null, // Series indices array, broadcast using dataIndex. // or 'all', which means all series. 'none' or null means no series. seriesIndex: 'all', // seriesIndex array, specify series controlled by this brush component. geoIndex: null, // xAxisIndex: null, yAxisIndex: null, brushType: 'rect', // Default brushType, see BrushController. brushMode: 'single', // Default brushMode, 'single' or 'multiple' transformable: true, // Default transformable. brushStyle: { // Default brushStyle borderWidth: 1, color: 'rgba(120,140,180,0.3)', borderColor: 'rgba(120,140,180,0.8)' }, throttleType: 'fixRate', // Throttle in brushSelected event. 'fixRate' or 'debounce'. // If null, no throttle. Valid only in the first brush component throttleDelay: 0, // Unit: ms, 0 means every event will be triggered. // FIXME // 试验效果 removeOnClick: true, z: 10000 }, /** * @readOnly * @type {Array.} */ areas: [], /** * Current activated brush type. * If null, brush is inactived. * see module:echarts/component/helper/BrushController * @readOnly * @type {string} */ brushType: null, /** * Current brush opt. * see module:echarts/component/helper/BrushController * @readOnly * @type {Object} */ brushOption: {}, /** * @readOnly * @type {Array.} */ coordInfoList: [], optionUpdated: function (newOption, isInit) { var thisOption = this.option; !isInit && replaceVisualOption( thisOption, newOption, ['inBrush', 'outOfBrush'] ); var inBrush = thisOption.inBrush = thisOption.inBrush || {}; // Always give default visual, consider setOption at the second time. thisOption.outOfBrush = thisOption.outOfBrush || {color: DEFAULT_OUT_OF_BRUSH_COLOR}; if (!inBrush.hasOwnProperty('liftZ')) { // Bigger than the highlight z lift, otherwise it will // be effected by the highlight z when brush. inBrush.liftZ = 5; } }, /** * If ranges is null/undefined, range state remain. * * @param {Array.} [ranges] */ setAreas: function (areas) { if (__DEV__) { assert$1(isArray(areas)); each$1(areas, function (area) { assert$1(area.brushType, 'Illegal areas'); }); } // If ranges is null/undefined, range state remain. // This helps user to dispatchAction({type: 'brush'}) with no areas // set but just want to get the current brush select info from a `brush` event. if (!areas) { return; } this.areas = map(areas, function (area) { return generateBrushOption(this.option, area); }, this); }, /** * see module:echarts/component/helper/BrushController * @param {Object} brushOption */ setBrushOption: function (brushOption) { this.brushOption = generateBrushOption(this.option, brushOption); this.brushType = this.brushOption.brushType; } }); function generateBrushOption(option, brushOption) { return merge( { brushType: option.brushType, brushMode: option.brushMode, transformable: option.transformable, brushStyle: new Model(option.brushStyle).getItemStyle(), removeOnClick: option.removeOnClick, z: option.z }, brushOption, true ); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ extendComponentView({ type: 'brush', init: function (ecModel, api) { /** * @readOnly * @type {module:echarts/model/Global} */ this.ecModel = ecModel; /** * @readOnly * @type {module:echarts/ExtensionAPI} */ this.api = api; /** * @readOnly * @type {module:echarts/component/brush/BrushModel} */ this.model; /** * @private * @type {module:echarts/component/helper/BrushController} */ (this._brushController = new BrushController(api.getZr())) .on('brush', bind(this._onBrush, this)) .mount(); }, /** * @override */ render: function (brushModel) { this.model = brushModel; return updateController.apply(this, arguments); }, /** * @override */ updateTransform: updateController, /** * @override */ updateView: updateController, // /** // * @override // */ // updateLayout: updateController, // /** // * @override // */ // updateVisual: updateController, /** * @override */ dispose: function () { this._brushController.dispose(); }, /** * @private */ _onBrush: function (areas, opt) { var modelId = this.model.id; this.model.brushTargetManager.setOutputRanges(areas, this.ecModel); // Action is not dispatched on drag end, because the drag end // emits the same params with the last drag move event, and // may have some delay when using touch pad, which makes // animation not smooth (when using debounce). (!opt.isEnd || opt.removeOnClick) && this.api.dispatchAction({ type: 'brush', brushId: modelId, areas: clone(areas), $from: modelId }); } }); function updateController(brushModel, ecModel, api, payload) { // Do not update controller when drawing. (!payload || payload.$from !== brushModel.id) && this._brushController .setPanels(brushModel.brushTargetManager.makePanelOpts(api)) .enableBrush(brushModel.brushOption) .updateCovers(brushModel.areas.slice()); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * payload: { * brushIndex: number, or, * brushId: string, or, * brushName: string, * globalRanges: Array * } */ registerAction( {type: 'brush', event: 'brush' /*, update: 'updateView' */}, function (payload, ecModel) { ecModel.eachComponent({mainType: 'brush', query: payload}, function (brushModel) { brushModel.setAreas(payload.areas); }); } ); /** * payload: { * brushComponents: [ * { * brushId, * brushIndex, * brushName, * series: [ * { * seriesId, * seriesIndex, * seriesName, * rawIndices: [21, 34, ...] * }, * ... * ] * }, * ... * ] * } */ registerAction( {type: 'brushSelect', event: 'brushSelected', update: 'none'}, function () {} ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var brushLang = lang.toolbox.brush; function Brush(model, ecModel, api) { this.model = model; this.ecModel = ecModel; this.api = api; /** * @private * @type {string} */ this._brushType; /** * @private * @type {string} */ this._brushMode; } Brush.defaultOption = { show: true, type: ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'], icon: { /* eslint-disable */ rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13', // jshint ignore:line polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2', // jshint ignore:line lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4', // jshint ignore:line lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4', // jshint ignore:line keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z', // jshint ignore:line clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line /* eslint-enable */ }, // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear` title: clone(brushLang.title) }; var proto$7 = Brush.prototype; // proto.updateLayout = function (featureModel, ecModel, api) { /* eslint-disable */ proto$7.render = /* eslint-enable */ proto$7.updateView = function (featureModel, ecModel, api) { var brushType; var brushMode; var isBrushed; ecModel.eachComponent({mainType: 'brush'}, function (brushModel) { brushType = brushModel.brushType; brushMode = brushModel.brushOption.brushMode || 'single'; isBrushed |= brushModel.areas.length; }); this._brushType = brushType; this._brushMode = brushMode; each$1(featureModel.get('type', true), function (type) { featureModel.setIconStatus( type, ( type === 'keep' ? brushMode === 'multiple' : type === 'clear' ? isBrushed : type === brushType ) ? 'emphasis' : 'normal' ); }); }; proto$7.getIcons = function () { var model = this.model; var availableIcons = model.get('icon', true); var icons = {}; each$1(model.get('type', true), function (type) { if (availableIcons[type]) { icons[type] = availableIcons[type]; } }); return icons; }; proto$7.onclick = function (ecModel, api, type) { var brushType = this._brushType; var brushMode = this._brushMode; if (type === 'clear') { // Trigger parallel action firstly api.dispatchAction({ type: 'axisAreaSelect', intervals: [] }); api.dispatchAction({ type: 'brush', command: 'clear', // Clear all areas of all brush components. areas: [] }); } else { api.dispatchAction({ type: 'takeGlobalCursor', key: 'brush', brushOption: { brushType: type === 'keep' ? brushType : (brushType === type ? false : type), brushMode: type === 'keep' ? (brushMode === 'multiple' ? 'single' : 'multiple') : brushMode } }); } }; register$1('brush', Brush); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Brush component entry */ registerPreprocessor(preprocessor$1); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Model extendComponentModel({ type: 'title', layoutMode: {type: 'box', ignoreSize: true}, defaultOption: { // 一级层叠 zlevel: 0, // 二级层叠 z: 6, show: true, text: '', // 超链接跳转 // link: null, // 仅支持self | blank target: 'blank', subtext: '', // 超链接跳转 // sublink: null, // 仅支持self | blank subtarget: 'blank', // 'center' ¦ 'left' ¦ 'right' // ¦ {number}(x坐标,单位px) left: 0, // 'top' ¦ 'bottom' ¦ 'center' // ¦ {number}(y坐标,单位px) top: 0, // 水平对齐 // 'auto' | 'left' | 'right' | 'center' // 默认根据 left 的位置判断是左对齐还是右对齐 // textAlign: null // // 垂直对齐 // 'auto' | 'top' | 'bottom' | 'middle' // 默认根据 top 位置判断是上对齐还是下对齐 // textVerticalAlign: null // textBaseline: null // The same as textVerticalAlign. backgroundColor: 'rgba(0,0,0,0)', // 标题边框颜色 borderColor: '#ccc', // 标题边框线宽,单位px,默认为0(无边框) borderWidth: 0, // 标题内边距,单位px,默认各方向内边距为5, // 接受数组分别设定上右下左边距,同css padding: 5, // 主副标题纵向间隔,单位px,默认为10, itemGap: 10, textStyle: { fontSize: 18, fontWeight: 'bolder', color: '#333' }, subtextStyle: { color: '#aaa' } } }); // View extendComponentView({ type: 'title', render: function (titleModel, ecModel, api) { this.group.removeAll(); if (!titleModel.get('show')) { return; } var group = this.group; var textStyleModel = titleModel.getModel('textStyle'); var subtextStyleModel = titleModel.getModel('subtextStyle'); var textAlign = titleModel.get('textAlign'); var textVerticalAlign = retrieve2( titleModel.get('textBaseline'), titleModel.get('textVerticalAlign') ); var textEl = new Text({ style: setTextStyle({}, textStyleModel, { text: titleModel.get('text'), textFill: textStyleModel.getTextColor() }, {disableBox: true}), z2: 10 }); var textRect = textEl.getBoundingRect(); var subText = titleModel.get('subtext'); var subTextEl = new Text({ style: setTextStyle({}, subtextStyleModel, { text: subText, textFill: subtextStyleModel.getTextColor(), y: textRect.height + titleModel.get('itemGap'), textVerticalAlign: 'top' }, {disableBox: true}), z2: 10 }); var link = titleModel.get('link'); var sublink = titleModel.get('sublink'); var triggerEvent = titleModel.get('triggerEvent', true); textEl.silent = !link && !triggerEvent; subTextEl.silent = !sublink && !triggerEvent; if (link) { textEl.on('click', function () { window.open(link, '_' + titleModel.get('target')); }); } if (sublink) { subTextEl.on('click', function () { window.open(sublink, '_' + titleModel.get('subtarget')); }); } textEl.eventData = subTextEl.eventData = triggerEvent ? { componentType: 'title', componentIndex: titleModel.componentIndex } : null; group.add(textEl); subText && group.add(subTextEl); // If no subText, but add subTextEl, there will be an empty line. var groupRect = group.getBoundingRect(); var layoutOption = titleModel.getBoxLayoutParams(); layoutOption.width = groupRect.width; layoutOption.height = groupRect.height; var layoutRect = getLayoutRect( layoutOption, { width: api.getWidth(), height: api.getHeight() }, titleModel.get('padding') ); // Adjust text align based on position if (!textAlign) { // Align left if title is on the left. center and right is same textAlign = titleModel.get('left') || titleModel.get('right'); if (textAlign === 'middle') { textAlign = 'center'; } // Adjust layout by text align if (textAlign === 'right') { layoutRect.x += layoutRect.width; } else if (textAlign === 'center') { layoutRect.x += layoutRect.width / 2; } } if (!textVerticalAlign) { textVerticalAlign = titleModel.get('top') || titleModel.get('bottom'); if (textVerticalAlign === 'center') { textVerticalAlign = 'middle'; } if (textVerticalAlign === 'bottom') { layoutRect.y += layoutRect.height; } else if (textVerticalAlign === 'middle') { layoutRect.y += layoutRect.height / 2; } textVerticalAlign = textVerticalAlign || 'top'; } group.attr('position', [layoutRect.x, layoutRect.y]); var alignStyle = { textAlign: textAlign, textVerticalAlign: textVerticalAlign }; textEl.setStyle(alignStyle); subTextEl.setStyle(alignStyle); // Render background // Get groupRect again because textAlign has been changed groupRect = group.getBoundingRect(); var padding = layoutRect.margin; var style = titleModel.getItemStyle(['color', 'opacity']); style.fill = titleModel.get('backgroundColor'); var rect = new Rect({ shape: { x: groupRect.x - padding[3], y: groupRect.y - padding[0], width: groupRect.width + padding[1] + padding[3], height: groupRect.height + padding[0] + padding[2], r: titleModel.get('borderRadius') }, style: style, subPixelOptimize: true, silent: true }); group.add(rect); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var preprocessor$2 = function (option) { var timelineOpt = option && option.timeline; if (!isArray(timelineOpt)) { timelineOpt = timelineOpt ? [timelineOpt] : []; } each$1(timelineOpt, function (opt) { if (!opt) { return; } compatibleEC2(opt); }); }; function compatibleEC2(opt) { var type = opt.type; var ec2Types = {'number': 'value', 'time': 'time'}; // Compatible with ec2 if (ec2Types[type]) { opt.axisType = ec2Types[type]; delete opt.type; } transferItem(opt); if (has$1(opt, 'controlPosition')) { var controlStyle = opt.controlStyle || (opt.controlStyle = {}); if (!has$1(controlStyle, 'position')) { controlStyle.position = opt.controlPosition; } if (controlStyle.position === 'none' && !has$1(controlStyle, 'show')) { controlStyle.show = false; delete controlStyle.position; } delete opt.controlPosition; } each$1(opt.data || [], function (dataItem) { if (isObject$1(dataItem) && !isArray(dataItem)) { if (!has$1(dataItem, 'value') && has$1(dataItem, 'name')) { // In ec2, using name as value. dataItem.value = dataItem.name; } transferItem(dataItem); } }); } function transferItem(opt) { var itemStyle = opt.itemStyle || (opt.itemStyle = {}); var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {}); // Transfer label out var label = opt.label || (opt.label || {}); var labelNormal = label.normal || (label.normal = {}); var excludeLabelAttr = {normal: 1, emphasis: 1}; each$1(label, function (value, name) { if (!excludeLabelAttr[name] && !has$1(labelNormal, name)) { labelNormal[name] = value; } }); if (itemStyleEmphasis.label && !has$1(label, 'emphasis')) { label.emphasis = itemStyleEmphasis.label; delete itemStyleEmphasis.label; } } function has$1(obj, attr) { return obj.hasOwnProperty(attr); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ComponentModel.registerSubTypeDefaulter('timeline', function () { // Only slider now. return 'slider'; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerAction( {type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'}, function (payload, ecModel) { var timelineModel = ecModel.getComponent('timeline'); if (timelineModel && payload.currentIndex != null) { timelineModel.setCurrentIndex(payload.currentIndex); if (!timelineModel.get('loop', true) && timelineModel.isIndexMax()) { timelineModel.setPlayState(false); } } // Set normalized currentIndex to payload. ecModel.resetOption('timeline'); return defaults({ currentIndex: timelineModel.option.currentIndex }, payload); } ); registerAction( {type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update'}, function (payload, ecModel) { var timelineModel = ecModel.getComponent('timeline'); if (timelineModel && payload.playState != null) { timelineModel.setPlayState(payload.playState); } } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TimelineModel = ComponentModel.extend({ type: 'timeline', layoutMode: 'box', /** * @protected */ defaultOption: { zlevel: 0, // 一级层叠 z: 4, // 二级层叠 show: true, axisType: 'time', // 模式是时间类型,支持 value, category realtime: true, left: '20%', top: null, right: '20%', bottom: 0, width: null, height: 40, padding: 5, controlPosition: 'left', // 'left' 'right' 'top' 'bottom' 'none' autoPlay: false, rewind: false, // 反向播放 loop: true, playInterval: 2000, // 播放时间间隔,单位ms currentIndex: 0, itemStyle: {}, label: { color: '#000' }, data: [] }, /** * @override */ init: function (option, parentModel, ecModel) { /** * @private * @type {module:echarts/data/List} */ this._data; /** * @private * @type {Array.} */ this._names; this.mergeDefaultAndTheme(option, ecModel); this._initData(); }, /** * @override */ mergeOption: function (option) { TimelineModel.superApply(this, 'mergeOption', arguments); this._initData(); }, /** * @param {number} [currentIndex] */ setCurrentIndex: function (currentIndex) { if (currentIndex == null) { currentIndex = this.option.currentIndex; } var count = this._data.count(); if (this.option.loop) { currentIndex = (currentIndex % count + count) % count; } else { currentIndex >= count && (currentIndex = count - 1); currentIndex < 0 && (currentIndex = 0); } this.option.currentIndex = currentIndex; }, /** * @return {number} currentIndex */ getCurrentIndex: function () { return this.option.currentIndex; }, /** * @return {boolean} */ isIndexMax: function () { return this.getCurrentIndex() >= this._data.count() - 1; }, /** * @param {boolean} state true: play, false: stop */ setPlayState: function (state) { this.option.autoPlay = !!state; }, /** * @return {boolean} true: play, false: stop */ getPlayState: function () { return !!this.option.autoPlay; }, /** * @private */ _initData: function () { var thisOption = this.option; var dataArr = thisOption.data || []; var axisType = thisOption.axisType; var names = this._names = []; if (axisType === 'category') { var idxArr = []; each$1(dataArr, function (item, index) { var value = getDataItemValue(item); var newItem; if (isObject$1(item)) { newItem = clone(item); newItem.value = index; } else { newItem = index; } idxArr.push(newItem); if (!isString(value) && (value == null || isNaN(value))) { value = ''; } names.push(value + ''); }); dataArr = idxArr; } var dimType = ({category: 'ordinal', time: 'time'})[axisType] || 'number'; var data = this._data = new List([{name: 'value', type: dimType}], this); data.initData(dataArr, names); }, getData: function () { return this._data; }, /** * @public * @return {Array.} categoreis */ getCategories: function () { if (this.get('axisType') === 'category') { return this._names.slice(); } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SliderTimelineModel = TimelineModel.extend({ type: 'timeline.slider', /** * @protected */ defaultOption: { backgroundColor: 'rgba(0,0,0,0)', // 时间轴背景颜色 borderColor: '#ccc', // 时间轴边框颜色 borderWidth: 0, // 时间轴边框线宽,单位px,默认为0(无边框) orient: 'horizontal', // 'vertical' inverse: false, tooltip: { // boolean or Object trigger: 'item' // data item may also have tootip attr. }, symbol: 'emptyCircle', symbolSize: 10, lineStyle: { show: true, width: 2, color: '#304654' }, label: { // 文本标签 position: 'auto', // auto left right top bottom // When using number, label position is not // restricted by viewRect. // positive: right/bottom, negative: left/top show: true, interval: 'auto', rotate: 0, // formatter: null, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#304654' }, itemStyle: { color: '#304654', borderWidth: 1 }, checkpointStyle: { symbol: 'circle', symbolSize: 13, color: '#c23531', borderWidth: 5, borderColor: 'rgba(194,53,49, 0.5)', animation: true, animationDuration: 300, animationEasing: 'quinticInOut' }, controlStyle: { show: true, showPlayBtn: true, showPrevBtn: true, showNextBtn: true, itemSize: 22, itemGap: 12, position: 'left', // 'left' 'right' 'top' 'bottom' playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z', // jshint ignore:line stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // jshint ignore:line nextIcon: 'path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z', // jshint ignore:line prevIcon: 'path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z', // jshint ignore:line color: '#304654', borderColor: '#304654', borderWidth: 1 }, emphasis: { label: { show: true, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#c23531' }, itemStyle: { color: '#c23531' }, controlStyle: { color: '#c23531', borderColor: '#c23531', borderWidth: 2 } }, data: [] } }); mixin(SliderTimelineModel, dataFormatMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TimelineView = Component$1.extend({ type: 'timeline' }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Extend axis 2d * @constructor module:echarts/coord/cartesian/Axis2D * @extends {module:echarts/coord/cartesian/Axis} * @param {string} dim * @param {*} scale * @param {Array.} coordExtent * @param {string} axisType * @param {string} position */ var TimelineAxis = function (dim, scale, coordExtent, axisType) { Axis.call(this, dim, scale, coordExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = axisType || 'value'; /** * Axis model * @param {module:echarts/component/TimelineModel} */ this.model = null; }; TimelineAxis.prototype = { constructor: TimelineAxis, /** * @override */ getLabelModel: function () { return this.model.getModel('label'); }, /** * @override */ isHorizontal: function () { return this.model.get('orient') === 'horizontal'; } }; inherits(TimelineAxis, Axis); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var bind$4 = bind; var each$24 = each$1; var PI$5 = Math.PI; TimelineView.extend({ type: 'timeline.slider', init: function (ecModel, api) { this.api = api; /** * @private * @type {module:echarts/component/timeline/TimelineAxis} */ this._axis; /** * @private * @type {module:zrender/core/BoundingRect} */ this._viewRect; /** * @type {number} */ this._timer; /** * @type {module:zrender/Element} */ this._currentPointer; /** * @type {module:zrender/container/Group} */ this._mainGroup; /** * @type {module:zrender/container/Group} */ this._labelGroup; }, /** * @override */ render: function (timelineModel, ecModel, api, payload) { this.model = timelineModel; this.api = api; this.ecModel = ecModel; this.group.removeAll(); if (timelineModel.get('show', true)) { var layoutInfo = this._layout(timelineModel, api); var mainGroup = this._createGroup('mainGroup'); var labelGroup = this._createGroup('labelGroup'); /** * @private * @type {module:echarts/component/timeline/TimelineAxis} */ var axis = this._axis = this._createAxis(layoutInfo, timelineModel); timelineModel.formatTooltip = function (dataIndex) { return encodeHTML(axis.scale.getLabel(dataIndex)); }; each$24( ['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'], function (name) { this['_render' + name](layoutInfo, mainGroup, axis, timelineModel); }, this ); this._renderAxisLabel(layoutInfo, labelGroup, axis, timelineModel); this._position(layoutInfo, timelineModel); } this._doPlayStop(); }, /** * @override */ remove: function () { this._clearTimer(); this.group.removeAll(); }, /** * @override */ dispose: function () { this._clearTimer(); }, _layout: function (timelineModel, api) { var labelPosOpt = timelineModel.get('label.position'); var orient = timelineModel.get('orient'); var viewRect = getViewRect$4(timelineModel, api); // Auto label offset. if (labelPosOpt == null || labelPosOpt === 'auto') { labelPosOpt = orient === 'horizontal' ? ((viewRect.y + viewRect.height / 2) < api.getHeight() / 2 ? '-' : '+') : ((viewRect.x + viewRect.width / 2) < api.getWidth() / 2 ? '+' : '-'); } else if (isNaN(labelPosOpt)) { labelPosOpt = ({ horizontal: {top: '-', bottom: '+'}, vertical: {left: '-', right: '+'} })[orient][labelPosOpt]; } var labelAlignMap = { horizontal: 'center', vertical: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'left' : 'right' }; var labelBaselineMap = { horizontal: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'top' : 'bottom', vertical: 'middle' }; var rotationMap = { horizontal: 0, vertical: PI$5 / 2 }; // Position var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width; var controlModel = timelineModel.getModel('controlStyle'); var showControl = controlModel.get('show', true); var controlSize = showControl ? controlModel.get('itemSize') : 0; var controlGap = showControl ? controlModel.get('itemGap') : 0; var sizePlusGap = controlSize + controlGap; // Special label rotate. var labelRotation = timelineModel.get('label.rotate') || 0; labelRotation = labelRotation * PI$5 / 180; // To radian. var playPosition; var prevBtnPosition; var nextBtnPosition; var axisExtent; var controlPosition = controlModel.get('position', true); var showPlayBtn = showControl && controlModel.get('showPlayBtn', true); var showPrevBtn = showControl && controlModel.get('showPrevBtn', true); var showNextBtn = showControl && controlModel.get('showNextBtn', true); var xLeft = 0; var xRight = mainLength; // position[0] means left, position[1] means middle. if (controlPosition === 'left' || controlPosition === 'bottom') { showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap); showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap); showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); } else { // 'top' 'right' showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap); showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); } axisExtent = [xLeft, xRight]; if (timelineModel.get('inverse')) { axisExtent.reverse(); } return { viewRect: viewRect, mainLength: mainLength, orient: orient, rotation: rotationMap[orient], labelRotation: labelRotation, labelPosOpt: labelPosOpt, labelAlign: timelineModel.get('label.align') || labelAlignMap[orient], labelBaseline: timelineModel.get('label.verticalAlign') || timelineModel.get('label.baseline') || labelBaselineMap[orient], // Based on mainGroup. playPosition: playPosition, prevBtnPosition: prevBtnPosition, nextBtnPosition: nextBtnPosition, axisExtent: axisExtent, controlSize: controlSize, controlGap: controlGap }; }, _position: function (layoutInfo, timelineModel) { // Position is be called finally, because bounding rect is needed for // adapt content to fill viewRect (auto adapt offset). // Timeline may be not all in the viewRect when 'offset' is specified // as a number, because it is more appropriate that label aligns at // 'offset' but not the other edge defined by viewRect. var mainGroup = this._mainGroup; var labelGroup = this._labelGroup; var viewRect = layoutInfo.viewRect; if (layoutInfo.orient === 'vertical') { // transform to horizontal, inverse rotate by left-top point. var m = create$1(); var rotateOriginX = viewRect.x; var rotateOriginY = viewRect.y + viewRect.height; translate(m, m, [-rotateOriginX, -rotateOriginY]); rotate(m, m, -PI$5 / 2); translate(m, m, [rotateOriginX, rotateOriginY]); viewRect = viewRect.clone(); viewRect.applyTransform(m); } var viewBound = getBound(viewRect); var mainBound = getBound(mainGroup.getBoundingRect()); var labelBound = getBound(labelGroup.getBoundingRect()); var mainPosition = mainGroup.position; var labelsPosition = labelGroup.position; labelsPosition[0] = mainPosition[0] = viewBound[0][0]; var labelPosOpt = layoutInfo.labelPosOpt; if (isNaN(labelPosOpt)) { // '+' or '-' var mainBoundIdx = labelPosOpt === '+' ? 0 : 1; toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx); toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx); } else { var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1; toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx); labelsPosition[1] = mainPosition[1] + labelPosOpt; } mainGroup.attr('position', mainPosition); labelGroup.attr('position', labelsPosition); mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation; setOrigin(mainGroup); setOrigin(labelGroup); function setOrigin(targetGroup) { var pos = targetGroup.position; targetGroup.origin = [ viewBound[0][0] - pos[0], viewBound[1][0] - pos[1] ]; } function getBound(rect) { // [[xmin, xmax], [ymin, ymax]] return [ [rect.x, rect.x + rect.width], [rect.y, rect.y + rect.height] ]; } function toBound(fromPos, from, to, dimIdx, boundIdx) { fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx]; } }, _createAxis: function (layoutInfo, timelineModel) { var data = timelineModel.getData(); var axisType = timelineModel.get('axisType'); var scale = createScaleByModel(timelineModel, axisType); // Customize scale. The `tickValue` is `dataIndex`. scale.getTicks = function () { return data.mapArray(['value'], function (value) { return value; }); }; var dataExtent = data.getDataExtent('value'); scale.setExtent(dataExtent[0], dataExtent[1]); scale.niceTicks(); var axis = new TimelineAxis('value', scale, layoutInfo.axisExtent, axisType); axis.model = timelineModel; return axis; }, _createGroup: function (name) { var newGroup = this['_' + name] = new Group(); this.group.add(newGroup); return newGroup; }, _renderAxisLine: function (layoutInfo, group, axis, timelineModel) { var axisExtent = axis.getExtent(); if (!timelineModel.get('lineStyle.show')) { return; } group.add(new Line({ shape: { x1: axisExtent[0], y1: 0, x2: axisExtent[1], y2: 0 }, style: extend( {lineCap: 'round'}, timelineModel.getModel('lineStyle').getLineStyle() ), silent: true, z2: 1 })); }, /** * @private */ _renderAxisTick: function (layoutInfo, group, axis, timelineModel) { var data = timelineModel.getData(); // Show all ticks, despite ignoring strategy. var ticks = axis.scale.getTicks(); // The value is dataIndex, see the costomized scale. each$24(ticks, function (value) { var tickCoord = axis.dataToCoord(value); var itemModel = data.getItemModel(value); var itemStyleModel = itemModel.getModel('itemStyle'); var hoverStyleModel = itemModel.getModel('emphasis.itemStyle'); var symbolOpt = { position: [tickCoord, 0], onclick: bind$4(this._changeTimeline, this, value) }; var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt); setHoverStyle(el, hoverStyleModel.getItemStyle()); if (itemModel.get('tooltip')) { el.dataIndex = value; el.dataModel = timelineModel; } else { el.dataIndex = el.dataModel = null; } }, this); }, /** * @private */ _renderAxisLabel: function (layoutInfo, group, axis, timelineModel) { var labelModel = axis.getLabelModel(); if (!labelModel.get('show')) { return; } var data = timelineModel.getData(); var labels = axis.getViewLabels(); each$24(labels, function (labelItem) { // The tickValue is dataIndex, see the costomized scale. var dataIndex = labelItem.tickValue; var itemModel = data.getItemModel(dataIndex); var normalLabelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel('emphasis.label'); var tickCoord = axis.dataToCoord(labelItem.tickValue); var textEl = new Text({ position: [tickCoord, 0], rotation: layoutInfo.labelRotation - layoutInfo.rotation, onclick: bind$4(this._changeTimeline, this, dataIndex), silent: false }); setTextStyle(textEl.style, normalLabelModel, { text: labelItem.formattedLabel, textAlign: layoutInfo.labelAlign, textVerticalAlign: layoutInfo.labelBaseline }); group.add(textEl); setHoverStyle( textEl, setTextStyle({}, hoverLabelModel) ); }, this); }, /** * @private */ _renderControl: function (layoutInfo, group, axis, timelineModel) { var controlSize = layoutInfo.controlSize; var rotation = layoutInfo.rotation; var itemStyle = timelineModel.getModel('controlStyle').getItemStyle(); var hoverStyle = timelineModel.getModel('emphasis.controlStyle').getItemStyle(); var rect = [0, -controlSize / 2, controlSize, controlSize]; var playState = timelineModel.getPlayState(); var inverse = timelineModel.get('inverse', true); makeBtn( layoutInfo.nextBtnPosition, 'controlStyle.nextIcon', bind$4(this._changeTimeline, this, inverse ? '-' : '+') ); makeBtn( layoutInfo.prevBtnPosition, 'controlStyle.prevIcon', bind$4(this._changeTimeline, this, inverse ? '+' : '-') ); makeBtn( layoutInfo.playPosition, 'controlStyle.' + (playState ? 'stopIcon' : 'playIcon'), bind$4(this._handlePlayClick, this, !playState), true ); function makeBtn(position, iconPath, onclick, willRotate) { if (!position) { return; } var opt = { position: position, origin: [controlSize / 2, 0], rotation: willRotate ? -rotation : 0, rectHover: true, style: itemStyle, onclick: onclick }; var btn = makeIcon(timelineModel, iconPath, rect, opt); group.add(btn); setHoverStyle(btn, hoverStyle); } }, _renderCurrentPointer: function (layoutInfo, group, axis, timelineModel) { var data = timelineModel.getData(); var currentIndex = timelineModel.getCurrentIndex(); var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle'); var me = this; var callback = { onCreate: function (pointer) { pointer.draggable = true; pointer.drift = bind$4(me._handlePointerDrag, me); pointer.ondragend = bind$4(me._handlePointerDragend, me); pointerMoveTo(pointer, currentIndex, axis, timelineModel, true); }, onUpdate: function (pointer) { pointerMoveTo(pointer, currentIndex, axis, timelineModel); } }; // Reuse when exists, for animation and drag. this._currentPointer = giveSymbol( pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback ); }, _handlePlayClick: function (nextState) { this._clearTimer(); this.api.dispatchAction({ type: 'timelinePlayChange', playState: nextState, from: this.uid }); }, _handlePointerDrag: function (dx, dy, e) { this._clearTimer(); this._pointerChangeTimeline([e.offsetX, e.offsetY]); }, _handlePointerDragend: function (e) { this._pointerChangeTimeline([e.offsetX, e.offsetY], true); }, _pointerChangeTimeline: function (mousePos, trigger) { var toCoord = this._toAxisCoord(mousePos)[0]; var axis = this._axis; var axisExtent = asc(axis.getExtent().slice()); toCoord > axisExtent[1] && (toCoord = axisExtent[1]); toCoord < axisExtent[0] && (toCoord = axisExtent[0]); this._currentPointer.position[0] = toCoord; this._currentPointer.dirty(); var targetDataIndex = this._findNearestTick(toCoord); var timelineModel = this.model; if (trigger || ( targetDataIndex !== timelineModel.getCurrentIndex() && timelineModel.get('realtime') )) { this._changeTimeline(targetDataIndex); } }, _doPlayStop: function () { this._clearTimer(); if (this.model.getPlayState()) { this._timer = setTimeout( bind$4(handleFrame, this), this.model.get('playInterval') ); } function handleFrame() { // Do not cache var timelineModel = this.model; this._changeTimeline( timelineModel.getCurrentIndex() + (timelineModel.get('rewind', true) ? -1 : 1) ); } }, _toAxisCoord: function (vertex) { var trans = this._mainGroup.getLocalTransform(); return applyTransform$1(vertex, trans, true); }, _findNearestTick: function (axisCoord) { var data = this.model.getData(); var dist = Infinity; var targetDataIndex; var axis = this._axis; data.each(['value'], function (value, dataIndex) { var coord = axis.dataToCoord(value); var d = Math.abs(coord - axisCoord); if (d < dist) { dist = d; targetDataIndex = dataIndex; } }); return targetDataIndex; }, _clearTimer: function () { if (this._timer) { clearTimeout(this._timer); this._timer = null; } }, _changeTimeline: function (nextIndex) { var currentIndex = this.model.getCurrentIndex(); if (nextIndex === '+') { nextIndex = currentIndex + 1; } else if (nextIndex === '-') { nextIndex = currentIndex - 1; } this.api.dispatchAction({ type: 'timelineChange', currentIndex: nextIndex, from: this.uid }); } }); function getViewRect$4(model, api) { return getLayoutRect( model.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }, model.get('padding') ); } function makeIcon(timelineModel, objPath, rect, opts) { var icon = makePath( timelineModel.get(objPath).replace(/^path:\/\//, ''), clone(opts || {}), new BoundingRect(rect[0], rect[1], rect[2], rect[3]), 'center' ); return icon; } /** * Create symbol or update symbol * opt: basic position and event handlers */ function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) { var color = itemStyleModel.get('color'); if (!symbol) { var symbolType = hostModel.get('symbol'); symbol = createSymbol(symbolType, -1, -1, 2, 2, color); symbol.setStyle('strokeNoScale', true); group.add(symbol); callback && callback.onCreate(symbol); } else { symbol.setColor(color); group.add(symbol); // Group may be new, also need to add. callback && callback.onUpdate(symbol); } // Style var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']); symbol.setStyle(itemStyle); // Transform and events. opt = merge({ rectHover: true, z2: 100 }, opt, true); var symbolSize = hostModel.get('symbolSize'); symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize]; symbolSize[0] /= 2; symbolSize[1] /= 2; opt.scale = symbolSize; var symbolOffset = hostModel.get('symbolOffset'); if (symbolOffset) { var pos = opt.position = opt.position || [0, 0]; pos[0] += parsePercent$1(symbolOffset[0], symbolSize[0]); pos[1] += parsePercent$1(symbolOffset[1], symbolSize[1]); } var symbolRotate = hostModel.get('symbolRotate'); opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0; symbol.attr(opt); // FIXME // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed, // getBoundingRect will return wrong result. // (This is supposed to be resolved in zrender, but it is a little difficult to // leverage performance and auto updateTransform) // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol. symbol.updateTransform(); return symbol; } function pointerMoveTo(pointer, dataIndex, axis, timelineModel, noAnimation) { if (pointer.dragging) { return; } var pointerModel = timelineModel.getModel('checkpointStyle'); var toCoord = axis.dataToCoord(timelineModel.getData().get(['value'], dataIndex)); if (noAnimation || !pointerModel.get('animation', true)) { pointer.attr({position: [toCoord, 0]}); } else { pointer.stopAnimation(true); pointer.animateTo( {position: [toCoord, 0]}, pointerModel.get('animationDuration', true), pointerModel.get('animationEasing', true) ); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * DataZoom component entry */ registerPreprocessor(preprocessor$2); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var addCommas$1 = addCommas; var encodeHTML$1 = encodeHTML; function fillLabel(opt) { defaultEmphasis(opt, 'label', ['show']); } var MarkerModel = extendComponentModel({ type: 'marker', dependencies: ['series', 'grid', 'polar', 'geo'], /** * @overrite */ init: function (option, parentModel, ecModel, extraOpt) { if (__DEV__) { if (this.type === 'marker') { throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.'); } } this.mergeDefaultAndTheme(option, ecModel); this.mergeOption(option, ecModel, extraOpt.createdBySelf, true); }, /** * @return {boolean} */ isAnimationEnabled: function () { if (env$1.node) { return false; } var hostSeries = this.__hostSeries; return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled(); }, mergeOption: function (newOpt, ecModel, createdBySelf, isInit) { var MarkerModel = this.constructor; var modelPropName = this.mainType + 'Model'; if (!createdBySelf) { ecModel.eachSeries(function (seriesModel) { var markerOpt = seriesModel.get(this.mainType, true); var markerModel = seriesModel[modelPropName]; if (!markerOpt || !markerOpt.data) { seriesModel[modelPropName] = null; return; } if (!markerModel) { if (isInit) { // Default label emphasis `position` and `show` fillLabel(markerOpt); } each$1(markerOpt.data, function (item) { // FIXME Overwrite fillLabel method ? if (item instanceof Array) { fillLabel(item[0]); fillLabel(item[1]); } else { fillLabel(item); } }); markerModel = new MarkerModel( markerOpt, this, ecModel ); extend(markerModel, { mainType: this.mainType, // Use the same series index and name seriesIndex: seriesModel.seriesIndex, name: seriesModel.name, createdBySelf: true }); markerModel.__hostSeries = seriesModel; } else { markerModel.mergeOption(markerOpt, ecModel, true); } seriesModel[modelPropName] = markerModel; }, this); } }, formatTooltip: function (dataIndex) { var data = this.getData(); var value = this.getRawValue(dataIndex); var formattedValue = isArray(value) ? map(value, addCommas$1).join(', ') : addCommas$1(value); var name = data.getName(dataIndex); var html = encodeHTML$1(this.name); if (value != null || name) { html += '
    '; } if (name) { html += encodeHTML$1(name); if (value != null) { html += ' : '; } } if (value != null) { html += encodeHTML$1(formattedValue); } return html; }, getData: function () { return this._data; }, setData: function (data) { this._data = data; } }); mixin(MarkerModel, dataFormatMixin); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ MarkerModel.extend({ type: 'markPoint', defaultOption: { zlevel: 0, z: 5, symbol: 'pin', symbolSize: 50, //symbolRotate: 0, //symbolOffset: [0, 0] tooltip: { trigger: 'item' }, label: { show: true, position: 'inside' }, itemStyle: { borderWidth: 2 }, emphasis: { label: { show: true } } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var indexOf$2 = indexOf; function hasXOrY(item) { return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y))); } function hasXAndY(item) { return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y)); } // Make it simple, do not visit all stacked value to count precision. // function getPrecision(data, valueAxisDim, dataIndex) { // var precision = -1; // var stackedDim = data.mapDimension(valueAxisDim); // do { // precision = Math.max( // numberUtil.getPrecision(data.get(stackedDim, dataIndex)), // precision // ); // var stackedOnSeries = data.getCalculationInfo('stackedOnSeries'); // if (stackedOnSeries) { // var byValue = data.get(data.getCalculationInfo('stackedByDimension'), dataIndex); // data = stackedOnSeries.getData(); // dataIndex = data.indexOf(data.getCalculationInfo('stackedByDimension'), byValue); // stackedDim = data.getCalculationInfo('stackedDimension'); // } // else { // data = null; // } // } while (data); // return precision; // } function markerTypeCalculatorWithExtent( mlType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex ) { var coordArr = []; var stacked = isDimensionStacked(data, targetDataDim /*, otherDataDim*/); var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim; var value = numCalculate(data, calcDataDim, mlType); var dataIndex = data.indicesOfNearest(calcDataDim, value)[0]; coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex); coordArr[targetCoordIndex] = data.get(targetDataDim, dataIndex); // Make it simple, do not visit all stacked value to count precision. var precision = getPrecision(data.get(targetDataDim, dataIndex)); precision = Math.min(precision, 20); if (precision >= 0) { coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision); } return coordArr; } var curry$5 = curry; // TODO Specified percent var markerTypeCalculator = { /** * @method * @param {module:echarts/data/List} data * @param {string} baseAxisDim * @param {string} valueAxisDim */ min: curry$5(markerTypeCalculatorWithExtent, 'min'), /** * @method * @param {module:echarts/data/List} data * @param {string} baseAxisDim * @param {string} valueAxisDim */ max: curry$5(markerTypeCalculatorWithExtent, 'max'), /** * @method * @param {module:echarts/data/List} data * @param {string} baseAxisDim * @param {string} valueAxisDim */ average: curry$5(markerTypeCalculatorWithExtent, 'average') }; /** * Transform markPoint data item to format used in List by do the following * 1. Calculate statistic like `max`, `min`, `average` * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/coord/*} [coordSys] * @param {Object} item * @return {Object} */ function dataTransform(seriesModel, item) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; // 1. If not specify the position with pixel directly // 2. If `coord` is not a data array. Which uses `xAxis`, // `yAxis` to specify the coord on each dimension // parseFloat first because item.x and item.y can be percent string like '20%' if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) { var dims = coordSys.dimensions; var axisInfo = getAxisInfo$1(item, data, coordSys, seriesModel); // Clone the option // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value item = clone(item); if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis ) { var otherCoordIndex = indexOf$2(dims, axisInfo.baseAxis.dim); var targetCoordIndex = indexOf$2(dims, axisInfo.valueAxis.dim); item.coord = markerTypeCalculator[item.type]( data, axisInfo.baseDataDim, axisInfo.valueDataDim, otherCoordIndex, targetCoordIndex ); // Force to use the value of calculated value. item.value = item.coord[targetCoordIndex]; } else { // FIXME Only has one of xAxis and yAxis. var coord = [ item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis ]; // Each coord support max, min, average for (var i = 0; i < 2; i++) { if (markerTypeCalculator[coord[i]]) { coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]); } } item.coord = coord; } } return item; } function getAxisInfo$1(item, data, coordSys, seriesModel) { var ret = {}; if (item.valueIndex != null || item.valueDim != null) { ret.valueDataDim = item.valueIndex != null ? data.getDimension(item.valueIndex) : item.valueDim; ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim)); ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis); ret.baseDataDim = data.mapDimension(ret.baseAxis.dim); } else { ret.baseAxis = seriesModel.getBaseAxis(); ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis); ret.baseDataDim = data.mapDimension(ret.baseAxis.dim); ret.valueDataDim = data.mapDimension(ret.valueAxis.dim); } return ret; } function dataDimToCoordDim(seriesModel, dataDim) { var data = seriesModel.getData(); var dimensions = data.dimensions; dataDim = data.getDimension(dataDim); for (var i = 0; i < dimensions.length; i++) { var dimItem = data.getDimensionInfo(dimensions[i]); if (dimItem.name === dataDim) { return dimItem.coordDim; } } } /** * Filter data which is out of coordinateSystem range * [dataFilter description] * @param {module:echarts/coord/*} [coordSys] * @param {Object} item * @return {boolean} */ function dataFilter$1(coordSys, item) { // Alwalys return true if there is no coordSys return (coordSys && coordSys.containData && item.coord && !hasXOrY(item)) ? coordSys.containData(item.coord) : true; } function dimValueGetter(item, dimName, dataIndex, dimIndex) { // x, y, radius, angle if (dimIndex < 2) { return item.coord && item.coord[dimIndex]; } return item.value; } function numCalculate(data, valueDataDim, type) { if (type === 'average') { var sum = 0; var count = 0; data.each(valueDataDim, function (val, idx) { if (!isNaN(val)) { sum += val; count++; } }); return sum / count; } else if (type === 'median') { return data.getMedian(valueDataDim); } else { // max & min return data.getDataExtent(valueDataDim, true)[type === 'max' ? 1 : 0]; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MarkerView = extendComponentView({ type: 'marker', init: function () { /** * Markline grouped by series * @private * @type {module:zrender/core/util.HashMap} */ this.markerGroupMap = createHashMap(); }, render: function (markerModel, ecModel, api) { var markerGroupMap = this.markerGroupMap; markerGroupMap.each(function (item) { item.__keep = false; }); var markerModelKey = this.type + 'Model'; ecModel.eachSeries(function (seriesModel) { var markerModel = seriesModel[markerModelKey]; markerModel && this.renderSeries(seriesModel, markerModel, ecModel, api); }, this); markerGroupMap.each(function (item) { !item.__keep && this.group.remove(item.group); }, this); }, renderSeries: function () {} }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function updateMarkerLayout(mpData, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var point; var xPx = parsePercent$1(itemModel.get('x'), api.getWidth()); var yPx = parsePercent$1(itemModel.get('y'), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } // Chart like bar may have there own marker positioning logic else if (seriesModel.getMarkerPosition) { // Use the getMarkerPoisition point = seriesModel.getMarkerPosition( mpData.getValues(mpData.dimensions, idx) ); } else if (coordSys) { var x = mpData.get(coordSys.dimensions[0], idx); var y = mpData.get(coordSys.dimensions[1], idx); point = coordSys.dataToPoint([x, y]); } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } mpData.setItemLayout(idx, point); }); } MarkerView.extend({ type: 'markPoint', // updateLayout: function (markPointModel, ecModel, api) { // ecModel.eachSeries(function (seriesModel) { // var mpModel = seriesModel.markPointModel; // if (mpModel) { // updateMarkerLayout(mpModel.getData(), seriesModel, api); // this.markerGroupMap.get(seriesModel.id).updateLayout(mpModel); // } // }, this); // }, updateTransform: function (markPointModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mpModel = seriesModel.markPointModel; if (mpModel) { updateMarkerLayout(mpModel.getData(), seriesModel, api); this.markerGroupMap.get(seriesModel.id).updateLayout(mpModel); } }, this); }, renderSeries: function (seriesModel, mpModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var symbolDrawMap = this.markerGroupMap; var symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw()); var mpData = createList$1(coordSys, seriesModel, mpModel); // FIXME mpModel.setData(mpData); updateMarkerLayout(mpModel.getData(), seriesModel, api); mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var symbol = itemModel.getShallow('symbol'); var symbolSize = itemModel.getShallow('symbolSize'); var isFnSymbol = isFunction$1(symbol); var isFnSymbolSize = isFunction$1(symbolSize); if (isFnSymbol || isFnSymbolSize) { var rawIdx = mpModel.getRawValue(idx); var dataParams = mpModel.getDataParams(idx); if (isFnSymbol) { symbol = symbol(rawIdx, dataParams); } if (isFnSymbolSize) { // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据? symbolSize = symbolSize(rawIdx, dataParams); } } mpData.setItemVisual(idx, { symbol: symbol, symbolSize: symbolSize, color: itemModel.get('itemStyle.color') || seriesData.getVisual('color') }); }); // TODO Text are wrong symbolDraw.updateData(mpData); this.group.add(symbolDraw.group); // Set host model for tooltip // FIXME mpData.eachItemGraphicEl(function (el) { el.traverse(function (child) { child.dataModel = mpModel; }); }); symbolDraw.__keep = true; symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent'); } }); /** * @inner * @param {module:echarts/coord/*} [coordSys] * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Model} mpModel */ function createList$1(coordSys, seriesModel, mpModel) { var coordDimsInfos; if (coordSys) { coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) { var info = seriesModel.getData().getDimensionInfo( seriesModel.getData().mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return defaults({name: coordDim}, info); }); } else { coordDimsInfos = [{ name: 'value', type: 'float' }]; } var mpData = new List(coordDimsInfos, mpModel); var dataOpt = map(mpModel.get('data'), curry( dataTransform, seriesModel )); if (coordSys) { dataOpt = filter( dataOpt, curry(dataFilter$1, coordSys) ); } mpData.initData(dataOpt, null, coordSys ? dimValueGetter : function (item) { return item.value; } ); return mpData; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // HINT Markpoint can't be used too much registerPreprocessor(function (opt) { // Make sure markPoint component is enabled opt.markPoint = opt.markPoint || {}; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ MarkerModel.extend({ type: 'markLine', defaultOption: { zlevel: 0, z: 5, symbol: ['circle', 'arrow'], symbolSize: [8, 16], //symbolRotate: 0, precision: 2, tooltip: { trigger: 'item' }, label: { show: true, position: 'end' }, lineStyle: { type: 'dashed' }, emphasis: { label: { show: true }, lineStyle: { width: 3 } }, animationEasing: 'linear' } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var markLineTransform = function (seriesModel, coordSys, mlModel, item) { var data = seriesModel.getData(); // Special type markLine like 'min', 'max', 'average', 'median' var mlType = item.type; if (!isArray(item) && ( mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median' // In case // data: [{ // yAxis: 10 // }] || (item.xAxis != null || item.yAxis != null) ) ) { var valueAxis; var value; if (item.yAxis != null || item.xAxis != null) { valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x'); value = retrieve(item.yAxis, item.xAxis); } else { var axisInfo = getAxisInfo$1(item, data, coordSys, seriesModel); valueAxis = axisInfo.valueAxis; var valueDataDim = getStackedDimension(data, axisInfo.valueDataDim); value = numCalculate(data, valueDataDim, mlType); } var valueIndex = valueAxis.dim === 'x' ? 0 : 1; var baseIndex = 1 - valueIndex; var mlFrom = clone(item); var mlTo = {}; mlFrom.type = null; mlFrom.coord = []; mlTo.coord = []; mlFrom.coord[baseIndex] = -Infinity; mlTo.coord[baseIndex] = Infinity; var precision = mlModel.get('precision'); if (precision >= 0 && typeof value === 'number') { value = +value.toFixed(Math.min(precision, 20)); } mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value; item = [mlFrom, mlTo, { // Extra option for tooltip and label type: mlType, valueIndex: item.valueIndex, // Force to use the value of calculated value. value: value }]; } item = [ dataTransform(seriesModel, item[0]), dataTransform(seriesModel, item[1]), extend({}, item[2]) ]; // Avoid line data type is extended by from(to) data type item[2].type = item[2].type || ''; // Merge from option and to option into line option merge(item[2], item[0]); merge(item[2], item[1]); return item; }; function isInifinity(val) { return !isNaN(val) && !isFinite(val); } // If a markLine has one dim function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; var dimName = coordSys.dimensions[dimIndex]; return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]); } function markLineFilter(coordSys, item) { if (coordSys.type === 'cartesian2d') { var fromCoord = item[0].coord; var toCoord = item[1].coord; // In case // { // markLine: { // data: [{ yAxis: 2 }] // } // } if ( fromCoord && toCoord && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys)) ) { return true; } } return dataFilter$1(coordSys, item[0]) && dataFilter$1(coordSys, item[1]); } function updateSingleMarkerEndLayout( data, idx, isFrom, seriesModel, api ) { var coordSys = seriesModel.coordinateSystem; var itemModel = data.getItemModel(idx); var point; var xPx = parsePercent$1(itemModel.get('x'), api.getWidth()); var yPx = parsePercent$1(itemModel.get('y'), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } else { // Chart like bar may have there own marker positioning logic if (seriesModel.getMarkerPosition) { // Use the getMarkerPoisition point = seriesModel.getMarkerPosition( data.getValues(data.dimensions, idx) ); } else { var dims = coordSys.dimensions; var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); point = coordSys.dataToPoint([x, y]); } // Expand line to the edge of grid if value on one axis is Inifnity // In case // markLine: { // data: [{ // yAxis: 2 // // or // type: 'average' // }] // } if (coordSys.type === 'cartesian2d') { var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); var dims = coordSys.dimensions; if (isInifinity(data.get(dims[0], idx))) { point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]); } else if (isInifinity(data.get(dims[1], idx))) { point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]); } } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } } data.setItemLayout(idx, point); } MarkerView.extend({ type: 'markLine', // updateLayout: function (markLineModel, ecModel, api) { // ecModel.eachSeries(function (seriesModel) { // var mlModel = seriesModel.markLineModel; // if (mlModel) { // var mlData = mlModel.getData(); // var fromData = mlModel.__from; // var toData = mlModel.__to; // // Update visual and layout of from symbol and to symbol // fromData.each(function (idx) { // updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api); // updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api); // }); // // Update layout of line // mlData.each(function (idx) { // mlData.setItemLayout(idx, [ // fromData.getItemLayout(idx), // toData.getItemLayout(idx) // ]); // }); // this.markerGroupMap.get(seriesModel.id).updateLayout(); // } // }, this); // }, updateTransform: function (markLineModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mlModel = seriesModel.markLineModel; if (mlModel) { var mlData = mlModel.getData(); var fromData = mlModel.__from; var toData = mlModel.__to; // Update visual and layout of from symbol and to symbol fromData.each(function (idx) { updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api); updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api); }); // Update layout of line mlData.each(function (idx) { mlData.setItemLayout(idx, [ fromData.getItemLayout(idx), toData.getItemLayout(idx) ]); }); this.markerGroupMap.get(seriesModel.id).updateLayout(); } }, this); }, renderSeries: function (seriesModel, mlModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var lineDrawMap = this.markerGroupMap; var lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new LineDraw()); this.group.add(lineDraw.group); var mlData = createList$2(coordSys, seriesModel, mlModel); var fromData = mlData.from; var toData = mlData.to; var lineData = mlData.line; mlModel.__from = fromData; mlModel.__to = toData; // Line data for tooltip and formatter mlModel.setData(lineData); var symbolType = mlModel.get('symbol'); var symbolSize = mlModel.get('symbolSize'); if (!isArray(symbolType)) { symbolType = [symbolType, symbolType]; } if (typeof symbolSize === 'number') { symbolSize = [symbolSize, symbolSize]; } // Update visual and layout of from symbol and to symbol mlData.from.each(function (idx) { updateDataVisualAndLayout(fromData, idx, true); updateDataVisualAndLayout(toData, idx, false); }); // Update visual and layout of line lineData.each(function (idx) { var lineColor = lineData.getItemModel(idx).get('lineStyle.color'); lineData.setItemVisual(idx, { color: lineColor || fromData.getItemVisual(idx, 'color') }); lineData.setItemLayout(idx, [ fromData.getItemLayout(idx), toData.getItemLayout(idx) ]); lineData.setItemVisual(idx, { 'fromSymbolSize': fromData.getItemVisual(idx, 'symbolSize'), 'fromSymbol': fromData.getItemVisual(idx, 'symbol'), 'toSymbolSize': toData.getItemVisual(idx, 'symbolSize'), 'toSymbol': toData.getItemVisual(idx, 'symbol') }); }); lineDraw.updateData(lineData); // Set host model for tooltip // FIXME mlData.line.eachItemGraphicEl(function (el, idx) { el.traverse(function (child) { child.dataModel = mlModel; }); }); function updateDataVisualAndLayout(data, idx, isFrom) { var itemModel = data.getItemModel(idx); updateSingleMarkerEndLayout( data, idx, isFrom, seriesModel, api ); data.setItemVisual(idx, { symbolSize: itemModel.get('symbolSize') || symbolSize[isFrom ? 0 : 1], symbol: itemModel.get('symbol', true) || symbolType[isFrom ? 0 : 1], color: itemModel.get('itemStyle.color') || seriesData.getVisual('color') }); } lineDraw.__keep = true; lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent'); } }); /** * @inner * @param {module:echarts/coord/*} coordSys * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Model} mpModel */ function createList$2(coordSys, seriesModel, mlModel) { var coordDimsInfos; if (coordSys) { coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) { var info = seriesModel.getData().getDimensionInfo( seriesModel.getData().mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return defaults({name: coordDim}, info); }); } else { coordDimsInfos = [{ name: 'value', type: 'float' }]; } var fromData = new List(coordDimsInfos, mlModel); var toData = new List(coordDimsInfos, mlModel); // No dimensions var lineData = new List([], mlModel); var optData = map(mlModel.get('data'), curry( markLineTransform, seriesModel, coordSys, mlModel )); if (coordSys) { optData = filter( optData, curry(markLineFilter, coordSys) ); } var dimValueGetter$$1 = coordSys ? dimValueGetter : function (item) { return item.value; }; fromData.initData( map(optData, function (item) { return item[0]; }), null, dimValueGetter$$1 ); toData.initData( map(optData, function (item) { return item[1]; }), null, dimValueGetter$$1 ); lineData.initData( map(optData, function (item) { return item[2]; }) ); lineData.hasItemOption = true; return { from: fromData, to: toData, line: lineData }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerPreprocessor(function (opt) { // Make sure markLine component is enabled opt.markLine = opt.markLine || {}; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ MarkerModel.extend({ type: 'markArea', defaultOption: { zlevel: 0, // PENDING z: 1, tooltip: { trigger: 'item' }, // markArea should fixed on the coordinate system animation: false, label: { show: true, position: 'top' }, itemStyle: { // color and borderColor default to use color from series // color: 'auto' // borderColor: 'auto' borderWidth: 0 }, emphasis: { label: { show: true, position: 'top' } } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Better on polar var markAreaTransform = function (seriesModel, coordSys, maModel, item) { var lt = dataTransform(seriesModel, item[0]); var rb = dataTransform(seriesModel, item[1]); var retrieve$$1 = retrieve; // FIXME make sure lt is less than rb var ltCoord = lt.coord; var rbCoord = rb.coord; ltCoord[0] = retrieve$$1(ltCoord[0], -Infinity); ltCoord[1] = retrieve$$1(ltCoord[1], -Infinity); rbCoord[0] = retrieve$$1(rbCoord[0], Infinity); rbCoord[1] = retrieve$$1(rbCoord[1], Infinity); // Merge option into one var result = mergeAll([{}, lt, rb]); result.coord = [ lt.coord, rb.coord ]; result.x0 = lt.x; result.y0 = lt.y; result.x1 = rb.x; result.y1 = rb.y; return result; }; function isInifinity$1(val) { return !isNaN(val) && !isFinite(val); } // If a markArea has one dim function ifMarkLineHasOnlyDim$1(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; return isInifinity$1(fromCoord[otherDimIndex]) && isInifinity$1(toCoord[otherDimIndex]); } function markAreaFilter(coordSys, item) { var fromCoord = item.coord[0]; var toCoord = item.coord[1]; if (coordSys.type === 'cartesian2d') { // In case // { // markArea: { // data: [{ yAxis: 2 }] // } // } if ( fromCoord && toCoord && (ifMarkLineHasOnlyDim$1(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim$1(0, fromCoord, toCoord, coordSys)) ) { return true; } } return dataFilter$1(coordSys, { coord: fromCoord, x: item.x0, y: item.y0 }) || dataFilter$1(coordSys, { coord: toCoord, x: item.x1, y: item.y1 }); } // dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0'] function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; var itemModel = data.getItemModel(idx); var point; var xPx = parsePercent$1(itemModel.get(dims[0]), api.getWidth()); var yPx = parsePercent$1(itemModel.get(dims[1]), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } else { // Chart like bar may have there own marker positioning logic if (seriesModel.getMarkerPosition) { // Use the getMarkerPoisition point = seriesModel.getMarkerPosition( data.getValues(dims, idx) ); } else { var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); var pt = [x, y]; coordSys.clampData && coordSys.clampData(pt, pt); point = coordSys.dataToPoint(pt, true); } if (coordSys.type === 'cartesian2d') { var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); if (isInifinity$1(x)) { point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]); } else if (isInifinity$1(y)) { point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]); } } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } } return point; } var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']]; MarkerView.extend({ type: 'markArea', // updateLayout: function (markAreaModel, ecModel, api) { // ecModel.eachSeries(function (seriesModel) { // var maModel = seriesModel.markAreaModel; // if (maModel) { // var areaData = maModel.getData(); // areaData.each(function (idx) { // var points = zrUtil.map(dimPermutations, function (dim) { // return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api); // }); // // Layout // areaData.setItemLayout(idx, points); // var el = areaData.getItemGraphicEl(idx); // el.setShape('points', points); // }); // } // }, this); // }, updateTransform: function (markAreaModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var maModel = seriesModel.markAreaModel; if (maModel) { var areaData = maModel.getData(); areaData.each(function (idx) { var points = map(dimPermutations, function (dim) { return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api); }); // Layout areaData.setItemLayout(idx, points); var el = areaData.getItemGraphicEl(idx); el.setShape('points', points); }); } }, this); }, renderSeries: function (seriesModel, maModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var areaGroupMap = this.markerGroupMap; var polygonGroup = areaGroupMap.get(seriesId) || areaGroupMap.set(seriesId, {group: new Group()}); this.group.add(polygonGroup.group); polygonGroup.__keep = true; var areaData = createList$3(coordSys, seriesModel, maModel); // Line data for tooltip and formatter maModel.setData(areaData); // Update visual and layout of line areaData.each(function (idx) { // Layout areaData.setItemLayout(idx, map(dimPermutations, function (dim) { return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api); })); // Visual areaData.setItemVisual(idx, { color: seriesData.getVisual('color') }); }); areaData.diff(polygonGroup.__data) .add(function (idx) { var polygon = new Polygon({ shape: { points: areaData.getItemLayout(idx) } }); areaData.setItemGraphicEl(idx, polygon); polygonGroup.group.add(polygon); }) .update(function (newIdx, oldIdx) { var polygon = polygonGroup.__data.getItemGraphicEl(oldIdx); updateProps(polygon, { shape: { points: areaData.getItemLayout(newIdx) } }, maModel, newIdx); polygonGroup.group.add(polygon); areaData.setItemGraphicEl(newIdx, polygon); }) .remove(function (idx) { var polygon = polygonGroup.__data.getItemGraphicEl(idx); polygonGroup.group.remove(polygon); }) .execute(); areaData.eachItemGraphicEl(function (polygon, idx) { var itemModel = areaData.getItemModel(idx); var labelModel = itemModel.getModel('label'); var labelHoverModel = itemModel.getModel('emphasis.label'); var color = areaData.getItemVisual(idx, 'color'); polygon.useStyle( defaults( itemModel.getModel('itemStyle').getItemStyle(), { fill: modifyAlpha(color, 0.4), stroke: color } ) ); polygon.hoverStyle = itemModel.getModel('emphasis.itemStyle').getItemStyle(); setLabelStyle( polygon.style, polygon.hoverStyle, labelModel, labelHoverModel, { labelFetcher: maModel, labelDataIndex: idx, defaultText: areaData.getName(idx) || '', isRectText: true, autoColor: color } ); setHoverStyle(polygon, {}); polygon.dataModel = maModel; }); polygonGroup.__data = areaData; polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent'); } }); /** * @inner * @param {module:echarts/coord/*} coordSys * @param {module:echarts/model/Series} seriesModel * @param {module:echarts/model/Model} mpModel */ function createList$3(coordSys, seriesModel, maModel) { var coordDimsInfos; var areaData; var dims = ['x0', 'y0', 'x1', 'y1']; if (coordSys) { coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) { var data = seriesModel.getData(); var info = data.getDimensionInfo( data.mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return defaults({name: coordDim}, info); }); areaData = new List(map(dims, function (dim, idx) { return { name: dim, type: coordDimsInfos[idx % 2].type }; }), maModel); } else { coordDimsInfos = [{ name: 'value', type: 'float' }]; areaData = new List(coordDimsInfos, maModel); } var optData = map(maModel.get('data'), curry( markAreaTransform, seriesModel, coordSys, maModel )); if (coordSys) { optData = filter( optData, curry(markAreaFilter, coordSys) ); } var dimValueGetter$$1 = coordSys ? function (item, dimName, dataIndex, dimIndex) { return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2]; } : function (item) { return item.value; }; areaData.initData(optData, null, dimValueGetter$$1); areaData.hasItemOption = true; return areaData; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ registerPreprocessor(function (opt) { // Make sure markArea component is enabled opt.markArea = opt.markArea || {}; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LegendModel = extendComponentModel({ type: 'legend.plain', dependencies: ['series'], layoutMode: { type: 'box', // legend.width/height are maxWidth/maxHeight actually, // whereas realy width/height is calculated by its content. // (Setting {left: 10, right: 10} does not make sense). // So consider the case: // `setOption({legend: {left: 10});` // then `setOption({legend: {right: 10});` // The previous `left` should be cleared by setting `ignoreSize`. ignoreSize: true }, init: function (option, parentModel, ecModel) { this.mergeDefaultAndTheme(option, ecModel); option.selected = option.selected || {}; }, mergeOption: function (option) { LegendModel.superCall(this, 'mergeOption', option); }, optionUpdated: function () { this._updateData(this.ecModel); var legendData = this._data; // If selectedMode is single, try to select one if (legendData[0] && this.get('selectedMode') === 'single') { var hasSelected = false; // If has any selected in option.selected for (var i = 0; i < legendData.length; i++) { var name = legendData[i].get('name'); if (this.isSelected(name)) { // Force to unselect others this.select(name); hasSelected = true; break; } } // Try select the first if selectedMode is single !hasSelected && this.select(legendData[0].get('name')); } }, _updateData: function (ecModel) { var potentialData = []; var availableNames = []; ecModel.eachRawSeries(function (seriesModel) { var seriesName = seriesModel.name; availableNames.push(seriesName); var isPotential; if (seriesModel.legendDataProvider) { var data = seriesModel.legendDataProvider(); var names = data.mapArray(data.getName); if (!ecModel.isSeriesFiltered(seriesModel)) { availableNames = availableNames.concat(names); } if (names.length) { potentialData = potentialData.concat(names); } else { isPotential = true; } } else { isPotential = true; } if (isPotential && isNameSpecified(seriesModel)) { potentialData.push(seriesModel.name); } }); /** * @type {Array.} * @private */ this._availableNames = availableNames; // If legend.data not specified in option, use availableNames as data, // which is convinient for user preparing option. var rawData = this.get('data') || potentialData; var legendData = map(rawData, function (dataItem) { // Can be string or number if (typeof dataItem === 'string' || typeof dataItem === 'number') { dataItem = { name: dataItem }; } return new Model(dataItem, this, this.ecModel); }, this); /** * @type {Array.} * @private */ this._data = legendData; }, /** * @return {Array.} */ getData: function () { return this._data; }, /** * @param {string} name */ select: function (name) { var selected = this.option.selected; var selectedMode = this.get('selectedMode'); if (selectedMode === 'single') { var data = this._data; each$1(data, function (dataItem) { selected[dataItem.get('name')] = false; }); } selected[name] = true; }, /** * @param {string} name */ unSelect: function (name) { if (this.get('selectedMode') !== 'single') { this.option.selected[name] = false; } }, /** * @param {string} name */ toggleSelected: function (name) { var selected = this.option.selected; // Default is true if (!selected.hasOwnProperty(name)) { selected[name] = true; } this[selected[name] ? 'unSelect' : 'select'](name); }, /** * @param {string} name */ isSelected: function (name) { var selected = this.option.selected; return !(selected.hasOwnProperty(name) && !selected[name]) && indexOf(this._availableNames, name) >= 0; }, defaultOption: { // 一级层叠 zlevel: 0, // 二级层叠 z: 4, show: true, // 布局方式,默认为水平布局,可选为: // 'horizontal' | 'vertical' orient: 'horizontal', left: 'center', // right: 'center', top: 0, // bottom: null, // 水平对齐 // 'auto' | 'left' | 'right' // 默认为 'auto', 根据 x 的位置判断是左对齐还是右对齐 align: 'auto', backgroundColor: 'rgba(0,0,0,0)', // 图例边框颜色 borderColor: '#ccc', borderRadius: 0, // 图例边框线宽,单位px,默认为0(无边框) borderWidth: 0, // 图例内边距,单位px,默认各方向内边距为5, // 接受数组分别设定上右下左边距,同css padding: 5, // 各个item之间的间隔,单位px,默认为10, // 横向布局时为水平间隔,纵向布局时为纵向间隔 itemGap: 10, // 图例图形宽度 itemWidth: 25, // 图例图形高度 itemHeight: 14, // 图例关闭时候的颜色 inactiveColor: '#ccc', textStyle: { // 图例文字颜色 color: '#333' }, // formatter: '', // 选择模式,默认开启图例开关 selectedMode: true, // 配置默认选中状态,可配合LEGEND.SELECTED事件做动态数据载入 // selected: null, // 图例内容(详见legend.data,数组中每一项代表一个item // data: [], // Tooltip 相关配置 tooltip: { show: false } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function legendSelectActionHandler(methodName, payload, ecModel) { var selectedMap = {}; var isToggleSelect = methodName === 'toggleSelected'; var isSelected; // Update all legend components ecModel.eachComponent('legend', function (legendModel) { if (isToggleSelect && isSelected != null) { // Force other legend has same selected status // Or the first is toggled to true and other are toggled to false // In the case one legend has some item unSelected in option. And if other legend // doesn't has the item, they will assume it is selected. legendModel[isSelected ? 'select' : 'unSelect'](payload.name); } else { legendModel[methodName](payload.name); isSelected = legendModel.isSelected(payload.name); } var legendData = legendModel.getData(); each$1(legendData, function (model) { var name = model.get('name'); // Wrap element if (name === '\n' || name === '') { return; } var isItemSelected = legendModel.isSelected(name); if (selectedMap.hasOwnProperty(name)) { // Unselected if any legend is unselected selectedMap[name] = selectedMap[name] && isItemSelected; } else { selectedMap[name] = isItemSelected; } }); }); // Return the event explicitly return { name: payload.name, selected: selectedMap }; } /** * @event legendToggleSelect * @type {Object} * @property {string} type 'legendToggleSelect' * @property {string} [from] * @property {string} name Series name or data item name */ registerAction( 'legendToggleSelect', 'legendselectchanged', curry(legendSelectActionHandler, 'toggleSelected') ); /** * @event legendSelect * @type {Object} * @property {string} type 'legendSelect' * @property {string} name Series name or data item name */ registerAction( 'legendSelect', 'legendselected', curry(legendSelectActionHandler, 'select') ); /** * @event legendUnSelect * @type {Object} * @property {string} type 'legendUnSelect' * @property {string} name Series name or data item name */ registerAction( 'legendUnSelect', 'legendunselected', curry(legendSelectActionHandler, 'unSelect') ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var curry$6 = curry; var each$25 = each$1; var Group$3 = Group; var LegendView = extendComponentView({ type: 'legend.plain', newlineDisabled: false, /** * @override */ init: function () { /** * @private * @type {module:zrender/container/Group} */ this.group.add(this._contentGroup = new Group$3()); /** * @private * @type {module:zrender/Element} */ this._backgroundEl; /** * If first rendering, `contentGroup.position` is [0, 0], which * does not make sense and may cause unexepcted animation if adopted. * @private * @type {boolean} */ this._isFirstRender = true; }, /** * @protected */ getContentGroup: function () { return this._contentGroup; }, /** * @override */ render: function (legendModel, ecModel, api) { var isFirstRender = this._isFirstRender; this._isFirstRender = false; this.resetInner(); if (!legendModel.get('show', true)) { return; } var itemAlign = legendModel.get('align'); if (!itemAlign || itemAlign === 'auto') { itemAlign = ( legendModel.get('left') === 'right' && legendModel.get('orient') === 'vertical' ) ? 'right' : 'left'; } this.renderInner(itemAlign, legendModel, ecModel, api); // Perform layout. var positionInfo = legendModel.getBoxLayoutParams(); var viewportSize = {width: api.getWidth(), height: api.getHeight()}; var padding = legendModel.get('padding'); var maxSize = getLayoutRect(positionInfo, viewportSize, padding); var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender); // Place mainGroup, based on the calculated `mainRect`. var layoutRect = getLayoutRect( defaults({width: mainRect.width, height: mainRect.height}, positionInfo), viewportSize, padding ); this.group.attr('position', [layoutRect.x - mainRect.x, layoutRect.y - mainRect.y]); // Render background after group is layout. this.group.add( this._backgroundEl = makeBackground(mainRect, legendModel) ); }, /** * @protected */ resetInner: function () { this.getContentGroup().removeAll(); this._backgroundEl && this.group.remove(this._backgroundEl); }, /** * @protected */ renderInner: function (itemAlign, legendModel, ecModel, api) { var contentGroup = this.getContentGroup(); var legendDrawnMap = createHashMap(); var selectMode = legendModel.get('selectedMode'); var excludeSeriesId = []; ecModel.eachRawSeries(function (seriesModel) { !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id); }); each$25(legendModel.getData(), function (itemModel, dataIndex) { var name = itemModel.get('name'); // Use empty string or \n as a newline string if (!this.newlineDisabled && (name === '' || name === '\n')) { contentGroup.add(new Group$3({ newline: true })); return; } // Representitive series. var seriesModel = ecModel.getSeriesByName(name)[0]; if (legendDrawnMap.get(name)) { // Have been drawed return; } // Series legend if (seriesModel) { var data = seriesModel.getData(); var color = data.getVisual('color'); // If color is a callback function if (typeof color === 'function') { // Use the first data color = color(seriesModel.getDataParams(0)); } // Using rect symbol defaultly var legendSymbolType = data.getVisual('legendSymbol') || 'roundRect'; var symbolType = data.getVisual('symbol'); var itemGroup = this._createItem( name, dataIndex, itemModel, legendModel, legendSymbolType, symbolType, itemAlign, color, selectMode ); itemGroup.on('click', curry$6(dispatchSelectAction, name, api)) .on('mouseover', curry$6(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)) .on('mouseout', curry$6(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId)); legendDrawnMap.set(name, true); } else { // Data legend of pie, funnel ecModel.eachRawSeries(function (seriesModel) { // In case multiple series has same data name if (legendDrawnMap.get(name)) { return; } if (seriesModel.legendDataProvider) { var data = seriesModel.legendDataProvider(); var idx = data.indexOfName(name); if (idx < 0) { return; } var color = data.getItemVisual(idx, 'color'); var legendSymbolType = 'roundRect'; var itemGroup = this._createItem( name, dataIndex, itemModel, legendModel, legendSymbolType, null, itemAlign, color, selectMode ); // FIXME: consider different series has items with the same name. itemGroup.on('click', curry$6(dispatchSelectAction, name, api)) // Should not specify the series name, consider legend controls // more than one pie series. .on('mouseover', curry$6(dispatchHighlightAction, null, name, api, excludeSeriesId)) .on('mouseout', curry$6(dispatchDownplayAction, null, name, api, excludeSeriesId)); legendDrawnMap.set(name, true); } }, this); } if (__DEV__) { if (!legendDrawnMap.get(name)) { console.warn( name + ' series not exists. Legend data should be same with series name or data name.' ); } } }, this); }, _createItem: function ( name, dataIndex, itemModel, legendModel, legendSymbolType, symbolType, itemAlign, color, selectMode ) { var itemWidth = legendModel.get('itemWidth'); var itemHeight = legendModel.get('itemHeight'); var inactiveColor = legendModel.get('inactiveColor'); var symbolKeepAspect = legendModel.get('symbolKeepAspect'); var isSelected = legendModel.isSelected(name); var itemGroup = new Group$3(); var textStyleModel = itemModel.getModel('textStyle'); var itemIcon = itemModel.get('icon'); var tooltipModel = itemModel.getModel('tooltip'); var legendGlobalTooltipModel = tooltipModel.parentModel; // Use user given icon first legendSymbolType = itemIcon || legendSymbolType; itemGroup.add(createSymbol( legendSymbolType, 0, 0, itemWidth, itemHeight, isSelected ? color : inactiveColor, // symbolKeepAspect default true for legend symbolKeepAspect == null ? true : symbolKeepAspect )); // Compose symbols // PENDING if (!itemIcon && symbolType // At least show one symbol, can't be all none && ((symbolType !== legendSymbolType) || symbolType === 'none') ) { var size = itemHeight * 0.8; if (symbolType === 'none') { symbolType = 'circle'; } // Put symbol in the center itemGroup.add(createSymbol( symbolType, (itemWidth - size) / 2, (itemHeight - size) / 2, size, size, isSelected ? color : inactiveColor, // symbolKeepAspect default true for legend symbolKeepAspect == null ? true : symbolKeepAspect )); } var textX = itemAlign === 'left' ? itemWidth + 5 : -5; var textAlign = itemAlign; var formatter = legendModel.get('formatter'); var content = name; if (typeof formatter === 'string' && formatter) { content = formatter.replace('{name}', name != null ? name : ''); } else if (typeof formatter === 'function') { content = formatter(name); } itemGroup.add(new Text({ style: setTextStyle({}, textStyleModel, { text: content, x: textX, y: itemHeight / 2, textFill: isSelected ? textStyleModel.getTextColor() : inactiveColor, textAlign: textAlign, textVerticalAlign: 'middle' }) })); // Add a invisible rect to increase the area of mouse hover var hitRect = new Rect({ shape: itemGroup.getBoundingRect(), invisible: true, tooltip: tooltipModel.get('show') ? extend({ content: name, // Defaul formatter formatter: legendGlobalTooltipModel.get('formatter', true) || function () { return name; }, formatterParams: { componentType: 'legend', legendIndex: legendModel.componentIndex, name: name, $vars: ['name'] } }, tooltipModel.option) : null }); itemGroup.add(hitRect); itemGroup.eachChild(function (child) { child.silent = true; }); hitRect.silent = !selectMode; this.getContentGroup().add(itemGroup); setHoverStyle(itemGroup); itemGroup.__legendDataIndex = dataIndex; return itemGroup; }, /** * @protected */ layoutInner: function (legendModel, itemAlign, maxSize) { var contentGroup = this.getContentGroup(); // Place items in contentGroup. box( legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height ); var contentRect = contentGroup.getBoundingRect(); contentGroup.attr('position', [-contentRect.x, -contentRect.y]); return this.group.getBoundingRect(); }, /** * @protected */ remove: function () { this.getContentGroup().removeAll(); this._isFirstRender = true; } }); function dispatchSelectAction(name, api) { api.dispatchAction({ type: 'legendToggleSelect', name: name }); } function dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) { // If element hover will move to a hoverLayer. var el = api.getZr().storage.getDisplayList()[0]; if (!(el && el.useHoverLayer)) { api.dispatchAction({ type: 'highlight', seriesName: seriesName, name: dataName, excludeSeriesId: excludeSeriesId }); } } function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) { // If element hover will move to a hoverLayer. var el = api.getZr().storage.getDisplayList()[0]; if (!(el && el.useHoverLayer)) { api.dispatchAction({ type: 'downplay', seriesName: seriesName, name: dataName, excludeSeriesId: excludeSeriesId }); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var legendFilter = function (ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (legendModels && legendModels.length) { ecModel.filterSeries(function (series) { // If in any legend component the status is not selected. // Because in legend series is assumed selected when it is not in the legend data. for (var i = 0; i < legendModels.length; i++) { if (!legendModels[i].isSelected(series.name)) { return false; } } return true; }); } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Do not contain scrollable legend, for sake of file size. // Series Filter registerProcessor(legendFilter); ComponentModel.registerSubTypeDefaulter('legend', function () { // Default 'plain' when no type specified. return 'plain'; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ScrollableLegendModel = LegendModel.extend({ type: 'legend.scroll', /** * @param {number} scrollDataIndex */ setScrollDataIndex: function (scrollDataIndex) { this.option.scrollDataIndex = scrollDataIndex; }, defaultOption: { scrollDataIndex: 0, pageButtonItemGap: 5, pageButtonGap: null, pageButtonPosition: 'end', // 'start' or 'end' pageFormatter: '{current}/{total}', // If null/undefined, do not show page. pageIcons: { horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'], vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z'] }, pageIconColor: '#2f4554', pageIconInactiveColor: '#aaa', pageIconSize: 15, // Can be [10, 3], which represents [width, height] pageTextStyle: { color: '#333' }, animationDurationUpdate: 800 }, /** * @override */ init: function (option, parentModel, ecModel, extraOpt) { var inputPositionParams = getLayoutParams(option); ScrollableLegendModel.superCall(this, 'init', option, parentModel, ecModel, extraOpt); mergeAndNormalizeLayoutParams$1(this, option, inputPositionParams); }, /** * @override */ mergeOption: function (option, extraOpt) { ScrollableLegendModel.superCall(this, 'mergeOption', option, extraOpt); mergeAndNormalizeLayoutParams$1(this, this.option, option); }, getOrient: function () { return this.get('orient') === 'vertical' ? {index: 1, name: 'vertical'} : {index: 0, name: 'horizontal'}; } }); // Do not `ignoreSize` to enable setting {left: 10, right: 10}. function mergeAndNormalizeLayoutParams$1(legendModel, target, raw) { var orient = legendModel.getOrient(); var ignoreSize = [1, 1]; ignoreSize[orient.index] = 0; mergeLayoutParam(target, raw, { type: 'box', ignoreSize: ignoreSize }); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Separate legend and scrollable legend to reduce package size. */ var Group$4 = Group; var WH$1 = ['width', 'height']; var XY$1 = ['x', 'y']; var ScrollableLegendView = LegendView.extend({ type: 'legend.scroll', newlineDisabled: true, init: function () { ScrollableLegendView.superCall(this, 'init'); /** * @private * @type {number} For `scroll`. */ this._currentIndex = 0; /** * @private * @type {module:zrender/container/Group} */ this.group.add(this._containerGroup = new Group$4()); this._containerGroup.add(this.getContentGroup()); /** * @private * @type {module:zrender/container/Group} */ this.group.add(this._controllerGroup = new Group$4()); /** * * @private */ this._showController; }, /** * @override */ resetInner: function () { ScrollableLegendView.superCall(this, 'resetInner'); this._controllerGroup.removeAll(); this._containerGroup.removeClipPath(); this._containerGroup.__rectSize = null; }, /** * @override */ renderInner: function (itemAlign, legendModel, ecModel, api) { var me = this; // Render content items. ScrollableLegendView.superCall(this, 'renderInner', itemAlign, legendModel, ecModel, api); var controllerGroup = this._controllerGroup; // FIXME: support be 'auto' adapt to size number text length, // e.g., '3/12345' should not overlap with the control arrow button. var pageIconSize = legendModel.get('pageIconSize', true); if (!isArray(pageIconSize)) { pageIconSize = [pageIconSize, pageIconSize]; } createPageButton('pagePrev', 0); var pageTextStyleModel = legendModel.getModel('pageTextStyle'); controllerGroup.add(new Text({ name: 'pageText', style: { textFill: pageTextStyleModel.getTextColor(), font: pageTextStyleModel.getFont(), textVerticalAlign: 'middle', textAlign: 'center' }, silent: true })); createPageButton('pageNext', 1); function createPageButton(name, iconIdx) { var pageDataIndexName = name + 'DataIndex'; var icon = createIcon( legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], { // Buttons will be created in each render, so we do not need // to worry about avoiding using legendModel kept in scope. onclick: bind( me._pageGo, me, pageDataIndexName, legendModel, api ) }, { x: -pageIconSize[0] / 2, y: -pageIconSize[1] / 2, width: pageIconSize[0], height: pageIconSize[1] } ); icon.name = name; controllerGroup.add(icon); } }, /** * @override */ layoutInner: function (legendModel, itemAlign, maxSize, isFirstRender) { var contentGroup = this.getContentGroup(); var containerGroup = this._containerGroup; var controllerGroup = this._controllerGroup; var orientIdx = legendModel.getOrient().index; var wh = WH$1[orientIdx]; var hw = WH$1[1 - orientIdx]; var yx = XY$1[1 - orientIdx]; // Place items in contentGroup. box( legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height ); box( // Buttons in controller are layout always horizontally. 'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true) ); var contentRect = contentGroup.getBoundingRect(); var controllerRect = controllerGroup.getBoundingRect(); var showController = this._showController = contentRect[wh] > maxSize[wh]; var contentPos = [-contentRect.x, -contentRect.y]; // Remain contentPos when scroll animation perfroming. // If first rendering, `contentGroup.position` is [0, 0], which // does not make sense and may cause unexepcted animation if adopted. if (!isFirstRender) { contentPos[orientIdx] = contentGroup.position[orientIdx]; } // Layout container group based on 0. var containerPos = [0, 0]; var controllerPos = [-controllerRect.x, -controllerRect.y]; var pageButtonGap = retrieve2( legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true) ); // Place containerGroup and controllerGroup and contentGroup. if (showController) { var pageButtonPosition = legendModel.get('pageButtonPosition', true); // controller is on the right / bottom. if (pageButtonPosition === 'end') { controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh]; } // controller is on the left / top. else { containerPos[orientIdx] += controllerRect[wh] + pageButtonGap; } } // Always align controller to content as 'middle'. controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2; contentGroup.attr('position', contentPos); containerGroup.attr('position', containerPos); controllerGroup.attr('position', controllerPos); // Calculate `mainRect` and set `clipPath`. // mainRect should not be calculated by `this.group.getBoundingRect()` // for sake of the overflow. var mainRect = this.group.getBoundingRect(); var mainRect = {x: 0, y: 0}; // Consider content may be overflow (should be clipped). mainRect[wh] = showController ? maxSize[wh] : contentRect[wh]; mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]); // `containerRect[yx] + containerPos[1 - orientIdx]` is 0. mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]); containerGroup.__rectSize = maxSize[wh]; if (showController) { var clipShape = {x: 0, y: 0}; clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0); clipShape[hw] = mainRect[hw]; containerGroup.setClipPath(new Rect({shape: clipShape})); // Consider content may be larger than container, container rect // can not be obtained from `containerGroup.getBoundingRect()`. containerGroup.__rectSize = clipShape[wh]; } else { // Do not remove or ignore controller. Keep them set as place holders. controllerGroup.eachChild(function (child) { child.attr({invisible: true, silent: true}); }); } // Content translate animation. var pageInfo = this._getPageInfo(legendModel); pageInfo.pageIndex != null && updateProps( contentGroup, {position: pageInfo.contentPosition}, // When switch from "show controller" to "not show controller", view should be // updated immediately without animation, otherwise causes weird efffect. showController ? legendModel : false ); this._updatePageInfoView(legendModel, pageInfo); return mainRect; }, _pageGo: function (to, legendModel, api) { var scrollDataIndex = this._getPageInfo(legendModel)[to]; scrollDataIndex != null && api.dispatchAction({ type: 'legendScroll', scrollDataIndex: scrollDataIndex, legendId: legendModel.id }); }, _updatePageInfoView: function (legendModel, pageInfo) { var controllerGroup = this._controllerGroup; each$1(['pagePrev', 'pageNext'], function (name) { var canJump = pageInfo[name + 'DataIndex'] != null; var icon = controllerGroup.childOfName(name); if (icon) { icon.setStyle( 'fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true) ); icon.cursor = canJump ? 'pointer' : 'default'; } }); var pageText = controllerGroup.childOfName('pageText'); var pageFormatter = legendModel.get('pageFormatter'); var pageIndex = pageInfo.pageIndex; var current = pageIndex != null ? pageIndex + 1 : 0; var total = pageInfo.pageCount; pageText && pageFormatter && pageText.setStyle( 'text', isString(pageFormatter) ? pageFormatter.replace('{current}', current).replace('{total}', total) : pageFormatter({current: current, total: total}) ); }, /** * @param {module:echarts/model/Model} legendModel * @return {Object} { * contentPosition: Array., null when data item not found. * pageIndex: number, null when data item not found. * pageCount: number, always be a number, can be 0. * pagePrevDataIndex: number, null when no next page. * pageNextDataIndex: number, null when no previous page. * } */ _getPageInfo: function (legendModel) { var scrollDataIndex = legendModel.get('scrollDataIndex', true); var contentGroup = this.getContentGroup(); var containerRectSize = this._containerGroup.__rectSize; var orientIdx = legendModel.getOrient().index; var wh = WH$1[orientIdx]; var xy = XY$1[orientIdx]; var targetItemIndex = this._findTargetItemIndex(scrollDataIndex); var children = contentGroup.children(); var targetItem = children[targetItemIndex]; var itemCount = children.length; var pCount = !itemCount ? 0 : 1; var result = { contentPosition: contentGroup.position.slice(), pageCount: pCount, pageIndex: pCount - 1, pagePrevDataIndex: null, pageNextDataIndex: null }; if (!targetItem) { return result; } var targetItemInfo = getItemInfo(targetItem); result.contentPosition[orientIdx] = -targetItemInfo.s; // Strategy: // (1) Always align based on the left/top most item. // (2) It is user-friendly that the last item shown in the // current window is shown at the begining of next window. // Otherwise if half of the last item is cut by the window, // it will have no chance to display entirely. // (3) Consider that item size probably be different, we // have calculate pageIndex by size rather than item index, // and we can not get page index directly by division. // (4) The window is to narrow to contain more than // one item, we should make sure that the page can be fliped. for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i ) { currItemInfo = getItemInfo(children[i]); if ( // Half of the last item is out of the window. (!currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize) // If the current item does not intersect with the window, the new page // can be started at the current item or the last item. || (currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) ) { if (winEndItemInfo.i > winStartItemInfo.i) { winStartItemInfo = winEndItemInfo; } else { // e.g., when page size is smaller than item size. winStartItemInfo = currItemInfo; } if (winStartItemInfo) { if (result.pageNextDataIndex == null) { result.pageNextDataIndex = winStartItemInfo.i; } ++result.pageCount; } } winEndItemInfo = currItemInfo; } for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i ) { currItemInfo = getItemInfo(children[i]); if ( // If the the end item does not intersect with the window started // from the current item, a page can be settled. (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s)) // e.g., when page size is smaller than item size. && winStartItemInfo.i < winEndItemInfo.i ) { winEndItemInfo = winStartItemInfo; if (result.pagePrevDataIndex == null) { result.pagePrevDataIndex = winStartItemInfo.i; } ++result.pageCount; ++result.pageIndex; } winStartItemInfo = currItemInfo; } return result; function getItemInfo(el) { if (el) { var itemRect = el.getBoundingRect(); var start = itemRect[xy] + el.position[orientIdx]; return { s: start, e: start + itemRect[wh], i: el.__legendDataIndex }; } } function intersect(itemInfo, winStart) { return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize; } }, _findTargetItemIndex: function (targetDataIndex) { var index; var contentGroup = this.getContentGroup(); var defaultIndex; if (this._showController) { contentGroup.eachChild(function (child, idx) { var legendDataIdx = child.__legendDataIndex; // FIXME // If the given targetDataIndex (from model) is illegal, // we use defualtIndex. But the index on the legend model and // action payload is still illegal. That case will not be // changed until some scenario requires. if (defaultIndex == null && legendDataIdx != null) { defaultIndex = idx; } if (legendDataIdx === targetDataIndex) { index = idx; } }); } return index != null ? index : defaultIndex; } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @event legendScroll * @type {Object} * @property {string} type 'legendScroll' * @property {string} scrollDataIndex */ registerAction( 'legendScroll', 'legendscroll', function (payload, ecModel) { var scrollDataIndex = payload.scrollDataIndex; scrollDataIndex != null && ecModel.eachComponent( {mainType: 'legend', subType: 'scroll', query: payload}, function (legendModel) { legendModel.setScrollDataIndex(scrollDataIndex); } ); } ); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Legend component entry file8 */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SliderZoomModel = DataZoomModel.extend({ type: 'dataZoom.slider', layoutMode: 'box', /** * @protected */ defaultOption: { show: true, // ph => placeholder. Using placehoder here because // deault value can only be drived in view stage. right: 'ph', // Default align to grid rect. top: 'ph', // Default align to grid rect. width: 'ph', // Default align to grid rect. height: 'ph', // Default align to grid rect. left: null, // Default align to grid rect. bottom: null, // Default align to grid rect. backgroundColor: 'rgba(47,69,84,0)', // Background of slider zoom component. // dataBackgroundColor: '#ddd', // Background coor of data shadow and border of box, // highest priority, remain for compatibility of // previous version, but not recommended any more. dataBackground: { lineStyle: { color: '#2f4554', width: 0.5, opacity: 0.3 }, areaStyle: { color: 'rgba(47,69,84,0.3)', opacity: 0.3 } }, borderColor: '#ddd', // border color of the box. For compatibility, // if dataBackgroundColor is set, borderColor // is ignored. fillerColor: 'rgba(167,183,204,0.4)', // Color of selected area. // handleColor: 'rgba(89,170,216,0.95)', // Color of handle. // handleIcon: 'path://M4.9,17.8c0-1.4,4.5-10.5,5.5-12.4c0-0.1,0.6-1.1,0.9-1.1c0.4,0,0.9,1,0.9,1.1c1.1,2.2,5.4,11,5.4,12.4v17.8c0,1.5-0.6,2.1-1.3,2.1H6.1c-0.7,0-1.3-0.6-1.3-2.1V17.8z', /* eslint-disable */ handleIcon: 'M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z', /* eslint-enable */ // Percent of the slider height handleSize: '100%', handleStyle: { color: '#a7b7cc' }, labelPrecision: null, labelFormatter: null, showDetail: true, showDataShadow: 'auto', // Default auto decision. realtime: true, zoomLock: false, // Whether disable zoom. textStyle: { color: '#333' } } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Rect$2 = Rect; var linearMap$1 = linearMap; var asc$2 = asc; var bind$5 = bind; var each$26 = each$1; // Constants var DEFAULT_LOCATION_EDGE_GAP = 7; var DEFAULT_FRAME_BORDER_WIDTH = 1; var DEFAULT_FILLER_SIZE = 30; var HORIZONTAL = 'horizontal'; var VERTICAL = 'vertical'; var LABEL_GAP = 5; var SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter']; var SliderZoomView = DataZoomView.extend({ type: 'dataZoom.slider', init: function (ecModel, api) { /** * @private * @type {Object} */ this._displayables = {}; /** * @private * @type {string} */ this._orient; /** * [0, 100] * @private */ this._range; /** * [coord of the first handle, coord of the second handle] * @private */ this._handleEnds; /** * [length, thick] * @private * @type {Array.} */ this._size; /** * @private * @type {number} */ this._handleWidth; /** * @private * @type {number} */ this._handleHeight; /** * @private */ this._location; /** * @private */ this._dragging; /** * @private */ this._dataShadowInfo; this.api = api; }, /** * @override */ render: function (dataZoomModel, ecModel, api, payload) { SliderZoomView.superApply(this, 'render', arguments); createOrUpdate( this, '_dispatchZoomAction', this.dataZoomModel.get('throttle'), 'fixRate' ); this._orient = dataZoomModel.get('orient'); if (this.dataZoomModel.get('show') === false) { this.group.removeAll(); return; } // Notice: this._resetInterval() should not be executed when payload.type // is 'dataZoom', origin this._range should be maintained, otherwise 'pan' // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction, if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) { this._buildView(); } this._updateView(); }, /** * @override */ remove: function () { SliderZoomView.superApply(this, 'remove', arguments); clear(this, '_dispatchZoomAction'); }, /** * @override */ dispose: function () { SliderZoomView.superApply(this, 'dispose', arguments); clear(this, '_dispatchZoomAction'); }, _buildView: function () { var thisGroup = this.group; thisGroup.removeAll(); this._resetLocation(); this._resetInterval(); var barGroup = this._displayables.barGroup = new Group(); this._renderBackground(); this._renderHandle(); this._renderDataShadow(); thisGroup.add(barGroup); this._positionGroup(); }, /** * @private */ _resetLocation: function () { var dataZoomModel = this.dataZoomModel; var api = this.api; // If some of x/y/width/height are not specified, // auto-adapt according to target grid. var coordRect = this._findCoordRect(); var ecSize = {width: api.getWidth(), height: api.getHeight()}; // Default align by coordinate system rect. var positionInfo = this._orient === HORIZONTAL ? { // Why using 'right', because right should be used in vertical, // and it is better to be consistent for dealing with position param merge. right: ecSize.width - coordRect.x - coordRect.width, top: (ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP), width: coordRect.width, height: DEFAULT_FILLER_SIZE } : { // vertical right: DEFAULT_LOCATION_EDGE_GAP, top: coordRect.y, width: DEFAULT_FILLER_SIZE, height: coordRect.height }; // Do not write back to option and replace value 'ph', because // the 'ph' value should be recalculated when resize. var layoutParams = getLayoutParams(dataZoomModel.option); // Replace the placeholder value. each$1(['right', 'top', 'width', 'height'], function (name) { if (layoutParams[name] === 'ph') { layoutParams[name] = positionInfo[name]; } }); var layoutRect = getLayoutRect( layoutParams, ecSize, dataZoomModel.padding ); this._location = {x: layoutRect.x, y: layoutRect.y}; this._size = [layoutRect.width, layoutRect.height]; this._orient === VERTICAL && this._size.reverse(); }, /** * @private */ _positionGroup: function () { var thisGroup = this.group; var location = this._location; var orient = this._orient; // Just use the first axis to determine mapping. var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel(); var inverse = targetAxisModel && targetAxisModel.get('inverse'); var barGroup = this._displayables.barGroup; var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse; // Transform barGroup. barGroup.attr( (orient === HORIZONTAL && !inverse) ? {scale: otherAxisInverse ? [1, 1] : [1, -1]} : (orient === HORIZONTAL && inverse) ? {scale: otherAxisInverse ? [-1, 1] : [-1, -1]} : (orient === VERTICAL && !inverse) ? {scale: otherAxisInverse ? [1, -1] : [1, 1], rotation: Math.PI / 2} // Dont use Math.PI, considering shadow direction. : {scale: otherAxisInverse ? [-1, -1] : [-1, 1], rotation: Math.PI / 2} ); // Position barGroup var rect = thisGroup.getBoundingRect([barGroup]); thisGroup.attr('position', [location.x - rect.x, location.y - rect.y]); }, /** * @private */ _getViewExtent: function () { return [0, this._size[0]]; }, _renderBackground: function () { var dataZoomModel = this.dataZoomModel; var size = this._size; var barGroup = this._displayables.barGroup; barGroup.add(new Rect$2({ silent: true, shape: { x: 0, y: 0, width: size[0], height: size[1] }, style: { fill: dataZoomModel.get('backgroundColor') }, z2: -40 })); // Click panel, over shadow, below handles. barGroup.add(new Rect$2({ shape: { x: 0, y: 0, width: size[0], height: size[1] }, style: { fill: 'transparent' }, z2: 0, onclick: bind(this._onClickPanelClick, this) })); }, _renderDataShadow: function () { var info = this._dataShadowInfo = this._prepareDataShadowInfo(); if (!info) { return; } var size = this._size; var seriesModel = info.series; var data = seriesModel.getRawData(); var otherDim = seriesModel.getShadowDim ? seriesModel.getShadowDim() // @see candlestick : info.otherDim; if (otherDim == null) { return; } var otherDataExtent = data.getDataExtent(otherDim); // Nice extent. var otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3; otherDataExtent = [ otherDataExtent[0] - otherOffset, otherDataExtent[1] + otherOffset ]; var otherShadowExtent = [0, size[1]]; var thisShadowExtent = [0, size[0]]; var areaPoints = [[size[0], 0], [0, 0]]; var linePoints = []; var step = thisShadowExtent[1] / (data.count() - 1); var thisCoord = 0; // Optimize for large data shadow var stride = Math.round(data.count() / size[0]); var lastIsEmpty; data.each([otherDim], function (value, index) { if (stride > 0 && (index % stride)) { thisCoord += step; return; } // FIXME // Should consider axis.min/axis.max when drawing dataShadow. // FIXME // 应该使用统一的空判断?还是在list里进行空判断? var isEmpty = value == null || isNaN(value) || value === ''; // See #4235. var otherCoord = isEmpty ? 0 : linearMap$1(value, otherDataExtent, otherShadowExtent, true); // Attempt to draw data shadow precisely when there are empty value. if (isEmpty && !lastIsEmpty && index) { areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]); linePoints.push([linePoints[linePoints.length - 1][0], 0]); } else if (!isEmpty && lastIsEmpty) { areaPoints.push([thisCoord, 0]); linePoints.push([thisCoord, 0]); } areaPoints.push([thisCoord, otherCoord]); linePoints.push([thisCoord, otherCoord]); thisCoord += step; lastIsEmpty = isEmpty; }); var dataZoomModel = this.dataZoomModel; // var dataBackgroundModel = dataZoomModel.getModel('dataBackground'); this._displayables.barGroup.add(new Polygon({ shape: {points: areaPoints}, style: defaults( {fill: dataZoomModel.get('dataBackgroundColor')}, dataZoomModel.getModel('dataBackground.areaStyle').getAreaStyle() ), silent: true, z2: -20 })); this._displayables.barGroup.add(new Polyline({ shape: {points: linePoints}, style: dataZoomModel.getModel('dataBackground.lineStyle').getLineStyle(), silent: true, z2: -19 })); }, _prepareDataShadowInfo: function () { var dataZoomModel = this.dataZoomModel; var showDataShadow = dataZoomModel.get('showDataShadow'); if (showDataShadow === false) { return; } // Find a representative series. var result; var ecModel = this.ecModel; dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) { var seriesModels = dataZoomModel .getAxisProxy(dimNames.name, axisIndex) .getTargetSeriesModels(); each$1(seriesModels, function (seriesModel) { if (result) { return; } if (showDataShadow !== true && indexOf( SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type') ) < 0 ) { return; } var thisAxis = ecModel.getComponent(dimNames.axis, axisIndex).axis; var otherDim = getOtherDim(dimNames.name); var otherAxisInverse; var coordSys = seriesModel.coordinateSystem; if (otherDim != null && coordSys.getOtherAxis) { otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse; } otherDim = seriesModel.getData().mapDimension(otherDim); result = { thisAxis: thisAxis, series: seriesModel, thisDim: dimNames.name, otherDim: otherDim, otherAxisInverse: otherAxisInverse }; }, this); }, this); return result; }, _renderHandle: function () { var displaybles = this._displayables; var handles = displaybles.handles = []; var handleLabels = displaybles.handleLabels = []; var barGroup = this._displayables.barGroup; var size = this._size; var dataZoomModel = this.dataZoomModel; barGroup.add(displaybles.filler = new Rect$2({ draggable: true, cursor: getCursor(this._orient), drift: bind$5(this._onDragMove, this, 'all'), onmousemove: function (e) { // Fot mobile devicem, prevent screen slider on the button. stop(e.event); }, ondragstart: bind$5(this._showDataInfo, this, true), ondragend: bind$5(this._onDragEnd, this), onmouseover: bind$5(this._showDataInfo, this, true), onmouseout: bind$5(this._showDataInfo, this, false), style: { fill: dataZoomModel.get('fillerColor'), textPosition: 'inside' } })); // Frame border. barGroup.add(new Rect$2({ silent: true, subPixelOptimize: true, shape: { x: 0, y: 0, width: size[0], height: size[1] }, style: { stroke: dataZoomModel.get('dataBackgroundColor') || dataZoomModel.get('borderColor'), lineWidth: DEFAULT_FRAME_BORDER_WIDTH, fill: 'rgba(0,0,0,0)' } })); each$26([0, 1], function (handleIndex) { var path = createIcon( dataZoomModel.get('handleIcon'), { cursor: getCursor(this._orient), draggable: true, drift: bind$5(this._onDragMove, this, handleIndex), onmousemove: function (e) { // Fot mobile devicem, prevent screen slider on the button. stop(e.event); }, ondragend: bind$5(this._onDragEnd, this), onmouseover: bind$5(this._showDataInfo, this, true), onmouseout: bind$5(this._showDataInfo, this, false) }, {x: -1, y: 0, width: 2, height: 2} ); var bRect = path.getBoundingRect(); this._handleHeight = parsePercent$1(dataZoomModel.get('handleSize'), this._size[1]); this._handleWidth = bRect.width / bRect.height * this._handleHeight; path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle()); var handleColor = dataZoomModel.get('handleColor'); // Compatitable with previous version if (handleColor != null) { path.style.fill = handleColor; } barGroup.add(handles[handleIndex] = path); var textStyleModel = dataZoomModel.textStyleModel; this.group.add( handleLabels[handleIndex] = new Text({ silent: true, invisible: true, style: { x: 0, y: 0, text: '', textVerticalAlign: 'middle', textAlign: 'center', textFill: textStyleModel.getTextColor(), textFont: textStyleModel.getFont() }, z2: 10 })); }, this); }, /** * @private */ _resetInterval: function () { var range = this._range = this.dataZoomModel.getPercentRange(); var viewExtent = this._getViewExtent(); this._handleEnds = [ linearMap$1(range[0], [0, 100], viewExtent, true), linearMap$1(range[1], [0, 100], viewExtent, true) ]; }, /** * @private * @param {(number|string)} handleIndex 0 or 1 or 'all' * @param {number} delta * @return {boolean} changed */ _updateInterval: function (handleIndex, delta) { var dataZoomModel = this.dataZoomModel; var handleEnds = this._handleEnds; var viewExtend = this._getViewExtent(); var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(); var percentExtent = [0, 100]; sliderMove( delta, handleEnds, viewExtend, dataZoomModel.get('zoomLock') ? 'all' : handleIndex, minMaxSpan.minSpan != null ? linearMap$1(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null, minMaxSpan.maxSpan != null ? linearMap$1(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null ); var lastRange = this._range; var range = this._range = asc$2([ linearMap$1(handleEnds[0], viewExtend, percentExtent, true), linearMap$1(handleEnds[1], viewExtend, percentExtent, true) ]); return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1]; }, /** * @private */ _updateView: function (nonRealtime) { var displaybles = this._displayables; var handleEnds = this._handleEnds; var handleInterval = asc$2(handleEnds.slice()); var size = this._size; each$26([0, 1], function (handleIndex) { // Handles var handle = displaybles.handles[handleIndex]; var handleHeight = this._handleHeight; handle.attr({ scale: [handleHeight / 2, handleHeight / 2], position: [handleEnds[handleIndex], size[1] / 2 - handleHeight / 2] }); }, this); // Filler displaybles.filler.setShape({ x: handleInterval[0], y: 0, width: handleInterval[1] - handleInterval[0], height: size[1] }); this._updateDataInfo(nonRealtime); }, /** * @private */ _updateDataInfo: function (nonRealtime) { var dataZoomModel = this.dataZoomModel; var displaybles = this._displayables; var handleLabels = displaybles.handleLabels; var orient = this._orient; var labelTexts = ['', '']; // FIXME // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter) if (dataZoomModel.get('showDetail')) { var axisProxy = dataZoomModel.findRepresentativeAxisProxy(); if (axisProxy) { var axis = axisProxy.getAxisModel().axis; var range = this._range; var dataInterval = nonRealtime // See #4434, data and axis are not processed and reset yet in non-realtime mode. ? axisProxy.calculateDataWindow({ start: range[0], end: range[1] }).valueWindow : axisProxy.getDataValueWindow(); labelTexts = [ this._formatLabel(dataInterval[0], axis), this._formatLabel(dataInterval[1], axis) ]; } } var orderedHandleEnds = asc$2(this._handleEnds.slice()); setLabel.call(this, 0); setLabel.call(this, 1); function setLabel(handleIndex) { // Label // Text should not transform by barGroup. // Ignore handlers transform var barTransform = getTransform( displaybles.handles[handleIndex].parent, this.group ); var direction = transformDirection( handleIndex === 0 ? 'right' : 'left', barTransform ); var offset = this._handleWidth / 2 + LABEL_GAP; var textPoint = applyTransform$1( [ orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset), this._size[1] / 2 ], barTransform ); handleLabels[handleIndex].setStyle({ x: textPoint[0], y: textPoint[1], textVerticalAlign: orient === HORIZONTAL ? 'middle' : direction, textAlign: orient === HORIZONTAL ? direction : 'center', text: labelTexts[handleIndex] }); } }, /** * @private */ _formatLabel: function (value, axis) { var dataZoomModel = this.dataZoomModel; var labelFormatter = dataZoomModel.get('labelFormatter'); var labelPrecision = dataZoomModel.get('labelPrecision'); if (labelPrecision == null || labelPrecision === 'auto') { labelPrecision = axis.getPixelPrecision(); } var valueStr = (value == null || isNaN(value)) ? '' // FIXME Glue code : (axis.type === 'category' || axis.type === 'time') ? axis.scale.getLabel(Math.round(value)) // param of toFixed should less then 20. : value.toFixed(Math.min(labelPrecision, 20)); return isFunction$1(labelFormatter) ? labelFormatter(value, valueStr) : isString(labelFormatter) ? labelFormatter.replace('{value}', valueStr) : valueStr; }, /** * @private * @param {boolean} showOrHide true: show, false: hide */ _showDataInfo: function (showOrHide) { // Always show when drgging. showOrHide = this._dragging || showOrHide; var handleLabels = this._displayables.handleLabels; handleLabels[0].attr('invisible', !showOrHide); handleLabels[1].attr('invisible', !showOrHide); }, _onDragMove: function (handleIndex, dx, dy) { this._dragging = true; // Transform dx, dy to bar coordination. var barTransform = this._displayables.barGroup.getLocalTransform(); var vertex = applyTransform$1([dx, dy], barTransform, true); var changed = this._updateInterval(handleIndex, vertex[0]); var realtime = this.dataZoomModel.get('realtime'); this._updateView(!realtime); // Avoid dispatch dataZoom repeatly but range not changed, // which cause bad visual effect when progressive enabled. changed && realtime && this._dispatchZoomAction(); }, _onDragEnd: function () { this._dragging = false; this._showDataInfo(false); // While in realtime mode and stream mode, dispatch action when // drag end will cause the whole view rerender, which is unnecessary. var realtime = this.dataZoomModel.get('realtime'); !realtime && this._dispatchZoomAction(); }, _onClickPanelClick: function (e) { var size = this._size; var localPoint = this._displayables.barGroup.transformCoordToLocal(e.offsetX, e.offsetY); if (localPoint[0] < 0 || localPoint[0] > size[0] || localPoint[1] < 0 || localPoint[1] > size[1] ) { return; } var handleEnds = this._handleEnds; var center = (handleEnds[0] + handleEnds[1]) / 2; var changed = this._updateInterval('all', localPoint[0] - center); this._updateView(); changed && this._dispatchZoomAction(); }, /** * This action will be throttled. * @private */ _dispatchZoomAction: function () { var range = this._range; this.api.dispatchAction({ type: 'dataZoom', from: this.uid, dataZoomId: this.dataZoomModel.id, start: range[0], end: range[1] }); }, /** * @private */ _findCoordRect: function () { // Find the grid coresponding to the first axis referred by dataZoom. var rect; each$26(this.getTargetCoordInfo(), function (coordInfoList) { if (!rect && coordInfoList.length) { var coordSys = coordInfoList[0].model.coordinateSystem; rect = coordSys.getRect && coordSys.getRect(); } }); if (!rect) { var width = this.api.getWidth(); var height = this.api.getHeight(); rect = { x: width * 0.2, y: height * 0.2, width: width * 0.6, height: height * 0.6 }; } return rect; } }); function getOtherDim(thisDim) { // FIXME // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好 var map$$1 = {x: 'y', y: 'x', radius: 'angle', angle: 'radius'}; return map$$1[thisDim]; } function getCursor(orient) { return orient === 'vertical' ? 'ns-resize' : 'ew-resize'; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ DataZoomModel.extend({ type: 'dataZoom.inside', /** * @protected */ defaultOption: { disabled: false, // Whether disable this inside zoom. zoomLock: false, // Whether disable zoom but only pan. zoomOnMouseWheel: true, // Can be: true / false / 'shift' / 'ctrl' / 'alt'. moveOnMouseMove: true, // Can be: true / false / 'shift' / 'ctrl' / 'alt'. moveOnMouseWheel: false, // Can be: true / false / 'shift' / 'ctrl' / 'alt'. preventDefaultMouseMove: true } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Only create one roam controller for each coordinate system. // one roam controller might be refered by two inside data zoom // components (for example, one for x and one for y). When user // pan or zoom, only dispatch one action for those data zoom // components. var ATTR$2 = '\0_ec_dataZoom_roams'; /** * @public * @param {module:echarts/ExtensionAPI} api * @param {Object} dataZoomInfo * @param {string} dataZoomInfo.coordId * @param {Function} dataZoomInfo.containsPoint * @param {Array.} dataZoomInfo.allCoordIds * @param {string} dataZoomInfo.dataZoomId * @param {Object} dataZoomInfo.getRange * @param {Function} dataZoomInfo.getRange.pan * @param {Function} dataZoomInfo.getRange.zoom * @param {Function} dataZoomInfo.getRange.scrollMove * @param {boolean} dataZoomInfo.dataZoomModel */ function register$2(api, dataZoomInfo) { var store = giveStore$1(api); var theDataZoomId = dataZoomInfo.dataZoomId; var theCoordId = dataZoomInfo.coordId; // Do clean when a dataZoom changes its target coordnate system. // Avoid memory leak, dispose all not-used-registered. each$1(store, function (record, coordId) { var dataZoomInfos = record.dataZoomInfos; if (dataZoomInfos[theDataZoomId] && indexOf(dataZoomInfo.allCoordIds, theCoordId) < 0 ) { delete dataZoomInfos[theDataZoomId]; record.count--; } }); cleanStore(store); var record = store[theCoordId]; // Create if needed. if (!record) { record = store[theCoordId] = { coordId: theCoordId, dataZoomInfos: {}, count: 0 }; record.controller = createController(api, record); record.dispatchAction = curry(dispatchAction$1, api); } // Update reference of dataZoom. !(record.dataZoomInfos[theDataZoomId]) && record.count++; record.dataZoomInfos[theDataZoomId] = dataZoomInfo; var controllerParams = mergeControllerParams(record.dataZoomInfos); record.controller.enable(controllerParams.controlType, controllerParams.opt); // Consider resize, area should be always updated. record.controller.setPointerChecker(dataZoomInfo.containsPoint); // Update throttle. createOrUpdate( record, 'dispatchAction', dataZoomInfo.dataZoomModel.get('throttle', true), 'fixRate' ); } /** * @public * @param {module:echarts/ExtensionAPI} api * @param {string} dataZoomId */ function unregister$1(api, dataZoomId) { var store = giveStore$1(api); each$1(store, function (record) { record.controller.dispose(); var dataZoomInfos = record.dataZoomInfos; if (dataZoomInfos[dataZoomId]) { delete dataZoomInfos[dataZoomId]; record.count--; } }); cleanStore(store); } /** * @public */ function generateCoordId(coordModel) { return coordModel.type + '\0_' + coordModel.id; } /** * Key: coordId, value: {dataZoomInfos: [], count, controller} * @type {Array.} */ function giveStore$1(api) { // Mount store on zrender instance, so that we do not // need to worry about dispose. var zr = api.getZr(); return zr[ATTR$2] || (zr[ATTR$2] = {}); } function createController(api, newRecord) { var controller = new RoamController(api.getZr()); each$1(['pan', 'zoom', 'scrollMove'], function (eventName) { controller.on(eventName, function (event) { var batch = []; each$1(newRecord.dataZoomInfos, function (info) { // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove, // moveOnMouseWheel, ...) enabled. if (!event.isAvailableBehavior(info.dataZoomModel.option)) { return; } var method = (info.getRange || {})[eventName]; var range = method && method(newRecord.controller, event); !info.dataZoomModel.get('disabled', true) && range && batch.push({ dataZoomId: info.dataZoomId, start: range[0], end: range[1] }); }); batch.length && newRecord.dispatchAction(batch); }); }); return controller; } function cleanStore(store) { each$1(store, function (record, coordId) { if (!record.count) { record.controller.dispose(); delete store[coordId]; } }); } /** * This action will be throttled. */ function dispatchAction$1(api, batch) { api.dispatchAction({ type: 'dataZoom', batch: batch }); } /** * Merge roamController settings when multiple dataZooms share one roamController. */ function mergeControllerParams(dataZoomInfos) { var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated // as string, it is probably revert to reserved word by compress tool. See #7411. var prefix = 'type_'; var typePriority = { 'type_true': 2, 'type_move': 1, 'type_false': 0, 'type_undefined': -1 }; var preventDefaultMouseMove = true; each$1(dataZoomInfos, function (dataZoomInfo) { var dataZoomModel = dataZoomInfo.dataZoomModel; var oneType = dataZoomModel.get('disabled', true) ? false : dataZoomModel.get('zoomLock', true) ? 'move' : true; if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) { controlType = oneType; } // Prevent default move event by default. If one false, do not prevent. Otherwise // users may be confused why it does not work when multiple insideZooms exist. preventDefaultMouseMove &= dataZoomModel.get('preventDefaultMouseMove', true); }); return { controlType: controlType, opt: { // RoamController will enable all of these functionalities, // and the final behavior is determined by its event listener // provided by each inside zoom. zoomOnMouseWheel: true, moveOnMouseMove: true, moveOnMouseWheel: true, preventDefaultMouseMove: !!preventDefaultMouseMove } }; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var bind$6 = bind; var InsideZoomView = DataZoomView.extend({ type: 'dataZoom.inside', /** * @override */ init: function (ecModel, api) { /** * 'throttle' is used in this.dispatchAction, so we save range * to avoid missing some 'pan' info. * @private * @type {Array.} */ this._range; }, /** * @override */ render: function (dataZoomModel, ecModel, api, payload) { InsideZoomView.superApply(this, 'render', arguments); // Hence the `throttle` util ensures to preserve command order, // here simply updating range all the time will not cause missing // any of the the roam change. this._range = dataZoomModel.getPercentRange(); // Reset controllers. each$1(this.getTargetCoordInfo(), function (coordInfoList, coordSysName) { var allCoordIds = map(coordInfoList, function (coordInfo) { return generateCoordId(coordInfo.model); }); each$1(coordInfoList, function (coordInfo) { var coordModel = coordInfo.model; var getRange = {}; each$1(['pan', 'zoom', 'scrollMove'], function (eventName) { getRange[eventName] = bind$6(roamHandlers[eventName], this, coordInfo, coordSysName); }, this); register$2( api, { coordId: generateCoordId(coordModel), allCoordIds: allCoordIds, containsPoint: function (e, x, y) { return coordModel.coordinateSystem.containPoint([x, y]); }, dataZoomId: dataZoomModel.id, dataZoomModel: dataZoomModel, getRange: getRange } ); }, this); }, this); }, /** * @override */ dispose: function () { unregister$1(this.api, this.dataZoomModel.id); InsideZoomView.superApply(this, 'dispose', arguments); this._range = null; } }); var roamHandlers = { /** * @this {module:echarts/component/dataZoom/InsideZoomView} */ zoom: function (coordInfo, coordSysName, controller, e) { var lastRange = this._range; var range = lastRange.slice(); // Calculate transform by the first axis. var axisModel = coordInfo.axisModels[0]; if (!axisModel) { return; } var directionInfo = getDirectionInfo[coordSysName]( null, [e.originX, e.originY], axisModel, controller, coordInfo ); var percentPoint = ( directionInfo.signal > 0 ? (directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel) : (directionInfo.pixel - directionInfo.pixelStart) ) / directionInfo.pixelLength * (range[1] - range[0]) + range[0]; var scale = Math.max(1 / e.scale, 0); range[0] = (range[0] - percentPoint) * scale + percentPoint; range[1] = (range[1] - percentPoint) * scale + percentPoint; // Restrict range. var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(); sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan); this._range = range; if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) { return range; } }, /** * @this {module:echarts/component/dataZoom/InsideZoomView} */ pan: makeMover(function (range, axisModel, coordInfo, coordSysName, controller, e) { var directionInfo = getDirectionInfo[coordSysName]( [e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordInfo ); return directionInfo.signal * (range[1] - range[0]) * directionInfo.pixel / directionInfo.pixelLength; }), /** * @this {module:echarts/component/dataZoom/InsideZoomView} */ scrollMove: makeMover(function (range, axisModel, coordInfo, coordSysName, controller, e) { var directionInfo = getDirectionInfo[coordSysName]( [0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordInfo ); return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta; }) }; function makeMover(getPercentDelta) { return function (coordInfo, coordSysName, controller, e) { var lastRange = this._range; var range = lastRange.slice(); // Calculate transform by the first axis. var axisModel = coordInfo.axisModels[0]; if (!axisModel) { return; } var percentDelta = getPercentDelta( range, axisModel, coordInfo, coordSysName, controller, e ); sliderMove(percentDelta, range, [0, 100], 'all'); this._range = range; if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) { return range; } }; } var getDirectionInfo = { grid: function (oldPoint, newPoint, axisModel, controller, coordInfo) { var axis = axisModel.axis; var ret = {}; var rect = coordInfo.model.coordinateSystem.getRect(); oldPoint = oldPoint || [0, 0]; if (axis.dim === 'x') { ret.pixel = newPoint[0] - oldPoint[0]; ret.pixelLength = rect.width; ret.pixelStart = rect.x; ret.signal = axis.inverse ? 1 : -1; } else { // axis.dim === 'y' ret.pixel = newPoint[1] - oldPoint[1]; ret.pixelLength = rect.height; ret.pixelStart = rect.y; ret.signal = axis.inverse ? -1 : 1; } return ret; }, polar: function (oldPoint, newPoint, axisModel, controller, coordInfo) { var axis = axisModel.axis; var ret = {}; var polar = coordInfo.model.coordinateSystem; var radiusExtent = polar.getRadiusAxis().getExtent(); var angleExtent = polar.getAngleAxis().getExtent(); oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0]; newPoint = polar.pointToCoord(newPoint); if (axisModel.mainType === 'radiusAxis') { ret.pixel = newPoint[0] - oldPoint[0]; // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]); // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]); ret.pixelLength = radiusExtent[1] - radiusExtent[0]; ret.pixelStart = radiusExtent[0]; ret.signal = axis.inverse ? 1 : -1; } else { // 'angleAxis' ret.pixel = newPoint[1] - oldPoint[1]; // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]); // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]); ret.pixelLength = angleExtent[1] - angleExtent[0]; ret.pixelStart = angleExtent[0]; ret.signal = axis.inverse ? -1 : 1; } return ret; }, singleAxis: function (oldPoint, newPoint, axisModel, controller, coordInfo) { var axis = axisModel.axis; var rect = coordInfo.model.coordinateSystem.getRect(); var ret = {}; oldPoint = oldPoint || [0, 0]; if (axis.orient === 'horizontal') { ret.pixel = newPoint[0] - oldPoint[0]; ret.pixelLength = rect.width; ret.pixelStart = rect.x; ret.signal = axis.inverse ? 1 : -1; } else { // 'vertical' ret.pixel = newPoint[1] - oldPoint[1]; ret.pixelLength = rect.height; ret.pixelStart = rect.y; ret.signal = axis.inverse ? -1 : 1; } return ret; } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Do not include './dataZoomSelect', // since it only work for toolbox dataZoom. /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each$27 = each$1; var preprocessor$3 = function (option) { var visualMap = option && option.visualMap; if (!isArray(visualMap)) { visualMap = visualMap ? [visualMap] : []; } each$27(visualMap, function (opt) { if (!opt) { return; } // rename splitList to pieces if (has$2(opt, 'splitList') && !has$2(opt, 'pieces')) { opt.pieces = opt.splitList; delete opt.splitList; } var pieces = opt.pieces; if (pieces && isArray(pieces)) { each$27(pieces, function (piece) { if (isObject$1(piece)) { if (has$2(piece, 'start') && !has$2(piece, 'min')) { piece.min = piece.start; } if (has$2(piece, 'end') && !has$2(piece, 'max')) { piece.max = piece.end; } } }); } }); }; function has$2(obj, name) { return obj && obj.hasOwnProperty && obj.hasOwnProperty(name); } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ComponentModel.registerSubTypeDefaulter('visualMap', function (option) { // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used. return ( !option.categories && ( !( option.pieces ? option.pieces.length > 0 : option.splitNumber > 0 ) || option.calculable ) ) ? 'continuous' : 'piecewise'; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var VISUAL_PRIORITY = PRIORITY.VISUAL.COMPONENT; registerVisual(VISUAL_PRIORITY, { createOnAllSeries: true, reset: function (seriesModel, ecModel) { var resetDefines = []; ecModel.eachComponent('visualMap', function (visualMapModel) { var pipelineContext = seriesModel.pipelineContext; if (!visualMapModel.isTargetSeries(seriesModel) || (pipelineContext && pipelineContext.large) ) { return; } resetDefines.push(incrementalApplyVisual( visualMapModel.stateList, visualMapModel.targetVisuals, bind(visualMapModel.getValueState, visualMapModel), visualMapModel.getDataDimension(seriesModel.getData()) )); }); return resetDefines; } }); // Only support color. registerVisual(VISUAL_PRIORITY, { createOnAllSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); var visualMetaList = []; ecModel.eachComponent('visualMap', function (visualMapModel) { if (visualMapModel.isTargetSeries(seriesModel)) { var visualMeta = visualMapModel.getVisualMeta( bind(getColorVisual, null, seriesModel, visualMapModel) ) || {stops: [], outerColors: []}; var concreteDim = visualMapModel.getDataDimension(data); var dimInfo = data.getDimensionInfo(concreteDim); if (dimInfo != null) { // visualMeta.dimension should be dimension index, but not concrete dimension. visualMeta.dimension = dimInfo.index; visualMetaList.push(visualMeta); } } }); // console.log(JSON.stringify(visualMetaList.map(a => a.stops))); seriesModel.getData().setVisual('visualMeta', visualMetaList); } }); // FIXME // performance and export for heatmap? // value can be Infinity or -Infinity function getColorVisual(seriesModel, visualMapModel, value, valueState) { var mappings = visualMapModel.targetVisuals[valueState]; var visualTypes = VisualMapping.prepareVisualTypes(mappings); var resultVisual = { color: seriesModel.getData().getVisual('color') // default color. }; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; var mapping = mappings[ type === 'opacity' ? '__alphaForOpacity' : type ]; mapping && mapping.applyVisual(value, getVisual, setVisual); } return resultVisual.color; function getVisual(key) { return resultVisual[key]; } function setVisual(key, value) { resultVisual[key] = value; } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Visual mapping. */ var visualDefault = { /** * @public */ get: function (visualType, key, isCategory) { var value = clone( (defaultOption$3[visualType] || {})[key] ); return isCategory ? (isArray(value) ? value[value.length - 1] : value) : value; } }; var defaultOption$3 = { color: { active: ['#006edd', '#e0ffff'], inactive: ['rgba(0,0,0,0)'] }, colorHue: { active: [0, 360], inactive: [0, 0] }, colorSaturation: { active: [0.3, 1], inactive: [0, 0] }, colorLightness: { active: [0.9, 0.5], inactive: [0, 0] }, colorAlpha: { active: [0.3, 1], inactive: [0, 0] }, opacity: { active: [0.3, 1], inactive: [0, 0] }, symbol: { active: ['circle', 'roundRect', 'diamond'], inactive: ['none'] }, symbolSize: { active: [10, 50], inactive: [0, 0] } }; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mapVisual$2 = VisualMapping.mapVisual; var eachVisual = VisualMapping.eachVisual; var isArray$3 = isArray; var each$28 = each$1; var asc$3 = asc; var linearMap$2 = linearMap; var noop$2 = noop; var VisualMapModel = extendComponentModel({ type: 'visualMap', dependencies: ['series'], /** * @readOnly * @type {Array.} */ stateList: ['inRange', 'outOfRange'], /** * @readOnly * @type {Array.} */ replacableOptionKeys: [ 'inRange', 'outOfRange', 'target', 'controller', 'color' ], /** * [lowerBound, upperBound] * * @readOnly * @type {Array.} */ dataBound: [-Infinity, Infinity], /** * @readOnly * @type {string|Object} */ layoutMode: {type: 'box', ignoreSize: true}, /** * @protected */ defaultOption: { show: true, zlevel: 0, z: 4, seriesIndex: 'all', // 'all' or null/undefined: all series. // A number or an array of number: the specified series. // set min: 0, max: 200, only for campatible with ec2. // In fact min max should not have default value. min: 0, // min value, must specified if pieces is not specified. max: 200, // max value, must specified if pieces is not specified. dimension: null, inRange: null, // 'color', 'colorHue', 'colorSaturation', 'colorLightness', 'colorAlpha', // 'symbol', 'symbolSize' outOfRange: null, // 'color', 'colorHue', 'colorSaturation', // 'colorLightness', 'colorAlpha', // 'symbol', 'symbolSize' left: 0, // 'center' ¦ 'left' ¦ 'right' ¦ {number} (px) right: null, // The same as left. top: null, // 'top' ¦ 'bottom' ¦ 'center' ¦ {number} (px) bottom: 0, // The same as top. itemWidth: null, itemHeight: null, inverse: false, orient: 'vertical', // 'horizontal' ¦ 'vertical' backgroundColor: 'rgba(0,0,0,0)', borderColor: '#ccc', // 值域边框颜色 contentColor: '#5793f3', inactiveColor: '#aaa', borderWidth: 0, // 值域边框线宽,单位px,默认为0(无边框) padding: 5, // 值域内边距,单位px,默认各方向内边距为5, // 接受数组分别设定上右下左边距,同css textGap: 10, // precision: 0, // 小数精度,默认为0,无小数点 color: null, //颜色(deprecated,兼容ec2,顺序同pieces,不同于inRange/outOfRange) formatter: null, text: null, // 文本,如['高', '低'],兼容ec2,text[0]对应高值,text[1]对应低值 textStyle: { color: '#333' // 值域文字颜色 } }, /** * @protected */ init: function (option, parentModel, ecModel) { /** * @private * @type {Array.} */ this._dataExtent; /** * @readOnly */ this.targetVisuals = {}; /** * @readOnly */ this.controllerVisuals = {}; /** * @readOnly */ this.textStyleModel; /** * [width, height] * @readOnly * @type {Array.} */ this.itemSize; this.mergeDefaultAndTheme(option, ecModel); }, /** * @protected */ optionUpdated: function (newOption, isInit) { var thisOption = this.option; // FIXME // necessary? // Disable realtime view update if canvas is not supported. if (!env$1.canvasSupported) { thisOption.realtime = false; } !isInit && replaceVisualOption( thisOption, newOption, this.replacableOptionKeys ); this.textStyleModel = this.getModel('textStyle'); this.resetItemSize(); this.completeVisualOption(); }, /** * @protected */ resetVisual: function (supplementVisualOption) { var stateList = this.stateList; supplementVisualOption = bind(supplementVisualOption, this); this.controllerVisuals = createVisualMappings( this.option.controller, stateList, supplementVisualOption ); this.targetVisuals = createVisualMappings( this.option.target, stateList, supplementVisualOption ); }, /** * @protected * @return {Array.} An array of series indices. */ getTargetSeriesIndices: function () { var optionSeriesIndex = this.option.seriesIndex; var seriesIndices = []; if (optionSeriesIndex == null || optionSeriesIndex === 'all') { this.ecModel.eachSeries(function (seriesModel, index) { seriesIndices.push(index); }); } else { seriesIndices = normalizeToArray(optionSeriesIndex); } return seriesIndices; }, /** * @public */ eachTargetSeries: function (callback, context) { each$1(this.getTargetSeriesIndices(), function (seriesIndex) { callback.call(context, this.ecModel.getSeriesByIndex(seriesIndex)); }, this); }, /** * @pubilc */ isTargetSeries: function (seriesModel) { var is = false; this.eachTargetSeries(function (model) { model === seriesModel && (is = true); }); return is; }, /** * @example * this.formatValueText(someVal); // format single numeric value to text. * this.formatValueText(someVal, true); // format single category value to text. * this.formatValueText([min, max]); // format numeric min-max to text. * this.formatValueText([this.dataBound[0], max]); // using data lower bound. * this.formatValueText([min, this.dataBound[1]]); // using data upper bound. * * @param {number|Array.} value Real value, or this.dataBound[0 or 1]. * @param {boolean} [isCategory=false] Only available when value is number. * @param {Array.} edgeSymbols Open-close symbol when value is interval. * @return {string} * @protected */ formatValueText: function (value, isCategory, edgeSymbols) { var option = this.option; var precision = option.precision; var dataBound = this.dataBound; var formatter = option.formatter; var isMinMax; var textValue; edgeSymbols = edgeSymbols || ['<', '>']; if (isArray(value)) { value = value.slice(); isMinMax = true; } textValue = isCategory ? value : (isMinMax ? [toFixed(value[0]), toFixed(value[1])] : toFixed(value) ); if (isString(formatter)) { return formatter .replace('{value}', isMinMax ? textValue[0] : textValue) .replace('{value2}', isMinMax ? textValue[1] : textValue); } else if (isFunction$1(formatter)) { return isMinMax ? formatter(value[0], value[1]) : formatter(value); } if (isMinMax) { if (value[0] === dataBound[0]) { return edgeSymbols[0] + ' ' + textValue[1]; } else if (value[1] === dataBound[1]) { return edgeSymbols[1] + ' ' + textValue[0]; } else { return textValue[0] + ' - ' + textValue[1]; } } else { // Format single value (includes category case). return textValue; } function toFixed(val) { return val === dataBound[0] ? 'min' : val === dataBound[1] ? 'max' : (+val).toFixed(Math.min(precision, 20)); } }, /** * @protected */ resetExtent: function () { var thisOption = this.option; // Can not calculate data extent by data here. // Because series and data may be modified in processing stage. // So we do not support the feature "auto min/max". var extent = asc$3([thisOption.min, thisOption.max]); this._dataExtent = extent; }, /** * @public * @param {module:echarts/data/List} list * @return {string} Concrete dimention. If return null/undefined, * no dimension used. */ getDataDimension: function (list) { var optDim = this.option.dimension; var listDimensions = list.dimensions; if (optDim == null && !listDimensions.length) { return; } if (optDim != null) { return list.getDimension(optDim); } var dimNames = list.dimensions; for (var i = dimNames.length - 1; i >= 0; i--) { var dimName = dimNames[i]; var dimInfo = list.getDimensionInfo(dimName); if (!dimInfo.isCalculationCoord) { return dimName; } } }, /** * @public * @override */ getExtent: function () { return this._dataExtent.slice(); }, /** * @protected */ completeVisualOption: function () { var ecModel = this.ecModel; var thisOption = this.option; var base = {inRange: thisOption.inRange, outOfRange: thisOption.outOfRange}; var target = thisOption.target || (thisOption.target = {}); var controller = thisOption.controller || (thisOption.controller = {}); merge(target, base); // Do not override merge(controller, base); // Do not override var isCategory = this.isCategory(); completeSingle.call(this, target); completeSingle.call(this, controller); completeInactive.call(this, target, 'inRange', 'outOfRange'); // completeInactive.call(this, target, 'outOfRange', 'inRange'); completeController.call(this, controller); function completeSingle(base) { // Compatible with ec2 dataRange.color. // The mapping order of dataRange.color is: [high value, ..., low value] // whereas inRange.color and outOfRange.color is [low value, ..., high value] // Notice: ec2 has no inverse. if (isArray$3(thisOption.color) // If there has been inRange: {symbol: ...}, adding color is a mistake. // So adding color only when no inRange defined. && !base.inRange ) { base.inRange = {color: thisOption.color.slice().reverse()}; } // Compatible with previous logic, always give a defautl color, otherwise // simple config with no inRange and outOfRange will not work. // Originally we use visualMap.color as the default color, but setOption at // the second time the default color will be erased. So we change to use // constant DEFAULT_COLOR. // If user do not want the defualt color, set inRange: {color: null}. base.inRange = base.inRange || {color: ecModel.get('gradientColor')}; // If using shortcut like: {inRange: 'symbol'}, complete default value. each$28(this.stateList, function (state) { var visualType = base[state]; if (isString(visualType)) { var defa = visualDefault.get(visualType, 'active', isCategory); if (defa) { base[state] = {}; base[state][visualType] = defa; } else { // Mark as not specified. delete base[state]; } } }, this); } function completeInactive(base, stateExist, stateAbsent) { var optExist = base[stateExist]; var optAbsent = base[stateAbsent]; if (optExist && !optAbsent) { optAbsent = base[stateAbsent] = {}; each$28(optExist, function (visualData, visualType) { if (!VisualMapping.isValidType(visualType)) { return; } var defa = visualDefault.get(visualType, 'inactive', isCategory); if (defa != null) { optAbsent[visualType] = defa; // Compatibable with ec2: // Only inactive color to rgba(0,0,0,0) can not // make label transparent, so use opacity also. if (visualType === 'color' && !optAbsent.hasOwnProperty('opacity') && !optAbsent.hasOwnProperty('colorAlpha') ) { optAbsent.opacity = [0, 0]; } } }); } } function completeController(controller) { var symbolExists = (controller.inRange || {}).symbol || (controller.outOfRange || {}).symbol; var symbolSizeExists = (controller.inRange || {}).symbolSize || (controller.outOfRange || {}).symbolSize; var inactiveColor = this.get('inactiveColor'); each$28(this.stateList, function (state) { var itemSize = this.itemSize; var visuals = controller[state]; // Set inactive color for controller if no other color // attr (like colorAlpha) specified. if (!visuals) { visuals = controller[state] = { color: isCategory ? inactiveColor : [inactiveColor] }; } // Consistent symbol and symbolSize if not specified. if (visuals.symbol == null) { visuals.symbol = symbolExists && clone(symbolExists) || (isCategory ? 'roundRect' : ['roundRect']); } if (visuals.symbolSize == null) { visuals.symbolSize = symbolSizeExists && clone(symbolSizeExists) || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]); } // Filter square and none. visuals.symbol = mapVisual$2(visuals.symbol, function (symbol) { return (symbol === 'none' || symbol === 'square') ? 'roundRect' : symbol; }); // Normalize symbolSize var symbolSize = visuals.symbolSize; if (symbolSize != null) { var max = -Infinity; // symbolSize can be object when categories defined. eachVisual(symbolSize, function (value) { value > max && (max = value); }); visuals.symbolSize = mapVisual$2(symbolSize, function (value) { return linearMap$2(value, [0, max], [0, itemSize[0]], true); }); } }, this); } }, /** * @protected */ resetItemSize: function () { this.itemSize = [ parseFloat(this.get('itemWidth')), parseFloat(this.get('itemHeight')) ]; }, /** * @public */ isCategory: function () { return !!this.option.categories; }, /** * @public * @abstract */ setSelected: noop$2, /** * @public * @abstract * @param {*|module:echarts/data/List} valueOrData * @param {number} dataIndex * @return {string} state See this.stateList */ getValueState: noop$2, /** * FIXME * Do not publish to thirt-part-dev temporarily * util the interface is stable. (Should it return * a function but not visual meta?) * * @pubilc * @abstract * @param {Function} getColorVisual * params: value, valueState * return: color * @return {Object} visualMeta * should includes {stops, outerColors} * outerColor means [colorBeyondMinValue, colorBeyondMaxValue] */ getVisualMeta: noop$2 }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Constant var DEFAULT_BAR_BOUND = [20, 140]; var ContinuousModel = VisualMapModel.extend({ type: 'visualMap.continuous', /** * @protected */ defaultOption: { align: 'auto', // 'auto', 'left', 'right', 'top', 'bottom' calculable: false, // This prop effect default component type determine, // See echarts/component/visualMap/typeDefaulter. range: null, // selected range. In default case `range` is [min, max] // and can auto change along with modification of min max, // util use specifid a range. realtime: true, // Whether realtime update. itemHeight: null, // The length of the range control edge. itemWidth: null, // The length of the other side. hoverLink: true, // Enable hover highlight. hoverLinkDataSize: null, // The size of hovered data. hoverLinkOnHandle: null // Whether trigger hoverLink when hover handle. // If not specified, follow the value of `realtime`. }, /** * @override */ optionUpdated: function (newOption, isInit) { ContinuousModel.superApply(this, 'optionUpdated', arguments); this.resetExtent(); this.resetVisual(function (mappingOption) { mappingOption.mappingMethod = 'linear'; mappingOption.dataExtent = this.getExtent(); }); this._resetRange(); }, /** * @protected * @override */ resetItemSize: function () { ContinuousModel.superApply(this, 'resetItemSize', arguments); var itemSize = this.itemSize; this._orient === 'horizontal' && itemSize.reverse(); (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]); (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]); }, /** * @private */ _resetRange: function () { var dataExtent = this.getExtent(); var range = this.option.range; if (!range || range.auto) { // `range` should always be array (so we dont use other // value like 'auto') for user-friend. (consider getOption). dataExtent.auto = 1; this.option.range = dataExtent; } else if (isArray(range)) { if (range[0] > range[1]) { range.reverse(); } range[0] = Math.max(range[0], dataExtent[0]); range[1] = Math.min(range[1], dataExtent[1]); } }, /** * @protected * @override */ completeVisualOption: function () { VisualMapModel.prototype.completeVisualOption.apply(this, arguments); each$1(this.stateList, function (state) { var symbolSize = this.option.controller[state].symbolSize; if (symbolSize && symbolSize[0] !== symbolSize[1]) { symbolSize[0] = 0; // For good looking. } }, this); }, /** * @override */ setSelected: function (selected) { this.option.range = selected.slice(); this._resetRange(); }, /** * @public */ getSelected: function () { var dataExtent = this.getExtent(); var dataInterval = asc( (this.get('range') || []).slice() ); // Clamp dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]); dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]); dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]); dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]); return dataInterval; }, /** * @override */ getValueState: function (value) { var range = this.option.range; var dataExtent = this.getExtent(); // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'. // range[1] is processed likewise. return ( (range[0] <= dataExtent[0] || range[0] <= value) && (range[1] >= dataExtent[1] || value <= range[1]) ) ? 'inRange' : 'outOfRange'; }, /** * @params {Array.} range target value: range[0] <= value && value <= range[1] * @return {Array.} [{seriesId, dataIndices: >}, ...] */ findTargetDataIndices: function (range) { var result = []; this.eachTargetSeries(function (seriesModel) { var dataIndices = []; var data = seriesModel.getData(); data.each(this.getDataDimension(data), function (value, dataIndex) { range[0] <= value && value <= range[1] && dataIndices.push(dataIndex); }, this); result.push({seriesId: seriesModel.id, dataIndex: dataIndices}); }, this); return result; }, /** * @implement */ getVisualMeta: function (getColorVisual) { var oVals = getColorStopValues(this, 'outOfRange', this.getExtent()); var iVals = getColorStopValues(this, 'inRange', this.option.range.slice()); var stops = []; function setStop(value, valueState) { stops.push({ value: value, color: getColorVisual(value, valueState) }); } // Format to: outOfRange -- inRange -- outOfRange. var iIdx = 0; var oIdx = 0; var iLen = iVals.length; var oLen = oVals.length; for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) { // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored. if (oVals[oIdx] < iVals[iIdx]) { setStop(oVals[oIdx], 'outOfRange'); } } for (var first = 1; iIdx < iLen; iIdx++, first = 0) { // If range is full, value beyond min, max will be clamped. // make a singularity first && stops.length && setStop(iVals[iIdx], 'outOfRange'); setStop(iVals[iIdx], 'inRange'); } for (var first = 1; oIdx < oLen; oIdx++) { if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) { // make a singularity if (first) { stops.length && setStop(stops[stops.length - 1].value, 'outOfRange'); first = 0; } setStop(oVals[oIdx], 'outOfRange'); } } var stopsLen = stops.length; return { stops: stops, outerColors: [ stopsLen ? stops[0].color : 'transparent', stopsLen ? stops[stopsLen - 1].color : 'transparent' ] }; } }); function getColorStopValues(visualMapModel, valueState, dataExtent) { if (dataExtent[0] === dataExtent[1]) { return dataExtent.slice(); } // When using colorHue mapping, it is not linear color any more. // Moreover, canvas gradient seems not to be accurate linear. // FIXME // Should be arbitrary value 100? or based on pixel size? var count = 200; var step = (dataExtent[1] - dataExtent[0]) / count; var value = dataExtent[0]; var stopValues = []; for (var i = 0; i <= count && value < dataExtent[1]; i++) { stopValues.push(value); value += step; } stopValues.push(dataExtent[1]); return stopValues; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var VisualMapView = extendComponentView({ type: 'visualMap', /** * @readOnly * @type {Object} */ autoPositionValues: {left: 1, right: 1, top: 1, bottom: 1}, init: function (ecModel, api) { /** * @readOnly * @type {module:echarts/model/Global} */ this.ecModel = ecModel; /** * @readOnly * @type {module:echarts/ExtensionAPI} */ this.api = api; /** * @readOnly * @type {module:echarts/component/visualMap/visualMapModel} */ this.visualMapModel; }, /** * @protected */ render: function (visualMapModel, ecModel, api, payload) { this.visualMapModel = visualMapModel; if (visualMapModel.get('show') === false) { this.group.removeAll(); return; } this.doRender.apply(this, arguments); }, /** * @protected */ renderBackground: function (group) { var visualMapModel = this.visualMapModel; var padding = normalizeCssArray$1(visualMapModel.get('padding') || 0); var rect = group.getBoundingRect(); group.add(new Rect({ z2: -1, // Lay background rect on the lowest layer. silent: true, shape: { x: rect.x - padding[3], y: rect.y - padding[0], width: rect.width + padding[3] + padding[1], height: rect.height + padding[0] + padding[2] }, style: { fill: visualMapModel.get('backgroundColor'), stroke: visualMapModel.get('borderColor'), lineWidth: visualMapModel.get('borderWidth') } })); }, /** * @protected * @param {number} targetValue can be Infinity or -Infinity * @param {string=} visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize' * @param {Object} [opts] * @param {string=} [opts.forceState] Specify state, instead of using getValueState method. * @param {string=} [opts.convertOpacityToAlpha=false] For color gradient in controller widget. * @return {*} Visual value. */ getControllerVisual: function (targetValue, visualCluster, opts) { opts = opts || {}; var forceState = opts.forceState; var visualMapModel = this.visualMapModel; var visualObj = {}; // Default values. if (visualCluster === 'symbol') { visualObj.symbol = visualMapModel.get('itemSymbol'); } if (visualCluster === 'color') { var defaultColor = visualMapModel.get('contentColor'); visualObj.color = defaultColor; } function getter(key) { return visualObj[key]; } function setter(key, value) { visualObj[key] = value; } var mappings = visualMapModel.controllerVisuals[ forceState || visualMapModel.getValueState(targetValue) ]; var visualTypes = VisualMapping.prepareVisualTypes(mappings); each$1(visualTypes, function (type) { var visualMapping = mappings[type]; if (opts.convertOpacityToAlpha && type === 'opacity') { type = 'colorAlpha'; visualMapping = mappings.__alphaForOpacity; } if (VisualMapping.dependsOn(type, visualCluster)) { visualMapping && visualMapping.applyVisual( targetValue, getter, setter ); } }); return visualObj[visualCluster]; }, /** * @protected */ positionGroup: function (group) { var model = this.visualMapModel; var api = this.api; positionElement( group, model.getBoxLayoutParams(), {width: api.getWidth(), height: api.getHeight()} ); }, /** * @protected * @abstract */ doRender: noop }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param {module:echarts/component/visualMap/VisualMapModel} visualMapModel\ * @param {module:echarts/ExtensionAPI} api * @param {Array.} itemSize always [short, long] * @return {string} 'left' or 'right' or 'top' or 'bottom' */ function getItemAlign(visualMapModel, api, itemSize) { var modelOption = visualMapModel.option; var itemAlign = modelOption.align; if (itemAlign != null && itemAlign !== 'auto') { return itemAlign; } // Auto decision align. var ecSize = {width: api.getWidth(), height: api.getHeight()}; var realIndex = modelOption.orient === 'horizontal' ? 1 : 0; var paramsSet = [ ['left', 'right', 'width'], ['top', 'bottom', 'height'] ]; var reals = paramsSet[realIndex]; var fakeValue = [0, null, 10]; var layoutInput = {}; for (var i = 0; i < 3; i++) { layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i]; layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]]; } var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex]; var rect = getLayoutRect(layoutInput, ecSize, modelOption.padding); return reals[ (rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5 < ecSize[rParam[1]] * 0.5 ? 0 : 1 ]; } /** * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and * dataIndexInside means filtered index. */ function makeHighDownBatch(batch, visualMapModel) { each$1(batch || [], function (batchItem) { if (batchItem.dataIndex != null) { batchItem.dataIndexInside = batchItem.dataIndex; batchItem.dataIndex = null; } batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : ''); }); return batch; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var linearMap$3 = linearMap; var each$29 = each$1; var mathMin$7 = Math.min; var mathMax$7 = Math.max; // Arbitrary value var HOVER_LINK_SIZE = 12; var HOVER_LINK_OUT = 6; // Notice: // Any "interval" should be by the order of [low, high]. // "handle0" (handleIndex === 0) maps to // low data value: this._dataInterval[0] and has low coord. // "handle1" (handleIndex === 1) maps to // high data value: this._dataInterval[1] and has high coord. // The logic of transform is implemented in this._createBarGroup. var ContinuousView = VisualMapView.extend({ type: 'visualMap.continuous', /** * @override */ init: function () { ContinuousView.superApply(this, 'init', arguments); /** * @private */ this._shapes = {}; /** * @private */ this._dataInterval = []; /** * @private */ this._handleEnds = []; /** * @private */ this._orient; /** * @private */ this._useHandle; /** * @private */ this._hoverLinkDataIndices = []; /** * @private */ this._dragging; /** * @private */ this._hovering; }, /** * @protected * @override */ doRender: function (visualMapModel, ecModel, api, payload) { if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) { this._buildView(); } }, /** * @private */ _buildView: function () { this.group.removeAll(); var visualMapModel = this.visualMapModel; var thisGroup = this.group; this._orient = visualMapModel.get('orient'); this._useHandle = visualMapModel.get('calculable'); this._resetInterval(); this._renderBar(thisGroup); var dataRangeText = visualMapModel.get('text'); this._renderEndsText(thisGroup, dataRangeText, 0); this._renderEndsText(thisGroup, dataRangeText, 1); // Do this for background size calculation. this._updateView(true); // After updating view, inner shapes is built completely, // and then background can be rendered. this.renderBackground(thisGroup); // Real update view this._updateView(); this._enableHoverLinkToSeries(); this._enableHoverLinkFromSeries(); this.positionGroup(thisGroup); }, /** * @private */ _renderEndsText: function (group, dataRangeText, endsIndex) { if (!dataRangeText) { return; } // Compatible with ec2, text[0] map to high value, text[1] map low value. var text = dataRangeText[1 - endsIndex]; text = text != null ? text + '' : ''; var visualMapModel = this.visualMapModel; var textGap = visualMapModel.get('textGap'); var itemSize = visualMapModel.itemSize; var barGroup = this._shapes.barGroup; var position = this._applyTransform( [ itemSize[0] / 2, endsIndex === 0 ? -textGap : itemSize[1] + textGap ], barGroup ); var align = this._applyTransform( endsIndex === 0 ? 'bottom' : 'top', barGroup ); var orient = this._orient; var textStyleModel = this.visualMapModel.textStyleModel; this.group.add(new Text({ style: { x: position[0], y: position[1], textVerticalAlign: orient === 'horizontal' ? 'middle' : align, textAlign: orient === 'horizontal' ? align : 'center', text: text, textFont: textStyleModel.getFont(), textFill: textStyleModel.getTextColor() } })); }, /** * @private */ _renderBar: function (targetGroup) { var visualMapModel = this.visualMapModel; var shapes = this._shapes; var itemSize = visualMapModel.itemSize; var orient = this._orient; var useHandle = this._useHandle; var itemAlign = getItemAlign(visualMapModel, this.api, itemSize); var barGroup = shapes.barGroup = this._createBarGroup(itemAlign); // Bar barGroup.add(shapes.outOfRange = createPolygon()); barGroup.add(shapes.inRange = createPolygon( null, useHandle ? getCursor$1(this._orient) : null, bind(this._dragHandle, this, 'all', false), bind(this._dragHandle, this, 'all', true) )); var textRect = visualMapModel.textStyleModel.getTextRect('国'); var textSize = mathMax$7(textRect.width, textRect.height); // Handle if (useHandle) { shapes.handleThumbs = []; shapes.handleLabels = []; shapes.handleLabelPoints = []; this._createHandle(barGroup, 0, itemSize, textSize, orient, itemAlign); this._createHandle(barGroup, 1, itemSize, textSize, orient, itemAlign); } this._createIndicator(barGroup, itemSize, textSize, orient); targetGroup.add(barGroup); }, /** * @private */ _createHandle: function (barGroup, handleIndex, itemSize, textSize, orient) { var onDrift = bind(this._dragHandle, this, handleIndex, false); var onDragEnd = bind(this._dragHandle, this, handleIndex, true); var handleThumb = createPolygon( createHandlePoints(handleIndex, textSize), getCursor$1(this._orient), onDrift, onDragEnd ); handleThumb.position[0] = itemSize[0]; barGroup.add(handleThumb); // Text is always horizontal layout but should not be effected by // transform (orient/inverse). So label is built separately but not // use zrender/graphic/helper/RectText, and is located based on view // group (according to handleLabelPoint) but not barGroup. var textStyleModel = this.visualMapModel.textStyleModel; var handleLabel = new Text({ draggable: true, drift: onDrift, onmousemove: function (e) { // Fot mobile devicem, prevent screen slider on the button. stop(e.event); }, ondragend: onDragEnd, style: { x: 0, y: 0, text: '', textFont: textStyleModel.getFont(), textFill: textStyleModel.getTextColor() } }); this.group.add(handleLabel); var handleLabelPoint = [ orient === 'horizontal' ? textSize / 2 : textSize * 1.5, orient === 'horizontal' ? (handleIndex === 0 ? -(textSize * 1.5) : (textSize * 1.5)) : (handleIndex === 0 ? -textSize / 2 : textSize / 2) ]; var shapes = this._shapes; shapes.handleThumbs[handleIndex] = handleThumb; shapes.handleLabelPoints[handleIndex] = handleLabelPoint; shapes.handleLabels[handleIndex] = handleLabel; }, /** * @private */ _createIndicator: function (barGroup, itemSize, textSize, orient) { var indicator = createPolygon([[0, 0]], 'move'); indicator.position[0] = itemSize[0]; indicator.attr({invisible: true, silent: true}); barGroup.add(indicator); var textStyleModel = this.visualMapModel.textStyleModel; var indicatorLabel = new Text({ silent: true, invisible: true, style: { x: 0, y: 0, text: '', textFont: textStyleModel.getFont(), textFill: textStyleModel.getTextColor() } }); this.group.add(indicatorLabel); var indicatorLabelPoint = [ orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT + 3, 0 ]; var shapes = this._shapes; shapes.indicator = indicator; shapes.indicatorLabel = indicatorLabel; shapes.indicatorLabelPoint = indicatorLabelPoint; }, /** * @private */ _dragHandle: function (handleIndex, isEnd, dx, dy) { if (!this._useHandle) { return; } this._dragging = !isEnd; if (!isEnd) { // Transform dx, dy to bar coordination. var vertex = this._applyTransform([dx, dy], this._shapes.barGroup, true); this._updateInterval(handleIndex, vertex[1]); // Considering realtime, update view should be executed // before dispatch action. this._updateView(); } // dragEnd do not dispatch action when realtime. if (isEnd === !this.visualMapModel.get('realtime')) { // jshint ignore:line this.api.dispatchAction({ type: 'selectDataRange', from: this.uid, visualMapId: this.visualMapModel.id, selected: this._dataInterval.slice() }); } if (isEnd) { !this._hovering && this._clearHoverLinkToSeries(); } else if (useHoverLinkOnHandle(this.visualMapModel)) { this._doHoverLinkToSeries(this._handleEnds[handleIndex], false); } }, /** * @private */ _resetInterval: function () { var visualMapModel = this.visualMapModel; var dataInterval = this._dataInterval = visualMapModel.getSelected(); var dataExtent = visualMapModel.getExtent(); var sizeExtent = [0, visualMapModel.itemSize[1]]; this._handleEnds = [ linearMap$3(dataInterval[0], dataExtent, sizeExtent, true), linearMap$3(dataInterval[1], dataExtent, sizeExtent, true) ]; }, /** * @private * @param {(number|string)} handleIndex 0 or 1 or 'all' * @param {number} dx * @param {number} dy */ _updateInterval: function (handleIndex, delta) { delta = delta || 0; var visualMapModel = this.visualMapModel; var handleEnds = this._handleEnds; var sizeExtent = [0, visualMapModel.itemSize[1]]; sliderMove( delta, handleEnds, sizeExtent, handleIndex, // cross is forbiden 0 ); var dataExtent = visualMapModel.getExtent(); // Update data interval. this._dataInterval = [ linearMap$3(handleEnds[0], sizeExtent, dataExtent, true), linearMap$3(handleEnds[1], sizeExtent, dataExtent, true) ]; }, /** * @private */ _updateView: function (forSketch) { var visualMapModel = this.visualMapModel; var dataExtent = visualMapModel.getExtent(); var shapes = this._shapes; var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]]; var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds; var visualInRange = this._createBarVisual( this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange' ); var visualOutOfRange = this._createBarVisual( dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange' ); shapes.inRange .setStyle({ fill: visualInRange.barColor, opacity: visualInRange.opacity }) .setShape('points', visualInRange.barPoints); shapes.outOfRange .setStyle({ fill: visualOutOfRange.barColor, opacity: visualOutOfRange.opacity }) .setShape('points', visualOutOfRange.barPoints); this._updateHandle(inRangeHandleEnds, visualInRange); }, /** * @private */ _createBarVisual: function (dataInterval, dataExtent, handleEnds, forceState) { var opts = { forceState: forceState, convertOpacityToAlpha: true }; var colorStops = this._makeColorGradient(dataInterval, opts); var symbolSizes = [ this.getControllerVisual(dataInterval[0], 'symbolSize', opts), this.getControllerVisual(dataInterval[1], 'symbolSize', opts) ]; var barPoints = this._createBarPoints(handleEnds, symbolSizes); return { barColor: new LinearGradient(0, 0, 0, 1, colorStops), barPoints: barPoints, handlesColor: [ colorStops[0].color, colorStops[colorStops.length - 1].color ] }; }, /** * @private */ _makeColorGradient: function (dataInterval, opts) { // Considering colorHue, which is not linear, so we have to sample // to calculate gradient color stops, but not only caculate head // and tail. var sampleNumber = 100; // Arbitrary value. var colorStops = []; var step = (dataInterval[1] - dataInterval[0]) / sampleNumber; colorStops.push({ color: this.getControllerVisual(dataInterval[0], 'color', opts), offset: 0 }); for (var i = 1; i < sampleNumber; i++) { var currValue = dataInterval[0] + step * i; if (currValue > dataInterval[1]) { break; } colorStops.push({ color: this.getControllerVisual(currValue, 'color', opts), offset: i / sampleNumber }); } colorStops.push({ color: this.getControllerVisual(dataInterval[1], 'color', opts), offset: 1 }); return colorStops; }, /** * @private */ _createBarPoints: function (handleEnds, symbolSizes) { var itemSize = this.visualMapModel.itemSize; return [ [itemSize[0] - symbolSizes[0], handleEnds[0]], [itemSize[0], handleEnds[0]], [itemSize[0], handleEnds[1]], [itemSize[0] - symbolSizes[1], handleEnds[1]] ]; }, /** * @private */ _createBarGroup: function (itemAlign) { var orient = this._orient; var inverse = this.visualMapModel.get('inverse'); return new Group( (orient === 'horizontal' && !inverse) ? {scale: itemAlign === 'bottom' ? [1, 1] : [-1, 1], rotation: Math.PI / 2} : (orient === 'horizontal' && inverse) ? {scale: itemAlign === 'bottom' ? [-1, 1] : [1, 1], rotation: -Math.PI / 2} : (orient === 'vertical' && !inverse) ? {scale: itemAlign === 'left' ? [1, -1] : [-1, -1]} : {scale: itemAlign === 'left' ? [1, 1] : [-1, 1]} ); }, /** * @private */ _updateHandle: function (handleEnds, visualInRange) { if (!this._useHandle) { return; } var shapes = this._shapes; var visualMapModel = this.visualMapModel; var handleThumbs = shapes.handleThumbs; var handleLabels = shapes.handleLabels; each$29([0, 1], function (handleIndex) { var handleThumb = handleThumbs[handleIndex]; handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]); handleThumb.position[1] = handleEnds[handleIndex]; // Update handle label position. var textPoint = applyTransform$1( shapes.handleLabelPoints[handleIndex], getTransform(handleThumb, this.group) ); handleLabels[handleIndex].setStyle({ x: textPoint[0], y: textPoint[1], text: visualMapModel.formatValueText(this._dataInterval[handleIndex]), textVerticalAlign: 'middle', textAlign: this._applyTransform( this._orient === 'horizontal' ? (handleIndex === 0 ? 'bottom' : 'top') : 'left', shapes.barGroup ) }); }, this); }, /** * @private * @param {number} cursorValue * @param {number} textValue * @param {string} [rangeSymbol] * @param {number} [halfHoverLinkSize] */ _showIndicator: function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) { var visualMapModel = this.visualMapModel; var dataExtent = visualMapModel.getExtent(); var itemSize = visualMapModel.itemSize; var sizeExtent = [0, itemSize[1]]; var pos = linearMap$3(cursorValue, dataExtent, sizeExtent, true); var shapes = this._shapes; var indicator = shapes.indicator; if (!indicator) { return; } indicator.position[1] = pos; indicator.attr('invisible', false); indicator.setShape('points', createIndicatorPoints( !!rangeSymbol, halfHoverLinkSize, pos, itemSize[1] )); var opts = {convertOpacityToAlpha: true}; var color = this.getControllerVisual(cursorValue, 'color', opts); indicator.setStyle('fill', color); // Update handle label position. var textPoint = applyTransform$1( shapes.indicatorLabelPoint, getTransform(indicator, this.group) ); var indicatorLabel = shapes.indicatorLabel; indicatorLabel.attr('invisible', false); var align = this._applyTransform('left', shapes.barGroup); var orient = this._orient; indicatorLabel.setStyle({ text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue), textVerticalAlign: orient === 'horizontal' ? align : 'middle', textAlign: orient === 'horizontal' ? 'center' : align, x: textPoint[0], y: textPoint[1] }); }, /** * @private */ _enableHoverLinkToSeries: function () { var self = this; this._shapes.barGroup .on('mousemove', function (e) { self._hovering = true; if (!self._dragging) { var itemSize = self.visualMapModel.itemSize; var pos = self._applyTransform( [e.offsetX, e.offsetY], self._shapes.barGroup, true, true ); // For hover link show when hover handle, which might be // below or upper than sizeExtent. pos[1] = mathMin$7(mathMax$7(0, pos[1]), itemSize[1]); self._doHoverLinkToSeries( pos[1], 0 <= pos[0] && pos[0] <= itemSize[0] ); } }) .on('mouseout', function () { // When mouse is out of handle, hoverLink still need // to be displayed when realtime is set as false. self._hovering = false; !self._dragging && self._clearHoverLinkToSeries(); }); }, /** * @private */ _enableHoverLinkFromSeries: function () { var zr = this.api.getZr(); if (this.visualMapModel.option.hoverLink) { zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this); zr.on('mouseout', this._hideIndicator, this); } else { this._clearHoverLinkFromSeries(); } }, /** * @private */ _doHoverLinkToSeries: function (cursorPos, hoverOnBar) { var visualMapModel = this.visualMapModel; var itemSize = visualMapModel.itemSize; if (!visualMapModel.option.hoverLink) { return; } var sizeExtent = [0, itemSize[1]]; var dataExtent = visualMapModel.getExtent(); // For hover link show when hover handle, which might be below or upper than sizeExtent. cursorPos = mathMin$7(mathMax$7(sizeExtent[0], cursorPos), sizeExtent[1]); var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent); var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize]; var cursorValue = linearMap$3(cursorPos, sizeExtent, dataExtent, true); var valueRange = [ linearMap$3(hoverRange[0], sizeExtent, dataExtent, true), linearMap$3(hoverRange[1], sizeExtent, dataExtent, true) ]; // Consider data range is out of visualMap range, see test/visualMap-continuous.html, // where china and india has very large population. hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity); hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity); // Do not show indicator when mouse is over handle, // otherwise labels overlap, especially when dragging. if (hoverOnBar) { if (valueRange[0] === -Infinity) { this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize); } else if (valueRange[1] === Infinity) { this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize); } else { this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize); } } // When realtime is set as false, handles, which are in barGroup, // also trigger hoverLink, which help user to realize where they // focus on when dragging. (see test/heatmap-large.html) // When realtime is set as true, highlight will not show when hover // handle, because the label on handle, which displays a exact value // but not range, might mislead users. var oldBatch = this._hoverLinkDataIndices; var newBatch = []; if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) { newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange); } var resultBatches = compressBatches(oldBatch, newBatch); this._dispatchHighDown('downplay', makeHighDownBatch(resultBatches[0], visualMapModel)); this._dispatchHighDown('highlight', makeHighDownBatch(resultBatches[1], visualMapModel)); }, /** * @private */ _hoverLinkFromSeriesMouseOver: function (e) { var el = e.target; var visualMapModel = this.visualMapModel; if (!el || el.dataIndex == null) { return; } var dataModel = this.ecModel.getSeriesByIndex(el.seriesIndex); if (!visualMapModel.isTargetSeries(dataModel)) { return; } var data = dataModel.getData(el.dataType); var value = data.get(visualMapModel.getDataDimension(data), el.dataIndex, true); if (!isNaN(value)) { this._showIndicator(value, value); } }, /** * @private */ _hideIndicator: function () { var shapes = this._shapes; shapes.indicator && shapes.indicator.attr('invisible', true); shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true); }, /** * @private */ _clearHoverLinkToSeries: function () { this._hideIndicator(); var indices = this._hoverLinkDataIndices; this._dispatchHighDown('downplay', makeHighDownBatch(indices, this.visualMapModel)); indices.length = 0; }, /** * @private */ _clearHoverLinkFromSeries: function () { this._hideIndicator(); var zr = this.api.getZr(); zr.off('mouseover', this._hoverLinkFromSeriesMouseOver); zr.off('mouseout', this._hideIndicator); }, /** * @private */ _applyTransform: function (vertex, element, inverse, global) { var transform = getTransform(element, global ? null : this.group); return graphic[ isArray(vertex) ? 'applyTransform' : 'transformDirection' ](vertex, transform, inverse); }, /** * @private */ _dispatchHighDown: function (type, batch) { batch && batch.length && this.api.dispatchAction({ type: type, batch: batch }); }, /** * @override */ dispose: function () { this._clearHoverLinkFromSeries(); this._clearHoverLinkToSeries(); }, /** * @override */ remove: function () { this._clearHoverLinkFromSeries(); this._clearHoverLinkToSeries(); } }); function createPolygon(points, cursor, onDrift, onDragEnd) { return new Polygon({ shape: {points: points}, draggable: !!onDrift, cursor: cursor, drift: onDrift, onmousemove: function (e) { // Fot mobile devicem, prevent screen slider on the button. stop(e.event); }, ondragend: onDragEnd }); } function createHandlePoints(handleIndex, textSize) { return handleIndex === 0 ? [[0, 0], [textSize, 0], [textSize, -textSize]] : [[0, 0], [textSize, 0], [textSize, textSize]]; } function createIndicatorPoints(isRange, halfHoverLinkSize, pos, extentMax) { return isRange ? [ // indicate range [0, -mathMin$7(halfHoverLinkSize, mathMax$7(pos, 0))], [HOVER_LINK_OUT, 0], [0, mathMin$7(halfHoverLinkSize, mathMax$7(extentMax - pos, 0))] ] : [ // indicate single value [0, 0], [5, -5], [5, 5] ]; } function getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) { var halfHoverLinkSize = HOVER_LINK_SIZE / 2; var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize'); if (hoverLinkDataSize) { halfHoverLinkSize = linearMap$3(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2; } return halfHoverLinkSize; } function useHoverLinkOnHandle(visualMapModel) { var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle'); return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle); } function getCursor$1(orient) { return orient === 'vertical' ? 'ns-resize' : 'ew-resize'; } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var actionInfo$2 = { type: 'selectDataRange', event: 'dataRangeSelected', // FIXME use updateView appears wrong update: 'update' }; registerAction(actionInfo$2, function (payload, ecModel) { ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) { model.setSelected(payload.selected); }); }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * DataZoom component entry */ registerPreprocessor(preprocessor$3); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PiecewiseModel = VisualMapModel.extend({ type: 'visualMap.piecewise', /** * Order Rule: * * option.categories / option.pieces / option.text / option.selected: * If !option.inverse, * Order when vertical: ['top', ..., 'bottom']. * Order when horizontal: ['left', ..., 'right']. * If option.inverse, the meaning of * the order should be reversed. * * this._pieceList: * The order is always [low, ..., high]. * * Mapping from location to low-high: * If !option.inverse * When vertical, top is high. * When horizontal, right is high. * If option.inverse, reverse. */ /** * @protected */ defaultOption: { selected: null, // Object. If not specified, means selected. // When pieces and splitNumber: {'0': true, '5': true} // When categories: {'cate1': false, 'cate3': true} // When selected === false, means all unselected. minOpen: false, // Whether include values that smaller than `min`. maxOpen: false, // Whether include values that bigger than `max`. align: 'auto', // 'auto', 'left', 'right' itemWidth: 20, // When put the controller vertically, it is the length of // horizontal side of each item. Otherwise, vertical side. itemHeight: 14, // When put the controller vertically, it is the length of // vertical side of each item. Otherwise, horizontal side. itemSymbol: 'roundRect', pieceList: null, // Each item is Object, with some of those attrs: // {min, max, lt, gt, lte, gte, value, // color, colorSaturation, colorAlpha, opacity, // symbol, symbolSize}, which customize the range or visual // coding of the certain piece. Besides, see "Order Rule". categories: null, // category names, like: ['some1', 'some2', 'some3']. // Attr min/max are ignored when categories set. See "Order Rule" splitNumber: 5, // If set to 5, auto split five pieces equally. // If set to 0 and component type not set, component type will be // determined as "continuous". (It is less reasonable but for ec2 // compatibility, see echarts/component/visualMap/typeDefaulter) selectedMode: 'multiple', // Can be 'multiple' or 'single'. itemGap: 10, // The gap between two items, in px. hoverLink: true, // Enable hover highlight. showLabel: null // By default, when text is used, label will hide (the logic // is remained for compatibility reason) }, /** * @override */ optionUpdated: function (newOption, isInit) { PiecewiseModel.superApply(this, 'optionUpdated', arguments); /** * The order is always [low, ..., high]. * [{text: string, interval: Array.}, ...] * @private * @type {Array.} */ this._pieceList = []; this.resetExtent(); /** * 'pieces', 'categories', 'splitNumber' * @type {string} */ var mode = this._mode = this._determineMode(); resetMethods[this._mode].call(this); this._resetSelected(newOption, isInit); var categories = this.option.categories; this.resetVisual(function (mappingOption, state) { if (mode === 'categories') { mappingOption.mappingMethod = 'category'; mappingOption.categories = clone(categories); } else { mappingOption.dataExtent = this.getExtent(); mappingOption.mappingMethod = 'piecewise'; mappingOption.pieceList = map(this._pieceList, function (piece) { var piece = clone(piece); if (state !== 'inRange') { // FIXME // outOfRange do not support special visual in pieces. piece.visual = null; } return piece; }); } }); }, /** * @protected * @override */ completeVisualOption: function () { // Consider this case: // visualMap: { // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}] // } // where no inRange/outOfRange set but only pieces. So we should make // default inRange/outOfRange for this case, otherwise visuals that only // appear in `pieces` will not be taken into account in visual encoding. var option = this.option; var visualTypesInPieces = {}; var visualTypes = VisualMapping.listVisualTypes(); var isCategory = this.isCategory(); each$1(option.pieces, function (piece) { each$1(visualTypes, function (visualType) { if (piece.hasOwnProperty(visualType)) { visualTypesInPieces[visualType] = 1; } }); }); each$1(visualTypesInPieces, function (v, visualType) { var exists = 0; each$1(this.stateList, function (state) { exists |= has(option, state, visualType) || has(option.target, state, visualType); }, this); !exists && each$1(this.stateList, function (state) { (option[state] || (option[state] = {}))[visualType] = visualDefault.get( visualType, state === 'inRange' ? 'active' : 'inactive', isCategory ); }); }, this); function has(obj, state, visualType) { return obj && obj[state] && ( isObject$1(obj[state]) ? obj[state].hasOwnProperty(visualType) : obj[state] === visualType // e.g., inRange: 'symbol' ); } VisualMapModel.prototype.completeVisualOption.apply(this, arguments); }, _resetSelected: function (newOption, isInit) { var thisOption = this.option; var pieceList = this._pieceList; // Selected do not merge but all override. var selected = (isInit ? thisOption : newOption).selected || {}; thisOption.selected = selected; // Consider 'not specified' means true. each$1(pieceList, function (piece, index) { var key = this.getSelectedMapKey(piece); if (!selected.hasOwnProperty(key)) { selected[key] = true; } }, this); if (thisOption.selectedMode === 'single') { // Ensure there is only one selected. var hasSel = false; each$1(pieceList, function (piece, index) { var key = this.getSelectedMapKey(piece); if (selected[key]) { hasSel ? (selected[key] = false) : (hasSel = true); } }, this); } // thisOption.selectedMode === 'multiple', default: all selected. }, /** * @public */ getSelectedMapKey: function (piece) { return this._mode === 'categories' ? piece.value + '' : piece.index + ''; }, /** * @public */ getPieceList: function () { return this._pieceList; }, /** * @private * @return {string} */ _determineMode: function () { var option = this.option; return option.pieces && option.pieces.length > 0 ? 'pieces' : this.option.categories ? 'categories' : 'splitNumber'; }, /** * @public * @override */ setSelected: function (selected) { this.option.selected = clone(selected); }, /** * @public * @override */ getValueState: function (value) { var index = VisualMapping.findPieceIndex(value, this._pieceList); return index != null ? (this.option.selected[this.getSelectedMapKey(this._pieceList[index])] ? 'inRange' : 'outOfRange' ) : 'outOfRange'; }, /** * @public * @params {number} pieceIndex piece index in visualMapModel.getPieceList() * @return {Array.} [{seriesId, dataIndex: >}, ...] */ findTargetDataIndices: function (pieceIndex) { var result = []; this.eachTargetSeries(function (seriesModel) { var dataIndices = []; var data = seriesModel.getData(); data.each(this.getDataDimension(data), function (value, dataIndex) { // Should always base on model pieceList, because it is order sensitive. var pIdx = VisualMapping.findPieceIndex(value, this._pieceList); pIdx === pieceIndex && dataIndices.push(dataIndex); }, this); result.push({seriesId: seriesModel.id, dataIndex: dataIndices}); }, this); return result; }, /** * @private * @param {Object} piece piece.value or piece.interval is required. * @return {number} Can be Infinity or -Infinity */ getRepresentValue: function (piece) { var representValue; if (this.isCategory()) { representValue = piece.value; } else { if (piece.value != null) { representValue = piece.value; } else { var pieceInterval = piece.interval || []; representValue = (pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity) ? 0 : (pieceInterval[0] + pieceInterval[1]) / 2; } } return representValue; }, getVisualMeta: function (getColorVisual) { // Do not support category. (category axis is ordinal, numerical) if (this.isCategory()) { return; } var stops = []; var outerColors = []; var visualMapModel = this; function setStop(interval, valueState) { var representValue = visualMapModel.getRepresentValue({interval: interval}); if (!valueState) { valueState = visualMapModel.getValueState(representValue); } var color = getColorVisual(representValue, valueState); if (interval[0] === -Infinity) { outerColors[0] = color; } else if (interval[1] === Infinity) { outerColors[1] = color; } else { stops.push( {value: interval[0], color: color}, {value: interval[1], color: color} ); } } // Suplement var pieceList = this._pieceList.slice(); if (!pieceList.length) { pieceList.push({interval: [-Infinity, Infinity]}); } else { var edge = pieceList[0].interval[0]; edge !== -Infinity && pieceList.unshift({interval: [-Infinity, edge]}); edge = pieceList[pieceList.length - 1].interval[1]; edge !== Infinity && pieceList.push({interval: [edge, Infinity]}); } var curr = -Infinity; each$1(pieceList, function (piece) { var interval = piece.interval; if (interval) { // Fulfill gap. interval[0] > curr && setStop([curr, interval[0]], 'outOfRange'); setStop(interval.slice()); curr = interval[1]; } }, this); return {stops: stops, outerColors: outerColors}; } }); /** * Key is this._mode * @type {Object} * @this {module:echarts/component/viusalMap/PiecewiseMode} */ var resetMethods = { splitNumber: function () { var thisOption = this.option; var pieceList = this._pieceList; var precision = Math.min(thisOption.precision, 20); var dataExtent = this.getExtent(); var splitNumber = thisOption.splitNumber; splitNumber = Math.max(parseInt(splitNumber, 10), 1); thisOption.splitNumber = splitNumber; var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber; // Precision auto-adaption while (+splitStep.toFixed(precision) !== splitStep && precision < 5) { precision++; } thisOption.precision = precision; splitStep = +splitStep.toFixed(precision); var index = 0; if (thisOption.minOpen) { pieceList.push({ index: index++, interval: [-Infinity, dataExtent[0]], close: [0, 0] }); } for ( var curr = dataExtent[0], len = index + splitNumber; index < len; curr += splitStep ) { var max = index === splitNumber - 1 ? dataExtent[1] : (curr + splitStep); pieceList.push({ index: index++, interval: [curr, max], close: [1, 1] }); } if (thisOption.maxOpen) { pieceList.push({ index: index++, interval: [dataExtent[1], Infinity], close: [0, 0] }); } reformIntervals(pieceList); each$1(pieceList, function (piece) { piece.text = this.formatValueText(piece.interval); }, this); }, categories: function () { var thisOption = this.option; each$1(thisOption.categories, function (cate) { // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。 // 是否改一致。 this._pieceList.push({ text: this.formatValueText(cate, true), value: cate }); }, this); // See "Order Rule". normalizeReverse(thisOption, this._pieceList); }, pieces: function () { var thisOption = this.option; var pieceList = this._pieceList; each$1(thisOption.pieces, function (pieceListItem, index) { if (!isObject$1(pieceListItem)) { pieceListItem = {value: pieceListItem}; } var item = {text: '', index: index}; if (pieceListItem.label != null) { item.text = pieceListItem.label; } if (pieceListItem.hasOwnProperty('value')) { var value = item.value = pieceListItem.value; item.interval = [value, value]; item.close = [1, 1]; } else { // `min` `max` is legacy option. // `lt` `gt` `lte` `gte` is recommanded. var interval = item.interval = []; var close = item.close = [0, 0]; var closeList = [1, 0, 1]; var infinityList = [-Infinity, Infinity]; var useMinMax = []; for (var lg = 0; lg < 2; lg++) { var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg]; for (var i = 0; i < 3 && interval[lg] == null; i++) { interval[lg] = pieceListItem[names[i]]; close[lg] = closeList[i]; useMinMax[lg] = i === 2; } interval[lg] == null && (interval[lg] = infinityList[lg]); } useMinMax[0] && interval[1] === Infinity && (close[0] = 0); useMinMax[1] && interval[0] === -Infinity && (close[1] = 0); if (__DEV__) { if (interval[0] > interval[1]) { console.warn( 'Piece ' + index + 'is illegal: ' + interval + ' lower bound should not greater then uppper bound.' ); } } if (interval[0] === interval[1] && close[0] && close[1]) { // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}], // we use value to lift the priority when min === max item.value = interval[0]; } } item.visual = VisualMapping.retrieveVisuals(pieceListItem); pieceList.push(item); }, this); // See "Order Rule". normalizeReverse(thisOption, pieceList); // Only pieces reformIntervals(pieceList); each$1(pieceList, function (piece) { var close = piece.close; var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]]; piece.text = piece.text || this.formatValueText( piece.value != null ? piece.value : piece.interval, false, edgeSymbols ); }, this); } }; function normalizeReverse(thisOption, pieceList) { var inverse = thisOption.inverse; if (thisOption.orient === 'vertical' ? !inverse : inverse) { pieceList.reverse(); } } /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PiecewiseVisualMapView = VisualMapView.extend({ type: 'visualMap.piecewise', /** * @protected * @override */ doRender: function () { var thisGroup = this.group; thisGroup.removeAll(); var visualMapModel = this.visualMapModel; var textGap = visualMapModel.get('textGap'); var textStyleModel = visualMapModel.textStyleModel; var textFont = textStyleModel.getFont(); var textFill = textStyleModel.getTextColor(); var itemAlign = this._getItemAlign(); var itemSize = visualMapModel.itemSize; var viewData = this._getViewData(); var endsText = viewData.endsText; var showLabel = retrieve(visualMapModel.get('showLabel', true), !endsText); endsText && this._renderEndsText( thisGroup, endsText[0], itemSize, showLabel, itemAlign ); each$1(viewData.viewPieceList, renderItem, this); endsText && this._renderEndsText( thisGroup, endsText[1], itemSize, showLabel, itemAlign ); box( visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap') ); this.renderBackground(thisGroup); this.positionGroup(thisGroup); function renderItem(item) { var piece = item.piece; var itemGroup = new Group(); itemGroup.onclick = bind(this._onItemClick, this, piece); this._enableHoverLink(itemGroup, item.indexInModelPieceList); var representValue = visualMapModel.getRepresentValue(piece); this._createItemSymbol( itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]] ); if (showLabel) { var visualState = this.visualMapModel.getValueState(representValue); itemGroup.add(new Text({ style: { x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap, y: itemSize[1] / 2, text: piece.text, textVerticalAlign: 'middle', textAlign: itemAlign, textFont: textFont, textFill: textFill, opacity: visualState === 'outOfRange' ? 0.5 : 1 } })); } thisGroup.add(itemGroup); } }, /** * @private */ _enableHoverLink: function (itemGroup, pieceIndex) { itemGroup .on('mouseover', bind(onHoverLink, this, 'highlight')) .on('mouseout', bind(onHoverLink, this, 'downplay')); function onHoverLink(method) { var visualMapModel = this.visualMapModel; visualMapModel.option.hoverLink && this.api.dispatchAction({ type: method, batch: makeHighDownBatch( visualMapModel.findTargetDataIndices(pieceIndex), visualMapModel ) }); } }, /** * @private */ _getItemAlign: function () { var visualMapModel = this.visualMapModel; var modelOption = visualMapModel.option; if (modelOption.orient === 'vertical') { return getItemAlign( visualMapModel, this.api, visualMapModel.itemSize ); } else { // horizontal, most case left unless specifying right. var align = modelOption.align; if (!align || align === 'auto') { align = 'left'; } return align; } }, /** * @private */ _renderEndsText: function (group, text, itemSize, showLabel, itemAlign) { if (!text) { return; } var itemGroup = new Group(); var textStyleModel = this.visualMapModel.textStyleModel; itemGroup.add(new Text({ style: { x: showLabel ? (itemAlign === 'right' ? itemSize[0] : 0) : itemSize[0] / 2, y: itemSize[1] / 2, textVerticalAlign: 'middle', textAlign: showLabel ? itemAlign : 'center', text: text, textFont: textStyleModel.getFont(), textFill: textStyleModel.getTextColor() } })); group.add(itemGroup); }, /** * @private * @return {Object} {peiceList, endsText} The order is the same as screen pixel order. */ _getViewData: function () { var visualMapModel = this.visualMapModel; var viewPieceList = map(visualMapModel.getPieceList(), function (piece, index) { return {piece: piece, indexInModelPieceList: index}; }); var endsText = visualMapModel.get('text'); // Consider orient and inverse. var orient = visualMapModel.get('orient'); var inverse = visualMapModel.get('inverse'); // Order of model pieceList is always [low, ..., high] if (orient === 'horizontal' ? inverse : !inverse) { viewPieceList.reverse(); } // Origin order of endsText is [high, low] else if (endsText) { endsText = endsText.slice().reverse(); } return {viewPieceList: viewPieceList, endsText: endsText}; }, /** * @private */ _createItemSymbol: function (group, representValue, shapeParam) { group.add(createSymbol( this.getControllerVisual(representValue, 'symbol'), shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3], this.getControllerVisual(representValue, 'color') )); }, /** * @private */ _onItemClick: function (piece) { var visualMapModel = this.visualMapModel; var option = visualMapModel.option; var selected = clone(option.selected); var newKey = visualMapModel.getSelectedMapKey(piece); if (option.selectedMode === 'single') { selected[newKey] = true; each$1(selected, function (o, key) { selected[key] = key === newKey; }); } else { selected[newKey] = !selected[newKey]; } this.api.dispatchAction({ type: 'selectDataRange', from: this.uid, visualMapId: this.visualMapModel.id, selected: selected }); } }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * DataZoom component entry */ registerPreprocessor(preprocessor$3); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * visualMap component entry */ var urn = 'urn:schemas-microsoft-com:vml'; var win = typeof window === 'undefined' ? null : window; var vmlInited = false; var doc = win && win.document; function createNode(tagName) { return doCreateNode(tagName); } // Avoid assign to an exported variable, for transforming to cjs. var doCreateNode; if (doc && !env$1.canvasSupported) { try { !doc.namespaces.zrvml && doc.namespaces.add('zrvml', urn); doCreateNode = function (tagName) { return doc.createElement(''); }; } catch (e) { doCreateNode = function (tagName) { return doc.createElement('<' + tagName + ' xmlns="' + urn + '" class="zrvml">'); }; } } // From raphael function initVML() { if (vmlInited || !doc) { return; } vmlInited = true; var styleSheets = doc.styleSheets; if (styleSheets.length < 31) { doc.createStyleSheet().addRule('.zrvml', 'behavior:url(#default#VML)'); } else { // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx styleSheets[0].addRule('.zrvml', 'behavior:url(#default#VML)'); } } // http://www.w3.org/TR/NOTE-VML // TODO Use proxy like svg instead of overwrite brush methods var CMD$3 = PathProxy.CMD; var round$3 = Math.round; var sqrt = Math.sqrt; var abs$1 = Math.abs; var cos = Math.cos; var sin = Math.sin; var mathMax$8 = Math.max; if (!env$1.canvasSupported) { var comma = ','; var imageTransformPrefix = 'progid:DXImageTransform.Microsoft'; var Z = 21600; var Z2 = Z / 2; var ZLEVEL_BASE = 100000; var Z_BASE$1 = 1000; var initRootElStyle = function (el) { el.style.cssText = 'position:absolute;left:0;top:0;width:1px;height:1px;'; el.coordsize = Z + ',' + Z; el.coordorigin = '0,0'; }; var encodeHtmlAttribute = function (s) { return String(s).replace(/&/g, '&').replace(/"/g, '"'); }; var rgb2Str = function (r, g, b) { return 'rgb(' + [r, g, b].join(',') + ')'; }; var append = function (parent, child) { if (child && parent && child.parentNode !== parent) { parent.appendChild(child); } }; var remove = function (parent, child) { if (child && parent && child.parentNode === parent) { parent.removeChild(child); } }; var getZIndex = function (zlevel, z, z2) { // z 的取值范围为 [0, 1000] return (parseFloat(zlevel) || 0) * ZLEVEL_BASE + (parseFloat(z) || 0) * Z_BASE$1 + z2; }; var parsePercent$3 = function (value, maxValue) { if (typeof value === 'string') { if (value.lastIndexOf('%') >= 0) { return parseFloat(value) / 100 * maxValue; } return parseFloat(value); } return value; }; /*************************************************** * PATH **************************************************/ var setColorAndOpacity = function (el, color, opacity) { var colorArr = parse(color); opacity = +opacity; if (isNaN(opacity)) { opacity = 1; } if (colorArr) { el.color = rgb2Str(colorArr[0], colorArr[1], colorArr[2]); el.opacity = opacity * colorArr[3]; } }; var getColorAndAlpha = function (color) { var colorArr = parse(color); return [ rgb2Str(colorArr[0], colorArr[1], colorArr[2]), colorArr[3] ]; }; var updateFillNode = function (el, style, zrEl) { // TODO pattern var fill = style.fill; if (fill != null) { // Modified from excanvas if (fill instanceof Gradient) { var gradientType; var angle = 0; var focus = [0, 0]; // additional offset var shift = 0; // scale factor for offset var expansion = 1; var rect = zrEl.getBoundingRect(); var rectWidth = rect.width; var rectHeight = rect.height; if (fill.type === 'linear') { gradientType = 'gradient'; var transform = zrEl.transform; var p0 = [fill.x * rectWidth, fill.y * rectHeight]; var p1 = [fill.x2 * rectWidth, fill.y2 * rectHeight]; if (transform) { applyTransform(p0, p0, transform); applyTransform(p1, p1, transform); } var dx = p1[0] - p0[0]; var dy = p1[1] - p0[1]; angle = Math.atan2(dx, dy) * 180 / Math.PI; // The angle should be a non-negative number. if (angle < 0) { angle += 360; } // Very small angles produce an unexpected result because they are // converted to a scientific notation string. if (angle < 1e-6) { angle = 0; } } else { gradientType = 'gradientradial'; var p0 = [fill.x * rectWidth, fill.y * rectHeight]; var transform = zrEl.transform; var scale$$1 = zrEl.scale; var width = rectWidth; var height = rectHeight; focus = [ // Percent in bounding rect (p0[0] - rect.x) / width, (p0[1] - rect.y) / height ]; if (transform) { applyTransform(p0, p0, transform); } width /= scale$$1[0] * Z; height /= scale$$1[1] * Z; var dimension = mathMax$8(width, height); shift = 2 * 0 / dimension; expansion = 2 * fill.r / dimension - shift; } // We need to sort the color stops in ascending order by offset, // otherwise IE won't interpret it correctly. var stops = fill.colorStops.slice(); stops.sort(function (cs1, cs2) { return cs1.offset - cs2.offset; }); var length$$1 = stops.length; // Color and alpha list of first and last stop var colorAndAlphaList = []; var colors = []; for (var i = 0; i < length$$1; i++) { var stop = stops[i]; var colorAndAlpha = getColorAndAlpha(stop.color); colors.push(stop.offset * expansion + shift + ' ' + colorAndAlpha[0]); if (i === 0 || i === length$$1 - 1) { colorAndAlphaList.push(colorAndAlpha); } } if (length$$1 >= 2) { var color1 = colorAndAlphaList[0][0]; var color2 = colorAndAlphaList[1][0]; var opacity1 = colorAndAlphaList[0][1] * style.opacity; var opacity2 = colorAndAlphaList[1][1] * style.opacity; el.type = gradientType; el.method = 'none'; el.focus = '100%'; el.angle = angle; el.color = color1; el.color2 = color2; el.colors = colors.join(','); // When colors attribute is used, the meanings of opacity and o:opacity2 // are reversed. el.opacity = opacity2; // FIXME g_o_:opacity ? el.opacity2 = opacity1; } if (gradientType === 'radial') { el.focusposition = focus.join(','); } } else { // FIXME Change from Gradient fill to color fill setColorAndOpacity(el, fill, style.opacity); } } }; var updateStrokeNode = function (el, style) { // if (style.lineJoin != null) { // el.joinstyle = style.lineJoin; // } // if (style.miterLimit != null) { // el.miterlimit = style.miterLimit * Z; // } // if (style.lineCap != null) { // el.endcap = style.lineCap; // } if (style.lineDash) { el.dashstyle = style.lineDash.join(' '); } if (style.stroke != null && !(style.stroke instanceof Gradient)) { setColorAndOpacity(el, style.stroke, style.opacity); } }; var updateFillAndStroke = function (vmlEl, type, style, zrEl) { var isFill = type === 'fill'; var el = vmlEl.getElementsByTagName(type)[0]; // Stroke must have lineWidth if (style[type] != null && style[type] !== 'none' && (isFill || (!isFill && style.lineWidth))) { vmlEl[isFill ? 'filled' : 'stroked'] = 'true'; // FIXME Remove before updating, or set `colors` will throw error if (style[type] instanceof Gradient) { remove(vmlEl, el); } if (!el) { el = createNode(type); } isFill ? updateFillNode(el, style, zrEl) : updateStrokeNode(el, style); append(vmlEl, el); } else { vmlEl[isFill ? 'filled' : 'stroked'] = 'false'; remove(vmlEl, el); } }; var points$3 = [[], [], []]; var pathDataToString = function (path, m) { var M = CMD$3.M; var C = CMD$3.C; var L = CMD$3.L; var A = CMD$3.A; var Q = CMD$3.Q; var str = []; var nPoint; var cmdStr; var cmd; var i; var xi; var yi; var data = path.data; var dataLength = path.len(); for (i = 0; i < dataLength;) { cmd = data[i++]; cmdStr = ''; nPoint = 0; switch (cmd) { case M: cmdStr = ' m '; nPoint = 1; xi = data[i++]; yi = data[i++]; points$3[0][0] = xi; points$3[0][1] = yi; break; case L: cmdStr = ' l '; nPoint = 1; xi = data[i++]; yi = data[i++]; points$3[0][0] = xi; points$3[0][1] = yi; break; case Q: case C: cmdStr = ' c '; nPoint = 3; var x1 = data[i++]; var y1 = data[i++]; var x2 = data[i++]; var y2 = data[i++]; var x3; var y3; if (cmd === Q) { // Convert quadratic to cubic using degree elevation x3 = x2; y3 = y2; x2 = (x2 + 2 * x1) / 3; y2 = (y2 + 2 * y1) / 3; x1 = (xi + 2 * x1) / 3; y1 = (yi + 2 * y1) / 3; } else { x3 = data[i++]; y3 = data[i++]; } points$3[0][0] = x1; points$3[0][1] = y1; points$3[1][0] = x2; points$3[1][1] = y2; points$3[2][0] = x3; points$3[2][1] = y3; xi = x3; yi = y3; break; case A: var x = 0; var y = 0; var sx = 1; var sy = 1; var angle = 0; if (m) { // Extract SRT from matrix x = m[4]; y = m[5]; sx = sqrt(m[0] * m[0] + m[1] * m[1]); sy = sqrt(m[2] * m[2] + m[3] * m[3]); angle = Math.atan2(-m[1] / sy, m[0] / sx); } var cx = data[i++]; var cy = data[i++]; var rx = data[i++]; var ry = data[i++]; var startAngle = data[i++] + angle; var endAngle = data[i++] + startAngle + angle; // FIXME // var psi = data[i++]; i++; var clockwise = data[i++]; var x0 = cx + cos(startAngle) * rx; var y0 = cy + sin(startAngle) * ry; var x1 = cx + cos(endAngle) * rx; var y1 = cy + sin(endAngle) * ry; var type = clockwise ? ' wa ' : ' at '; if (Math.abs(x0 - x1) < 1e-4) { // IE won't render arches drawn counter clockwise if x0 == x1. if (Math.abs(endAngle - startAngle) > 1e-2) { // Offset x0 by 1/80 of a pixel. Use something // that can be represented in binary if (clockwise) { x0 += 270 / Z; } } else { // Avoid case draw full circle if (Math.abs(y0 - cy) < 1e-4) { if ((clockwise && x0 < cx) || (!clockwise && x0 > cx)) { y1 -= 270 / Z; } else { y1 += 270 / Z; } } else if ((clockwise && y0 < cy) || (!clockwise && y0 > cy)) { x1 += 270 / Z; } else { x1 -= 270 / Z; } } } str.push( type, round$3(((cx - rx) * sx + x) * Z - Z2), comma, round$3(((cy - ry) * sy + y) * Z - Z2), comma, round$3(((cx + rx) * sx + x) * Z - Z2), comma, round$3(((cy + ry) * sy + y) * Z - Z2), comma, round$3((x0 * sx + x) * Z - Z2), comma, round$3((y0 * sy + y) * Z - Z2), comma, round$3((x1 * sx + x) * Z - Z2), comma, round$3((y1 * sy + y) * Z - Z2) ); xi = x1; yi = y1; break; case CMD$3.R: var p0 = points$3[0]; var p1 = points$3[1]; // x0, y0 p0[0] = data[i++]; p0[1] = data[i++]; // x1, y1 p1[0] = p0[0] + data[i++]; p1[1] = p0[1] + data[i++]; if (m) { applyTransform(p0, p0, m); applyTransform(p1, p1, m); } p0[0] = round$3(p0[0] * Z - Z2); p1[0] = round$3(p1[0] * Z - Z2); p0[1] = round$3(p0[1] * Z - Z2); p1[1] = round$3(p1[1] * Z - Z2); str.push( // x0, y0 ' m ', p0[0], comma, p0[1], // x1, y0 ' l ', p1[0], comma, p0[1], // x1, y1 ' l ', p1[0], comma, p1[1], // x0, y1 ' l ', p0[0], comma, p1[1] ); break; case CMD$3.Z: // FIXME Update xi, yi str.push(' x '); } if (nPoint > 0) { str.push(cmdStr); for (var k = 0; k < nPoint; k++) { var p = points$3[k]; m && applyTransform(p, p, m); // 不 round 会非常慢 str.push( round$3(p[0] * Z - Z2), comma, round$3(p[1] * Z - Z2), k < nPoint - 1 ? comma : '' ); } } } return str.join(''); }; // Rewrite the original path method Path.prototype.brushVML = function (vmlRoot) { var style = this.style; var vmlEl = this._vmlEl; if (!vmlEl) { vmlEl = createNode('shape'); initRootElStyle(vmlEl); this._vmlEl = vmlEl; } updateFillAndStroke(vmlEl, 'fill', style, this); updateFillAndStroke(vmlEl, 'stroke', style, this); var m = this.transform; var needTransform = m != null; var strokeEl = vmlEl.getElementsByTagName('stroke')[0]; if (strokeEl) { var lineWidth = style.lineWidth; // Get the line scale. // Determinant of this.m_ means how much the area is enlarged by the // transformation. So its square root can be used as a scale factor // for width. if (needTransform && !style.strokeNoScale) { var det = m[0] * m[3] - m[1] * m[2]; lineWidth *= sqrt(abs$1(det)); } strokeEl.weight = lineWidth + 'px'; } var path = this.path || (this.path = new PathProxy()); if (this.__dirtyPath) { path.beginPath(); path.subPixelOptimize = false; this.buildPath(path, this.shape); path.toStatic(); this.__dirtyPath = false; } vmlEl.path = pathDataToString(path, this.transform); vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2); // Append to root append(vmlRoot, vmlEl); // Text if (style.text != null) { this.drawRectText(vmlRoot, this.getBoundingRect()); } else { this.removeRectText(vmlRoot); } }; Path.prototype.onRemove = function (vmlRoot) { remove(vmlRoot, this._vmlEl); this.removeRectText(vmlRoot); }; Path.prototype.onAdd = function (vmlRoot) { append(vmlRoot, this._vmlEl); this.appendRectText(vmlRoot); }; /*************************************************** * IMAGE **************************************************/ var isImage = function (img) { // FIXME img instanceof Image 如果 img 是一个字符串的时候,IE8 下会报错 return (typeof img === 'object') && img.tagName && img.tagName.toUpperCase() === 'IMG'; // return img instanceof Image; }; // Rewrite the original path method ZImage.prototype.brushVML = function (vmlRoot) { var style = this.style; var image = style.image; // Image original width, height var ow; var oh; if (isImage(image)) { var src = image.src; if (src === this._imageSrc) { ow = this._imageWidth; oh = this._imageHeight; } else { var imageRuntimeStyle = image.runtimeStyle; var oldRuntimeWidth = imageRuntimeStyle.width; var oldRuntimeHeight = imageRuntimeStyle.height; imageRuntimeStyle.width = 'auto'; imageRuntimeStyle.height = 'auto'; // get the original size ow = image.width; oh = image.height; // and remove overides imageRuntimeStyle.width = oldRuntimeWidth; imageRuntimeStyle.height = oldRuntimeHeight; // Caching image original width, height and src this._imageSrc = src; this._imageWidth = ow; this._imageHeight = oh; } image = src; } else { if (image === this._imageSrc) { ow = this._imageWidth; oh = this._imageHeight; } } if (!image) { return; } var x = style.x || 0; var y = style.y || 0; var dw = style.width; var dh = style.height; var sw = style.sWidth; var sh = style.sHeight; var sx = style.sx || 0; var sy = style.sy || 0; var hasCrop = sw && sh; var vmlEl = this._vmlEl; if (!vmlEl) { // FIXME 使用 group 在 left, top 都不是 0 的时候就无法显示了。 // vmlEl = vmlCore.createNode('group'); vmlEl = doc.createElement('div'); initRootElStyle(vmlEl); this._vmlEl = vmlEl; } var vmlElStyle = vmlEl.style; var hasRotation = false; var m; var scaleX = 1; var scaleY = 1; if (this.transform) { m = this.transform; scaleX = sqrt(m[0] * m[0] + m[1] * m[1]); scaleY = sqrt(m[2] * m[2] + m[3] * m[3]); hasRotation = m[1] || m[2]; } if (hasRotation) { // If filters are necessary (rotation exists), create them // filters are bog-slow, so only create them if abbsolutely necessary // The following check doesn't account for skews (which don't exist // in the canvas spec (yet) anyway. // From excanvas var p0 = [x, y]; var p1 = [x + dw, y]; var p2 = [x, y + dh]; var p3 = [x + dw, y + dh]; applyTransform(p0, p0, m); applyTransform(p1, p1, m); applyTransform(p2, p2, m); applyTransform(p3, p3, m); var maxX = mathMax$8(p0[0], p1[0], p2[0], p3[0]); var maxY = mathMax$8(p0[1], p1[1], p2[1], p3[1]); var transformFilter = []; transformFilter.push('M11=', m[0] / scaleX, comma, 'M12=', m[2] / scaleY, comma, 'M21=', m[1] / scaleX, comma, 'M22=', m[3] / scaleY, comma, 'Dx=', round$3(x * scaleX + m[4]), comma, 'Dy=', round$3(y * scaleY + m[5])); vmlElStyle.padding = '0 ' + round$3(maxX) + 'px ' + round$3(maxY) + 'px 0'; // FIXME DXImageTransform 在 IE11 的兼容模式下不起作用 vmlElStyle.filter = imageTransformPrefix + '.Matrix(' + transformFilter.join('') + ', SizingMethod=clip)'; } else { if (m) { x = x * scaleX + m[4]; y = y * scaleY + m[5]; } vmlElStyle.filter = ''; vmlElStyle.left = round$3(x) + 'px'; vmlElStyle.top = round$3(y) + 'px'; } var imageEl = this._imageEl; var cropEl = this._cropEl; if (!imageEl) { imageEl = doc.createElement('div'); this._imageEl = imageEl; } var imageELStyle = imageEl.style; if (hasCrop) { // Needs know image original width and height if (!(ow && oh)) { var tmpImage = new Image(); var self = this; tmpImage.onload = function () { tmpImage.onload = null; ow = tmpImage.width; oh = tmpImage.height; // Adjust image width and height to fit the ratio destinationSize / sourceSize imageELStyle.width = round$3(scaleX * ow * dw / sw) + 'px'; imageELStyle.height = round$3(scaleY * oh * dh / sh) + 'px'; // Caching image original width, height and src self._imageWidth = ow; self._imageHeight = oh; self._imageSrc = image; }; tmpImage.src = image; } else { imageELStyle.width = round$3(scaleX * ow * dw / sw) + 'px'; imageELStyle.height = round$3(scaleY * oh * dh / sh) + 'px'; } if (!cropEl) { cropEl = doc.createElement('div'); cropEl.style.overflow = 'hidden'; this._cropEl = cropEl; } var cropElStyle = cropEl.style; cropElStyle.width = round$3((dw + sx * dw / sw) * scaleX); cropElStyle.height = round$3((dh + sy * dh / sh) * scaleY); cropElStyle.filter = imageTransformPrefix + '.Matrix(Dx=' + (-sx * dw / sw * scaleX) + ',Dy=' + (-sy * dh / sh * scaleY) + ')'; if (!cropEl.parentNode) { vmlEl.appendChild(cropEl); } if (imageEl.parentNode !== cropEl) { cropEl.appendChild(imageEl); } } else { imageELStyle.width = round$3(scaleX * dw) + 'px'; imageELStyle.height = round$3(scaleY * dh) + 'px'; vmlEl.appendChild(imageEl); if (cropEl && cropEl.parentNode) { vmlEl.removeChild(cropEl); this._cropEl = null; } } var filterStr = ''; var alpha = style.opacity; if (alpha < 1) { filterStr += '.Alpha(opacity=' + round$3(alpha * 100) + ') '; } filterStr += imageTransformPrefix + '.AlphaImageLoader(src=' + image + ', SizingMethod=scale)'; imageELStyle.filter = filterStr; vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2); // Append to root append(vmlRoot, vmlEl); // Text if (style.text != null) { this.drawRectText(vmlRoot, this.getBoundingRect()); } }; ZImage.prototype.onRemove = function (vmlRoot) { remove(vmlRoot, this._vmlEl); this._vmlEl = null; this._cropEl = null; this._imageEl = null; this.removeRectText(vmlRoot); }; ZImage.prototype.onAdd = function (vmlRoot) { append(vmlRoot, this._vmlEl); this.appendRectText(vmlRoot); }; /*************************************************** * TEXT **************************************************/ var DEFAULT_STYLE_NORMAL = 'normal'; var fontStyleCache = {}; var fontStyleCacheCount = 0; var MAX_FONT_CACHE_SIZE = 100; var fontEl = document.createElement('div'); var getFontStyle = function (fontString) { var fontStyle = fontStyleCache[fontString]; if (!fontStyle) { // Clear cache if (fontStyleCacheCount > MAX_FONT_CACHE_SIZE) { fontStyleCacheCount = 0; fontStyleCache = {}; } var style = fontEl.style; var fontFamily; try { style.font = fontString; fontFamily = style.fontFamily.split(',')[0]; } catch (e) { } fontStyle = { style: style.fontStyle || DEFAULT_STYLE_NORMAL, variant: style.fontVariant || DEFAULT_STYLE_NORMAL, weight: style.fontWeight || DEFAULT_STYLE_NORMAL, size: parseFloat(style.fontSize || 12) | 0, family: fontFamily || 'Microsoft YaHei' }; fontStyleCache[fontString] = fontStyle; fontStyleCacheCount++; } return fontStyle; }; var textMeasureEl; // Overwrite measure text method $override$1('measureText', function (text, textFont) { var doc$$1 = doc; if (!textMeasureEl) { textMeasureEl = doc$$1.createElement('div'); textMeasureEl.style.cssText = 'position:absolute;top:-20000px;left:0;' + 'padding:0;margin:0;border:none;white-space:pre;'; doc.body.appendChild(textMeasureEl); } try { textMeasureEl.style.font = textFont; } catch (ex) { // Ignore failures to set to invalid font. } textMeasureEl.innerHTML = ''; // Don't use innerHTML or innerText because they allow markup/whitespace. textMeasureEl.appendChild(doc$$1.createTextNode(text)); return { width: textMeasureEl.offsetWidth }; }); var tmpRect$2 = new BoundingRect(); var drawRectText = function (vmlRoot, rect, textRect, fromTextEl) { var style = this.style; // Optimize, avoid normalize every time. this.__dirty && normalizeTextStyle(style, true); var text = style.text; // Convert to string text != null && (text += ''); if (!text) { return; } // Convert rich text to plain text. Rich text is not supported in // IE8-, but tags in rich text template will be removed. if (style.rich) { var contentBlock = parseRichText(text, style); text = []; for (var i = 0; i < contentBlock.lines.length; i++) { var tokens = contentBlock.lines[i].tokens; var textLine = []; for (var j = 0; j < tokens.length; j++) { textLine.push(tokens[j].text); } text.push(textLine.join('')); } text = text.join('\n'); } var x; var y; var align = style.textAlign; var verticalAlign = style.textVerticalAlign; var fontStyle = getFontStyle(style.font); // FIXME encodeHtmlAttribute ? var font = fontStyle.style + ' ' + fontStyle.variant + ' ' + fontStyle.weight + ' ' + fontStyle.size + 'px "' + fontStyle.family + '"'; textRect = textRect || getBoundingRect( text, font, align, verticalAlign, style.textPadding, style.textLineHeight ); // Transform rect to view space var m = this.transform; // Ignore transform for text in other element if (m && !fromTextEl) { tmpRect$2.copy(rect); tmpRect$2.applyTransform(m); rect = tmpRect$2; } if (!fromTextEl) { var textPosition = style.textPosition; // Text position represented by coord if (textPosition instanceof Array) { x = rect.x + parsePercent$3(textPosition[0], rect.width); y = rect.y + parsePercent$3(textPosition[1], rect.height); align = align || 'left'; } else { var res = this.calculateTextPosition ? this.calculateTextPosition({}, style, rect) : calculateTextPosition({}, style, rect); x = res.x; y = res.y; // Default align and baseline when has textPosition align = align || res.textAlign; verticalAlign = verticalAlign || res.textVerticalAlign; } } else { x = rect.x; y = rect.y; } x = adjustTextX(x, textRect.width, align); y = adjustTextY(y, textRect.height, verticalAlign); // Force baseline 'middle' y += textRect.height / 2; // var fontSize = fontStyle.size; // 1.75 is an arbitrary number, as there is no info about the text baseline // switch (baseline) { // case 'hanging': // case 'top': // y += fontSize / 1.75; // break; // case 'middle': // break; // default: // // case null: // // case 'alphabetic': // // case 'ideographic': // // case 'bottom': // y -= fontSize / 2.25; // break; // } // switch (align) { // case 'left': // break; // case 'center': // x -= textRect.width / 2; // break; // case 'right': // x -= textRect.width; // break; // case 'end': // align = elementStyle.direction == 'ltr' ? 'right' : 'left'; // break; // case 'start': // align = elementStyle.direction == 'rtl' ? 'right' : 'left'; // break; // default: // align = 'left'; // } var createNode$$1 = createNode; var textVmlEl = this._textVmlEl; var pathEl; var textPathEl; var skewEl; if (!textVmlEl) { textVmlEl = createNode$$1('line'); pathEl = createNode$$1('path'); textPathEl = createNode$$1('textpath'); skewEl = createNode$$1('skew'); // FIXME Why here is not cammel case // Align 'center' seems wrong textPathEl.style['v-text-align'] = 'left'; initRootElStyle(textVmlEl); pathEl.textpathok = true; textPathEl.on = true; textVmlEl.from = '0 0'; textVmlEl.to = '1000 0.05'; append(textVmlEl, skewEl); append(textVmlEl, pathEl); append(textVmlEl, textPathEl); this._textVmlEl = textVmlEl; } else { // 这里是在前面 appendChild 保证顺序的前提下 skewEl = textVmlEl.firstChild; pathEl = skewEl.nextSibling; textPathEl = pathEl.nextSibling; } var coords = [x, y]; var textVmlElStyle = textVmlEl.style; // Ignore transform for text in other element if (m && fromTextEl) { applyTransform(coords, coords, m); skewEl.on = true; skewEl.matrix = m[0].toFixed(3) + comma + m[2].toFixed(3) + comma + m[1].toFixed(3) + comma + m[3].toFixed(3) + ',0,0'; // Text position skewEl.offset = (round$3(coords[0]) || 0) + ',' + (round$3(coords[1]) || 0); // Left top point as origin skewEl.origin = '0 0'; textVmlElStyle.left = '0px'; textVmlElStyle.top = '0px'; } else { skewEl.on = false; textVmlElStyle.left = round$3(x) + 'px'; textVmlElStyle.top = round$3(y) + 'px'; } textPathEl.string = encodeHtmlAttribute(text); // TODO try { textPathEl.style.font = font; } // Error font format catch (e) {} updateFillAndStroke(textVmlEl, 'fill', { fill: style.textFill, opacity: style.opacity }, this); updateFillAndStroke(textVmlEl, 'stroke', { stroke: style.textStroke, opacity: style.opacity, lineDash: style.lineDash || null // style.lineDash can be `false`. }, this); textVmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2); // Attached to root append(vmlRoot, textVmlEl); }; var removeRectText = function (vmlRoot) { remove(vmlRoot, this._textVmlEl); this._textVmlEl = null; }; var appendRectText = function (vmlRoot) { append(vmlRoot, this._textVmlEl); }; var list = [RectText, Displayable, ZImage, Path, Text]; // In case Displayable has been mixed in RectText for (var i$3 = 0; i$3 < list.length; i$3++) { var proto$8 = list[i$3].prototype; proto$8.drawRectText = drawRectText; proto$8.removeRectText = removeRectText; proto$8.appendRectText = appendRectText; } Text.prototype.brushVML = function (vmlRoot) { var style = this.style; if (style.text != null) { this.drawRectText(vmlRoot, { x: style.x || 0, y: style.y || 0, width: 0, height: 0 }, this.getBoundingRect(), true); } else { this.removeRectText(vmlRoot); } }; Text.prototype.onRemove = function (vmlRoot) { this.removeRectText(vmlRoot); }; Text.prototype.onAdd = function (vmlRoot) { this.appendRectText(vmlRoot); }; } /** * VML Painter. * * @module zrender/vml/Painter */ function parseInt10$1(val) { return parseInt(val, 10); } /** * @alias module:zrender/vml/Painter */ function VMLPainter(root, storage) { initVML(); this.root = root; this.storage = storage; var vmlViewport = document.createElement('div'); var vmlRoot = document.createElement('div'); vmlViewport.style.cssText = 'display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;'; vmlRoot.style.cssText = 'position:absolute;left:0;top:0;'; root.appendChild(vmlViewport); this._vmlRoot = vmlRoot; this._vmlViewport = vmlViewport; this.resize(); // Modify storage var oldDelFromStorage = storage.delFromStorage; var oldAddToStorage = storage.addToStorage; storage.delFromStorage = function (el) { oldDelFromStorage.call(storage, el); if (el) { el.onRemove && el.onRemove(vmlRoot); } }; storage.addToStorage = function (el) { // Displayable already has a vml node el.onAdd && el.onAdd(vmlRoot); oldAddToStorage.call(storage, el); }; this._firstPaint = true; } VMLPainter.prototype = { constructor: VMLPainter, getType: function () { return 'vml'; }, /** * @return {HTMLDivElement} */ getViewportRoot: function () { return this._vmlViewport; }, getViewportRootOffset: function () { var viewportRoot = this.getViewportRoot(); if (viewportRoot) { return { offsetLeft: viewportRoot.offsetLeft || 0, offsetTop: viewportRoot.offsetTop || 0 }; } }, /** * 刷新 */ refresh: function () { var list = this.storage.getDisplayList(true, true); this._paintList(list); }, _paintList: function (list) { var vmlRoot = this._vmlRoot; for (var i = 0; i < list.length; i++) { var el = list[i]; if (el.invisible || el.ignore) { if (!el.__alreadyNotVisible) { el.onRemove(vmlRoot); } // Set as already invisible el.__alreadyNotVisible = true; } else { if (el.__alreadyNotVisible) { el.onAdd(vmlRoot); } el.__alreadyNotVisible = false; if (el.__dirty) { el.beforeBrush && el.beforeBrush(); (el.brushVML || el.brush).call(el, vmlRoot); el.afterBrush && el.afterBrush(); } } el.__dirty = false; } if (this._firstPaint) { // Detached from document at first time // to avoid page refreshing too many times // FIXME 如果每次都先 removeChild 可能会导致一些填充和描边的效果改变 this._vmlViewport.appendChild(vmlRoot); this._firstPaint = false; } }, resize: function (width, height) { var width = width == null ? this._getWidth() : width; var height = height == null ? this._getHeight() : height; if (this._width !== width || this._height !== height) { this._width = width; this._height = height; var vmlViewportStyle = this._vmlViewport.style; vmlViewportStyle.width = width + 'px'; vmlViewportStyle.height = height + 'px'; } }, dispose: function () { this.root.innerHTML = ''; this._vmlRoot = this._vmlViewport = this.storage = null; }, getWidth: function () { return this._width; }, getHeight: function () { return this._height; }, clear: function () { if (this._vmlViewport) { this.root.removeChild(this._vmlViewport); } }, _getWidth: function () { var root = this.root; var stl = root.currentStyle; return ((root.clientWidth || parseInt10$1(stl.width)) - parseInt10$1(stl.paddingLeft) - parseInt10$1(stl.paddingRight)) | 0; }, _getHeight: function () { var root = this.root; var stl = root.currentStyle; return ((root.clientHeight || parseInt10$1(stl.height)) - parseInt10$1(stl.paddingTop) - parseInt10$1(stl.paddingBottom)) | 0; } }; // Not supported methods function createMethodNotSupport(method) { return function () { zrLog('In IE8.0 VML mode painter not support method "' + method + '"'); }; } // Unsupported methods each$1([ 'getLayer', 'insertLayer', 'eachLayer', 'eachBuiltinLayer', 'eachOtherLayer', 'getLayers', 'modLayer', 'delLayer', 'clearLayer', 'toDataURL', 'pathToImage' ], function (name) { VMLPainter.prototype[name] = createMethodNotSupport(name); }); registerPainter('vml', VMLPainter); var svgURI = 'http://www.w3.org/2000/svg'; function createElement(name) { return document.createElementNS(svgURI, name); } // TODO // 1. shadow // 2. Image: sx, sy, sw, sh var CMD$4 = PathProxy.CMD; var arrayJoin = Array.prototype.join; var NONE = 'none'; var mathRound = Math.round; var mathSin$3 = Math.sin; var mathCos$3 = Math.cos; var PI$6 = Math.PI; var PI2$7 = Math.PI * 2; var degree = 180 / PI$6; var EPSILON$4 = 1e-4; function round4(val) { return mathRound(val * 1e4) / 1e4; } function isAroundZero$1(val) { return val < EPSILON$4 && val > -EPSILON$4; } function pathHasFill(style, isText) { var fill = isText ? style.textFill : style.fill; return fill != null && fill !== NONE; } function pathHasStroke(style, isText) { var stroke = isText ? style.textStroke : style.stroke; return stroke != null && stroke !== NONE; } function setTransform(svgEl, m) { if (m) { attr(svgEl, 'transform', 'matrix(' + arrayJoin.call(m, ',') + ')'); } } function attr(el, key, val) { if (!val || val.type !== 'linear' && val.type !== 'radial') { // Don't set attribute for gradient, since it need new dom nodes el.setAttribute(key, val); } } function attrXLink(el, key, val) { el.setAttributeNS('http://www.w3.org/1999/xlink', key, val); } function bindStyle(svgEl, style, isText, el) { if (pathHasFill(style, isText)) { var fill = isText ? style.textFill : style.fill; fill = fill === 'transparent' ? NONE : fill; attr(svgEl, 'fill', fill); attr(svgEl, 'fill-opacity', style.fillOpacity != null ? style.fillOpacity * style.opacity : style.opacity); } else { attr(svgEl, 'fill', NONE); } if (pathHasStroke(style, isText)) { var stroke = isText ? style.textStroke : style.stroke; stroke = stroke === 'transparent' ? NONE : stroke; attr(svgEl, 'stroke', stroke); var strokeWidth = isText ? style.textStrokeWidth : style.lineWidth; var strokeScale = !isText && style.strokeNoScale ? el.getLineScale() : 1; attr(svgEl, 'stroke-width', strokeWidth / strokeScale); // stroke then fill for text; fill then stroke for others attr(svgEl, 'paint-order', isText ? 'stroke' : 'fill'); attr(svgEl, 'stroke-opacity', style.strokeOpacity != null ? style.strokeOpacity : style.opacity); var lineDash = style.lineDash; if (lineDash) { attr(svgEl, 'stroke-dasharray', style.lineDash.join(',')); attr(svgEl, 'stroke-dashoffset', mathRound(style.lineDashOffset || 0)); } else { attr(svgEl, 'stroke-dasharray', ''); } // PENDING style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap); style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin); style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit); } else { attr(svgEl, 'stroke', NONE); } } /*************************************************** * PATH **************************************************/ function pathDataToString$1(path) { var str = []; var data = path.data; var dataLength = path.len(); for (var i = 0; i < dataLength;) { var cmd = data[i++]; var cmdStr = ''; var nData = 0; switch (cmd) { case CMD$4.M: cmdStr = 'M'; nData = 2; break; case CMD$4.L: cmdStr = 'L'; nData = 2; break; case CMD$4.Q: cmdStr = 'Q'; nData = 4; break; case CMD$4.C: cmdStr = 'C'; nData = 6; break; case CMD$4.A: var cx = data[i++]; var cy = data[i++]; var rx = data[i++]; var ry = data[i++]; var theta = data[i++]; var dTheta = data[i++]; var psi = data[i++]; var clockwise = data[i++]; var dThetaPositive = Math.abs(dTheta); var isCircle = isAroundZero$1(dThetaPositive - PI2$7) && !isAroundZero$1(dThetaPositive); var large = false; if (dThetaPositive >= PI2$7) { large = true; } else if (isAroundZero$1(dThetaPositive)) { large = false; } else { large = (dTheta > -PI$6 && dTheta < 0 || dTheta > PI$6) === !!clockwise; } var x0 = round4(cx + rx * mathCos$3(theta)); var y0 = round4(cy + ry * mathSin$3(theta)); // It will not draw if start point and end point are exactly the same // We need to shift the end point with a small value // FIXME A better way to draw circle ? if (isCircle) { if (clockwise) { dTheta = PI2$7 - 1e-4; } else { dTheta = -PI2$7 + 1e-4; } large = true; if (i === 9) { // Move to (x0, y0) only when CMD.A comes at the // first position of a shape. // For instance, when drawing a ring, CMD.A comes // after CMD.M, so it's unnecessary to move to // (x0, y0). str.push('M', x0, y0); } } var x = round4(cx + rx * mathCos$3(theta + dTheta)); var y = round4(cy + ry * mathSin$3(theta + dTheta)); // FIXME Ellipse str.push('A', round4(rx), round4(ry), mathRound(psi * degree), +large, +clockwise, x, y); break; case CMD$4.Z: cmdStr = 'Z'; break; case CMD$4.R: var x = round4(data[i++]); var y = round4(data[i++]); var w = round4(data[i++]); var h = round4(data[i++]); str.push( 'M', x, y, 'L', x + w, y, 'L', x + w, y + h, 'L', x, y + h, 'L', x, y ); break; } cmdStr && str.push(cmdStr); for (var j = 0; j < nData; j++) { // PENDING With scale str.push(round4(data[i++])); } } return str.join(' '); } var svgPath = {}; svgPath.brush = function (el) { var style = el.style; var svgEl = el.__svgEl; if (!svgEl) { svgEl = createElement('path'); el.__svgEl = svgEl; } if (!el.path) { el.createPathProxy(); } var path = el.path; if (el.__dirtyPath) { path.beginPath(); path.subPixelOptimize = false; el.buildPath(path, el.shape); el.__dirtyPath = false; var pathStr = pathDataToString$1(path); if (pathStr.indexOf('NaN') < 0) { // Ignore illegal path, which may happen such in out-of-range // data in Calendar series. attr(svgEl, 'd', pathStr); } } bindStyle(svgEl, style, false, el); setTransform(svgEl, el.transform); if (style.text != null) { svgTextDrawRectText(el, el.getBoundingRect()); } }; /*************************************************** * IMAGE **************************************************/ var svgImage = {}; svgImage.brush = function (el) { var style = el.style; var image = style.image; if (image instanceof HTMLImageElement) { var src = image.src; image = src; } if (!image) { return; } var x = style.x || 0; var y = style.y || 0; var dw = style.width; var dh = style.height; var svgEl = el.__svgEl; if (!svgEl) { svgEl = createElement('image'); el.__svgEl = svgEl; } if (image !== el.__imageSrc) { attrXLink(svgEl, 'href', image); // Caching image src el.__imageSrc = image; } attr(svgEl, 'width', dw); attr(svgEl, 'height', dh); attr(svgEl, 'x', x); attr(svgEl, 'y', y); setTransform(svgEl, el.transform); if (style.text != null) { svgTextDrawRectText(el, el.getBoundingRect()); } }; /*************************************************** * TEXT **************************************************/ var svgText = {}; var tmpRect$3 = new BoundingRect(); var tmpTextPositionResult = {}; var svgTextDrawRectText = function (el, rect, textRect) { var style = el.style; el.__dirty && normalizeTextStyle(style, true); var text = style.text; // Convert to string if (text == null) { // Draw no text only when text is set to null, but not '' return; } else { text += ''; } var textSvgEl = el.__textSvgEl; if (!textSvgEl) { textSvgEl = createElement('text'); el.__textSvgEl = textSvgEl; } var x; var y; var textPosition = style.textPosition; var align = style.textAlign || 'left'; if (typeof style.fontSize === 'number') { style.fontSize += 'px'; } var font = style.font || [ style.fontStyle || '', style.fontWeight || '', style.fontSize || '', style.fontFamily || '' ].join(' ') || DEFAULT_FONT$1; var verticalAlign = style.textVerticalAlign; textRect = getBoundingRect( text, font, align, verticalAlign, style.textPadding, style.textLineHeight ); var lineHeight = textRect.lineHeight; // Text position represented by coord if (textPosition instanceof Array) { x = rect.x + textPosition[0]; y = rect.y + textPosition[1]; } else { var newPos = el.calculateTextPosition ? el.calculateTextPosition(tmpTextPositionResult, style, rect) : calculateTextPosition(tmpTextPositionResult, style, rect); x = newPos.x; y = newPos.y; verticalAlign = newPos.textVerticalAlign; align = newPos.textAlign; } setVerticalAlign(textSvgEl, verticalAlign); if (font) { textSvgEl.style.font = font; } var textPadding = style.textPadding; // Make baseline top attr(textSvgEl, 'x', x); attr(textSvgEl, 'y', y); bindStyle(textSvgEl, style, true, el); if (el instanceof Text || el.style.transformText) { // Transform text with element setTransform(textSvgEl, el.transform); } else { if (el.transform) { tmpRect$3.copy(rect); tmpRect$3.applyTransform(el.transform); rect = tmpRect$3; } else { var pos = el.transformCoordToGlobal(rect.x, rect.y); rect.x = pos[0]; rect.y = pos[1]; el.transform = identity(create$1()); } // Text rotation, but no element transform var origin = style.textOrigin; if (origin === 'center') { x = textRect.width / 2 + x; y = textRect.height / 2 + y; } else if (origin) { x = origin[0] + x; y = origin[1] + y; } var rotate$$1 = -style.textRotation || 0; var transform = create$1(); // Apply textRotate to element matrix rotate(transform, transform, rotate$$1); var pos = [el.transform[4], el.transform[5]]; translate(transform, transform, pos); setTransform(textSvgEl, transform); } var textLines = text.split('\n'); var nTextLines = textLines.length; var textAnchor = align; // PENDING if (textAnchor === 'left') { textAnchor = 'start'; textPadding && (x += textPadding[3]); } else if (textAnchor === 'right') { textAnchor = 'end'; textPadding && (x -= textPadding[1]); } else if (textAnchor === 'center') { textAnchor = 'middle'; textPadding && (x += (textPadding[3] - textPadding[1]) / 2); } var dy = 0; if (verticalAlign === 'bottom') { dy = -textRect.height + lineHeight; textPadding && (dy -= textPadding[2]); } else if (verticalAlign === 'middle') { dy = (-textRect.height + lineHeight) / 2; textPadding && (y += (textPadding[0] - textPadding[2]) / 2); } else { textPadding && (dy += textPadding[0]); } // Font may affect position of each tspan elements if (el.__text !== text || el.__textFont !== font) { var tspanList = el.__tspanList || []; el.__tspanList = tspanList; for (var i = 0; i < nTextLines; i++) { // Using cached tspan elements var tspan = tspanList[i]; if (!tspan) { tspan = tspanList[i] = createElement('tspan'); textSvgEl.appendChild(tspan); setVerticalAlign(tspan, verticalAlign); attr(tspan, 'text-anchor', textAnchor); } else { tspan.innerHTML = ''; } attr(tspan, 'x', x); attr(tspan, 'y', y + i * lineHeight + dy); tspan.appendChild(document.createTextNode(textLines[i])); } // Remove unsed tspan elements for (; i < tspanList.length; i++) { textSvgEl.removeChild(tspanList[i]); } tspanList.length = nTextLines; el.__text = text; el.__textFont = font; } else if (el.__tspanList.length) { // Update span x and y var len = el.__tspanList.length; for (var i = 0; i < len; ++i) { var tspan = el.__tspanList[i]; if (tspan) { attr(tspan, 'x', x); attr(tspan, 'y', y + i * lineHeight + dy); } } } }; function setVerticalAlign(textSvgEl, verticalAlign) { switch (verticalAlign) { case 'middle': attr(textSvgEl, 'dominant-baseline', 'middle'); attr(textSvgEl, 'alignment-baseline', 'middle'); break; case 'bottom': attr(textSvgEl, 'dominant-baseline', 'ideographic'); attr(textSvgEl, 'alignment-baseline', 'ideographic'); break; default: attr(textSvgEl, 'dominant-baseline', 'hanging'); attr(textSvgEl, 'alignment-baseline', 'hanging'); } } svgText.drawRectText = svgTextDrawRectText; svgText.brush = function (el) { var style = el.style; if (style.text != null) { // 强制设置 textPosition style.textPosition = [0, 0]; svgTextDrawRectText(el, { x: style.x || 0, y: style.y || 0, width: 0, height: 0 }, el.getBoundingRect()); } }; // Myers' Diff Algorithm // Modified from https://github.com/kpdecker/jsdiff/blob/master/src/diff/base.js function Diff() {} Diff.prototype = { diff: function (oldArr, newArr, equals) { if (!equals) { equals = function (a, b) { return a === b; }; } this.equals = equals; var self = this; oldArr = oldArr.slice(); newArr = newArr.slice(); // Allow subclasses to massage the input prior to running var newLen = newArr.length; var oldLen = oldArr.length; var editLength = 1; var maxEditLength = newLen + oldLen; var bestPath = [{ newPos: -1, components: [] }]; // Seed editLength = 0, i.e. the content starts with the same values var oldPos = this.extractCommon(bestPath[0], newArr, oldArr, 0); if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { var indices = []; for (var i = 0; i < newArr.length; i++) { indices.push(i); } // Identity per the equality and tokenizer return [{ indices: indices, count: newArr.length }]; } // Main worker method. checks all permutations of a given edit length for acceptance. function execEditLength() { for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { var basePath; var addPath = bestPath[diagonalPath - 1]; var removePath = bestPath[diagonalPath + 1]; var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; if (addPath) { // No one else is going to attempt to use this value, clear it bestPath[diagonalPath - 1] = undefined; } var canAdd = addPath && addPath.newPos + 1 < newLen; var canRemove = removePath && 0 <= oldPos && oldPos < oldLen; if (!canAdd && !canRemove) { // If this path is a terminal then prune bestPath[diagonalPath] = undefined; continue; } // Select the diagonal that we want to branch from. We select the prior // path whose position in the new string is the farthest from the origin // and does not pass the bounds of the diff graph if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) { basePath = clonePath(removePath); self.pushComponent(basePath.components, undefined, true); } else { basePath = addPath; // No need to clone, we've pulled it from the list basePath.newPos++; self.pushComponent(basePath.components, true, undefined); } oldPos = self.extractCommon(basePath, newArr, oldArr, diagonalPath); // If we have hit the end of both strings, then we are done if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) { return buildValues(self, basePath.components, newArr, oldArr); } else { // Otherwise track this path as a potential candidate and continue. bestPath[diagonalPath] = basePath; } } editLength++; } while (editLength <= maxEditLength) { var ret = execEditLength(); if (ret) { return ret; } } }, pushComponent: function (components, added, removed) { var last = components[components.length - 1]; if (last && last.added === added && last.removed === removed) { // We need to clone here as the component clone operation is just // as shallow array clone components[components.length - 1] = {count: last.count + 1, added: added, removed: removed }; } else { components.push({count: 1, added: added, removed: removed }); } }, extractCommon: function (basePath, newArr, oldArr, diagonalPath) { var newLen = newArr.length; var oldLen = oldArr.length; var newPos = basePath.newPos; var oldPos = newPos - diagonalPath; var commonCount = 0; while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newArr[newPos + 1], oldArr[oldPos + 1])) { newPos++; oldPos++; commonCount++; } if (commonCount) { basePath.components.push({count: commonCount}); } basePath.newPos = newPos; return oldPos; }, tokenize: function (value) { return value.slice(); }, join: function (value) { return value.slice(); } }; function buildValues(diff, components, newArr, oldArr) { var componentPos = 0; var componentLen = components.length; var newPos = 0; var oldPos = 0; for (; componentPos < componentLen; componentPos++) { var component = components[componentPos]; if (!component.removed) { var indices = []; for (var i = newPos; i < newPos + component.count; i++) { indices.push(i); } component.indices = indices; newPos += component.count; // Common case if (!component.added) { oldPos += component.count; } } else { var indices = []; for (var i = oldPos; i < oldPos + component.count; i++) { indices.push(i); } component.indices = indices; oldPos += component.count; } } return components; } function clonePath(path) { return { newPos: path.newPos, components: path.components.slice(0) }; } var arrayDiff = new Diff(); var arrayDiff$1 = function (oldArr, newArr, callback) { return arrayDiff.diff(oldArr, newArr, callback); }; /** * @file Manages elements that can be defined in in SVG, * e.g., gradients, clip path, etc. * @author Zhang Wenli */ var MARK_UNUSED = '0'; var MARK_USED = '1'; /** * Manages elements that can be defined in in SVG, * e.g., gradients, clip path, etc. * * @class * @param {number} zrId zrender instance id * @param {SVGElement} svgRoot root of SVG document * @param {string|string[]} tagNames possible tag names * @param {string} markLabel label name to make if the element * is used */ function Definable( zrId, svgRoot, tagNames, markLabel, domName ) { this._zrId = zrId; this._svgRoot = svgRoot; this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames; this._markLabel = markLabel; this._domName = domName || '_dom'; this.nextId = 0; } Definable.prototype.createElement = createElement; /** * Get the tag for svgRoot; optionally creates one if not exists. * * @param {boolean} isForceCreating if need to create when not exists * @return {SVGDefsElement} SVG element, null if it doesn't * exist and isForceCreating is false */ Definable.prototype.getDefs = function (isForceCreating) { var svgRoot = this._svgRoot; var defs = this._svgRoot.getElementsByTagName('defs'); if (defs.length === 0) { // Not exist if (isForceCreating) { defs = svgRoot.insertBefore( this.createElement('defs'), // Create new tag svgRoot.firstChild // Insert in the front of svg ); if (!defs.contains) { // IE doesn't support contains method defs.contains = function (el) { var children = defs.children; if (!children) { return false; } for (var i = children.length - 1; i >= 0; --i) { if (children[i] === el) { return true; } } return false; }; } return defs; } else { return null; } } else { return defs[0]; } }; /** * Update DOM element if necessary. * * @param {Object|string} element style element. e.g., for gradient, * it may be '#ccc' or {type: 'linear', ...} * @param {Function|undefined} onUpdate update callback */ Definable.prototype.update = function (element, onUpdate) { if (!element) { return; } var defs = this.getDefs(false); if (element[this._domName] && defs.contains(element[this._domName])) { // Update DOM if (typeof onUpdate === 'function') { onUpdate(element); } } else { // No previous dom, create new var dom = this.add(element); if (dom) { element[this._domName] = dom; } } }; /** * Add gradient dom to defs * * @param {SVGElement} dom DOM to be added to */ Definable.prototype.addDom = function (dom) { var defs = this.getDefs(true); defs.appendChild(dom); }; /** * Remove DOM of a given element. * * @param {SVGElement} element element to remove dom */ Definable.prototype.removeDom = function (element) { var defs = this.getDefs(false); if (defs && element[this._domName]) { defs.removeChild(element[this._domName]); element[this._domName] = null; } }; /** * Get DOMs of this element. * * @return {HTMLDomElement} doms of this defineable elements in */ Definable.prototype.getDoms = function () { var defs = this.getDefs(false); if (!defs) { // No dom when defs is not defined return []; } var doms = []; each$1(this._tagNames, function (tagName) { var tags = defs.getElementsByTagName(tagName); // Note that tags is HTMLCollection, which is array-like // rather than real array. // So `doms.concat(tags)` add tags as one object. doms = doms.concat([].slice.call(tags)); }); return doms; }; /** * Mark DOMs to be unused before painting, and clear unused ones at the end * of the painting. */ Definable.prototype.markAllUnused = function () { var doms = this.getDoms(); var that = this; each$1(doms, function (dom) { dom[that._markLabel] = MARK_UNUSED; }); }; /** * Mark a single DOM to be used. * * @param {SVGElement} dom DOM to mark */ Definable.prototype.markUsed = function (dom) { if (dom) { dom[this._markLabel] = MARK_USED; } }; /** * Remove unused DOMs defined in */ Definable.prototype.removeUnused = function () { var defs = this.getDefs(false); if (!defs) { // Nothing to remove return; } var doms = this.getDoms(); var that = this; each$1(doms, function (dom) { if (dom[that._markLabel] !== MARK_USED) { // Remove gradient defs.removeChild(dom); } }); }; /** * Get SVG proxy. * * @param {Displayable} displayable displayable element * @return {Path|Image|Text} svg proxy of given element */ Definable.prototype.getSvgProxy = function (displayable) { if (displayable instanceof Path) { return svgPath; } else if (displayable instanceof ZImage) { return svgImage; } else if (displayable instanceof Text) { return svgText; } else { return svgPath; } }; /** * Get text SVG element. * * @param {Displayable} displayable displayable element * @return {SVGElement} SVG element of text */ Definable.prototype.getTextSvgElement = function (displayable) { return displayable.__textSvgEl; }; /** * Get SVG element. * * @param {Displayable} displayable displayable element * @return {SVGElement} SVG element */ Definable.prototype.getSvgElement = function (displayable) { return displayable.__svgEl; }; /** * @file Manages SVG gradient elements. * @author Zhang Wenli */ /** * Manages SVG gradient elements. * * @class * @extends Definable * @param {number} zrId zrender instance id * @param {SVGElement} svgRoot root of SVG document */ function GradientManager(zrId, svgRoot) { Definable.call( this, zrId, svgRoot, ['linearGradient', 'radialGradient'], '__gradient_in_use__' ); } inherits(GradientManager, Definable); /** * Create new gradient DOM for fill or stroke if not exist, * but will not update gradient if exists. * * @param {SvgElement} svgElement SVG element to paint * @param {Displayable} displayable zrender displayable element */ GradientManager.prototype.addWithoutUpdate = function ( svgElement, displayable ) { if (displayable && displayable.style) { var that = this; each$1(['fill', 'stroke'], function (fillOrStroke) { if (displayable.style[fillOrStroke] && (displayable.style[fillOrStroke].type === 'linear' || displayable.style[fillOrStroke].type === 'radial') ) { var gradient = displayable.style[fillOrStroke]; var defs = that.getDefs(true); // Create dom in if not exists var dom; if (gradient._dom) { // Gradient exists dom = gradient._dom; if (!defs.contains(gradient._dom)) { // _dom is no longer in defs, recreate that.addDom(dom); } } else { // New dom dom = that.add(gradient); } that.markUsed(displayable); var id = dom.getAttribute('id'); svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')'); } }); } }; /** * Add a new gradient tag in * * @param {Gradient} gradient zr gradient instance * @return {SVGLinearGradientElement | SVGRadialGradientElement} * created DOM */ GradientManager.prototype.add = function (gradient) { var dom; if (gradient.type === 'linear') { dom = this.createElement('linearGradient'); } else if (gradient.type === 'radial') { dom = this.createElement('radialGradient'); } else { zrLog('Illegal gradient type.'); return null; } // Set dom id with gradient id, since each gradient instance // will have no more than one dom element. // id may exists before for those dirty elements, in which case // id should remain the same, and other attributes should be // updated. gradient.id = gradient.id || this.nextId++; dom.setAttribute('id', 'zr' + this._zrId + '-gradient-' + gradient.id); this.updateDom(gradient, dom); this.addDom(dom); return dom; }; /** * Update gradient. * * @param {Gradient} gradient zr gradient instance */ GradientManager.prototype.update = function (gradient) { var that = this; Definable.prototype.update.call(this, gradient, function () { var type = gradient.type; var tagName = gradient._dom.tagName; if (type === 'linear' && tagName === 'linearGradient' || type === 'radial' && tagName === 'radialGradient' ) { // Gradient type is not changed, update gradient that.updateDom(gradient, gradient._dom); } else { // Remove and re-create if type is changed that.removeDom(gradient); that.add(gradient); } }); }; /** * Update gradient dom * * @param {Gradient} gradient zr gradient instance * @param {SVGLinearGradientElement | SVGRadialGradientElement} dom * DOM to update */ GradientManager.prototype.updateDom = function (gradient, dom) { if (gradient.type === 'linear') { dom.setAttribute('x1', gradient.x); dom.setAttribute('y1', gradient.y); dom.setAttribute('x2', gradient.x2); dom.setAttribute('y2', gradient.y2); } else if (gradient.type === 'radial') { dom.setAttribute('cx', gradient.x); dom.setAttribute('cy', gradient.y); dom.setAttribute('r', gradient.r); } else { zrLog('Illegal gradient type.'); return; } if (gradient.global) { // x1, x2, y1, y2 in range of 0 to canvas width or height dom.setAttribute('gradientUnits', 'userSpaceOnUse'); } else { // x1, x2, y1, y2 in range of 0 to 1 dom.setAttribute('gradientUnits', 'objectBoundingBox'); } // Remove color stops if exists dom.innerHTML = ''; // Add color stops var colors = gradient.colorStops; for (var i = 0, len = colors.length; i < len; ++i) { var stop = this.createElement('stop'); stop.setAttribute('offset', colors[i].offset * 100 + '%'); var color = colors[i].color; if (color.indexOf('rgba' > -1)) { // Fix Safari bug that stop-color not recognizing alpha #9014 var opacity = parse(color)[3]; var hex = toHex(color); // stop-color cannot be color, since: // The opacity value used for the gradient calculation is the // *product* of the value of stop-opacity and the opacity of the // value of stop-color. // See https://www.w3.org/TR/SVG2/pservers.html#StopOpacityProperty stop.setAttribute('stop-color', '#' + hex); stop.setAttribute('stop-opacity', opacity); } else { stop.setAttribute('stop-color', colors[i].color); } dom.appendChild(stop); } // Store dom element in gradient, to avoid creating multiple // dom instances for the same gradient element gradient._dom = dom; }; /** * Mark a single gradient to be used * * @param {Displayable} displayable displayable element */ GradientManager.prototype.markUsed = function (displayable) { if (displayable.style) { var gradient = displayable.style.fill; if (gradient && gradient._dom) { Definable.prototype.markUsed.call(this, gradient._dom); } gradient = displayable.style.stroke; if (gradient && gradient._dom) { Definable.prototype.markUsed.call(this, gradient._dom); } } }; /** * @file Manages SVG clipPath elements. * @author Zhang Wenli */ /** * Manages SVG clipPath elements. * * @class * @extends Definable * @param {number} zrId zrender instance id * @param {SVGElement} svgRoot root of SVG document */ function ClippathManager(zrId, svgRoot) { Definable.call(this, zrId, svgRoot, 'clipPath', '__clippath_in_use__'); } inherits(ClippathManager, Definable); /** * Update clipPath. * * @param {Displayable} displayable displayable element */ ClippathManager.prototype.update = function (displayable) { var svgEl = this.getSvgElement(displayable); if (svgEl) { this.updateDom(svgEl, displayable.__clipPaths, false); } var textEl = this.getTextSvgElement(displayable); if (textEl) { // Make another clipPath for text, since it's transform // matrix is not the same with svgElement this.updateDom(textEl, displayable.__clipPaths, true); } this.markUsed(displayable); }; /** * Create an SVGElement of displayable and create a of its * clipPath * * @param {Displayable} parentEl parent element * @param {ClipPath[]} clipPaths clipPaths of parent element * @param {boolean} isText if parent element is Text */ ClippathManager.prototype.updateDom = function ( parentEl, clipPaths, isText ) { if (clipPaths && clipPaths.length > 0) { // Has clipPath, create with the first clipPath var defs = this.getDefs(true); var clipPath = clipPaths[0]; var clipPathEl; var id; var dom = isText ? '_textDom' : '_dom'; if (clipPath[dom]) { // Use a dom that is already in id = clipPath[dom].getAttribute('id'); clipPathEl = clipPath[dom]; // Use a dom that is already in if (!defs.contains(clipPathEl)) { // This happens when set old clipPath that has // been previously removed defs.appendChild(clipPathEl); } } else { // New id = 'zr' + this._zrId + '-clip-' + this.nextId; ++this.nextId; clipPathEl = this.createElement('clipPath'); clipPathEl.setAttribute('id', id); defs.appendChild(clipPathEl); clipPath[dom] = clipPathEl; } // Build path and add to var svgProxy = this.getSvgProxy(clipPath); if (clipPath.transform && clipPath.parent.invTransform && !isText ) { /** * If a clipPath has a parent with transform, the transform * of parent should not be considered when setting transform * of clipPath. So we need to transform back from parent's * transform, which is done by multiplying parent's inverse * transform. */ // Store old transform var transform = Array.prototype.slice.call( clipPath.transform ); // Transform back from parent, and brush path mul$1( clipPath.transform, clipPath.parent.invTransform, clipPath.transform ); svgProxy.brush(clipPath); // Set back transform of clipPath clipPath.transform = transform; } else { svgProxy.brush(clipPath); } var pathEl = this.getSvgElement(clipPath); clipPathEl.innerHTML = ''; /** * Use `cloneNode()` here to appendChild to multiple parents, * which may happend when Text and other shapes are using the same * clipPath. Since Text will create an extra clipPath DOM due to * different transform rules. */ clipPathEl.appendChild(pathEl.cloneNode()); parentEl.setAttribute('clip-path', 'url(#' + id + ')'); if (clipPaths.length > 1) { // Make the other clipPaths recursively this.updateDom(clipPathEl, clipPaths.slice(1), isText); } } else { // No clipPath if (parentEl) { parentEl.setAttribute('clip-path', 'none'); } } }; /** * Mark a single clipPath to be used * * @param {Displayable} displayable displayable element */ ClippathManager.prototype.markUsed = function (displayable) { var that = this; // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array. if (displayable.__clipPaths) { each$1(displayable.__clipPaths, function (clipPath) { if (clipPath._dom) { Definable.prototype.markUsed.call(that, clipPath._dom); } if (clipPath._textDom) { Definable.prototype.markUsed.call(that, clipPath._textDom); } }); } }; /** * @file Manages SVG shadow elements. * @author Zhang Wenli */ /** * Manages SVG shadow elements. * * @class * @extends Definable * @param {number} zrId zrender instance id * @param {SVGElement} svgRoot root of SVG document */ function ShadowManager(zrId, svgRoot) { Definable.call( this, zrId, svgRoot, ['filter'], '__filter_in_use__', '_shadowDom' ); } inherits(ShadowManager, Definable); /** * Create new shadow DOM for fill or stroke if not exist, * but will not update shadow if exists. * * @param {SvgElement} svgElement SVG element to paint * @param {Displayable} displayable zrender displayable element */ ShadowManager.prototype.addWithoutUpdate = function ( svgElement, displayable ) { if (displayable && hasShadow(displayable.style)) { var style = displayable.style; // Create dom in if not exists var dom; if (style._shadowDom) { // Gradient exists dom = style._shadowDom; var defs = this.getDefs(true); if (!defs.contains(style._shadowDom)) { // _shadowDom is no longer in defs, recreate this.addDom(dom); } } else { // New dom dom = this.add(displayable); } this.markUsed(displayable); var id = dom.getAttribute('id'); svgElement.style.filter = 'url(#' + id + ')'; } }; /** * Add a new shadow tag in * * @param {Displayable} displayable zrender displayable element * @return {SVGFilterElement} created DOM */ ShadowManager.prototype.add = function (displayable) { var dom = this.createElement('filter'); var style = displayable.style; // Set dom id with shadow id, since each shadow instance // will have no more than one dom element. // id may exists before for those dirty elements, in which case // id should remain the same, and other attributes should be // updated. style._shadowDomId = style._shadowDomId || this.nextId++; dom.setAttribute('id', 'zr' + this._zrId + '-shadow-' + style._shadowDomId); this.updateDom(displayable, dom); this.addDom(dom); return dom; }; /** * Update shadow. * * @param {Displayable} displayable zrender displayable element */ ShadowManager.prototype.update = function (svgElement, displayable) { var style = displayable.style; if (hasShadow(style)) { var that = this; Definable.prototype.update.call(this, displayable, function (style) { that.updateDom(displayable, style._shadowDom); }); } else { // Remove shadow this.remove(svgElement, style); } }; /** * Remove DOM and clear parent filter */ ShadowManager.prototype.remove = function (svgElement, style) { if (style._shadowDomId != null) { this.removeDom(style); svgElement.style.filter = ''; } }; /** * Update shadow dom * * @param {Displayable} displayable zrender displayable element * @param {SVGFilterElement} dom DOM to update */ ShadowManager.prototype.updateDom = function (displayable, dom) { var domChild = dom.getElementsByTagName('feDropShadow'); if (domChild.length === 0) { domChild = this.createElement('feDropShadow'); } else { domChild = domChild[0]; } var style = displayable.style; var scaleX = displayable.scale ? (displayable.scale[0] || 1) : 1; var scaleY = displayable.scale ? (displayable.scale[1] || 1) : 1; // TODO: textBoxShadowBlur is not supported yet var offsetX, offsetY, blur, color; if (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY) { offsetX = style.shadowOffsetX || 0; offsetY = style.shadowOffsetY || 0; blur = style.shadowBlur; color = style.shadowColor; } else if (style.textShadowBlur) { offsetX = style.textShadowOffsetX || 0; offsetY = style.textShadowOffsetY || 0; blur = style.textShadowBlur; color = style.textShadowColor; } else { // Remove shadow this.removeDom(dom, style); return; } domChild.setAttribute('dx', offsetX / scaleX); domChild.setAttribute('dy', offsetY / scaleY); domChild.setAttribute('flood-color', color); // Divide by two here so that it looks the same as in canvas // See: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-shadowblur var stdDx = blur / 2 / scaleX; var stdDy = blur / 2 / scaleY; var stdDeviation = stdDx + ' ' + stdDy; domChild.setAttribute('stdDeviation', stdDeviation); // Fix filter clipping problem dom.setAttribute('x', '-100%'); dom.setAttribute('y', '-100%'); dom.setAttribute('width', Math.ceil(blur / 2 * 200) + '%'); dom.setAttribute('height', Math.ceil(blur / 2 * 200) + '%'); dom.appendChild(domChild); // Store dom element in shadow, to avoid creating multiple // dom instances for the same shadow element style._shadowDom = dom; }; /** * Mark a single shadow to be used * * @param {Displayable} displayable displayable element */ ShadowManager.prototype.markUsed = function (displayable) { var style = displayable.style; if (style && style._shadowDom) { Definable.prototype.markUsed.call(this, style._shadowDom); } }; function hasShadow(style) { // TODO: textBoxShadowBlur is not supported yet return style && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY || style.textShadowBlur || style.textShadowOffsetX || style.textShadowOffsetY); } /** * SVG Painter * @module zrender/svg/Painter */ function parseInt10$2(val) { return parseInt(val, 10); } function getSvgProxy(el) { if (el instanceof Path) { return svgPath; } else if (el instanceof ZImage) { return svgImage; } else if (el instanceof Text) { return svgText; } else { return svgPath; } } function checkParentAvailable(parent, child) { return child && parent && child.parentNode !== parent; } function insertAfter(parent, child, prevSibling) { if (checkParentAvailable(parent, child) && prevSibling) { var nextSibling = prevSibling.nextSibling; nextSibling ? parent.insertBefore(child, nextSibling) : parent.appendChild(child); } } function prepend(parent, child) { if (checkParentAvailable(parent, child)) { var firstChild = parent.firstChild; firstChild ? parent.insertBefore(child, firstChild) : parent.appendChild(child); } } function remove$1(parent, child) { if (child && parent && child.parentNode === parent) { parent.removeChild(child); } } function getTextSvgElement(displayable) { return displayable.__textSvgEl; } function getSvgElement(displayable) { return displayable.__svgEl; } /** * @alias module:zrender/svg/Painter * @constructor * @param {HTMLElement} root 绘图容器 * @param {module:zrender/Storage} storage * @param {Object} opts */ var SVGPainter = function (root, storage, opts, zrId) { this.root = root; this.storage = storage; this._opts = opts = extend({}, opts || {}); var svgRoot = createElement('svg'); svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg'); svgRoot.setAttribute('version', '1.1'); svgRoot.setAttribute('baseProfile', 'full'); svgRoot.style.cssText = 'user-select:none;position:absolute;left:0;top:0;'; this.gradientManager = new GradientManager(zrId, svgRoot); this.clipPathManager = new ClippathManager(zrId, svgRoot); this.shadowManager = new ShadowManager(zrId, svgRoot); var viewport = document.createElement('div'); viewport.style.cssText = 'overflow:hidden;position:relative'; this._svgRoot = svgRoot; this._viewport = viewport; root.appendChild(viewport); viewport.appendChild(svgRoot); this.resize(opts.width, opts.height); this._visibleList = []; }; SVGPainter.prototype = { constructor: SVGPainter, getType: function () { return 'svg'; }, getViewportRoot: function () { return this._viewport; }, getViewportRootOffset: function () { var viewportRoot = this.getViewportRoot(); if (viewportRoot) { return { offsetLeft: viewportRoot.offsetLeft || 0, offsetTop: viewportRoot.offsetTop || 0 }; } }, refresh: function () { var list = this.storage.getDisplayList(true); this._paintList(list); }, setBackgroundColor: function (backgroundColor) { // TODO gradient this._viewport.style.background = backgroundColor; }, _paintList: function (list) { this.gradientManager.markAllUnused(); this.clipPathManager.markAllUnused(); this.shadowManager.markAllUnused(); var svgRoot = this._svgRoot; var visibleList = this._visibleList; var listLen = list.length; var newVisibleList = []; var i; for (i = 0; i < listLen; i++) { var displayable = list[i]; var svgProxy = getSvgProxy(displayable); var svgElement = getSvgElement(displayable) || getTextSvgElement(displayable); if (!displayable.invisible) { if (displayable.__dirty) { svgProxy && svgProxy.brush(displayable); // Update clipPath this.clipPathManager.update(displayable); // Update gradient and shadow if (displayable.style) { this.gradientManager .update(displayable.style.fill); this.gradientManager .update(displayable.style.stroke); this.shadowManager .update(svgElement, displayable); } displayable.__dirty = false; } newVisibleList.push(displayable); } } var diff = arrayDiff$1(visibleList, newVisibleList); var prevSvgElement; // First do remove, in case element moved to the head and do remove // after add for (i = 0; i < diff.length; i++) { var item = diff[i]; if (item.removed) { for (var k = 0; k < item.count; k++) { var displayable = visibleList[item.indices[k]]; var svgElement = getSvgElement(displayable); var textSvgElement = getTextSvgElement(displayable); remove$1(svgRoot, svgElement); remove$1(svgRoot, textSvgElement); } } } for (i = 0; i < diff.length; i++) { var item = diff[i]; if (item.added) { for (var k = 0; k < item.count; k++) { var displayable = newVisibleList[item.indices[k]]; var svgElement = getSvgElement(displayable); var textSvgElement = getTextSvgElement(displayable); prevSvgElement ? insertAfter(svgRoot, svgElement, prevSvgElement) : prepend(svgRoot, svgElement); if (svgElement) { insertAfter(svgRoot, textSvgElement, svgElement); } else if (prevSvgElement) { insertAfter( svgRoot, textSvgElement, prevSvgElement ); } else { prepend(svgRoot, textSvgElement); } // Insert text insertAfter(svgRoot, textSvgElement, svgElement); prevSvgElement = textSvgElement || svgElement || prevSvgElement; this.gradientManager .addWithoutUpdate(svgElement, displayable); this.shadowManager .addWithoutUpdate(prevSvgElement, displayable); this.clipPathManager.markUsed(displayable); } } else if (!item.removed) { for (var k = 0; k < item.count; k++) { var displayable = newVisibleList[item.indices[k]]; prevSvgElement = svgElement = getTextSvgElement(displayable) || getSvgElement(displayable) || prevSvgElement; this.gradientManager.markUsed(displayable); this.gradientManager .addWithoutUpdate(svgElement, displayable); this.shadowManager.markUsed(displayable); this.shadowManager .addWithoutUpdate(svgElement, displayable); this.clipPathManager.markUsed(displayable); } } } this.gradientManager.removeUnused(); this.clipPathManager.removeUnused(); this.shadowManager.removeUnused(); this._visibleList = newVisibleList; }, _getDefs: function (isForceCreating) { var svgRoot = this._svgRoot; var defs = this._svgRoot.getElementsByTagName('defs'); if (defs.length === 0) { // Not exist if (isForceCreating) { var defs = svgRoot.insertBefore( createElement('defs'), // Create new tag svgRoot.firstChild // Insert in the front of svg ); if (!defs.contains) { // IE doesn't support contains method defs.contains = function (el) { var children = defs.children; if (!children) { return false; } for (var i = children.length - 1; i >= 0; --i) { if (children[i] === el) { return true; } } return false; }; } return defs; } else { return null; } } else { return defs[0]; } }, resize: function (width, height) { var viewport = this._viewport; // FIXME Why ? viewport.style.display = 'none'; // Save input w/h var opts = this._opts; width != null && (opts.width = width); height != null && (opts.height = height); width = this._getSize(0); height = this._getSize(1); viewport.style.display = ''; if (this._width !== width || this._height !== height) { this._width = width; this._height = height; var viewportStyle = viewport.style; viewportStyle.width = width + 'px'; viewportStyle.height = height + 'px'; var svgRoot = this._svgRoot; // Set width by 'svgRoot.width = width' is invalid svgRoot.setAttribute('width', width); svgRoot.setAttribute('height', height); } }, /** * 获取绘图区域宽度 */ getWidth: function () { return this._width; }, /** * 获取绘图区域高度 */ getHeight: function () { return this._height; }, _getSize: function (whIdx) { var opts = this._opts; var wh = ['width', 'height'][whIdx]; var cwh = ['clientWidth', 'clientHeight'][whIdx]; var plt = ['paddingLeft', 'paddingTop'][whIdx]; var prb = ['paddingRight', 'paddingBottom'][whIdx]; if (opts[wh] != null && opts[wh] !== 'auto') { return parseFloat(opts[wh]); } var root = this.root; // IE8 does not support getComputedStyle, but it use VML. var stl = document.defaultView.getComputedStyle(root); return ( (root[cwh] || parseInt10$2(stl[wh]) || parseInt10$2(root.style[wh])) - (parseInt10$2(stl[plt]) || 0) - (parseInt10$2(stl[prb]) || 0) ) | 0; }, dispose: function () { this.root.innerHTML = ''; this._svgRoot = this._viewport = this.storage = null; }, clear: function () { if (this._viewport) { this.root.removeChild(this._viewport); } }, pathToDataUrl: function () { this.refresh(); var html = this._svgRoot.outerHTML; return 'data:image/svg+xml;charset=UTF-8,' + html; } }; // Not supported methods function createMethodNotSupport$1(method) { return function () { zrLog('In SVG mode painter not support method "' + method + '"'); }; } // Unsuppoted methods each$1([ 'getLayer', 'insertLayer', 'eachLayer', 'eachBuiltinLayer', 'eachOtherLayer', 'getLayers', 'modLayer', 'delLayer', 'clearLayer', 'toDataURL', 'pathToImage' ], function (name) { SVGPainter.prototype[name] = createMethodNotSupport$1(name); }); registerPainter('svg', SVGPainter); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // ---------------------------------------------- // All of the modules that are allowed to be // imported are listed below. // // Users MUST NOT import other modules that are // not included in this list. // ---------------------------------------------- // ---------------- // Charts (series) // ---------------- // All of the series types, for example: // chart.setOption({ // series: [{ // type: 'line' // or 'bar', 'pie', ... // }] // }); // ------------------- // Coordinate systems // ------------------- // All of the axis modules have been included in the // coordinate system module below, do not need to // make extra import. // `cartesian` coordinate system. For some historical // reasons, it is named as grid, for example: // chart.setOption({ // grid: {...}, // xAxis: {...}, // yAxis: {...}, // series: [{...}] // }); // `polar` coordinate system, for example: // chart.setOption({ // polar: {...}, // radiusAxis: {...}, // angleAxis: {...}, // series: [{ // coordinateSystem: 'polar' // }] // }); // `geo` coordinate system, for example: // chart.setOption({ // geo: {...}, // series: [{ // coordinateSystem: 'geo' // }] // }); // `singleAxis` coordinate system (notice, it is a coordinate system // with only one axis, work for chart like theme river), for example: // chart.setOption({ // singleAxis: {...} // series: [{type: 'themeRiver', ...}] // }); // `parallel` coordinate system, only work for parallel series, for example: // chart.setOption({ // parallel: {...}, // parallelAxis: [{...}, ...], // series: [{ // type: 'parallel' // }] // }); // `calendar` coordinate system. for example, // chart.setOptionp({ // calendar: {...}, // series: [{ // coordinateSystem: 'calendar' // }] // ); // ------------------ // Other components // ------------------ // `grapchic` component, for example: // chart.setOption({ // graphic: {...} // }); // `toolbox` component, for example: // chart.setOption({ // toolbox: {...} // }); // `tooltip` component, for example: // chart.setOption({ // tooltip: {...} // }); // `axisPointer` component, for example: // chart.setOption({ // tooltip: {axisPointer: {...}, ...} // }); // Or // chart.setOption({ // axisPointer: {...} // }); // `brush` component, for example: // chart.setOption({ // brush: {...} // }); // Or // chart.setOption({ // tooltip: {feature: {brush: {...}} // }) // `title` component, for example: // chart.setOption({ // title: {...} // }); // `timeline` component, for example: // chart.setOption({ // timeline: {...} // }); // `markPoint` component, for example: // chart.setOption({ // series: [{markPoint: {...}}] // }); // `markLine` component, for example: // chart.setOption({ // series: [{markLine: {...}}] // }); // `markArea` component, for example: // chart.setOption({ // series: [{markArea: {...}}] // }); // `legend` component scrollable, for example: // chart.setOption({ // legend: {type: 'scroll'} // }); // `legend` component not scrollable. for example: // chart.setOption({ // legend: {...} // }); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`. // `dataZoom` component providing drag, pinch, wheel behaviors // inside coodinate system, for example: // chart.setOption({ // dataZoom: {type: 'inside'} // }); // `dataZoom` component providing a slider bar, for example: // chart.setOption({ // dataZoom: {type: 'slider'} // }); // `dataZoom` component including both `visualMapContinuous` and `visualMapPiecewise`. // `visualMap` component providing continuous bar, for example: // chart.setOption({ // visualMap: {type: 'continuous'} // }); // `visualMap` component providing pieces bar, for example: // chart.setOption({ // visualMap: {type: 'piecewise'} // }); // ----------------- // Render engines // ----------------- // Provide IE 6,7,8 compatibility. // Render via SVG rather than canvas. exports.version = version; exports.dependencies = dependencies; exports.PRIORITY = PRIORITY; exports.init = init; exports.connect = connect; exports.disConnect = disConnect; exports.disconnect = disconnect; exports.dispose = dispose; exports.getInstanceByDom = getInstanceByDom; exports.getInstanceById = getInstanceById; exports.registerTheme = registerTheme; exports.registerPreprocessor = registerPreprocessor; exports.registerProcessor = registerProcessor; exports.registerPostUpdate = registerPostUpdate; exports.registerAction = registerAction; exports.registerCoordinateSystem = registerCoordinateSystem; exports.getCoordinateSystemDimensions = getCoordinateSystemDimensions; exports.registerLayout = registerLayout; exports.registerVisual = registerVisual; exports.registerLoading = registerLoading; exports.extendComponentModel = extendComponentModel; exports.extendComponentView = extendComponentView; exports.extendSeriesModel = extendSeriesModel; exports.extendChartView = extendChartView; exports.setCanvasCreator = setCanvasCreator; exports.registerMap = registerMap; exports.getMap = getMap; exports.dataTool = dataTool; exports.zrender = zrender; exports.number = number; exports.format = format; exports.throttle = throttle; exports.helper = helper; exports.matrix = matrix; exports.vector = vector; exports.color = color; exports.parseGeoJSON = parseGeoJson$1; exports.parseGeoJson = parseGeoJson; exports.util = ecUtil; exports.graphic = graphic$1; exports.List = List; exports.Model = Model; exports.Axis = Axis; exports.env = env$1; }))); //# sourceMappingURL=echarts.js.map ================================================ FILE: public/backend/vendors/js/extensions/lang-all.js ================================================ !function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],a):"object"==typeof exports?a(require("moment"),require("fullcalendar")):a(e.moment,e.FullCalendar)}("undefined"!=typeof self?self:this,function(e,a){return function(e){function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}var t={};return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},a.p="",a(a.s=434)}([function(a,t){a.exports=e},function(e,t){e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(66);var n=t(1);n.datepickerLocale("af","af",{closeText:"Selekteer",prevText:"Vorige",nextText:"Volgende",currentText:"Vandag",monthNames:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],dayNames:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],dayNamesShort:["Son","Maa","Din","Woe","Don","Vry","Sat"],dayNamesMin:["So","Ma","Di","Wo","Do","Vr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("af",{buttonText:{year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenisse nie"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"vm":"VM":t?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(68);var n=t(1);n.datepickerLocale("ar-dz","ar-DZ",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-dz",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(70);var n=t(1);n.datepickerLocale("ar-kw","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-kw",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(72);var n=t(1);n.datepickerLocale("ar-ly","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-ly",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(a,r,s,d){var i=t(a),o=n[e][t(a)];return 2===i&&(o=o[r?0:1]),o.replace(/%d/i,a)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù…/,isPM:function(e){return"Ù…"===e},meridiem:function(e,a,t){return e<12?"ص":"Ù…"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/ØŒ/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"ØŒ")},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(74);var n=t(1);n.datepickerLocale("ar-ma","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-ma",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(76);var n=t(1);n.datepickerLocale("ar-sa","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-sa",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},t={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù…/,isPM:function(e){return"Ù…"===e},meridiem:function(e,a,t){return e<12?"ص":"Ù…"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return t[e]}).replace(/ØŒ/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"ØŒ")},week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(78);var n=t(1);n.datepickerLocale("ar-tn","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-tn",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(80);var n=t(1);n.datepickerLocale("ar","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["Ø­","Ù†","Ø«","ر","Ø®","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},t={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(a,t,s,d){var i=n(a),o=r[e][n(a)];return 2===i&&(o=o[t?0:1]),o.replace(/%d/i,a)}},d=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar",{months:d,monthsShort:d,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_Ù†_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù…/,isPM:function(e){return"Ù…"===e},meridiem:function(e,a,t){return e<12?"ص":"Ù…"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return t[e]}).replace(/ØŒ/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"ØŒ")},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(82);var n=t(1);n.datepickerLocale("bg","bg",{closeText:"затвори",prevText:"<назад",nextText:"напред>",nextBigText:">>",currentText:"днес",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Ð’Ñ‚","Ср","Че","Пе","Съ"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("bg",{buttonText:{month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",eventLimitText:function(e){return"+още "+e},noEventsMessage:"Няма събития за показване"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Ð’ изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Ð’ изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(84);var n=t(1);n.datepickerLocale("bs","bs",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Juni","Juli","August","Septembar","Oktobar","Novmbar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","ÄŒetvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","ÄŒet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","ÄŒe","Pe","Su"],weekHeader:"Sed",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("bs",{buttonText:{prev:"ProÅ¡li",next:"Sljedeći",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},allDayText:"Cijeli dan",eventLimitText:function(e){return"+ joÅ¡ "+e},noEventsMessage:"Nema dogaÄ‘aja za prikazivanje"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n=e+" ";switch(t){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[proÅ¡lu] dddd [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(86);var n=t(1);n.datepickerLocale("ca","ca",{closeText:"Tanca",prevText:"Anterior",nextText:"Següent",currentText:"Avui",monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],monthNamesShort:["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des"],dayNames:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],dayNamesShort:["dg","dl","dt","dc","dj","dv","ds"],dayNamesMin:["dg","dl","dt","dc","dj","dv","ds"],weekHeader:"Set",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ca",{buttonText:{month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},allDayText:"Tot el dia",eventLimitText:"més",noEventsMessage:"No hi ha esdeveniments per mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,a){var t=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==a&&"W"!==a||(t="a"),e+t},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(88);var n=t(1);n.datepickerLocale("cs","cs",{closeText:"Zavřít",prevText:"<Dříve",nextText:"PozdÄ›ji>",currentText:"Nyní",monthNames:["leden","únor","bÅ™ezen","duben","kvÄ›ten","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bÅ™e","dub","kvÄ›","čer","čvc","srp","zář","říj","lis","pro"],dayNames:["nedÄ›le","pondÄ›lí","úterý","stÅ™eda","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],weekHeader:"Týd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("cs",{buttonText:{month:"MÄ›síc",week:"Týden",day:"Den",list:"Agenda"},allDayText:"Celý den",eventLimitText:function(e){return"+další: "+e},noEventsMessage:"Žádné akce k zobrazení"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?s+(a(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?s+(a(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(a(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?s+(a(e)?"dny":"dní"):s+"dny";case"M":return t||r?"mÄ›síc":"mÄ›sícem";case"MM":return t||r?s+(a(e)?"mÄ›síce":"mÄ›síců"):s+"mÄ›síci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?s+(a(e)?"roky":"let"):s+"lety"}}var n="leden_únor_bÅ™ezen_duben_kvÄ›ten_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bÅ™e_dub_kvÄ›_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:n,monthsShort:r,monthsParse:function(e,a){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$|^"+a[t]+"$","i");return n}(n,r),shortMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(r),longMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(n),weekdays:"nedÄ›le_pondÄ›lí_úterý_stÅ™eda_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedÄ›li v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve stÅ™edu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou nedÄ›li v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou stÅ™edu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pÅ™ed %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(90);var n=t(1);n.datepickerLocale("da","da",{closeText:"Luk",prevText:"<Forrige",nextText:"Næste>",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("da",{buttonText:{month:"MÃ¥ned",week:"Uge",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"pÃ¥ dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"fÃ¥ sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"et Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(92);var n=t(1);n.datepickerLocale("de-at","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de-at",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de-at",{ months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(94);var n=t(1);n.datepickerLocale("de-ch","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de-ch",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(96);var n=t(1);n.datepickerLocale("de","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(98);var n=t(1);n.datepickerLocale("el","el",{closeText:"Κλείσιμο",prevText:"Προηγούμενος",nextText:"Επόμενος",currentText:"Σήμερα",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],weekHeader:"Εβδ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("el",{buttonText:{month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},allDayText:"Ολοήμερο",eventLimitText:"περισσότερα",noEventsMessage:"Δεν υπάρχουν γεγονότα για να εμφανιστεί"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,a){return e?"string"==typeof a&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,a,t){return e>11?t?"μμ":"ΜΜ":t?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],r=t&&t.hours();return a(n)&&(n=n.apply(t)),n.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(100);var n=t(1);n.datepickerLocale("en-au","en-AU",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-au")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(102),t(1).locale("en-ca")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(104);var n=t(1);n.datepickerLocale("en-gb","en-GB",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-gb")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(106),t(1).locale("en-ie")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(108);var n=t(1);n.datepickerLocale("en-nz","en-NZ",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-nz")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(110);var n=t(1);n.datepickerLocale("es-do","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es-do",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(112);var n=t(1);n.datepickerLocale("es-us","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es-us",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(114);var n=t(1);n.datepickerLocale("es","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(116);var n=t(1);n.datepickerLocale("et","et",{closeText:"Sulge",prevText:"Eelnev",nextText:"Järgnev",currentText:"Täna",monthNames:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],monthNamesShort:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],dayNames:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"],dayNamesShort:["Pühap","Esmasp","Teisip","Kolmap","Neljap","Reede","Laup"],dayNamesMin:["P","E","T","K","N","R","L"],weekHeader:"näd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("et",{buttonText:{month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},allDayText:"Kogu päev",eventLimitText:function(e){return"+ veel "+e},noEventsMessage:"Kuvamiseks puuduvad sündmused"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return a?r[t][2]?r[t][2]:r[t][1]:n?r[t][0]:r[t][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(118);var n=t(1);n.datepickerLocale("eu","eu",{closeText:"Egina",prevText:"<Aur",nextText:"Hur>",currentText:"Gaur",monthNames:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"],monthNamesShort:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],dayNames:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],dayNamesShort:["ig.","al.","ar.","az.","og.","ol.","lr."],dayNamesMin:["ig","al","ar","az","og","ol","lr"],weekHeader:"As",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("eu",{buttonText:{month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},allDayHtml:"Egun
    osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(120);var n=t(1);n.datepickerLocale("fa","fa",{closeText:"بستن",prevText:"<قبلی",nextText:"بعدی>",currentText:"امروز",monthNames:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ÛŒ","د","س","Ú†","Ù¾","ج","Ø´"],dayNamesMin:["ÛŒ","د","س","Ú†","Ù¾","ج","Ø´"],weekHeader:"هف",dateFormat:"yy/mm/dd",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fa",{buttonText:{month:"ماه",week:"هفته",day:"روز",list:"برنامه"},allDayText:"تمام روز",eventLimitText:function(e){return"بیش از "+e},noEventsMessage:"هیچ رویدادی به نمایش"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"Û±",2:"Û²",3:"Û³",4:"Û´",5:"Ûµ",6:"Û¶",7:"Û·",8:"Û¸",9:"Û¹",0:"Û°"},t={"Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","Û°":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ÛŒ_د_س_Ú†_Ù¾_ج_Ø´".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,a,t){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[Û°-Û¹]/g,function(e){return t[e]}).replace(/ØŒ/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"ØŒ")},dayOfMonthOrdinalParse:/\d{1,2}Ù…/,ordinal:"%dÙ…",week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(122);var n=t(1);n.datepickerLocale("fi","fi",{closeText:"Sulje",prevText:"«Edellinen",nextText:"Seuraava»",currentText:"Tänään",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],weekHeader:"Vk",dateFormat:"d.m.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fi",{buttonText:{month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},allDayText:"Koko päivä",eventLimitText:"lisää",noEventsMessage:"Ei näytettäviä tapahtumia"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,n,r){var s="";switch(n){ case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=t(e,r)+" "+s}function t(e,a){return e<10?a?r[e]:n[e]:e}var n="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(124);var n=t(1);n.datepickerLocale("fr-ca","fr-CA",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr-ca",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(126);var n=t(1);n.datepickerLocale("fr-ch","fr-CH",{closeText:"Fermer",prevText:"<Préc",nextText:"Suiv>",currentText:"Courant",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sm",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr-ch",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(128);var n=t(1);n.datepickerLocale("fr","fr",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,a){switch(a){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(130);var n=t(1);n.datepickerLocale("gl","gl",{closeText:"Pechar",prevText:"<Ant",nextText:"Seg>",currentText:"Hoxe",monthNames:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],monthNamesShort:["Xan","Feb","Mar","Abr","Mai","Xuñ","Xul","Ago","Set","Out","Nov","Dec"],dayNames:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mér","Xov","Ven","Sáb"],dayNamesMin:["Do","Lu","Ma","Mé","Xo","Ve","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("gl",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Axenda"},allDayHtml:"Todo
    o día",eventLimitText:"máis",noEventsMessage:"Non hai eventos para amosar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(132);var n=t(1);n.datepickerLocale("he","he",{closeText:"סגור",prevText:"<הקודם",nextText:"הבא>",currentText:"היום",monthNames:["×™× ×•××¨","פברואר","מרץ","אפריל","מאי","×™×•× ×™","יולי","אוגוסט","ספטמבר","אוקטובר","× ×•×‘×ž×‘×¨","דצמבר"],monthNamesShort:["×™× ×•","פבר","מרץ","אפר","מאי","×™×•× ×™","יולי","אוג","ספט","אוק","× ×•×‘","דצמ"],dayNames:["ראשון","×©× ×™","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","×’'","ד'","×”'","ו'","שבת"],dayNamesMin:["א'","ב'","×’'","ד'","×”'","ו'","שבת"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("he",{buttonText:{month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",eventLimitText:"אחר",noEventsMessage:"אין אירועים להצגה",weekNumberTitle:"שבוע"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("he",{months:"×™× ×•××¨_פברואר_מרץ_אפריל_מאי_×™×•× ×™_יולי_אוגוסט_ספטמבר_אוקטובר_× ×•×‘×ž×‘×¨_דצמבר".split("_"),monthsShort:"×™× ×•×³_פבר׳_מרץ_אפר׳_מאי_×™×•× ×™_יולי_אוג׳_ספט׳_אוק׳_× ×•×‘×³_דצמ׳".split("_"),weekdays:"ראשון_×©× ×™_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_×’_ד_×”_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"×œ×¤× ×™ %s",s:"מספר ×©× ×™×•×ª",ss:"%d ×©× ×™×•×ª",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"×©× ×”",yy:function(e){return 2===e?"×©× ×ª×™×™×":e%10==0&&10!==e?e+" ×©× ×”":e+" ×©× ×™×"}},meridiemParse:/אחה"צ|×œ×¤× ×”"צ|אחרי הצהריים|×œ×¤× ×™ הצהריים|×œ×¤× ×•×ª בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,a,t){return e<5?"×œ×¤× ×•×ª בוקר":e<10?"בבוקר":e<12?t?'×œ×¤× ×”"צ':"×œ×¤× ×™ הצהריים":e<18?t?'אחה"צ':"אחרי הצהריים":"בערב"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(134);var n=t(1);n.datepickerLocale("hi","hi",{closeText:"बंद",prevText:"पिछला",nextText:"अगला",currentText:"आज",monthNames:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"],monthNamesShort:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],dayNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],dayNamesShort:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayNamesMin:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],weekHeader:"हफ्ता",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("hi",{buttonText:{month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},allDayText:"सभी दिन",eventLimitText:function(e){return"+अधिक "+e},noEventsMessage:"कोई घटनाओं को प्रदर्शित करने के लिए"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},t={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return t[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात"===a?e<4?e:e+12:"सुबह"===a?e:"दोपहर"===a?e>=10?e:e+12:"शाम"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(136);var n=t(1);n.datepickerLocale("hr","hr",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","ÄŒetvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","ÄŒet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","ÄŒe","Pe","Su"],weekHeader:"Tje",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("hr",{buttonText:{prev:"PrijaÅ¡nji",next:"Sljedeći",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},allDayText:"Cijeli dan",eventLimitText:function(e){return"+ joÅ¡ "+e},noEventsMessage:"Nema dogaÄ‘aja za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n=e+" ";switch(t){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[proÅ¡lu] dddd [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(138);var n=t(1);n.datepickerLocale("hu","hu",{closeText:"bezár",prevText:"vissza",nextText:"elÅ‘re",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","HétfÅ‘","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),n.locale("hu",{buttonText:{month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthetÅ‘ események"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r=e;switch(t){case"s":return n||a?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||a)?" másodperc":" másodperce";case"m":return"egy"+(n||a?" perc":" perce");case"mm":return r+(n||a?" perc":" perce");case"h":return"egy"+(n||a?" óra":" órája");case"hh":return r+(n||a?" óra":" órája");case"d":return"egy"+(n||a?" nap":" napja");case"dd":return r+(n||a?" nap":" napja");case"M":return"egy"+(n||a?" hónap":" hónapja");case"MM":return r+(n||a?" hónap":" hónapja");case"y":return"egy"+(n||a?" év":" éve");case"yy":return r+(n||a?" év":" éve")}return""}function t(e){return(e?"":"[múlt] ")+"["+n[this.day()]+"] LT[-kor]"}var n="vasárnap hétfÅ‘n kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfÅ‘_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,a,t){return e<12?!0===t?"de":"DE":!0===t?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(140);var n=t(1);n.datepickerLocale("id","id",{closeText:"Tutup",prevText:"<mundur",nextText:"maju>",currentText:"hari ini",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("id",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayHtml:"Sehari
    penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"siang"===a?e>=11?e:e+12:"sore"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(142);var n=t(1);n.datepickerLocale("is","is",{closeText:"Loka",prevText:"< Fyrri",nextText:"Næsti >",currentText:"Í dag",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],weekHeader:"Vika",dateFormat:"dd.mm.yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("is",{buttonText:{month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},allDayHtml:"Allan
    daginn",eventLimitText:"meira",noEventsMessage:"Engir viðburðir til að sýna"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e%100==11||e%10!=1}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return a(e)?s+(t||r?"sekúndur":"sekúndum"):s+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return a(e)?s+(t||r?"mínútur":"mínútum"):t?s+"mínúta":s+"mínútu";case"hh":return a(e)?s+(t||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return a(e)?t?s+"dagar":s+(r?"daga":"dögum"):t?s+"dagur":s+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return a(e)?t?s+"mánuðir":s+(r?"mánuði":"mánuðum"):t?s+"mánuður":s+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return a(e)?s+(t||r?"ár":"árum"):s+(t||r?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,ss:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(144);var n=t(1);n.datepickerLocale("it","it",{closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("it",{buttonText:{month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},allDayHtml:"Tutto il
    giorno",eventLimitText:function(e){return"+altri "+e},noEventsMessage:"Non ci sono eventi da visualizzare"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(146);var n=t(1);n.datepickerLocale("ja","ja",{closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["æ—¥","月","火","æ°´","木","金","土"],dayNamesMin:["æ—¥","月","火","æ°´","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"å¹´"}),n.locale("ja",{buttonText:{month:"月",week:"週",day:"æ—¥",list:"予定リスト"},allDayText:"終日",eventLimitText:function(e){return"ä»– "+e+" ä»¶"},noEventsMessage:"イベントが表示されないように"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"æ—¥_月_火_æ°´_木_金_土".split("_"),weekdaysMin:"æ—¥_月_火_æ°´_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´M月Dæ—¥",LLL:"YYYYå¹´M月Dæ—¥ HH:mm",LLLL:"YYYYå¹´M月Dæ—¥ HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYYå¹´M月Dæ—¥",lll:"YYYYå¹´M月Dæ—¥ HH:mm",llll:"YYYYå¹´M月Dæ—¥ HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,a,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ—¥/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"æ—¥";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"æ•°ç§’",ss:"%dç§’",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1æ—¥",dd:"%dæ—¥",M:"1ヶ月",MM:"%dヶ月",y:"1å¹´",yy:"%då¹´"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(148);var n=t(1);n.datepickerLocale("ka","ka",{closeText:"დახურვა",prevText:"წინა",nextText:"შემდეგი",currentText:"დღეს",monthNames:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],monthNamesShort:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],dayNames:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"],dayNamesShort:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],dayNamesMin:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],weekHeader:"კვ",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ka",{buttonText:{month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},allDayText:"მთელი დღე",eventLimitText:function(e){return"+ კიდევ "+e},noEventsMessage:"ღონისძიებები არარის"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(150);var n=t(1);n.datepickerLocale("kk","kk",{closeText:"Жабу",prevText:"<Алдыңғы",nextText:"Келесі>",currentText:"Бүгін",monthNames:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"], monthNamesShort:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],dayNames:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],dayNamesShort:["жкс","дсн","ссн","срс","бсн","жма","снб"],dayNamesMin:["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],weekHeader:"Не",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("kk",{buttonText:{month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},allDayText:"Күні бойы",eventLimitText:function(e){return"+ тағы "+e},noEventsMessage:"Көрсету үшін оқиғалар жоқ"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var t=e%10,n=e>=100?100:null;return e+(a[e]||a[t]||a[n])},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(152);var n=t(1);n.datepickerLocale("ko","ko",{closeText:"닫기",prevText:"ì´ì „ë‹¬",nextText:"다음달",currentText:"오늘",monthNames:["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],monthNamesShort:["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","í† ìš”ì¼"],dayNamesShort:["일","ì›”","í™”","수","목","금","í† "],dayNamesMin:["일","ì›”","í™”","수","목","금","í† "],weekHeader:"주",dateFormat:"yy. m. d.",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"ë…„"}),n.locale("ko",{buttonText:{month:"ì›”",week:"주",day:"일",list:"ì¼ì •ëª©ë¡"},allDayText:"종일",eventLimitText:"ê°œ",noEventsMessage:"ì¼ì •ì´ 없습니다"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ko",{months:"1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"),monthsShort:"1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_í† ìš”ì¼".split("_"),weekdaysShort:"일_ì›”_í™”_수_목_금_í† ".split("_"),weekdaysMin:"일_ì›”_í™”_수_목_금_í† ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYYë…„ MMMM D일",LLL:"YYYYë…„ MMMM D일 A h:mm",LLLL:"YYYYë…„ MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYYë…„ MMMM D일",lll:"YYYYë…„ MMMM D일 A h:mm",llll:"YYYYë…„ MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"ì–´ì œ LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s ì „",s:"몇 ì´ˆ",ss:"%dì´ˆ",m:"1ë¶„",mm:"%dë¶„",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 ë…„",yy:"%dë…„"},dayOfMonthOrdinalParse:/\d{1,2}(일|ì›”|주)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"일";case"M":return e+"ì›”";case"w":case"W":return e+"주";default:return e}},meridiemParse:/ì˜¤ì „|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,a,t){return e<12?"ì˜¤ì „":"오후"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(154);var n=t(1);n.datepickerLocale("lb","lb",{closeText:"Fäerdeg",prevText:"Zréck",nextText:"Weider",currentText:"Haut",monthNames:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],dayNamesShort:["Son","Méi","Dën","Mët","Don","Fre","Sam"],dayNamesMin:["So","Mé","Dë","Më","Do","Fr","Sa"],weekHeader:"W",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("lb",{buttonText:{month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},allDayText:"Ganzen Dag",eventLimitText:"méi",noEventsMessage:"Nee Evenementer ze affichéieren"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?r[t][0]:r[t][1]}function t(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function n(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var a=e%10,t=e/10;return r(0===a?t:a)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return e/=1e3,r(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:t,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d Méint",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(156);var n=t(1);n.datepickerLocale("lt","lt",{closeText:"Uždaryti",prevText:"<Atgal",nextText:"Pirmyn>",currentText:"Å iandien",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","RugpjÅ«tis","RugsÄ—jis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","Å¡eÅ¡tadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","Å¡eÅ¡"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Å e"],weekHeader:"SAV",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),n.locale("lt",{buttonText:{month:"MÄ—nuo",week:"SavaitÄ—",day:"Diena",list:"DarbotvarkÄ—"},allDayText:"VisÄ… dienÄ…",eventLimitText:"daugiau",noEventsMessage:"NÄ—ra įvykių rodyti"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){return a?"kelios sekundÄ—s":n?"kelių sekundžių":"kelias sekundes"}function t(e,a,t,n){return a?r(t)[0]:n?r(t)[1]:r(t)[2]}function n(e){return e%10==0||e>10&&e<20}function r(e){return d[e].split("_")}function s(e,a,s,d){var i=e+" ";return 1===e?i+t(e,a,s[0],d):a?i+(n(e)?r(s)[1]:r(s)[0]):d?i+r(s)[1]:i+(n(e)?r(s)[1]:r(s)[2])}var d={ss:"sekundÄ—_sekundžių_sekundes",m:"minutÄ—_minutÄ—s_minutÄ™",mm:"minutÄ—s_minučių_minutes",h:"valanda_valandos_valandÄ…",hh:"valandos_valandų_valandas",d:"diena_dienos_dienÄ…",dd:"dienos_dienų_dienas",M:"mÄ—nuo_mÄ—nesio_mÄ—nesį",MM:"mÄ—nesiai_mÄ—nesių_mÄ—nesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsÄ—jo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjÅ«tis_rugsÄ—jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_Å¡eÅ¡tadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_Å¡eÅ¡tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Å eÅ¡".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Å ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Å iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[PraÄ—jusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieÅ¡ %s",s:a,ss:s,m:t,mm:s,h:t,hh:s,d:t,dd:s,M:t,MM:s,y:t,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(158);var n=t(1);n.datepickerLocale("lv","lv",{closeText:"AizvÄ“rt",prevText:"Iepr.",nextText:"Nāk.",currentText:"Å odien",monthNames:["Janvāris","Februāris","Marts","AprÄ«lis","Maijs","JÅ«nijs","JÅ«lijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","JÅ«n","JÅ«l","Aug","Sep","Okt","Nov","Dec"],dayNames:["svÄ“tdiena","pirmdiena","otrdiena","treÅ¡diena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],weekHeader:"Ned.",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("lv",{buttonText:{month:"MÄ“nesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtÄ«ba"},allDayText:"Visu dienu",eventLimitText:function(e){return"+vÄ“l "+e},noEventsMessage:"Nav notikumu"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){return t?a%10==1&&a%100!=11?e[2]:e[3]:a%10==1&&a%100!=11?e[0]:e[1]}function t(e,t,n){return e+" "+a(s[n],e,t)}function n(e,t,n){return a(s[n],e,t)}function r(e,a){return a?"dažas sekundes":"dažām sekundÄ“m"}var s={ss:"sekundes_sekundÄ“m_sekunde_sekundes".split("_"),m:"minÅ«tes_minÅ«tÄ“m_minÅ«te_minÅ«tes".split("_"),mm:"minÅ«tes_minÅ«tÄ“m_minÅ«te_minÅ«tes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mÄ“neÅ¡a_mÄ“neÅ¡iem_mÄ“nesis_mÄ“neÅ¡i".split("_"),MM:"mÄ“neÅ¡a_mÄ“neÅ¡iem_mÄ“nesis_mÄ“neÅ¡i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprÄ«lis_maijs_jÅ«nijs_jÅ«lijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jÅ«n_jÅ«l_aug_sep_okt_nov_dec".split("_"),weekdays:"svÄ“tdiena_pirmdiena_otrdiena_treÅ¡diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Å odien pulksten] LT",nextDay:"[RÄ«t pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pÄ“c %s",past:"pirms %s",s:r,ss:t,m:n,mm:t,h:n,hh:t,d:n,dd:t,M:n,MM:t,y:n,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(160);var n=t(1);n.datepickerLocale("mk","mk",{closeText:"Затвори",prevText:"<",nextText:">",currentText:"Денес",monthNames:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],dayNames:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"],dayNamesShort:["Нед","Пон","Вто","Сре","Чет","Пет","Саб"],dayNamesMin:["Не","По","Ð’Ñ‚","Ср","Че","Пе","Са"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("mk",{buttonText:{month:"Месец",week:"Недела",day:"Ден",list:"График"},allDayText:"Цел ден",eventLimitText:function(e){return"+повеќе "+e},noEventsMessage:"Нема настани за прикажување"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(162);var n=t(1);n.datepickerLocale("ms-my","ms",{closeText:"Tutup",prevText:"<Sebelum",nextText:"Selepas>",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ms-my",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(164);var n=t(1);n.datepickerLocale("ms","ms",{closeText:"Tutup",prevText:"<Sebelum",nextText:"Selepas>",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ms",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(166);var n=t(1);n.datepickerLocale("nb","nb",{closeText:"Lukk",prevText:"«Forrige",nextText:"Neste»",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nb",{buttonText:{month:"MÃ¥ned",week:"Uke",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser Ã¥ vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(168);var n=t(1);n.datepickerLocale("nl-be","nl-BE",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nl-be",{buttonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),t="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(170);var n=t(1);n.datepickerLocale("nl","nl",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nl",{buttonText:{year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),t="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(172);var n=t(1);n.datepickerLocale("nn","nn",{closeText:"Lukk",prevText:"«Førre",nextText:"Neste»",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["sun","mÃ¥n","tys","ons","tor","fre","lau"],dayNames:["sundag","mÃ¥ndag","tysdag","onsdag","torsdag","fredag","laurdag"],dayNamesMin:["su","mÃ¥","ty","on","to","fr","la"],weekHeader:"Veke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nn",{buttonText:{month:"MÃ¥nad",week:"Veke",day:"Dag",list:"Agenda"},allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser Ã¥ vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mÃ¥n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_mÃ¥_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I gÃ¥r klokka] LT",lastWeek:"[FøregÃ¥ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein mÃ¥nad",MM:"%d mÃ¥nader",y:"eit Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(174);var n=t(1);n.datepickerLocale("pl","pl",{closeText:"Zamknij",prevText:"<Poprzedni",nextText:"NastÄ™pny>",currentText:"DziÅ›",monthNames:["StyczeÅ„","Luty","Marzec","KwiecieÅ„","Maj","Czerwiec","Lipiec","SierpieÅ„","WrzesieÅ„","Październik","Listopad","GrudzieÅ„"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","PoniedziaÅ‚ek","Wtorek","Åšroda","Czwartek","PiÄ…tek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Åšr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Åšr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pl",{buttonText:{month:"MiesiÄ…c",week:"TydzieÅ„",day:"DzieÅ„",list:"Plan dnia"},allDayText:"CaÅ‚y dzieÅ„",eventLimitText:"wiÄ™cej",noEventsMessage:"Brak wydarzeÅ„ do wyÅ›wietlenia"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutÄ™";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinÄ™";case"hh":return r+(a(e)?"godziny":"godzin");case"MM":return r+(a(e)?"miesiÄ…ce":"miesiÄ™cy");case"yy":return r+(a(e)?"lata":"lat")}}var n="styczeÅ„_luty_marzec_kwiecieÅ„_maj_czerwiec_lipiec_sierpieÅ„_wrzesieÅ„_październik_listopad_grudzieÅ„".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅ›nia_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,a){return e?""===a?"("+r[e.month()]+"|"+n[e.month()]+")":/D MMMM/.test(a)?r[e.month()]:n[e.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziaÅ‚ek_wtorek_Å›roda_czwartek_piÄ…tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_Å›r_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Åšr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DziÅ› o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielÄ™ o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W Å›rodÄ™ o] LT";case 6:return"[W sobotÄ™ o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielÄ™ o] LT";case 3:return"[W zeszłą Å›rodÄ™ o] LT";case 6:return"[W zeszłą sobotÄ™ o] LT";default:return"[W zeszÅ‚y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:t,m:t,mm:t,h:t,hh:t,d:"1 dzieÅ„",dd:"%d dni",M:"miesiÄ…c",MM:t,y:"rok",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(176);var n=t(1);n.datepickerLocale("pt-br","pt-BR",{closeText:"Fechar",prevText:"<Anterior",nextText:"Próximo>",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pt-br",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Compromissos"},allDayText:"dia inteiro",eventLimitText:function(e){return"mais +"+e},noEventsMessage:"Não há eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [à s] HH:mm", LLLL:"dddd, D [de] MMMM [de] YYYY [à s] HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [à s] LT":"[Última] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(178);var n=t(1);n.datepickerLocale("pt","pt",{closeText:"Fechar",prevText:"Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pt",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"Não há eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [à s] LT":"[Última] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(180);var n=t(1);n.datepickerLocale("ro","ro",{closeText:"ÃŽnchide",prevText:"« Luna precedentă",nextText:"Luna următoare »",currentText:"Azi",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Duminică","Luni","MarÅ£i","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],weekHeader:"Săpt",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ro",{buttonText:{prev:"precedentă",next:"următoare",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},allDayText:"Toată ziua",eventLimitText:function(e){return"+alte "+e},noEventsMessage:"Nu există evenimente de afiÈ™at"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+n[t]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marÈ›i_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:a,m:"un minut",mm:a,h:"o oră",hh:a,d:"o zi",dd:a,M:"o lună",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(182);var n=t(1);n.datepickerLocale("ru","ru",{closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Ð’Ñ‚","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ru",{buttonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e},noEventsMessage:"Нет событий для отображения"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function t(e,t,n){var r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?t?"минута":"минуту":e+" "+a(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[Ñ‚.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[Ð’] dddd [в] LT";switch(this.day()){case 0:return"[Ð’ следующее] dddd [в] LT";case 1:case 2:case 4:return"[Ð’ следующий] dddd [в] LT";case 3:case 5:case 6:return"[Ð’ следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[Ð’] dddd [в] LT";switch(this.day()){case 0:return"[Ð’ прошлое] dddd [в] LT";case 1:case 2:case 4:return"[Ð’ прошлый] dddd [в] LT";case 3:case 5:case 6:return"[Ð’ прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(184);var n=t(1);n.datepickerLocale("sk","sk",{closeText:"ZavrieÅ¥",prevText:"<Predchádzajúci",nextText:"Nasledujúci>",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","Å¡tvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Å tv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Å t","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sk",{buttonText:{month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},allDayText:"Celý deň",eventLimitText:function(e){return"+ďalÅ¡ie: "+e},noEventsMessage:"Žiadne akcie na zobrazenie"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e>1&&e<5}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?s+(a(e)?"sekundy":"sekúnd"):s+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?s+(a(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(a(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?s+(a(e)?"dni":"dní"):s+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(a(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(a(e)?"roky":"rokov"):s+"rokmi"}}var n="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:n,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_Å¡t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_Å¡t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo Å¡tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(186);var n=t(1);n.datepickerLocale("sl","sl",{closeText:"Zapri",prevText:"<PrejÅ¡nji",nextText:"Naslednji>",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljek","Torek","Sreda","ÄŒetrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","ÄŒet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","ÄŒe","Pe","So"],weekHeader:"Teden",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sl",{buttonText:{month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},allDayText:"Ves dan",eventLimitText:"več",noEventsMessage:"Ni dogodkov za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r=e+" ";switch(t){case"s":return a||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?a?"sekundo":"sekundi":2===e?a||n?"sekundi":"sekundah":e<5?a||n?"sekunde":"sekundah":"sekund";case"m":return a?"ena minuta":"eno minuto";case"mm":return r+=1===e?a?"minuta":"minuto":2===e?a||n?"minuti":"minutama":e<5?a||n?"minute":"minutami":a||n?"minut":"minutami";case"h":return a?"ena ura":"eno uro";case"hh":return r+=1===e?a?"ura":"uro":2===e?a||n?"uri":"urama":e<5?a||n?"ure":"urami":a||n?"ur":"urami";case"d":return a||n?"en dan":"enim dnem";case"dd":return r+=1===e?a||n?"dan":"dnem":2===e?a||n?"dni":"dnevoma":a||n?"dni":"dnevi";case"M":return a||n?"en mesec":"enim mesecem";case"MM":return r+=1===e?a||n?"mesec":"mesecem":2===e?a||n?"meseca":"mesecema":e<5?a||n?"mesece":"meseci":a||n?"mesecev":"meseci";case"y":return a||n?"eno leto":"enim letom";case"yy":return r+=1===e?a||n?"leto":"letom":2===e?a||n?"leti":"letoma":e<5?a||n?"leta":"leti":a||n?"let":"leti"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejÅ¡njo] [nedeljo] [ob] LT";case 3:return"[prejÅ¡njo] [sredo] [ob] LT";case 6:return"[prejÅ¡njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejÅ¡nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(188);var n=t(1);n.datepickerLocale("sq","sq",{closeText:"mbylle",prevText:"<mbrapa",nextText:"Përpara>",currentText:"sot",monthNames:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthNamesShort:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],dayNames:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtune"],dayNamesShort:["Di","Hë","Ma","Më","En","Pr","Sh"],dayNamesMin:["Di","Hë","Ma","Më","En","Pr","Sh"],weekHeader:"Ja",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sq",{buttonText:{month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},allDayHtml:"Gjithë
    ditën",eventLimitText:function(e){return"+më tepër "+e},noEventsMessage:"Nuk ka evente për të shfaqur"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,a,t){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(190);var n=t(1);n.datepickerLocale("sr-cyrl","sr",{closeText:"Затвори",prevText:"<",nextText:">",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sr-cyrl",{buttonText:{prev:"Претходна",next:"следећи",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},allDayText:"Цео дан",eventLimitText:function(e){return"+ још "+e},noEventsMessage:"Нема догађаја за приказ"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"дан",dd:a.translate,M:"месец",MM:a.translate,y:"годину",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(192);var n=t(1);n.datepickerLocale("sr","sr-SR",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljak","Utorak","Sreda","ÄŒetvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sre","ÄŒet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","ÄŒe","Pe","Su"],weekHeader:"Sed",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sr",{buttonText:{prev:"Prethodna",next:"Sledeći",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},allDayText:"Cеo dan",eventLimitText:function(e){return"+ joÅ¡ "+e},noEventsMessage:"Nеma dogaÄ‘aja za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[proÅ¡le] [nedelje] [u] LT","[proÅ¡log] [ponedeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srede] [u] LT","[proÅ¡log] [četvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(194);var n=t(1);n.datepickerLocale("sv","sv",{closeText:"Stäng",prevText:"«Förra",nextText:"Nästa»",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","MÃ¥n","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","MÃ¥ndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","MÃ¥","Ti","On","To","Fr","Lö"],weekHeader:"v. ",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sv",{buttonText:{month:"MÃ¥nad",week:"Vecka",day:"Dag",list:"Program"},allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mÃ¥n_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_mÃ¥_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[IgÃ¥r] LT",nextWeek:"[PÃ¥] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"nÃ¥gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en mÃ¥nad",MM:"%d mÃ¥nader",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"e":1===a?"a":2===a?"a":"e")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(196);var n=t(1);n.datepickerLocale("th","th",{closeText:"ปิด",prevText:"« à¸¢à¹‰à¸­à¸™",nextText:"ถัดไป »",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("th",{buttonText:{month:"เดือน",week:"สัปดาห์",day:"วัน",list:"แผนงาน"},allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม",noEventsMessage:"ไม่มีกิจกรรมที่จะแสดง"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,a,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(198);var n=t(1);n.datepickerLocale("tr","tr",{closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Åžubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄŸustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Åžub","Mar","Nis","May","Haz","Tem","AÄŸu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","ÇarÅŸamba","PerÅŸembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("tr",{buttonText:{next:"ileri",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},allDayText:"Tüm gün",eventLimitText:"daha fazla",noEventsMessage:"Herhangi bir etkinlik görüntülemek için"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Åžubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄŸustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Åžub_Mar_Nis_May_Haz_Tem_AÄŸu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_ÇarÅŸamba_PerÅŸembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,s=e>=100?100:null;return e+(a[n]||a[r]||a[s])}},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(200);var n=t(1);n.datepickerLocale("uk","uk",{closeText:"Закрити",prevText:"<",nextText:">",currentText:"Сьогодні",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],dayNames:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Ð’Ñ‚","Ср","Чт","Пт","Сб"],weekHeader:"Тиж",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("uk",{buttonText:{month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},allDayText:"Увесь день",eventLimitText:function(e){return"+ще "+e+"..."},noEventsMessage:"Немає подій для відображення"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function t(e,t,n){var r={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+a(r[n],+e)}function n(e,a){var t={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?t[/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative"][e.day()]:t.nominative}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Ñ€.",LLL:"D MMMM YYYY Ñ€., HH:mm",LLLL:"dddd, D MMMM YYYY Ñ€., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e+"-й" ;case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(202);var n=t(1);n.datepickerLocale("vi","vi",{closeText:"Đóng",prevText:"<Trước",nextText:"Tiếp>",currentText:"Hôm nay",monthNames:["Tháng Má»™t","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Má»™t","Tháng Mười Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayNames:["Chá»§ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],weekHeader:"Tu",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("vi",{buttonText:{month:"Tháng",week:"Tuần",day:"Ngà y",list:"Lịch biểu"},allDayText:"Cả ngà y",eventLimitText:function(e){return"+ thêm "+e},noEventsMessage:"Không có sá»± kiện để hiển thị"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chá»§ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"sa":"SA":t?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngà y mai lúc] LT",nextWeek:"dddd [tuần tá»›i lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tá»›i",past:"%s trước",s:"và i giây",ss:"%d giây",m:"má»™t phút",mm:"%d phút",h:"má»™t giờ",hh:"%d giờ",d:"má»™t ngà y",dd:"%d ngà y",M:"má»™t tháng",MM:"%d tháng",y:"má»™t năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(204);var n=t(1);n.datepickerLocale("zh-cn","zh-CN",{closeText:"关闭",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["æ—¥","一","二","三","å››","五","å…­"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"å¹´"}),n.locale("zh-cn",{buttonText:{month:"月",week:"周",day:"æ—¥",list:"日程"},allDayText:"全天",eventLimitText:function(e){return"另外 "+e+" 个"},noEventsMessage:"没有事件显示"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"æ—¥_一_二_三_å››_五_å…­".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´M月Dæ—¥",LLL:"YYYYå¹´M月Dæ—¥Ah点mm分",LLLL:"YYYYå¹´M月Dæ—¥ddddAh点mm分",l:"YYYY/M/D",ll:"YYYYå¹´M月Dæ—¥",lll:"YYYYå¹´M月Dæ—¥ HH:mm",llll:"YYYYå¹´M月Dæ—¥dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"下午"===a||"晚上"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var n=100*e+a;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ—¥|月|周)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"æ—¥";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"å‡ ç§’",ss:"%d ç§’",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 å¹´",yy:"%d å¹´"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(206);var n=t(1);n.datepickerLocale("zh-tw","zh-TW",{closeText:"關閉",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["æ—¥","一","二","三","å››","五","å…­"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"å¹´"}),n.locale("zh-tw",{buttonText:{month:"月",week:"週",day:"天",list:"活動列表"},allDayText:"整天",eventLimitText:"顯示更多",noEventsMessage:"没有任何活動"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"æ—¥_一_二_三_å››_五_å…­".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´M月Dæ—¥",LLL:"YYYYå¹´M月Dæ—¥ HH:mm",LLLL:"YYYYå¹´M月Dæ—¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´M月Dæ—¥",lll:"YYYYå¹´M月Dæ—¥ HH:mm",llll:"YYYYå¹´M月Dæ—¥dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var n=100*e+a;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ—¥|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"æ—¥";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%så…§",past:"%s前",s:"幾秒",ss:"%d ç§’",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 å¹´",yy:"%d å¹´"}})})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,t){t(65),t(67),t(69),t(71),t(73),t(75),t(77),t(79),t(81),t(83),t(85),t(87),t(89),t(91),t(93),t(95),t(97),t(99),t(101),t(103),t(105),t(107),t(109),t(111),t(113),t(115),t(117),t(119),t(121),t(123),t(125),t(127),t(129),t(131),t(133),t(135),t(137),t(139),t(141),t(143),t(145),t(147),t(149),t(151),t(153),t(155),t(157),t(159),t(161),t(163),t(165),t(167),t(169),t(171),t(173),t(175),t(177),t(179),t(181),t(183),t(185),t(187),t(189),t(191),t(193),t(195),t(197),t(199),t(201),t(203),t(205),e.exports=t(435)},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0});var n=t(0),r=t(1);n.locale("en"),r.locale("en"),window.jQuery.datepicker&&window.jQuery.datepicker.setDefaults(window.jQuery.datepicker.regional[""])}])}); ================================================ FILE: public/backend/vendors/js/extensions/locale-all.js ================================================ !function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],a):"object"==typeof exports?a(require("moment"),require("fullcalendar")):a(e.moment,e.FullCalendar)}("undefined"!=typeof self?self:this,function(e,a){return function(e){function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}var t={};return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},a.p="",a(a.s=438)}([function(a,t){a.exports=e},function(e,t){e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(72);var n=t(1);n.datepickerLocale("af","af",{closeText:"Selekteer",prevText:"Vorige",nextText:"Volgende",currentText:"Vandag",monthNames:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],dayNames:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],dayNamesShort:["Son","Maa","Din","Woe","Don","Vry","Sat"],dayNamesMin:["So","Ma","Di","Wo","Do","Vr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("af",{buttonText:{year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenisse nie"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"vm":"VM":t?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(74);var n=t(1);n.datepickerLocale("ar-dz","ar-DZ",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-dz",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(76);var n=t(1);n.datepickerLocale("ar-kw","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-kw",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(78);var n=t(1);n.datepickerLocale("ar-ly","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-ly",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(a,r,s,d){var i=t(a),o=n[e][t(a)];return 2===i&&(o=o[r?0:1]),o.replace(/%d/i,a)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(80);var n=t(1);n.datepickerLocale("ar-ma","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-ma",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(82);var n=t(1);n.datepickerLocale("ar-sa","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-sa",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},t={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return t[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(84);var n=t(1);n.datepickerLocale("ar-tn","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar-tn",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(86);var n=t(1);n.datepickerLocale("ar","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ar",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},t={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(a,t,s,d){var i=n(a),o=r[e][n(a)];return 2===i&&(o=o[t?0:1]),o.replace(/%d/i,a)}},d=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar",{months:d,monthsShort:d,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return t[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(88);var n=t(1);n.datepickerLocale("be","be",{closeText:"Зачыніць",prevText:"<Папярэд",nextText:"След>",currentText:"Сёння",monthNames:["Студзень","Люты","Сакавік","Красавік","Трав","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань"],monthNamesShort:["Студ","Лют","Сак","Крас","Трав","Чэрв","Ліп","Жнів","Вер","Каст","Ліст","Снеж"],dayNames:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"],dayNamesShort:["ндз","пнд","аўт","срд","чцв","птн","сбт"],dayNamesMin:["Нд","Пн","Ат","Ср","Чц","Пт","Сб"],weekHeader:"Ндз",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("be",{buttonText:{month:"Месяц",week:"Тыдзень",day:"Дзень",list:"Парадак дня"},allDayHtml:"Увесь
    дзень",eventLimitText:function(e){return"+ яшчэ "+e},noEventsMessage:"Няма падзей для адлюстравання"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function t(e,t,n){var r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+a(r[n],+e)}return e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(90);var n=t(1);n.datepickerLocale("bg","bg",{closeText:"затвори",prevText:"<назад",nextText:"напред>",nextBigText:">>",currentText:"днес",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("bg",{buttonText:{month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",eventLimitText:function(e){return"+още "+e},noEventsMessage:"Няма събития за показване"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(92);var n=t(1);n.datepickerLocale("bs","bs",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Juni","Juli","August","Septembar","Oktobar","Novmbar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Sed",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("bs",{buttonText:{prev:"Prošli",next:"Sljedeći",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},allDayText:"Cijeli dan",eventLimitText:function(e){return"+ još "+e},noEventsMessage:"Nema događaja za prikazivanje"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n=e+" ";switch(t){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(94);var n=t(1);n.datepickerLocale("ca","ca",{closeText:"Tanca",prevText:"Anterior",nextText:"Següent",currentText:"Avui",monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],monthNamesShort:["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des"],dayNames:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],dayNamesShort:["dg","dl","dt","dc","dj","dv","ds"],dayNamesMin:["dg","dl","dt","dc","dj","dv","ds"],weekHeader:"Set",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ca",{buttonText:{month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},allDayText:"Tot el dia",eventLimitText:"més",noEventsMessage:"No hi ha esdeveniments per mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,a){var t=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==a&&"W"!==a||(t="a"),e+t},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(96);var n=t(1);n.datepickerLocale("cs","cs",{closeText:"Zavřít",prevText:"<Dříve",nextText:"Později>",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],weekHeader:"Týd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("cs",{buttonText:{month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},allDayText:"Celý den",eventLimitText:function(e){return"+další: "+e},noEventsMessage:"Žádné akce k zobrazení"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?s+(a(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?s+(a(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(a(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?s+(a(e)?"dny":"dní"):s+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?s+(a(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?s+(a(e)?"roky":"let"):s+"lety"}}var n="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:n,monthsShort:r,monthsParse:function(e,a){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$|^"+a[t]+"$","i");return n}(n,r),shortMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(r),longMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(n),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(98);var n=t(1);n.datepickerLocale("da","da",{closeText:"Luk", prevText:"<Forrige",nextText:"Næste>",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("da",{buttonText:{month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(100);var n=t(1);n.datepickerLocale("de-at","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de-at",{buttonText:{year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(102);var n=t(1);n.datepickerLocale("de-ch","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de-ch",{buttonText:{year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(104);var n=t(1);n.datepickerLocale("de","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("de",{buttonText:{year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen",dayOfMonthFormat:"ddd DD.MM."})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?r[t][0]:r[t][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(106);var n=t(1);n.datepickerLocale("el","el",{closeText:"Κλείσιμο",prevText:"Προηγούμενος",nextText:"Επόμενος",currentText:"Σήμερα",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],weekHeader:"Εβδ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("el",{buttonText:{month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},allDayText:"Ολοήμερο",eventLimitText:"περισσότερα",noEventsMessage:"Δεν υπάρχουν γεγονότα για να εμφανιστεί"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,a){return e?"string"==typeof a&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,a,t){return e>11?t?"μμ":"ΜΜ":t?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],r=t&&t.hours();return a(n)&&(n=n.apply(t)),n.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(108);var n=t(1);n.datepickerLocale("en-au","en-AU",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-au")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(110),t(1).locale("en-ca")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(112);var n=t(1);n.datepickerLocale("en-gb","en-GB",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-gb")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(114),t(1).locale("en-ie")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(116);var n=t(1);n.datepickerLocale("en-nz","en-NZ",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("en-nz")},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(118);var n=t(1);n.datepickerLocale("es-do","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es-do",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(120);var n=t(1);n.datepickerLocale("es-us","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es-us",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(122);var n=t(1);n.datepickerLocale("es","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("es",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo
    el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(124);var n=t(1);n.datepickerLocale("et","et",{closeText:"Sulge",prevText:"Eelnev",nextText:"Järgnev",currentText:"Täna",monthNames:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],monthNamesShort:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],dayNames:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"],dayNamesShort:["Pühap","Esmasp","Teisip","Kolmap","Neljap","Reede","Laup"],dayNamesMin:["P","E","T","K","N","R","L"],weekHeader:"näd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("et",{buttonText:{month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},allDayText:"Kogu päev",eventLimitText:function(e){return"+ veel "+e},noEventsMessage:"Kuvamiseks puuduvad sündmused"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return a?r[t][2]?r[t][2]:r[t][1]:n?r[t][0]:r[t][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(126);var n=t(1);n.datepickerLocale("eu","eu",{closeText:"Egina",prevText:"<Aur",nextText:"Hur>",currentText:"Gaur",monthNames:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"],monthNamesShort:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],dayNames:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],dayNamesShort:["ig.","al.","ar.","az.","og.","ol.","lr."],dayNamesMin:["ig","al","ar","az","og","ol","lr"],weekHeader:"As",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("eu",{buttonText:{month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},allDayHtml:"Egun
    osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(128);var n=t(1);n.datepickerLocale("fa","fa",{closeText:"بستن",prevText:"<قبلی",nextText:"بعدی>",currentText:"امروز", monthNames:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ی","د","س","چ","پ","ج","ش"],dayNamesMin:["ی","د","س","چ","پ","ج","ش"],weekHeader:"هف",dateFormat:"yy/mm/dd",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fa",{buttonText:{month:"ماه",week:"هفته",day:"روز",list:"برنامه"},allDayText:"تمام روز",eventLimitText:function(e){return"بیش از "+e},noEventsMessage:"هیچ رویدادی به نمایش"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},t={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,a,t){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return t[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(130);var n=t(1);n.datepickerLocale("fi","fi",{closeText:"Sulje",prevText:"«Edellinen",nextText:"Seuraava»",currentText:"Tänään",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],weekHeader:"Vk",dateFormat:"d.m.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fi",{buttonText:{month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},allDayText:"Koko päivä",eventLimitText:"lisää",noEventsMessage:"Ei näytettäviä tapahtumia"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,n,r){var s="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=t(e,r)+" "+s}function t(e,a){return e<10?a?r[e]:n[e]:e}var n="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(132);var n=t(1);n.datepickerLocale("fr-ca","fr-CA",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr-ca",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(134);var n=t(1);n.datepickerLocale("fr-ch","fr-CH",{closeText:"Fermer",prevText:"<Préc",nextText:"Suiv>",currentText:"Courant",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sm",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr-ch",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(136);var n=t(1);n.datepickerLocale("fr","fr",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("fr",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la
    journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,a){switch(a){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(138);var n=t(1);n.datepickerLocale("gl","gl",{closeText:"Pechar",prevText:"<Ant",nextText:"Seg>",currentText:"Hoxe",monthNames:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],monthNamesShort:["Xan","Feb","Mar","Abr","Mai","Xuñ","Xul","Ago","Set","Out","Nov","Dec"],dayNames:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mér","Xov","Ven","Sáb"],dayNamesMin:["Do","Lu","Ma","Mé","Xo","Ve","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("gl",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Axenda"},allDayHtml:"Todo
    o día",eventLimitText:"máis",noEventsMessage:"Non hai eventos para amosar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(140);var n=t(1);n.datepickerLocale("he","he",{closeText:"סגור",prevText:"<הקודם",nextText:"הבא>",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["ינו","פבר","מרץ","אפר","מאי","יוני","יולי","אוג","ספט","אוק","נוב","דצמ"],dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),n.locale("he",{buttonText:{month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",eventLimitText:"אחר",noEventsMessage:"אין אירועים להצגה",weekNumberTitle:"שבוע"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,a,t){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?t?'לפנה"צ':"לפני הצהריים":e<18?t?'אחה"צ':"אחרי הצהריים":"בערב"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(142);var n=t(1);n.datepickerLocale("hi","hi",{closeText:"बंद",prevText:"पिछला",nextText:"अगला",currentText:"आज",monthNames:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"],monthNamesShort:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],dayNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],dayNamesShort:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayNamesMin:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],weekHeader:"हफ्ता",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("hi",{buttonText:{month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},allDayText:"सभी दिन",eventLimitText:function(e){return"+अधिक "+e},noEventsMessage:"कोई घटनाओं को प्रदर्शित करने के लिए"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},t={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return t[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return a[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात"===a?e<4?e:e+12:"सुबह"===a?e:"दोपहर"===a?e>=10?e:e+12:"शाम"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(144);var n=t(1);n.datepickerLocale("hr","hr",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Tje",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("hr",{buttonText:{prev:"Prijašnji",next:"Sljedeći",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},allDayText:"Cijeli dan",eventLimitText:function(e){return"+ još "+e},noEventsMessage:"Nema događaja za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n=e+" ";switch(t){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(146);var n=t(1);n.datepickerLocale("hu","hu",{closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),n.locale("hu",{buttonText:{month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthető esemény"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r=e;switch(t){case"s":return n||a?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||a)?" másodperc":" másodperce";case"m":return"egy"+(n||a?" perc":" perce");case"mm":return r+(n||a?" perc":" perce");case"h":return"egy"+(n||a?" óra":" órája");case"hh":return r+(n||a?" óra":" órája");case"d":return"egy"+(n||a?" nap":" napja");case"dd":return r+(n||a?" nap":" napja");case"M":return"egy"+(n||a?" hónap":" hónapja");case"MM":return r+(n||a?" hónap":" hónapja");case"y":return"egy"+(n||a?" év":" éve");case"yy":return r+(n||a?" év":" éve")}return""}function t(e){return(e?"":"[múlt] ")+"["+n[this.day()]+"] LT[-kor]"}var n="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,a,t){return e<12?!0===t?"de":"DE":!0===t?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(148);var n=t(1);n.datepickerLocale("id","id",{closeText:"Tutup",prevText:"<mundur",nextText:"maju>",currentText:"hari ini",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("id",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayHtml:"Sehari
    penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"siang"===a?e>=11?e:e+12:"sore"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(150);var n=t(1);n.datepickerLocale("is","is",{closeText:"Loka",prevText:"< Fyrri",nextText:"Næsti >",currentText:"Í dag",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],weekHeader:"Vika",dateFormat:"dd.mm.yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("is",{buttonText:{month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},allDayHtml:"Allan
    daginn",eventLimitText:"meira",noEventsMessage:"Engir viðburðir til að sýna"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e%100==11||e%10!=1}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return a(e)?s+(t||r?"sekúndur":"sekúndum"):s+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return a(e)?s+(t||r?"mínútur":"mínútum"):t?s+"mínúta":s+"mínútu";case"hh":return a(e)?s+(t||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return a(e)?t?s+"dagar":s+(r?"daga":"dögum"):t?s+"dagur":s+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return a(e)?t?s+"mánuðir":s+(r?"mánuði":"mánuðum"):t?s+"mánuður":s+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return a(e)?s+(t||r?"ár":"árum"):s+(t||r?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,ss:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(152);var n=t(1);n.datepickerLocale("it","it",{closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("it",{buttonText:{month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},allDayHtml:"Tutto il
    giorno",eventLimitText:function(e){return"+altri "+e},noEventsMessage:"Non ci sono eventi da visualizzare"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(154);var n=t(1);n.datepickerLocale("ja","ja",{closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),n.locale("ja",{buttonText:{month:"月",week:"週",day:"日",list:"予定リスト"},allDayText:"終日",eventLimitText:function(e){return"他 "+e+" 件"},noEventsMessage:"表示する予定はありません"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,a,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT", nextWeek:function(e){return e.week()=100?100:null;return e+(a[e]||a[t]||a[n])},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(160);var n=t(1);n.datepickerLocale("ko","ko",{closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"주",dateFormat:"yy. m. d.",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"년"}),n.locale("ko",{buttonText:{month:"월",week:"주",day:"일",list:"일정목록"},allDayText:"종일",eventLimitText:"개",noEventsMessage:"일정이 없습니다"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,a,t){return e<12?"오전":"오후"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(162);var n=t(1);n.datepickerLocale("lb","lb",{closeText:"Fäerdeg",prevText:"Zréck",nextText:"Weider",currentText:"Haut",monthNames:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],dayNamesShort:["Son","Méi","Dën","Mët","Don","Fre","Sam"],dayNamesMin:["So","Mé","Dë","Më","Do","Fr","Sa"],weekHeader:"W",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("lb",{buttonText:{month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},allDayText:"Ganzen Dag",eventLimitText:"méi",noEventsMessage:"Nee Evenementer ze affichéieren"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?r[t][0]:r[t][1]}function t(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function n(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var a=e%10,t=e/10;return r(0===a?t:a)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return e/=1e3,r(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:t,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d Méint",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(164);var n=t(1);n.datepickerLocale("lt","lt",{closeText:"Uždaryti",prevText:"<Atgal",nextText:"Pirmyn>",currentText:"Šiandien",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","šeš"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Še"],weekHeader:"SAV",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),n.locale("lt",{buttonText:{month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},allDayText:"Visą dieną",eventLimitText:"daugiau",noEventsMessage:"Nėra įvykių rodyti"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){return a?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function t(e,a,t,n){return a?r(t)[0]:n?r(t)[1]:r(t)[2]}function n(e){return e%10==0||e>10&&e<20}function r(e){return d[e].split("_")}function s(e,a,s,d){var i=e+" ";return 1===e?i+t(e,a,s[0],d):a?i+(n(e)?r(s)[1]:r(s)[0]):d?i+r(s)[1]:i+(n(e)?r(s)[1]:r(s)[2])}var d={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:a,ss:s,m:t,mm:s,h:t,hh:s,d:t,dd:s,M:t,MM:s,y:t,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(166);var n=t(1);n.datepickerLocale("lv","lv",{closeText:"Aizvērt",prevText:"Iepr.",nextText:"Nāk.",currentText:"Šodien",monthNames:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],dayNames:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],weekHeader:"Ned.",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("lv",{buttonText:{month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},allDayText:"Visu dienu",eventLimitText:function(e){return"+vēl "+e},noEventsMessage:"Nav notikumu"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){return t?a%10==1&&a%100!=11?e[2]:e[3]:a%10==1&&a%100!=11?e[0]:e[1]}function t(e,t,n){return e+" "+a(s[n],e,t)}function n(e,t,n){return a(s[n],e,t)}function r(e,a){return a?"dažas sekundes":"dažām sekundēm"}var s={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:r,ss:t,m:n,mm:t,h:n,hh:t,d:n,dd:t,M:n,MM:t,y:n,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(168);var n=t(1);n.datepickerLocale("mk","mk",{closeText:"Затвори",prevText:"<",nextText:">",currentText:"Денес",monthNames:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],dayNames:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"],dayNamesShort:["Нед","Пон","Вто","Сре","Чет","Пет","Саб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Са"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("mk",{buttonText:{month:"Месец",week:"Недела",day:"Ден",list:"График"},allDayText:"Цел ден",eventLimitText:function(e){return"+повеќе "+e},noEventsMessage:"Нема настани за прикажување"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(170);var n=t(1);n.datepickerLocale("ms-my","ms",{closeText:"Tutup",prevText:"<Sebelum",nextText:"Selepas>",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ms-my",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(172);var n=t(1);n.datepickerLocale("ms","ms",{closeText:"Tutup",prevText:"<Sebelum",nextText:"Selepas>",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ms",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(174);var n=t(1);n.datepickerLocale("nb","nb",{closeText:"Lukk",prevText:"«Forrige",nextText:"Neste»",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nb",{buttonText:{month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(176);var n=t(1);n.datepickerLocale("nl-be","nl-BE",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nl-be",{buttonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),t="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(178);var n=t(1);n.datepickerLocale("nl","nl",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nl",{buttonText:{year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),t="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?t[e.month()]:a[e.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(180);var n=t(1);n.datepickerLocale("nn","nn",{closeText:"Lukk",prevText:"«Førre",nextText:"Neste»",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["sun","mån","tys","ons","tor","fre","lau"],dayNames:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],dayNamesMin:["su","må","ty","on","to","fr","la"],weekHeader:"Veke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("nn",{buttonText:{month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(182);var n=t(1);n.datepickerLocale("pl","pl",{closeText:"Zamknij",prevText:"<Poprzedni",nextText:"Następny>",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pl",{buttonText:{month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},allDayText:"Cały dzień",eventLimitText:"więcej",noEventsMessage:"Brak wydarzeń do wyświetlenia"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut") ;case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,a){return e?""===a?"("+r[e.month()]+"|"+n[e.month()]+")":/D MMMM/.test(a)?r[e.month()]:n[e.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:t,m:t,mm:t,h:t,hh:t,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:t,y:"rok",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(184);var n=t(1);n.datepickerLocale("pt-br","pt-BR",{closeText:"Fechar",prevText:"<Anterior",nextText:"Próximo>",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pt-br",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Compromissos"},allDayText:"dia inteiro",eventLimitText:function(e){return"mais +"+e},noEventsMessage:"Não há eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(186);var n=t(1);n.datepickerLocale("pt","pt",{closeText:"Fechar",prevText:"Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("pt",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"Não há eventos para mostrar"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(188);var n=t(1);n.datepickerLocale("ro","ro",{closeText:"Închide",prevText:"« Luna precedentă",nextText:"Luna următoare »",currentText:"Azi",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],weekHeader:"Săpt",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ro",{buttonText:{prev:"precedentă",next:"următoare",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},allDayText:"Toată ziua",eventLimitText:function(e){return"+alte "+e},noEventsMessage:"Nu există evenimente de afișat"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+n[t]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:a,m:"un minut",mm:a,h:"o oră",hh:a,d:"o zi",dd:a,M:"o lună",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(190);var n=t(1);n.datepickerLocale("ru","ru",{closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("ru",{buttonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e},noEventsMessage:"Нет событий для отображения"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function t(e,t,n){var r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?t?"минута":"минуту":e+" "+a(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(192);var n=t(1);n.datepickerLocale("sk","sk",{closeText:"Zavrieť",prevText:"<Predchádzajúci",nextText:"Nasledujúci>",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sk",{buttonText:{month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},allDayText:"Celý deň",eventLimitText:function(e){return"+ďalšie: "+e},noEventsMessage:"Žiadne akcie na zobrazenie"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e){return e>1&&e<5}function t(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?s+(a(e)?"sekundy":"sekúnd"):s+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?s+(a(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(a(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?s+(a(e)?"dni":"dní"):s+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(a(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(a(e)?"roky":"rokov"):s+"rokmi"}}var n="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:n,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(194);var n=t(1);n.datepickerLocale("sl","sl",{closeText:"Zapri",prevText:"<Prejšnji",nextText:"Naslednji>",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","Če","Pe","So"],weekHeader:"Teden",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sl",{buttonText:{month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},allDayText:"Ves dan",eventLimitText:"več",noEventsMessage:"Ni dogodkov za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a,t,n){var r=e+" ";switch(t){case"s":return a||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?a?"sekundo":"sekundi":2===e?a||n?"sekundi":"sekundah":e<5?a||n?"sekunde":"sekundah":"sekund";case"m":return a?"ena minuta":"eno minuto";case"mm":return r+=1===e?a?"minuta":"minuto":2===e?a||n?"minuti":"minutama":e<5?a||n?"minute":"minutami":a||n?"minut":"minutami";case"h":return a?"ena ura":"eno uro";case"hh":return r+=1===e?a?"ura":"uro":2===e?a||n?"uri":"urama":e<5?a||n?"ure":"urami":a||n?"ur":"urami";case"d":return a||n?"en dan":"enim dnem";case"dd":return r+=1===e?a||n?"dan":"dnem":2===e?a||n?"dni":"dnevoma":a||n?"dni":"dnevi";case"M":return a||n?"en mesec":"enim mesecem";case"MM":return r+=1===e?a||n?"mesec":"mesecem":2===e?a||n?"meseca":"mesecema":e<5?a||n?"mesece":"meseci":a||n?"mesecev":"meseci";case"y":return a||n?"eno leto":"enim letom";case"yy":return r+=1===e?a||n?"leto":"letom":2===e?a||n?"leti":"letoma":e<5?a||n?"leta":"leti":a||n?"let":"leti"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(196);var n=t(1);n.datepickerLocale("sq","sq",{closeText:"mbylle",prevText:"<mbrapa",nextText:"Përpara>",currentText:"sot",monthNames:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthNamesShort:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],dayNames:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtune"],dayNamesShort:["Di","Hë","Ma","Më","En","Pr","Sh"],dayNamesMin:["Di","Hë","Ma","Më","En","Pr","Sh"],weekHeader:"Ja",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sq",{buttonText:{month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},allDayHtml:"Gjithë
    ditën",eventLimitText:function(e){return"+më tepër "+e},noEventsMessage:"Nuk ka evente për të shfaqur"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,a,t){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(198);var n=t(1);n.datepickerLocale("sr-cyrl","sr",{closeText:"Затвори",prevText:"<",nextText:">",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sr-cyrl",{buttonText:{prev:"Претходна",next:"следећи",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},allDayText:"Цео дан",eventLimitText:function(e){return"+ још "+e},noEventsMessage:"Нема догађаја за приказ"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"дан",dd:a.translate,M:"месец",MM:a.translate,y:"годину",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(200);var n=t(1);n.datepickerLocale("sr","sr-SR",{closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Sed",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sr",{buttonText:{prev:"Prethodna",next:"Sledeći",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},allDayText:"Cеo dan",eventLimitText:function(e){return"+ još "+e},noEventsMessage:"Nеma događaja za prikaz"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(202);var n=t(1);n.datepickerLocale("sv","sv",{closeText:"Stäng",prevText:"«Förra",nextText:"Nästa»",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"v. ",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("sv",{buttonText:{month:"Månad",week:"Vecka",day:"Dag",list:"Program"},allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"e":1===a?"a":2===a?"a":"e")},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(204);var n=t(1);n.datepickerLocale("th","th",{closeText:"ปิด",prevText:"« ย้อน",nextText:"ถัดไป »",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("th",{buttonText:{month:"เดือน",week:"สัปดาห์",day:"วัน",list:"แผนงาน"},allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม",noEventsMessage:"ไม่มีกิจกรรมที่จะแสดง"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,a,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(206);var n=t(1);n.datepickerLocale("tr","tr",{closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("tr",{buttonText:{next:"ileri",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},allDayText:"Tüm gün",eventLimitText:"daha fazla",noEventsMessage:"Gösterilecek etkinlik yok"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,s=e>=100?100:null;return e+(a[n]||a[r]||a[s])}},week:{dow:1,doy:7}})})},function(e,a,t){ Object.defineProperty(a,"__esModule",{value:!0}),t(208);var n=t(1);n.datepickerLocale("uk","uk",{closeText:"Закрити",prevText:"<",nextText:">",currentText:"Сьогодні",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],dayNames:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Тиж",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("uk",{buttonText:{month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},allDayText:"Увесь день",eventLimitText:function(e){return"+ще "+e+"..."},noEventsMessage:"Немає подій для відображення"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){function a(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function t(e,t,n){var r={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+a(r[n],+e)}function n(e,a){var t={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?t[/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative"][e.day()]:t.nominative}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(210);var n=t(1);n.datepickerLocale("vi","vi",{closeText:"Đóng",prevText:"<Trước",nextText:"Tiếp>",currentText:"Hôm nay",monthNames:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayNames:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],weekHeader:"Tu",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),n.locale("vi",{buttonText:{month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},allDayText:"Cả ngày",eventLimitText:function(e){return"+ thêm "+e},noEventsMessage:"Không có sự kiện để hiển thị"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"sa":"SA":t?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(212);var n=t(1);n.datepickerLocale("zh-cn","zh-CN",{closeText:"关闭",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),n.locale("zh-cn",{buttonText:{month:"月",week:"周",day:"日",list:"日程"},allDayText:"全天",eventLimitText:function(e){return"另外 "+e+" 个"},noEventsMessage:"没有事件显示"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"下午"===a||"晚上"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var n=100*e+a;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(214);var n=t(1);n.datepickerLocale("zh-hk","zh-HK",{closeText:"關閉",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),n.locale("zh-hk",{buttonText:{month:"月",week:"週",day:"天",list:"活動列表"},allDayText:"整天",eventLimitText:"顯示更多",noEventsMessage:"没有任何活動"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var n=100*e+a;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),t(216);var n=t(1);n.datepickerLocale("zh-tw","zh-TW",{closeText:"關閉",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),n.locale("zh-tw",{buttonText:{month:"月",week:"週",day:"天",list:"活動列表"},allDayText:"整天",eventLimitText:"顯示更多",noEventsMessage:"没有任何活動"})},function(e,a,t){!function(e,a){a(t(0))}(0,function(e){return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var n=100*e+a;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,t){t(71),t(73),t(75),t(77),t(79),t(81),t(83),t(85),t(87),t(89),t(91),t(93),t(95),t(97),t(99),t(101),t(103),t(105),t(107),t(109),t(111),t(113),t(115),t(117),t(119),t(121),t(123),t(125),t(127),t(129),t(131),t(133),t(135),t(137),t(139),t(141),t(143),t(145),t(147),t(149),t(151),t(153),t(155),t(157),t(159),t(161),t(163),t(165),t(167),t(169),t(171),t(173),t(175),t(177),t(179),t(181),t(183),t(185),t(187),t(189),t(191),t(193),t(195),t(197),t(199),t(201),t(203),t(205),t(207),t(209),t(211),t(213),t(215),e.exports=t(439)},function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0});var n=t(0),r=t(1);n.locale("en"),r.locale("en"),window.jQuery.datepicker&&window.jQuery.datepicker.setDefaults(window.jQuery.datepicker.regional[""])}])}); ================================================ FILE: public/backend/vendors/js/extensions/transition.js ================================================ ;(function(){ /* ======================================================================== * Bootstrap: transition.js v3.0.2 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2013 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ======================================================================== */ +function ($) { "use strict"; // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // ============================================================ function transitionEnd() { var el = document.createElement('bootstrap') var transEndEventNames = { 'WebkitTransition' : 'webkitTransitionEnd' , 'MozTransition' : 'transitionend' , 'OTransition' : 'oTransitionEnd otransitionend' , 'transition' : 'transitionend' } for (var name in transEndEventNames) { if (el.style[name] !== undefined) { return { end: transEndEventNames[name] } } } } // http://blog.alexmaccaw.com/css-transitions $.fn.emulateTransitionEnd = function (duration) { var called = false, $el = this $(this).one($.support.transition.end, function () { called = true }) var callback = function () { if (!called) $($el).trigger($.support.transition.end) } setTimeout(callback, duration) return this } $(function () { $.support.transition = transitionEnd() }) }(jQuery); })(); ================================================ FILE: public/backend/vendors/js/extensions/wNumb.js ================================================ (function (factory) { if ( typeof define === 'function' && define.amd ) { // AMD. Register as an anonymous module. define([], factory); } else if ( typeof exports === 'object' ) { // Node/CommonJS module.exports = factory(); } else { // Browser globals window.wNumb = factory(); } }(function(){ 'use strict'; var /** @const */ FormatOptions = [ 'decimals', 'thousand', 'mark', 'prefix', 'postfix', 'encoder', 'decoder', 'negativeBefore', 'negative', 'edit', 'undo' ]; // General // Reverse a string function strReverse ( a ) { return a.split('').reverse().join(''); } // Check if a string starts with a specified prefix. function strStartsWith ( input, match ) { return input.substring(0, match.length) === match; } // Check is a string ends in a specified postfix. function strEndsWith ( input, match ) { return input.slice(-1 * match.length) === match; } // Throw an error if formatting options are incompatible. function throwEqualError( F, a, b ) { if ( (F[a] || F[b]) && (F[a] === F[b]) ) { throw new Error(a); } } // Check if a number is finite and not NaN function isValidNumber ( input ) { return typeof input === 'number' && isFinite( input ); } // Provide rounding-accurate toFixed method. function toFixed ( value, decimals ) { var scale = Math.pow(10, decimals); return ( Math.round(value * scale) / scale).toFixed( decimals ); } // Formatting // Accept a number as input, output formatted string. function formatTo ( decimals, thousand, mark, prefix, postfix, encoder, decoder, negativeBefore, negative, edit, undo, input ) { var originalInput = input, inputIsNegative, inputPieces, inputBase, inputDecimals = '', output = ''; // Apply user encoder to the input. // Expected outcome: number. if ( encoder ) { input = encoder(input); } // Stop if no valid number was provided, the number is infinite or NaN. if ( !isValidNumber(input) ) { return false; } // Rounding away decimals might cause a value of -0 // when using very small ranges. Remove those cases. if ( decimals !== false && parseFloat(input.toFixed(decimals)) === 0 ) { input = 0; } // Formatting is done on absolute numbers, // decorated by an optional negative symbol. if ( input < 0 ) { inputIsNegative = true; input = Math.abs(input); } // Reduce the number of decimals to the specified option. if ( decimals !== false ) { input = toFixed( input, decimals ); } // Transform the number into a string, so it can be split. input = input.toString(); // Break the number on the decimal separator. if ( input.indexOf('.') !== -1 ) { inputPieces = input.split('.'); inputBase = inputPieces[0]; if ( mark ) { inputDecimals = mark + inputPieces[1]; } } else { // If it isn't split, the entire number will do. inputBase = input; } // Group numbers in sets of three. if ( thousand ) { inputBase = strReverse(inputBase).match(/.{1,3}/g); inputBase = strReverse(inputBase.join( strReverse( thousand ) )); } // If the number is negative, prefix with negation symbol. if ( inputIsNegative && negativeBefore ) { output += negativeBefore; } // Prefix the number if ( prefix ) { output += prefix; } // Normal negative option comes after the prefix. Defaults to '-'. if ( inputIsNegative && negative ) { output += negative; } // Append the actual number. output += inputBase; output += inputDecimals; // Apply the postfix. if ( postfix ) { output += postfix; } // Run the output through a user-specified post-formatter. if ( edit ) { output = edit ( output, originalInput ); } // All done. return output; } // Accept a sting as input, output decoded number. function formatFrom ( decimals, thousand, mark, prefix, postfix, encoder, decoder, negativeBefore, negative, edit, undo, input ) { var originalInput = input, inputIsNegative, output = ''; // User defined pre-decoder. Result must be a non empty string. if ( undo ) { input = undo(input); } // Test the input. Can't be empty. if ( !input || typeof input !== 'string' ) { return false; } // If the string starts with the negativeBefore value: remove it. // Remember is was there, the number is negative. if ( negativeBefore && strStartsWith(input, negativeBefore) ) { input = input.replace(negativeBefore, ''); inputIsNegative = true; } // Repeat the same procedure for the prefix. if ( prefix && strStartsWith(input, prefix) ) { input = input.replace(prefix, ''); } // And again for negative. if ( negative && strStartsWith(input, negative) ) { input = input.replace(negative, ''); inputIsNegative = true; } // Remove the postfix. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice if ( postfix && strEndsWith(input, postfix) ) { input = input.slice(0, -1 * postfix.length); } // Remove the thousand grouping. if ( thousand ) { input = input.split(thousand).join(''); } // Set the decimal separator back to period. if ( mark ) { input = input.replace(mark, '.'); } // Prepend the negative symbol. if ( inputIsNegative ) { output += '-'; } // Add the number output += input; // Trim all non-numeric characters (allow '.' and '-'); output = output.replace(/[^0-9\.\-.]/g, ''); // The value contains no parse-able number. if ( output === '' ) { return false; } // Covert to number. output = Number(output); // Run the user-specified post-decoder. if ( decoder ) { output = decoder(output); } // Check is the output is valid, otherwise: return false. if ( !isValidNumber(output) ) { return false; } return output; } // Framework // Validate formatting options function validate ( inputOptions ) { var i, optionName, optionValue, filteredOptions = {}; for ( i = 0; i < FormatOptions.length; i+=1 ) { optionName = FormatOptions[i]; optionValue = inputOptions[optionName]; if ( optionValue === undefined ) { // Only default if negativeBefore isn't set. if ( optionName === 'negative' && !filteredOptions.negativeBefore ) { filteredOptions[optionName] = '-'; // Don't set a default for mark when 'thousand' is set. } else if ( optionName === 'mark' && filteredOptions.thousand !== '.' ) { filteredOptions[optionName] = '.'; } else { filteredOptions[optionName] = false; } // Floating points in JS are stable up to 7 decimals. } else if ( optionName === 'decimals' ) { if ( optionValue >= 0 && optionValue < 8 ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } // These options, when provided, must be functions. } else if ( optionName === 'encoder' || optionName === 'decoder' || optionName === 'edit' || optionName === 'undo' ) { if ( typeof optionValue === 'function' ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } // Other options are strings. } else { if ( typeof optionValue === 'string' ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } } } // Some values can't be extracted from a // string if certain combinations are present. throwEqualError(filteredOptions, 'mark', 'thousand'); throwEqualError(filteredOptions, 'prefix', 'negative'); throwEqualError(filteredOptions, 'prefix', 'negativeBefore'); return filteredOptions; } // Pass all options as function arguments function passAll ( options, method, input ) { var i, args = []; // Add all options in order of FormatOptions for ( i = 0; i < FormatOptions.length; i+=1 ) { args.push(options[FormatOptions[i]]); } // Append the input, then call the method, presenting all // options as arguments. args.push(input); return method.apply('', args); } /** @constructor */ function wNumb ( options ) { if ( !(this instanceof wNumb) ) { return new wNumb ( options ); } if ( typeof options !== "object" ) { return; } options = validate(options); // Call 'formatTo' with proper arguments. this.to = function ( input ) { return passAll(options, formatTo, input); }; // Call 'formatFrom' with proper arguments. this.from = function ( input ) { return passAll(options, formatFrom, input); }; } /** @export */ return wNumb; })); ================================================ FILE: public/backend/vendors/js/forms/extended/maxlength/bootstrap-maxlength.js ================================================ (function ($) { 'use strict'; /** * We need an event when the elements are destroyed * because if an input is removed, we have to remove the * maxlength object associated (if any). * From: * http://stackoverflow.com/questions/2200494/jquery-trigger-event-when-an-element-is-removed-from-the-dom */ if (!$.event.special.destroyed) { $.event.special.destroyed = { remove: function (o) { if (o.handler) { o.handler(); } } }; } $.fn.extend({ maxlength: function (options, callback) { var documentBody = $('body'), defaults = { showOnReady: false, // true to always show when indicator is ready alwaysShow: false, // if true the indicator it's always shown. threshold: 10, // Represents how many chars left are needed to show up the counter warningClass: 'label label-success', limitReachedClass: 'label label-important label-danger', separator: ' / ', preText: '', postText: '', showMaxLength: true, placement: 'bottom', message: null, // an alternative way to provide the message text showCharsTyped: true, // show the number of characters typed and not the number of characters remaining validate: false, // if the browser doesn't support the maxlength attribute, attempt to type more than // the indicated chars, will be prevented. utf8: false, // counts using bytesize rather than length. eg: '£' is counted as 2 characters. appendToParent: false, // append the indicator to the input field's parent instead of body twoCharLinebreak: true, // count linebreak as 2 characters to match IE/Chrome textarea validation. As well as DB storage. customMaxAttribute: null, // null = use maxlength attribute and browser functionality, string = use specified attribute instead. allowOverMax: false // Form submit validation is handled on your own. when maxlength has been exceeded 'overmax' class added to element }; if ($.isFunction(options) && !callback) { callback = options; options = {}; } options = $.extend(defaults, options); /** * Return the byte count of the specified character in UTF8 encoding. * Note: This won't cover UTF-8 characters that are 4 bytes long. * * @param input * @return {number} */ function utf8CharByteCount(character) { var c = character.charCodeAt(); // Not c then 0, else c < 128 then 1, else c < 2048 then 2, else 3 return !c ? 0 : c < 128 ? 1 : c < 2048 ? 2 : 3; } /** * Return the length of the specified input in UTF8 encoding. * * @param input * @return {number} */ function utf8Length(string) { return string.split("") .map(utf8CharByteCount) // Prevent reduce from throwing an error if the string is empty. .concat(0) .reduce(function(sum, val) { return sum + val; }); } /** * Return the length of the specified input. * * @param input * @return {number} */ function inputLength(input) { var text = input.val(); if (options.twoCharLinebreak) { // Count all line breaks as 2 characters text = text.replace(/\r(?!\n)|\n(?!\r)/g, '\r\n'); } else { // Remove all double-character (\r\n) linebreaks, so they're counted only once. text = text.replace(new RegExp('\r?\n', 'g'), '\n'); } var currentLength = 0; if (options.utf8) { currentLength = utf8Length(text); } else { currentLength = text.length; } return currentLength; } /** * Truncate the text of the specified input. * * @param input * @param limit */ function truncateChars(input, maxlength) { var text = input.val(); if (options.twoCharLinebreak) { text = text.replace(/\r(?!\n)|\n(?!\r)/g, '\r\n'); if (text[text.length - 1] === '\n') { maxlength -= text.length % 2; } } if (options.utf8) { var indexedSize = text.split("").map(utf8CharByteCount); for ( var removedBytes = 0, bytesPastMax = utf8Length(text) - maxlength ;removedBytes < bytesPastMax ;removedBytes += indexedSize.pop() ); maxlength -= (maxlength - indexedSize.length); } input.val(text.substr(0, maxlength)); } /** * Return true if the indicator should be showing up. * * @param input * @param threshold * @param maxlength * @return {number} */ function charsLeftThreshold(input, threshold, maxlength) { var output = true; if (!options.alwaysShow && (maxlength - inputLength(input) > threshold)) { output = false; } return output; } /** * Returns how many chars are left to complete the fill up of the form. * * @param input * @param maxlength * @return {number} */ function remainingChars(input, maxlength) { var length = maxlength - inputLength(input); return length; } /** * When called displays the indicator. * * @param indicator */ function showRemaining(currentInput, indicator) { indicator.css({ display: 'block' }); currentInput.trigger('maxlength.shown'); } /** * When called shows the indicator. * * @param indicator */ function hideRemaining(currentInput, indicator) { if (options.alwaysShow) { return; } indicator.css({ display: 'none' }); currentInput.trigger('maxlength.hidden'); } /** * This function updates the value in the indicator * * @param maxLengthThisInput * @param typedChars * @return String */ function updateMaxLengthHTML(currentInputText, maxLengthThisInput, typedChars) { var output = ''; if (options.message) { if (typeof options.message === 'function') { output = options.message(currentInputText, maxLengthThisInput); } else { output = options.message.replace('%charsTyped%', typedChars) .replace('%charsRemaining%', maxLengthThisInput - typedChars) .replace('%charsTotal%', maxLengthThisInput); } } else { if (options.preText) { output += options.preText; } if (!options.showCharsTyped) { output += maxLengthThisInput - typedChars; } else { output += typedChars; } if (options.showMaxLength) { output += options.separator + maxLengthThisInput; } if (options.postText) { output += options.postText; } } return output; } /** * This function updates the value of the counter in the indicator. * Wants as parameters: the number of remaining chars, the element currently managed, * the maxLength for the current input and the indicator generated for it. * * @param remaining * @param currentInput * @param maxLengthCurrentInput * @param maxLengthIndicator */ function manageRemainingVisibility(remaining, currentInput, maxLengthCurrentInput, maxLengthIndicator) { if (maxLengthIndicator) { maxLengthIndicator.html(updateMaxLengthHTML(currentInput.val(), maxLengthCurrentInput, (maxLengthCurrentInput - remaining))); if (remaining > 0) { if (charsLeftThreshold(currentInput, options.threshold, maxLengthCurrentInput)) { showRemaining(currentInput, maxLengthIndicator.removeClass(options.limitReachedClass).addClass(options.warningClass)); } else { hideRemaining(currentInput, maxLengthIndicator); } } else { showRemaining(currentInput, maxLengthIndicator.removeClass(options.warningClass).addClass(options.limitReachedClass)); } } if (options.customMaxAttribute) { // class to use for form validation on custom maxlength attribute if (remaining < 0) { currentInput.addClass('overmax'); } else { currentInput.removeClass('overmax'); } } } /** * This function returns an object containing all the * informations about the position of the current input * * @param currentInput * @return object {bottom height left right top width} * */ function getPosition(currentInput) { var el = currentInput[0]; return $.extend({}, (typeof el.getBoundingClientRect === 'function') ? el.getBoundingClientRect() : { width: el.offsetWidth, height: el.offsetHeight }, currentInput.offset()); } /** * This function places the maxLengthIndicator based on placement config object. * * @param {object} placement * @param {$} maxLengthIndicator * @return null * */ function placeWithCSS(placement, maxLengthIndicator) { if (!placement || !maxLengthIndicator){ return; } var POSITION_KEYS = [ 'top', 'bottom', 'left', 'right', 'position' ]; var cssPos = {}; // filter css properties to position $.each(POSITION_KEYS, function (i, key) { var val = options.placement[key]; if (typeof val !== 'undefined'){ cssPos[key] = val; } }); maxLengthIndicator.css(cssPos); return; } /** * This function places the maxLengthIndicator at the * top / bottom / left / right of the currentInput * * @param currentInput * @param maxLengthIndicator * @return null * */ function place(currentInput, maxLengthIndicator) { var pos = getPosition(currentInput); // Supports custom placement handler if ($.type(options.placement) === 'function'){ options.placement(currentInput, maxLengthIndicator, pos); return; } // Supports custom placement via css positional properties if ($.isPlainObject(options.placement)){ placeWithCSS(options.placement, maxLengthIndicator); return; } var inputOuter = currentInput.outerWidth(), outerWidth = maxLengthIndicator.outerWidth(), actualWidth = maxLengthIndicator.width(), actualHeight = maxLengthIndicator.height(); // get the right position if the indicator is appended to the input's parent if (options.appendToParent) { pos.top -= currentInput.parent().offset().top; pos.left -= currentInput.parent().offset().left; } switch (options.placement) { case 'bottom': maxLengthIndicator.css({ top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 }); break; case 'top': maxLengthIndicator.css({ top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 }); break; case 'left': maxLengthIndicator.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth }); break; case 'right': maxLengthIndicator.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }); break; case 'bottom-right': maxLengthIndicator.css({ top: pos.top + pos.height, left: pos.left + pos.width }); break; case 'top-right': maxLengthIndicator.css({ top: pos.top - actualHeight, left: pos.left + inputOuter }); break; case 'top-left': maxLengthIndicator.css({ top: pos.top - actualHeight, left: pos.left - outerWidth }); break; case 'bottom-left': maxLengthIndicator.css({ top: pos.top + currentInput.outerHeight(), left: pos.left - outerWidth }); break; case 'centered-right': maxLengthIndicator.css({ top: pos.top + (actualHeight / 2), left: pos.left + inputOuter - outerWidth - 3 }); break; // Some more options for placements case 'bottom-right-inside': maxLengthIndicator.css({ top: pos.top + pos.height, left: pos.left + pos.width - outerWidth }); break; case 'top-right-inside': maxLengthIndicator.css({ top: pos.top - actualHeight, left: pos.left + inputOuter - outerWidth }); break; case 'top-left-inside': maxLengthIndicator.css({ top: pos.top - actualHeight, left: pos.left }); break; case 'bottom-left-inside': maxLengthIndicator.css({ top: pos.top + currentInput.outerHeight(), left: pos.left }); break; } } /** * This function returns true if the indicator position needs to * be recalculated when the currentInput changes * * @return {boolean} * */ function isPlacementMutable() { return options.placement === 'bottom-right-inside' || options.placement === 'top-right-inside' || typeof options.placement === 'function' || (options.message && typeof options.message === 'function'); } /** * This function retrieves the maximum length of currentInput * * @param currentInput * @return {number} * */ function getMaxLength(currentInput) { var max = currentInput.attr('maxlength') || options.customMaxAttribute; if (options.customMaxAttribute && !options.allowOverMax) { var custom = currentInput.attr(options.customMaxAttribute); if (!max || custom < max) { max = custom; } } if (!max) { max = currentInput.attr('size'); } return max; } return this.each(function () { var currentInput = $(this), maxLengthCurrentInput, maxLengthIndicator; $(window).resize(function () { if (maxLengthIndicator) { place(currentInput, maxLengthIndicator); } }); function firstInit() { var maxlengthContent = updateMaxLengthHTML(currentInput.val(), maxLengthCurrentInput, '0'); maxLengthCurrentInput = getMaxLength(currentInput); if (!maxLengthIndicator) { maxLengthIndicator = $('').css({ display: 'none', position: 'absolute', whiteSpace: 'nowrap', zIndex: 1099 }).html(maxlengthContent); } // We need to detect resizes if we are dealing with a textarea: if (currentInput.is('textarea')) { currentInput.data('maxlenghtsizex', currentInput.outerWidth()); currentInput.data('maxlenghtsizey', currentInput.outerHeight()); currentInput.mouseup(function () { if (currentInput.outerWidth() !== currentInput.data('maxlenghtsizex') || currentInput.outerHeight() !== currentInput.data('maxlenghtsizey')) { place(currentInput, maxLengthIndicator); } currentInput.data('maxlenghtsizex', currentInput.outerWidth()); currentInput.data('maxlenghtsizey', currentInput.outerHeight()); }); } if (options.appendToParent) { currentInput.parent().append(maxLengthIndicator); currentInput.parent().css('position', 'relative'); } else { documentBody.append(maxLengthIndicator); } var remaining = remainingChars(currentInput, getMaxLength(currentInput)); manageRemainingVisibility(remaining, currentInput, maxLengthCurrentInput, maxLengthIndicator); place(currentInput, maxLengthIndicator); } if (options.showOnReady) { currentInput.ready(function () { firstInit(); }); } else { currentInput.focus(function () { firstInit(); }); } currentInput.on('maxlength.reposition', function () { place(currentInput, maxLengthIndicator); }); currentInput.on('destroyed', function () { if (maxLengthIndicator) { maxLengthIndicator.remove(); } }); currentInput.on('blur', function () { if (maxLengthIndicator && !options.showOnReady) { maxLengthIndicator.remove(); } }); currentInput.on('input', function () { var maxlength = getMaxLength(currentInput), remaining = remainingChars(currentInput, maxlength), output = true; if (options.validate && remaining < 0) { truncateChars(currentInput, maxlength); output = false; } else { manageRemainingVisibility(remaining, currentInput, maxLengthCurrentInput, maxLengthIndicator); } if (isPlacementMutable()) { place(currentInput, maxLengthIndicator); } return output; }); }); } }); }(jQuery)); ================================================ FILE: public/backend/vendors/js/forms/extended/typeahead/handlebars.js ================================================ /*! handlebars v1.2.0 Copyright (C) 2011 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @license */ var Handlebars = (function() { // handlebars/safe-string.js var __module4__ = (function() { "use strict"; var __exports__; // Build out our basic SafeString type function SafeString(string) { this.string = string; } SafeString.prototype.toString = function() { return "" + this.string; }; __exports__ = SafeString; return __exports__; })(); // handlebars/utils.js var __module3__ = (function(__dependency1__) { "use strict"; var __exports__ = {}; /*jshint -W004 */ var SafeString = __dependency1__; var escape = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }; var badChars = /[&<>"'`]/g; var possible = /[&<>"'`]/; function escapeChar(chr) { return escape[chr] || "&"; } function extend(obj, value) { for(var key in value) { if(Object.prototype.hasOwnProperty.call(value, key)) { obj[key] = value[key]; } } } __exports__.extend = extend;var toString = Object.prototype.toString; __exports__.toString = toString; // Sourced from lodash // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt var isFunction = function(value) { return typeof value === 'function'; }; // fallback for older versions of Chrome and Safari if (isFunction(/x/)) { isFunction = function(value) { return typeof value === 'function' && toString.call(value) === '[object Function]'; }; } var isFunction; __exports__.isFunction = isFunction; var isArray = Array.isArray || function(value) { return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false; }; __exports__.isArray = isArray; function escapeExpression(string) { // don't escape SafeStrings, since they're already safe if (string instanceof SafeString) { return string.toString(); } else if (!string && string !== 0) { return ""; } // Force a string conversion as this will be done by the append regardless and // the regex test will do this transparently behind the scenes, causing issues if // an object's to string has escaped characters in it. string = "" + string; if(!possible.test(string)) { return string; } return string.replace(badChars, escapeChar); } __exports__.escapeExpression = escapeExpression;function isEmpty(value) { if (!value && value !== 0) { return true; } else if (isArray(value) && value.length === 0) { return true; } else { return false; } } __exports__.isEmpty = isEmpty; return __exports__; })(__module4__); // handlebars/exception.js var __module5__ = (function() { "use strict"; var __exports__; var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack']; function Exception(/* message */) { var tmp = Error.prototype.constructor.apply(this, arguments); // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work. for (var idx = 0; idx < errorProps.length; idx++) { this[errorProps[idx]] = tmp[errorProps[idx]]; } } Exception.prototype = new Error(); __exports__ = Exception; return __exports__; })(); // handlebars/base.js var __module2__ = (function(__dependency1__, __dependency2__) { "use strict"; var __exports__ = {}; var Utils = __dependency1__; var Exception = __dependency2__; var VERSION = "1.2.0"; __exports__.VERSION = VERSION;var COMPILER_REVISION = 4; __exports__.COMPILER_REVISION = COMPILER_REVISION; var REVISION_CHANGES = { 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it 2: '== 1.0.0-rc.3', 3: '== 1.0.0-rc.4', 4: '>= 1.0.0' }; __exports__.REVISION_CHANGES = REVISION_CHANGES; var isArray = Utils.isArray, isFunction = Utils.isFunction, toString = Utils.toString, objectType = '[object Object]'; function HandlebarsEnvironment(helpers, partials) { this.helpers = helpers || {}; this.partials = partials || {}; registerDefaultHelpers(this); } __exports__.HandlebarsEnvironment = HandlebarsEnvironment;HandlebarsEnvironment.prototype = { constructor: HandlebarsEnvironment, logger: logger, log: log, registerHelper: function(name, fn, inverse) { if (toString.call(name) === objectType) { if (inverse || fn) { throw new Exception('Arg not supported with multiple helpers'); } Utils.extend(this.helpers, name); } else { if (inverse) { fn.not = inverse; } this.helpers[name] = fn; } }, registerPartial: function(name, str) { if (toString.call(name) === objectType) { Utils.extend(this.partials, name); } else { this.partials[name] = str; } } }; function registerDefaultHelpers(instance) { instance.registerHelper('helperMissing', function(arg) { if(arguments.length === 2) { return undefined; } else { throw new Error("Missing helper: '" + arg + "'"); } }); instance.registerHelper('blockHelperMissing', function(context, options) { var inverse = options.inverse || function() {}, fn = options.fn; if (isFunction(context)) { context = context.call(this); } if(context === true) { return fn(this); } else if(context === false || context == null) { return inverse(this); } else if (isArray(context)) { if(context.length > 0) { return instance.helpers.each(context, options); } else { return inverse(this); } } else { return fn(context); } }); instance.registerHelper('each', function(context, options) { var fn = options.fn, inverse = options.inverse; var i = 0, ret = "", data; if (isFunction(context)) { context = context.call(this); } if (options.data) { data = createFrame(options.data); } if(context && typeof context === 'object') { if (isArray(context)) { for(var j = context.length; i 0) { throw new Exception("Invalid path: " + original); } else if (part === "..") { depth++; } else { this.isScoped = true; } } else { dig.push(part); } } this.original = original; this.parts = dig; this.string = dig.join('.'); this.depth = depth; // an ID is simple if it only has one part, and that part is not // `..` or `this`. this.isSimple = parts.length === 1 && !this.isScoped && depth === 0; this.stringModeValue = this.string; }, PartialNameNode: function(name) { this.type = "PARTIAL_NAME"; this.name = name.original; }, DataNode: function(id) { this.type = "DATA"; this.id = id; }, StringNode: function(string) { this.type = "STRING"; this.original = this.string = this.stringModeValue = string; }, IntegerNode: function(integer) { this.type = "INTEGER"; this.original = this.integer = integer; this.stringModeValue = Number(integer); }, BooleanNode: function(bool) { this.type = "BOOLEAN"; this.bool = bool; this.stringModeValue = bool === "true"; }, CommentNode: function(comment) { this.type = "comment"; this.comment = comment; } }; // Must be exported as an object rather than the root of the module as the jison lexer // most modify the object to operate properly. __exports__ = AST; return __exports__; })(__module5__); // handlebars/compiler/parser.js var __module9__ = (function() { "use strict"; var __exports__; /* jshint ignore:start */ /* Jison generated parser */ var handlebars = (function(){ var parser = {trace: function trace() { }, yy: {}, symbols_: {"error":2,"root":3,"statements":4,"EOF":5,"program":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"CLOSE_UNESCAPED":24,"OPEN_PARTIAL":25,"partialName":26,"partial_option0":27,"inMustache_repetition0":28,"inMustache_option0":29,"dataName":30,"param":31,"STRING":32,"INTEGER":33,"BOOLEAN":34,"hash":35,"hash_repetition_plus0":36,"hashSegment":37,"ID":38,"EQUALS":39,"DATA":40,"pathSegments":41,"SEP":42,"$accept":0,"$end":1}, terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",32:"STRING",33:"INTEGER",34:"BOOLEAN",38:"ID",39:"EQUALS",40:"DATA",42:"SEP"}, productions_: [0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[35,1],[37,3],[26,1],[26,1],[26,1],[30,2],[21,1],[41,3],[41,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[36,1],[36,2]], performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { var $0 = $$.length - 1; switch (yystate) { case 1: return new yy.ProgramNode($$[$0-1]); break; case 2: return new yy.ProgramNode([]); break; case 3:this.$ = new yy.ProgramNode([], $$[$0-1], $$[$0]); break; case 4:this.$ = new yy.ProgramNode($$[$0-2], $$[$0-1], $$[$0]); break; case 5:this.$ = new yy.ProgramNode($$[$0-1], $$[$0], []); break; case 6:this.$ = new yy.ProgramNode($$[$0]); break; case 7:this.$ = new yy.ProgramNode([]); break; case 8:this.$ = new yy.ProgramNode([]); break; case 9:this.$ = [$$[$0]]; break; case 10: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; break; case 11:this.$ = new yy.BlockNode($$[$0-2], $$[$0-1].inverse, $$[$0-1], $$[$0]); break; case 12:this.$ = new yy.BlockNode($$[$0-2], $$[$0-1], $$[$0-1].inverse, $$[$0]); break; case 13:this.$ = $$[$0]; break; case 14:this.$ = $$[$0]; break; case 15:this.$ = new yy.ContentNode($$[$0]); break; case 16:this.$ = new yy.CommentNode($$[$0]); break; case 17:this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], $$[$0-2], stripFlags($$[$0-2], $$[$0])); break; case 18:this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], $$[$0-2], stripFlags($$[$0-2], $$[$0])); break; case 19:this.$ = {path: $$[$0-1], strip: stripFlags($$[$0-2], $$[$0])}; break; case 20:this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], $$[$0-2], stripFlags($$[$0-2], $$[$0])); break; case 21:this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], $$[$0-2], stripFlags($$[$0-2], $$[$0])); break; case 22:this.$ = new yy.PartialNode($$[$0-2], $$[$0-1], stripFlags($$[$0-3], $$[$0])); break; case 23:this.$ = stripFlags($$[$0-1], $$[$0]); break; case 24:this.$ = [[$$[$0-2]].concat($$[$0-1]), $$[$0]]; break; case 25:this.$ = [[$$[$0]], null]; break; case 26:this.$ = $$[$0]; break; case 27:this.$ = new yy.StringNode($$[$0]); break; case 28:this.$ = new yy.IntegerNode($$[$0]); break; case 29:this.$ = new yy.BooleanNode($$[$0]); break; case 30:this.$ = $$[$0]; break; case 31:this.$ = new yy.HashNode($$[$0]); break; case 32:this.$ = [$$[$0-2], $$[$0]]; break; case 33:this.$ = new yy.PartialNameNode($$[$0]); break; case 34:this.$ = new yy.PartialNameNode(new yy.StringNode($$[$0])); break; case 35:this.$ = new yy.PartialNameNode(new yy.IntegerNode($$[$0])); break; case 36:this.$ = new yy.DataNode($$[$0]); break; case 37:this.$ = new yy.IdNode($$[$0]); break; case 38: $$[$0-2].push({part: $$[$0], separator: $$[$0-1]}); this.$ = $$[$0-2]; break; case 39:this.$ = [{part: $$[$0]}]; break; case 42:this.$ = []; break; case 43:$$[$0-1].push($$[$0]); break; case 46:this.$ = [$$[$0]]; break; case 47:$$[$0-1].push($$[$0]); break; } }, table: [{3:1,4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:29,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:30,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:31,21:24,30:25,38:[1,28],40:[1,27],41:26},{21:33,26:32,32:[1,34],33:[1,35],38:[1,28],41:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,38:[1,28],40:[1,27],41:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,42],24:[2,42],28:43,32:[2,42],33:[2,42],34:[2,42],38:[2,42],40:[2,42]},{18:[2,25],24:[2,25]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],38:[2,37],40:[2,37],42:[1,44]},{21:45,38:[1,28],41:26},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],38:[2,39],40:[2,39],42:[2,39]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,40],21:50,27:49,38:[1,28],41:26},{18:[2,33],38:[2,33]},{18:[2,34],38:[2,34]},{18:[2,35],38:[2,35]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,38:[1,28],41:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,44],21:56,24:[2,44],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:55,36:61,37:62,38:[1,63],40:[1,27],41:26},{38:[1,64]},{18:[2,36],24:[2,36],32:[2,36],33:[2,36],34:[2,36],38:[2,36],40:[2,36]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,65]},{18:[2,41]},{18:[1,66]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24]},{18:[2,43],24:[2,43],32:[2,43],33:[2,43],34:[2,43],38:[2,43],40:[2,43]},{18:[2,45],24:[2,45]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],38:[2,26],40:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],38:[2,27],40:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],38:[2,28],40:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],38:[2,29],40:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],38:[2,30],40:[2,30]},{18:[2,31],24:[2,31],37:67,38:[1,68]},{18:[2,46],24:[2,46],38:[2,46]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],38:[2,39],39:[1,69],40:[2,39],42:[2,39]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],38:[2,38],40:[2,38],42:[2,38]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{18:[2,47],24:[2,47],38:[2,47]},{39:[1,69]},{21:56,30:60,31:70,32:[1,57],33:[1,58],34:[1,59],38:[1,28],40:[1,27],41:26},{18:[2,32],24:[2,32],38:[2,32]}], defaultActions: {3:[2,2],16:[2,1],50:[2,41]}, parseError: function parseError(str, hash) { throw new Error(str); }, parse: function parse(input) { var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; this.lexer.setInput(input); this.lexer.yy = this.yy; this.yy.lexer = this.lexer; this.yy.parser = this; if (typeof this.lexer.yylloc == "undefined") this.lexer.yylloc = {}; var yyloc = this.lexer.yylloc; lstack.push(yyloc); var ranges = this.lexer.options && this.lexer.options.ranges; if (typeof this.yy.parseError === "function") this.parseError = this.yy.parseError; function popStack(n) { stack.length = stack.length - 2 * n; vstack.length = vstack.length - n; lstack.length = lstack.length - n; } function lex() { var token; token = self.lexer.lex() || 1; if (typeof token !== "number") { token = self.symbols_[token] || token; } return token; } var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; while (true) { state = stack[stack.length - 1]; if (this.defaultActions[state]) { action = this.defaultActions[state]; } else { if (symbol === null || typeof symbol == "undefined") { symbol = lex(); } action = table[state] && table[state][symbol]; } if (typeof action === "undefined" || !action.length || !action[0]) { var errStr = ""; if (!recovering) { expected = []; for (p in table[state]) if (this.terminals_[p] && p > 2) { expected.push("'" + this.terminals_[p] + "'"); } if (this.lexer.showPosition) { errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'"; } else { errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1?"end of input":"'" + (this.terminals_[symbol] || symbol) + "'"); } this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); } } if (action[0] instanceof Array && action.length > 1) { throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); } switch (action[0]) { case 1: stack.push(symbol); vstack.push(this.lexer.yytext); lstack.push(this.lexer.yylloc); stack.push(action[1]); symbol = null; if (!preErrorSymbol) { yyleng = this.lexer.yyleng; yytext = this.lexer.yytext; yylineno = this.lexer.yylineno; yyloc = this.lexer.yylloc; if (recovering > 0) recovering--; } else { symbol = preErrorSymbol; preErrorSymbol = null; } break; case 2: len = this.productions_[action[1]][1]; yyval.$ = vstack[vstack.length - len]; yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column}; if (ranges) { yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; } r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); if (typeof r !== "undefined") { return r; } if (len) { stack = stack.slice(0, -1 * len * 2); vstack = vstack.slice(0, -1 * len); lstack = lstack.slice(0, -1 * len); } stack.push(this.productions_[action[1]][0]); vstack.push(yyval.$); lstack.push(yyval._$); newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; stack.push(newState); break; case 3: return true; } } return true; } }; function stripFlags(open, close) { return { left: open.charAt(2) === '~', right: close.charAt(0) === '~' || close.charAt(1) === '~' }; } /* Jison generated lexer */ var lexer = (function(){ var lexer = ({EOF:1, parseError:function parseError(str, hash) { if (this.yy.parser) { this.yy.parser.parseError(str, hash); } else { throw new Error(str); } }, setInput:function (input) { this._input = input; this._more = this._less = this.done = false; this.yylineno = this.yyleng = 0; this.yytext = this.matched = this.match = ''; this.conditionStack = ['INITIAL']; this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; if (this.options.ranges) this.yylloc.range = [0,0]; this.offset = 0; return this; }, input:function () { var ch = this._input[0]; this.yytext += ch; this.yyleng++; this.offset++; this.match += ch; this.matched += ch; var lines = ch.match(/(?:\r\n?|\n).*/g); if (lines) { this.yylineno++; this.yylloc.last_line++; } else { this.yylloc.last_column++; } if (this.options.ranges) this.yylloc.range[1]++; this._input = this._input.slice(1); return ch; }, unput:function (ch) { var len = ch.length; var lines = ch.split(/(?:\r\n?|\n)/g); this._input = ch + this._input; this.yytext = this.yytext.substr(0, this.yytext.length-len-1); //this.yyleng -= len; this.offset -= len; var oldLines = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length-1); this.matched = this.matched.substr(0, this.matched.length-1); if (lines.length-1) this.yylineno -= lines.length-1; var r = this.yylloc.range; this.yylloc = {first_line: this.yylloc.first_line, last_line: this.yylineno+1, first_column: this.yylloc.first_column, last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length: this.yylloc.first_column - len }; if (this.options.ranges) { this.yylloc.range = [r[0], r[0] + this.yyleng - len]; } return this; }, more:function () { this._more = true; return this; }, less:function (n) { this.unput(this.match.slice(n)); }, pastInput:function () { var past = this.matched.substr(0, this.matched.length - this.match.length); return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); }, upcomingInput:function () { var next = this.match; if (next.length < 20) { next += this._input.substr(0, 20-next.length); } return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); }, showPosition:function () { var pre = this.pastInput(); var c = new Array(pre.length + 1).join("-"); return pre + this.upcomingInput() + "\n" + c+"^"; }, next:function () { if (this.done) { return this.EOF; } if (!this._input) this.done = true; var token, match, tempMatch, index, col, lines; if (!this._more) { this.yytext = ''; this.match = ''; } var rules = this._currentRules(); for (var i=0;i < rules.length; i++) { tempMatch = this._input.match(this.rules[rules[i]]); if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { match = tempMatch; index = i; if (!this.options.flex) break; } } if (match) { lines = match[0].match(/(?:\r\n?|\n).*/g); if (lines) this.yylineno += lines.length; this.yylloc = {first_line: this.yylloc.last_line, last_line: this.yylineno+1, first_column: this.yylloc.last_column, last_column: lines ? lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length}; this.yytext += match[0]; this.match += match[0]; this.matches = match; this.yyleng = this.yytext.length; if (this.options.ranges) { this.yylloc.range = [this.offset, this.offset += this.yyleng]; } this._more = false; this._input = this._input.slice(match[0].length); this.matched += match[0]; token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]); if (this.done && this._input) this.done = false; if (token) return token; else return; } if (this._input === "") { return this.EOF; } else { return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), {text: "", token: null, line: this.yylineno}); } }, lex:function lex() { var r = this.next(); if (typeof r !== 'undefined') { return r; } else { return this.lex(); } }, begin:function begin(condition) { this.conditionStack.push(condition); }, popState:function popState() { return this.conditionStack.pop(); }, _currentRules:function _currentRules() { return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; }, topState:function () { return this.conditionStack[this.conditionStack.length-2]; }, pushState:function begin(condition) { this.begin(condition); }}); lexer.options = {}; lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { function strip(start, end) { return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng-end); } var YYSTATE=YY_START switch($avoiding_name_collisions) { case 0: if(yy_.yytext.slice(-2) === "\\\\") { strip(0,1); this.begin("mu"); } else if(yy_.yytext.slice(-1) === "\\") { strip(0,1); this.begin("emu"); } else { this.begin("mu"); } if(yy_.yytext) return 14; break; case 1:return 14; break; case 2: this.popState(); return 14; break; case 3:strip(0,4); this.popState(); return 15; break; case 4:return 25; break; case 5:return 16; break; case 6:return 20; break; case 7:return 19; break; case 8:return 19; break; case 9:return 23; break; case 10:return 22; break; case 11:this.popState(); this.begin('com'); break; case 12:strip(3,5); this.popState(); return 15; break; case 13:return 22; break; case 14:return 39; break; case 15:return 38; break; case 16:return 38; break; case 17:return 42; break; case 18:// ignore whitespace break; case 19:this.popState(); return 24; break; case 20:this.popState(); return 18; break; case 21:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 32; break; case 22:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 32; break; case 23:return 40; break; case 24:return 34; break; case 25:return 34; break; case 26:return 33; break; case 27:return 38; break; case 28:yy_.yytext = strip(1,2); return 38; break; case 29:return 'INVALID'; break; case 30:return 5; break; } }; lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s])))/,/^(?:false(?=([~}\s])))/,/^(?:-?[0-9]+(?=([~}\s])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/]; lexer.conditions = {"mu":{"rules":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"com":{"rules":[3],"inclusive":false},"INITIAL":{"rules":[0,1,30],"inclusive":true}}; return lexer;})() parser.lexer = lexer; function Parser () { this.yy = {}; }Parser.prototype = parser;parser.Parser = Parser; return new Parser; })();__exports__ = handlebars; /* jshint ignore:end */ return __exports__; })(); // handlebars/compiler/base.js var __module8__ = (function(__dependency1__, __dependency2__) { "use strict"; var __exports__ = {}; var parser = __dependency1__; var AST = __dependency2__; __exports__.parser = parser; function parse(input) { // Just return if an already-compile AST was passed in. if(input.constructor === AST.ProgramNode) { return input; } parser.yy = AST; return parser.parse(input); } __exports__.parse = parse; return __exports__; })(__module9__, __module7__); // handlebars/compiler/javascript-compiler.js var __module11__ = (function(__dependency1__) { "use strict"; var __exports__; var COMPILER_REVISION = __dependency1__.COMPILER_REVISION; var REVISION_CHANGES = __dependency1__.REVISION_CHANGES; var log = __dependency1__.log; function Literal(value) { this.value = value; } function JavaScriptCompiler() {} JavaScriptCompiler.prototype = { // PUBLIC API: You can override these methods in a subclass to provide // alternative compiled forms for name lookup and buffering semantics nameLookup: function(parent, name /* , type*/) { var wrap, ret; if (parent.indexOf('depth') === 0) { wrap = true; } if (/^[0-9]+$/.test(name)) { ret = parent + "[" + name + "]"; } else if (JavaScriptCompiler.isValidJavaScriptVariableName(name)) { ret = parent + "." + name; } else { ret = parent + "['" + name + "']"; } if (wrap) { return '(' + parent + ' && ' + ret + ')'; } else { return ret; } }, compilerInfo: function() { var revision = COMPILER_REVISION, versions = REVISION_CHANGES[revision]; return "this.compilerInfo = ["+revision+",'"+versions+"'];\n"; }, appendToBuffer: function(string) { if (this.environment.isSimple) { return "return " + string + ";"; } else { return { appendToBuffer: true, content: string, toString: function() { return "buffer += " + string + ";"; } }; } }, initializeBuffer: function() { return this.quotedString(""); }, namespace: "Handlebars", // END PUBLIC API compile: function(environment, options, context, asObject) { this.environment = environment; this.options = options || {}; log('debug', this.environment.disassemble() + "\n\n"); this.name = this.environment.name; this.isChild = !!context; this.context = context || { programs: [], environments: [], aliases: { } }; this.preamble(); this.stackSlot = 0; this.stackVars = []; this.registers = { list: [] }; this.compileStack = []; this.inlineStack = []; this.compileChildren(environment, options); var opcodes = environment.opcodes, opcode; this.i = 0; for(var l=opcodes.length; this.i 0) { this.source[1] = this.source[1] + ", " + locals.join(", "); } // Generate minimizer alias mappings if (!this.isChild) { for (var alias in this.context.aliases) { if (this.context.aliases.hasOwnProperty(alias)) { this.source[1] = this.source[1] + ', ' + alias + '=' + this.context.aliases[alias]; } } } if (this.source[1]) { this.source[1] = "var " + this.source[1].substring(2) + ";"; } // Merge children if (!this.isChild) { this.source[1] += '\n' + this.context.programs.join('\n') + '\n'; } if (!this.environment.isSimple) { this.pushSource("return buffer;"); } var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"]; for(var i=0, l=this.environment.depths.list.length; i this.stackVars.length) { this.stackVars.push("stack" + this.stackSlot); } return this.topStackName(); }, topStackName: function() { return "stack" + this.stackSlot; }, flushInline: function() { var inlineStack = this.inlineStack; if (inlineStack.length) { this.inlineStack = []; for (var i = 0, len = inlineStack.length; i < len; i++) { var entry = inlineStack[i]; if (entry instanceof Literal) { this.compileStack.push(entry); } else { this.pushStack(entry); } } } }, isInline: function() { return this.inlineStack.length; }, popStack: function(wrapped) { var inline = this.isInline(), item = (inline ? this.inlineStack : this.compileStack).pop(); if (!wrapped && (item instanceof Literal)) { return item.value; } else { if (!inline) { this.stackSlot--; } return item; } }, topStack: function(wrapped) { var stack = (this.isInline() ? this.inlineStack : this.compileStack), item = stack[stack.length - 1]; if (!wrapped && (item instanceof Literal)) { return item.value; } else { return item; } }, quotedString: function(str) { return '"' + str .replace(/\\/g, '\\\\') .replace(/"/g, '\\"') .replace(/\n/g, '\\n') .replace(/\r/g, '\\r') .replace(/\u2028/g, '\\u2028') // Per Ecma-262 7.3 + 7.8.4 .replace(/\u2029/g, '\\u2029') + '"'; }, setupHelper: function(paramSize, name, missingParams) { var params = []; this.setupParams(paramSize, params, missingParams); var foundHelper = this.nameLookup('helpers', name, 'helper'); return { params: params, name: foundHelper, callParams: ["depth0"].concat(params).join(", "), helperMissingParams: missingParams && ["depth0", this.quotedString(name)].concat(params).join(", ") }; }, // the params and contexts arguments are passed in arrays // to fill in setupParams: function(paramSize, params, useRegister) { var options = [], contexts = [], types = [], param, inverse, program; options.push("hash:" + this.popStack()); inverse = this.popStack(); program = this.popStack(); // Avoid setting fn and inverse if neither are set. This allows // helpers to do a check for `if (options.fn)` if (program || inverse) { if (!program) { this.context.aliases.self = "this"; program = "self.noop"; } if (!inverse) { this.context.aliases.self = "this"; inverse = "self.noop"; } options.push("inverse:" + inverse); options.push("fn:" + program); } for(var i=0; i 0) { name.splice(i - 1, 2); i -= 2; } } } //end trimDots name = name.join('/'); } //Apply map config if available. if ((baseParts || starMap) && map) { nameParts = name.split('/'); for (i = nameParts.length; i > 0; i -= 1) { nameSegment = nameParts.slice(0, i).join("/"); if (baseParts) { //Find the longest baseName segment match in the config. //So, do joins on the biggest to smallest lengths of baseParts. for (j = baseParts.length; j > 0; j -= 1) { mapValue = map[baseParts.slice(0, j).join('/')]; //baseName segment has config, find if it has one for //this name. if (mapValue) { mapValue = mapValue[nameSegment]; if (mapValue) { //Match, update name to the new value. foundMap = mapValue; foundI = i; break; } } } } if (foundMap) { break; } //Check for a star map match, but just hold on to it, //if there is a shorter segment match later in a matching //config, then favor over this star map. if (!foundStarMap && starMap && starMap[nameSegment]) { foundStarMap = starMap[nameSegment]; starI = i; } } if (!foundMap && foundStarMap) { foundMap = foundStarMap; foundI = starI; } if (foundMap) { nameParts.splice(0, foundI, foundMap); name = nameParts.join('/'); } } return name; } function makeRequire(relName, forceSync) { return function () { //A version of a require function that passes a moduleName //value for items that may need to //look up paths relative to the moduleName var args = aps.call(arguments, 0); //If first arg is not require('string'), and there is only //one arg, it is the array form without a callback. Insert //a null so that the following concat is correct. if (typeof args[0] !== 'string' && args.length === 1) { args.push(null); } return req.apply(undef, args.concat([relName, forceSync])); }; } function makeNormalize(relName) { return function (name) { return normalize(name, relName); }; } function makeLoad(depName) { return function (value) { defined[depName] = value; }; } function callDep(name) { if (hasProp(waiting, name)) { var args = waiting[name]; delete waiting[name]; defining[name] = true; main.apply(undef, args); } if (!hasProp(defined, name) && !hasProp(defining, name)) { throw new Error('No ' + name); } return defined[name]; } //Turns a plugin!resource to [plugin, resource] //with the plugin being undefined if the name //did not have a plugin prefix. function splitPrefix(name) { var prefix, index = name ? name.indexOf('!') : -1; if (index > -1) { prefix = name.substring(0, index); name = name.substring(index + 1, name.length); } return [prefix, name]; } //Creates a parts array for a relName where first part is plugin ID, //second part is resource ID. Assumes relName has already been normalized. function makeRelParts(relName) { return relName ? splitPrefix(relName) : []; } /** * Makes a name map, normalizing the name, and using a plugin * for normalization if necessary. Grabs a ref to plugin * too, as an optimization. */ makeMap = function (name, relParts) { var plugin, parts = splitPrefix(name), prefix = parts[0], relResourceName = relParts[1]; name = parts[1]; if (prefix) { prefix = normalize(prefix, relResourceName); plugin = callDep(prefix); } //Normalize according if (prefix) { if (plugin && plugin.normalize) { name = plugin.normalize(name, makeNormalize(relResourceName)); } else { name = normalize(name, relResourceName); } } else { name = normalize(name, relResourceName); parts = splitPrefix(name); prefix = parts[0]; name = parts[1]; if (prefix) { plugin = callDep(prefix); } } //Using ridiculous property names for space reasons return { f: prefix ? prefix + '!' + name : name, //fullName n: name, pr: prefix, p: plugin }; }; function makeConfig(name) { return function () { return (config && config.config && config.config[name]) || {}; }; } handlers = { require: function (name) { return makeRequire(name); }, exports: function (name) { var e = defined[name]; if (typeof e !== 'undefined') { return e; } else { return (defined[name] = {}); } }, module: function (name) { return { id: name, uri: '', exports: defined[name], config: makeConfig(name) }; } }; main = function (name, deps, callback, relName) { var cjsModule, depName, ret, map, i, relParts, args = [], callbackType = typeof callback, usingExports; //Use name if no relName relName = relName || name; relParts = makeRelParts(relName); //Call the callback to define the module, if necessary. if (callbackType === 'undefined' || callbackType === 'function') { //Pull out the defined dependencies and pass the ordered //values to the callback. //Default to [require, exports, module] if no deps deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps; for (i = 0; i < deps.length; i += 1) { map = makeMap(deps[i], relParts); depName = map.f; //Fast path CommonJS standard dependencies. if (depName === "require") { args[i] = handlers.require(name); } else if (depName === "exports") { //CommonJS module spec 1.1 args[i] = handlers.exports(name); usingExports = true; } else if (depName === "module") { //CommonJS module spec 1.1 cjsModule = args[i] = handlers.module(name); } else if (hasProp(defined, depName) || hasProp(waiting, depName) || hasProp(defining, depName)) { args[i] = callDep(depName); } else if (map.p) { map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {}); args[i] = defined[depName]; } else { throw new Error(name + ' missing ' + depName); } } ret = callback ? callback.apply(defined[name], args) : undefined; if (name) { //If setting exports via "module" is in play, //favor that over return value and exports. After that, //favor a non-undefined return value over exports use. if (cjsModule && cjsModule.exports !== undef && cjsModule.exports !== defined[name]) { defined[name] = cjsModule.exports; } else if (ret !== undef || !usingExports) { //Use the return value from the function. defined[name] = ret; } } } else if (name) { //May just be an object definition for the module. Only //worry about defining if have a module name. defined[name] = callback; } }; requirejs = require = req = function (deps, callback, relName, forceSync, alt) { if (typeof deps === "string") { if (handlers[deps]) { //callback in this case is really relName return handlers[deps](callback); } //Just return the module wanted. In this scenario, the //deps arg is the module name, and second arg (if passed) //is just the relName. //Normalize module name, if it contains . or .. return callDep(makeMap(deps, makeRelParts(callback)).f); } else if (!deps.splice) { //deps is a config object, not an array. config = deps; if (config.deps) { req(config.deps, config.callback); } if (!callback) { return; } if (callback.splice) { //callback is an array, which means it is a dependency list. //Adjust args if there are dependencies deps = callback; callback = relName; relName = null; } else { deps = undef; } } //Support require(['a']) callback = callback || function () {}; //If relName is a function, it is an errback handler, //so remove it. if (typeof relName === 'function') { relName = forceSync; forceSync = alt; } //Simulate async callback; if (forceSync) { main(undef, deps, callback, relName); } else { //Using a non-zero value because of concern for what old browsers //do, and latest browsers "upgrade" to 4 if lower value is used: //http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout: //If want a value immediately, use require('id') instead -- something //that works in almond on the global level, but not guaranteed and //unlikely to work in other AMD implementations. setTimeout(function () { main(undef, deps, callback, relName); }, 4); } return req; }; /** * Just drops the config on the floor, but returns req in case * the config return value is used. */ req.config = function (cfg) { return req(cfg); }; /** * Expose module registry for debugging and tooling */ requirejs._defined = defined; define = function (name, deps, callback) { if (typeof name !== 'string') { throw new Error('See almond README: incorrect module build, no module name'); } //This module may not have dependencies if (!deps.splice) { //deps is not an array, so probably means //an object literal or factory function for //the value. Adjust args. callback = deps; deps = []; } if (!hasProp(defined, name) && !hasProp(waiting, name)) { waiting[name] = [name, deps, callback]; } }; define.amd = { jQuery: true }; }()); S2.requirejs = requirejs;S2.require = require;S2.define = define; } }()); S2.define("almond", function(){}); /* global jQuery:false, $:false */ S2.define('jquery',[],function () { var _$ = jQuery || $; if (_$ == null && console && console.error) { console.error( 'Select2: An instance of jQuery or a jQuery-compatible library was not ' + 'found. Make sure that you are including jQuery before Select2 on your ' + 'web page.' ); } return _$; }); S2.define('select2/utils',[ 'jquery' ], function ($) { var Utils = {}; Utils.Extend = function (ChildClass, SuperClass) { var __hasProp = {}.hasOwnProperty; function BaseConstructor () { this.constructor = ChildClass; } for (var key in SuperClass) { if (__hasProp.call(SuperClass, key)) { ChildClass[key] = SuperClass[key]; } } BaseConstructor.prototype = SuperClass.prototype; ChildClass.prototype = new BaseConstructor(); ChildClass.__super__ = SuperClass.prototype; return ChildClass; }; function getMethods (theClass) { var proto = theClass.prototype; var methods = []; for (var methodName in proto) { var m = proto[methodName]; if (typeof m !== 'function') { continue; } if (methodName === 'constructor') { continue; } methods.push(methodName); } return methods; } Utils.Decorate = function (SuperClass, DecoratorClass) { var decoratedMethods = getMethods(DecoratorClass); var superMethods = getMethods(SuperClass); function DecoratedClass () { var unshift = Array.prototype.unshift; var argCount = DecoratorClass.prototype.constructor.length; var calledConstructor = SuperClass.prototype.constructor; if (argCount > 0) { unshift.call(arguments, SuperClass.prototype.constructor); calledConstructor = DecoratorClass.prototype.constructor; } calledConstructor.apply(this, arguments); } DecoratorClass.displayName = SuperClass.displayName; function ctr () { this.constructor = DecoratedClass; } DecoratedClass.prototype = new ctr(); for (var m = 0; m < superMethods.length; m++) { var superMethod = superMethods[m]; DecoratedClass.prototype[superMethod] = SuperClass.prototype[superMethod]; } var calledMethod = function (methodName) { // Stub out the original method if it's not decorating an actual method var originalMethod = function () {}; if (methodName in DecoratedClass.prototype) { originalMethod = DecoratedClass.prototype[methodName]; } var decoratedMethod = DecoratorClass.prototype[methodName]; return function () { var unshift = Array.prototype.unshift; unshift.call(arguments, originalMethod); return decoratedMethod.apply(this, arguments); }; }; for (var d = 0; d < decoratedMethods.length; d++) { var decoratedMethod = decoratedMethods[d]; DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod); } return DecoratedClass; }; var Observable = function () { this.listeners = {}; }; Observable.prototype.on = function (event, callback) { this.listeners = this.listeners || {}; if (event in this.listeners) { this.listeners[event].push(callback); } else { this.listeners[event] = [callback]; } }; Observable.prototype.trigger = function (event) { var slice = Array.prototype.slice; var params = slice.call(arguments, 1); this.listeners = this.listeners || {}; // Params should always come in as an array if (params == null) { params = []; } // If there are no arguments to the event, use a temporary object if (params.length === 0) { params.push({}); } // Set the `_type` of the first object to the event params[0]._type = event; if (event in this.listeners) { this.invoke(this.listeners[event], slice.call(arguments, 1)); } if ('*' in this.listeners) { this.invoke(this.listeners['*'], arguments); } }; Observable.prototype.invoke = function (listeners, params) { for (var i = 0, len = listeners.length; i < len; i++) { listeners[i].apply(this, params); } }; Utils.Observable = Observable; Utils.generateChars = function (length) { var chars = ''; for (var i = 0; i < length; i++) { var randomChar = Math.floor(Math.random() * 36); chars += randomChar.toString(36); } return chars; }; Utils.bind = function (func, context) { return function () { func.apply(context, arguments); }; }; Utils._convertData = function (data) { for (var originalKey in data) { var keys = originalKey.split('-'); var dataLevel = data; if (keys.length === 1) { continue; } for (var k = 0; k < keys.length; k++) { var key = keys[k]; // Lowercase the first letter // By default, dash-separated becomes camelCase key = key.substring(0, 1).toLowerCase() + key.substring(1); if (!(key in dataLevel)) { dataLevel[key] = {}; } if (k == keys.length - 1) { dataLevel[key] = data[originalKey]; } dataLevel = dataLevel[key]; } delete data[originalKey]; } return data; }; Utils.hasScroll = function (index, el) { // Adapted from the function created by @ShadowScripter // and adapted by @BillBarry on the Stack Exchange Code Review website. // The original code can be found at // http://codereview.stackexchange.com/q/13338 // and was designed to be used with the Sizzle selector engine. var $el = $(el); var overflowX = el.style.overflowX; var overflowY = el.style.overflowY; //Check both x and y declarations if (overflowX === overflowY && (overflowY === 'hidden' || overflowY === 'visible')) { return false; } if (overflowX === 'scroll' || overflowY === 'scroll') { return true; } return ($el.innerHeight() < el.scrollHeight || $el.innerWidth() < el.scrollWidth); }; Utils.escapeMarkup = function (markup) { var replaceMap = { '\\': '\', '&': '&', '<': '<', '>': '>', '"': '"', '\'': ''', '/': '/' }; // Do not try to escape the markup if it's not a string if (typeof markup !== 'string') { return markup; } return String(markup).replace(/[&<>"'\/\\]/g, function (match) { return replaceMap[match]; }); }; // Append an array of jQuery nodes to a given element. Utils.appendMany = function ($element, $nodes) { // jQuery 1.7.x does not support $.fn.append() with an array // Fall back to a jQuery object collection using $.fn.add() if ($.fn.jquery.substr(0, 3) === '1.7') { var $jqNodes = $(); $.map($nodes, function (node) { $jqNodes = $jqNodes.add(node); }); $nodes = $jqNodes; } $element.append($nodes); }; // Cache objects in Utils.__cache instead of $.data (see #4346) Utils.__cache = {}; var id = 0; Utils.GetUniqueElementId = function (element) { // Get a unique element Id. If element has no id, // creates a new unique number, stores it in the id // attribute and returns the new id. // If an id already exists, it simply returns it. var select2Id = element.getAttribute('data-select2-id'); if (select2Id == null) { // If element has id, use it. if (element.id) { select2Id = element.id; element.setAttribute('data-select2-id', select2Id); } else { element.setAttribute('data-select2-id', ++id); select2Id = id.toString(); } } return select2Id; }; Utils.StoreData = function (element, name, value) { // Stores an item in the cache for a specified element. // name is the cache key. var id = Utils.GetUniqueElementId(element); if (!Utils.__cache[id]) { Utils.__cache[id] = {}; } Utils.__cache[id][name] = value; }; Utils.GetData = function (element, name) { // Retrieves a value from the cache by its key (name) // name is optional. If no name specified, return // all cache items for the specified element. // and for a specified element. var id = Utils.GetUniqueElementId(element); if (name) { if (Utils.__cache[id]) { if (Utils.__cache[id][name] != null) { return Utils.__cache[id][name]; } return $(element).data(name); // Fallback to HTML5 data attribs. } return $(element).data(name); // Fallback to HTML5 data attribs. } else { return Utils.__cache[id]; } }; Utils.RemoveData = function (element) { // Removes all cached items for a specified element. var id = Utils.GetUniqueElementId(element); if (Utils.__cache[id] != null) { delete Utils.__cache[id]; } element.removeAttribute('data-select2-id'); }; return Utils; }); S2.define('select2/results',[ 'jquery', './utils' ], function ($, Utils) { function Results ($element, options, dataAdapter) { this.$element = $element; this.data = dataAdapter; this.options = options; Results.__super__.constructor.call(this); } Utils.Extend(Results, Utils.Observable); Results.prototype.render = function () { var $results = $( '
      ' ); if (this.options.get('multiple')) { $results.attr('aria-multiselectable', 'true'); } this.$results = $results; return $results; }; Results.prototype.clear = function () { this.$results.empty(); }; Results.prototype.displayMessage = function (params) { var escapeMarkup = this.options.get('escapeMarkup'); this.clear(); this.hideLoading(); var $message = $( '' ); var message = this.options.get('translations').get(params.message); $message.append( escapeMarkup( message(params.args) ) ); $message[0].className += ' select2-results__message'; this.$results.append($message); }; Results.prototype.hideMessages = function () { this.$results.find('.select2-results__message').remove(); }; Results.prototype.append = function (data) { this.hideLoading(); var $options = []; if (data.results == null || data.results.length === 0) { if (this.$results.children().length === 0) { this.trigger('results:message', { message: 'noResults' }); } return; } data.results = this.sort(data.results); for (var d = 0; d < data.results.length; d++) { var item = data.results[d]; var $option = this.option(item); $options.push($option); } this.$results.append($options); }; Results.prototype.position = function ($results, $dropdown) { var $resultsContainer = $dropdown.find('.select2-results'); $resultsContainer.append($results); }; Results.prototype.sort = function (data) { var sorter = this.options.get('sorter'); return sorter(data); }; Results.prototype.highlightFirstItem = function () { var $options = this.$results .find('.select2-results__option[aria-selected]'); var $selected = $options.filter('[aria-selected=true]'); // Check if there are any selected options if ($selected.length > 0) { // If there are selected options, highlight the first $selected.first().trigger('mouseenter'); } else { // If there are no selected options, highlight the first option // in the dropdown $options.first().trigger('mouseenter'); } this.ensureHighlightVisible(); }; Results.prototype.setClasses = function () { var self = this; this.data.current(function (selected) { var selectedIds = $.map(selected, function (s) { return s.id.toString(); }); var $options = self.$results .find('.select2-results__option[aria-selected]'); $options.each(function () { var $option = $(this); var item = Utils.GetData(this, 'data'); // id needs to be converted to a string when comparing var id = '' + item.id; if ((item.element != null && item.element.selected) || (item.element == null && $.inArray(id, selectedIds) > -1)) { $option.attr('aria-selected', 'true'); } else { $option.attr('aria-selected', 'false'); } }); }); }; Results.prototype.showLoading = function (params) { this.hideLoading(); var loadingMore = this.options.get('translations').get('searching'); var loading = { disabled: true, loading: true, text: loadingMore(params) }; var $loading = this.option(loading); $loading.className += ' loading-results'; this.$results.prepend($loading); }; Results.prototype.hideLoading = function () { this.$results.find('.loading-results').remove(); }; Results.prototype.option = function (data) { var option = document.createElement('li'); option.className = 'select2-results__option'; var attrs = { 'role': 'option', 'aria-selected': 'false' }; var matches = window.Element.prototype.matches || window.Element.prototype.msMatchesSelector || window.Element.prototype.webkitMatchesSelector; if ((data.element != null && matches.call(data.element, ':disabled')) || (data.element == null && data.disabled)) { delete attrs['aria-selected']; attrs['aria-disabled'] = 'true'; } if (data.id == null) { delete attrs['aria-selected']; } if (data._resultId != null) { option.id = data._resultId; } if (data.title) { option.title = data.title; } if (data.children) { attrs.role = 'group'; attrs['aria-label'] = data.text; delete attrs['aria-selected']; } for (var attr in attrs) { var val = attrs[attr]; option.setAttribute(attr, val); } if (data.children) { var $option = $(option); var label = document.createElement('strong'); label.className = 'select2-results__group'; var $label = $(label); this.template(data, label); var $children = []; for (var c = 0; c < data.children.length; c++) { var child = data.children[c]; var $child = this.option(child); $children.push($child); } var $childrenContainer = $('
        ', { 'class': 'select2-results__options select2-results__options--nested' }); $childrenContainer.append($children); $option.append(label); $option.append($childrenContainer); } else { this.template(data, option); } Utils.StoreData(option, 'data', data); return option; }; Results.prototype.bind = function (container, $container) { var self = this; var id = container.id + '-results'; this.$results.attr('id', id); container.on('results:all', function (params) { self.clear(); self.append(params.data); if (container.isOpen()) { self.setClasses(); self.highlightFirstItem(); } }); container.on('results:append', function (params) { self.append(params.data); if (container.isOpen()) { self.setClasses(); } }); container.on('query', function (params) { self.hideMessages(); self.showLoading(params); }); container.on('select', function () { if (!container.isOpen()) { return; } self.setClasses(); if (self.options.get('scrollAfterSelect')) { self.highlightFirstItem(); } }); container.on('unselect', function () { if (!container.isOpen()) { return; } self.setClasses(); if (self.options.get('scrollAfterSelect')) { self.highlightFirstItem(); } }); container.on('open', function () { // When the dropdown is open, aria-expended="true" self.$results.attr('aria-expanded', 'true'); self.$results.attr('aria-hidden', 'false'); self.setClasses(); self.ensureHighlightVisible(); }); container.on('close', function () { // When the dropdown is closed, aria-expended="false" self.$results.attr('aria-expanded', 'false'); self.$results.attr('aria-hidden', 'true'); self.$results.removeAttr('aria-activedescendant'); }); container.on('results:toggle', function () { var $highlighted = self.getHighlightedResults(); if ($highlighted.length === 0) { return; } $highlighted.trigger('mouseup'); }); container.on('results:select', function () { var $highlighted = self.getHighlightedResults(); if ($highlighted.length === 0) { return; } var data = Utils.GetData($highlighted[0], 'data'); if ($highlighted.attr('aria-selected') == 'true') { self.trigger('close', {}); } else { self.trigger('select', { data: data }); } }); container.on('results:previous', function () { var $highlighted = self.getHighlightedResults(); var $options = self.$results.find('[aria-selected]'); var currentIndex = $options.index($highlighted); // If we are already at the top, don't move further // If no options, currentIndex will be -1 if (currentIndex <= 0) { return; } var nextIndex = currentIndex - 1; // If none are highlighted, highlight the first if ($highlighted.length === 0) { nextIndex = 0; } var $next = $options.eq(nextIndex); $next.trigger('mouseenter'); var currentOffset = self.$results.offset().top; var nextTop = $next.offset().top; var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset); if (nextIndex === 0) { self.$results.scrollTop(0); } else if (nextTop - currentOffset < 0) { self.$results.scrollTop(nextOffset); } }); container.on('results:next', function () { var $highlighted = self.getHighlightedResults(); var $options = self.$results.find('[aria-selected]'); var currentIndex = $options.index($highlighted); var nextIndex = currentIndex + 1; // If we are at the last option, stay there if (nextIndex >= $options.length) { return; } var $next = $options.eq(nextIndex); $next.trigger('mouseenter'); var currentOffset = self.$results.offset().top + self.$results.outerHeight(false); var nextBottom = $next.offset().top + $next.outerHeight(false); var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset; if (nextIndex === 0) { self.$results.scrollTop(0); } else if (nextBottom > currentOffset) { self.$results.scrollTop(nextOffset); } }); container.on('results:focus', function (params) { params.element.addClass('select2-results__option--highlighted'); }); container.on('results:message', function (params) { self.displayMessage(params); }); if ($.fn.mousewheel) { this.$results.on('mousewheel', function (e) { var top = self.$results.scrollTop(); var bottom = self.$results.get(0).scrollHeight - top + e.deltaY; var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0; var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height(); if (isAtTop) { self.$results.scrollTop(0); e.preventDefault(); e.stopPropagation(); } else if (isAtBottom) { self.$results.scrollTop( self.$results.get(0).scrollHeight - self.$results.height() ); e.preventDefault(); e.stopPropagation(); } }); } this.$results.on('mouseup', '.select2-results__option[aria-selected]', function (evt) { var $this = $(this); var data = Utils.GetData(this, 'data'); if ($this.attr('aria-selected') === 'true') { if (self.options.get('multiple')) { self.trigger('unselect', { originalEvent: evt, data: data }); } else { self.trigger('close', {}); } return; } self.trigger('select', { originalEvent: evt, data: data }); }); this.$results.on('mouseenter', '.select2-results__option[aria-selected]', function (evt) { var data = Utils.GetData(this, 'data'); self.getHighlightedResults() .removeClass('select2-results__option--highlighted'); self.trigger('results:focus', { data: data, element: $(this) }); }); }; Results.prototype.getHighlightedResults = function () { var $highlighted = this.$results .find('.select2-results__option--highlighted'); return $highlighted; }; Results.prototype.destroy = function () { this.$results.remove(); }; Results.prototype.ensureHighlightVisible = function () { var $highlighted = this.getHighlightedResults(); if ($highlighted.length === 0) { return; } var $options = this.$results.find('[aria-selected]'); var currentIndex = $options.index($highlighted); var currentOffset = this.$results.offset().top; var nextTop = $highlighted.offset().top; var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset); var offsetDelta = nextTop - currentOffset; nextOffset -= $highlighted.outerHeight(false) * 2; if (currentIndex <= 2) { this.$results.scrollTop(0); } else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) { this.$results.scrollTop(nextOffset); } }; Results.prototype.template = function (result, container) { var template = this.options.get('templateResult'); var escapeMarkup = this.options.get('escapeMarkup'); var content = template(result, container); if (content == null) { container.style.display = 'none'; } else if (typeof content === 'string') { container.innerHTML = escapeMarkup(content); } else { $(container).append(content); } }; return Results; }); S2.define('select2/keys',[ ], function () { var KEYS = { BACKSPACE: 8, TAB: 9, ENTER: 13, SHIFT: 16, CTRL: 17, ALT: 18, ESC: 27, SPACE: 32, PAGE_UP: 33, PAGE_DOWN: 34, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, DELETE: 46 }; return KEYS; }); S2.define('select2/selection/base',[ 'jquery', '../utils', '../keys' ], function ($, Utils, KEYS) { function BaseSelection ($element, options) { this.$element = $element; this.options = options; BaseSelection.__super__.constructor.call(this); } Utils.Extend(BaseSelection, Utils.Observable); BaseSelection.prototype.render = function () { var $selection = $( '' ); this._tabindex = 0; if (Utils.GetData(this.$element[0], 'old-tabindex') != null) { this._tabindex = Utils.GetData(this.$element[0], 'old-tabindex'); } else if (this.$element.attr('tabindex') != null) { this._tabindex = this.$element.attr('tabindex'); } $selection.attr('title', this.$element.attr('title')); $selection.attr('tabindex', this._tabindex); $selection.attr('aria-disabled', 'false'); this.$selection = $selection; return $selection; }; BaseSelection.prototype.bind = function (container, $container) { var self = this; var resultsId = container.id + '-results'; this.container = container; this.$selection.on('focus', function (evt) { self.trigger('focus', evt); }); this.$selection.on('blur', function (evt) { self._handleBlur(evt); }); this.$selection.on('keydown', function (evt) { self.trigger('keypress', evt); if (evt.which === KEYS.SPACE) { evt.preventDefault(); } }); container.on('results:focus', function (params) { self.$selection.attr('aria-activedescendant', params.data._resultId); }); container.on('selection:update', function (params) { self.update(params.data); }); container.on('open', function () { // When the dropdown is open, aria-expanded="true" self.$selection.attr('aria-expanded', 'true'); self.$selection.attr('aria-owns', resultsId); self._attachCloseHandler(container); }); container.on('close', function () { // When the dropdown is closed, aria-expanded="false" self.$selection.attr('aria-expanded', 'false'); self.$selection.removeAttr('aria-activedescendant'); self.$selection.removeAttr('aria-owns'); self.$selection.trigger('focus'); self._detachCloseHandler(container); }); container.on('enable', function () { self.$selection.attr('tabindex', self._tabindex); self.$selection.attr('aria-disabled', 'false'); }); container.on('disable', function () { self.$selection.attr('tabindex', '-1'); self.$selection.attr('aria-disabled', 'true'); }); }; BaseSelection.prototype._handleBlur = function (evt) { var self = this; // This needs to be delayed as the active element is the body when the tab // key is pressed, possibly along with others. window.setTimeout(function () { // Don't trigger `blur` if the focus is still in the selection if ( (document.activeElement == self.$selection[0]) || ($.contains(self.$selection[0], document.activeElement)) ) { return; } self.trigger('blur', evt); }, 1); }; BaseSelection.prototype._attachCloseHandler = function (container) { $(document.body).on('mousedown.select2.' + container.id, function (e) { var $target = $(e.target); var $select = $target.closest('.select2'); var $all = $('.select2.select2-container--open'); $all.each(function () { if (this == $select[0]) { return; } var $element = Utils.GetData(this, 'element'); $element.select2('close'); }); }); }; BaseSelection.prototype._detachCloseHandler = function (container) { $(document.body).off('mousedown.select2.' + container.id); }; BaseSelection.prototype.position = function ($selection, $container) { var $selectionContainer = $container.find('.selection'); $selectionContainer.append($selection); }; BaseSelection.prototype.destroy = function () { this._detachCloseHandler(this.container); }; BaseSelection.prototype.update = function (data) { throw new Error('The `update` method must be defined in child classes.'); }; return BaseSelection; }); S2.define('select2/selection/single',[ 'jquery', './base', '../utils', '../keys' ], function ($, BaseSelection, Utils, KEYS) { function SingleSelection () { SingleSelection.__super__.constructor.apply(this, arguments); } Utils.Extend(SingleSelection, BaseSelection); SingleSelection.prototype.render = function () { var $selection = SingleSelection.__super__.render.call(this); $selection.addClass('select2-selection--single'); $selection.html( '' + '' + '' + '' ); return $selection; }; SingleSelection.prototype.bind = function (container, $container) { var self = this; SingleSelection.__super__.bind.apply(this, arguments); var id = container.id + '-container'; this.$selection.find('.select2-selection__rendered') .attr('id', id) .attr('role', 'textbox') .attr('aria-readonly', 'true'); this.$selection.attr('aria-labelledby', id); this.$selection.on('mousedown', function (evt) { // Only respond to left clicks if (evt.which !== 1) { return; } self.trigger('toggle', { originalEvent: evt }); }); this.$selection.on('focus', function (evt) { // User focuses on the container }); this.$selection.on('blur', function (evt) { // User exits the container }); container.on('focus', function (evt) { if (!container.isOpen()) { self.$selection.trigger('focus'); } }); }; SingleSelection.prototype.clear = function () { var $rendered = this.$selection.find('.select2-selection__rendered'); $rendered.empty(); $rendered.removeAttr('title'); // clear tooltip on empty }; SingleSelection.prototype.display = function (data, container) { var template = this.options.get('templateSelection'); var escapeMarkup = this.options.get('escapeMarkup'); return escapeMarkup(template(data, container)); }; SingleSelection.prototype.selectionContainer = function () { return $(''); }; SingleSelection.prototype.update = function (data) { if (data.length === 0) { this.clear(); return; } var selection = data[0]; var $rendered = this.$selection.find('.select2-selection__rendered'); var formatted = this.display(selection, $rendered); $rendered.empty().append(formatted); var title = selection.title || selection.text; if (title) { $rendered.attr('title', title); } else { $rendered.removeAttr('title'); } }; return SingleSelection; }); S2.define('select2/selection/multiple',[ 'jquery', './base', '../utils' ], function ($, BaseSelection, Utils) { function MultipleSelection ($element, options) { MultipleSelection.__super__.constructor.apply(this, arguments); } Utils.Extend(MultipleSelection, BaseSelection); MultipleSelection.prototype.render = function () { var $selection = MultipleSelection.__super__.render.call(this); $selection.addClass('select2-selection--multiple'); $selection.html( '
          ' ); return $selection; }; MultipleSelection.prototype.bind = function (container, $container) { var self = this; MultipleSelection.__super__.bind.apply(this, arguments); this.$selection.on('click', function (evt) { self.trigger('toggle', { originalEvent: evt }); }); this.$selection.on( 'click', '.select2-selection__choice__remove', function (evt) { // Ignore the event if it is disabled if (self.options.get('disabled')) { return; } var $remove = $(this); var $selection = $remove.parent(); var data = Utils.GetData($selection[0], 'data'); self.trigger('unselect', { originalEvent: evt, data: data }); } ); }; MultipleSelection.prototype.clear = function () { var $rendered = this.$selection.find('.select2-selection__rendered'); $rendered.empty(); $rendered.removeAttr('title'); }; MultipleSelection.prototype.display = function (data, container) { var template = this.options.get('templateSelection'); var escapeMarkup = this.options.get('escapeMarkup'); return escapeMarkup(template(data, container)); }; MultipleSelection.prototype.selectionContainer = function () { var $container = $( '
        • ' + '' + '×' + '' + '
        • ' ); return $container; }; MultipleSelection.prototype.update = function (data) { this.clear(); if (data.length === 0) { return; } var $selections = []; for (var d = 0; d < data.length; d++) { var selection = data[d]; var $selection = this.selectionContainer(); var formatted = this.display(selection, $selection); $selection.append(formatted); var title = selection.title || selection.text; if (title) { $selection.attr('title', title); } Utils.StoreData($selection[0], 'data', selection); $selections.push($selection); } var $rendered = this.$selection.find('.select2-selection__rendered'); Utils.appendMany($rendered, $selections); }; return MultipleSelection; }); S2.define('select2/selection/placeholder',[ '../utils' ], function (Utils) { function Placeholder (decorated, $element, options) { this.placeholder = this.normalizePlaceholder(options.get('placeholder')); decorated.call(this, $element, options); } Placeholder.prototype.normalizePlaceholder = function (_, placeholder) { if (typeof placeholder === 'string') { placeholder = { id: '', text: placeholder }; } return placeholder; }; Placeholder.prototype.createPlaceholder = function (decorated, placeholder) { var $placeholder = this.selectionContainer(); $placeholder.html(this.display(placeholder)); $placeholder.addClass('select2-selection__placeholder') .removeClass('select2-selection__choice'); return $placeholder; }; Placeholder.prototype.update = function (decorated, data) { var singlePlaceholder = ( data.length == 1 && data[0].id != this.placeholder.id ); var multipleSelections = data.length > 1; if (multipleSelections || singlePlaceholder) { return decorated.call(this, data); } this.clear(); var $placeholder = this.createPlaceholder(this.placeholder); this.$selection.find('.select2-selection__rendered').append($placeholder); }; return Placeholder; }); S2.define('select2/selection/allowClear',[ 'jquery', '../keys', '../utils' ], function ($, KEYS, Utils) { function AllowClear () { } AllowClear.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); if (this.placeholder == null) { if (this.options.get('debug') && window.console && console.error) { console.error( 'Select2: The `allowClear` option should be used in combination ' + 'with the `placeholder` option.' ); } } this.$selection.on('mousedown', '.select2-selection__clear', function (evt) { self._handleClear(evt); }); container.on('keypress', function (evt) { self._handleKeyboardClear(evt, container); }); }; AllowClear.prototype._handleClear = function (_, evt) { // Ignore the event if it is disabled if (this.options.get('disabled')) { return; } var $clear = this.$selection.find('.select2-selection__clear'); // Ignore the event if nothing has been selected if ($clear.length === 0) { return; } evt.stopPropagation(); var data = Utils.GetData($clear[0], 'data'); var previousVal = this.$element.val(); this.$element.val(this.placeholder.id); var unselectData = { data: data }; this.trigger('clear', unselectData); if (unselectData.prevented) { this.$element.val(previousVal); return; } for (var d = 0; d < data.length; d++) { unselectData = { data: data[d] }; // Trigger the `unselect` event, so people can prevent it from being // cleared. this.trigger('unselect', unselectData); // If the event was prevented, don't clear it out. if (unselectData.prevented) { this.$element.val(previousVal); return; } } this.$element.trigger('change'); this.trigger('toggle', {}); }; AllowClear.prototype._handleKeyboardClear = function (_, evt, container) { if (container.isOpen()) { return; } if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) { this._handleClear(evt); } }; AllowClear.prototype.update = function (decorated, data) { decorated.call(this, data); if (this.$selection.find('.select2-selection__placeholder').length > 0 || data.length === 0) { return; } var removeAll = this.options.get('translations').get('removeAllItems'); var $remove = $( '' + '×' + '' ); Utils.StoreData($remove[0], 'data', data); this.$selection.find('.select2-selection__rendered').prepend($remove); }; return AllowClear; }); S2.define('select2/selection/search',[ 'jquery', '../utils', '../keys' ], function ($, Utils, KEYS) { function Search (decorated, $element, options) { decorated.call(this, $element, options); } Search.prototype.render = function (decorated) { var $search = $( '' ); this.$searchContainer = $search; this.$search = $search.find('input'); var $rendered = decorated.call(this); this._transferTabIndex(); return $rendered; }; Search.prototype.bind = function (decorated, container, $container) { var self = this; var resultsId = container.id + '-results'; decorated.call(this, container, $container); container.on('open', function () { self.$search.attr('aria-controls', resultsId); self.$search.trigger('focus'); }); container.on('close', function () { self.$search.val(''); self.$search.removeAttr('aria-controls'); self.$search.removeAttr('aria-activedescendant'); self.$search.trigger('focus'); }); container.on('enable', function () { self.$search.prop('disabled', false); self._transferTabIndex(); }); container.on('disable', function () { self.$search.prop('disabled', true); }); container.on('focus', function (evt) { self.$search.trigger('focus'); }); container.on('results:focus', function (params) { if (params.data._resultId) { self.$search.attr('aria-activedescendant', params.data._resultId); } else { self.$search.removeAttr('aria-activedescendant'); } }); this.$selection.on('focusin', '.select2-search--inline', function (evt) { self.trigger('focus', evt); }); this.$selection.on('focusout', '.select2-search--inline', function (evt) { self._handleBlur(evt); }); this.$selection.on('keydown', '.select2-search--inline', function (evt) { evt.stopPropagation(); self.trigger('keypress', evt); self._keyUpPrevented = evt.isDefaultPrevented(); var key = evt.which; if (key === KEYS.BACKSPACE && self.$search.val() === '') { var $previousChoice = self.$searchContainer .prev('.select2-selection__choice'); if ($previousChoice.length > 0) { var item = Utils.GetData($previousChoice[0], 'data'); self.searchRemoveChoice(item); evt.preventDefault(); } } }); this.$selection.on('click', '.select2-search--inline', function (evt) { if (self.$search.val()) { evt.stopPropagation(); } }); // Try to detect the IE version should the `documentMode` property that // is stored on the document. This is only implemented in IE and is // slightly cleaner than doing a user agent check. // This property is not available in Edge, but Edge also doesn't have // this bug. var msie = document.documentMode; var disableInputEvents = msie && msie <= 11; // Workaround for browsers which do not support the `input` event // This will prevent double-triggering of events for browsers which support // both the `keyup` and `input` events. this.$selection.on( 'input.searchcheck', '.select2-search--inline', function (evt) { // IE will trigger the `input` event when a placeholder is used on a // search box. To get around this issue, we are forced to ignore all // `input` events in IE and keep using `keyup`. if (disableInputEvents) { self.$selection.off('input.search input.searchcheck'); return; } // Unbind the duplicated `keyup` event self.$selection.off('keyup.search'); } ); this.$selection.on( 'keyup.search input.search', '.select2-search--inline', function (evt) { // IE will trigger the `input` event when a placeholder is used on a // search box. To get around this issue, we are forced to ignore all // `input` events in IE and keep using `keyup`. if (disableInputEvents && evt.type === 'input') { self.$selection.off('input.search input.searchcheck'); return; } var key = evt.which; // We can freely ignore events from modifier keys if (key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT) { return; } // Tabbing will be handled during the `keydown` phase if (key == KEYS.TAB) { return; } self.handleSearch(evt); } ); }; /** * This method will transfer the tabindex attribute from the rendered * selection to the search box. This allows for the search box to be used as * the primary focus instead of the selection container. * * @private */ Search.prototype._transferTabIndex = function (decorated) { this.$search.attr('tabindex', this.$selection.attr('tabindex')); this.$selection.attr('tabindex', '-1'); }; Search.prototype.createPlaceholder = function (decorated, placeholder) { this.$search.attr('placeholder', placeholder.text); }; Search.prototype.update = function (decorated, data) { var searchHadFocus = this.$search[0] == document.activeElement; this.$search.attr('placeholder', ''); decorated.call(this, data); this.$selection.find('.select2-selection__rendered') .append(this.$searchContainer); this.resizeSearch(); if (searchHadFocus) { this.$search.trigger('focus'); } }; Search.prototype.handleSearch = function () { this.resizeSearch(); if (!this._keyUpPrevented) { var input = this.$search.val(); this.trigger('query', { term: input }); } this._keyUpPrevented = false; }; Search.prototype.searchRemoveChoice = function (decorated, item) { this.trigger('unselect', { data: item }); this.$search.val(item.text); this.handleSearch(); }; Search.prototype.resizeSearch = function () { this.$search.css('width', '25px'); var width = ''; if (this.$search.attr('placeholder') !== '') { width = this.$selection.find('.select2-selection__rendered').width(); } else { var minimumWidth = this.$search.val().length + 1; width = (minimumWidth * 0.75) + 'em'; } this.$search.css('width', width); }; return Search; }); S2.define('select2/selection/eventRelay',[ 'jquery' ], function ($) { function EventRelay () { } EventRelay.prototype.bind = function (decorated, container, $container) { var self = this; var relayEvents = [ 'open', 'opening', 'close', 'closing', 'select', 'selecting', 'unselect', 'unselecting', 'clear', 'clearing' ]; var preventableEvents = [ 'opening', 'closing', 'selecting', 'unselecting', 'clearing' ]; decorated.call(this, container, $container); container.on('*', function (name, params) { // Ignore events that should not be relayed if ($.inArray(name, relayEvents) === -1) { return; } // The parameters should always be an object params = params || {}; // Generate the jQuery event for the Select2 event var evt = $.Event('select2:' + name, { params: params }); self.$element.trigger(evt); // Only handle preventable events if it was one if ($.inArray(name, preventableEvents) === -1) { return; } params.prevented = evt.isDefaultPrevented(); }); }; return EventRelay; }); S2.define('select2/translation',[ 'jquery', 'require' ], function ($, require) { function Translation (dict) { this.dict = dict || {}; } Translation.prototype.all = function () { return this.dict; }; Translation.prototype.get = function (key) { return this.dict[key]; }; Translation.prototype.extend = function (translation) { this.dict = $.extend({}, translation.all(), this.dict); }; // Static functions Translation._cache = {}; Translation.loadPath = function (path) { if (!(path in Translation._cache)) { var translations = require(path); Translation._cache[path] = translations; } return new Translation(Translation._cache[path]); }; return Translation; }); S2.define('select2/diacritics',[ ], function () { var diacritics = { '\u24B6': 'A', '\uFF21': 'A', '\u00C0': 'A', '\u00C1': 'A', '\u00C2': 'A', '\u1EA6': 'A', '\u1EA4': 'A', '\u1EAA': 'A', '\u1EA8': 'A', '\u00C3': 'A', '\u0100': 'A', '\u0102': 'A', '\u1EB0': 'A', '\u1EAE': 'A', '\u1EB4': 'A', '\u1EB2': 'A', '\u0226': 'A', '\u01E0': 'A', '\u00C4': 'A', '\u01DE': 'A', '\u1EA2': 'A', '\u00C5': 'A', '\u01FA': 'A', '\u01CD': 'A', '\u0200': 'A', '\u0202': 'A', '\u1EA0': 'A', '\u1EAC': 'A', '\u1EB6': 'A', '\u1E00': 'A', '\u0104': 'A', '\u023A': 'A', '\u2C6F': 'A', '\uA732': 'AA', '\u00C6': 'AE', '\u01FC': 'AE', '\u01E2': 'AE', '\uA734': 'AO', '\uA736': 'AU', '\uA738': 'AV', '\uA73A': 'AV', '\uA73C': 'AY', '\u24B7': 'B', '\uFF22': 'B', '\u1E02': 'B', '\u1E04': 'B', '\u1E06': 'B', '\u0243': 'B', '\u0182': 'B', '\u0181': 'B', '\u24B8': 'C', '\uFF23': 'C', '\u0106': 'C', '\u0108': 'C', '\u010A': 'C', '\u010C': 'C', '\u00C7': 'C', '\u1E08': 'C', '\u0187': 'C', '\u023B': 'C', '\uA73E': 'C', '\u24B9': 'D', '\uFF24': 'D', '\u1E0A': 'D', '\u010E': 'D', '\u1E0C': 'D', '\u1E10': 'D', '\u1E12': 'D', '\u1E0E': 'D', '\u0110': 'D', '\u018B': 'D', '\u018A': 'D', '\u0189': 'D', '\uA779': 'D', '\u01F1': 'DZ', '\u01C4': 'DZ', '\u01F2': 'Dz', '\u01C5': 'Dz', '\u24BA': 'E', '\uFF25': 'E', '\u00C8': 'E', '\u00C9': 'E', '\u00CA': 'E', '\u1EC0': 'E', '\u1EBE': 'E', '\u1EC4': 'E', '\u1EC2': 'E', '\u1EBC': 'E', '\u0112': 'E', '\u1E14': 'E', '\u1E16': 'E', '\u0114': 'E', '\u0116': 'E', '\u00CB': 'E', '\u1EBA': 'E', '\u011A': 'E', '\u0204': 'E', '\u0206': 'E', '\u1EB8': 'E', '\u1EC6': 'E', '\u0228': 'E', '\u1E1C': 'E', '\u0118': 'E', '\u1E18': 'E', '\u1E1A': 'E', '\u0190': 'E', '\u018E': 'E', '\u24BB': 'F', '\uFF26': 'F', '\u1E1E': 'F', '\u0191': 'F', '\uA77B': 'F', '\u24BC': 'G', '\uFF27': 'G', '\u01F4': 'G', '\u011C': 'G', '\u1E20': 'G', '\u011E': 'G', '\u0120': 'G', '\u01E6': 'G', '\u0122': 'G', '\u01E4': 'G', '\u0193': 'G', '\uA7A0': 'G', '\uA77D': 'G', '\uA77E': 'G', '\u24BD': 'H', '\uFF28': 'H', '\u0124': 'H', '\u1E22': 'H', '\u1E26': 'H', '\u021E': 'H', '\u1E24': 'H', '\u1E28': 'H', '\u1E2A': 'H', '\u0126': 'H', '\u2C67': 'H', '\u2C75': 'H', '\uA78D': 'H', '\u24BE': 'I', '\uFF29': 'I', '\u00CC': 'I', '\u00CD': 'I', '\u00CE': 'I', '\u0128': 'I', '\u012A': 'I', '\u012C': 'I', '\u0130': 'I', '\u00CF': 'I', '\u1E2E': 'I', '\u1EC8': 'I', '\u01CF': 'I', '\u0208': 'I', '\u020A': 'I', '\u1ECA': 'I', '\u012E': 'I', '\u1E2C': 'I', '\u0197': 'I', '\u24BF': 'J', '\uFF2A': 'J', '\u0134': 'J', '\u0248': 'J', '\u24C0': 'K', '\uFF2B': 'K', '\u1E30': 'K', '\u01E8': 'K', '\u1E32': 'K', '\u0136': 'K', '\u1E34': 'K', '\u0198': 'K', '\u2C69': 'K', '\uA740': 'K', '\uA742': 'K', '\uA744': 'K', '\uA7A2': 'K', '\u24C1': 'L', '\uFF2C': 'L', '\u013F': 'L', '\u0139': 'L', '\u013D': 'L', '\u1E36': 'L', '\u1E38': 'L', '\u013B': 'L', '\u1E3C': 'L', '\u1E3A': 'L', '\u0141': 'L', '\u023D': 'L', '\u2C62': 'L', '\u2C60': 'L', '\uA748': 'L', '\uA746': 'L', '\uA780': 'L', '\u01C7': 'LJ', '\u01C8': 'Lj', '\u24C2': 'M', '\uFF2D': 'M', '\u1E3E': 'M', '\u1E40': 'M', '\u1E42': 'M', '\u2C6E': 'M', '\u019C': 'M', '\u24C3': 'N', '\uFF2E': 'N', '\u01F8': 'N', '\u0143': 'N', '\u00D1': 'N', '\u1E44': 'N', '\u0147': 'N', '\u1E46': 'N', '\u0145': 'N', '\u1E4A': 'N', '\u1E48': 'N', '\u0220': 'N', '\u019D': 'N', '\uA790': 'N', '\uA7A4': 'N', '\u01CA': 'NJ', '\u01CB': 'Nj', '\u24C4': 'O', '\uFF2F': 'O', '\u00D2': 'O', '\u00D3': 'O', '\u00D4': 'O', '\u1ED2': 'O', '\u1ED0': 'O', '\u1ED6': 'O', '\u1ED4': 'O', '\u00D5': 'O', '\u1E4C': 'O', '\u022C': 'O', '\u1E4E': 'O', '\u014C': 'O', '\u1E50': 'O', '\u1E52': 'O', '\u014E': 'O', '\u022E': 'O', '\u0230': 'O', '\u00D6': 'O', '\u022A': 'O', '\u1ECE': 'O', '\u0150': 'O', '\u01D1': 'O', '\u020C': 'O', '\u020E': 'O', '\u01A0': 'O', '\u1EDC': 'O', '\u1EDA': 'O', '\u1EE0': 'O', '\u1EDE': 'O', '\u1EE2': 'O', '\u1ECC': 'O', '\u1ED8': 'O', '\u01EA': 'O', '\u01EC': 'O', '\u00D8': 'O', '\u01FE': 'O', '\u0186': 'O', '\u019F': 'O', '\uA74A': 'O', '\uA74C': 'O', '\u0152': 'OE', '\u01A2': 'OI', '\uA74E': 'OO', '\u0222': 'OU', '\u24C5': 'P', '\uFF30': 'P', '\u1E54': 'P', '\u1E56': 'P', '\u01A4': 'P', '\u2C63': 'P', '\uA750': 'P', '\uA752': 'P', '\uA754': 'P', '\u24C6': 'Q', '\uFF31': 'Q', '\uA756': 'Q', '\uA758': 'Q', '\u024A': 'Q', '\u24C7': 'R', '\uFF32': 'R', '\u0154': 'R', '\u1E58': 'R', '\u0158': 'R', '\u0210': 'R', '\u0212': 'R', '\u1E5A': 'R', '\u1E5C': 'R', '\u0156': 'R', '\u1E5E': 'R', '\u024C': 'R', '\u2C64': 'R', '\uA75A': 'R', '\uA7A6': 'R', '\uA782': 'R', '\u24C8': 'S', '\uFF33': 'S', '\u1E9E': 'S', '\u015A': 'S', '\u1E64': 'S', '\u015C': 'S', '\u1E60': 'S', '\u0160': 'S', '\u1E66': 'S', '\u1E62': 'S', '\u1E68': 'S', '\u0218': 'S', '\u015E': 'S', '\u2C7E': 'S', '\uA7A8': 'S', '\uA784': 'S', '\u24C9': 'T', '\uFF34': 'T', '\u1E6A': 'T', '\u0164': 'T', '\u1E6C': 'T', '\u021A': 'T', '\u0162': 'T', '\u1E70': 'T', '\u1E6E': 'T', '\u0166': 'T', '\u01AC': 'T', '\u01AE': 'T', '\u023E': 'T', '\uA786': 'T', '\uA728': 'TZ', '\u24CA': 'U', '\uFF35': 'U', '\u00D9': 'U', '\u00DA': 'U', '\u00DB': 'U', '\u0168': 'U', '\u1E78': 'U', '\u016A': 'U', '\u1E7A': 'U', '\u016C': 'U', '\u00DC': 'U', '\u01DB': 'U', '\u01D7': 'U', '\u01D5': 'U', '\u01D9': 'U', '\u1EE6': 'U', '\u016E': 'U', '\u0170': 'U', '\u01D3': 'U', '\u0214': 'U', '\u0216': 'U', '\u01AF': 'U', '\u1EEA': 'U', '\u1EE8': 'U', '\u1EEE': 'U', '\u1EEC': 'U', '\u1EF0': 'U', '\u1EE4': 'U', '\u1E72': 'U', '\u0172': 'U', '\u1E76': 'U', '\u1E74': 'U', '\u0244': 'U', '\u24CB': 'V', '\uFF36': 'V', '\u1E7C': 'V', '\u1E7E': 'V', '\u01B2': 'V', '\uA75E': 'V', '\u0245': 'V', '\uA760': 'VY', '\u24CC': 'W', '\uFF37': 'W', '\u1E80': 'W', '\u1E82': 'W', '\u0174': 'W', '\u1E86': 'W', '\u1E84': 'W', '\u1E88': 'W', '\u2C72': 'W', '\u24CD': 'X', '\uFF38': 'X', '\u1E8A': 'X', '\u1E8C': 'X', '\u24CE': 'Y', '\uFF39': 'Y', '\u1EF2': 'Y', '\u00DD': 'Y', '\u0176': 'Y', '\u1EF8': 'Y', '\u0232': 'Y', '\u1E8E': 'Y', '\u0178': 'Y', '\u1EF6': 'Y', '\u1EF4': 'Y', '\u01B3': 'Y', '\u024E': 'Y', '\u1EFE': 'Y', '\u24CF': 'Z', '\uFF3A': 'Z', '\u0179': 'Z', '\u1E90': 'Z', '\u017B': 'Z', '\u017D': 'Z', '\u1E92': 'Z', '\u1E94': 'Z', '\u01B5': 'Z', '\u0224': 'Z', '\u2C7F': 'Z', '\u2C6B': 'Z', '\uA762': 'Z', '\u24D0': 'a', '\uFF41': 'a', '\u1E9A': 'a', '\u00E0': 'a', '\u00E1': 'a', '\u00E2': 'a', '\u1EA7': 'a', '\u1EA5': 'a', '\u1EAB': 'a', '\u1EA9': 'a', '\u00E3': 'a', '\u0101': 'a', '\u0103': 'a', '\u1EB1': 'a', '\u1EAF': 'a', '\u1EB5': 'a', '\u1EB3': 'a', '\u0227': 'a', '\u01E1': 'a', '\u00E4': 'a', '\u01DF': 'a', '\u1EA3': 'a', '\u00E5': 'a', '\u01FB': 'a', '\u01CE': 'a', '\u0201': 'a', '\u0203': 'a', '\u1EA1': 'a', '\u1EAD': 'a', '\u1EB7': 'a', '\u1E01': 'a', '\u0105': 'a', '\u2C65': 'a', '\u0250': 'a', '\uA733': 'aa', '\u00E6': 'ae', '\u01FD': 'ae', '\u01E3': 'ae', '\uA735': 'ao', '\uA737': 'au', '\uA739': 'av', '\uA73B': 'av', '\uA73D': 'ay', '\u24D1': 'b', '\uFF42': 'b', '\u1E03': 'b', '\u1E05': 'b', '\u1E07': 'b', '\u0180': 'b', '\u0183': 'b', '\u0253': 'b', '\u24D2': 'c', '\uFF43': 'c', '\u0107': 'c', '\u0109': 'c', '\u010B': 'c', '\u010D': 'c', '\u00E7': 'c', '\u1E09': 'c', '\u0188': 'c', '\u023C': 'c', '\uA73F': 'c', '\u2184': 'c', '\u24D3': 'd', '\uFF44': 'd', '\u1E0B': 'd', '\u010F': 'd', '\u1E0D': 'd', '\u1E11': 'd', '\u1E13': 'd', '\u1E0F': 'd', '\u0111': 'd', '\u018C': 'd', '\u0256': 'd', '\u0257': 'd', '\uA77A': 'd', '\u01F3': 'dz', '\u01C6': 'dz', '\u24D4': 'e', '\uFF45': 'e', '\u00E8': 'e', '\u00E9': 'e', '\u00EA': 'e', '\u1EC1': 'e', '\u1EBF': 'e', '\u1EC5': 'e', '\u1EC3': 'e', '\u1EBD': 'e', '\u0113': 'e', '\u1E15': 'e', '\u1E17': 'e', '\u0115': 'e', '\u0117': 'e', '\u00EB': 'e', '\u1EBB': 'e', '\u011B': 'e', '\u0205': 'e', '\u0207': 'e', '\u1EB9': 'e', '\u1EC7': 'e', '\u0229': 'e', '\u1E1D': 'e', '\u0119': 'e', '\u1E19': 'e', '\u1E1B': 'e', '\u0247': 'e', '\u025B': 'e', '\u01DD': 'e', '\u24D5': 'f', '\uFF46': 'f', '\u1E1F': 'f', '\u0192': 'f', '\uA77C': 'f', '\u24D6': 'g', '\uFF47': 'g', '\u01F5': 'g', '\u011D': 'g', '\u1E21': 'g', '\u011F': 'g', '\u0121': 'g', '\u01E7': 'g', '\u0123': 'g', '\u01E5': 'g', '\u0260': 'g', '\uA7A1': 'g', '\u1D79': 'g', '\uA77F': 'g', '\u24D7': 'h', '\uFF48': 'h', '\u0125': 'h', '\u1E23': 'h', '\u1E27': 'h', '\u021F': 'h', '\u1E25': 'h', '\u1E29': 'h', '\u1E2B': 'h', '\u1E96': 'h', '\u0127': 'h', '\u2C68': 'h', '\u2C76': 'h', '\u0265': 'h', '\u0195': 'hv', '\u24D8': 'i', '\uFF49': 'i', '\u00EC': 'i', '\u00ED': 'i', '\u00EE': 'i', '\u0129': 'i', '\u012B': 'i', '\u012D': 'i', '\u00EF': 'i', '\u1E2F': 'i', '\u1EC9': 'i', '\u01D0': 'i', '\u0209': 'i', '\u020B': 'i', '\u1ECB': 'i', '\u012F': 'i', '\u1E2D': 'i', '\u0268': 'i', '\u0131': 'i', '\u24D9': 'j', '\uFF4A': 'j', '\u0135': 'j', '\u01F0': 'j', '\u0249': 'j', '\u24DA': 'k', '\uFF4B': 'k', '\u1E31': 'k', '\u01E9': 'k', '\u1E33': 'k', '\u0137': 'k', '\u1E35': 'k', '\u0199': 'k', '\u2C6A': 'k', '\uA741': 'k', '\uA743': 'k', '\uA745': 'k', '\uA7A3': 'k', '\u24DB': 'l', '\uFF4C': 'l', '\u0140': 'l', '\u013A': 'l', '\u013E': 'l', '\u1E37': 'l', '\u1E39': 'l', '\u013C': 'l', '\u1E3D': 'l', '\u1E3B': 'l', '\u017F': 'l', '\u0142': 'l', '\u019A': 'l', '\u026B': 'l', '\u2C61': 'l', '\uA749': 'l', '\uA781': 'l', '\uA747': 'l', '\u01C9': 'lj', '\u24DC': 'm', '\uFF4D': 'm', '\u1E3F': 'm', '\u1E41': 'm', '\u1E43': 'm', '\u0271': 'm', '\u026F': 'm', '\u24DD': 'n', '\uFF4E': 'n', '\u01F9': 'n', '\u0144': 'n', '\u00F1': 'n', '\u1E45': 'n', '\u0148': 'n', '\u1E47': 'n', '\u0146': 'n', '\u1E4B': 'n', '\u1E49': 'n', '\u019E': 'n', '\u0272': 'n', '\u0149': 'n', '\uA791': 'n', '\uA7A5': 'n', '\u01CC': 'nj', '\u24DE': 'o', '\uFF4F': 'o', '\u00F2': 'o', '\u00F3': 'o', '\u00F4': 'o', '\u1ED3': 'o', '\u1ED1': 'o', '\u1ED7': 'o', '\u1ED5': 'o', '\u00F5': 'o', '\u1E4D': 'o', '\u022D': 'o', '\u1E4F': 'o', '\u014D': 'o', '\u1E51': 'o', '\u1E53': 'o', '\u014F': 'o', '\u022F': 'o', '\u0231': 'o', '\u00F6': 'o', '\u022B': 'o', '\u1ECF': 'o', '\u0151': 'o', '\u01D2': 'o', '\u020D': 'o', '\u020F': 'o', '\u01A1': 'o', '\u1EDD': 'o', '\u1EDB': 'o', '\u1EE1': 'o', '\u1EDF': 'o', '\u1EE3': 'o', '\u1ECD': 'o', '\u1ED9': 'o', '\u01EB': 'o', '\u01ED': 'o', '\u00F8': 'o', '\u01FF': 'o', '\u0254': 'o', '\uA74B': 'o', '\uA74D': 'o', '\u0275': 'o', '\u0153': 'oe', '\u01A3': 'oi', '\u0223': 'ou', '\uA74F': 'oo', '\u24DF': 'p', '\uFF50': 'p', '\u1E55': 'p', '\u1E57': 'p', '\u01A5': 'p', '\u1D7D': 'p', '\uA751': 'p', '\uA753': 'p', '\uA755': 'p', '\u24E0': 'q', '\uFF51': 'q', '\u024B': 'q', '\uA757': 'q', '\uA759': 'q', '\u24E1': 'r', '\uFF52': 'r', '\u0155': 'r', '\u1E59': 'r', '\u0159': 'r', '\u0211': 'r', '\u0213': 'r', '\u1E5B': 'r', '\u1E5D': 'r', '\u0157': 'r', '\u1E5F': 'r', '\u024D': 'r', '\u027D': 'r', '\uA75B': 'r', '\uA7A7': 'r', '\uA783': 'r', '\u24E2': 's', '\uFF53': 's', '\u00DF': 's', '\u015B': 's', '\u1E65': 's', '\u015D': 's', '\u1E61': 's', '\u0161': 's', '\u1E67': 's', '\u1E63': 's', '\u1E69': 's', '\u0219': 's', '\u015F': 's', '\u023F': 's', '\uA7A9': 's', '\uA785': 's', '\u1E9B': 's', '\u24E3': 't', '\uFF54': 't', '\u1E6B': 't', '\u1E97': 't', '\u0165': 't', '\u1E6D': 't', '\u021B': 't', '\u0163': 't', '\u1E71': 't', '\u1E6F': 't', '\u0167': 't', '\u01AD': 't', '\u0288': 't', '\u2C66': 't', '\uA787': 't', '\uA729': 'tz', '\u24E4': 'u', '\uFF55': 'u', '\u00F9': 'u', '\u00FA': 'u', '\u00FB': 'u', '\u0169': 'u', '\u1E79': 'u', '\u016B': 'u', '\u1E7B': 'u', '\u016D': 'u', '\u00FC': 'u', '\u01DC': 'u', '\u01D8': 'u', '\u01D6': 'u', '\u01DA': 'u', '\u1EE7': 'u', '\u016F': 'u', '\u0171': 'u', '\u01D4': 'u', '\u0215': 'u', '\u0217': 'u', '\u01B0': 'u', '\u1EEB': 'u', '\u1EE9': 'u', '\u1EEF': 'u', '\u1EED': 'u', '\u1EF1': 'u', '\u1EE5': 'u', '\u1E73': 'u', '\u0173': 'u', '\u1E77': 'u', '\u1E75': 'u', '\u0289': 'u', '\u24E5': 'v', '\uFF56': 'v', '\u1E7D': 'v', '\u1E7F': 'v', '\u028B': 'v', '\uA75F': 'v', '\u028C': 'v', '\uA761': 'vy', '\u24E6': 'w', '\uFF57': 'w', '\u1E81': 'w', '\u1E83': 'w', '\u0175': 'w', '\u1E87': 'w', '\u1E85': 'w', '\u1E98': 'w', '\u1E89': 'w', '\u2C73': 'w', '\u24E7': 'x', '\uFF58': 'x', '\u1E8B': 'x', '\u1E8D': 'x', '\u24E8': 'y', '\uFF59': 'y', '\u1EF3': 'y', '\u00FD': 'y', '\u0177': 'y', '\u1EF9': 'y', '\u0233': 'y', '\u1E8F': 'y', '\u00FF': 'y', '\u1EF7': 'y', '\u1E99': 'y', '\u1EF5': 'y', '\u01B4': 'y', '\u024F': 'y', '\u1EFF': 'y', '\u24E9': 'z', '\uFF5A': 'z', '\u017A': 'z', '\u1E91': 'z', '\u017C': 'z', '\u017E': 'z', '\u1E93': 'z', '\u1E95': 'z', '\u01B6': 'z', '\u0225': 'z', '\u0240': 'z', '\u2C6C': 'z', '\uA763': 'z', '\u0386': '\u0391', '\u0388': '\u0395', '\u0389': '\u0397', '\u038A': '\u0399', '\u03AA': '\u0399', '\u038C': '\u039F', '\u038E': '\u03A5', '\u03AB': '\u03A5', '\u038F': '\u03A9', '\u03AC': '\u03B1', '\u03AD': '\u03B5', '\u03AE': '\u03B7', '\u03AF': '\u03B9', '\u03CA': '\u03B9', '\u0390': '\u03B9', '\u03CC': '\u03BF', '\u03CD': '\u03C5', '\u03CB': '\u03C5', '\u03B0': '\u03C5', '\u03CE': '\u03C9', '\u03C2': '\u03C3', '\u2019': '\'' }; return diacritics; }); S2.define('select2/data/base',[ '../utils' ], function (Utils) { function BaseAdapter ($element, options) { BaseAdapter.__super__.constructor.call(this); } Utils.Extend(BaseAdapter, Utils.Observable); BaseAdapter.prototype.current = function (callback) { throw new Error('The `current` method must be defined in child classes.'); }; BaseAdapter.prototype.query = function (params, callback) { throw new Error('The `query` method must be defined in child classes.'); }; BaseAdapter.prototype.bind = function (container, $container) { // Can be implemented in subclasses }; BaseAdapter.prototype.destroy = function () { // Can be implemented in subclasses }; BaseAdapter.prototype.generateResultId = function (container, data) { var id = container.id + '-result-'; id += Utils.generateChars(4); if (data.id != null) { id += '-' + data.id.toString(); } else { id += '-' + Utils.generateChars(4); } return id; }; return BaseAdapter; }); S2.define('select2/data/select',[ './base', '../utils', 'jquery' ], function (BaseAdapter, Utils, $) { function SelectAdapter ($element, options) { this.$element = $element; this.options = options; SelectAdapter.__super__.constructor.call(this); } Utils.Extend(SelectAdapter, BaseAdapter); SelectAdapter.prototype.current = function (callback) { var data = []; var self = this; this.$element.find(':selected').each(function () { var $option = $(this); var option = self.item($option); data.push(option); }); callback(data); }; SelectAdapter.prototype.select = function (data) { var self = this; data.selected = true; // If data.element is a DOM node, use it instead if ($(data.element).is('option')) { data.element.selected = true; this.$element.trigger('change'); return; } if (this.$element.prop('multiple')) { this.current(function (currentData) { var val = []; data = [data]; data.push.apply(data, currentData); for (var d = 0; d < data.length; d++) { var id = data[d].id; if ($.inArray(id, val) === -1) { val.push(id); } } self.$element.val(val); self.$element.trigger('change'); }); } else { var val = data.id; this.$element.val(val); this.$element.trigger('change'); } }; SelectAdapter.prototype.unselect = function (data) { var self = this; if (!this.$element.prop('multiple')) { return; } data.selected = false; if ($(data.element).is('option')) { data.element.selected = false; this.$element.trigger('change'); return; } this.current(function (currentData) { var val = []; for (var d = 0; d < currentData.length; d++) { var id = currentData[d].id; if (id !== data.id && $.inArray(id, val) === -1) { val.push(id); } } self.$element.val(val); self.$element.trigger('change'); }); }; SelectAdapter.prototype.bind = function (container, $container) { var self = this; this.container = container; container.on('select', function (params) { self.select(params.data); }); container.on('unselect', function (params) { self.unselect(params.data); }); }; SelectAdapter.prototype.destroy = function () { // Remove anything added to child elements this.$element.find('*').each(function () { // Remove any custom data set by Select2 Utils.RemoveData(this); }); }; SelectAdapter.prototype.query = function (params, callback) { var data = []; var self = this; var $options = this.$element.children(); $options.each(function () { var $option = $(this); if (!$option.is('option') && !$option.is('optgroup')) { return; } var option = self.item($option); var matches = self.matches(params, option); if (matches !== null) { data.push(matches); } }); callback({ results: data }); }; SelectAdapter.prototype.addOptions = function ($options) { Utils.appendMany(this.$element, $options); }; SelectAdapter.prototype.option = function (data) { var option; if (data.children) { option = document.createElement('optgroup'); option.label = data.text; } else { option = document.createElement('option'); if (option.textContent !== undefined) { option.textContent = data.text; } else { option.innerText = data.text; } } if (data.id !== undefined) { option.value = data.id; } if (data.disabled) { option.disabled = true; } if (data.selected) { option.selected = true; } if (data.title) { option.title = data.title; } var $option = $(option); var normalizedData = this._normalizeItem(data); normalizedData.element = option; // Override the option's data with the combined data Utils.StoreData(option, 'data', normalizedData); return $option; }; SelectAdapter.prototype.item = function ($option) { var data = {}; data = Utils.GetData($option[0], 'data'); if (data != null) { return data; } if ($option.is('option')) { data = { id: $option.val(), text: $option.text(), disabled: $option.prop('disabled'), selected: $option.prop('selected'), title: $option.prop('title') }; } else if ($option.is('optgroup')) { data = { text: $option.prop('label'), children: [], title: $option.prop('title') }; var $children = $option.children('option'); var children = []; for (var c = 0; c < $children.length; c++) { var $child = $($children[c]); var child = this.item($child); children.push(child); } data.children = children; } data = this._normalizeItem(data); data.element = $option[0]; Utils.StoreData($option[0], 'data', data); return data; }; SelectAdapter.prototype._normalizeItem = function (item) { if (item !== Object(item)) { item = { id: item, text: item }; } item = $.extend({}, { text: '' }, item); var defaults = { selected: false, disabled: false }; if (item.id != null) { item.id = item.id.toString(); } if (item.text != null) { item.text = item.text.toString(); } if (item._resultId == null && item.id && this.container != null) { item._resultId = this.generateResultId(this.container, item); } return $.extend({}, defaults, item); }; SelectAdapter.prototype.matches = function (params, data) { var matcher = this.options.get('matcher'); return matcher(params, data); }; return SelectAdapter; }); S2.define('select2/data/array',[ './select', '../utils', 'jquery' ], function (SelectAdapter, Utils, $) { function ArrayAdapter ($element, options) { this._dataToConvert = options.get('data') || []; ArrayAdapter.__super__.constructor.call(this, $element, options); } Utils.Extend(ArrayAdapter, SelectAdapter); ArrayAdapter.prototype.bind = function (container, $container) { ArrayAdapter.__super__.bind.call(this, container, $container); this.addOptions(this.convertToOptions(this._dataToConvert)); }; ArrayAdapter.prototype.select = function (data) { var $option = this.$element.find('option').filter(function (i, elm) { return elm.value == data.id.toString(); }); if ($option.length === 0) { $option = this.option(data); this.addOptions($option); } ArrayAdapter.__super__.select.call(this, data); }; ArrayAdapter.prototype.convertToOptions = function (data) { var self = this; var $existing = this.$element.find('option'); var existingIds = $existing.map(function () { return self.item($(this)).id; }).get(); var $options = []; // Filter out all items except for the one passed in the argument function onlyItem (item) { return function () { return $(this).val() == item.id; }; } for (var d = 0; d < data.length; d++) { var item = this._normalizeItem(data[d]); // Skip items which were pre-loaded, only merge the data if ($.inArray(item.id, existingIds) >= 0) { var $existingOption = $existing.filter(onlyItem(item)); var existingData = this.item($existingOption); var newData = $.extend(true, {}, item, existingData); var $newOption = this.option(newData); $existingOption.replaceWith($newOption); continue; } var $option = this.option(item); if (item.children) { var $children = this.convertToOptions(item.children); Utils.appendMany($option, $children); } $options.push($option); } return $options; }; return ArrayAdapter; }); S2.define('select2/data/ajax',[ './array', '../utils', 'jquery' ], function (ArrayAdapter, Utils, $) { function AjaxAdapter ($element, options) { this.ajaxOptions = this._applyDefaults(options.get('ajax')); if (this.ajaxOptions.processResults != null) { this.processResults = this.ajaxOptions.processResults; } AjaxAdapter.__super__.constructor.call(this, $element, options); } Utils.Extend(AjaxAdapter, ArrayAdapter); AjaxAdapter.prototype._applyDefaults = function (options) { var defaults = { data: function (params) { return $.extend({}, params, { q: params.term }); }, transport: function (params, success, failure) { var $request = $.ajax(params); $request.then(success); $request.fail(failure); return $request; } }; return $.extend({}, defaults, options, true); }; AjaxAdapter.prototype.processResults = function (results) { return results; }; AjaxAdapter.prototype.query = function (params, callback) { var matches = []; var self = this; if (this._request != null) { // JSONP requests cannot always be aborted if ($.isFunction(this._request.abort)) { this._request.abort(); } this._request = null; } var options = $.extend({ type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { options.url = options.url.call(this.$element, params); } if (typeof options.data === 'function') { options.data = options.data.call(this.$element, params); } function request () { var $request = options.transport(options, function (data) { var results = self.processResults(data, params); if (self.options.get('debug') && window.console && console.error) { // Check to make sure that the response included a `results` key. if (!results || !results.results || !$.isArray(results.results)) { console.error( 'Select2: The AJAX results did not return an array in the ' + '`results` key of the response.' ); } } callback(results); }, function () { // Attempt to detect if a request was aborted // Only works if the transport exposes a status property if ('status' in $request && ($request.status === 0 || $request.status === '0')) { return; } self.trigger('results:message', { message: 'errorLoading' }); }); self._request = $request; } if (this.ajaxOptions.delay && params.term != null) { if (this._queryTimeout) { window.clearTimeout(this._queryTimeout); } this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay); } else { request(); } }; return AjaxAdapter; }); S2.define('select2/data/tags',[ 'jquery' ], function ($) { function Tags (decorated, $element, options) { var tags = options.get('tags'); var createTag = options.get('createTag'); if (createTag !== undefined) { this.createTag = createTag; } var insertTag = options.get('insertTag'); if (insertTag !== undefined) { this.insertTag = insertTag; } decorated.call(this, $element, options); if ($.isArray(tags)) { for (var t = 0; t < tags.length; t++) { var tag = tags[t]; var item = this._normalizeItem(tag); var $option = this.option(item); this.$element.append($option); } } } Tags.prototype.query = function (decorated, params, callback) { var self = this; this._removeOldTags(); if (params.term == null || params.page != null) { decorated.call(this, params, callback); return; } function wrapper (obj, child) { var data = obj.results; for (var i = 0; i < data.length; i++) { var option = data[i]; var checkChildren = ( option.children != null && !wrapper({ results: option.children }, true) ); var optionText = (option.text || '').toUpperCase(); var paramsTerm = (params.term || '').toUpperCase(); var checkText = optionText === paramsTerm; if (checkText || checkChildren) { if (child) { return false; } obj.data = data; callback(obj); return; } } if (child) { return true; } var tag = self.createTag(params); if (tag != null) { var $option = self.option(tag); $option.attr('data-select2-tag', true); self.addOptions([$option]); self.insertTag(data, tag); } obj.results = data; callback(obj); } decorated.call(this, params, wrapper); }; Tags.prototype.createTag = function (decorated, params) { var term = $.trim(params.term); if (term === '') { return null; } return { id: term, text: term }; }; Tags.prototype.insertTag = function (_, data, tag) { data.unshift(tag); }; Tags.prototype._removeOldTags = function (_) { var $options = this.$element.find('option[data-select2-tag]'); $options.each(function () { if (this.selected) { return; } $(this).remove(); }); }; return Tags; }); S2.define('select2/data/tokenizer',[ 'jquery' ], function ($) { function Tokenizer (decorated, $element, options) { var tokenizer = options.get('tokenizer'); if (tokenizer !== undefined) { this.tokenizer = tokenizer; } decorated.call(this, $element, options); } Tokenizer.prototype.bind = function (decorated, container, $container) { decorated.call(this, container, $container); this.$search = container.dropdown.$search || container.selection.$search || $container.find('.select2-search__field'); }; Tokenizer.prototype.query = function (decorated, params, callback) { var self = this; function createAndSelect (data) { // Normalize the data object so we can use it for checks var item = self._normalizeItem(data); // Check if the data object already exists as a tag // Select it if it doesn't var $existingOptions = self.$element.find('option').filter(function () { return $(this).val() === item.id; }); // If an existing option wasn't found for it, create the option if (!$existingOptions.length) { var $option = self.option(item); $option.attr('data-select2-tag', true); self._removeOldTags(); self.addOptions([$option]); } // Select the item, now that we know there is an option for it select(item); } function select (data) { self.trigger('select', { data: data }); } params.term = params.term || ''; var tokenData = this.tokenizer(params, this.options, createAndSelect); if (tokenData.term !== params.term) { // Replace the search term if we have the search box if (this.$search.length) { this.$search.val(tokenData.term); this.$search.trigger('focus'); } params.term = tokenData.term; } decorated.call(this, params, callback); }; Tokenizer.prototype.tokenizer = function (_, params, options, callback) { var separators = options.get('tokenSeparators') || []; var term = params.term; var i = 0; var createTag = this.createTag || function (params) { return { id: params.term, text: params.term }; }; while (i < term.length) { var termChar = term[i]; if ($.inArray(termChar, separators) === -1) { i++; continue; } var part = term.substr(0, i); var partParams = $.extend({}, params, { term: part }); var data = createTag(partParams); if (data == null) { i++; continue; } callback(data); // Reset the term to not include the tokenized portion term = term.substr(i + 1) || ''; i = 0; } return { term: term }; }; return Tokenizer; }); S2.define('select2/data/minimumInputLength',[ ], function () { function MinimumInputLength (decorated, $e, options) { this.minimumInputLength = options.get('minimumInputLength'); decorated.call(this, $e, options); } MinimumInputLength.prototype.query = function (decorated, params, callback) { params.term = params.term || ''; if (params.term.length < this.minimumInputLength) { this.trigger('results:message', { message: 'inputTooShort', args: { minimum: this.minimumInputLength, input: params.term, params: params } }); return; } decorated.call(this, params, callback); }; return MinimumInputLength; }); S2.define('select2/data/maximumInputLength',[ ], function () { function MaximumInputLength (decorated, $e, options) { this.maximumInputLength = options.get('maximumInputLength'); decorated.call(this, $e, options); } MaximumInputLength.prototype.query = function (decorated, params, callback) { params.term = params.term || ''; if (this.maximumInputLength > 0 && params.term.length > this.maximumInputLength) { this.trigger('results:message', { message: 'inputTooLong', args: { maximum: this.maximumInputLength, input: params.term, params: params } }); return; } decorated.call(this, params, callback); }; return MaximumInputLength; }); S2.define('select2/data/maximumSelectionLength',[ ], function (){ function MaximumSelectionLength (decorated, $e, options) { this.maximumSelectionLength = options.get('maximumSelectionLength'); decorated.call(this, $e, options); } MaximumSelectionLength.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('select', function () { self._checkIfMaximumSelected(); }); }; MaximumSelectionLength.prototype.query = function (decorated, params, callback) { var self = this; this._checkIfMaximumSelected(function () { decorated.call(self, params, callback); }); }; MaximumSelectionLength.prototype._checkIfMaximumSelected = function (_, successCallback) { var self = this; this.current(function (currentData) { var count = currentData != null ? currentData.length : 0; if (self.maximumSelectionLength > 0 && count >= self.maximumSelectionLength) { self.trigger('results:message', { message: 'maximumSelected', args: { maximum: self.maximumSelectionLength } }); return; } if (successCallback) { successCallback(); } }); }; return MaximumSelectionLength; }); S2.define('select2/dropdown',[ 'jquery', './utils' ], function ($, Utils) { function Dropdown ($element, options) { this.$element = $element; this.options = options; Dropdown.__super__.constructor.call(this); } Utils.Extend(Dropdown, Utils.Observable); Dropdown.prototype.render = function () { var $dropdown = $( '' + '' + '' ); $dropdown.attr('dir', this.options.get('dir')); this.$dropdown = $dropdown; return $dropdown; }; Dropdown.prototype.bind = function () { // Should be implemented in subclasses }; Dropdown.prototype.position = function ($dropdown, $container) { // Should be implemented in subclasses }; Dropdown.prototype.destroy = function () { // Remove the dropdown from the DOM this.$dropdown.remove(); }; return Dropdown; }); S2.define('select2/dropdown/search',[ 'jquery', '../utils' ], function ($, Utils) { function Search () { } Search.prototype.render = function (decorated) { var $rendered = decorated.call(this); var $search = $( '' + '' + '' ); this.$searchContainer = $search; this.$search = $search.find('input'); $rendered.prepend($search); return $rendered; }; Search.prototype.bind = function (decorated, container, $container) { var self = this; var resultsId = container.id + '-results'; decorated.call(this, container, $container); this.$search.on('keydown', function (evt) { self.trigger('keypress', evt); self._keyUpPrevented = evt.isDefaultPrevented(); }); // Workaround for browsers which do not support the `input` event // This will prevent double-triggering of events for browsers which support // both the `keyup` and `input` events. this.$search.on('input', function (evt) { // Unbind the duplicated `keyup` event $(this).off('keyup'); }); this.$search.on('keyup input', function (evt) { self.handleSearch(evt); }); container.on('open', function () { self.$search.attr('tabindex', 0); self.$search.attr('aria-controls', resultsId); self.$search.trigger('focus'); window.setTimeout(function () { self.$search.trigger('focus'); }, 0); }); container.on('close', function () { self.$search.attr('tabindex', -1); self.$search.removeAttr('aria-controls'); self.$search.removeAttr('aria-activedescendant'); self.$search.val(''); self.$search.trigger('blur'); }); container.on('focus', function () { if (!container.isOpen()) { self.$search.trigger('focus'); } }); container.on('results:all', function (params) { if (params.query.term == null || params.query.term === '') { var showSearch = self.showSearch(params); if (showSearch) { self.$searchContainer.removeClass('select2-search--hide'); } else { self.$searchContainer.addClass('select2-search--hide'); } } }); container.on('results:focus', function (params) { if (params.data._resultId) { self.$search.attr('aria-activedescendant', params.data._resultId); } else { self.$search.removeAttr('aria-activedescendant'); } }); }; Search.prototype.handleSearch = function (evt) { if (!this._keyUpPrevented) { var input = this.$search.val(); this.trigger('query', { term: input }); } this._keyUpPrevented = false; }; Search.prototype.showSearch = function (_, params) { return true; }; return Search; }); S2.define('select2/dropdown/hidePlaceholder',[ ], function () { function HidePlaceholder (decorated, $element, options, dataAdapter) { this.placeholder = this.normalizePlaceholder(options.get('placeholder')); decorated.call(this, $element, options, dataAdapter); } HidePlaceholder.prototype.append = function (decorated, data) { data.results = this.removePlaceholder(data.results); decorated.call(this, data); }; HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) { if (typeof placeholder === 'string') { placeholder = { id: '', text: placeholder }; } return placeholder; }; HidePlaceholder.prototype.removePlaceholder = function (_, data) { var modifiedData = data.slice(0); for (var d = data.length - 1; d >= 0; d--) { var item = data[d]; if (this.placeholder.id === item.id) { modifiedData.splice(d, 1); } } return modifiedData; }; return HidePlaceholder; }); S2.define('select2/dropdown/infiniteScroll',[ 'jquery' ], function ($) { function InfiniteScroll (decorated, $element, options, dataAdapter) { this.lastParams = {}; decorated.call(this, $element, options, dataAdapter); this.$loadingMore = this.createLoadingMore(); this.loading = false; } InfiniteScroll.prototype.append = function (decorated, data) { this.$loadingMore.remove(); this.loading = false; decorated.call(this, data); if (this.showLoadingMore(data)) { this.$results.append(this.$loadingMore); this.loadMoreIfNeeded(); } }; InfiniteScroll.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('query', function (params) { self.lastParams = params; self.loading = true; }); container.on('query:append', function (params) { self.lastParams = params; self.loading = true; }); this.$results.on('scroll', this.loadMoreIfNeeded.bind(this)); }; InfiniteScroll.prototype.loadMoreIfNeeded = function () { var isLoadMoreVisible = $.contains( document.documentElement, this.$loadingMore[0] ); if (this.loading || !isLoadMoreVisible) { return; } var currentOffset = this.$results.offset().top + this.$results.outerHeight(false); var loadingMoreOffset = this.$loadingMore.offset().top + this.$loadingMore.outerHeight(false); if (currentOffset + 50 >= loadingMoreOffset) { this.loadMore(); } }; InfiniteScroll.prototype.loadMore = function () { this.loading = true; var params = $.extend({}, {page: 1}, this.lastParams); params.page++; this.trigger('query:append', params); }; InfiniteScroll.prototype.showLoadingMore = function (_, data) { return data.pagination && data.pagination.more; }; InfiniteScroll.prototype.createLoadingMore = function () { var $option = $( '
        • ' ); var message = this.options.get('translations').get('loadingMore'); $option.html(message(this.lastParams)); return $option; }; return InfiniteScroll; }); S2.define('select2/dropdown/attachBody',[ 'jquery', '../utils' ], function ($, Utils) { function AttachBody (decorated, $element, options) { this.$dropdownParent = $(options.get('dropdownParent') || document.body); decorated.call(this, $element, options); } AttachBody.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('open', function () { self._showDropdown(); self._attachPositioningHandler(container); // Must bind after the results handlers to ensure correct sizing self._bindContainerResultHandlers(container); }); container.on('close', function () { self._hideDropdown(); self._detachPositioningHandler(container); }); this.$dropdownContainer.on('mousedown', function (evt) { evt.stopPropagation(); }); }; AttachBody.prototype.destroy = function (decorated) { decorated.call(this); this.$dropdownContainer.remove(); }; AttachBody.prototype.position = function (decorated, $dropdown, $container) { // Clone all of the container classes $dropdown.attr('class', $container.attr('class')); $dropdown.removeClass('select2'); $dropdown.addClass('select2-container--open'); $dropdown.css({ position: 'absolute', top: -999999 }); this.$container = $container; }; AttachBody.prototype.render = function (decorated) { var $container = $(''); var $dropdown = decorated.call(this); $container.append($dropdown); this.$dropdownContainer = $container; return $container; }; AttachBody.prototype._hideDropdown = function (decorated) { this.$dropdownContainer.detach(); }; AttachBody.prototype._bindContainerResultHandlers = function (decorated, container) { // These should only be bound once if (this._containerResultsHandlersBound) { return; } var self = this; container.on('results:all', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('results:append', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('results:message', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('select', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('unselect', function () { self._positionDropdown(); self._resizeDropdown(); }); this._containerResultsHandlersBound = true; }; AttachBody.prototype._attachPositioningHandler = function (decorated, container) { var self = this; var scrollEvent = 'scroll.select2.' + container.id; var resizeEvent = 'resize.select2.' + container.id; var orientationEvent = 'orientationchange.select2.' + container.id; var $watchers = this.$container.parents().filter(Utils.hasScroll); $watchers.each(function () { Utils.StoreData(this, 'select2-scroll-position', { x: $(this).scrollLeft(), y: $(this).scrollTop() }); }); $watchers.on(scrollEvent, function (ev) { var position = Utils.GetData(this, 'select2-scroll-position'); $(this).scrollTop(position.y); }); $(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent, function (e) { self._positionDropdown(); self._resizeDropdown(); }); }; AttachBody.prototype._detachPositioningHandler = function (decorated, container) { var scrollEvent = 'scroll.select2.' + container.id; var resizeEvent = 'resize.select2.' + container.id; var orientationEvent = 'orientationchange.select2.' + container.id; var $watchers = this.$container.parents().filter(Utils.hasScroll); $watchers.off(scrollEvent); $(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent); }; AttachBody.prototype._positionDropdown = function () { var $window = $(window); var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above'); var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below'); var newDirection = null; var offset = this.$container.offset(); offset.bottom = offset.top + this.$container.outerHeight(false); var container = { height: this.$container.outerHeight(false) }; container.top = offset.top; container.bottom = offset.top + container.height; var dropdown = { height: this.$dropdown.outerHeight(false) }; var viewport = { top: $window.scrollTop(), bottom: $window.scrollTop() + $window.height() }; var enoughRoomAbove = viewport.top < (offset.top - dropdown.height); var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height); var css = { left: offset.left, top: container.bottom }; // Determine what the parent element is to use for calculating the offset var $offsetParent = this.$dropdownParent; // For statically positioned elements, we need to get the element // that is determining the offset if ($offsetParent.css('position') === 'static') { $offsetParent = $offsetParent.offsetParent(); } var parentOffset = $offsetParent.offset(); css.top -= parentOffset.top; css.left -= parentOffset.left; if (!isCurrentlyAbove && !isCurrentlyBelow) { newDirection = 'below'; } if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) { newDirection = 'above'; } else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) { newDirection = 'below'; } if (newDirection == 'above' || (isCurrentlyAbove && newDirection !== 'below')) { css.top = container.top - parentOffset.top - dropdown.height; } if (newDirection != null) { this.$dropdown .removeClass('select2-dropdown--below select2-dropdown--above') .addClass('select2-dropdown--' + newDirection); this.$container .removeClass('select2-container--below select2-container--above') .addClass('select2-container--' + newDirection); } this.$dropdownContainer.css(css); }; AttachBody.prototype._resizeDropdown = function () { var css = { width: this.$container.outerWidth(false) + 'px' }; if (this.options.get('dropdownAutoWidth')) { css.minWidth = css.width; css.position = 'relative'; css.width = 'auto'; } this.$dropdown.css(css); }; AttachBody.prototype._showDropdown = function (decorated) { this.$dropdownContainer.appendTo(this.$dropdownParent); this._positionDropdown(); this._resizeDropdown(); }; return AttachBody; }); S2.define('select2/dropdown/minimumResultsForSearch',[ ], function () { function countResults (data) { var count = 0; for (var d = 0; d < data.length; d++) { var item = data[d]; if (item.children) { count += countResults(item.children); } else { count++; } } return count; } function MinimumResultsForSearch (decorated, $element, options, dataAdapter) { this.minimumResultsForSearch = options.get('minimumResultsForSearch'); if (this.minimumResultsForSearch < 0) { this.minimumResultsForSearch = Infinity; } decorated.call(this, $element, options, dataAdapter); } MinimumResultsForSearch.prototype.showSearch = function (decorated, params) { if (countResults(params.data.results) < this.minimumResultsForSearch) { return false; } return decorated.call(this, params); }; return MinimumResultsForSearch; }); S2.define('select2/dropdown/selectOnClose',[ '../utils' ], function (Utils) { function SelectOnClose () { } SelectOnClose.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('close', function (params) { self._handleSelectOnClose(params); }); }; SelectOnClose.prototype._handleSelectOnClose = function (_, params) { if (params && params.originalSelect2Event != null) { var event = params.originalSelect2Event; // Don't select an item if the close event was triggered from a select or // unselect event if (event._type === 'select' || event._type === 'unselect') { return; } } var $highlightedResults = this.getHighlightedResults(); // Only select highlighted results if ($highlightedResults.length < 1) { return; } var data = Utils.GetData($highlightedResults[0], 'data'); // Don't re-select already selected resulte if ( (data.element != null && data.element.selected) || (data.element == null && data.selected) ) { return; } this.trigger('select', { data: data }); }; return SelectOnClose; }); S2.define('select2/dropdown/closeOnSelect',[ ], function () { function CloseOnSelect () { } CloseOnSelect.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('select', function (evt) { self._selectTriggered(evt); }); container.on('unselect', function (evt) { self._selectTriggered(evt); }); }; CloseOnSelect.prototype._selectTriggered = function (_, evt) { var originalEvent = evt.originalEvent; // Don't close if the control key is being held if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) { return; } this.trigger('close', { originalEvent: originalEvent, originalSelect2Event: evt }); }; return CloseOnSelect; }); S2.define('select2/i18n/en',[],function () { // English return { errorLoading: function () { return 'The results could not be loaded.'; }, inputTooLong: function (args) { var overChars = args.input.length - args.maximum; var message = 'Please delete ' + overChars + ' character'; if (overChars != 1) { message += 's'; } return message; }, inputTooShort: function (args) { var remainingChars = args.minimum - args.input.length; var message = 'Please enter ' + remainingChars + ' or more characters'; return message; }, loadingMore: function () { return 'Loading more results…'; }, maximumSelected: function (args) { var message = 'You can only select ' + args.maximum + ' item'; if (args.maximum != 1) { message += 's'; } return message; }, noResults: function () { return 'No results found'; }, searching: function () { return 'Searching…'; }, removeAllItems: function () { return 'Remove all items'; } }; }); S2.define('select2/defaults',[ 'jquery', 'require', './results', './selection/single', './selection/multiple', './selection/placeholder', './selection/allowClear', './selection/search', './selection/eventRelay', './utils', './translation', './diacritics', './data/select', './data/array', './data/ajax', './data/tags', './data/tokenizer', './data/minimumInputLength', './data/maximumInputLength', './data/maximumSelectionLength', './dropdown', './dropdown/search', './dropdown/hidePlaceholder', './dropdown/infiniteScroll', './dropdown/attachBody', './dropdown/minimumResultsForSearch', './dropdown/selectOnClose', './dropdown/closeOnSelect', './i18n/en' ], function ($, require, ResultsList, SingleSelection, MultipleSelection, Placeholder, AllowClear, SelectionSearch, EventRelay, Utils, Translation, DIACRITICS, SelectData, ArrayData, AjaxData, Tags, Tokenizer, MinimumInputLength, MaximumInputLength, MaximumSelectionLength, Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll, AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect, EnglishTranslation) { function Defaults () { this.reset(); } Defaults.prototype.apply = function (options) { options = $.extend(true, {}, this.defaults, options); if (options.dataAdapter == null) { if (options.ajax != null) { options.dataAdapter = AjaxData; } else if (options.data != null) { options.dataAdapter = ArrayData; } else { options.dataAdapter = SelectData; } if (options.minimumInputLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MinimumInputLength ); } if (options.maximumInputLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MaximumInputLength ); } if (options.maximumSelectionLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MaximumSelectionLength ); } if (options.tags) { options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags); } if (options.tokenSeparators != null || options.tokenizer != null) { options.dataAdapter = Utils.Decorate( options.dataAdapter, Tokenizer ); } if (options.query != null) { var Query = require(options.amdBase + 'compat/query'); options.dataAdapter = Utils.Decorate( options.dataAdapter, Query ); } if (options.initSelection != null) { var InitSelection = require(options.amdBase + 'compat/initSelection'); options.dataAdapter = Utils.Decorate( options.dataAdapter, InitSelection ); } } if (options.resultsAdapter == null) { options.resultsAdapter = ResultsList; if (options.ajax != null) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, InfiniteScroll ); } if (options.placeholder != null) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, HidePlaceholder ); } if (options.selectOnClose) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, SelectOnClose ); } } if (options.dropdownAdapter == null) { if (options.multiple) { options.dropdownAdapter = Dropdown; } else { var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch); options.dropdownAdapter = SearchableDropdown; } if (options.minimumResultsForSearch !== 0) { options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, MinimumResultsForSearch ); } if (options.closeOnSelect) { options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, CloseOnSelect ); } if ( options.dropdownCssClass != null || options.dropdownCss != null || options.adaptDropdownCssClass != null ) { var DropdownCSS = require(options.amdBase + 'compat/dropdownCss'); options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, DropdownCSS ); } options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, AttachBody ); } if (options.selectionAdapter == null) { if (options.multiple) { options.selectionAdapter = MultipleSelection; } else { options.selectionAdapter = SingleSelection; } // Add the placeholder mixin if a placeholder was specified if (options.placeholder != null) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, Placeholder ); } if (options.allowClear) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, AllowClear ); } if (options.multiple) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, SelectionSearch ); } if ( options.containerCssClass != null || options.containerCss != null || options.adaptContainerCssClass != null ) { var ContainerCSS = require(options.amdBase + 'compat/containerCss'); options.selectionAdapter = Utils.Decorate( options.selectionAdapter, ContainerCSS ); } options.selectionAdapter = Utils.Decorate( options.selectionAdapter, EventRelay ); } // If the defaults were not previously applied from an element, it is // possible for the language option to have not been resolved options.language = this._resolveLanguage(options.language); // Always fall back to English since it will always be complete options.language.push('en'); var uniqueLanguages = []; for (var l = 0; l < options.language.length; l++) { var language = options.language[l]; if (uniqueLanguages.indexOf(language) === -1) { uniqueLanguages.push(language); } } options.language = uniqueLanguages; options.translations = this._processTranslations( options.language, options.debug ); return options; }; Defaults.prototype.reset = function () { function stripDiacritics (text) { // Used 'uni range + named function' from http://jsperf.com/diacritics/18 function match(a) { return DIACRITICS[a] || a; } return text.replace(/[^\u0000-\u007E]/g, match); } function matcher (params, data) { // Always return the object if there is nothing to compare if ($.trim(params.term) === '') { return data; } // Do a recursive check for options with children if (data.children && data.children.length > 0) { // Clone the data object if there are children // This is required as we modify the object to remove any non-matches var match = $.extend(true, {}, data); // Check each child of the option for (var c = data.children.length - 1; c >= 0; c--) { var child = data.children[c]; var matches = matcher(params, child); // If there wasn't a match, remove the object in the array if (matches == null) { match.children.splice(c, 1); } } // If any children matched, return the new object if (match.children.length > 0) { return match; } // If there were no matching children, check just the plain object return matcher(params, match); } var original = stripDiacritics(data.text).toUpperCase(); var term = stripDiacritics(params.term).toUpperCase(); // Check if the text contains the term if (original.indexOf(term) > -1) { return data; } // If it doesn't contain the term, don't return anything return null; } this.defaults = { amdBase: './', amdLanguageBase: './i18n/', closeOnSelect: true, debug: false, dropdownAutoWidth: false, escapeMarkup: Utils.escapeMarkup, language: {}, matcher: matcher, minimumInputLength: 0, maximumInputLength: 0, maximumSelectionLength: 0, minimumResultsForSearch: 0, selectOnClose: false, scrollAfterSelect: false, sorter: function (data) { return data; }, templateResult: function (result) { return result.text; }, templateSelection: function (selection) { return selection.text; }, theme: 'default', width: 'resolve' }; }; Defaults.prototype.applyFromElement = function (options, $element) { var optionLanguage = options.language; var defaultLanguage = this.defaults.language; var elementLanguage = $element.prop('lang'); var parentLanguage = $element.closest('[lang]').prop('lang'); var languages = Array.prototype.concat.call( this._resolveLanguage(elementLanguage), this._resolveLanguage(optionLanguage), this._resolveLanguage(defaultLanguage), this._resolveLanguage(parentLanguage) ); options.language = languages; return options; }; Defaults.prototype._resolveLanguage = function (language) { if (!language) { return []; } if ($.isEmptyObject(language)) { return []; } if ($.isPlainObject(language)) { return [language]; } var languages; if (!$.isArray(language)) { languages = [language]; } else { languages = language; } var resolvedLanguages = []; for (var l = 0; l < languages.length; l++) { resolvedLanguages.push(languages[l]); if (typeof languages[l] === 'string' && languages[l].indexOf('-') > 0) { // Extract the region information if it is included var languageParts = languages[l].split('-'); var baseLanguage = languageParts[0]; resolvedLanguages.push(baseLanguage); } } return resolvedLanguages; }; Defaults.prototype._processTranslations = function (languages, debug) { var translations = new Translation(); for (var l = 0; l < languages.length; l++) { var languageData = new Translation(); var language = languages[l]; if (typeof language === 'string') { try { // Try to load it with the original name languageData = Translation.loadPath(language); } catch (e) { try { // If we couldn't load it, check if it wasn't the full path language = this.defaults.amdLanguageBase + language; languageData = Translation.loadPath(language); } catch (ex) { // The translation could not be loaded at all. Sometimes this is // because of a configuration problem, other times this can be // because of how Select2 helps load all possible translation files if (debug && window.console && console.warn) { console.warn( 'Select2: The language file for "' + language + '" could ' + 'not be automatically loaded. A fallback will be used instead.' ); } } } } else if ($.isPlainObject(language)) { languageData = new Translation(language); } else { languageData = language; } translations.extend(languageData); } return translations; }; Defaults.prototype.set = function (key, value) { var camelKey = $.camelCase(key); var data = {}; data[camelKey] = value; var convertedData = Utils._convertData(data); $.extend(true, this.defaults, convertedData); }; var defaults = new Defaults(); return defaults; }); S2.define('select2/options',[ 'require', 'jquery', './defaults', './utils' ], function (require, $, Defaults, Utils) { function Options (options, $element) { this.options = options; if ($element != null) { this.fromElement($element); } if ($element != null) { this.options = Defaults.applyFromElement(this.options, $element); } this.options = Defaults.apply(this.options); if ($element && $element.is('input')) { var InputCompat = require(this.get('amdBase') + 'compat/inputData'); this.options.dataAdapter = Utils.Decorate( this.options.dataAdapter, InputCompat ); } } Options.prototype.fromElement = function ($e) { var excludedData = ['select2']; if (this.options.multiple == null) { this.options.multiple = $e.prop('multiple'); } if (this.options.disabled == null) { this.options.disabled = $e.prop('disabled'); } if (this.options.dir == null) { if ($e.prop('dir')) { this.options.dir = $e.prop('dir'); } else if ($e.closest('[dir]').prop('dir')) { this.options.dir = $e.closest('[dir]').prop('dir'); } else { this.options.dir = 'ltr'; } } $e.prop('disabled', this.options.disabled); $e.prop('multiple', this.options.multiple); if (Utils.GetData($e[0], 'select2Tags')) { if (this.options.debug && window.console && console.warn) { console.warn( 'Select2: The `data-select2-tags` attribute has been changed to ' + 'use the `data-data` and `data-tags="true"` attributes and will be ' + 'removed in future versions of Select2.' ); } Utils.StoreData($e[0], 'data', Utils.GetData($e[0], 'select2Tags')); Utils.StoreData($e[0], 'tags', true); } if (Utils.GetData($e[0], 'ajaxUrl')) { if (this.options.debug && window.console && console.warn) { console.warn( 'Select2: The `data-ajax-url` attribute has been changed to ' + '`data-ajax--url` and support for the old attribute will be removed' + ' in future versions of Select2.' ); } $e.attr('ajax--url', Utils.GetData($e[0], 'ajaxUrl')); Utils.StoreData($e[0], 'ajax-Url', Utils.GetData($e[0], 'ajaxUrl')); } var dataset = {}; function upperCaseLetter(_, letter) { return letter.toUpperCase(); } // Pre-load all of the attributes which are prefixed with `data-` for (var attr = 0; attr < $e[0].attributes.length; attr++) { var attributeName = $e[0].attributes[attr].name; var prefix = 'data-'; if (attributeName.substr(0, prefix.length) == prefix) { // Get the contents of the attribute after `data-` var dataName = attributeName.substring(prefix.length); // Get the data contents from the consistent source // This is more than likely the jQuery data helper var dataValue = Utils.GetData($e[0], dataName); // camelCase the attribute name to match the spec var camelDataName = dataName.replace(/-([a-z])/g, upperCaseLetter); // Store the data attribute contents into the dataset since dataset[camelDataName] = dataValue; } } // Prefer the element's `dataset` attribute if it exists // jQuery 1.x does not correctly handle data attributes with multiple dashes if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) { dataset = $.extend(true, {}, $e[0].dataset, dataset); } // Prefer our internal data cache if it exists var data = $.extend(true, {}, Utils.GetData($e[0]), dataset); data = Utils._convertData(data); for (var key in data) { if ($.inArray(key, excludedData) > -1) { continue; } if ($.isPlainObject(this.options[key])) { $.extend(this.options[key], data[key]); } else { this.options[key] = data[key]; } } return this; }; Options.prototype.get = function (key) { return this.options[key]; }; Options.prototype.set = function (key, val) { this.options[key] = val; }; return Options; }); S2.define('select2/core',[ 'jquery', './options', './utils', './keys' ], function ($, Options, Utils, KEYS) { var Select2 = function ($element, options) { if (Utils.GetData($element[0], 'select2') != null) { Utils.GetData($element[0], 'select2').destroy(); } this.$element = $element; this.id = this._generateId($element); options = options || {}; this.options = new Options(options, $element); Select2.__super__.constructor.call(this); // Set up the tabindex var tabindex = $element.attr('tabindex') || 0; Utils.StoreData($element[0], 'old-tabindex', tabindex); $element.attr('tabindex', '-1'); // Set up containers and adapters var DataAdapter = this.options.get('dataAdapter'); this.dataAdapter = new DataAdapter($element, this.options); var $container = this.render(); this._placeContainer($container); var SelectionAdapter = this.options.get('selectionAdapter'); this.selection = new SelectionAdapter($element, this.options); this.$selection = this.selection.render(); this.selection.position(this.$selection, $container); var DropdownAdapter = this.options.get('dropdownAdapter'); this.dropdown = new DropdownAdapter($element, this.options); this.$dropdown = this.dropdown.render(); this.dropdown.position(this.$dropdown, $container); var ResultsAdapter = this.options.get('resultsAdapter'); this.results = new ResultsAdapter($element, this.options, this.dataAdapter); this.$results = this.results.render(); this.results.position(this.$results, this.$dropdown); // Bind events var self = this; // Bind the container to all of the adapters this._bindAdapters(); // Register any DOM event handlers this._registerDomEvents(); // Register any internal event handlers this._registerDataEvents(); this._registerSelectionEvents(); this._registerDropdownEvents(); this._registerResultsEvents(); this._registerEvents(); // Set the initial state this.dataAdapter.current(function (initialData) { self.trigger('selection:update', { data: initialData }); }); // Hide the original select $element.addClass('select2-hidden-accessible'); $element.attr('aria-hidden', 'true'); // Synchronize any monitored attributes this._syncAttributes(); Utils.StoreData($element[0], 'select2', this); // Ensure backwards compatibility with $element.data('select2'). $element.data('select2', this); }; Utils.Extend(Select2, Utils.Observable); Select2.prototype._generateId = function ($element) { var id = ''; if ($element.attr('id') != null) { id = $element.attr('id'); } else if ($element.attr('name') != null) { id = $element.attr('name') + '-' + Utils.generateChars(2); } else { id = Utils.generateChars(4); } id = id.replace(/(:|\.|\[|\]|,)/g, ''); id = 'select2-' + id; return id; }; Select2.prototype._placeContainer = function ($container) { $container.insertAfter(this.$element); var width = this._resolveWidth(this.$element, this.options.get('width')); if (width != null) { $container.css('width', width); } }; Select2.prototype._resolveWidth = function ($element, method) { var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i; if (method == 'resolve') { var styleWidth = this._resolveWidth($element, 'style'); if (styleWidth != null) { return styleWidth; } return this._resolveWidth($element, 'element'); } if (method == 'element') { var elementWidth = $element.outerWidth(false); if (elementWidth <= 0) { return 'auto'; } return elementWidth + 'px'; } if (method == 'style') { var style = $element.attr('style'); if (typeof(style) !== 'string') { return null; } var attrs = style.split(';'); for (var i = 0, l = attrs.length; i < l; i = i + 1) { var attr = attrs[i].replace(/\s/g, ''); var matches = attr.match(WIDTH); if (matches !== null && matches.length >= 1) { return matches[1]; } } return null; } if (method == 'computedstyle') { var computedStyle = window.getComputedStyle($element[0]); return computedStyle.width; } return method; }; Select2.prototype._bindAdapters = function () { this.dataAdapter.bind(this, this.$container); this.selection.bind(this, this.$container); this.dropdown.bind(this, this.$container); this.results.bind(this, this.$container); }; Select2.prototype._registerDomEvents = function () { var self = this; this.$element.on('change.select2', function () { self.dataAdapter.current(function (data) { self.trigger('selection:update', { data: data }); }); }); this.$element.on('focus.select2', function (evt) { self.trigger('focus', evt); }); this._syncA = Utils.bind(this._syncAttributes, this); this._syncS = Utils.bind(this._syncSubtree, this); if (this.$element[0].attachEvent) { this.$element[0].attachEvent('onpropertychange', this._syncA); } var observer = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver ; if (observer != null) { this._observer = new observer(function (mutations) { $.each(mutations, self._syncA); $.each(mutations, self._syncS); }); this._observer.observe(this.$element[0], { attributes: true, childList: true, subtree: false }); } else if (this.$element[0].addEventListener) { this.$element[0].addEventListener( 'DOMAttrModified', self._syncA, false ); this.$element[0].addEventListener( 'DOMNodeInserted', self._syncS, false ); this.$element[0].addEventListener( 'DOMNodeRemoved', self._syncS, false ); } }; Select2.prototype._registerDataEvents = function () { var self = this; this.dataAdapter.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerSelectionEvents = function () { var self = this; var nonRelayEvents = ['toggle', 'focus']; this.selection.on('toggle', function () { self.toggleDropdown(); }); this.selection.on('focus', function (params) { self.focus(params); }); this.selection.on('*', function (name, params) { if ($.inArray(name, nonRelayEvents) !== -1) { return; } self.trigger(name, params); }); }; Select2.prototype._registerDropdownEvents = function () { var self = this; this.dropdown.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerResultsEvents = function () { var self = this; this.results.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerEvents = function () { var self = this; this.on('open', function () { self.$container.addClass('select2-container--open'); }); this.on('close', function () { self.$container.removeClass('select2-container--open'); }); this.on('enable', function () { self.$container.removeClass('select2-container--disabled'); }); this.on('disable', function () { self.$container.addClass('select2-container--disabled'); }); this.on('blur', function () { self.$container.removeClass('select2-container--focus'); }); this.on('query', function (params) { if (!self.isOpen()) { self.trigger('open', {}); } this.dataAdapter.query(params, function (data) { self.trigger('results:all', { data: data, query: params }); }); }); this.on('query:append', function (params) { this.dataAdapter.query(params, function (data) { self.trigger('results:append', { data: data, query: params }); }); }); this.on('keypress', function (evt) { var key = evt.which; if (self.isOpen()) { if (key === KEYS.ESC || key === KEYS.TAB || (key === KEYS.UP && evt.altKey)) { self.close(); evt.preventDefault(); } else if (key === KEYS.ENTER) { self.trigger('results:select', {}); evt.preventDefault(); } else if ((key === KEYS.SPACE && evt.ctrlKey)) { self.trigger('results:toggle', {}); evt.preventDefault(); } else if (key === KEYS.UP) { self.trigger('results:previous', {}); evt.preventDefault(); } else if (key === KEYS.DOWN) { self.trigger('results:next', {}); evt.preventDefault(); } } else { if (key === KEYS.ENTER || key === KEYS.SPACE || (key === KEYS.DOWN && evt.altKey)) { self.open(); evt.preventDefault(); } } }); }; Select2.prototype._syncAttributes = function () { this.options.set('disabled', this.$element.prop('disabled')); if (this.options.get('disabled')) { if (this.isOpen()) { this.close(); } this.trigger('disable', {}); } else { this.trigger('enable', {}); } }; Select2.prototype._syncSubtree = function (evt, mutations) { var changed = false; var self = this; // Ignore any mutation events raised for elements that aren't options or // optgroups. This handles the case when the select element is destroyed if ( evt && evt.target && ( evt.target.nodeName !== 'OPTION' && evt.target.nodeName !== 'OPTGROUP' ) ) { return; } if (!mutations) { // If mutation events aren't supported, then we can only assume that the // change affected the selections changed = true; } else if (mutations.addedNodes && mutations.addedNodes.length > 0) { for (var n = 0; n < mutations.addedNodes.length; n++) { var node = mutations.addedNodes[n]; if (node.selected) { changed = true; } } } else if (mutations.removedNodes && mutations.removedNodes.length > 0) { changed = true; } // Only re-pull the data if we think there is a change if (changed) { this.dataAdapter.current(function (currentData) { self.trigger('selection:update', { data: currentData }); }); } }; /** * Override the trigger method to automatically trigger pre-events when * there are events that can be prevented. */ Select2.prototype.trigger = function (name, args) { var actualTrigger = Select2.__super__.trigger; var preTriggerMap = { 'open': 'opening', 'close': 'closing', 'select': 'selecting', 'unselect': 'unselecting', 'clear': 'clearing' }; if (args === undefined) { args = {}; } if (name in preTriggerMap) { var preTriggerName = preTriggerMap[name]; var preTriggerArgs = { prevented: false, name: name, args: args }; actualTrigger.call(this, preTriggerName, preTriggerArgs); if (preTriggerArgs.prevented) { args.prevented = true; return; } } actualTrigger.call(this, name, args); }; Select2.prototype.toggleDropdown = function () { if (this.options.get('disabled')) { return; } if (this.isOpen()) { this.close(); } else { this.open(); } }; Select2.prototype.open = function () { if (this.isOpen()) { return; } this.trigger('query', {}); }; Select2.prototype.close = function () { if (!this.isOpen()) { return; } this.trigger('close', {}); }; Select2.prototype.isOpen = function () { return this.$container.hasClass('select2-container--open'); }; Select2.prototype.hasFocus = function () { return this.$container.hasClass('select2-container--focus'); }; Select2.prototype.focus = function (data) { // No need to re-trigger focus events if we are already focused if (this.hasFocus()) { return; } this.$container.addClass('select2-container--focus'); this.trigger('focus', {}); }; Select2.prototype.enable = function (args) { if (this.options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `select2("enable")` method has been deprecated and will' + ' be removed in later Select2 versions. Use $element.prop("disabled")' + ' instead.' ); } if (args == null || args.length === 0) { args = [true]; } var disabled = !args[0]; this.$element.prop('disabled', disabled); }; Select2.prototype.data = function () { if (this.options.get('debug') && arguments.length > 0 && window.console && console.warn) { console.warn( 'Select2: Data can no longer be set using `select2("data")`. You ' + 'should consider setting the value instead using `$element.val()`.' ); } var data = []; this.dataAdapter.current(function (currentData) { data = currentData; }); return data; }; Select2.prototype.val = function (args) { if (this.options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `select2("val")` method has been deprecated and will be' + ' removed in later Select2 versions. Use $element.val() instead.' ); } if (args == null || args.length === 0) { return this.$element.val(); } var newVal = args[0]; if ($.isArray(newVal)) { newVal = $.map(newVal, function (obj) { return obj.toString(); }); } this.$element.val(newVal).trigger('change'); }; Select2.prototype.destroy = function () { this.$container.remove(); if (this.$element[0].detachEvent) { this.$element[0].detachEvent('onpropertychange', this._syncA); } if (this._observer != null) { this._observer.disconnect(); this._observer = null; } else if (this.$element[0].removeEventListener) { this.$element[0] .removeEventListener('DOMAttrModified', this._syncA, false); this.$element[0] .removeEventListener('DOMNodeInserted', this._syncS, false); this.$element[0] .removeEventListener('DOMNodeRemoved', this._syncS, false); } this._syncA = null; this._syncS = null; this.$element.off('.select2'); this.$element.attr('tabindex', Utils.GetData(this.$element[0], 'old-tabindex')); this.$element.removeClass('select2-hidden-accessible'); this.$element.attr('aria-hidden', 'false'); Utils.RemoveData(this.$element[0]); this.$element.removeData('select2'); this.dataAdapter.destroy(); this.selection.destroy(); this.dropdown.destroy(); this.results.destroy(); this.dataAdapter = null; this.selection = null; this.dropdown = null; this.results = null; }; Select2.prototype.render = function () { var $container = $( '' + '' + '' + '' ); $container.attr('dir', this.options.get('dir')); this.$container = $container; this.$container.addClass('select2-container--' + this.options.get('theme')); Utils.StoreData($container[0], 'element', this.$element); return $container; }; return Select2; }); S2.define('select2/compat/utils',[ 'jquery' ], function ($) { function syncCssClasses ($dest, $src, adapter) { var classes, replacements = [], adapted; classes = $.trim($dest.attr('class')); if (classes) { classes = '' + classes; // for IE which returns object $(classes.split(/\s+/)).each(function () { // Save all Select2 classes if (this.indexOf('select2-') === 0) { replacements.push(this); } }); } classes = $.trim($src.attr('class')); if (classes) { classes = '' + classes; // for IE which returns object $(classes.split(/\s+/)).each(function () { // Only adapt non-Select2 classes if (this.indexOf('select2-') !== 0) { adapted = adapter(this); if (adapted != null) { replacements.push(adapted); } } }); } $dest.attr('class', replacements.join(' ')); } return { syncCssClasses: syncCssClasses }; }); S2.define('select2/compat/containerCss',[ 'jquery', './utils' ], function ($, CompatUtils) { // No-op CSS adapter that discards all classes by default function _containerAdapter (clazz) { return null; } function ContainerCSS () { } ContainerCSS.prototype.render = function (decorated) { var $container = decorated.call(this); var containerCssClass = this.options.get('containerCssClass') || ''; if ($.isFunction(containerCssClass)) { containerCssClass = containerCssClass(this.$element); } var containerCssAdapter = this.options.get('adaptContainerCssClass'); containerCssAdapter = containerCssAdapter || _containerAdapter; if (containerCssClass.indexOf(':all:') !== -1) { containerCssClass = containerCssClass.replace(':all:', ''); var _cssAdapter = containerCssAdapter; containerCssAdapter = function (clazz) { var adapted = _cssAdapter(clazz); if (adapted != null) { // Append the old one along with the adapted one return adapted + ' ' + clazz; } return clazz; }; } var containerCss = this.options.get('containerCss') || {}; if ($.isFunction(containerCss)) { containerCss = containerCss(this.$element); } CompatUtils.syncCssClasses($container, this.$element, containerCssAdapter); $container.css(containerCss); $container.addClass(containerCssClass); return $container; }; return ContainerCSS; }); S2.define('select2/compat/dropdownCss',[ 'jquery', './utils' ], function ($, CompatUtils) { // No-op CSS adapter that discards all classes by default function _dropdownAdapter (clazz) { return null; } function DropdownCSS () { } DropdownCSS.prototype.render = function (decorated) { var $dropdown = decorated.call(this); var dropdownCssClass = this.options.get('dropdownCssClass') || ''; if ($.isFunction(dropdownCssClass)) { dropdownCssClass = dropdownCssClass(this.$element); } var dropdownCssAdapter = this.options.get('adaptDropdownCssClass'); dropdownCssAdapter = dropdownCssAdapter || _dropdownAdapter; if (dropdownCssClass.indexOf(':all:') !== -1) { dropdownCssClass = dropdownCssClass.replace(':all:', ''); var _cssAdapter = dropdownCssAdapter; dropdownCssAdapter = function (clazz) { var adapted = _cssAdapter(clazz); if (adapted != null) { // Append the old one along with the adapted one return adapted + ' ' + clazz; } return clazz; }; } var dropdownCss = this.options.get('dropdownCss') || {}; if ($.isFunction(dropdownCss)) { dropdownCss = dropdownCss(this.$element); } CompatUtils.syncCssClasses($dropdown, this.$element, dropdownCssAdapter); $dropdown.css(dropdownCss); $dropdown.addClass(dropdownCssClass); return $dropdown; }; return DropdownCSS; }); S2.define('select2/compat/initSelection',[ 'jquery' ], function ($) { function InitSelection (decorated, $element, options) { if (options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `initSelection` option has been deprecated in favor' + ' of a custom data adapter that overrides the `current` method. ' + 'This method is now called multiple times instead of a single ' + 'time when the instance is initialized. Support will be removed ' + 'for the `initSelection` option in future versions of Select2' ); } this.initSelection = options.get('initSelection'); this._isInitialized = false; decorated.call(this, $element, options); } InitSelection.prototype.current = function (decorated, callback) { var self = this; if (this._isInitialized) { decorated.call(this, callback); return; } this.initSelection.call(null, this.$element, function (data) { self._isInitialized = true; if (!$.isArray(data)) { data = [data]; } callback(data); }); }; return InitSelection; }); S2.define('select2/compat/inputData',[ 'jquery', '../utils' ], function ($, Utils) { function InputData (decorated, $element, options) { this._currentData = []; this._valueSeparator = options.get('valueSeparator') || ','; if ($element.prop('type') === 'hidden') { if (options.get('debug') && console && console.warn) { console.warn( 'Select2: Using a hidden input with Select2 is no longer ' + 'supported and may stop working in the future. It is recommended ' + 'to use a `' + '' ); this.$searchContainer = $search; this.$search = $search.find('input'); var $rendered = decorated.call(this); this._transferTabIndex(); return $rendered; }; Search.prototype.bind = function (decorated, container, $container) { var self = this; var resultsId = container.id + '-results'; decorated.call(this, container, $container); container.on('open', function () { self.$search.attr('aria-controls', resultsId); self.$search.trigger('focus'); }); container.on('close', function () { self.$search.val(''); self.$search.removeAttr('aria-controls'); self.$search.removeAttr('aria-activedescendant'); self.$search.trigger('focus'); }); container.on('enable', function () { self.$search.prop('disabled', false); self._transferTabIndex(); }); container.on('disable', function () { self.$search.prop('disabled', true); }); container.on('focus', function (evt) { self.$search.trigger('focus'); }); container.on('results:focus', function (params) { if (params.data._resultId) { self.$search.attr('aria-activedescendant', params.data._resultId); } else { self.$search.removeAttr('aria-activedescendant'); } }); this.$selection.on('focusin', '.select2-search--inline', function (evt) { self.trigger('focus', evt); }); this.$selection.on('focusout', '.select2-search--inline', function (evt) { self._handleBlur(evt); }); this.$selection.on('keydown', '.select2-search--inline', function (evt) { evt.stopPropagation(); self.trigger('keypress', evt); self._keyUpPrevented = evt.isDefaultPrevented(); var key = evt.which; if (key === KEYS.BACKSPACE && self.$search.val() === '') { var $previousChoice = self.$searchContainer .prev('.select2-selection__choice'); if ($previousChoice.length > 0) { var item = Utils.GetData($previousChoice[0], 'data'); self.searchRemoveChoice(item); evt.preventDefault(); } } }); this.$selection.on('click', '.select2-search--inline', function (evt) { if (self.$search.val()) { evt.stopPropagation(); } }); // Try to detect the IE version should the `documentMode` property that // is stored on the document. This is only implemented in IE and is // slightly cleaner than doing a user agent check. // This property is not available in Edge, but Edge also doesn't have // this bug. var msie = document.documentMode; var disableInputEvents = msie && msie <= 11; // Workaround for browsers which do not support the `input` event // This will prevent double-triggering of events for browsers which support // both the `keyup` and `input` events. this.$selection.on( 'input.searchcheck', '.select2-search--inline', function (evt) { // IE will trigger the `input` event when a placeholder is used on a // search box. To get around this issue, we are forced to ignore all // `input` events in IE and keep using `keyup`. if (disableInputEvents) { self.$selection.off('input.search input.searchcheck'); return; } // Unbind the duplicated `keyup` event self.$selection.off('keyup.search'); } ); this.$selection.on( 'keyup.search input.search', '.select2-search--inline', function (evt) { // IE will trigger the `input` event when a placeholder is used on a // search box. To get around this issue, we are forced to ignore all // `input` events in IE and keep using `keyup`. if (disableInputEvents && evt.type === 'input') { self.$selection.off('input.search input.searchcheck'); return; } var key = evt.which; // We can freely ignore events from modifier keys if (key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT) { return; } // Tabbing will be handled during the `keydown` phase if (key == KEYS.TAB) { return; } self.handleSearch(evt); } ); }; /** * This method will transfer the tabindex attribute from the rendered * selection to the search box. This allows for the search box to be used as * the primary focus instead of the selection container. * * @private */ Search.prototype._transferTabIndex = function (decorated) { this.$search.attr('tabindex', this.$selection.attr('tabindex')); this.$selection.attr('tabindex', '-1'); }; Search.prototype.createPlaceholder = function (decorated, placeholder) { this.$search.attr('placeholder', placeholder.text); }; Search.prototype.update = function (decorated, data) { var searchHadFocus = this.$search[0] == document.activeElement; this.$search.attr('placeholder', ''); decorated.call(this, data); this.$selection.find('.select2-selection__rendered') .append(this.$searchContainer); this.resizeSearch(); if (searchHadFocus) { this.$search.trigger('focus'); } }; Search.prototype.handleSearch = function () { this.resizeSearch(); if (!this._keyUpPrevented) { var input = this.$search.val(); this.trigger('query', { term: input }); } this._keyUpPrevented = false; }; Search.prototype.searchRemoveChoice = function (decorated, item) { this.trigger('unselect', { data: item }); this.$search.val(item.text); this.handleSearch(); }; Search.prototype.resizeSearch = function () { this.$search.css('width', '25px'); var width = ''; if (this.$search.attr('placeholder') !== '') { width = this.$selection.find('.select2-selection__rendered').width(); } else { var minimumWidth = this.$search.val().length + 1; width = (minimumWidth * 0.75) + 'em'; } this.$search.css('width', width); }; return Search; }); S2.define('select2/selection/eventRelay',[ 'jquery' ], function ($) { function EventRelay () { } EventRelay.prototype.bind = function (decorated, container, $container) { var self = this; var relayEvents = [ 'open', 'opening', 'close', 'closing', 'select', 'selecting', 'unselect', 'unselecting', 'clear', 'clearing' ]; var preventableEvents = [ 'opening', 'closing', 'selecting', 'unselecting', 'clearing' ]; decorated.call(this, container, $container); container.on('*', function (name, params) { // Ignore events that should not be relayed if ($.inArray(name, relayEvents) === -1) { return; } // The parameters should always be an object params = params || {}; // Generate the jQuery event for the Select2 event var evt = $.Event('select2:' + name, { params: params }); self.$element.trigger(evt); // Only handle preventable events if it was one if ($.inArray(name, preventableEvents) === -1) { return; } params.prevented = evt.isDefaultPrevented(); }); }; return EventRelay; }); S2.define('select2/translation',[ 'jquery', 'require' ], function ($, require) { function Translation (dict) { this.dict = dict || {}; } Translation.prototype.all = function () { return this.dict; }; Translation.prototype.get = function (key) { return this.dict[key]; }; Translation.prototype.extend = function (translation) { this.dict = $.extend({}, translation.all(), this.dict); }; // Static functions Translation._cache = {}; Translation.loadPath = function (path) { if (!(path in Translation._cache)) { var translations = require(path); Translation._cache[path] = translations; } return new Translation(Translation._cache[path]); }; return Translation; }); S2.define('select2/diacritics',[ ], function () { var diacritics = { '\u24B6': 'A', '\uFF21': 'A', '\u00C0': 'A', '\u00C1': 'A', '\u00C2': 'A', '\u1EA6': 'A', '\u1EA4': 'A', '\u1EAA': 'A', '\u1EA8': 'A', '\u00C3': 'A', '\u0100': 'A', '\u0102': 'A', '\u1EB0': 'A', '\u1EAE': 'A', '\u1EB4': 'A', '\u1EB2': 'A', '\u0226': 'A', '\u01E0': 'A', '\u00C4': 'A', '\u01DE': 'A', '\u1EA2': 'A', '\u00C5': 'A', '\u01FA': 'A', '\u01CD': 'A', '\u0200': 'A', '\u0202': 'A', '\u1EA0': 'A', '\u1EAC': 'A', '\u1EB6': 'A', '\u1E00': 'A', '\u0104': 'A', '\u023A': 'A', '\u2C6F': 'A', '\uA732': 'AA', '\u00C6': 'AE', '\u01FC': 'AE', '\u01E2': 'AE', '\uA734': 'AO', '\uA736': 'AU', '\uA738': 'AV', '\uA73A': 'AV', '\uA73C': 'AY', '\u24B7': 'B', '\uFF22': 'B', '\u1E02': 'B', '\u1E04': 'B', '\u1E06': 'B', '\u0243': 'B', '\u0182': 'B', '\u0181': 'B', '\u24B8': 'C', '\uFF23': 'C', '\u0106': 'C', '\u0108': 'C', '\u010A': 'C', '\u010C': 'C', '\u00C7': 'C', '\u1E08': 'C', '\u0187': 'C', '\u023B': 'C', '\uA73E': 'C', '\u24B9': 'D', '\uFF24': 'D', '\u1E0A': 'D', '\u010E': 'D', '\u1E0C': 'D', '\u1E10': 'D', '\u1E12': 'D', '\u1E0E': 'D', '\u0110': 'D', '\u018B': 'D', '\u018A': 'D', '\u0189': 'D', '\uA779': 'D', '\u01F1': 'DZ', '\u01C4': 'DZ', '\u01F2': 'Dz', '\u01C5': 'Dz', '\u24BA': 'E', '\uFF25': 'E', '\u00C8': 'E', '\u00C9': 'E', '\u00CA': 'E', '\u1EC0': 'E', '\u1EBE': 'E', '\u1EC4': 'E', '\u1EC2': 'E', '\u1EBC': 'E', '\u0112': 'E', '\u1E14': 'E', '\u1E16': 'E', '\u0114': 'E', '\u0116': 'E', '\u00CB': 'E', '\u1EBA': 'E', '\u011A': 'E', '\u0204': 'E', '\u0206': 'E', '\u1EB8': 'E', '\u1EC6': 'E', '\u0228': 'E', '\u1E1C': 'E', '\u0118': 'E', '\u1E18': 'E', '\u1E1A': 'E', '\u0190': 'E', '\u018E': 'E', '\u24BB': 'F', '\uFF26': 'F', '\u1E1E': 'F', '\u0191': 'F', '\uA77B': 'F', '\u24BC': 'G', '\uFF27': 'G', '\u01F4': 'G', '\u011C': 'G', '\u1E20': 'G', '\u011E': 'G', '\u0120': 'G', '\u01E6': 'G', '\u0122': 'G', '\u01E4': 'G', '\u0193': 'G', '\uA7A0': 'G', '\uA77D': 'G', '\uA77E': 'G', '\u24BD': 'H', '\uFF28': 'H', '\u0124': 'H', '\u1E22': 'H', '\u1E26': 'H', '\u021E': 'H', '\u1E24': 'H', '\u1E28': 'H', '\u1E2A': 'H', '\u0126': 'H', '\u2C67': 'H', '\u2C75': 'H', '\uA78D': 'H', '\u24BE': 'I', '\uFF29': 'I', '\u00CC': 'I', '\u00CD': 'I', '\u00CE': 'I', '\u0128': 'I', '\u012A': 'I', '\u012C': 'I', '\u0130': 'I', '\u00CF': 'I', '\u1E2E': 'I', '\u1EC8': 'I', '\u01CF': 'I', '\u0208': 'I', '\u020A': 'I', '\u1ECA': 'I', '\u012E': 'I', '\u1E2C': 'I', '\u0197': 'I', '\u24BF': 'J', '\uFF2A': 'J', '\u0134': 'J', '\u0248': 'J', '\u24C0': 'K', '\uFF2B': 'K', '\u1E30': 'K', '\u01E8': 'K', '\u1E32': 'K', '\u0136': 'K', '\u1E34': 'K', '\u0198': 'K', '\u2C69': 'K', '\uA740': 'K', '\uA742': 'K', '\uA744': 'K', '\uA7A2': 'K', '\u24C1': 'L', '\uFF2C': 'L', '\u013F': 'L', '\u0139': 'L', '\u013D': 'L', '\u1E36': 'L', '\u1E38': 'L', '\u013B': 'L', '\u1E3C': 'L', '\u1E3A': 'L', '\u0141': 'L', '\u023D': 'L', '\u2C62': 'L', '\u2C60': 'L', '\uA748': 'L', '\uA746': 'L', '\uA780': 'L', '\u01C7': 'LJ', '\u01C8': 'Lj', '\u24C2': 'M', '\uFF2D': 'M', '\u1E3E': 'M', '\u1E40': 'M', '\u1E42': 'M', '\u2C6E': 'M', '\u019C': 'M', '\u24C3': 'N', '\uFF2E': 'N', '\u01F8': 'N', '\u0143': 'N', '\u00D1': 'N', '\u1E44': 'N', '\u0147': 'N', '\u1E46': 'N', '\u0145': 'N', '\u1E4A': 'N', '\u1E48': 'N', '\u0220': 'N', '\u019D': 'N', '\uA790': 'N', '\uA7A4': 'N', '\u01CA': 'NJ', '\u01CB': 'Nj', '\u24C4': 'O', '\uFF2F': 'O', '\u00D2': 'O', '\u00D3': 'O', '\u00D4': 'O', '\u1ED2': 'O', '\u1ED0': 'O', '\u1ED6': 'O', '\u1ED4': 'O', '\u00D5': 'O', '\u1E4C': 'O', '\u022C': 'O', '\u1E4E': 'O', '\u014C': 'O', '\u1E50': 'O', '\u1E52': 'O', '\u014E': 'O', '\u022E': 'O', '\u0230': 'O', '\u00D6': 'O', '\u022A': 'O', '\u1ECE': 'O', '\u0150': 'O', '\u01D1': 'O', '\u020C': 'O', '\u020E': 'O', '\u01A0': 'O', '\u1EDC': 'O', '\u1EDA': 'O', '\u1EE0': 'O', '\u1EDE': 'O', '\u1EE2': 'O', '\u1ECC': 'O', '\u1ED8': 'O', '\u01EA': 'O', '\u01EC': 'O', '\u00D8': 'O', '\u01FE': 'O', '\u0186': 'O', '\u019F': 'O', '\uA74A': 'O', '\uA74C': 'O', '\u0152': 'OE', '\u01A2': 'OI', '\uA74E': 'OO', '\u0222': 'OU', '\u24C5': 'P', '\uFF30': 'P', '\u1E54': 'P', '\u1E56': 'P', '\u01A4': 'P', '\u2C63': 'P', '\uA750': 'P', '\uA752': 'P', '\uA754': 'P', '\u24C6': 'Q', '\uFF31': 'Q', '\uA756': 'Q', '\uA758': 'Q', '\u024A': 'Q', '\u24C7': 'R', '\uFF32': 'R', '\u0154': 'R', '\u1E58': 'R', '\u0158': 'R', '\u0210': 'R', '\u0212': 'R', '\u1E5A': 'R', '\u1E5C': 'R', '\u0156': 'R', '\u1E5E': 'R', '\u024C': 'R', '\u2C64': 'R', '\uA75A': 'R', '\uA7A6': 'R', '\uA782': 'R', '\u24C8': 'S', '\uFF33': 'S', '\u1E9E': 'S', '\u015A': 'S', '\u1E64': 'S', '\u015C': 'S', '\u1E60': 'S', '\u0160': 'S', '\u1E66': 'S', '\u1E62': 'S', '\u1E68': 'S', '\u0218': 'S', '\u015E': 'S', '\u2C7E': 'S', '\uA7A8': 'S', '\uA784': 'S', '\u24C9': 'T', '\uFF34': 'T', '\u1E6A': 'T', '\u0164': 'T', '\u1E6C': 'T', '\u021A': 'T', '\u0162': 'T', '\u1E70': 'T', '\u1E6E': 'T', '\u0166': 'T', '\u01AC': 'T', '\u01AE': 'T', '\u023E': 'T', '\uA786': 'T', '\uA728': 'TZ', '\u24CA': 'U', '\uFF35': 'U', '\u00D9': 'U', '\u00DA': 'U', '\u00DB': 'U', '\u0168': 'U', '\u1E78': 'U', '\u016A': 'U', '\u1E7A': 'U', '\u016C': 'U', '\u00DC': 'U', '\u01DB': 'U', '\u01D7': 'U', '\u01D5': 'U', '\u01D9': 'U', '\u1EE6': 'U', '\u016E': 'U', '\u0170': 'U', '\u01D3': 'U', '\u0214': 'U', '\u0216': 'U', '\u01AF': 'U', '\u1EEA': 'U', '\u1EE8': 'U', '\u1EEE': 'U', '\u1EEC': 'U', '\u1EF0': 'U', '\u1EE4': 'U', '\u1E72': 'U', '\u0172': 'U', '\u1E76': 'U', '\u1E74': 'U', '\u0244': 'U', '\u24CB': 'V', '\uFF36': 'V', '\u1E7C': 'V', '\u1E7E': 'V', '\u01B2': 'V', '\uA75E': 'V', '\u0245': 'V', '\uA760': 'VY', '\u24CC': 'W', '\uFF37': 'W', '\u1E80': 'W', '\u1E82': 'W', '\u0174': 'W', '\u1E86': 'W', '\u1E84': 'W', '\u1E88': 'W', '\u2C72': 'W', '\u24CD': 'X', '\uFF38': 'X', '\u1E8A': 'X', '\u1E8C': 'X', '\u24CE': 'Y', '\uFF39': 'Y', '\u1EF2': 'Y', '\u00DD': 'Y', '\u0176': 'Y', '\u1EF8': 'Y', '\u0232': 'Y', '\u1E8E': 'Y', '\u0178': 'Y', '\u1EF6': 'Y', '\u1EF4': 'Y', '\u01B3': 'Y', '\u024E': 'Y', '\u1EFE': 'Y', '\u24CF': 'Z', '\uFF3A': 'Z', '\u0179': 'Z', '\u1E90': 'Z', '\u017B': 'Z', '\u017D': 'Z', '\u1E92': 'Z', '\u1E94': 'Z', '\u01B5': 'Z', '\u0224': 'Z', '\u2C7F': 'Z', '\u2C6B': 'Z', '\uA762': 'Z', '\u24D0': 'a', '\uFF41': 'a', '\u1E9A': 'a', '\u00E0': 'a', '\u00E1': 'a', '\u00E2': 'a', '\u1EA7': 'a', '\u1EA5': 'a', '\u1EAB': 'a', '\u1EA9': 'a', '\u00E3': 'a', '\u0101': 'a', '\u0103': 'a', '\u1EB1': 'a', '\u1EAF': 'a', '\u1EB5': 'a', '\u1EB3': 'a', '\u0227': 'a', '\u01E1': 'a', '\u00E4': 'a', '\u01DF': 'a', '\u1EA3': 'a', '\u00E5': 'a', '\u01FB': 'a', '\u01CE': 'a', '\u0201': 'a', '\u0203': 'a', '\u1EA1': 'a', '\u1EAD': 'a', '\u1EB7': 'a', '\u1E01': 'a', '\u0105': 'a', '\u2C65': 'a', '\u0250': 'a', '\uA733': 'aa', '\u00E6': 'ae', '\u01FD': 'ae', '\u01E3': 'ae', '\uA735': 'ao', '\uA737': 'au', '\uA739': 'av', '\uA73B': 'av', '\uA73D': 'ay', '\u24D1': 'b', '\uFF42': 'b', '\u1E03': 'b', '\u1E05': 'b', '\u1E07': 'b', '\u0180': 'b', '\u0183': 'b', '\u0253': 'b', '\u24D2': 'c', '\uFF43': 'c', '\u0107': 'c', '\u0109': 'c', '\u010B': 'c', '\u010D': 'c', '\u00E7': 'c', '\u1E09': 'c', '\u0188': 'c', '\u023C': 'c', '\uA73F': 'c', '\u2184': 'c', '\u24D3': 'd', '\uFF44': 'd', '\u1E0B': 'd', '\u010F': 'd', '\u1E0D': 'd', '\u1E11': 'd', '\u1E13': 'd', '\u1E0F': 'd', '\u0111': 'd', '\u018C': 'd', '\u0256': 'd', '\u0257': 'd', '\uA77A': 'd', '\u01F3': 'dz', '\u01C6': 'dz', '\u24D4': 'e', '\uFF45': 'e', '\u00E8': 'e', '\u00E9': 'e', '\u00EA': 'e', '\u1EC1': 'e', '\u1EBF': 'e', '\u1EC5': 'e', '\u1EC3': 'e', '\u1EBD': 'e', '\u0113': 'e', '\u1E15': 'e', '\u1E17': 'e', '\u0115': 'e', '\u0117': 'e', '\u00EB': 'e', '\u1EBB': 'e', '\u011B': 'e', '\u0205': 'e', '\u0207': 'e', '\u1EB9': 'e', '\u1EC7': 'e', '\u0229': 'e', '\u1E1D': 'e', '\u0119': 'e', '\u1E19': 'e', '\u1E1B': 'e', '\u0247': 'e', '\u025B': 'e', '\u01DD': 'e', '\u24D5': 'f', '\uFF46': 'f', '\u1E1F': 'f', '\u0192': 'f', '\uA77C': 'f', '\u24D6': 'g', '\uFF47': 'g', '\u01F5': 'g', '\u011D': 'g', '\u1E21': 'g', '\u011F': 'g', '\u0121': 'g', '\u01E7': 'g', '\u0123': 'g', '\u01E5': 'g', '\u0260': 'g', '\uA7A1': 'g', '\u1D79': 'g', '\uA77F': 'g', '\u24D7': 'h', '\uFF48': 'h', '\u0125': 'h', '\u1E23': 'h', '\u1E27': 'h', '\u021F': 'h', '\u1E25': 'h', '\u1E29': 'h', '\u1E2B': 'h', '\u1E96': 'h', '\u0127': 'h', '\u2C68': 'h', '\u2C76': 'h', '\u0265': 'h', '\u0195': 'hv', '\u24D8': 'i', '\uFF49': 'i', '\u00EC': 'i', '\u00ED': 'i', '\u00EE': 'i', '\u0129': 'i', '\u012B': 'i', '\u012D': 'i', '\u00EF': 'i', '\u1E2F': 'i', '\u1EC9': 'i', '\u01D0': 'i', '\u0209': 'i', '\u020B': 'i', '\u1ECB': 'i', '\u012F': 'i', '\u1E2D': 'i', '\u0268': 'i', '\u0131': 'i', '\u24D9': 'j', '\uFF4A': 'j', '\u0135': 'j', '\u01F0': 'j', '\u0249': 'j', '\u24DA': 'k', '\uFF4B': 'k', '\u1E31': 'k', '\u01E9': 'k', '\u1E33': 'k', '\u0137': 'k', '\u1E35': 'k', '\u0199': 'k', '\u2C6A': 'k', '\uA741': 'k', '\uA743': 'k', '\uA745': 'k', '\uA7A3': 'k', '\u24DB': 'l', '\uFF4C': 'l', '\u0140': 'l', '\u013A': 'l', '\u013E': 'l', '\u1E37': 'l', '\u1E39': 'l', '\u013C': 'l', '\u1E3D': 'l', '\u1E3B': 'l', '\u017F': 'l', '\u0142': 'l', '\u019A': 'l', '\u026B': 'l', '\u2C61': 'l', '\uA749': 'l', '\uA781': 'l', '\uA747': 'l', '\u01C9': 'lj', '\u24DC': 'm', '\uFF4D': 'm', '\u1E3F': 'm', '\u1E41': 'm', '\u1E43': 'm', '\u0271': 'm', '\u026F': 'm', '\u24DD': 'n', '\uFF4E': 'n', '\u01F9': 'n', '\u0144': 'n', '\u00F1': 'n', '\u1E45': 'n', '\u0148': 'n', '\u1E47': 'n', '\u0146': 'n', '\u1E4B': 'n', '\u1E49': 'n', '\u019E': 'n', '\u0272': 'n', '\u0149': 'n', '\uA791': 'n', '\uA7A5': 'n', '\u01CC': 'nj', '\u24DE': 'o', '\uFF4F': 'o', '\u00F2': 'o', '\u00F3': 'o', '\u00F4': 'o', '\u1ED3': 'o', '\u1ED1': 'o', '\u1ED7': 'o', '\u1ED5': 'o', '\u00F5': 'o', '\u1E4D': 'o', '\u022D': 'o', '\u1E4F': 'o', '\u014D': 'o', '\u1E51': 'o', '\u1E53': 'o', '\u014F': 'o', '\u022F': 'o', '\u0231': 'o', '\u00F6': 'o', '\u022B': 'o', '\u1ECF': 'o', '\u0151': 'o', '\u01D2': 'o', '\u020D': 'o', '\u020F': 'o', '\u01A1': 'o', '\u1EDD': 'o', '\u1EDB': 'o', '\u1EE1': 'o', '\u1EDF': 'o', '\u1EE3': 'o', '\u1ECD': 'o', '\u1ED9': 'o', '\u01EB': 'o', '\u01ED': 'o', '\u00F8': 'o', '\u01FF': 'o', '\u0254': 'o', '\uA74B': 'o', '\uA74D': 'o', '\u0275': 'o', '\u0153': 'oe', '\u01A3': 'oi', '\u0223': 'ou', '\uA74F': 'oo', '\u24DF': 'p', '\uFF50': 'p', '\u1E55': 'p', '\u1E57': 'p', '\u01A5': 'p', '\u1D7D': 'p', '\uA751': 'p', '\uA753': 'p', '\uA755': 'p', '\u24E0': 'q', '\uFF51': 'q', '\u024B': 'q', '\uA757': 'q', '\uA759': 'q', '\u24E1': 'r', '\uFF52': 'r', '\u0155': 'r', '\u1E59': 'r', '\u0159': 'r', '\u0211': 'r', '\u0213': 'r', '\u1E5B': 'r', '\u1E5D': 'r', '\u0157': 'r', '\u1E5F': 'r', '\u024D': 'r', '\u027D': 'r', '\uA75B': 'r', '\uA7A7': 'r', '\uA783': 'r', '\u24E2': 's', '\uFF53': 's', '\u00DF': 's', '\u015B': 's', '\u1E65': 's', '\u015D': 's', '\u1E61': 's', '\u0161': 's', '\u1E67': 's', '\u1E63': 's', '\u1E69': 's', '\u0219': 's', '\u015F': 's', '\u023F': 's', '\uA7A9': 's', '\uA785': 's', '\u1E9B': 's', '\u24E3': 't', '\uFF54': 't', '\u1E6B': 't', '\u1E97': 't', '\u0165': 't', '\u1E6D': 't', '\u021B': 't', '\u0163': 't', '\u1E71': 't', '\u1E6F': 't', '\u0167': 't', '\u01AD': 't', '\u0288': 't', '\u2C66': 't', '\uA787': 't', '\uA729': 'tz', '\u24E4': 'u', '\uFF55': 'u', '\u00F9': 'u', '\u00FA': 'u', '\u00FB': 'u', '\u0169': 'u', '\u1E79': 'u', '\u016B': 'u', '\u1E7B': 'u', '\u016D': 'u', '\u00FC': 'u', '\u01DC': 'u', '\u01D8': 'u', '\u01D6': 'u', '\u01DA': 'u', '\u1EE7': 'u', '\u016F': 'u', '\u0171': 'u', '\u01D4': 'u', '\u0215': 'u', '\u0217': 'u', '\u01B0': 'u', '\u1EEB': 'u', '\u1EE9': 'u', '\u1EEF': 'u', '\u1EED': 'u', '\u1EF1': 'u', '\u1EE5': 'u', '\u1E73': 'u', '\u0173': 'u', '\u1E77': 'u', '\u1E75': 'u', '\u0289': 'u', '\u24E5': 'v', '\uFF56': 'v', '\u1E7D': 'v', '\u1E7F': 'v', '\u028B': 'v', '\uA75F': 'v', '\u028C': 'v', '\uA761': 'vy', '\u24E6': 'w', '\uFF57': 'w', '\u1E81': 'w', '\u1E83': 'w', '\u0175': 'w', '\u1E87': 'w', '\u1E85': 'w', '\u1E98': 'w', '\u1E89': 'w', '\u2C73': 'w', '\u24E7': 'x', '\uFF58': 'x', '\u1E8B': 'x', '\u1E8D': 'x', '\u24E8': 'y', '\uFF59': 'y', '\u1EF3': 'y', '\u00FD': 'y', '\u0177': 'y', '\u1EF9': 'y', '\u0233': 'y', '\u1E8F': 'y', '\u00FF': 'y', '\u1EF7': 'y', '\u1E99': 'y', '\u1EF5': 'y', '\u01B4': 'y', '\u024F': 'y', '\u1EFF': 'y', '\u24E9': 'z', '\uFF5A': 'z', '\u017A': 'z', '\u1E91': 'z', '\u017C': 'z', '\u017E': 'z', '\u1E93': 'z', '\u1E95': 'z', '\u01B6': 'z', '\u0225': 'z', '\u0240': 'z', '\u2C6C': 'z', '\uA763': 'z', '\u0386': '\u0391', '\u0388': '\u0395', '\u0389': '\u0397', '\u038A': '\u0399', '\u03AA': '\u0399', '\u038C': '\u039F', '\u038E': '\u03A5', '\u03AB': '\u03A5', '\u038F': '\u03A9', '\u03AC': '\u03B1', '\u03AD': '\u03B5', '\u03AE': '\u03B7', '\u03AF': '\u03B9', '\u03CA': '\u03B9', '\u0390': '\u03B9', '\u03CC': '\u03BF', '\u03CD': '\u03C5', '\u03CB': '\u03C5', '\u03B0': '\u03C5', '\u03CE': '\u03C9', '\u03C2': '\u03C3', '\u2019': '\'' }; return diacritics; }); S2.define('select2/data/base',[ '../utils' ], function (Utils) { function BaseAdapter ($element, options) { BaseAdapter.__super__.constructor.call(this); } Utils.Extend(BaseAdapter, Utils.Observable); BaseAdapter.prototype.current = function (callback) { throw new Error('The `current` method must be defined in child classes.'); }; BaseAdapter.prototype.query = function (params, callback) { throw new Error('The `query` method must be defined in child classes.'); }; BaseAdapter.prototype.bind = function (container, $container) { // Can be implemented in subclasses }; BaseAdapter.prototype.destroy = function () { // Can be implemented in subclasses }; BaseAdapter.prototype.generateResultId = function (container, data) { var id = container.id + '-result-'; id += Utils.generateChars(4); if (data.id != null) { id += '-' + data.id.toString(); } else { id += '-' + Utils.generateChars(4); } return id; }; return BaseAdapter; }); S2.define('select2/data/select',[ './base', '../utils', 'jquery' ], function (BaseAdapter, Utils, $) { function SelectAdapter ($element, options) { this.$element = $element; this.options = options; SelectAdapter.__super__.constructor.call(this); } Utils.Extend(SelectAdapter, BaseAdapter); SelectAdapter.prototype.current = function (callback) { var data = []; var self = this; this.$element.find(':selected').each(function () { var $option = $(this); var option = self.item($option); data.push(option); }); callback(data); }; SelectAdapter.prototype.select = function (data) { var self = this; data.selected = true; // If data.element is a DOM node, use it instead if ($(data.element).is('option')) { data.element.selected = true; this.$element.trigger('change'); return; } if (this.$element.prop('multiple')) { this.current(function (currentData) { var val = []; data = [data]; data.push.apply(data, currentData); for (var d = 0; d < data.length; d++) { var id = data[d].id; if ($.inArray(id, val) === -1) { val.push(id); } } self.$element.val(val); self.$element.trigger('change'); }); } else { var val = data.id; this.$element.val(val); this.$element.trigger('change'); } }; SelectAdapter.prototype.unselect = function (data) { var self = this; if (!this.$element.prop('multiple')) { return; } data.selected = false; if ($(data.element).is('option')) { data.element.selected = false; this.$element.trigger('change'); return; } this.current(function (currentData) { var val = []; for (var d = 0; d < currentData.length; d++) { var id = currentData[d].id; if (id !== data.id && $.inArray(id, val) === -1) { val.push(id); } } self.$element.val(val); self.$element.trigger('change'); }); }; SelectAdapter.prototype.bind = function (container, $container) { var self = this; this.container = container; container.on('select', function (params) { self.select(params.data); }); container.on('unselect', function (params) { self.unselect(params.data); }); }; SelectAdapter.prototype.destroy = function () { // Remove anything added to child elements this.$element.find('*').each(function () { // Remove any custom data set by Select2 Utils.RemoveData(this); }); }; SelectAdapter.prototype.query = function (params, callback) { var data = []; var self = this; var $options = this.$element.children(); $options.each(function () { var $option = $(this); if (!$option.is('option') && !$option.is('optgroup')) { return; } var option = self.item($option); var matches = self.matches(params, option); if (matches !== null) { data.push(matches); } }); callback({ results: data }); }; SelectAdapter.prototype.addOptions = function ($options) { Utils.appendMany(this.$element, $options); }; SelectAdapter.prototype.option = function (data) { var option; if (data.children) { option = document.createElement('optgroup'); option.label = data.text; } else { option = document.createElement('option'); if (option.textContent !== undefined) { option.textContent = data.text; } else { option.innerText = data.text; } } if (data.id !== undefined) { option.value = data.id; } if (data.disabled) { option.disabled = true; } if (data.selected) { option.selected = true; } if (data.title) { option.title = data.title; } var $option = $(option); var normalizedData = this._normalizeItem(data); normalizedData.element = option; // Override the option's data with the combined data Utils.StoreData(option, 'data', normalizedData); return $option; }; SelectAdapter.prototype.item = function ($option) { var data = {}; data = Utils.GetData($option[0], 'data'); if (data != null) { return data; } if ($option.is('option')) { data = { id: $option.val(), text: $option.text(), disabled: $option.prop('disabled'), selected: $option.prop('selected'), title: $option.prop('title') }; } else if ($option.is('optgroup')) { data = { text: $option.prop('label'), children: [], title: $option.prop('title') }; var $children = $option.children('option'); var children = []; for (var c = 0; c < $children.length; c++) { var $child = $($children[c]); var child = this.item($child); children.push(child); } data.children = children; } data = this._normalizeItem(data); data.element = $option[0]; Utils.StoreData($option[0], 'data', data); return data; }; SelectAdapter.prototype._normalizeItem = function (item) { if (item !== Object(item)) { item = { id: item, text: item }; } item = $.extend({}, { text: '' }, item); var defaults = { selected: false, disabled: false }; if (item.id != null) { item.id = item.id.toString(); } if (item.text != null) { item.text = item.text.toString(); } if (item._resultId == null && item.id && this.container != null) { item._resultId = this.generateResultId(this.container, item); } return $.extend({}, defaults, item); }; SelectAdapter.prototype.matches = function (params, data) { var matcher = this.options.get('matcher'); return matcher(params, data); }; return SelectAdapter; }); S2.define('select2/data/array',[ './select', '../utils', 'jquery' ], function (SelectAdapter, Utils, $) { function ArrayAdapter ($element, options) { this._dataToConvert = options.get('data') || []; ArrayAdapter.__super__.constructor.call(this, $element, options); } Utils.Extend(ArrayAdapter, SelectAdapter); ArrayAdapter.prototype.bind = function (container, $container) { ArrayAdapter.__super__.bind.call(this, container, $container); this.addOptions(this.convertToOptions(this._dataToConvert)); }; ArrayAdapter.prototype.select = function (data) { var $option = this.$element.find('option').filter(function (i, elm) { return elm.value == data.id.toString(); }); if ($option.length === 0) { $option = this.option(data); this.addOptions($option); } ArrayAdapter.__super__.select.call(this, data); }; ArrayAdapter.prototype.convertToOptions = function (data) { var self = this; var $existing = this.$element.find('option'); var existingIds = $existing.map(function () { return self.item($(this)).id; }).get(); var $options = []; // Filter out all items except for the one passed in the argument function onlyItem (item) { return function () { return $(this).val() == item.id; }; } for (var d = 0; d < data.length; d++) { var item = this._normalizeItem(data[d]); // Skip items which were pre-loaded, only merge the data if ($.inArray(item.id, existingIds) >= 0) { var $existingOption = $existing.filter(onlyItem(item)); var existingData = this.item($existingOption); var newData = $.extend(true, {}, item, existingData); var $newOption = this.option(newData); $existingOption.replaceWith($newOption); continue; } var $option = this.option(item); if (item.children) { var $children = this.convertToOptions(item.children); Utils.appendMany($option, $children); } $options.push($option); } return $options; }; return ArrayAdapter; }); S2.define('select2/data/ajax',[ './array', '../utils', 'jquery' ], function (ArrayAdapter, Utils, $) { function AjaxAdapter ($element, options) { this.ajaxOptions = this._applyDefaults(options.get('ajax')); if (this.ajaxOptions.processResults != null) { this.processResults = this.ajaxOptions.processResults; } AjaxAdapter.__super__.constructor.call(this, $element, options); } Utils.Extend(AjaxAdapter, ArrayAdapter); AjaxAdapter.prototype._applyDefaults = function (options) { var defaults = { data: function (params) { return $.extend({}, params, { q: params.term }); }, transport: function (params, success, failure) { var $request = $.ajax(params); $request.then(success); $request.fail(failure); return $request; } }; return $.extend({}, defaults, options, true); }; AjaxAdapter.prototype.processResults = function (results) { return results; }; AjaxAdapter.prototype.query = function (params, callback) { var matches = []; var self = this; if (this._request != null) { // JSONP requests cannot always be aborted if ($.isFunction(this._request.abort)) { this._request.abort(); } this._request = null; } var options = $.extend({ type: 'GET' }, this.ajaxOptions); if (typeof options.url === 'function') { options.url = options.url.call(this.$element, params); } if (typeof options.data === 'function') { options.data = options.data.call(this.$element, params); } function request () { var $request = options.transport(options, function (data) { var results = self.processResults(data, params); if (self.options.get('debug') && window.console && console.error) { // Check to make sure that the response included a `results` key. if (!results || !results.results || !$.isArray(results.results)) { console.error( 'Select2: The AJAX results did not return an array in the ' + '`results` key of the response.' ); } } callback(results); }, function () { // Attempt to detect if a request was aborted // Only works if the transport exposes a status property if ('status' in $request && ($request.status === 0 || $request.status === '0')) { return; } self.trigger('results:message', { message: 'errorLoading' }); }); self._request = $request; } if (this.ajaxOptions.delay && params.term != null) { if (this._queryTimeout) { window.clearTimeout(this._queryTimeout); } this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay); } else { request(); } }; return AjaxAdapter; }); S2.define('select2/data/tags',[ 'jquery' ], function ($) { function Tags (decorated, $element, options) { var tags = options.get('tags'); var createTag = options.get('createTag'); if (createTag !== undefined) { this.createTag = createTag; } var insertTag = options.get('insertTag'); if (insertTag !== undefined) { this.insertTag = insertTag; } decorated.call(this, $element, options); if ($.isArray(tags)) { for (var t = 0; t < tags.length; t++) { var tag = tags[t]; var item = this._normalizeItem(tag); var $option = this.option(item); this.$element.append($option); } } } Tags.prototype.query = function (decorated, params, callback) { var self = this; this._removeOldTags(); if (params.term == null || params.page != null) { decorated.call(this, params, callback); return; } function wrapper (obj, child) { var data = obj.results; for (var i = 0; i < data.length; i++) { var option = data[i]; var checkChildren = ( option.children != null && !wrapper({ results: option.children }, true) ); var optionText = (option.text || '').toUpperCase(); var paramsTerm = (params.term || '').toUpperCase(); var checkText = optionText === paramsTerm; if (checkText || checkChildren) { if (child) { return false; } obj.data = data; callback(obj); return; } } if (child) { return true; } var tag = self.createTag(params); if (tag != null) { var $option = self.option(tag); $option.attr('data-select2-tag', true); self.addOptions([$option]); self.insertTag(data, tag); } obj.results = data; callback(obj); } decorated.call(this, params, wrapper); }; Tags.prototype.createTag = function (decorated, params) { var term = $.trim(params.term); if (term === '') { return null; } return { id: term, text: term }; }; Tags.prototype.insertTag = function (_, data, tag) { data.unshift(tag); }; Tags.prototype._removeOldTags = function (_) { var $options = this.$element.find('option[data-select2-tag]'); $options.each(function () { if (this.selected) { return; } $(this).remove(); }); }; return Tags; }); S2.define('select2/data/tokenizer',[ 'jquery' ], function ($) { function Tokenizer (decorated, $element, options) { var tokenizer = options.get('tokenizer'); if (tokenizer !== undefined) { this.tokenizer = tokenizer; } decorated.call(this, $element, options); } Tokenizer.prototype.bind = function (decorated, container, $container) { decorated.call(this, container, $container); this.$search = container.dropdown.$search || container.selection.$search || $container.find('.select2-search__field'); }; Tokenizer.prototype.query = function (decorated, params, callback) { var self = this; function createAndSelect (data) { // Normalize the data object so we can use it for checks var item = self._normalizeItem(data); // Check if the data object already exists as a tag // Select it if it doesn't var $existingOptions = self.$element.find('option').filter(function () { return $(this).val() === item.id; }); // If an existing option wasn't found for it, create the option if (!$existingOptions.length) { var $option = self.option(item); $option.attr('data-select2-tag', true); self._removeOldTags(); self.addOptions([$option]); } // Select the item, now that we know there is an option for it select(item); } function select (data) { self.trigger('select', { data: data }); } params.term = params.term || ''; var tokenData = this.tokenizer(params, this.options, createAndSelect); if (tokenData.term !== params.term) { // Replace the search term if we have the search box if (this.$search.length) { this.$search.val(tokenData.term); this.$search.trigger('focus'); } params.term = tokenData.term; } decorated.call(this, params, callback); }; Tokenizer.prototype.tokenizer = function (_, params, options, callback) { var separators = options.get('tokenSeparators') || []; var term = params.term; var i = 0; var createTag = this.createTag || function (params) { return { id: params.term, text: params.term }; }; while (i < term.length) { var termChar = term[i]; if ($.inArray(termChar, separators) === -1) { i++; continue; } var part = term.substr(0, i); var partParams = $.extend({}, params, { term: part }); var data = createTag(partParams); if (data == null) { i++; continue; } callback(data); // Reset the term to not include the tokenized portion term = term.substr(i + 1) || ''; i = 0; } return { term: term }; }; return Tokenizer; }); S2.define('select2/data/minimumInputLength',[ ], function () { function MinimumInputLength (decorated, $e, options) { this.minimumInputLength = options.get('minimumInputLength'); decorated.call(this, $e, options); } MinimumInputLength.prototype.query = function (decorated, params, callback) { params.term = params.term || ''; if (params.term.length < this.minimumInputLength) { this.trigger('results:message', { message: 'inputTooShort', args: { minimum: this.minimumInputLength, input: params.term, params: params } }); return; } decorated.call(this, params, callback); }; return MinimumInputLength; }); S2.define('select2/data/maximumInputLength',[ ], function () { function MaximumInputLength (decorated, $e, options) { this.maximumInputLength = options.get('maximumInputLength'); decorated.call(this, $e, options); } MaximumInputLength.prototype.query = function (decorated, params, callback) { params.term = params.term || ''; if (this.maximumInputLength > 0 && params.term.length > this.maximumInputLength) { this.trigger('results:message', { message: 'inputTooLong', args: { maximum: this.maximumInputLength, input: params.term, params: params } }); return; } decorated.call(this, params, callback); }; return MaximumInputLength; }); S2.define('select2/data/maximumSelectionLength',[ ], function (){ function MaximumSelectionLength (decorated, $e, options) { this.maximumSelectionLength = options.get('maximumSelectionLength'); decorated.call(this, $e, options); } MaximumSelectionLength.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('select', function () { self._checkIfMaximumSelected(); }); }; MaximumSelectionLength.prototype.query = function (decorated, params, callback) { var self = this; this._checkIfMaximumSelected(function () { decorated.call(self, params, callback); }); }; MaximumSelectionLength.prototype._checkIfMaximumSelected = function (_, successCallback) { var self = this; this.current(function (currentData) { var count = currentData != null ? currentData.length : 0; if (self.maximumSelectionLength > 0 && count >= self.maximumSelectionLength) { self.trigger('results:message', { message: 'maximumSelected', args: { maximum: self.maximumSelectionLength } }); return; } if (successCallback) { successCallback(); } }); }; return MaximumSelectionLength; }); S2.define('select2/dropdown',[ 'jquery', './utils' ], function ($, Utils) { function Dropdown ($element, options) { this.$element = $element; this.options = options; Dropdown.__super__.constructor.call(this); } Utils.Extend(Dropdown, Utils.Observable); Dropdown.prototype.render = function () { var $dropdown = $( '' + '' + '' ); $dropdown.attr('dir', this.options.get('dir')); this.$dropdown = $dropdown; return $dropdown; }; Dropdown.prototype.bind = function () { // Should be implemented in subclasses }; Dropdown.prototype.position = function ($dropdown, $container) { // Should be implemented in subclasses }; Dropdown.prototype.destroy = function () { // Remove the dropdown from the DOM this.$dropdown.remove(); }; return Dropdown; }); S2.define('select2/dropdown/search',[ 'jquery', '../utils' ], function ($, Utils) { function Search () { } Search.prototype.render = function (decorated) { var $rendered = decorated.call(this); var $search = $( '' + '' + '' ); this.$searchContainer = $search; this.$search = $search.find('input'); $rendered.prepend($search); return $rendered; }; Search.prototype.bind = function (decorated, container, $container) { var self = this; var resultsId = container.id + '-results'; decorated.call(this, container, $container); this.$search.on('keydown', function (evt) { self.trigger('keypress', evt); self._keyUpPrevented = evt.isDefaultPrevented(); }); // Workaround for browsers which do not support the `input` event // This will prevent double-triggering of events for browsers which support // both the `keyup` and `input` events. this.$search.on('input', function (evt) { // Unbind the duplicated `keyup` event $(this).off('keyup'); }); this.$search.on('keyup input', function (evt) { self.handleSearch(evt); }); container.on('open', function () { self.$search.attr('tabindex', 0); self.$search.attr('aria-controls', resultsId); self.$search.trigger('focus'); window.setTimeout(function () { self.$search.trigger('focus'); }, 0); }); container.on('close', function () { self.$search.attr('tabindex', -1); self.$search.removeAttr('aria-controls'); self.$search.removeAttr('aria-activedescendant'); self.$search.val(''); self.$search.trigger('blur'); }); container.on('focus', function () { if (!container.isOpen()) { self.$search.trigger('focus'); } }); container.on('results:all', function (params) { if (params.query.term == null || params.query.term === '') { var showSearch = self.showSearch(params); if (showSearch) { self.$searchContainer.removeClass('select2-search--hide'); } else { self.$searchContainer.addClass('select2-search--hide'); } } }); container.on('results:focus', function (params) { if (params.data._resultId) { self.$search.attr('aria-activedescendant', params.data._resultId); } else { self.$search.removeAttr('aria-activedescendant'); } }); }; Search.prototype.handleSearch = function (evt) { if (!this._keyUpPrevented) { var input = this.$search.val(); this.trigger('query', { term: input }); } this._keyUpPrevented = false; }; Search.prototype.showSearch = function (_, params) { return true; }; return Search; }); S2.define('select2/dropdown/hidePlaceholder',[ ], function () { function HidePlaceholder (decorated, $element, options, dataAdapter) { this.placeholder = this.normalizePlaceholder(options.get('placeholder')); decorated.call(this, $element, options, dataAdapter); } HidePlaceholder.prototype.append = function (decorated, data) { data.results = this.removePlaceholder(data.results); decorated.call(this, data); }; HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) { if (typeof placeholder === 'string') { placeholder = { id: '', text: placeholder }; } return placeholder; }; HidePlaceholder.prototype.removePlaceholder = function (_, data) { var modifiedData = data.slice(0); for (var d = data.length - 1; d >= 0; d--) { var item = data[d]; if (this.placeholder.id === item.id) { modifiedData.splice(d, 1); } } return modifiedData; }; return HidePlaceholder; }); S2.define('select2/dropdown/infiniteScroll',[ 'jquery' ], function ($) { function InfiniteScroll (decorated, $element, options, dataAdapter) { this.lastParams = {}; decorated.call(this, $element, options, dataAdapter); this.$loadingMore = this.createLoadingMore(); this.loading = false; } InfiniteScroll.prototype.append = function (decorated, data) { this.$loadingMore.remove(); this.loading = false; decorated.call(this, data); if (this.showLoadingMore(data)) { this.$results.append(this.$loadingMore); this.loadMoreIfNeeded(); } }; InfiniteScroll.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('query', function (params) { self.lastParams = params; self.loading = true; }); container.on('query:append', function (params) { self.lastParams = params; self.loading = true; }); this.$results.on('scroll', this.loadMoreIfNeeded.bind(this)); }; InfiniteScroll.prototype.loadMoreIfNeeded = function () { var isLoadMoreVisible = $.contains( document.documentElement, this.$loadingMore[0] ); if (this.loading || !isLoadMoreVisible) { return; } var currentOffset = this.$results.offset().top + this.$results.outerHeight(false); var loadingMoreOffset = this.$loadingMore.offset().top + this.$loadingMore.outerHeight(false); if (currentOffset + 50 >= loadingMoreOffset) { this.loadMore(); } }; InfiniteScroll.prototype.loadMore = function () { this.loading = true; var params = $.extend({}, {page: 1}, this.lastParams); params.page++; this.trigger('query:append', params); }; InfiniteScroll.prototype.showLoadingMore = function (_, data) { return data.pagination && data.pagination.more; }; InfiniteScroll.prototype.createLoadingMore = function () { var $option = $( '
        • ' ); var message = this.options.get('translations').get('loadingMore'); $option.html(message(this.lastParams)); return $option; }; return InfiniteScroll; }); S2.define('select2/dropdown/attachBody',[ 'jquery', '../utils' ], function ($, Utils) { function AttachBody (decorated, $element, options) { this.$dropdownParent = $(options.get('dropdownParent') || document.body); decorated.call(this, $element, options); } AttachBody.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('open', function () { self._showDropdown(); self._attachPositioningHandler(container); // Must bind after the results handlers to ensure correct sizing self._bindContainerResultHandlers(container); }); container.on('close', function () { self._hideDropdown(); self._detachPositioningHandler(container); }); this.$dropdownContainer.on('mousedown', function (evt) { evt.stopPropagation(); }); }; AttachBody.prototype.destroy = function (decorated) { decorated.call(this); this.$dropdownContainer.remove(); }; AttachBody.prototype.position = function (decorated, $dropdown, $container) { // Clone all of the container classes $dropdown.attr('class', $container.attr('class')); $dropdown.removeClass('select2'); $dropdown.addClass('select2-container--open'); $dropdown.css({ position: 'absolute', top: -999999 }); this.$container = $container; }; AttachBody.prototype.render = function (decorated) { var $container = $(''); var $dropdown = decorated.call(this); $container.append($dropdown); this.$dropdownContainer = $container; return $container; }; AttachBody.prototype._hideDropdown = function (decorated) { this.$dropdownContainer.detach(); }; AttachBody.prototype._bindContainerResultHandlers = function (decorated, container) { // These should only be bound once if (this._containerResultsHandlersBound) { return; } var self = this; container.on('results:all', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('results:append', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('results:message', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('select', function () { self._positionDropdown(); self._resizeDropdown(); }); container.on('unselect', function () { self._positionDropdown(); self._resizeDropdown(); }); this._containerResultsHandlersBound = true; }; AttachBody.prototype._attachPositioningHandler = function (decorated, container) { var self = this; var scrollEvent = 'scroll.select2.' + container.id; var resizeEvent = 'resize.select2.' + container.id; var orientationEvent = 'orientationchange.select2.' + container.id; var $watchers = this.$container.parents().filter(Utils.hasScroll); $watchers.each(function () { Utils.StoreData(this, 'select2-scroll-position', { x: $(this).scrollLeft(), y: $(this).scrollTop() }); }); $watchers.on(scrollEvent, function (ev) { var position = Utils.GetData(this, 'select2-scroll-position'); $(this).scrollTop(position.y); }); $(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent, function (e) { self._positionDropdown(); self._resizeDropdown(); }); }; AttachBody.prototype._detachPositioningHandler = function (decorated, container) { var scrollEvent = 'scroll.select2.' + container.id; var resizeEvent = 'resize.select2.' + container.id; var orientationEvent = 'orientationchange.select2.' + container.id; var $watchers = this.$container.parents().filter(Utils.hasScroll); $watchers.off(scrollEvent); $(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent); }; AttachBody.prototype._positionDropdown = function () { var $window = $(window); var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above'); var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below'); var newDirection = null; var offset = this.$container.offset(); offset.bottom = offset.top + this.$container.outerHeight(false); var container = { height: this.$container.outerHeight(false) }; container.top = offset.top; container.bottom = offset.top + container.height; var dropdown = { height: this.$dropdown.outerHeight(false) }; var viewport = { top: $window.scrollTop(), bottom: $window.scrollTop() + $window.height() }; var enoughRoomAbove = viewport.top < (offset.top - dropdown.height); var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height); var css = { left: offset.left, top: container.bottom }; // Determine what the parent element is to use for calculating the offset var $offsetParent = this.$dropdownParent; // For statically positioned elements, we need to get the element // that is determining the offset if ($offsetParent.css('position') === 'static') { $offsetParent = $offsetParent.offsetParent(); } var parentOffset = $offsetParent.offset(); css.top -= parentOffset.top; css.left -= parentOffset.left; if (!isCurrentlyAbove && !isCurrentlyBelow) { newDirection = 'below'; } if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) { newDirection = 'above'; } else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) { newDirection = 'below'; } if (newDirection == 'above' || (isCurrentlyAbove && newDirection !== 'below')) { css.top = container.top - parentOffset.top - dropdown.height; } if (newDirection != null) { this.$dropdown .removeClass('select2-dropdown--below select2-dropdown--above') .addClass('select2-dropdown--' + newDirection); this.$container .removeClass('select2-container--below select2-container--above') .addClass('select2-container--' + newDirection); } this.$dropdownContainer.css(css); }; AttachBody.prototype._resizeDropdown = function () { var css = { width: this.$container.outerWidth(false) + 'px' }; if (this.options.get('dropdownAutoWidth')) { css.minWidth = css.width; css.position = 'relative'; css.width = 'auto'; } this.$dropdown.css(css); }; AttachBody.prototype._showDropdown = function (decorated) { this.$dropdownContainer.appendTo(this.$dropdownParent); this._positionDropdown(); this._resizeDropdown(); }; return AttachBody; }); S2.define('select2/dropdown/minimumResultsForSearch',[ ], function () { function countResults (data) { var count = 0; for (var d = 0; d < data.length; d++) { var item = data[d]; if (item.children) { count += countResults(item.children); } else { count++; } } return count; } function MinimumResultsForSearch (decorated, $element, options, dataAdapter) { this.minimumResultsForSearch = options.get('minimumResultsForSearch'); if (this.minimumResultsForSearch < 0) { this.minimumResultsForSearch = Infinity; } decorated.call(this, $element, options, dataAdapter); } MinimumResultsForSearch.prototype.showSearch = function (decorated, params) { if (countResults(params.data.results) < this.minimumResultsForSearch) { return false; } return decorated.call(this, params); }; return MinimumResultsForSearch; }); S2.define('select2/dropdown/selectOnClose',[ '../utils' ], function (Utils) { function SelectOnClose () { } SelectOnClose.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('close', function (params) { self._handleSelectOnClose(params); }); }; SelectOnClose.prototype._handleSelectOnClose = function (_, params) { if (params && params.originalSelect2Event != null) { var event = params.originalSelect2Event; // Don't select an item if the close event was triggered from a select or // unselect event if (event._type === 'select' || event._type === 'unselect') { return; } } var $highlightedResults = this.getHighlightedResults(); // Only select highlighted results if ($highlightedResults.length < 1) { return; } var data = Utils.GetData($highlightedResults[0], 'data'); // Don't re-select already selected resulte if ( (data.element != null && data.element.selected) || (data.element == null && data.selected) ) { return; } this.trigger('select', { data: data }); }; return SelectOnClose; }); S2.define('select2/dropdown/closeOnSelect',[ ], function () { function CloseOnSelect () { } CloseOnSelect.prototype.bind = function (decorated, container, $container) { var self = this; decorated.call(this, container, $container); container.on('select', function (evt) { self._selectTriggered(evt); }); container.on('unselect', function (evt) { self._selectTriggered(evt); }); }; CloseOnSelect.prototype._selectTriggered = function (_, evt) { var originalEvent = evt.originalEvent; // Don't close if the control key is being held if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) { return; } this.trigger('close', { originalEvent: originalEvent, originalSelect2Event: evt }); }; return CloseOnSelect; }); S2.define('select2/i18n/en',[],function () { // English return { errorLoading: function () { return 'The results could not be loaded.'; }, inputTooLong: function (args) { var overChars = args.input.length - args.maximum; var message = 'Please delete ' + overChars + ' character'; if (overChars != 1) { message += 's'; } return message; }, inputTooShort: function (args) { var remainingChars = args.minimum - args.input.length; var message = 'Please enter ' + remainingChars + ' or more characters'; return message; }, loadingMore: function () { return 'Loading more results…'; }, maximumSelected: function (args) { var message = 'You can only select ' + args.maximum + ' item'; if (args.maximum != 1) { message += 's'; } return message; }, noResults: function () { return 'No results found'; }, searching: function () { return 'Searching…'; }, removeAllItems: function () { return 'Remove all items'; } }; }); S2.define('select2/defaults',[ 'jquery', 'require', './results', './selection/single', './selection/multiple', './selection/placeholder', './selection/allowClear', './selection/search', './selection/eventRelay', './utils', './translation', './diacritics', './data/select', './data/array', './data/ajax', './data/tags', './data/tokenizer', './data/minimumInputLength', './data/maximumInputLength', './data/maximumSelectionLength', './dropdown', './dropdown/search', './dropdown/hidePlaceholder', './dropdown/infiniteScroll', './dropdown/attachBody', './dropdown/minimumResultsForSearch', './dropdown/selectOnClose', './dropdown/closeOnSelect', './i18n/en' ], function ($, require, ResultsList, SingleSelection, MultipleSelection, Placeholder, AllowClear, SelectionSearch, EventRelay, Utils, Translation, DIACRITICS, SelectData, ArrayData, AjaxData, Tags, Tokenizer, MinimumInputLength, MaximumInputLength, MaximumSelectionLength, Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll, AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect, EnglishTranslation) { function Defaults () { this.reset(); } Defaults.prototype.apply = function (options) { options = $.extend(true, {}, this.defaults, options); if (options.dataAdapter == null) { if (options.ajax != null) { options.dataAdapter = AjaxData; } else if (options.data != null) { options.dataAdapter = ArrayData; } else { options.dataAdapter = SelectData; } if (options.minimumInputLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MinimumInputLength ); } if (options.maximumInputLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MaximumInputLength ); } if (options.maximumSelectionLength > 0) { options.dataAdapter = Utils.Decorate( options.dataAdapter, MaximumSelectionLength ); } if (options.tags) { options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags); } if (options.tokenSeparators != null || options.tokenizer != null) { options.dataAdapter = Utils.Decorate( options.dataAdapter, Tokenizer ); } if (options.query != null) { var Query = require(options.amdBase + 'compat/query'); options.dataAdapter = Utils.Decorate( options.dataAdapter, Query ); } if (options.initSelection != null) { var InitSelection = require(options.amdBase + 'compat/initSelection'); options.dataAdapter = Utils.Decorate( options.dataAdapter, InitSelection ); } } if (options.resultsAdapter == null) { options.resultsAdapter = ResultsList; if (options.ajax != null) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, InfiniteScroll ); } if (options.placeholder != null) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, HidePlaceholder ); } if (options.selectOnClose) { options.resultsAdapter = Utils.Decorate( options.resultsAdapter, SelectOnClose ); } } if (options.dropdownAdapter == null) { if (options.multiple) { options.dropdownAdapter = Dropdown; } else { var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch); options.dropdownAdapter = SearchableDropdown; } if (options.minimumResultsForSearch !== 0) { options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, MinimumResultsForSearch ); } if (options.closeOnSelect) { options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, CloseOnSelect ); } if ( options.dropdownCssClass != null || options.dropdownCss != null || options.adaptDropdownCssClass != null ) { var DropdownCSS = require(options.amdBase + 'compat/dropdownCss'); options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, DropdownCSS ); } options.dropdownAdapter = Utils.Decorate( options.dropdownAdapter, AttachBody ); } if (options.selectionAdapter == null) { if (options.multiple) { options.selectionAdapter = MultipleSelection; } else { options.selectionAdapter = SingleSelection; } // Add the placeholder mixin if a placeholder was specified if (options.placeholder != null) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, Placeholder ); } if (options.allowClear) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, AllowClear ); } if (options.multiple) { options.selectionAdapter = Utils.Decorate( options.selectionAdapter, SelectionSearch ); } if ( options.containerCssClass != null || options.containerCss != null || options.adaptContainerCssClass != null ) { var ContainerCSS = require(options.amdBase + 'compat/containerCss'); options.selectionAdapter = Utils.Decorate( options.selectionAdapter, ContainerCSS ); } options.selectionAdapter = Utils.Decorate( options.selectionAdapter, EventRelay ); } // If the defaults were not previously applied from an element, it is // possible for the language option to have not been resolved options.language = this._resolveLanguage(options.language); // Always fall back to English since it will always be complete options.language.push('en'); var uniqueLanguages = []; for (var l = 0; l < options.language.length; l++) { var language = options.language[l]; if (uniqueLanguages.indexOf(language) === -1) { uniqueLanguages.push(language); } } options.language = uniqueLanguages; options.translations = this._processTranslations( options.language, options.debug ); return options; }; Defaults.prototype.reset = function () { function stripDiacritics (text) { // Used 'uni range + named function' from http://jsperf.com/diacritics/18 function match(a) { return DIACRITICS[a] || a; } return text.replace(/[^\u0000-\u007E]/g, match); } function matcher (params, data) { // Always return the object if there is nothing to compare if ($.trim(params.term) === '') { return data; } // Do a recursive check for options with children if (data.children && data.children.length > 0) { // Clone the data object if there are children // This is required as we modify the object to remove any non-matches var match = $.extend(true, {}, data); // Check each child of the option for (var c = data.children.length - 1; c >= 0; c--) { var child = data.children[c]; var matches = matcher(params, child); // If there wasn't a match, remove the object in the array if (matches == null) { match.children.splice(c, 1); } } // If any children matched, return the new object if (match.children.length > 0) { return match; } // If there were no matching children, check just the plain object return matcher(params, match); } var original = stripDiacritics(data.text).toUpperCase(); var term = stripDiacritics(params.term).toUpperCase(); // Check if the text contains the term if (original.indexOf(term) > -1) { return data; } // If it doesn't contain the term, don't return anything return null; } this.defaults = { amdBase: './', amdLanguageBase: './i18n/', closeOnSelect: true, debug: false, dropdownAutoWidth: false, escapeMarkup: Utils.escapeMarkup, language: {}, matcher: matcher, minimumInputLength: 0, maximumInputLength: 0, maximumSelectionLength: 0, minimumResultsForSearch: 0, selectOnClose: false, scrollAfterSelect: false, sorter: function (data) { return data; }, templateResult: function (result) { return result.text; }, templateSelection: function (selection) { return selection.text; }, theme: 'default', width: 'resolve' }; }; Defaults.prototype.applyFromElement = function (options, $element) { var optionLanguage = options.language; var defaultLanguage = this.defaults.language; var elementLanguage = $element.prop('lang'); var parentLanguage = $element.closest('[lang]').prop('lang'); var languages = Array.prototype.concat.call( this._resolveLanguage(elementLanguage), this._resolveLanguage(optionLanguage), this._resolveLanguage(defaultLanguage), this._resolveLanguage(parentLanguage) ); options.language = languages; return options; }; Defaults.prototype._resolveLanguage = function (language) { if (!language) { return []; } if ($.isEmptyObject(language)) { return []; } if ($.isPlainObject(language)) { return [language]; } var languages; if (!$.isArray(language)) { languages = [language]; } else { languages = language; } var resolvedLanguages = []; for (var l = 0; l < languages.length; l++) { resolvedLanguages.push(languages[l]); if (typeof languages[l] === 'string' && languages[l].indexOf('-') > 0) { // Extract the region information if it is included var languageParts = languages[l].split('-'); var baseLanguage = languageParts[0]; resolvedLanguages.push(baseLanguage); } } return resolvedLanguages; }; Defaults.prototype._processTranslations = function (languages, debug) { var translations = new Translation(); for (var l = 0; l < languages.length; l++) { var languageData = new Translation(); var language = languages[l]; if (typeof language === 'string') { try { // Try to load it with the original name languageData = Translation.loadPath(language); } catch (e) { try { // If we couldn't load it, check if it wasn't the full path language = this.defaults.amdLanguageBase + language; languageData = Translation.loadPath(language); } catch (ex) { // The translation could not be loaded at all. Sometimes this is // because of a configuration problem, other times this can be // because of how Select2 helps load all possible translation files if (debug && window.console && console.warn) { console.warn( 'Select2: The language file for "' + language + '" could ' + 'not be automatically loaded. A fallback will be used instead.' ); } } } } else if ($.isPlainObject(language)) { languageData = new Translation(language); } else { languageData = language; } translations.extend(languageData); } return translations; }; Defaults.prototype.set = function (key, value) { var camelKey = $.camelCase(key); var data = {}; data[camelKey] = value; var convertedData = Utils._convertData(data); $.extend(true, this.defaults, convertedData); }; var defaults = new Defaults(); return defaults; }); S2.define('select2/options',[ 'require', 'jquery', './defaults', './utils' ], function (require, $, Defaults, Utils) { function Options (options, $element) { this.options = options; if ($element != null) { this.fromElement($element); } if ($element != null) { this.options = Defaults.applyFromElement(this.options, $element); } this.options = Defaults.apply(this.options); if ($element && $element.is('input')) { var InputCompat = require(this.get('amdBase') + 'compat/inputData'); this.options.dataAdapter = Utils.Decorate( this.options.dataAdapter, InputCompat ); } } Options.prototype.fromElement = function ($e) { var excludedData = ['select2']; if (this.options.multiple == null) { this.options.multiple = $e.prop('multiple'); } if (this.options.disabled == null) { this.options.disabled = $e.prop('disabled'); } if (this.options.dir == null) { if ($e.prop('dir')) { this.options.dir = $e.prop('dir'); } else if ($e.closest('[dir]').prop('dir')) { this.options.dir = $e.closest('[dir]').prop('dir'); } else { this.options.dir = 'ltr'; } } $e.prop('disabled', this.options.disabled); $e.prop('multiple', this.options.multiple); if (Utils.GetData($e[0], 'select2Tags')) { if (this.options.debug && window.console && console.warn) { console.warn( 'Select2: The `data-select2-tags` attribute has been changed to ' + 'use the `data-data` and `data-tags="true"` attributes and will be ' + 'removed in future versions of Select2.' ); } Utils.StoreData($e[0], 'data', Utils.GetData($e[0], 'select2Tags')); Utils.StoreData($e[0], 'tags', true); } if (Utils.GetData($e[0], 'ajaxUrl')) { if (this.options.debug && window.console && console.warn) { console.warn( 'Select2: The `data-ajax-url` attribute has been changed to ' + '`data-ajax--url` and support for the old attribute will be removed' + ' in future versions of Select2.' ); } $e.attr('ajax--url', Utils.GetData($e[0], 'ajaxUrl')); Utils.StoreData($e[0], 'ajax-Url', Utils.GetData($e[0], 'ajaxUrl')); } var dataset = {}; function upperCaseLetter(_, letter) { return letter.toUpperCase(); } // Pre-load all of the attributes which are prefixed with `data-` for (var attr = 0; attr < $e[0].attributes.length; attr++) { var attributeName = $e[0].attributes[attr].name; var prefix = 'data-'; if (attributeName.substr(0, prefix.length) == prefix) { // Get the contents of the attribute after `data-` var dataName = attributeName.substring(prefix.length); // Get the data contents from the consistent source // This is more than likely the jQuery data helper var dataValue = Utils.GetData($e[0], dataName); // camelCase the attribute name to match the spec var camelDataName = dataName.replace(/-([a-z])/g, upperCaseLetter); // Store the data attribute contents into the dataset since dataset[camelDataName] = dataValue; } } // Prefer the element's `dataset` attribute if it exists // jQuery 1.x does not correctly handle data attributes with multiple dashes if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) { dataset = $.extend(true, {}, $e[0].dataset, dataset); } // Prefer our internal data cache if it exists var data = $.extend(true, {}, Utils.GetData($e[0]), dataset); data = Utils._convertData(data); for (var key in data) { if ($.inArray(key, excludedData) > -1) { continue; } if ($.isPlainObject(this.options[key])) { $.extend(this.options[key], data[key]); } else { this.options[key] = data[key]; } } return this; }; Options.prototype.get = function (key) { return this.options[key]; }; Options.prototype.set = function (key, val) { this.options[key] = val; }; return Options; }); S2.define('select2/core',[ 'jquery', './options', './utils', './keys' ], function ($, Options, Utils, KEYS) { var Select2 = function ($element, options) { if (Utils.GetData($element[0], 'select2') != null) { Utils.GetData($element[0], 'select2').destroy(); } this.$element = $element; this.id = this._generateId($element); options = options || {}; this.options = new Options(options, $element); Select2.__super__.constructor.call(this); // Set up the tabindex var tabindex = $element.attr('tabindex') || 0; Utils.StoreData($element[0], 'old-tabindex', tabindex); $element.attr('tabindex', '-1'); // Set up containers and adapters var DataAdapter = this.options.get('dataAdapter'); this.dataAdapter = new DataAdapter($element, this.options); var $container = this.render(); this._placeContainer($container); var SelectionAdapter = this.options.get('selectionAdapter'); this.selection = new SelectionAdapter($element, this.options); this.$selection = this.selection.render(); this.selection.position(this.$selection, $container); var DropdownAdapter = this.options.get('dropdownAdapter'); this.dropdown = new DropdownAdapter($element, this.options); this.$dropdown = this.dropdown.render(); this.dropdown.position(this.$dropdown, $container); var ResultsAdapter = this.options.get('resultsAdapter'); this.results = new ResultsAdapter($element, this.options, this.dataAdapter); this.$results = this.results.render(); this.results.position(this.$results, this.$dropdown); // Bind events var self = this; // Bind the container to all of the adapters this._bindAdapters(); // Register any DOM event handlers this._registerDomEvents(); // Register any internal event handlers this._registerDataEvents(); this._registerSelectionEvents(); this._registerDropdownEvents(); this._registerResultsEvents(); this._registerEvents(); // Set the initial state this.dataAdapter.current(function (initialData) { self.trigger('selection:update', { data: initialData }); }); // Hide the original select $element.addClass('select2-hidden-accessible'); $element.attr('aria-hidden', 'true'); // Synchronize any monitored attributes this._syncAttributes(); Utils.StoreData($element[0], 'select2', this); // Ensure backwards compatibility with $element.data('select2'). $element.data('select2', this); }; Utils.Extend(Select2, Utils.Observable); Select2.prototype._generateId = function ($element) { var id = ''; if ($element.attr('id') != null) { id = $element.attr('id'); } else if ($element.attr('name') != null) { id = $element.attr('name') + '-' + Utils.generateChars(2); } else { id = Utils.generateChars(4); } id = id.replace(/(:|\.|\[|\]|,)/g, ''); id = 'select2-' + id; return id; }; Select2.prototype._placeContainer = function ($container) { $container.insertAfter(this.$element); var width = this._resolveWidth(this.$element, this.options.get('width')); if (width != null) { $container.css('width', width); } }; Select2.prototype._resolveWidth = function ($element, method) { var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i; if (method == 'resolve') { var styleWidth = this._resolveWidth($element, 'style'); if (styleWidth != null) { return styleWidth; } return this._resolveWidth($element, 'element'); } if (method == 'element') { var elementWidth = $element.outerWidth(false); if (elementWidth <= 0) { return 'auto'; } return elementWidth + 'px'; } if (method == 'style') { var style = $element.attr('style'); if (typeof(style) !== 'string') { return null; } var attrs = style.split(';'); for (var i = 0, l = attrs.length; i < l; i = i + 1) { var attr = attrs[i].replace(/\s/g, ''); var matches = attr.match(WIDTH); if (matches !== null && matches.length >= 1) { return matches[1]; } } return null; } if (method == 'computedstyle') { var computedStyle = window.getComputedStyle($element[0]); return computedStyle.width; } return method; }; Select2.prototype._bindAdapters = function () { this.dataAdapter.bind(this, this.$container); this.selection.bind(this, this.$container); this.dropdown.bind(this, this.$container); this.results.bind(this, this.$container); }; Select2.prototype._registerDomEvents = function () { var self = this; this.$element.on('change.select2', function () { self.dataAdapter.current(function (data) { self.trigger('selection:update', { data: data }); }); }); this.$element.on('focus.select2', function (evt) { self.trigger('focus', evt); }); this._syncA = Utils.bind(this._syncAttributes, this); this._syncS = Utils.bind(this._syncSubtree, this); if (this.$element[0].attachEvent) { this.$element[0].attachEvent('onpropertychange', this._syncA); } var observer = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver ; if (observer != null) { this._observer = new observer(function (mutations) { $.each(mutations, self._syncA); $.each(mutations, self._syncS); }); this._observer.observe(this.$element[0], { attributes: true, childList: true, subtree: false }); } else if (this.$element[0].addEventListener) { this.$element[0].addEventListener( 'DOMAttrModified', self._syncA, false ); this.$element[0].addEventListener( 'DOMNodeInserted', self._syncS, false ); this.$element[0].addEventListener( 'DOMNodeRemoved', self._syncS, false ); } }; Select2.prototype._registerDataEvents = function () { var self = this; this.dataAdapter.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerSelectionEvents = function () { var self = this; var nonRelayEvents = ['toggle', 'focus']; this.selection.on('toggle', function () { self.toggleDropdown(); }); this.selection.on('focus', function (params) { self.focus(params); }); this.selection.on('*', function (name, params) { if ($.inArray(name, nonRelayEvents) !== -1) { return; } self.trigger(name, params); }); }; Select2.prototype._registerDropdownEvents = function () { var self = this; this.dropdown.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerResultsEvents = function () { var self = this; this.results.on('*', function (name, params) { self.trigger(name, params); }); }; Select2.prototype._registerEvents = function () { var self = this; this.on('open', function () { self.$container.addClass('select2-container--open'); }); this.on('close', function () { self.$container.removeClass('select2-container--open'); }); this.on('enable', function () { self.$container.removeClass('select2-container--disabled'); }); this.on('disable', function () { self.$container.addClass('select2-container--disabled'); }); this.on('blur', function () { self.$container.removeClass('select2-container--focus'); }); this.on('query', function (params) { if (!self.isOpen()) { self.trigger('open', {}); } this.dataAdapter.query(params, function (data) { self.trigger('results:all', { data: data, query: params }); }); }); this.on('query:append', function (params) { this.dataAdapter.query(params, function (data) { self.trigger('results:append', { data: data, query: params }); }); }); this.on('keypress', function (evt) { var key = evt.which; if (self.isOpen()) { if (key === KEYS.ESC || key === KEYS.TAB || (key === KEYS.UP && evt.altKey)) { self.close(); evt.preventDefault(); } else if (key === KEYS.ENTER) { self.trigger('results:select', {}); evt.preventDefault(); } else if ((key === KEYS.SPACE && evt.ctrlKey)) { self.trigger('results:toggle', {}); evt.preventDefault(); } else if (key === KEYS.UP) { self.trigger('results:previous', {}); evt.preventDefault(); } else if (key === KEYS.DOWN) { self.trigger('results:next', {}); evt.preventDefault(); } } else { if (key === KEYS.ENTER || key === KEYS.SPACE || (key === KEYS.DOWN && evt.altKey)) { self.open(); evt.preventDefault(); } } }); }; Select2.prototype._syncAttributes = function () { this.options.set('disabled', this.$element.prop('disabled')); if (this.options.get('disabled')) { if (this.isOpen()) { this.close(); } this.trigger('disable', {}); } else { this.trigger('enable', {}); } }; Select2.prototype._syncSubtree = function (evt, mutations) { var changed = false; var self = this; // Ignore any mutation events raised for elements that aren't options or // optgroups. This handles the case when the select element is destroyed if ( evt && evt.target && ( evt.target.nodeName !== 'OPTION' && evt.target.nodeName !== 'OPTGROUP' ) ) { return; } if (!mutations) { // If mutation events aren't supported, then we can only assume that the // change affected the selections changed = true; } else if (mutations.addedNodes && mutations.addedNodes.length > 0) { for (var n = 0; n < mutations.addedNodes.length; n++) { var node = mutations.addedNodes[n]; if (node.selected) { changed = true; } } } else if (mutations.removedNodes && mutations.removedNodes.length > 0) { changed = true; } // Only re-pull the data if we think there is a change if (changed) { this.dataAdapter.current(function (currentData) { self.trigger('selection:update', { data: currentData }); }); } }; /** * Override the trigger method to automatically trigger pre-events when * there are events that can be prevented. */ Select2.prototype.trigger = function (name, args) { var actualTrigger = Select2.__super__.trigger; var preTriggerMap = { 'open': 'opening', 'close': 'closing', 'select': 'selecting', 'unselect': 'unselecting', 'clear': 'clearing' }; if (args === undefined) { args = {}; } if (name in preTriggerMap) { var preTriggerName = preTriggerMap[name]; var preTriggerArgs = { prevented: false, name: name, args: args }; actualTrigger.call(this, preTriggerName, preTriggerArgs); if (preTriggerArgs.prevented) { args.prevented = true; return; } } actualTrigger.call(this, name, args); }; Select2.prototype.toggleDropdown = function () { if (this.options.get('disabled')) { return; } if (this.isOpen()) { this.close(); } else { this.open(); } }; Select2.prototype.open = function () { if (this.isOpen()) { return; } this.trigger('query', {}); }; Select2.prototype.close = function () { if (!this.isOpen()) { return; } this.trigger('close', {}); }; Select2.prototype.isOpen = function () { return this.$container.hasClass('select2-container--open'); }; Select2.prototype.hasFocus = function () { return this.$container.hasClass('select2-container--focus'); }; Select2.prototype.focus = function (data) { // No need to re-trigger focus events if we are already focused if (this.hasFocus()) { return; } this.$container.addClass('select2-container--focus'); this.trigger('focus', {}); }; Select2.prototype.enable = function (args) { if (this.options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `select2("enable")` method has been deprecated and will' + ' be removed in later Select2 versions. Use $element.prop("disabled")' + ' instead.' ); } if (args == null || args.length === 0) { args = [true]; } var disabled = !args[0]; this.$element.prop('disabled', disabled); }; Select2.prototype.data = function () { if (this.options.get('debug') && arguments.length > 0 && window.console && console.warn) { console.warn( 'Select2: Data can no longer be set using `select2("data")`. You ' + 'should consider setting the value instead using `$element.val()`.' ); } var data = []; this.dataAdapter.current(function (currentData) { data = currentData; }); return data; }; Select2.prototype.val = function (args) { if (this.options.get('debug') && window.console && console.warn) { console.warn( 'Select2: The `select2("val")` method has been deprecated and will be' + ' removed in later Select2 versions. Use $element.val() instead.' ); } if (args == null || args.length === 0) { return this.$element.val(); } var newVal = args[0]; if ($.isArray(newVal)) { newVal = $.map(newVal, function (obj) { return obj.toString(); }); } this.$element.val(newVal).trigger('change'); }; Select2.prototype.destroy = function () { this.$container.remove(); if (this.$element[0].detachEvent) { this.$element[0].detachEvent('onpropertychange', this._syncA); } if (this._observer != null) { this._observer.disconnect(); this._observer = null; } else if (this.$element[0].removeEventListener) { this.$element[0] .removeEventListener('DOMAttrModified', this._syncA, false); this.$element[0] .removeEventListener('DOMNodeInserted', this._syncS, false); this.$element[0] .removeEventListener('DOMNodeRemoved', this._syncS, false); } this._syncA = null; this._syncS = null; this.$element.off('.select2'); this.$element.attr('tabindex', Utils.GetData(this.$element[0], 'old-tabindex')); this.$element.removeClass('select2-hidden-accessible'); this.$element.attr('aria-hidden', 'false'); Utils.RemoveData(this.$element[0]); this.$element.removeData('select2'); this.dataAdapter.destroy(); this.selection.destroy(); this.dropdown.destroy(); this.results.destroy(); this.dataAdapter = null; this.selection = null; this.dropdown = null; this.results = null; }; Select2.prototype.render = function () { var $container = $( '' + '' + '' + '' ); $container.attr('dir', this.options.get('dir')); this.$container = $container; this.$container.addClass('select2-container--' + this.options.get('theme')); Utils.StoreData($container[0], 'element', this.$element); return $container; }; return Select2; }); S2.define('jquery-mousewheel',[ 'jquery' ], function ($) { // Used to shim jQuery.mousewheel for non-full builds. return $; }); S2.define('jquery.select2',[ 'jquery', 'jquery-mousewheel', './select2/core', './select2/defaults', './select2/utils' ], function ($, _, Select2, Defaults, Utils) { if ($.fn.select2 == null) { // All methods that should return the element var thisMethods = ['open', 'close', 'destroy']; $.fn.select2 = function (options) { options = options || {}; if (typeof options === 'object') { this.each(function () { var instanceOptions = $.extend(true, {}, options); var instance = new Select2($(this), instanceOptions); }); return this; } else if (typeof options === 'string') { var ret; var args = Array.prototype.slice.call(arguments, 1); this.each(function () { var instance = Utils.GetData(this, 'select2'); if (instance == null && window.console && console.error) { console.error( 'The select2(\'' + options + '\') method was called on an ' + 'element that is not using Select2.' ); } ret = instance[options].apply(instance, args); }); // Check if we should be returning `this` if ($.inArray(options, thisMethods) > -1) { return this; } return ret; } else { throw new Error('Invalid arguments for Select2: ' + options); } }; } if ($.fn.select2.defaults == null) { $.fn.select2.defaults = Defaults; } return Select2; }); // Return the AMD loader configuration so it can be used outside of this file return { define: S2.define, require: S2.require }; }()); // Autoload the jQuery bindings // We know that all of the modules exist above this, so we're safe var select2 = S2.require('jquery.select2'); // Hold the AMD module references on the jQuery function that was just loaded // This allows Select2 to use the internal loader outside of this file, such // as in the language files. jQuery.fn.select2.amd = S2; // Return the Select2 instance for anyone who is importing it. return select2; })); ================================================ FILE: public/backend/vendors/js/forms/spinner/jquery.bootstrap-touchspin.js ================================================ /* * Bootstrap TouchSpin - v4.2.5 * A mobile and touch friendly input spinner component for Bootstrap 3 & 4. * http://www.virtuosoft.eu/code/bootstrap-touchspin/ * * Made by István Ujj-Mészáros * Under Apache License v2.0 License */ (function(factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = function(root, jQuery) { if (jQuery === undefined) { if (typeof window !== 'undefined') { jQuery = require('jquery'); } else { jQuery = require('jquery')(root); } } factory(jQuery); return jQuery; }; } else { factory(jQuery); } }(function($) { 'use strict'; var _currentSpinnerId = 0; $.fn.TouchSpin = function(options) { var defaults = { min: 0, // If null, there is no minimum enforced max: 100, // If null, there is no maximum enforced initval: '', replacementval: '', step: 1, decimals: 0, stepinterval: 100, forcestepdivisibility: 'round', // none | floor | round | ceil stepintervaldelay: 500, verticalbuttons: false, verticalup: '+', verticaldown: '-', verticalupclass: '', verticaldownclass: '', prefix: '', postfix: '', prefix_extraclass: '', postfix_extraclass: '', booster: true, boostat: 10, maxboostedstep: false, mousewheel: true, buttondown_class: 'btn btn-primary', buttonup_class: 'btn btn-primary', buttondown_txt: '-', buttonup_txt: '+', callback_before_calculation: function(value) { return value; }, callback_after_calculation: function(value) { return value; } }; var attributeMap = { min: 'min', max: 'max', initval: 'init-val', replacementval: 'replacement-val', step: 'step', decimals: 'decimals', stepinterval: 'step-interval', verticalbuttons: 'vertical-buttons', verticalupclass: 'vertical-up-class', verticaldownclass: 'vertical-down-class', forcestepdivisibility: 'force-step-divisibility', stepintervaldelay: 'step-interval-delay', prefix: 'prefix', postfix: 'postfix', prefix_extraclass: 'prefix-extra-class', postfix_extraclass: 'postfix-extra-class', booster: 'booster', boostat: 'boostat', maxboostedstep: 'max-boosted-step', mousewheel: 'mouse-wheel', buttondown_class: 'button-down-class', buttonup_class: 'button-up-class', buttondown_txt: 'button-down-txt', buttonup_txt: 'button-up-txt' }; return this.each(function() { var settings, originalinput = $(this), originalinput_data = originalinput.data(), _detached_prefix, _detached_postfix, container, elements, value, downSpinTimer, upSpinTimer, downDelayTimeout, upDelayTimeout, spincount = 0, spinning = false; init(); function init() { if (originalinput.data('alreadyinitialized')) { return; } originalinput.data('alreadyinitialized', true); _currentSpinnerId += 1; originalinput.data('spinnerid', _currentSpinnerId); if (!originalinput.is('input')) { console.log('Must be an input.'); return; } _initSettings(); _setInitval(); _checkValue(); _buildHtml(); _initElements(); _hideEmptyPrefixPostfix(); _bindEvents(); _bindEventsInterface(); } function _setInitval() { if (settings.initval !== '' && originalinput.val() === '') { originalinput.val(settings.initval); } } function changeSettings(newsettings) { _updateSettings(newsettings); _checkValue(); var value = elements.input.val(); if (value !== '') { value = Number(settings.callback_before_calculation(elements.input.val())); elements.input.val(settings.callback_after_calculation(Number(value).toFixed(settings.decimals))); } } function _initSettings() { settings = $.extend({}, defaults, originalinput_data, _parseAttributes(), options); } function _parseAttributes() { var data = {}; $.each(attributeMap, function(key, value) { var attrName = 'bts-' + value + ''; if (originalinput.is('[data-' + attrName + ']')) { data[key] = originalinput.data(attrName); } }); return data; } function _destroy() { var $parent = originalinput.parent(); stopSpin(); originalinput.off('.touchspin'); if ($parent.hasClass('bootstrap-touchspin-injected')) { originalinput.siblings().remove(); originalinput.unwrap(); } else { $('.bootstrap-touchspin-injected', $parent).remove(); $parent.removeClass('bootstrap-touchspin'); } originalinput.data('alreadyinitialized', false); } function _updateSettings(newsettings) { settings = $.extend({}, settings, newsettings); // Update postfix and prefix texts if those settings were changed. if (newsettings.postfix) { var $postfix = originalinput.parent().find('.bootstrap-touchspin-postfix'); if ($postfix.length === 0) { _detached_postfix.insertAfter(originalinput); } originalinput.parent().find('.bootstrap-touchspin-postfix .input-group-text').text(newsettings.postfix); } if (newsettings.prefix) { var $prefix = originalinput.parent().find('.bootstrap-touchspin-prefix'); if ($prefix.length === 0) { _detached_prefix.insertBefore(originalinput); } originalinput.parent().find('.bootstrap-touchspin-prefix .input-group-text').text(newsettings.prefix); } _hideEmptyPrefixPostfix(); } function _buildHtml() { var initval = originalinput.val(), parentelement = originalinput.parent(); if (initval !== '') { initval = settings.callback_after_calculation(Number(initval).toFixed(settings.decimals)); } originalinput.data('initvalue', initval).val(initval); originalinput.addClass('form-control'); if (parentelement.hasClass('input-group')) { _advanceInputGroup(parentelement); } else { _buildInputGroup(); } } function _advanceInputGroup(parentelement) { parentelement.addClass('bootstrap-touchspin'); var prev = originalinput.prev(), next = originalinput.next(); var downhtml, uphtml, prefixhtml = '' + settings.prefix + '', postfixhtml = '' + settings.postfix + ''; if (prev.hasClass('input-group-btn') || prev.hasClass('input-group-prepend')) { downhtml = ''; prev.append(downhtml); } else { downhtml = ''; $(downhtml).insertBefore(originalinput); } if (next.hasClass('input-group-btn') || next.hasClass('input-group-append')) { uphtml = ''; next.prepend(uphtml); } else { uphtml = ''; $(uphtml).insertAfter(originalinput); } $(prefixhtml).insertBefore(originalinput); $(postfixhtml).insertAfter(originalinput); container = parentelement; } function _buildInputGroup() { var html; var inputGroupSize = ''; if (originalinput.hasClass('input-sm')) { inputGroupSize = 'input-group-sm'; } if (originalinput.hasClass('input-lg')) { inputGroupSize = 'input-group-lg'; } if (settings.verticalbuttons) { html = '
          ' + settings.prefix + '' + settings.postfix + '
          '; } else { html = '
          ' + settings.prefix + '' + settings.postfix + '
          '; } container = $(html).insertBefore(originalinput); $('.bootstrap-touchspin-prefix', container).after(originalinput); if (originalinput.hasClass('input-sm')) { container.addClass('input-group-sm'); } else if (originalinput.hasClass('input-lg')) { container.addClass('input-group-lg'); } } function _initElements() { elements = { down: $('.bootstrap-touchspin-down', container), up: $('.bootstrap-touchspin-up', container), input: $('input', container), prefix: $('.bootstrap-touchspin-prefix', container).addClass(settings.prefix_extraclass), postfix: $('.bootstrap-touchspin-postfix', container).addClass(settings.postfix_extraclass) }; } function _hideEmptyPrefixPostfix() { if (settings.prefix === '') { _detached_prefix = elements.prefix.detach(); } if (settings.postfix === '') { _detached_postfix = elements.postfix.detach(); } } function _bindEvents() { originalinput.on('keydown.touchspin', function(ev) { var code = ev.keyCode || ev.which; if (code === 38) { if (spinning !== 'up') { upOnce(); startUpSpin(); } ev.preventDefault(); } else if (code === 40) { if (spinning !== 'down') { downOnce(); startDownSpin(); } ev.preventDefault(); } }); originalinput.on('keyup.touchspin', function(ev) { var code = ev.keyCode || ev.which; if (code === 38) { stopSpin(); } else if (code === 40) { stopSpin(); } }); originalinput.on('blur.touchspin', function() { _checkValue(); originalinput.val(settings.callback_after_calculation(originalinput.val())); }); elements.down.on('keydown', function(ev) { var code = ev.keyCode || ev.which; if (code === 32 || code === 13) { if (spinning !== 'down') { downOnce(); startDownSpin(); } ev.preventDefault(); } }); elements.down.on('keyup.touchspin', function(ev) { var code = ev.keyCode || ev.which; if (code === 32 || code === 13) { stopSpin(); } }); elements.up.on('keydown.touchspin', function(ev) { var code = ev.keyCode || ev.which; if (code === 32 || code === 13) { if (spinning !== 'up') { upOnce(); startUpSpin(); } ev.preventDefault(); } }); elements.up.on('keyup.touchspin', function(ev) { var code = ev.keyCode || ev.which; if (code === 32 || code === 13) { stopSpin(); } }); elements.down.on('mousedown.touchspin', function(ev) { elements.down.off('touchstart.touchspin'); // android 4 workaround if (originalinput.is(':disabled')) { return; } downOnce(); startDownSpin(); ev.preventDefault(); ev.stopPropagation(); }); elements.down.on('touchstart.touchspin', function(ev) { elements.down.off('mousedown.touchspin'); // android 4 workaround if (originalinput.is(':disabled')) { return; } downOnce(); startDownSpin(); ev.preventDefault(); ev.stopPropagation(); }); elements.up.on('mousedown.touchspin', function(ev) { elements.up.off('touchstart.touchspin'); // android 4 workaround if (originalinput.is(':disabled')) { return; } upOnce(); startUpSpin(); ev.preventDefault(); ev.stopPropagation(); }); elements.up.on('touchstart.touchspin', function(ev) { elements.up.off('mousedown.touchspin'); // android 4 workaround if (originalinput.is(':disabled')) { return; } upOnce(); startUpSpin(); ev.preventDefault(); ev.stopPropagation(); }); elements.up.on('mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin', function(ev) { if (!spinning) { return; } ev.stopPropagation(); stopSpin(); }); elements.down.on('mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin', function(ev) { if (!spinning) { return; } ev.stopPropagation(); stopSpin(); }); elements.down.on('mousemove.touchspin touchmove.touchspin', function(ev) { if (!spinning) { return; } ev.stopPropagation(); ev.preventDefault(); }); elements.up.on('mousemove.touchspin touchmove.touchspin', function(ev) { if (!spinning) { return; } ev.stopPropagation(); ev.preventDefault(); }); originalinput.on('mousewheel.touchspin DOMMouseScroll.touchspin', function(ev) { if (!settings.mousewheel || !originalinput.is(':focus')) { return; } var delta = ev.originalEvent.wheelDelta || -ev.originalEvent.deltaY || -ev.originalEvent.detail; ev.stopPropagation(); ev.preventDefault(); if (delta < 0) { downOnce(); } else { upOnce(); } }); } function _bindEventsInterface() { originalinput.on('touchspin.destroy', function() { _destroy(); }); originalinput.on('touchspin.uponce', function() { stopSpin(); upOnce(); }); originalinput.on('touchspin.downonce', function() { stopSpin(); downOnce(); }); originalinput.on('touchspin.startupspin', function() { startUpSpin(); }); originalinput.on('touchspin.startdownspin', function() { startDownSpin(); }); originalinput.on('touchspin.stopspin', function() { stopSpin(); }); originalinput.on('touchspin.updatesettings', function(e, newsettings) { changeSettings(newsettings); }); } function _forcestepdivisibility(value) { switch (settings.forcestepdivisibility) { case 'round': return (Math.round(value / settings.step) * settings.step).toFixed(settings.decimals); case 'floor': return (Math.floor(value / settings.step) * settings.step).toFixed(settings.decimals); case 'ceil': return (Math.ceil(value / settings.step) * settings.step).toFixed(settings.decimals); default: return value; } } function _checkValue() { var val, parsedval, returnval; val = settings.callback_before_calculation(originalinput.val()); if (val === '') { if (settings.replacementval !== '') { originalinput.val(settings.replacementval); originalinput.trigger('change'); } return; } if (settings.decimals > 0 && val === '.') { return; } parsedval = parseFloat(val); if (isNaN(parsedval)) { if (settings.replacementval !== '') { parsedval = settings.replacementval; } else { parsedval = 0; } } returnval = parsedval; if (parsedval.toString() !== val) { returnval = parsedval; } if ((settings.min !== null) && (parsedval < settings.min)) { returnval = settings.min; } if ((settings.max !== null) && (parsedval > settings.max)) { returnval = settings.max; } returnval = _forcestepdivisibility(returnval); if (Number(val).toString() !== returnval.toString()) { originalinput.val(returnval); originalinput.trigger('change'); } } function _getBoostedStep() { if (!settings.booster) { return settings.step; } else { var boosted = Math.pow(2, Math.floor(spincount / settings.boostat)) * settings.step; if (settings.maxboostedstep) { if (boosted > settings.maxboostedstep) { boosted = settings.maxboostedstep; value = Math.round((value / boosted)) * boosted; } } return Math.max(settings.step, boosted); } } function upOnce() { _checkValue(); value = parseFloat(settings.callback_before_calculation(elements.input.val())); if (isNaN(value)) { value = 0; } var initvalue = value, boostedstep = _getBoostedStep(); value = value + boostedstep; if ((settings.max !== null) && (value > settings.max)) { value = settings.max; originalinput.trigger('touchspin.on.max'); stopSpin(); } elements.input.val(settings.callback_after_calculation(Number(value).toFixed(settings.decimals))); if (initvalue !== value) { originalinput.trigger('change'); } } function downOnce() { _checkValue(); value = parseFloat(settings.callback_before_calculation(elements.input.val())); if (isNaN(value)) { value = 0; } var initvalue = value, boostedstep = _getBoostedStep(); value = value - boostedstep; if ((settings.min !== null) && (value < settings.min)) { value = settings.min; originalinput.trigger('touchspin.on.min'); stopSpin(); } elements.input.val(settings.callback_after_calculation(Number(value).toFixed(settings.decimals))); if (initvalue !== value) { originalinput.trigger('change'); } } function startDownSpin() { stopSpin(); spincount = 0; spinning = 'down'; originalinput.trigger('touchspin.on.startspin'); originalinput.trigger('touchspin.on.startdownspin'); downDelayTimeout = setTimeout(function() { downSpinTimer = setInterval(function() { spincount++; downOnce(); }, settings.stepinterval); }, settings.stepintervaldelay); } function startUpSpin() { stopSpin(); spincount = 0; spinning = 'up'; originalinput.trigger('touchspin.on.startspin'); originalinput.trigger('touchspin.on.startupspin'); upDelayTimeout = setTimeout(function() { upSpinTimer = setInterval(function() { spincount++; upOnce(); }, settings.stepinterval); }, settings.stepintervaldelay); } function stopSpin() { clearTimeout(downDelayTimeout); clearTimeout(upDelayTimeout); clearInterval(downSpinTimer); clearInterval(upSpinTimer); switch (spinning) { case 'up': originalinput.trigger('touchspin.on.stopupspin'); originalinput.trigger('touchspin.on.stopspin'); break; case 'down': originalinput.trigger('touchspin.on.stopdownspin'); originalinput.trigger('touchspin.on.stopspin'); break; } spincount = 0; spinning = false; } }); }; })); ================================================ FILE: public/backend/vendors/js/forms/toggle/switchery.js ================================================ ;(function(){ /** * Require the module at `name`. * * @param {String} name * @return {Object} exports * @api public */ function require(name) { var module = require.modules[name]; if (!module) throw new Error('failed to require "' + name + '"'); if (!('exports' in module) && typeof module.definition === 'function') { module.client = module.component = true; module.definition.call(this, module.exports = {}, module); delete module.definition; } return module.exports; } /** * Meta info, accessible in the global scope unless you use AMD option. */ require.loader = 'component'; /** * Internal helper object, contains a sorting function for semantiv versioning */ require.helper = {}; require.helper.semVerSort = function(a, b) { var aArray = a.version.split('.'); var bArray = b.version.split('.'); for (var i=0; i bLex ? 1 : -1; continue; } else if (aInt > bInt) { return 1; } else { return -1; } } return 0; } /** * Find and require a module which name starts with the provided name. * If multiple modules exists, the highest semver is used. * This function can only be used for remote dependencies. * @param {String} name - module name: `user~repo` * @param {Boolean} returnPath - returns the canonical require path if true, * otherwise it returns the epxorted module */ require.latest = function (name, returnPath) { function showError(name) { throw new Error('failed to find latest module of "' + name + '"'); } // only remotes with semvers, ignore local files conataining a '/' var versionRegexp = /(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/; var remoteRegexp = /(.*)~(.*)/; if (!remoteRegexp.test(name)) showError(name); var moduleNames = Object.keys(require.modules); var semVerCandidates = []; var otherCandidates = []; // for instance: name of the git branch for (var i=0; i 0) { var module = semVerCandidates.sort(require.helper.semVerSort).pop().name; if (returnPath === true) { return module; } return require(module); } // if the build contains more than one branch of the same module // you should not use this funciton var module = otherCandidates.sort(function(a, b) {return a.name > b.name})[0].name; if (returnPath === true) { return module; } return require(module); } /** * Registered modules. */ require.modules = {}; /** * Register module at `name` with callback `definition`. * * @param {String} name * @param {Function} definition * @api private */ require.register = function (name, definition) { require.modules[name] = { definition: definition }; }; /** * Define a module's exports immediately with `exports`. * * @param {String} name * @param {Generic} exports * @api private */ require.define = function (name, exports) { require.modules[name] = { exports: exports }; }; require.register("abpetkov~transitionize@0.0.3", function (exports, module) { /** * Transitionize 0.0.2 * https://github.com/abpetkov/transitionize * * Authored by Alexander Petkov * https://github.com/abpetkov * * Copyright 2013, Alexander Petkov * License: The MIT License (MIT) * http://opensource.org/licenses/MIT * */ /** * Expose `Transitionize`. */ module.exports = Transitionize; /** * Initialize new Transitionize. * * @param {Object} element * @param {Object} props * @api public */ function Transitionize(element, props) { if (!(this instanceof Transitionize)) return new Transitionize(element, props); this.element = element; this.props = props || {}; this.init(); } /** * Detect if Safari. * * @returns {Boolean} * @api private */ Transitionize.prototype.isSafari = function() { return (/Safari/).test(navigator.userAgent) && (/Apple Computer/).test(navigator.vendor); }; /** * Loop though the object and push the keys and values in an array. * Apply the CSS3 transition to the element and prefix with -webkit- for Safari. * * @api private */ Transitionize.prototype.init = function() { var transitions = []; for (var key in this.props) { transitions.push(key + ' ' + this.props[key]); } this.element.style.transition = transitions.join(', '); if (this.isSafari()) this.element.style.webkitTransition = transitions.join(', '); }; }); require.register("ftlabs~fastclick@v0.6.11", function (exports, module) { /** * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. * * @version 0.6.11 * @codingstandard ftlabs-jsv2 * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License (see LICENSE.txt) */ /*jslint browser:true, node:true*/ /*global define, Event, Node*/ /** * Instantiate fast-clicking listeners on the specificed layer. * * @constructor * @param {Element} layer The layer to listen on */ function FastClick(layer) { 'use strict'; var oldOnClick, self = this; /** * Whether a click is currently being tracked. * * @type boolean */ this.trackingClick = false; /** * Timestamp for when when click tracking started. * * @type number */ this.trackingClickStart = 0; /** * The element being tracked for a click. * * @type EventTarget */ this.targetElement = null; /** * X-coordinate of touch start event. * * @type number */ this.touchStartX = 0; /** * Y-coordinate of touch start event. * * @type number */ this.touchStartY = 0; /** * ID of the last touch, retrieved from Touch.identifier. * * @type number */ this.lastTouchIdentifier = 0; /** * Touchmove boundary, beyond which a click will be cancelled. * * @type number */ this.touchBoundary = 10; /** * The FastClick layer. * * @type Element */ this.layer = layer; if (!layer || !layer.nodeType) { throw new TypeError('Layer must be a document node'); } /** @type function() */ this.onClick = function() { return FastClick.prototype.onClick.apply(self, arguments); }; /** @type function() */ this.onMouse = function() { return FastClick.prototype.onMouse.apply(self, arguments); }; /** @type function() */ this.onTouchStart = function() { return FastClick.prototype.onTouchStart.apply(self, arguments); }; /** @type function() */ this.onTouchMove = function() { return FastClick.prototype.onTouchMove.apply(self, arguments); }; /** @type function() */ this.onTouchEnd = function() { return FastClick.prototype.onTouchEnd.apply(self, arguments); }; /** @type function() */ this.onTouchCancel = function() { return FastClick.prototype.onTouchCancel.apply(self, arguments); }; if (FastClick.notNeeded(layer)) { return; } // Set up event handlers as required if (this.deviceIsAndroid) { layer.addEventListener('mouseover', this.onMouse, true); layer.addEventListener('mousedown', this.onMouse, true); layer.addEventListener('mouseup', this.onMouse, true); } layer.addEventListener('click', this.onClick, true); layer.addEventListener('touchstart', this.onTouchStart, false); layer.addEventListener('touchmove', this.onTouchMove, false); layer.addEventListener('touchend', this.onTouchEnd, false); layer.addEventListener('touchcancel', this.onTouchCancel, false); // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick // layer when they are cancelled. if (!Event.prototype.stopImmediatePropagation) { layer.removeEventListener = function(type, callback, capture) { var rmv = Node.prototype.removeEventListener; if (type === 'click') { rmv.call(layer, type, callback.hijacked || callback, capture); } else { rmv.call(layer, type, callback, capture); } }; layer.addEventListener = function(type, callback, capture) { var adv = Node.prototype.addEventListener; if (type === 'click') { adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { if (!event.propagationStopped) { callback(event); } }), capture); } else { adv.call(layer, type, callback, capture); } }; } // If a handler is already declared in the element's onclick attribute, it will be fired before // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and // adding it as listener. if (typeof layer.onclick === 'function') { // Android browser on at least 3.2 requires a new reference to the function in layer.onclick // - the old one won't work if passed to addEventListener directly. oldOnClick = layer.onclick; layer.addEventListener('click', function(event) { oldOnClick(event); }, false); layer.onclick = null; } } /** * Android requires exceptions. * * @type boolean */ FastClick.prototype.deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0; /** * iOS requires exceptions. * * @type boolean */ FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); /** * iOS 4 requires an exception for select elements. * * @type boolean */ FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); /** * iOS 6.0(+?) requires the target element to be manually derived * * @type boolean */ FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); /** * Determine whether a given element requires a native click. * * @param {EventTarget|Element} target Target DOM element * @returns {boolean} Returns true if the element needs a native click */ FastClick.prototype.needsClick = function(target) { 'use strict'; switch (target.nodeName.toLowerCase()) { // Don't send a synthetic click to disabled inputs (issue #62) case 'button': case 'select': case 'textarea': if (target.disabled) { return true; } break; case 'input': // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) if ((this.deviceIsIOS && target.type === 'file') || target.disabled) { return true; } break; case 'label': case 'video': return true; } return (/\bneedsclick\b/).test(target.className); }; /** * Determine whether a given element requires a call to focus to simulate click into element. * * @param {EventTarget|Element} target Target DOM element * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. */ FastClick.prototype.needsFocus = function(target) { 'use strict'; switch (target.nodeName.toLowerCase()) { case 'textarea': return true; case 'select': return !this.deviceIsAndroid; case 'input': switch (target.type) { case 'button': case 'checkbox': case 'file': case 'image': case 'radio': case 'submit': return false; } // No point in attempting to focus disabled inputs return !target.disabled && !target.readOnly; default: return (/\bneedsfocus\b/).test(target.className); } }; /** * Send a click event to the specified element. * * @param {EventTarget|Element} targetElement * @param {Event} event */ FastClick.prototype.sendClick = function(targetElement, event) { 'use strict'; var clickEvent, touch; // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) if (document.activeElement && document.activeElement !== targetElement) { document.activeElement.blur(); } touch = event.changedTouches[0]; // Synthesise a click event, with an extra attribute so it can be tracked clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); clickEvent.forwardedTouchEvent = true; targetElement.dispatchEvent(clickEvent); }; FastClick.prototype.determineEventType = function(targetElement) { 'use strict'; //Issue #159: Android Chrome Select Box does not open with a synthetic click event if (this.deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { return 'mousedown'; } return 'click'; }; /** * @param {EventTarget|Element} targetElement */ FastClick.prototype.focus = function(targetElement) { 'use strict'; var length; // Issue #160: on iOS 7, some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. if (this.deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time') { length = targetElement.value.length; targetElement.setSelectionRange(length, length); } else { targetElement.focus(); } }; /** * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. * * @param {EventTarget|Element} targetElement */ FastClick.prototype.updateScrollParent = function(targetElement) { 'use strict'; var scrollParent, parentElement; scrollParent = targetElement.fastClickScrollParent; // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the // target element was moved to another parent. if (!scrollParent || !scrollParent.contains(targetElement)) { parentElement = targetElement; do { if (parentElement.scrollHeight > parentElement.offsetHeight) { scrollParent = parentElement; targetElement.fastClickScrollParent = parentElement; break; } parentElement = parentElement.parentElement; } while (parentElement); } // Always update the scroll top tracker if possible. if (scrollParent) { scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; } }; /** * @param {EventTarget} targetElement * @returns {Element|EventTarget} */ FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { 'use strict'; // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. if (eventTarget.nodeType === Node.TEXT_NODE) { return eventTarget.parentNode; } return eventTarget; }; /** * On touch start, record the position and scroll offset. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchStart = function(event) { 'use strict'; var targetElement, touch, selection; // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). if (event.targetTouches.length > 1) { return true; } targetElement = this.getTargetElementFromEventTarget(event.target); touch = event.targetTouches[0]; if (this.deviceIsIOS) { // Only trusted events will deselect text on iOS (issue #49) selection = window.getSelection(); if (selection.rangeCount && !selection.isCollapsed) { return true; } if (!this.deviceIsIOS4) { // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched // with the same identifier as the touch event that previously triggered the click that triggered the alert. // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. if (touch.identifier === this.lastTouchIdentifier) { event.preventDefault(); return false; } this.lastTouchIdentifier = touch.identifier; // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: // 1) the user does a fling scroll on the scrollable layer // 2) the user stops the fling scroll with another tap // then the event.target of the last 'touchend' event will be the element that was under the user's finger // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). this.updateScrollParent(targetElement); } } this.trackingClick = true; this.trackingClickStart = event.timeStamp; this.targetElement = targetElement; this.touchStartX = touch.pageX; this.touchStartY = touch.pageY; // Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < 200) { event.preventDefault(); } return true; }; /** * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.touchHasMoved = function(event) { 'use strict'; var touch = event.changedTouches[0], boundary = this.touchBoundary; if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { return true; } return false; }; /** * Update the last position. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchMove = function(event) { 'use strict'; if (!this.trackingClick) { return true; } // If the touch has moved, cancel the click tracking if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { this.trackingClick = false; this.targetElement = null; } return true; }; /** * Attempt to find the labelled control for the given label element. * * @param {EventTarget|HTMLLabelElement} labelElement * @returns {Element|null} */ FastClick.prototype.findControl = function(labelElement) { 'use strict'; // Fast path for newer browsers supporting the HTML5 control attribute if (labelElement.control !== undefined) { return labelElement.control; } // All browsers under test that support touch events also support the HTML5 htmlFor attribute if (labelElement.htmlFor) { return document.getElementById(labelElement.htmlFor); } // If no for attribute exists, attempt to retrieve the first labellable descendant element // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); }; /** * On touch end, determine whether to send a click event at once. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onTouchEnd = function(event) { 'use strict'; var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; if (!this.trackingClick) { return true; } // Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < 200) { this.cancelNextClick = true; return true; } // Reset to prevent wrong click cancel on input (issue #156). this.cancelNextClick = false; this.lastClickTime = event.timeStamp; trackingClickStart = this.trackingClickStart; this.trackingClick = false; this.trackingClickStart = 0; // On some iOS devices, the targetElement supplied with the event is invalid if the layer // is performing a transition or scroll, and has to be re-detected manually. Note that // for this to function correctly, it must be called *after* the event target is checked! // See issue #57; also filed as rdar://13048589 . if (this.deviceIsIOSWithBadTarget) { touch = event.changedTouches[0]; // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; } targetTagName = targetElement.tagName.toLowerCase(); if (targetTagName === 'label') { forElement = this.findControl(targetElement); if (forElement) { this.focus(targetElement); if (this.deviceIsAndroid) { return false; } targetElement = forElement; } } else if (this.needsFocus(targetElement)) { // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) { this.targetElement = null; return false; } this.focus(targetElement); // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. if (!this.deviceIsIOS4 || targetTagName !== 'select') { this.targetElement = null; event.preventDefault(); } return false; } if (this.deviceIsIOS && !this.deviceIsIOS4) { // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). scrollParent = targetElement.fastClickScrollParent; if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { return true; } } // Prevent the actual click from going though - unless the target node is marked as requiring // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. if (!this.needsClick(targetElement)) { event.preventDefault(); this.sendClick(targetElement, event); } return false; }; /** * On touch cancel, stop tracking the click. * * @returns {void} */ FastClick.prototype.onTouchCancel = function() { 'use strict'; this.trackingClick = false; this.targetElement = null; }; /** * Determine mouse events which should be permitted. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onMouse = function(event) { 'use strict'; // If a target element was never set (because a touch event was never fired) allow the event if (!this.targetElement) { return true; } if (event.forwardedTouchEvent) { return true; } // Programmatically generated events targeting a specific element should be permitted if (!event.cancelable) { return true; } // Derive and check the target element to see whether the mouse event needs to be permitted; // unless explicitly enabled, prevent non-touch click events from triggering actions, // to prevent ghost/doubleclicks. if (!this.needsClick(this.targetElement) || this.cancelNextClick) { // Prevent any user-added listeners declared on FastClick element from being fired. if (event.stopImmediatePropagation) { event.stopImmediatePropagation(); } else { // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) event.propagationStopped = true; } // Cancel the event event.stopPropagation(); event.preventDefault(); return false; } // If the mouse event is permitted, return true for the action to go through. return true; }; /** * On actual clicks, determine whether this is a touch-generated click, a click action occurring * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or * an actual click which should be permitted. * * @param {Event} event * @returns {boolean} */ FastClick.prototype.onClick = function(event) { 'use strict'; var permitted; // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. if (this.trackingClick) { this.targetElement = null; this.trackingClick = false; return true; } // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. if (event.target.type === 'submit' && event.detail === 0) { return true; } permitted = this.onMouse(event); // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. if (!permitted) { this.targetElement = null; } // If clicks are permitted, return true for the action to go through. return permitted; }; /** * Remove all FastClick's event listeners. * * @returns {void} */ FastClick.prototype.destroy = function() { 'use strict'; var layer = this.layer; if (this.deviceIsAndroid) { layer.removeEventListener('mouseover', this.onMouse, true); layer.removeEventListener('mousedown', this.onMouse, true); layer.removeEventListener('mouseup', this.onMouse, true); } layer.removeEventListener('click', this.onClick, true); layer.removeEventListener('touchstart', this.onTouchStart, false); layer.removeEventListener('touchmove', this.onTouchMove, false); layer.removeEventListener('touchend', this.onTouchEnd, false); layer.removeEventListener('touchcancel', this.onTouchCancel, false); }; /** * Check whether FastClick is needed. * * @param {Element} layer The layer to listen on */ FastClick.notNeeded = function(layer) { 'use strict'; var metaViewport; var chromeVersion; // Devices that don't support touch don't need FastClick if (typeof window.ontouchstart === 'undefined') { return true; } // Chrome version - zero for other browsers chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; if (chromeVersion) { if (FastClick.prototype.deviceIsAndroid) { metaViewport = document.querySelector('meta[name=viewport]'); if (metaViewport) { // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) if (metaViewport.content.indexOf('user-scalable=no') !== -1) { return true; } // Chrome 32 and above with width=device-width or less don't need FastClick if (chromeVersion > 31 && window.innerWidth <= window.screen.width) { return true; } } // Chrome desktop doesn't need FastClick (issue #15) } else { return true; } } // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) if (layer.style.msTouchAction === 'none') { return true; } return false; }; /** * Factory method for creating a FastClick object * * @param {Element} layer The layer to listen on */ FastClick.attach = function(layer) { 'use strict'; return new FastClick(layer); }; if (typeof define !== 'undefined' && define.amd) { // AMD. Register as an anonymous module. define(function() { 'use strict'; return FastClick; }); } else if (typeof module !== 'undefined' && module.exports) { module.exports = FastClick.attach; module.exports.FastClick = FastClick; } else { window.FastClick = FastClick; } }); require.register("component~indexof@0.0.3", function (exports, module) { module.exports = function(arr, obj){ if (arr.indexOf) return arr.indexOf(obj); for (var i = 0; i < arr.length; ++i) { if (arr[i] === obj) return i; } return -1; }; }); require.register("component~classes@1.2.1", function (exports, module) { /** * Module dependencies. */ var index = require('component~indexof@0.0.3'); /** * Whitespace regexp. */ var re = /\s+/; /** * toString reference. */ var toString = Object.prototype.toString; /** * Wrap `el` in a `ClassList`. * * @param {Element} el * @return {ClassList} * @api public */ module.exports = function(el){ return new ClassList(el); }; /** * Initialize a new ClassList for `el`. * * @param {Element} el * @api private */ function ClassList(el) { if (!el) throw new Error('A DOM element reference is required'); this.el = el; this.list = el.classList; } /** * Add class `name` if not already present. * * @param {String} name * @return {ClassList} * @api public */ ClassList.prototype.add = function(name){ // classList if (this.list) { this.list.add(name); return this; } // fallback var arr = this.array(); var i = index(arr, name); if (!~i) arr.push(name); this.el.className = arr.join(' '); return this; }; /** * Remove class `name` when present, or * pass a regular expression to remove * any which match. * * @param {String|RegExp} name * @return {ClassList} * @api public */ ClassList.prototype.remove = function(name){ if ('[object RegExp]' == toString.call(name)) { return this.removeMatching(name); } // classList if (this.list) { this.list.remove(name); return this; } // fallback var arr = this.array(); var i = index(arr, name); if (~i) arr.splice(i, 1); this.el.className = arr.join(' '); return this; }; /** * Remove all classes matching `re`. * * @param {RegExp} re * @return {ClassList} * @api private */ ClassList.prototype.removeMatching = function(re){ var arr = this.array(); for (var i = 0; i < arr.length; i++) { if (re.test(arr[i])) { this.remove(arr[i]); } } return this; }; /** * Toggle class `name`, can force state via `force`. * * For browsers that support classList, but do not support `force` yet, * the mistake will be detected and corrected. * * @param {String} name * @param {Boolean} force * @return {ClassList} * @api public */ ClassList.prototype.toggle = function(name, force){ // classList if (this.list) { if ("undefined" !== typeof force) { if (force !== this.list.toggle(name, force)) { this.list.toggle(name); // toggle again to correct } } else { this.list.toggle(name); } return this; } // fallback if ("undefined" !== typeof force) { if (!force) { this.remove(name); } else { this.add(name); } } else { if (this.has(name)) { this.remove(name); } else { this.add(name); } } return this; }; /** * Return an array of classes. * * @return {Array} * @api public */ ClassList.prototype.array = function(){ var str = this.el.className.replace(/^\s+|\s+$/g, ''); var arr = str.split(re); if ('' === arr[0]) arr.shift(); return arr; }; /** * Check if class `name` is present. * * @param {String} name * @return {ClassList} * @api public */ ClassList.prototype.has = ClassList.prototype.contains = function(name){ return this.list ? this.list.contains(name) : !! ~index(this.array(), name); }; }); require.register("component~event@0.1.4", function (exports, module) { var bind = window.addEventListener ? 'addEventListener' : 'attachEvent', unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent', prefix = bind !== 'addEventListener' ? 'on' : ''; /** * Bind `el` event `type` to `fn`. * * @param {Element} el * @param {String} type * @param {Function} fn * @param {Boolean} capture * @return {Function} * @api public */ exports.bind = function(el, type, fn, capture){ el[bind](prefix + type, fn, capture || false); return fn; }; /** * Unbind `el` event `type`'s callback `fn`. * * @param {Element} el * @param {String} type * @param {Function} fn * @param {Boolean} capture * @return {Function} * @api public */ exports.unbind = function(el, type, fn, capture){ el[unbind](prefix + type, fn, capture || false); return fn; }; }); require.register("component~query@0.0.3", function (exports, module) { function one(selector, el) { return el.querySelector(selector); } exports = module.exports = function(selector, el){ el = el || document; return one(selector, el); }; exports.all = function(selector, el){ el = el || document; return el.querySelectorAll(selector); }; exports.engine = function(obj){ if (!obj.one) throw new Error('.one callback required'); if (!obj.all) throw new Error('.all callback required'); one = obj.one; exports.all = obj.all; return exports; }; }); require.register("component~matches-selector@0.1.5", function (exports, module) { /** * Module dependencies. */ var query = require('component~query@0.0.3'); /** * Element prototype. */ var proto = Element.prototype; /** * Vendor function. */ var vendor = proto.matches || proto.webkitMatchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector; /** * Expose `match()`. */ module.exports = match; /** * Match `el` to `selector`. * * @param {Element} el * @param {String} selector * @return {Boolean} * @api public */ function match(el, selector) { if (!el || el.nodeType !== 1) return false; if (vendor) return vendor.call(el, selector); var nodes = query.all(selector, el.parentNode); for (var i = 0; i < nodes.length; ++i) { if (nodes[i] == el) return true; } return false; } }); require.register("component~closest@0.1.4", function (exports, module) { var matches = require('component~matches-selector@0.1.5') module.exports = function (element, selector, checkYoSelf, root) { element = checkYoSelf ? {parentNode: element} : element root = root || document // Make sure `element !== document` and `element != null` // otherwise we get an illegal invocation while ((element = element.parentNode) && element !== document) { if (matches(element, selector)) return element // After `matches` on the edge case that // the selector matches the root // (when the root is not the document) if (element === root) return } } }); require.register("component~delegate@0.2.3", function (exports, module) { /** * Module dependencies. */ var closest = require('component~closest@0.1.4') , event = require('component~event@0.1.4'); /** * Delegate event `type` to `selector` * and invoke `fn(e)`. A callback function * is returned which may be passed to `.unbind()`. * * @param {Element} el * @param {String} selector * @param {String} type * @param {Function} fn * @param {Boolean} capture * @return {Function} * @api public */ exports.bind = function(el, selector, type, fn, capture){ return event.bind(el, type, function(e){ var target = e.target || e.srcElement; e.delegateTarget = closest(target, selector, true, el); if (e.delegateTarget) fn.call(el, e); }, capture); }; /** * Unbind event `type`'s callback `fn`. * * @param {Element} el * @param {String} type * @param {Function} fn * @param {Boolean} capture * @api public */ exports.unbind = function(el, type, fn, capture){ event.unbind(el, type, fn, capture); }; }); require.register("component~events@1.0.9", function (exports, module) { /** * Module dependencies. */ var events = require('component~event@0.1.4'); var delegate = require('component~delegate@0.2.3'); /** * Expose `Events`. */ module.exports = Events; /** * Initialize an `Events` with the given * `el` object which events will be bound to, * and the `obj` which will receive method calls. * * @param {Object} el * @param {Object} obj * @api public */ function Events(el, obj) { if (!(this instanceof Events)) return new Events(el, obj); if (!el) throw new Error('element required'); if (!obj) throw new Error('object required'); this.el = el; this.obj = obj; this._events = {}; } /** * Subscription helper. */ Events.prototype.sub = function(event, method, cb){ this._events[event] = this._events[event] || {}; this._events[event][method] = cb; }; /** * Bind to `event` with optional `method` name. * When `method` is undefined it becomes `event` * with the "on" prefix. * * Examples: * * Direct event handling: * * events.bind('click') // implies "onclick" * events.bind('click', 'remove') * events.bind('click', 'sort', 'asc') * * Delegated event handling: * * events.bind('click li > a') * events.bind('click li > a', 'remove') * events.bind('click a.sort-ascending', 'sort', 'asc') * events.bind('click a.sort-descending', 'sort', 'desc') * * @param {String} event * @param {String|function} [method] * @return {Function} callback * @api public */ Events.prototype.bind = function(event, method){ var e = parse(event); var el = this.el; var obj = this.obj; var name = e.name; var method = method || 'on' + name; var args = [].slice.call(arguments, 2); // callback function cb(){ var a = [].slice.call(arguments).concat(args); obj[method].apply(obj, a); } // bind if (e.selector) { cb = delegate.bind(el, e.selector, name, cb); } else { events.bind(el, name, cb); } // subscription for unbinding this.sub(name, method, cb); return cb; }; /** * Unbind a single binding, all bindings for `event`, * or all bindings within the manager. * * Examples: * * Unbind direct handlers: * * events.unbind('click', 'remove') * events.unbind('click') * events.unbind() * * Unbind delegate handlers: * * events.unbind('click', 'remove') * events.unbind('click') * events.unbind() * * @param {String|Function} [event] * @param {String|Function} [method] * @api public */ Events.prototype.unbind = function(event, method){ if (0 == arguments.length) return this.unbindAll(); if (1 == arguments.length) return this.unbindAllOf(event); // no bindings for this event var bindings = this._events[event]; if (!bindings) return; // no bindings for this method var cb = bindings[method]; if (!cb) return; events.unbind(this.el, event, cb); }; /** * Unbind all events. * * @api private */ Events.prototype.unbindAll = function(){ for (var event in this._events) { this.unbindAllOf(event); } }; /** * Unbind all events for `event`. * * @param {String} event * @api private */ Events.prototype.unbindAllOf = function(event){ var bindings = this._events[event]; if (!bindings) return; for (var method in bindings) { this.unbind(event, method); } }; /** * Parse `event`. * * @param {String} event * @return {Object} * @api private */ function parse(event) { var parts = event.split(/ +/); return { name: parts.shift(), selector: parts.join(' ') } } }); require.register("switchery", function (exports, module) { /** * Switchery 0.8.1 * http://abpetkov.github.io/switchery/ * * Authored by Alexander Petkov * https://github.com/abpetkov * * Copyright 2013-2015, Alexander Petkov * License: The MIT License (MIT) * http://opensource.org/licenses/MIT * */ /** * External dependencies. */ var transitionize = require('abpetkov~transitionize@0.0.3') , fastclick = require('ftlabs~fastclick@v0.6.11') , classes = require('component~classes@1.2.1') , events = require('component~events@1.0.9'); /** * Expose `Switchery`. */ module.exports = Switchery; /** * Set Switchery default values. * * @api public */ var defaults = { color : '#64bd63' , secondaryColor : '#dfdfdf' , jackColor : '#fff' , jackSecondaryColor: null , className : 'switchery' , disabled : false , disabledOpacity : 0.5 , speed : '0.4s' , size : 'default' }; /** * Create Switchery object. * * @param {Object} element * @param {Object} options * @api public */ function Switchery(element, options) { if (!(this instanceof Switchery)) return new Switchery(element, options); this.element = element; this.options = options || {}; for (var i in defaults) { if (this.options[i] == null) { this.options[i] = defaults[i]; } } if (this.element != null && this.element.type == 'checkbox') this.init(); if (this.isDisabled() === true) this.disable(); } /** * Hide the target element. * * @api private */ Switchery.prototype.hide = function() { this.element.style.display = 'none'; }; /** * Show custom switch after the target element. * * @api private */ Switchery.prototype.show = function() { var switcher = this.create(); this.insertAfter(this.element, switcher); }; /** * Create custom switch. * * @returns {Object} this.switcher * @api private */ Switchery.prototype.create = function() { this.switcher = document.createElement('span'); this.jack = document.createElement('small'); this.switcher.appendChild(this.jack); this.switcher.className = this.options.className; this.events = events(this.switcher, this); return this.switcher; }; /** * Insert after element after another element. * * @param {Object} reference * @param {Object} target * @api private */ Switchery.prototype.insertAfter = function(reference, target) { reference.parentNode.insertBefore(target, reference.nextSibling); }; /** * Set switch jack proper position. * * @param {Boolean} clicked - we need this in order to uncheck the input when the switch is clicked * @api private */ Switchery.prototype.setPosition = function (clicked) { var checked = this.isChecked() , switcher = this.switcher , jack = this.jack; if (clicked && checked) checked = false; else if (clicked && !checked) checked = true; if (checked === true) { this.element.checked = true; if (window.getComputedStyle) jack.style.left = parseInt(window.getComputedStyle(switcher).width) - parseInt(window.getComputedStyle(jack).width) + 'px'; else jack.style.left = parseInt(switcher.currentStyle['width']) - parseInt(jack.currentStyle['width']) + 'px'; if (this.options.color) this.colorize(); this.setSpeed(); } else { jack.style.left = 0; this.element.checked = false; this.switcher.style.boxShadow = 'inset 0 0 0 0 ' + this.options.secondaryColor; this.switcher.style.borderColor = this.options.secondaryColor; this.switcher.style.backgroundColor = (this.options.secondaryColor !== defaults.secondaryColor) ? this.options.secondaryColor : '#fff'; this.jack.style.backgroundColor = (this.options.jackSecondaryColor !== this.options.jackColor) ? this.options.jackSecondaryColor : this.options.jackColor; this.setSpeed(); } }; /** * Set speed. * * @api private */ Switchery.prototype.setSpeed = function() { var switcherProp = {} , jackProp = { 'background-color': this.options.speed , 'left': this.options.speed.replace(/[a-z]/, '') / 2 + 's' }; if (this.isChecked()) { switcherProp = { 'border': this.options.speed , 'box-shadow': this.options.speed , 'background-color': this.options.speed.replace(/[a-z]/, '') * 3 + 's' }; } else { switcherProp = { 'border': this.options.speed , 'box-shadow': this.options.speed }; } transitionize(this.switcher, switcherProp); transitionize(this.jack, jackProp); }; /** * Set switch size. * * @api private */ Switchery.prototype.setSize = function() { var small = 'switchery-small', normal = 'switchery-default', large = 'switchery-large'; switch (this.options.size) { case 'small': classes(this.switcher).add(small); break; case 'large': classes(this.switcher).add(large); break; default: classes(this.switcher).add(normal); break; } }; /** * Set switch color. * * @api private */ Switchery.prototype.colorize = function() { var switcherHeight = this.switcher.offsetHeight / 2; this.switcher.style.backgroundColor = this.options.color; this.switcher.style.borderColor = this.options.color; this.switcher.style.boxShadow = 'inset 0 0 0 ' + switcherHeight + 'px ' + this.options.color; this.jack.style.backgroundColor = this.options.jackColor; }; /** * Handle the onchange event. * * @param {Boolean} state * @api private */ Switchery.prototype.handleOnchange = function(state) { if (document.dispatchEvent) { var event = document.createEvent('HTMLEvents'); event.initEvent('change', true, true); this.element.dispatchEvent(event); } else { this.element.fireEvent('onchange'); } }; /** * Handle the native input element state change. * A `change` event must be fired in order to detect the change. * * @api private */ Switchery.prototype.handleChange = function() { var self = this , el = this.element; if (el.addEventListener) { el.addEventListener('change', function() { self.setPosition(); }); } else { el.attachEvent('onchange', function() { self.setPosition(); }); } }; /** * Handle the switch click event. * * @api private */ Switchery.prototype.handleClick = function() { var switcher = this.switcher; fastclick(switcher); this.events.bind('click', 'bindClick'); }; /** * Attach all methods that need to happen on switcher click. * * @api private */ Switchery.prototype.bindClick = function() { var parent = this.element.parentNode.tagName.toLowerCase() , labelParent = (parent === 'label') ? false : true; this.setPosition(labelParent); this.handleOnchange(this.element.checked); }; /** * Mark an individual switch as already handled. * * @api private */ Switchery.prototype.markAsSwitched = function() { this.element.setAttribute('data-switchery', true); }; /** * Check if an individual switch is already handled. * * @api private */ Switchery.prototype.markedAsSwitched = function() { return this.element.getAttribute('data-switchery'); }; /** * Initialize Switchery. * * @api private */ Switchery.prototype.init = function() { this.hide(); this.show(); this.setSize(); this.setPosition(); this.markAsSwitched(); this.handleChange(); this.handleClick(); }; /** * See if input is checked. * * @returns {Boolean} * @api public */ Switchery.prototype.isChecked = function() { return this.element.checked; }; /** * See if switcher should be disabled. * * @returns {Boolean} * @api public */ Switchery.prototype.isDisabled = function() { return this.options.disabled || this.element.disabled || this.element.readOnly; }; /** * Destroy all event handlers attached to the switch. * * @api public */ Switchery.prototype.destroy = function() { this.events.unbind(); }; /** * Enable disabled switch element. * * @api public */ Switchery.prototype.enable = function() { if (this.options.disabled) this.options.disabled = false; if (this.element.disabled) this.element.disabled = false; if (this.element.readOnly) this.element.readOnly = false; this.switcher.style.opacity = 1; this.events.bind('click', 'bindClick'); }; /** * Disable switch element. * * @api public */ Switchery.prototype.disable = function() { if (!this.options.disabled) this.options.disabled = true; if (!this.element.disabled) this.element.disabled = true; if (!this.element.readOnly) this.element.readOnly = true; this.switcher.style.opacity = this.options.disabledOpacity; this.destroy(); }; }); if (typeof exports == "object") { module.exports = require("switchery"); } else if (typeof define == "function" && define.amd) { define("Switchery", [], function(){ return require("switchery"); }); } else { (this || window)["Switchery"] = require("switchery"); } })() ================================================ FILE: public/backend/vendors/js/forms/validation/jqBootstrapValidation.js ================================================ /*! jqBootstrapValidation - v1.3.7 - 2013-05-07 * http://reactiveraven.github.com/jqBootstrapValidation * Copyright (c) 2013 David Godfrey; Licensed MIT */ (function ($) { var createdElements = []; var defaults = { options: { prependExistingHelpBlock: false, sniffHtml: true, // sniff for 'required', 'maxlength', etc preventSubmit: true, // stop the form submit event from firing if validation fails submitError: false, // function called if there is an error when trying to submit submitSuccess: false, // function called just before a successful submit event is sent to the server semanticallyStrict: false, // set to true to tidy up generated HTML output removeSuccess : true, bindEvents: [], autoAdd: { helpBlocks: true }, filter: function () { // return $(this).is(":visible"); // only validate elements you can see return true; // validate everything } }, methods: { init: function (options) { // Get a clean copy of the defaults for extending var settings = $.extend(true, {}, defaults); // Set up the options based on the input settings.options = $.extend(true, settings.options, options); var $siblingElements = this; var uniqueForms = $.unique( $siblingElements.map(function () { return $(this).parents("form")[0]; }).toArray() ); $(uniqueForms).bind("submit.validationSubmit", function (e) { var $form = $(this); var warningsFound = 0; // Get all inputs var $allInputs = $form.find("input,textarea,select").not("[type=submit],[type=image]").filter(settings.options.filter); var $allControlGroups = $form.find(".form-group"); // Only trigger validation on the ones that actually _have_ validation var $inputsWithValidators = $allInputs.filter(function () { return $(this).triggerHandler("getValidatorCount.validation") > 0; }); $inputsWithValidators.trigger("submit.validation"); // But all of them are out-of-focus now, because we're submitting. $allInputs.trigger("validationLostFocus.validation"); // Okay, now check each controlgroup for errors (or warnings) $allControlGroups.each(function (i, el) { var $controlGroup = $(el); if ($controlGroup.hasClass("issue") || $controlGroup.hasClass("error")) { $controlGroup.removeClass("issue").addClass("error"); warningsFound++; } }); if (warningsFound) { // If we found any warnings, maybe we should prevent the submit // event, and trigger 'submitError' (if they're set up) if (settings.options.preventSubmit) { e.preventDefault(); e.stopImmediatePropagation(); } $form.addClass("error"); if ($.isFunction(settings.options.submitError)) { settings.options.submitError($form, e, $inputsWithValidators.jqBootstrapValidation("collectErrors", true)); } } else { // Woo! No errors! We can pass the submit event to submitSuccess // (if it has been set up) $form.removeClass("error"); if ($.isFunction(settings.options.submitSuccess)) { settings.options.submitSuccess($form, e); } } }); return this.each(function () { // Get references to everything we're interested in var $this = $(this), $controlGroup = $this.parents(".form-group").first(), $helpBlock = $controlGroup.find(".help-block").first(), $form = $this.parents("form").first(), validatorNames = []; // create message container if not exists if (!$helpBlock.length && settings.options.autoAdd && settings.options.autoAdd.helpBlocks) { $helpBlock = $('
          '); $controlGroup.find('.controls').append($helpBlock); createdElements.push($helpBlock[0]); } // ============================================================= // SNIFF HTML FOR VALIDATORS // ============================================================= // *snort sniff snuffle* if (settings.options.sniffHtml) { var message; // --------------------------------------------------------- // PATTERN // --------------------------------------------------------- if ($this.data("validationPatternPattern")) { $this.attr("pattern", $this.data("validationPatternPattern")); } if ($this.attr("pattern") !== undefined) { message = "Not in the expected format"; if ($this.data("validationPatternMessage")) { message = $this.data("validationPatternMessage"); } $this.data("validationPatternMessage", message); $this.data("validationPatternRegex", $this.attr("pattern")); } // --------------------------------------------------------- // MAX // --------------------------------------------------------- if ($this.attr("max") !== undefined || $this.attr("aria-valuemax") !== undefined) { var max = ($this.attr("max") !== undefined ? $this.attr("max") : $this.attr("aria-valuemax")); message = "Too high: Maximum of '" + max + "'"; if ($this.data("validationMaxMessage")) { message = $this.data("validationMaxMessage"); } $this.data("validationMaxMessage", message); $this.data("validationMaxMax", max); } // --------------------------------------------------------- // MIN // --------------------------------------------------------- if ($this.attr("min") !== undefined || $this.attr("aria-valuemin") !== undefined) { var min = ($this.attr("min") !== undefined ? $this.attr("min") : $this.attr("aria-valuemin")); message = "Too low: Minimum of '" + min + "'"; if ($this.data("validationMinMessage")) { message = $this.data("validationMinMessage"); } $this.data("validationMinMessage", message); $this.data("validationMinMin", min); } // --------------------------------------------------------- // MAXLENGTH // --------------------------------------------------------- if ($this.attr("maxlength") !== undefined) { message = "Too long: Maximum of '" + $this.attr("maxlength") + "' characters"; if ($this.data("validationMaxlengthMessage")) { message = $this.data("validationMaxlengthMessage"); } $this.data("validationMaxlengthMessage", message); $this.data("validationMaxlengthMaxlength", $this.attr("maxlength")); } // --------------------------------------------------------- // MINLENGTH // --------------------------------------------------------- if ($this.attr("minlength") !== undefined) { message = "Too short: Minimum of '" + $this.attr("minlength") + "' characters"; if ($this.data("validationMinlengthMessage")) { message = $this.data("validationMinlengthMessage"); } $this.data("validationMinlengthMessage", message); $this.data("validationMinlengthMinlength", $this.attr("minlength")); } // --------------------------------------------------------- // REQUIRED // --------------------------------------------------------- if ($this.attr("required") !== undefined || $this.attr("aria-required") !== undefined) { message = settings.builtInValidators.required.message; if ($this.data("validationRequiredMessage")) { message = $this.data("validationRequiredMessage"); } $this.data("validationRequiredMessage", message); } // --------------------------------------------------------- // NUMBER // --------------------------------------------------------- if ($this.attr("type") !== undefined && $this.attr("type").toLowerCase() === "number") { message = settings.validatorTypes.number.message; // TODO: fix this if ($this.data("validationNumberMessage")) { message = $this.data("validationNumberMessage"); } $this.data("validationNumberMessage", message); var step = settings.validatorTypes.number.step; // TODO: and this if ($this.data("validationNumberStep")) { step = $this.data("validationNumberStep"); } $this.data("validationNumberStep", step); var decimal = settings.validatorTypes.number.decimal; if ($this.data("validationNumberDecimal")) { decimal = $this.data("validationNumberDecimal"); } $this.data("validationNumberDecimal", decimal); } // --------------------------------------------------------- // EMAIL // --------------------------------------------------------- if ($this.attr("type") !== undefined && $this.attr("type").toLowerCase() === "email") { message = "Not a valid email address"; if ($this.data("validationEmailMessage")) { message = $this.data("validationEmailMessage"); } $this.data("validationEmailMessage", message); } // --------------------------------------------------------- // MINCHECKED // --------------------------------------------------------- if ($this.attr("minchecked") !== undefined) { message = "Not enough options checked; Minimum of '" + $this.attr("minchecked") + "' required"; if ($this.data("validationMincheckedMessage")) { message = $this.data("validationMincheckedMessage"); } $this.data("validationMincheckedMessage", message); $this.data("validationMincheckedMinchecked", $this.attr("minchecked")); } // --------------------------------------------------------- // MAXCHECKED // --------------------------------------------------------- if ($this.attr("maxchecked") !== undefined) { message = "Too many options checked; Maximum of '" + $this.attr("maxchecked") + "' required"; if ($this.data("validationMaxcheckedMessage")) { message = $this.data("validationMaxcheckedMessage"); } $this.data("validationMaxcheckedMessage", message); $this.data("validationMaxcheckedMaxchecked", $this.attr("maxchecked")); } } // ============================================================= // COLLECT VALIDATOR NAMES // ============================================================= // Get named validators if ($this.data("validation") !== undefined) { validatorNames = $this.data("validation").split(","); } // Get extra ones defined on the element's data attributes $.each($this.data(), function (i, el) { var parts = i.replace(/([A-Z])/g, ",$1").split(","); if (parts[0] === "validation" && parts[1]) { validatorNames.push(parts[1]); } }); // ============================================================= // NORMALISE VALIDATOR NAMES // ============================================================= var validatorNamesToInspect = validatorNames; var newValidatorNamesToInspect = []; var uppercaseEachValidatorName = function (i, el) { validatorNames[i] = formatValidatorName(el); }; var inspectValidators = function (i, el) { if ($this.data("validation" + el + "Shortcut") !== undefined) { // Are these custom validators? // Pull them out! $.each($this.data("validation" + el + "Shortcut").split(","), function (i2, el2) { newValidatorNamesToInspect.push(el2); }); } else if (settings.builtInValidators[el.toLowerCase()]) { // Is this a recognised built-in? // Pull it out! var validator = settings.builtInValidators[el.toLowerCase()]; if (validator.type.toLowerCase() === "shortcut") { $.each(validator.shortcut.split(","), function (i, el) { el = formatValidatorName(el); newValidatorNamesToInspect.push(el); validatorNames.push(el); }); } } }; do // repeatedly expand 'shortcut' validators into their real validators { // Uppercase only the first letter of each name $.each(validatorNames, uppercaseEachValidatorName); // Remove duplicate validator names validatorNames = $.unique(validatorNames); // Pull out the new validator names from each shortcut newValidatorNamesToInspect = []; $.each(validatorNamesToInspect, inspectValidators); validatorNamesToInspect = newValidatorNamesToInspect; } while (validatorNamesToInspect.length > 0); // ============================================================= // SET UP VALIDATOR ARRAYS // ============================================================= /* We're gonna generate something like * * { * "regex": [ * { -- a validator object here --}, * { -- a validator object here --} * ], * "required": [ * { -- a validator object here --}, * { -- a validator object here --} * ] * } * * with a few more entries. * * Because we only add a few validators to each field, most of the * keys will be empty arrays with no validator objects in them, and * thats fine. */ var validators = {}; $.each(validatorNames, function (i, el) { // Set up the 'override' message var message = $this.data("validation" + el + "Message"); var hasOverrideMessage = !!message; var foundValidator = false; if (!message) { message = "'" + el + "' validation failed "; } $.each( settings.validatorTypes, function (validatorType, validatorTemplate) { if (validators[validatorType] === undefined) { validators[validatorType] = []; } if (!foundValidator && $this.data("validation" + el + formatValidatorName(validatorTemplate.name)) !== undefined) { var initted = validatorTemplate.init($this, el); if (hasOverrideMessage) { initted.message = message; } validators[validatorType].push( $.extend( true, { name: formatValidatorName(validatorTemplate.name), message: message }, initted ) ); foundValidator = true; } } ); if (!foundValidator && settings.builtInValidators[el.toLowerCase()]) { var validator = $.extend(true, {}, settings.builtInValidators[el.toLowerCase()]); if (hasOverrideMessage) { validator.message = message; } var validatorType = validator.type.toLowerCase(); if (validatorType === "shortcut") { foundValidator = true; } else { $.each( settings.validatorTypes, function (validatorTemplateType, validatorTemplate) { if (validators[validatorTemplateType] === undefined) { validators[validatorTemplateType] = []; } if (!foundValidator && validatorType === validatorTemplateType.toLowerCase()) { $this.data( "validation" + el + formatValidatorName(validatorTemplate.name), validator[validatorTemplate.name.toLowerCase()] ); validators[validatorType].push( $.extend( validator, validatorTemplate.init($this, el) ) ); foundValidator = true; } } ); } } if (!foundValidator) { $.error("Cannot find validation info for '" + el + "'"); } }); // ============================================================= // STORE FALLBACK VALUES // ============================================================= $helpBlock.data( "original-contents", ( $helpBlock.data("original-contents") ? $helpBlock.data("original-contents") : $helpBlock.html() ) ); $helpBlock.data( "original-role", ( $helpBlock.data("original-role") ? $helpBlock.data("original-role") : $helpBlock.attr("role") ) ); $controlGroup.data( "original-classes", ( $controlGroup.data("original-clases") ? $controlGroup.data("original-classes") : $controlGroup.attr("class") ) ); $this.data( "original-aria-invalid", ( $this.data("original-aria-invalid") ? $this.data("original-aria-invalid") : $this.attr("aria-invalid") ) ); // ============================================================= // VALIDATION // ============================================================= $this.bind( "validation.validation", function (event, params) { var value = getValue($this); // Get a list of the errors to apply var errorsFound = []; $.each(validators, function (validatorType, validatorTypeArray) { if ( value || // has a truthy value value.length || // not an empty string ( // am including empty values ( params && params.includeEmpty ) || !!settings.validatorTypes[validatorType].includeEmpty ) || ( // validator is blocking submit !!settings.validatorTypes[validatorType].blockSubmit && params && !!params.submitting ) ) { $.each( validatorTypeArray, function (i, validator) { if (settings.validatorTypes[validatorType].validate($this, value, validator)) { errorsFound.push(validator.message); } } ); } }); return errorsFound; } ); $this.bind( "getValidators.validation", function () { return validators; } ); var numValidators = 0; $.each(validators, function (i, el) { numValidators += el.length; }); $this.bind("getValidatorCount.validation", function () { return numValidators; }); // ============================================================= // WATCH FOR CHANGES // ============================================================= $this.bind( "submit.validation", function () { return $this.triggerHandler("change.validation", {submitting: true}); } ); $this.bind( ( settings.options.bindEvents.length > 0 ? settings.options.bindEvents : [ "keyup", "focus", "blur", "click", "keydown", "keypress", "change" ] ).concat(["revalidate"]).join(".validation ") + ".validation", function (e, params) { var value = getValue($this); var errorsFound = []; if (params && !!params.submitting) { $controlGroup.data("jqbvIsSubmitting", true); } else if (e.type !== "revalidate") { $controlGroup.data("jqbvIsSubmitting", false); } var formIsSubmitting = !!$controlGroup.data("jqbvIsSubmitting"); $controlGroup.find("input,textarea,select").not('[type=submit]').each(function (i, el) { var oldCount = errorsFound.length; $.each($(el).triggerHandler("validation.validation", params) || [], function (j, message) { errorsFound.push(message); }); if (errorsFound.length > oldCount) { $(el).attr("aria-invalid", "true"); } else { var original = $this.data("original-aria-invalid"); $(el).attr("aria-invalid", (original !== undefined ? original : false)); } }); $form.find("input,select,textarea").not($this).not("[name=\"" + $this.attr("name") + "\"]").trigger("validationLostFocus.validation"); errorsFound = $.unique(errorsFound.sort()); // Were there any errors? if (errorsFound.length) { // Better flag it up as a warning. $controlGroup.removeClass("validate error issue").addClass(formIsSubmitting ? "error" : "issue"); // How many errors did we find? if (settings.options.semanticallyStrict && errorsFound.length === 1) { // Only one? Being strict? Just output it. $helpBlock.html(errorsFound[0] + ( settings.options.prependExistingHelpBlock ? $helpBlock.data("original-contents") : "" )); } else { // Multiple? Being sloppy? Glue them together into an UL. $helpBlock.html("
          • " + errorsFound.join("
          • ") + "
          " + ( settings.options.prependExistingHelpBlock ? $helpBlock.data("original-contents") : "" )); } } else { $controlGroup.removeClass("issue error validate"); if (value.length > 0) { $controlGroup.addClass("validate"); } $helpBlock.html($helpBlock.data("original-contents")); } if (e.type === "blur") { if( settings.options.removeSuccess ){ // $controlGroup.removeClass("validate"); } } } ); $this.bind("validationLostFocus.validation", function () { if( settings.options.removeSuccess ){ // $controlGroup.removeClass("validate"); } }); }); }, destroy: function () { return this.each( function () { var $this = $(this), $controlGroup = $this.parents(".form-group").first(), $helpBlock = $controlGroup.find(".help-block").first(), $form = $this.parents("form").first(); // remove our events $this.unbind('.validation'); // events are namespaced. $form.unbind(".validationSubmit"); // reset help text $helpBlock.html($helpBlock.data("original-contents")); // reset classes $controlGroup.attr("class", $controlGroup.data("original-classes")); // reset aria $this.attr("aria-invalid", $this.data("original-aria-invalid")); // reset role $helpBlock.attr("role", $this.data("original-role")); // remove all elements we created if ($.inArray($helpBlock[0], createdElements) > -1) { $helpBlock.remove(); } } ); }, collectErrors: function (includeEmpty) { var errorMessages = {}; this.each(function (i, el) { var $el = $(el); var name = $el.attr("name"); var errors = $el.triggerHandler("validation.validation", {includeEmpty: true}); errorMessages[name] = $.extend(true, errors, errorMessages[name]); }); $.each(errorMessages, function (i, el) { if (el.length === 0) { delete errorMessages[i]; } }); return errorMessages; }, hasErrors: function () { var errorMessages = []; this.find('input,select,textarea').add(this).each(function (i, el) { errorMessages = errorMessages.concat( $(el).triggerHandler("getValidators.validation") ? $(el).triggerHandler("validation.validation", {submitting: true}) : [] ); }); return (errorMessages.length > 0); }, override: function (newDefaults) { defaults = $.extend(true, defaults, newDefaults); } }, validatorTypes: { callback: { name: "callback", init: function ($this, name) { var result = { validatorName: name, callback: $this.data("validation" + name + "Callback"), lastValue: $this.val(), lastValid: true, lastFinished: true }; var message = "Not valid"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; return result; }, validate: function ($this, value, validator) { if (validator.lastValue === value && validator.lastFinished) { return !validator.lastValid; } if (validator.lastFinished === true) { validator.lastValue = value; validator.lastValid = true; validator.lastFinished = false; var rrjqbvValidator = validator; var rrjqbvThis = $this; executeFunctionByName( validator.callback, window, $this, value, function (data) { if (rrjqbvValidator.lastValue === data.value) { rrjqbvValidator.lastValid = data.valid; if (data.message) { rrjqbvValidator.message = data.message; } rrjqbvValidator.lastFinished = true; rrjqbvThis.data( "validation" + rrjqbvValidator.validatorName + "Message", rrjqbvValidator.message ); // Timeout is set to avoid problems with the events being considered 'already fired' setTimeout(function () { if (!$this.is(":focus") && $this.parents("form").first().data("jqbvIsSubmitting")) { rrjqbvThis.trigger("blur.validation"); } else { rrjqbvThis.trigger("revalidate.validation"); } }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst } } ); } return false; } }, ajax: { name: "ajax", init: function ($this, name) { return { validatorName: name, url: $this.data("validation" + name + "Ajax"), lastValue: $this.val(), lastValid: true, lastFinished: true }; }, validate: function ($this, value, validator) { if ("" + validator.lastValue === "" + value && validator.lastFinished === true) { return validator.lastValid === false; } if (validator.lastFinished === true) { validator.lastValue = value; validator.lastValid = true; validator.lastFinished = false; $.ajax({ url: validator.url, data: "value=" + encodeURIComponent(value) + "&field=" + $this.attr("name"), dataType: "json", success : function (data) { if ("" + validator.lastValue === "" + data.value) { validator.lastValid = !!(data.valid); if (data.message) { validator.message = data.message; } validator.lastFinished = true; $this.data("validation" + validator.validatorName + "Message", validator.message); // Timeout is set to avoid problems with the events being considered 'already fired' setTimeout(function () { $this.trigger("revalidate.validation"); }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst } }, failure: function () { validator.lastValid = true; validator.message = "ajax call failed"; validator.lastFinished = true; $this.data("validation" + validator.validatorName + "Message", validator.message); // Timeout is set to avoid problems with the events being considered 'already fired' setTimeout(function () { $this.trigger("revalidate.validation"); }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst } }); } return false; } }, regex: { name: "regex", init: function ($this, name) { var result = {}; var regexString = $this.data("validation" + name + "Regex"); result.regex = regexFromString(regexString); if (regexString === undefined) { $.error("Can't find regex for '" + name + "' validator on '" + $this.attr("name") + "'"); } var message = "Not in the expected format"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; result.originalName = name; return result; }, validate: function ($this, value, validator) { return (!validator.regex.test(value) && !validator.negative) || (validator.regex.test(value) && validator.negative); } }, email: { name: "email", init: function ($this, name) { var result = {}; result.regex = regexFromString('[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}'); var message = "Not a valid email address"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; result.originalName = name; return result; }, validate: function ($this, value, validator) { return (!validator.regex.test(value) && !validator.negative) || (validator.regex.test(value) && validator.negative); } }, required: { name: "required", init: function ($this, name) { var message = "This is required"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } return {message: message, includeEmpty: true}; }, validate: function ($this, value, validator) { return !!( (value.length === 0 && !validator.negative) || (value.length > 0 && validator.negative) ); }, blockSubmit: true }, match: { name: "match", init: function ($this, name) { var elementName = $this.data("validation" + name + "Match"); var $form = $this.parents("form").first(); var $element = $form.find("[name=\"" + elementName + "\"]").first(); $element.bind("validation.validation", function () { $this.trigger("revalidate.validation", {submitting: true}); }); var result = {}; result.element = $element; if ($element.length === 0) { $.error("Can't find field '" + elementName + "' to match '" + $this.attr("name") + "' against in '" + name + "' validator"); } var message = "Must match"; var $label = null; if (($label = $form.find("label[for=\"" + elementName + "\"]")).length) { message += " '" + $label.text() + "'"; } else if (($label = $element.parents(".form-group").first().find("label")).length) { message += " '" + $label.first().text() + "'"; } if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; return result; }, validate: function ($this, value, validator) { return (value !== validator.element.val() && !validator.negative) || (value === validator.element.val() && validator.negative); }, blockSubmit: true, includeEmpty: true }, max: { name: "max", init: function ($this, name) { var result = {}; result.max = $this.data("validation" + name + "Max"); result.message = "Too high: Maximum of '" + result.max + "'"; if ($this.data("validation" + name + "Message")) { result.message = $this.data("validation" + name + "Message"); } return result; }, validate: function ($this, value, validator) { return (parseFloat(value, 10) > parseFloat(validator.max, 10) && !validator.negative) || (parseFloat(value, 10) <= parseFloat(validator.max, 10) && validator.negative); } }, min: { name: "min", init: function ($this, name) { var result = {}; result.min = $this.data("validation" + name + "Min"); result.message = "Too low: Minimum of '" + result.min + "'"; if ($this.data("validation" + name + "Message")) { result.message = $this.data("validation" + name + "Message"); } return result; }, validate: function ($this, value, validator) { return (parseFloat(value) < parseFloat(validator.min) && !validator.negative) || (parseFloat(value) >= parseFloat(validator.min) && validator.negative); } }, maxlength: { name: "maxlength", init: function ($this, name) { var result = {}; result.maxlength = $this.data("validation" + name + "Maxlength"); result.message = "Too long: Maximum of '" + result.maxlength + "' characters"; if ($this.data("validation" + name + "Message")) { result.message = $this.data("validation" + name + "Message"); } return result; }, validate: function ($this, value, validator) { return ((value.length > validator.maxlength) && !validator.negative) || ((value.length <= validator.maxlength) && validator.negative); } }, minlength: { name: "minlength", init: function ($this, name) { var result = {}; result.minlength = $this.data("validation" + name + "Minlength"); result.message = "Too short: Minimum of '" + result.minlength + "' characters"; if ($this.data("validation" + name + "Message")) { result.message = $this.data("validation" + name + "Message"); } return result; }, validate: function ($this, value, validator) { return ((value.length < validator.minlength) && !validator.negative) || ((value.length >= validator.minlength) && validator.negative); } }, maxchecked: { name: "maxchecked", init: function ($this, name) { var result = {}; var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]"); elements.bind("change.validation click.validation", function () { $this.trigger("revalidate.validation", {includeEmpty: true}); }); result.elements = elements; result.maxchecked = $this.data("validation" + name + "Maxchecked"); var message = "Too many: Max '" + result.maxchecked + "' checked"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; return result; }, validate: function ($this, value, validator) { return (validator.elements.filter(":checked").length > validator.maxchecked && !validator.negative) || (validator.elements.filter(":checked").length <= validator.maxchecked && validator.negative); }, blockSubmit: true }, minchecked: { name: "minchecked", init: function ($this, name) { var result = {}; var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]"); elements.bind("change.validation click.validation", function () { $this.trigger("revalidate.validation", {includeEmpty: true}); }); result.elements = elements; result.minchecked = $this.data("validation" + name + "Minchecked"); var message = "Too few: Min '" + result.minchecked + "' checked"; if ($this.data("validation" + name + "Message")) { message = $this.data("validation" + name + "Message"); } result.message = message; return result; }, validate: function ($this, value, validator) { return (validator.elements.filter(":checked").length < validator.minchecked && !validator.negative) || (validator.elements.filter(":checked").length >= validator.minchecked && validator.negative); }, blockSubmit: true, includeEmpty: true }, number: { name: "number", init: function ($this, name) { var result = {}; result.step = 1; if ($this.attr("step")) { result.step = $this.attr("step"); } if ($this.data("validation" + name + "Step")) { result.step = $this.data("validation" + name + "Step"); } result.decimal = "."; if ($this.data("validation" + name + "Decimal")) { result.decimal = $this.data("validation" + name + "Decimal"); } result.thousands = ""; if ($this.data("validation" + name + "Thousands")) { result.thousands = $this.data("validation" + name + "Thousands"); } result.regex = regexFromString("([+-]?\\d+(\\" + result.decimal + "\\d+)?)?"); result.message = "Must be a number"; var dataMessage = $this.data("validation" + name + "Message"); if (dataMessage) { result.message = dataMessage; } return result; }, validate: function ($this, value, validator) { var globalValue = value.replace(validator.decimal, ".").replace(validator.thousands, ""); var multipliedValue = parseFloat(globalValue); var multipliedStep = parseFloat(validator.step); while (multipliedStep % 1 !== 0) { /* thanks to @jkey #57 */ multipliedStep = parseFloat(multipliedStep.toPrecision(12)) * 10; multipliedValue = parseFloat(multipliedValue.toPrecision(12)) * 10; } var regexResult = validator.regex.test(value); var stepResult = parseFloat(multipliedValue) % parseFloat(multipliedStep) === 0; var typeResult = !isNaN(parseFloat(globalValue)) && isFinite(globalValue); var result = !(regexResult && stepResult && typeResult); return result; }, message: "Must be a number" } }, builtInValidators: { email: { name: "Email", type: "email" }, passwordagain: { name: "Passwordagain", type: "match", match: "password", message: "Does not match the given password" }, positive: { name: "Positive", type: "shortcut", shortcut: "number,positivenumber" }, negative: { name: "Negative", type: "shortcut", shortcut: "number,negativenumber" }, integer: { name: "Integer", type: "regex", regex: "[+-]?\\d+", message: "No decimal places allowed" }, positivenumber: { name: "Positivenumber", type: "min", min: 0, message: "Must be a positive number" }, negativenumber: { name: "Negativenumber", type: "max", max: 0, message: "Must be a negative number" }, required: { name: "Required", type: "required", message: "This is required" }, checkone: { name: "Checkone", type: "minchecked", minchecked: 1, message: "Check at least one option" }, number: { name: "Number", type: "number", decimal: ".", step: "1" }, pattern: { name: "Pattern", type: "regex", message: "Not in expected format" } } }; var formatValidatorName = function (name) { return name .toLowerCase() .replace( /(^|\s)([a-z])/g, function (m, p1, p2) { return p1 + p2.toUpperCase(); } ) ; }; var getValue = function ($this) { // Extract the value we're talking about var value = null; var type = $this.attr("type"); if (type === "checkbox") { value = ($this.is(":checked") ? value : ""); var checkboxParent = $this.parents("form").first() || $this.parents(".form-group").first(); if (checkboxParent) { value = checkboxParent.find("input[name='" + $this.attr("name") + "']:checked").map(function (i, el) { return $(el).val(); }).toArray().join(","); } } else if (type === "radio") { value = ($('input[name="' + $this.attr("name") + '"]:checked').length > 0 ? $this.val() : ""); var radioParent = $this.parents("form").first() || $this.parents(".form-group").first(); if (radioParent) { value = radioParent.find("input[name='" + $this.attr("name") + "']:checked").map(function (i, el) { return $(el).val(); }).toArray().join(","); } } else if (type === "number") { if ($this[0].validity.valid) { value = $this.val(); } else { if ($this[0].validity.badInput || $this[0].validity.stepMismatch) { value = "NaN"; } else { value = ""; } } } else { value = $this.val(); } return value; }; function regexFromString(inputstring) { return new RegExp("^" + inputstring + "$"); } /** * Thanks to Jason Bunting / Alex Nazarov via StackOverflow.com * * http://stackoverflow.com/a/4351575 **/ function executeFunctionByName(functionName, context /*, args */) { var args = Array.prototype.slice.call(arguments, 2); var namespaces = functionName.split("."); var func = namespaces.pop(); for (var i = 0; i < namespaces.length; i++) { context = context[namespaces[i]]; } return context[func].apply(context, args); } $.fn.jqBootstrapValidation = function (method) { if (defaults.methods[method]) { return defaults.methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return defaults.methods.init.apply(this, arguments); } else { $.error('Method ' + method + ' does not exist on jQuery.jqBootstrapValidation'); return null; } }; $.jqBootstrapValidation = function (options) { $(":input").not("[type=image],[type=submit]").jqBootstrapValidation.apply(this, arguments); }; })(jQuery); ================================================ FILE: public/backend/vendors/js/media/plyr.js ================================================ typeof navigator === "object" && (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define('Plyr', factory) : (global = global || self, global.Plyr = factory()); }(this, function () { 'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } var defaults = { addCSS: true, // Add CSS to the element to improve usability (required here or in your CSS!) thumbWidth: 15, // The width of the thumb handle watch: true // Watch for new elements that match a string target }; // Element matches a selector function matches(element, selector) { function match() { return Array.from(document.querySelectorAll(selector)).includes(this); } var matches = match; return matches.call(element, selector); } // Trigger event function trigger(element, type) { if (!element || !type) { return; } // Create and dispatch the event var event = new Event(type); // Dispatch the event element.dispatchEvent(event); } // ========================================================================== // Type checking utils // ========================================================================== var getConstructor = function getConstructor(input) { return input !== null && typeof input !== 'undefined' ? input.constructor : null; }; var instanceOf = function instanceOf(input, constructor) { return Boolean(input && constructor && input instanceof constructor); }; var isNullOrUndefined = function isNullOrUndefined(input) { return input === null || typeof input === 'undefined'; }; var isObject = function isObject(input) { return getConstructor(input) === Object; }; var isNumber = function isNumber(input) { return getConstructor(input) === Number && !Number.isNaN(input); }; var isString = function isString(input) { return getConstructor(input) === String; }; var isBoolean = function isBoolean(input) { return getConstructor(input) === Boolean; }; var isFunction = function isFunction(input) { return getConstructor(input) === Function; }; var isArray = function isArray(input) { return Array.isArray(input); }; var isNodeList = function isNodeList(input) { return instanceOf(input, NodeList); }; var isElement = function isElement(input) { return instanceOf(input, Element); }; var isEvent = function isEvent(input) { return instanceOf(input, Event); }; var isEmpty = function isEmpty(input) { return isNullOrUndefined(input) || (isString(input) || isArray(input) || isNodeList(input)) && !input.length || isObject(input) && !Object.keys(input).length; }; var is = { nullOrUndefined: isNullOrUndefined, object: isObject, number: isNumber, string: isString, boolean: isBoolean, function: isFunction, array: isArray, nodeList: isNodeList, element: isElement, event: isEvent, empty: isEmpty }; // Get the number of decimal places function getDecimalPlaces(value) { var match = "".concat(value).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); if (!match) { return 0; } return Math.max(0, // Number of digits right of decimal point. (match[1] ? match[1].length : 0) - ( // Adjust for scientific notation. match[2] ? +match[2] : 0)); } // Round to the nearest step function round(number, step) { if (step < 1) { var places = getDecimalPlaces(step); return parseFloat(number.toFixed(places)); } return Math.round(number / step) * step; } var RangeTouch = /*#__PURE__*/ function () { /** * Setup a new instance * @param {String|Element} target * @param {Object} options */ function RangeTouch(target, options) { _classCallCheck(this, RangeTouch); if (is.element(target)) { // An Element is passed, use it directly this.element = target; } else if (is.string(target)) { // A CSS Selector is passed, fetch it from the DOM this.element = document.querySelector(target); } if (!is.element(this.element) || !is.empty(this.element.rangeTouch)) { return; } this.config = Object.assign({}, defaults, options); this.init(); } _createClass(RangeTouch, [{ key: "init", value: function init() { // Bail if not a touch enabled device if (!RangeTouch.enabled) { return; } // Add useful CSS if (this.config.addCSS) { // TODO: Restore original values on destroy this.element.style.userSelect = 'none'; this.element.style.webKitUserSelect = 'none'; this.element.style.touchAction = 'manipulation'; } this.listeners(true); this.element.rangeTouch = this; } }, { key: "destroy", value: function destroy() { // Bail if not a touch enabled device if (!RangeTouch.enabled) { return; } this.listeners(false); this.element.rangeTouch = null; } }, { key: "listeners", value: function listeners(toggle) { var _this = this; var method = toggle ? 'addEventListener' : 'removeEventListener'; // Listen for events ['touchstart', 'touchmove', 'touchend'].forEach(function (type) { _this.element[method](type, function (event) { return _this.set(event); }, false); }); } /** * Get the value based on touch position * @param {Event} event */ }, { key: "get", value: function get(event) { if (!RangeTouch.enabled || !is.event(event)) { return null; } var input = event.target; var touch = event.changedTouches[0]; var min = parseFloat(input.getAttribute('min')) || 0; var max = parseFloat(input.getAttribute('max')) || 100; var step = parseFloat(input.getAttribute('step')) || 1; var delta = max - min; // Calculate percentage var percent; var clientRect = input.getBoundingClientRect(); var thumbWidth = 100 / clientRect.width * (this.config.thumbWidth / 2) / 100; // Determine left percentage percent = 100 / clientRect.width * (touch.clientX - clientRect.left); // Don't allow outside bounds if (percent < 0) { percent = 0; } else if (percent > 100) { percent = 100; } // Factor in the thumb offset if (percent < 50) { percent -= (100 - percent * 2) * thumbWidth; } else if (percent > 50) { percent += (percent - 50) * 2 * thumbWidth; } // Find the closest step to the mouse position return min + round(delta * (percent / 100), step); } /** * Update range value based on position * @param {Event} event */ }, { key: "set", value: function set(event) { if (!RangeTouch.enabled || !is.event(event) || event.target.disabled) { return; } // Prevent text highlight on iOS event.preventDefault(); // Set value event.target.value = this.get(event); // Trigger event trigger(event.target, event.type === 'touchend' ? 'change' : 'input'); } }], [{ key: "setup", /** * Setup multiple instances * @param {String|Element|NodeList|Array} target * @param {Object} options */ value: function setup(target) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var targets = null; if (is.empty(target) || is.string(target)) { targets = Array.from(document.querySelectorAll(is.string(target) ? target : 'input[type="range"]')); } else if (is.element(target)) { targets = [target]; } else if (is.nodeList(target)) { targets = Array.from(target); } else if (is.array(target)) { targets = target.filter(is.element); } if (is.empty(targets)) { return null; } var config = Object.assign({}, defaults, options); if (is.string(target) && config.watch) { // Create an observer instance var observer = new MutationObserver(function (mutations) { Array.from(mutations).forEach(function (mutation) { Array.from(mutation.addedNodes).forEach(function (node) { if (!is.element(node) || !matches(node, target)) { return; } // eslint-disable-next-line no-unused-vars var range = new RangeTouch(node, config); }); }); }); // Pass in the target node, as well as the observer options observer.observe(document.body, { childList: true, subtree: true }); } return targets.map(function (t) { return new RangeTouch(t, options); }); } }, { key: "enabled", get: function get() { return 'ontouchstart' in document.documentElement; } }]); return RangeTouch; }(); // ========================================================================== // Type checking utils // ========================================================================== var getConstructor$1 = function getConstructor(input) { return input !== null && typeof input !== 'undefined' ? input.constructor : null; }; var instanceOf$1 = function instanceOf(input, constructor) { return Boolean(input && constructor && input instanceof constructor); }; var isNullOrUndefined$1 = function isNullOrUndefined(input) { return input === null || typeof input === 'undefined'; }; var isObject$1 = function isObject(input) { return getConstructor$1(input) === Object; }; var isNumber$1 = function isNumber(input) { return getConstructor$1(input) === Number && !Number.isNaN(input); }; var isString$1 = function isString(input) { return getConstructor$1(input) === String; }; var isBoolean$1 = function isBoolean(input) { return getConstructor$1(input) === Boolean; }; var isFunction$1 = function isFunction(input) { return getConstructor$1(input) === Function; }; var isArray$1 = function isArray(input) { return Array.isArray(input); }; var isWeakMap = function isWeakMap(input) { return instanceOf$1(input, WeakMap); }; var isNodeList$1 = function isNodeList(input) { return instanceOf$1(input, NodeList); }; var isElement$1 = function isElement(input) { return instanceOf$1(input, Element); }; var isTextNode = function isTextNode(input) { return getConstructor$1(input) === Text; }; var isEvent$1 = function isEvent(input) { return instanceOf$1(input, Event); }; var isKeyboardEvent = function isKeyboardEvent(input) { return instanceOf$1(input, KeyboardEvent); }; var isCue = function isCue(input) { return instanceOf$1(input, window.TextTrackCue) || instanceOf$1(input, window.VTTCue); }; var isTrack = function isTrack(input) { return instanceOf$1(input, TextTrack) || !isNullOrUndefined$1(input) && isString$1(input.kind); }; var isPromise = function isPromise(input) { return instanceOf$1(input, Promise); }; var isEmpty$1 = function isEmpty(input) { return isNullOrUndefined$1(input) || (isString$1(input) || isArray$1(input) || isNodeList$1(input)) && !input.length || isObject$1(input) && !Object.keys(input).length; }; var isUrl = function isUrl(input) { // Accept a URL object if (instanceOf$1(input, window.URL)) { return true; } // Must be string from here if (!isString$1(input)) { return false; } // Add the protocol if required var string = input; if (!input.startsWith('http://') || !input.startsWith('https://')) { string = "http://".concat(input); } try { return !isEmpty$1(new URL(string).hostname); } catch (e) { return false; } }; var is$1 = { nullOrUndefined: isNullOrUndefined$1, object: isObject$1, number: isNumber$1, string: isString$1, boolean: isBoolean$1, function: isFunction$1, array: isArray$1, weakMap: isWeakMap, nodeList: isNodeList$1, element: isElement$1, textNode: isTextNode, event: isEvent$1, keyboardEvent: isKeyboardEvent, cue: isCue, track: isTrack, promise: isPromise, url: isUrl, empty: isEmpty$1 }; // ========================================================================== // https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md // https://www.youtube.com/watch?v=NPM6172J22g var supportsPassiveListeners = function () { // Test via a getter in the options object to see if the passive property is accessed var supported = false; try { var options = Object.defineProperty({}, 'passive', { get: function get() { supported = true; return null; } }); window.addEventListener('test', null, options); window.removeEventListener('test', null, options); } catch (e) {// Do nothing } return supported; }(); // Toggle event listener function toggleListener(element, event, callback) { var _this = this; var toggle = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; var passive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; var capture = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false; // Bail if no element, event, or callback if (!element || !('addEventListener' in element) || is$1.empty(event) || !is$1.function(callback)) { return; } // Allow multiple events var events = event.split(' '); // Build options // Default to just the capture boolean for browsers with no passive listener support var options = capture; // If passive events listeners are supported if (supportsPassiveListeners) { options = { // Whether the listener can be passive (i.e. default never prevented) passive: passive, // Whether the listener is a capturing listener or not capture: capture }; } // If a single node is passed, bind the event listener events.forEach(function (type) { if (_this && _this.eventListeners && toggle) { // Cache event listener _this.eventListeners.push({ element: element, type: type, callback: callback, options: options }); } element[toggle ? 'addEventListener' : 'removeEventListener'](type, callback, options); }); } // Bind event handler function on(element) { var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var callback = arguments.length > 2 ? arguments[2] : undefined; var passive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var capture = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; toggleListener.call(this, element, events, callback, true, passive, capture); } // Unbind event handler function off(element) { var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var callback = arguments.length > 2 ? arguments[2] : undefined; var passive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var capture = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; toggleListener.call(this, element, events, callback, false, passive, capture); } // Bind once-only event handler function once(element) { var _this2 = this; var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var callback = arguments.length > 2 ? arguments[2] : undefined; var passive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var capture = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; var onceCallback = function onceCallback() { off(element, events, onceCallback, passive, capture); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } callback.apply(_this2, args); }; toggleListener.call(this, element, events, onceCallback, true, passive, capture); } // Trigger event function triggerEvent(element) { var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var bubbles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var detail = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; // Bail if no element if (!is$1.element(element) || is$1.empty(type)) { return; } // Create and dispatch the event var event = new CustomEvent(type, { bubbles: bubbles, detail: Object.assign({}, detail, { plyr: this }) }); // Dispatch the event element.dispatchEvent(event); } // Unbind all cached event listeners function unbindListeners() { if (this && this.eventListeners) { this.eventListeners.forEach(function (item) { var element = item.element, type = item.type, callback = item.callback, options = item.options; element.removeEventListener(type, callback, options); }); this.eventListeners = []; } } // Run method when / if player is ready function ready() { var _this3 = this; return new Promise(function (resolve) { return _this3.ready ? setTimeout(resolve, 0) : on.call(_this3, _this3.elements.container, 'ready', resolve); }).then(function () {}); } function cloneDeep(object) { return JSON.parse(JSON.stringify(object)); } // Get a nested value in an object function getDeep(object, path) { return path.split('.').reduce(function (obj, key) { return obj && obj[key]; }, object); } // Deep extend destination object with N more objects function extend() { var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { sources[_key - 1] = arguments[_key]; } if (!sources.length) { return target; } var source = sources.shift(); if (!is$1.object(source)) { return target; } Object.keys(source).forEach(function (key) { if (is$1.object(source[key])) { if (!Object.keys(target).includes(key)) { Object.assign(target, _defineProperty({}, key, {})); } extend(target[key], source[key]); } else { Object.assign(target, _defineProperty({}, key, source[key])); } }); return extend.apply(void 0, [target].concat(sources)); } function wrap(elements, wrapper) { // Convert `elements` to an array, if necessary. var targets = elements.length ? elements : [elements]; // Loops backwards to prevent having to clone the wrapper on the // first element (see `child` below). Array.from(targets).reverse().forEach(function (element, index) { var child = index > 0 ? wrapper.cloneNode(true) : wrapper; // Cache the current parent and sibling. var parent = element.parentNode; var sibling = element.nextSibling; // Wrap the element (is automatically removed from its current // parent). child.appendChild(element); // If the element had a sibling, insert the wrapper before // the sibling to maintain the HTML structure; otherwise, just // append it to the parent. if (sibling) { parent.insertBefore(child, sibling); } else { parent.appendChild(child); } }); } // Set attributes function setAttributes(element, attributes) { if (!is$1.element(element) || is$1.empty(attributes)) { return; } // Assume null and undefined attributes should be left out, // Setting them would otherwise convert them to "null" and "undefined" Object.entries(attributes).filter(function (_ref) { var _ref2 = _slicedToArray(_ref, 2), value = _ref2[1]; return !is$1.nullOrUndefined(value); }).forEach(function (_ref3) { var _ref4 = _slicedToArray(_ref3, 2), key = _ref4[0], value = _ref4[1]; return element.setAttribute(key, value); }); } // Create a DocumentFragment function createElement(type, attributes, text) { // Create a new var element = document.createElement(type); // Set all passed attributes if (is$1.object(attributes)) { setAttributes(element, attributes); } // Add text node if (is$1.string(text)) { element.innerText = text; } // Return built element return element; } // Inaert an element after another function insertAfter(element, target) { if (!is$1.element(element) || !is$1.element(target)) { return; } target.parentNode.insertBefore(element, target.nextSibling); } // Insert a DocumentFragment function insertElement(type, parent, attributes, text) { if (!is$1.element(parent)) { return; } parent.appendChild(createElement(type, attributes, text)); } // Remove element(s) function removeElement(element) { if (is$1.nodeList(element) || is$1.array(element)) { Array.from(element).forEach(removeElement); return; } if (!is$1.element(element) || !is$1.element(element.parentNode)) { return; } element.parentNode.removeChild(element); } // Remove all child elements function emptyElement(element) { if (!is$1.element(element)) { return; } var length = element.childNodes.length; while (length > 0) { element.removeChild(element.lastChild); length -= 1; } } // Replace element function replaceElement(newChild, oldChild) { if (!is$1.element(oldChild) || !is$1.element(oldChild.parentNode) || !is$1.element(newChild)) { return null; } oldChild.parentNode.replaceChild(newChild, oldChild); return newChild; } // Get an attribute object from a string selector function getAttributesFromSelector(sel, existingAttributes) { // For example: // '.test' to { class: 'test' } // '#test' to { id: 'test' } // '[data-test="test"]' to { 'data-test': 'test' } if (!is$1.string(sel) || is$1.empty(sel)) { return {}; } var attributes = {}; var existing = extend({}, existingAttributes); sel.split(',').forEach(function (s) { // Remove whitespace var selector = s.trim(); var className = selector.replace('.', ''); var stripped = selector.replace(/[[\]]/g, ''); // Get the parts and value var parts = stripped.split('='); var _parts = _slicedToArray(parts, 1), key = _parts[0]; var value = parts.length > 1 ? parts[1].replace(/["']/g, '') : ''; // Get the first character var start = selector.charAt(0); switch (start) { case '.': // Add to existing classname if (is$1.string(existing.class)) { attributes.class = "".concat(existing.class, " ").concat(className); } else { attributes.class = className; } break; case '#': // ID selector attributes.id = selector.replace('#', ''); break; case '[': // Attribute selector attributes[key] = value; break; default: break; } }); return extend(existing, attributes); } // Toggle hidden function toggleHidden(element, hidden) { if (!is$1.element(element)) { return; } var hide = hidden; if (!is$1.boolean(hide)) { hide = !element.hidden; } if (hide) { element.setAttribute('hidden', ''); } else { element.removeAttribute('hidden'); } } // Mirror Element.classList.toggle, with IE compatibility for "force" argument function toggleClass(element, className, force) { if (is$1.nodeList(element)) { return Array.from(element).map(function (e) { return toggleClass(e, className, force); }); } if (is$1.element(element)) { var method = 'toggle'; if (typeof force !== 'undefined') { method = force ? 'add' : 'remove'; } element.classList[method](className); return element.classList.contains(className); } return false; } // Has class name function hasClass(element, className) { return is$1.element(element) && element.classList.contains(className); } // Element matches selector function matches$1(element, selector) { function match() { return Array.from(document.querySelectorAll(selector)).includes(this); } var matches = match; return matches.call(element, selector); } // Find all elements function getElements(selector) { return this.elements.container.querySelectorAll(selector); } // Find a single element function getElement(selector) { return this.elements.container.querySelector(selector); } // Trap focus inside container function trapFocus() { var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var toggle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!is$1.element(element)) { return; } var focusable = getElements.call(this, 'button:not(:disabled), input:not(:disabled), [tabindex]'); var first = focusable[0]; var last = focusable[focusable.length - 1]; var trap = function trap(event) { // Bail if not tab key or not fullscreen if (event.key !== 'Tab' || event.keyCode !== 9) { return; } // Get the current focused element var focused = document.activeElement; if (focused === last && !event.shiftKey) { // Move focus to first element that can be tabbed if Shift isn't used first.focus(); event.preventDefault(); } else if (focused === first && event.shiftKey) { // Move focus to last element that can be tabbed if Shift is used last.focus(); event.preventDefault(); } }; toggleListener.call(this, this.elements.container, 'keydown', trap, toggle, false); } // Set focus and tab focus class function setFocus() { var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; var tabFocus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!is$1.element(element)) { return; } // Set regular focus element.focus({ preventScroll: true }); // If we want to mimic keyboard focus via tab if (tabFocus) { toggleClass(element, this.config.classNames.tabFocus); } } // ========================================================================== var transitionEndEvent = function () { var element = document.createElement('span'); var events = { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' }; var type = Object.keys(events).find(function (event) { return element.style[event] !== undefined; }); return is$1.string(type) ? events[type] : false; }(); // Force repaint of element function repaint(element) { setTimeout(function () { try { toggleHidden(element, true); element.offsetHeight; // eslint-disable-line toggleHidden(element, false); } catch (e) {// Do nothing } }, 0); } // ========================================================================== // Browser sniffing // Unfortunately, due to mixed support, UA sniffing is required // ========================================================================== var browser = { isIE: /* @cc_on!@ */ !!document.documentMode, isEdge: window.navigator.userAgent.includes('Edge'), isWebkit: 'WebkitAppearance' in document.documentElement.style && !/Edge/.test(navigator.userAgent), isIPhone: /(iPhone|iPod)/gi.test(navigator.platform), isIos: /(iPad|iPhone|iPod)/gi.test(navigator.platform) }; var defaultCodecs = { 'audio/ogg': 'vorbis', 'audio/wav': '1', 'video/webm': 'vp8, vorbis', 'video/mp4': 'avc1.42E01E, mp4a.40.2', 'video/ogg': 'theora' }; // Check for feature support var support = { // Basic support audio: 'canPlayType' in document.createElement('audio'), video: 'canPlayType' in document.createElement('video'), // Check for support // Basic functionality vs full UI check: function check(type, provider, playsinline) { var canPlayInline = browser.isIPhone && playsinline && support.playsinline; var api = support[type] || provider !== 'html5'; var ui = api && support.rangeInput && (type !== 'video' || !browser.isIPhone || canPlayInline); return { api: api, ui: ui }; }, // Picture-in-picture support // Safari & Chrome only currently pip: function () { if (browser.isIPhone) { return false; } // Safari // https://developer.apple.com/documentation/webkitjs/adding_picture_in_picture_to_your_safari_media_controls if (is$1.function(createElement('video').webkitSetPresentationMode)) { return true; } // Chrome // https://developers.google.com/web/updates/2018/10/watch-video-using-picture-in-picture if (document.pictureInPictureEnabled && !createElement('video').disablePictureInPicture) { return true; } return false; }(), // Airplay support // Safari only currently airplay: is$1.function(window.WebKitPlaybackTargetAvailabilityEvent), // Inline playback support // https://webkit.org/blog/6784/new-video-policies-for-ios/ playsinline: 'playsInline' in document.createElement('video'), // Check for mime type support against a player instance // Credits: http://diveintohtml5.info/everything.html // Related: http://www.leanbackplayer.com/test/h5mt.html mime: function mime(input) { if (is$1.empty(input)) { return false; } var _input$split = input.split('/'), _input$split2 = _slicedToArray(_input$split, 1), mediaType = _input$split2[0]; var type = input; // Verify we're using HTML5 and there's no media type mismatch if (!this.isHTML5 || mediaType !== this.type) { return false; } // Add codec if required if (Object.keys(defaultCodecs).includes(type)) { type += "; codecs=\"".concat(defaultCodecs[input], "\""); } try { return Boolean(type && this.media.canPlayType(type).replace(/no/, '')); } catch (e) { return false; } }, // Check for textTracks support textTracks: 'textTracks' in document.createElement('video'), // Sliders rangeInput: function () { var range = document.createElement('input'); range.type = 'range'; return range.type === 'range'; }(), // Touch // NOTE: Remember a device can be mouse + touch enabled so we check on first touch event touch: 'ontouchstart' in document.documentElement, // Detect transitions support transitions: transitionEndEvent !== false, // Reduced motion iOS & MacOS setting // https://webkit.org/blog/7551/responsive-design-for-motion/ reducedMotion: 'matchMedia' in window && window.matchMedia('(prefers-reduced-motion)').matches }; function validateRatio(input) { if (!is$1.array(input) && (!is$1.string(input) || !input.includes(':'))) { return false; } var ratio = is$1.array(input) ? input : input.split(':'); return ratio.map(Number).every(is$1.number); } function reduceAspectRatio(ratio) { if (!is$1.array(ratio) || !ratio.every(is$1.number)) { return null; } var _ratio = _slicedToArray(ratio, 2), width = _ratio[0], height = _ratio[1]; var getDivider = function getDivider(w, h) { return h === 0 ? w : getDivider(h, w % h); }; var divider = getDivider(width, height); return [width / divider, height / divider]; } function getAspectRatio(input) { var parse = function parse(ratio) { if (!validateRatio(ratio)) { return null; } return ratio.split(':').map(Number); }; // Provided ratio var ratio = parse(input); // Get from config if (ratio === null) { ratio = parse(this.config.ratio); } // Get from embed if (ratio === null && !is$1.empty(this.embed) && is$1.array(this.embed.ratio)) { ratio = this.embed.ratio; } // Get from HTML5 video if (ratio === null && this.isHTML5) { var _this$media = this.media, videoWidth = _this$media.videoWidth, videoHeight = _this$media.videoHeight; ratio = reduceAspectRatio([videoWidth, videoHeight]); } return ratio; } // Set aspect ratio for responsive container function setAspectRatio(input) { if (!this.isVideo) { return {}; } var ratio = getAspectRatio.call(this, input); var _ref = is$1.array(ratio) ? ratio : [0, 0], _ref2 = _slicedToArray(_ref, 2), w = _ref2[0], h = _ref2[1]; var padding = 100 / w * h; this.elements.wrapper.style.paddingBottom = "".concat(padding, "%"); // For Vimeo we have an extra
          to hide the standard controls and UI if (this.isVimeo && this.supported.ui) { var height = 240; var offset = (height - padding) / (height / 50); this.media.style.transform = "translateY(-".concat(offset, "%)"); } else if (this.isHTML5) { this.elements.wrapper.classList.toggle(this.config.classNames.videoFixedRatio, ratio !== null); } return { padding: padding, ratio: ratio }; } // ========================================================================== var html5 = { getSources: function getSources() { var _this = this; if (!this.isHTML5) { return []; } var sources = Array.from(this.media.querySelectorAll('source')); // Filter out unsupported sources (if type is specified) return sources.filter(function (source) { var type = source.getAttribute('type'); if (is$1.empty(type)) { return true; } return support.mime.call(_this, type); }); }, // Get quality levels getQualityOptions: function getQualityOptions() { // Get sizes from elements return html5.getSources.call(this).map(function (source) { return Number(source.getAttribute('size')); }).filter(Boolean); }, extend: function extend() { if (!this.isHTML5) { return; } var player = this; // Set aspect ratio if set setAspectRatio.call(player); // Quality Object.defineProperty(player.media, 'quality', { get: function get() { // Get sources var sources = html5.getSources.call(player); var source = sources.find(function (source) { return source.getAttribute('src') === player.source; }); // Return size, if match is found return source && Number(source.getAttribute('size')); }, set: function set(input) { // Get sources var sources = html5.getSources.call(player); // Get first match for requested size var source = sources.find(function (source) { return Number(source.getAttribute('size')) === input; }); // No matching source found if (!source) { return; } // Get current state var _player$media = player.media, currentTime = _player$media.currentTime, paused = _player$media.paused, preload = _player$media.preload, readyState = _player$media.readyState; // Set new source player.media.src = source.getAttribute('src'); // Prevent loading if preload="none" and the current source isn't loaded (#1044) if (preload !== 'none' || readyState) { // Restore time player.once('loadedmetadata', function () { player.currentTime = currentTime; // Resume playing if (!paused) { player.play(); } }); // Load new source player.media.load(); } // Trigger change event triggerEvent.call(player, player.media, 'qualitychange', false, { quality: input }); } }); }, // Cancel current network requests // See https://github.com/sampotts/plyr/issues/174 cancelRequests: function cancelRequests() { if (!this.isHTML5) { return; } // Remove child sources removeElement(html5.getSources.call(this)); // Set blank video src attribute // This is to prevent a MEDIA_ERR_SRC_NOT_SUPPORTED error // Info: http://stackoverflow.com/questions/32231579/how-to-properly-dispose-of-an-html5-video-and-close-socket-or-connection this.media.setAttribute('src', this.config.blankVideo); // Load the new empty source // This will cancel existing requests // See https://github.com/sampotts/plyr/issues/174 this.media.load(); // Debugging this.debug.log('Cancelled network requests'); } }; // ========================================================================== function dedupe(array) { if (!is$1.array(array)) { return array; } return array.filter(function (item, index) { return array.indexOf(item) === index; }); } // Get the closest value in an array function closest(array, value) { if (!is$1.array(array) || !array.length) { return null; } return array.reduce(function (prev, curr) { return Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev; }); } // ========================================================================== function generateId(prefix) { return "".concat(prefix, "-").concat(Math.floor(Math.random() * 10000)); } // Format string function format(input) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } if (is$1.empty(input)) { return input; } return input.toString().replace(/{(\d+)}/g, function (match, i) { return args[i].toString(); }); } // Get percentage function getPercentage(current, max) { if (current === 0 || max === 0 || Number.isNaN(current) || Number.isNaN(max)) { return 0; } return (current / max * 100).toFixed(2); } // Replace all occurances of a string in a string function replaceAll() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var find = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var replace = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; return input.replace(new RegExp(find.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1'), 'g'), replace.toString()); } // Convert to title case function toTitleCase() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; return input.toString().replace(/\w\S*/g, function (text) { return text.charAt(0).toUpperCase() + text.substr(1).toLowerCase(); }); } // Convert string to pascalCase function toPascalCase() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var string = input.toString(); // Convert kebab case string = replaceAll(string, '-', ' '); // Convert snake case string = replaceAll(string, '_', ' '); // Convert to title case string = toTitleCase(string); // Convert to pascal case return replaceAll(string, ' ', ''); } // Convert string to pascalCase function toCamelCase() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var string = input.toString(); // Convert to pascal case string = toPascalCase(string); // Convert first character to lowercase return string.charAt(0).toLowerCase() + string.slice(1); } // Remove HTML from a string function stripHTML(source) { var fragment = document.createDocumentFragment(); var element = document.createElement('div'); fragment.appendChild(element); element.innerHTML = source; return fragment.firstChild.innerText; } // Like outerHTML, but also works for DocumentFragment function getHTML(element) { var wrapper = document.createElement('div'); wrapper.appendChild(element); return wrapper.innerHTML; } var resources = { pip: 'PIP', airplay: 'AirPlay', html5: 'HTML5', vimeo: 'Vimeo', youtube: 'YouTube' }; var i18n = { get: function get() { var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (is$1.empty(key) || is$1.empty(config)) { return ''; } var string = getDeep(config.i18n, key); if (is$1.empty(string)) { if (Object.keys(resources).includes(key)) { return resources[key]; } return ''; } var replace = { '{seektime}': config.seekTime, '{title}': config.title }; Object.entries(replace).forEach(function (_ref) { var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1]; string = replaceAll(string, key, value); }); return string; } }; var Storage = /*#__PURE__*/ function () { function Storage(player) { _classCallCheck(this, Storage); this.enabled = player.config.storage.enabled; this.key = player.config.storage.key; } // Check for actual support (see if we can use it) _createClass(Storage, [{ key: "get", value: function get(key) { if (!Storage.supported || !this.enabled) { return null; } var store = window.localStorage.getItem(this.key); if (is$1.empty(store)) { return null; } var json = JSON.parse(store); return is$1.string(key) && key.length ? json[key] : json; } }, { key: "set", value: function set(object) { // Bail if we don't have localStorage support or it's disabled if (!Storage.supported || !this.enabled) { return; } // Can only store objectst if (!is$1.object(object)) { return; } // Get current storage var storage = this.get(); // Default to empty object if (is$1.empty(storage)) { storage = {}; } // Update the working copy of the values extend(storage, object); // Update storage window.localStorage.setItem(this.key, JSON.stringify(storage)); } }], [{ key: "supported", get: function get() { try { if (!('localStorage' in window)) { return false; } var test = '___test'; // Try to use it (it might be disabled, e.g. user is in private mode) // see: https://github.com/sampotts/plyr/issues/131 window.localStorage.setItem(test, test); window.localStorage.removeItem(test); return true; } catch (e) { return false; } } }]); return Storage; }(); // ========================================================================== // Fetch wrapper // Using XHR to avoid issues with older browsers // ========================================================================== function fetch(url) { var responseType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text'; return new Promise(function (resolve, reject) { try { var request = new XMLHttpRequest(); // Check for CORS support if (!('withCredentials' in request)) { return; } request.addEventListener('load', function () { if (responseType === 'text') { try { resolve(JSON.parse(request.responseText)); } catch (e) { resolve(request.responseText); } } else { resolve(request.response); } }); request.addEventListener('error', function () { throw new Error(request.status); }); request.open('GET', url, true); // Set the required response type request.responseType = responseType; request.send(); } catch (e) { reject(e); } }); } // ========================================================================== function loadSprite(url, id) { if (!is$1.string(url)) { return; } var prefix = 'cache'; var hasId = is$1.string(id); var isCached = false; var exists = function exists() { return document.getElementById(id) !== null; }; var update = function update(container, data) { container.innerHTML = data; // Check again incase of race condition if (hasId && exists()) { return; } // Inject the SVG to the body document.body.insertAdjacentElement('afterbegin', container); }; // Only load once if ID set if (!hasId || !exists()) { var useStorage = Storage.supported; // Create container var container = document.createElement('div'); container.setAttribute('hidden', ''); if (hasId) { container.setAttribute('id', id); } // Check in cache if (useStorage) { var cached = window.localStorage.getItem("".concat(prefix, "-").concat(id)); isCached = cached !== null; if (isCached) { var data = JSON.parse(cached); update(container, data.content); } } // Get the sprite fetch(url).then(function (result) { if (is$1.empty(result)) { return; } if (useStorage) { window.localStorage.setItem("".concat(prefix, "-").concat(id), JSON.stringify({ content: result })); } update(container, result); }).catch(function () {}); } } // ========================================================================== var getHours = function getHours(value) { return Math.trunc(value / 60 / 60 % 60, 10); }; var getMinutes = function getMinutes(value) { return Math.trunc(value / 60 % 60, 10); }; var getSeconds = function getSeconds(value) { return Math.trunc(value % 60, 10); }; // Format time to UI friendly string function formatTime() { var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var displayHours = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var inverted = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; // Bail if the value isn't a number if (!is$1.number(time)) { return formatTime(null, displayHours, inverted); } // Format time component to add leading zero var format = function format(value) { return "0".concat(value).slice(-2); }; // Breakdown to hours, mins, secs var hours = getHours(time); var mins = getMinutes(time); var secs = getSeconds(time); // Do we need to display hours? if (displayHours || hours > 0) { hours = "".concat(hours, ":"); } else { hours = ''; } // Render return "".concat(inverted && time > 0 ? '-' : '').concat(hours).concat(format(mins), ":").concat(format(secs)); } var controls = { // Get icon URL getIconUrl: function getIconUrl() { var url = new URL(this.config.iconUrl, window.location); var cors = url.host !== window.location.host || browser.isIE && !window.svg4everybody; return { url: this.config.iconUrl, cors: cors }; }, // Find the UI controls findElements: function findElements() { try { this.elements.controls = getElement.call(this, this.config.selectors.controls.wrapper); // Buttons this.elements.buttons = { play: getElements.call(this, this.config.selectors.buttons.play), pause: getElement.call(this, this.config.selectors.buttons.pause), restart: getElement.call(this, this.config.selectors.buttons.restart), rewind: getElement.call(this, this.config.selectors.buttons.rewind), fastForward: getElement.call(this, this.config.selectors.buttons.fastForward), mute: getElement.call(this, this.config.selectors.buttons.mute), pip: getElement.call(this, this.config.selectors.buttons.pip), airplay: getElement.call(this, this.config.selectors.buttons.airplay), settings: getElement.call(this, this.config.selectors.buttons.settings), captions: getElement.call(this, this.config.selectors.buttons.captions), fullscreen: getElement.call(this, this.config.selectors.buttons.fullscreen) }; // Progress this.elements.progress = getElement.call(this, this.config.selectors.progress); // Inputs this.elements.inputs = { seek: getElement.call(this, this.config.selectors.inputs.seek), volume: getElement.call(this, this.config.selectors.inputs.volume) }; // Display this.elements.display = { buffer: getElement.call(this, this.config.selectors.display.buffer), currentTime: getElement.call(this, this.config.selectors.display.currentTime), duration: getElement.call(this, this.config.selectors.display.duration) }; // Seek tooltip if (is$1.element(this.elements.progress)) { this.elements.display.seekTooltip = this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip)); } return true; } catch (error) { // Log it this.debug.warn('It looks like there is a problem with your custom controls HTML', error); // Restore native video controls this.toggleNativeControls(true); return false; } }, // Create icon createIcon: function createIcon(type, attributes) { var namespace = 'http://www.w3.org/2000/svg'; var iconUrl = controls.getIconUrl.call(this); var iconPath = "".concat(!iconUrl.cors ? iconUrl.url : '', "#").concat(this.config.iconPrefix); // Create var icon = document.createElementNS(namespace, 'svg'); setAttributes(icon, extend(attributes, { role: 'presentation', focusable: 'false' })); // Create the to reference sprite var use = document.createElementNS(namespace, 'use'); var path = "".concat(iconPath, "-").concat(type); // Set `href` attributes // https://github.com/sampotts/plyr/issues/460 // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href if ('href' in use) { use.setAttributeNS('http://www.w3.org/1999/xlink', 'href', path); } // Always set the older attribute even though it's "deprecated" (it'll be around for ages) use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', path); // Add to icon.appendChild(use); return icon; }, // Create hidden text label createLabel: function createLabel(key) { var attr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var text = i18n.get(key, this.config); var attributes = Object.assign({}, attr, { class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' ') }); return createElement('span', attributes, text); }, // Create a badge createBadge: function createBadge(text) { if (is$1.empty(text)) { return null; } var badge = createElement('span', { class: this.config.classNames.menu.value }); badge.appendChild(createElement('span', { class: this.config.classNames.menu.badge }, text)); return badge; }, // Create a
          if needed if (is$1.empty(source)) { source = player.media.getAttribute(player.config.attributes.embed.id); } var id = parseId(source); // Build an iframe var iframe = createElement('iframe'); var src = format(player.config.urls.vimeo.iframe, id, params); iframe.setAttribute('src', src); iframe.setAttribute('allowfullscreen', ''); iframe.setAttribute('allowtransparency', ''); iframe.setAttribute('allow', 'autoplay'); // Get poster, if already set var poster = player.poster; // Inject the package var wrapper = createElement('div', { poster: poster, class: player.config.classNames.embedContainer }); wrapper.appendChild(iframe); player.media = replaceElement(wrapper, player.media); // Get poster image fetch(format(player.config.urls.vimeo.api, id), 'json').then(function (response) { if (is$1.empty(response)) { return; } // Get the URL for thumbnail var url = new URL(response[0].thumbnail_large); // Get original image url.pathname = "".concat(url.pathname.split('_')[0], ".jpg"); // Set and show poster ui.setPoster.call(player, url.href).catch(function () {}); }); // Setup instance // https://github.com/vimeo/player.js player.embed = new window.Vimeo.Player(iframe, { autopause: player.config.autopause, muted: player.muted }); player.media.paused = true; player.media.currentTime = 0; // Disable native text track rendering if (player.supported.ui) { player.embed.disableTextTrack(); } // Create a faux HTML5 API using the Vimeo API player.media.play = function () { assurePlaybackState.call(player, true); return player.embed.play(); }; player.media.pause = function () { assurePlaybackState.call(player, false); return player.embed.pause(); }; player.media.stop = function () { player.pause(); player.currentTime = 0; }; // Seeking var currentTime = player.media.currentTime; Object.defineProperty(player.media, 'currentTime', { get: function get() { return currentTime; }, set: function set(time) { // Vimeo will automatically play on seek if the video hasn't been played before // Get current paused state and volume etc var embed = player.embed, media = player.media, paused = player.paused, volume = player.volume; var restorePause = paused && !embed.hasPlayed; // Set seeking state and trigger event media.seeking = true; triggerEvent.call(player, media, 'seeking'); // If paused, mute until seek is complete Promise.resolve(restorePause && embed.setVolume(0)) // Seek .then(function () { return embed.setCurrentTime(time); }) // Restore paused .then(function () { return restorePause && embed.pause(); }) // Restore volume .then(function () { return restorePause && embed.setVolume(volume); }).catch(function () {// Do nothing }); } }); // Playback speed var speed = player.config.speed.selected; Object.defineProperty(player.media, 'playbackRate', { get: function get() { return speed; }, set: function set(input) { player.embed.setPlaybackRate(input).then(function () { speed = input; triggerEvent.call(player, player.media, 'ratechange'); }).catch(function (error) { // Hide menu item (and menu if empty) if (error.name === 'Error') { controls.setSpeedMenu.call(player, []); } }); } }); // Volume var volume = player.config.volume; Object.defineProperty(player.media, 'volume', { get: function get() { return volume; }, set: function set(input) { player.embed.setVolume(input).then(function () { volume = input; triggerEvent.call(player, player.media, 'volumechange'); }); } }); // Muted var muted = player.config.muted; Object.defineProperty(player.media, 'muted', { get: function get() { return muted; }, set: function set(input) { var toggle = is$1.boolean(input) ? input : false; player.embed.setVolume(toggle ? 0 : player.config.volume).then(function () { muted = toggle; triggerEvent.call(player, player.media, 'volumechange'); }); } }); // Loop var loop = player.config.loop; Object.defineProperty(player.media, 'loop', { get: function get() { return loop; }, set: function set(input) { var toggle = is$1.boolean(input) ? input : player.config.loop.active; player.embed.setLoop(toggle).then(function () { loop = toggle; }); } }); // Source var currentSrc; player.embed.getVideoUrl().then(function (value) { currentSrc = value; controls.setDownloadUrl.call(player); }).catch(function (error) { _this2.debug.warn(error); }); Object.defineProperty(player.media, 'currentSrc', { get: function get() { return currentSrc; } }); // Ended Object.defineProperty(player.media, 'ended', { get: function get() { return player.currentTime === player.duration; } }); // Set aspect ratio based on video size Promise.all([player.embed.getVideoWidth(), player.embed.getVideoHeight()]).then(function (dimensions) { var _dimensions = _slicedToArray(dimensions, 2), width = _dimensions[0], height = _dimensions[1]; player.embed.ratio = [width, height]; setAspectRatio.call(_this2); }); // Set autopause player.embed.setAutopause(player.config.autopause).then(function (state) { player.config.autopause = state; }); // Get title player.embed.getVideoTitle().then(function (title) { player.config.title = title; ui.setTitle.call(_this2); }); // Get current time player.embed.getCurrentTime().then(function (value) { currentTime = value; triggerEvent.call(player, player.media, 'timeupdate'); }); // Get duration player.embed.getDuration().then(function (value) { player.media.duration = value; triggerEvent.call(player, player.media, 'durationchange'); }); // Get captions player.embed.getTextTracks().then(function (tracks) { player.media.textTracks = tracks; captions.setup.call(player); }); player.embed.on('cuechange', function (_ref) { var _ref$cues = _ref.cues, cues = _ref$cues === void 0 ? [] : _ref$cues; var strippedCues = cues.map(function (cue) { return stripHTML(cue.text); }); captions.updateCues.call(player, strippedCues); }); player.embed.on('loaded', function () { // Assure state and events are updated on autoplay player.embed.getPaused().then(function (paused) { assurePlaybackState.call(player, !paused); if (!paused) { triggerEvent.call(player, player.media, 'playing'); } }); if (is$1.element(player.embed.element) && player.supported.ui) { var frame = player.embed.element; // Fix keyboard focus issues // https://github.com/sampotts/plyr/issues/317 frame.setAttribute('tabindex', -1); } }); player.embed.on('play', function () { assurePlaybackState.call(player, true); triggerEvent.call(player, player.media, 'playing'); }); player.embed.on('pause', function () { assurePlaybackState.call(player, false); }); player.embed.on('timeupdate', function (data) { player.media.seeking = false; currentTime = data.seconds; triggerEvent.call(player, player.media, 'timeupdate'); }); player.embed.on('progress', function (data) { player.media.buffered = data.percent; triggerEvent.call(player, player.media, 'progress'); // Check all loaded if (parseInt(data.percent, 10) === 1) { triggerEvent.call(player, player.media, 'canplaythrough'); } // Get duration as if we do it before load, it gives an incorrect value // https://github.com/sampotts/plyr/issues/891 player.embed.getDuration().then(function (value) { if (value !== player.media.duration) { player.media.duration = value; triggerEvent.call(player, player.media, 'durationchange'); } }); }); player.embed.on('seeked', function () { player.media.seeking = false; triggerEvent.call(player, player.media, 'seeked'); }); player.embed.on('ended', function () { player.media.paused = true; triggerEvent.call(player, player.media, 'ended'); }); player.embed.on('error', function (detail) { player.media.error = detail; triggerEvent.call(player, player.media, 'error'); }); // Rebuild UI setTimeout(function () { return ui.build.call(player); }, 0); } }; // ========================================================================== function parseId$1(url) { if (is$1.empty(url)) { return null; } var regex = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/; return url.match(regex) ? RegExp.$2 : url; } // Set playback state and trigger change (only on actual change) function assurePlaybackState$1(play) { if (play && !this.embed.hasPlayed) { this.embed.hasPlayed = true; } if (this.media.paused === play) { this.media.paused = !play; triggerEvent.call(this, this.media, play ? 'play' : 'pause'); } } function getHost(config) { if (config.noCookie) { return 'https://www.youtube-nocookie.com'; } if (window.location.protocol === 'http:') { return 'http://www.youtube.com'; } // Use YouTube's default return undefined; } var youtube = { setup: function setup() { var _this = this; // Add embed class for responsive toggleClass(this.elements.wrapper, this.config.classNames.embed, true); // Setup API if (is$1.object(window.YT) && is$1.function(window.YT.Player)) { youtube.ready.call(this); } else { // Load the API loadScript(this.config.urls.youtube.sdk).catch(function (error) { _this.debug.warn('YouTube API failed to load', error); }); // Setup callback for the API // YouTube has it's own system of course... window.onYouTubeReadyCallbacks = window.onYouTubeReadyCallbacks || []; // Add to queue window.onYouTubeReadyCallbacks.push(function () { youtube.ready.call(_this); }); // Set callback to process queue window.onYouTubeIframeAPIReady = function () { window.onYouTubeReadyCallbacks.forEach(function (callback) { callback(); }); }; } }, // Get the media title getTitle: function getTitle(videoId) { var _this2 = this; var url = format(this.config.urls.youtube.api, videoId); fetch(url).then(function (data) { if (is$1.object(data)) { var title = data.title, height = data.height, width = data.width; // Set title _this2.config.title = title; ui.setTitle.call(_this2); // Set aspect ratio _this2.embed.ratio = [width, height]; } setAspectRatio.call(_this2); }).catch(function () { // Set aspect ratio setAspectRatio.call(_this2); }); }, // API ready ready: function ready() { var player = this; // Ignore already setup (race condition) var currentId = player.media.getAttribute('id'); if (!is$1.empty(currentId) && currentId.startsWith('youtube-')) { return; } // Get the source URL or ID var source = player.media.getAttribute('src'); // Get from
          if needed if (is$1.empty(source)) { source = player.media.getAttribute(this.config.attributes.embed.id); } // Replace the ' : '' )), (I = e( n.theme ? '' : '' )), n.theme && k ? ((U = '")) : n.theme ? ((U = '")) : (U = k ? '' : ''), (w = e(U)), y && (n.theme ? (w.css(h), w.addClass("ui-widget-content")) : w.css(s)), n.theme || I.css(n.overlayCSS), I.css("position", k ? "fixed" : "absolute"), (r || n.forceIframe) && g.css("opacity", 0); var C = [g, I, w], S = e(k ? "body" : t); e.each(C, function () { this.appendTo(S); }), n.theme && n.draggable && e.fn.draggable && w.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" }); var O = f && (!e.support.boxModel || e("object,embed", k ? null : t).length > 0); if (u || O) { if ((k && n.allowBodyStretch && e.support.boxModel && e("html,body").css("height", "100%"), (u || !e.support.boxModel) && !k)) var E = d(t, "borderTopWidth"), T = d(t, "borderLeftWidth"), M = E ? "(0 - " + E + ")" : 0, B = T ? "(0 - " + T + ")" : 0; e.each(C, function (e, t) { var o = t[0].style; if (((o.position = "absolute"), 2 > e)) k ? o.setExpression("height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:" + n.quirksmodeOffsetHack + ') + "px"') : o.setExpression("height", 'this.parentNode.offsetHeight + "px"'), k ? o.setExpression("width", 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : o.setExpression("width", 'this.parentNode.offsetWidth + "px"'), B && o.setExpression("left", B), M && o.setExpression("top", M); else if (n.centerY) k && o.setExpression( "top", '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"' ), (o.marginTop = 0); else if (!n.centerY && k) { var i = n.css && n.css.top ? parseInt(n.css.top, 10) : 0, s = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + i + ') + "px"'; o.setExpression("top", s); } }); } if ((y && (n.theme ? w.find(".ui-widget-content").append(y) : w.append(y), (y.jquery || y.nodeType) && e(y).show()), (r || n.forceIframe) && n.showOverlay && g.show(), n.fadeIn)) { var j = n.onBlock ? n.onBlock : c, H = n.showOverlay && !y ? j : c, z = y ? j : c; n.showOverlay && I._fadeIn(n.fadeIn, H), y && w._fadeIn(n.fadeIn, z); } else n.showOverlay && I.show(), y && w.show(), n.onBlock && n.onBlock.bind(w)(); if ((i(1, t, n), k ? ((p = w[0]), (b = e(n.focusableElements, p)), n.focusInput && setTimeout(l, 20)) : a(w[0], n.centerX, n.centerY), n.timeout)) { var W = setTimeout(function () { k ? e.unblockUI(n) : e(t).unblock(n); }, n.timeout); e(t).data("blockUI.timeout", W); } } } function o(t, o) { var s, l = t == window, a = e(t), d = a.data("blockUI.history"), c = a.data("blockUI.timeout"); c && (clearTimeout(c), a.removeData("blockUI.timeout")), (o = e.extend({}, e.blockUI.defaults, o || {})), i(0, t, o), null === o.onUnblock && ((o.onUnblock = a.data("blockUI.onUnblock")), a.removeData("blockUI.onUnblock")); var r; (r = l ? e("body").children().filter(".blockUI").add("body > .blockUI") : a.find(">.blockUI")), o.cursorReset && (r.length > 1 && (r[1].style.cursor = o.cursorReset), r.length > 2 && (r[2].style.cursor = o.cursorReset)), l && (p = b = null), o.fadeOut ? ((s = r.length), r.stop().fadeOut(o.fadeOut, function () { 0 === --s && n(r, d, o, t); })) : n(r, d, o, t); } function n(t, o, n, i) { var s = e(i); if (!s.data("blockUI.isBlocked")) { t.each(function (e, t) { this.parentNode && this.parentNode.removeChild(this); }), o && o.el && ((o.el.style.display = o.display), (o.el.style.position = o.position), (o.el.style.cursor = "default"), o.parent && o.parent.appendChild(o.el), s.removeData("blockUI.history")), s.data("blockUI.static") && s.css("position", "static"), "function" == typeof n.onUnblock && n.onUnblock(i, n); var l = e(document.body), a = l.width(), d = l[0].style.width; l.width(a - 1).width(a), (l[0].style.width = d); } } function i(t, o, n) { var i = o == window, l = e(o); if ((t || ((!i || p) && (i || l.data("blockUI.isBlocked")))) && (l.data("blockUI.isBlocked", t), i && n.bindEvents && (!t || n.showOverlay))) { var a = "mousedown mouseup keydown keypress keyup touchstart touchend touchmove"; t ? e(document).bind(a, n, s) : e(document).unbind(a, s); } } function s(t) { if ("keydown" === t.type && t.keyCode && 9 == t.keyCode && p && t.data.constrainTabKey) { var o = b, n = !t.shiftKey && t.target === o[o.length - 1], i = t.shiftKey && t.target === o[0]; if (n || i) return ( setTimeout(function () { l(i); }, 10), !1 ); } var s = t.data, a = e(t.target); return a.hasClass("blockOverlay") && s.onOverlayClick && s.onOverlayClick(t), a.parents("div." + s.blockMsgClass).length > 0 ? !0 : 0 === a.parents().children().filter("div.blockUI").length; } function l(e) { if (b) { var t = b[e === !0 ? b.length - 1 : 0]; t && t.focus(); } } function a(e, t, o) { var n = e.parentNode, i = e.style, s = (n.offsetWidth - e.offsetWidth) / 2 - d(n, "borderLeftWidth"), l = (n.offsetHeight - e.offsetHeight) / 2 - d(n, "borderTopWidth"); t && (i.left = s > 0 ? s + "px" : "0"), o && (i.top = l > 0 ? l + "px" : "0"); } function d(t, o) { return parseInt(e.css(t, o), 10) || 0; } e.fn._fadeIn = e.fn.fadeIn; var c = e.noop || function () {}, r = /MSIE/.test(navigator.userAgent), u = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent), f = (document.documentMode || 0, e.isFunction(document.createElement("div").style.setExpression)); (e.blockUI = function (e) { t(window, e); }), (e.unblockUI = function (e) { o(window, e); }), (e.growlUI = function (t, o, n, i) { var s = e('
          '); t && s.append("

          " + t + "

          "), o && s.append("

          " + o + "

          "), void 0 === n && (n = 3e3); var l = function (t) { (t = t || {}), e.blockUI({ message: s, fadeIn: "undefined" != typeof t.fadeIn ? t.fadeIn : 700, fadeOut: "undefined" != typeof t.fadeOut ? t.fadeOut : 1e3, timeout: "undefined" != typeof t.timeout ? t.timeout : n, centerY: !1, showOverlay: !1, onUnblock: i, css: e.blockUI.defaults.growlCSS, }); }; l(); s.css("opacity"); s.mouseover(function () { l({ fadeIn: 0, timeout: 3e4 }); var t = e(".blockMsg"); t.stop(), t.fadeTo(300, 1); }).mouseout(function () { e(".blockMsg").fadeOut(1e3); }); }), (e.fn.block = function (o) { if (this[0] === window) return e.blockUI(o), this; var n = e.extend({}, e.blockUI.defaults, o || {}); return ( this.each(function () { var t = e(this); (n.ignoreIfBlocked && t.data("blockUI.isBlocked")) || t.unblock({ fadeOut: 0 }); }), this.each(function () { "static" == e.css(this, "position") && ((this.style.position = "relative"), e(this).data("blockUI.static", !0)), (this.style.zoom = 1), t(this, o); }) ); }), (e.fn.unblock = function (t) { return this[0] === window ? (e.unblockUI(t), this) : this.each(function () { o(this, t); }); }), (e.blockUI.version = 2.7), (e.blockUI.defaults = { message: "

          Please wait...

          ", title: null, draggable: !0, theme: !1, css: { padding: 0, margin: 0, width: "30%", top: "40%", left: "35%", textAlign: "center", color: "#000", border: "3px solid #aaa", backgroundColor: "#fff", cursor: "wait" }, themedCSS: { width: "30%", top: "40%", left: "35%" }, overlayCSS: { backgroundColor: "#000", opacity: 0.6, cursor: "wait" }, cursorReset: "default", growlCSS: { width: "350px", top: "10px", left: "", right: "10px", border: "none", padding: "5px", opacity: 0.6, cursor: "default", color: "#fff", backgroundColor: "#000", "-webkit-border-radius": "10px", "-moz-border-radius": "10px", "border-radius": "10px", }, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank", forceIframe: !1, baseZ: 1e3, centerX: !0, centerY: !0, allowBodyStretch: !0, bindEvents: !0, constrainTabKey: !0, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: !0, focusInput: !0, focusableElements: ":input:enabled:visible", onBlock: null, onUnblock: null, onOverlayClick: null, quirksmodeOffsetHack: 4, blockMsgClass: "blockMsg", ignoreIfBlocked: !1, }); var p = null, b = []; } "function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], e) : e(jQuery); })(); /* * jquery-match-height 0.7.2 by @liabru * http://brm.io/jquery-match-height/ * License MIT */ !(function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof module && module.exports ? (module.exports = t(require("jquery"))) : t(jQuery); })(function (t) { var e = -1, o = -1, n = function (t) { return parseFloat(t) || 0; }, a = function (e) { var o = 1, a = t(e), i = null, r = []; return ( a.each(function () { var e = t(this), a = e.offset().top - n(e.css("margin-top")), s = r.length > 0 ? r[r.length - 1] : null; null === s ? r.push(e) : Math.floor(Math.abs(i - a)) <= o ? (r[r.length - 1] = s.add(e)) : r.push(e), (i = a); }), r ); }, i = function (e) { var o = { byRow: !0, property: "height", target: null, remove: !1, }; return "object" == typeof e ? t.extend(o, e) : ("boolean" == typeof e ? (o.byRow = e) : "remove" === e && (o.remove = !0), o); }, r = (t.fn.matchHeight = function (e) { var o = i(e); if (o.remove) { var n = this; return ( this.css(o.property, ""), t.each(r._groups, function (t, e) { e.elements = e.elements.not(n); }), this ); } return this.length <= 1 && !o.target ? this : (r._groups.push({ elements: this, options: o }), r._apply(this, o), this); }); (r.version = "0.7.2"), (r._groups = []), (r._throttle = 80), (r._maintainScroll = !1), (r._beforeUpdate = null), (r._afterUpdate = null), (r._rows = a), (r._parse = n), (r._parseOptions = i), (r._apply = function (e, o) { var s = i(o), h = t(e), l = [h], c = t(window).scrollTop(), p = t("html").outerHeight(!0), u = h.parents().filter(":hidden"); return ( u.each(function () { var e = t(this); e.data("style-cache", e.attr("style")); }), u.css("display", "block"), s.byRow && !s.target && (h.each(function () { var e = t(this), o = e.css("display"); "inline-block" !== o && "flex" !== o && "inline-flex" !== o && (o = "block"), e.data("style-cache", e.attr("style")), e.css({ display: o, "padding-top": "0", "padding-bottom": "0", "margin-top": "0", "margin-bottom": "0", "border-top-width": "0", "border-bottom-width": "0", height: "100px", overflow: "hidden" }); }), (l = a(h)), h.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || ""); })), t.each(l, function (e, o) { var a = t(o), i = 0; if (s.target) i = s.target.outerHeight(!1); else { if (s.byRow && a.length <= 1) return void a.css(s.property, ""); a.each(function () { var e = t(this), o = e.attr("style"), n = e.css("display"); "inline-block" !== n && "flex" !== n && "inline-flex" !== n && (n = "block"); var a = { display: n, }; (a[s.property] = ""), e.css(a), e.outerHeight(!1) > i && (i = e.outerHeight(!1)), o ? e.attr("style", o) : e.css("display", ""); }); } a.each(function () { var e = t(this), o = 0; (s.target && e.is(s.target)) || ("border-box" !== e.css("box-sizing") && ((o += n(e.css("border-top-width")) + n(e.css("border-bottom-width"))), (o += n(e.css("padding-top")) + n(e.css("padding-bottom")))), e.css(s.property, i - o + "px")); }); }), u.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || null); }), r._maintainScroll && t(window).scrollTop((c / p) * t("html").outerHeight(!0)), this ); }), (r._applyDataApi = function () { var e = {}; t("[data-match-height], [data-mh]").each(function () { var o = t(this), n = o.attr("data-mh") || o.attr("data-match-height"); n in e ? (e[n] = e[n].add(o)) : (e[n] = o); }), t.each(e, function () { this.matchHeight(!0); }); }); var s = function (e) { r._beforeUpdate && r._beforeUpdate(e, r._groups), t.each(r._groups, function () { r._apply(this.elements, this.options); }), r._afterUpdate && r._afterUpdate(e, r._groups); }; (r._update = function (n, a) { if (a && "resize" === a.type) { var i = t(window).width(); if (i === e) return; e = i; } n ? o === -1 && (o = setTimeout(function () { s(a), (o = -1); }, r._throttle)) : s(a); }), t(r._applyDataApi); var h = t.fn.on ? "on" : "bind"; t(window)[h]("load", function (t) { r._update(!1, t); }), t(window)[h]("resize orientationchange", function (t) { r._update(!0, t); }); }); /* * jQuery Sliding Menu Plugin * Mobile app list-style navigation in the browser * * Written by Ali Zahid * http://designplox.com/jquery-sliding-menu */ !(function (a) { var e = []; a.fn.slidingMenu = function (t) { function n(e) { var t = a("ul", e), n = []; return ( a(t).each(function (e, t) { var r = a(t), s = r.prev(), l = i(); if ((1 == s.length && (s.addClass("nav-has-children dropdown-item").attr("href", "#menu-panel-" + l), s.append('')), r.attr("id", "menu-panel-" + l), 0 == e)) r.addClass("menu-panel-root"); else { r.addClass("menu-panel"); var d = (a("
        • "), a("").addClass("nav-has-parent back primary dropdown-item").attr("href", "#menu-panel-back")); r.prepend(d); } n.push(t); }), n ); } function r(e, t) { var n = { id: "menu-panel-" + i(), children: [], root: t ? !1 : !0 }, s = []; return ( t && n.children.push({ styleClass: "back", href: "#" + t.id }), a(e).each(function (a, e) { if ((n.children.push(e), e.children)) { var t = r(e.children, n); (e.href = "#" + t[0].id), (e.styleClass = "nav"), (s = s.concat(t)); } }), [n].concat(s) ); } function i() { var a; do a = Math.random().toString(36).substring(3, 8); while (e.indexOf(a) >= 0); return e.push(a), a; } function s() { var e = a(".sliding-menu-wrapper"), t = a(".sliding-menu-wrapper ul"); t.length && setTimeout(function () { var n = a(l).width(); e.width(t.length * n), t.each(function (e, t) { var r = a(t); r.width(n); }), e.css("margin-left", ""); }, 300); } var l = this.selector, d = !1; "rtl" == a("html").data("textdirection") && (d = !0); var h = a.extend({ dataJSON: !1, backLabel: "Back" }, t); return this.each(function () { var e, t = this, i = a(t); if (i.hasClass("sliding-menu")) return void s(); var l = i.outerWidth(); (e = h.dataJSON ? r(h.dataJSON) : n(i)), i.empty().addClass("sliding-menu"); var p; h.dataJSON ? a(e).each(function (e, t) { var n = a("
            "); t.root && (p = "#" + t.id), n.attr("id", t.id), n.addClass("menu-panel"), n.width(l), a(t.children).each(function (e, t) { var r = a(""); r.attr("class", t.styleClass), r.attr("href", t.href), r.text(t.label); var i = a("
          • "); i.append(r), n.append(i); }), i.append(n); }) : a(e).each(function (e, t) { var n = a(t); n.hasClass("menu-panel-root") && (p = "#" + n.attr("id")), n.width(l), i.append(t); }), (p = a(p)), p.addClass("menu-panel-root"); var c = p; i.height(p.height()); var u = a("
            ") .addClass("sliding-menu-wrapper") .width(e.length * l); return ( i.wrapInner(u), (u = a(".sliding-menu-wrapper", i)), a("a", t).on("click", function (e) { var t = a(this).attr("href"), n = a(this).text(); if (u.is(":animated")) return void e.preventDefault(); if ("#" == t) e.preventDefault(); else if (0 == t.indexOf("#menu-panel")) { var r, s, l = a(t), o = a(this).hasClass("back"); d === !0 ? (s = parseInt(u.css("margin-right"))) : (r = parseInt(u.css("margin-left"))); var f = i.width(); a(this).closest("ul").hasClass("menu-panel-root") && (c = p), o ? ("#menu-panel-back" == t && (l = c.prev()), d === !0 ? (properties = { marginRight: s + f }) : (properties = { marginLeft: r + f }), u.stop(!0, !0).animate(properties, "fast")) : (l.insertAfter(c), h.backLabel === !0 ? a(".back", l).html('' + n) : a(".back", l).text(h.backLabel), d === !0 ? (properties = { marginRight: s - f }) : (properties = { marginLeft: r - f }), u.stop(!0, !0).animate(properties, "fast")), (c = l), i.stop(!0, !0).animate({ height: l.height() }, "fast"), e.preventDefault(); } }), this ); }); }; })(jQuery); /*! * screenfull * v5.0.0 - 2019-09-09 * (c) Sindre Sorhus; MIT License */ !(function () { "use strict"; var u = "undefined" != typeof window && void 0 !== window.document ? window.document : {}, e = "undefined" != typeof module && module.exports, t = (function () { for ( var e, n = [ ["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"], ], l = 0, r = n.length, t = {}; l < r; l++ ) if ((e = n[l]) && e[1] in u) { for (l = 0; l < e.length; l++) t[n[0][l]] = e[l]; return t; } return !1; })(), r = { change: t.fullscreenchange, error: t.fullscreenerror }, n = { request: function (r) { return new Promise( function (e, n) { var l = function () { this.off("change", l), e(); }.bind(this); this.on("change", l), (r = r || u.documentElement), Promise.resolve(r[t.requestFullscreen]()).catch(n); }.bind(this) ); }, exit: function () { return new Promise( function (e, n) { if (this.isFullscreen) { var l = function () { this.off("change", l), e(); }.bind(this); this.on("change", l), Promise.resolve(u[t.exitFullscreen]()).catch(n); } else e(); }.bind(this) ); }, toggle: function (e) { return this.isFullscreen ? this.exit() : this.request(e); }, onchange: function (e) { this.on("change", e); }, onerror: function (e) { this.on("error", e); }, on: function (e, n) { var l = r[e]; l && u.addEventListener(l, n, !1); }, off: function (e, n) { var l = r[e]; l && u.removeEventListener(l, n, !1); }, raw: t, }; t ? (Object.defineProperties(n, { isFullscreen: { get: function () { return Boolean(u[t.fullscreenElement]); }, }, element: { enumerable: !0, get: function () { return u[t.fullscreenElement]; }, }, isEnabled: { enumerable: !0, get: function () { return Boolean(u[t.fullscreenEnabled]); }, }, }), e ? (module.exports = n) : (window.screenfull = n)) : e ? (module.exports = { isEnabled: !1 }) : (window.screenfull = { isEnabled: !1 }); })(); /*! pace 1.0.2 */ (function () { var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X = [].slice, Y = {}.hasOwnProperty, Z = function (a, b) { function c() { this.constructor = a; } for (var d in b) Y.call(b, d) && (a[d] = b[d]); return (c.prototype = b.prototype), (a.prototype = new c()), (a.__super__ = b.prototype), a; }, $ = [].indexOf || function (a) { for (var b = 0, c = this.length; c > b; b++) if (b in this && this[b] === a) return b; return -1; }; for ( u = { catchupTime: 100, initialRate: 0.03, minTime: 250, ghostTime: 100, maxProgressPerFrame: 20, easeFactor: 1.25, startOnPageLoad: !0, restartOnPushState: !0, restartOnRequestAfter: 500, target: "body", elements: { checkInterval: 100, selectors: ["body"] }, eventLag: { minSamples: 10, sampleCount: 3, lagThreshold: 3 }, ajax: { trackMethods: ["GET"], trackWebSockets: !0, ignoreURLs: [] }, }, C = function () { var a; return null != (a = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? a : +new Date(); }, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, t = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && ((E = function (a) { return setTimeout(a, 50); }), (t = function (a) { return clearTimeout(a); })), G = function (a) { var b, c; return ( (b = C()), (c = function () { var d; return ( (d = C() - b), d >= 33 ? ((b = C()), a(d, function () { return E(c); })) : setTimeout(c, 33 - d) ); })() ); }, F = function () { var a, b, c; return (c = arguments[0]), (b = arguments[1]), (a = 3 <= arguments.length ? X.call(arguments, 2) : []), "function" == typeof c[b] ? c[b].apply(c, a) : c[b]; }, v = function () { var a, b, c, d, e, f, g; for (b = arguments[0], d = 2 <= arguments.length ? X.call(arguments, 1) : [], f = 0, g = d.length; g > f; f++) if ((c = d[f])) for (a in c) Y.call(c, a) && ((e = c[a]), null != b[a] && "object" == typeof b[a] && null != e && "object" == typeof e ? v(b[a], e) : (b[a] = e)); return b; }, q = function (a) { var b, c, d, e, f; for (c = b = 0, e = 0, f = a.length; f > e; e++) (d = a[e]), (c += Math.abs(d)), b++; return c / b; }, x = function (a, b) { var c, d, e; if ((null == a && (a = "options"), null == b && (b = !0), (e = document.querySelector("[data-pace-" + a + "]")))) { if (((c = e.getAttribute("data-pace-" + a)), !b)) return c; try { return JSON.parse(c); } catch (f) { return (d = f), "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", d) : void 0; } } }, g = (function () { function a() {} return ( (a.prototype.on = function (a, b, c, d) { var e; return null == d && (d = !1), null == this.bindings && (this.bindings = {}), null == (e = this.bindings)[a] && (e[a] = []), this.bindings[a].push({ handler: b, ctx: c, once: d }); }), (a.prototype.once = function (a, b, c) { return this.on(a, b, c, !0); }), (a.prototype.off = function (a, b) { var c, d, e; if (null != (null != (d = this.bindings) ? d[a] : void 0)) { if (null == b) return delete this.bindings[a]; for (c = 0, e = []; c < this.bindings[a].length; ) e.push(this.bindings[a][c].handler === b ? this.bindings[a].splice(c, 1) : c++); return e; } }), (a.prototype.trigger = function () { var a, b, c, d, e, f, g, h, i; if (((c = arguments[0]), (a = 2 <= arguments.length ? X.call(arguments, 1) : []), null != (g = this.bindings) ? g[c] : void 0)) { for (e = 0, i = []; e < this.bindings[c].length; ) (h = this.bindings[c][e]), (d = h.handler), (b = h.ctx), (f = h.once), d.apply(null != b ? b : this, a), i.push(f ? this.bindings[c].splice(e, 1) : e++); return i; } }), a ); })(), j = window.Pace || {}, window.Pace = j, v(j, g.prototype), D = j.options = v({}, u, window.paceOptions, x()), U = ["ajax", "document", "eventLag", "elements"], Q = 0, S = U.length; S > Q; Q++ ) (K = U[Q]), D[K] === !0 && (D[K] = u[K]); (i = (function (a) { function b() { return (V = b.__super__.constructor.apply(this, arguments)); } return Z(b, a), b; })(Error)), (b = (function () { function a() { this.progress = 0; } return ( (a.prototype.getElement = function () { var a; if (null == this.el) { if (((a = document.querySelector(D.target)), !a)) throw new i(); (this.el = document.createElement("div")), (this.el.className = "pace pace-active"), (document.body.className = document.body.className.replace(/pace-done/g, "")), (document.body.className += " pace-running"), (this.el.innerHTML = '
            \n
            \n
            \n
            '), null != a.firstChild ? a.insertBefore(this.el, a.firstChild) : a.appendChild(this.el); } return this.el; }), (a.prototype.finish = function () { var a; return ( (a = this.getElement()), (a.className = a.className.replace("pace-active", "")), (a.className += " pace-inactive"), (document.body.className = document.body.className.replace("pace-running", "")), (document.body.className += " pace-done") ); }), (a.prototype.update = function (a) { return (this.progress = a), this.render(); }), (a.prototype.destroy = function () { try { this.getElement().parentNode.removeChild(this.getElement()); } catch (a) { i = a; } return (this.el = void 0); }), (a.prototype.render = function () { var a, b, c, d, e, f, g; if (null == document.querySelector(D.target)) return !1; for (a = this.getElement(), d = "translate3d(" + this.progress + "%, 0, 0)", g = ["webkitTransform", "msTransform", "transform"], e = 0, f = g.length; f > e; e++) (b = g[e]), (a.children[0].style[b] = d); return ( (!this.lastRenderedProgress || this.lastRenderedProgress | (0 !== this.progress) | 0) && (a.children[0].setAttribute("data-progress-text", "" + (0 | this.progress) + "%"), this.progress >= 100 ? (c = "99") : ((c = this.progress < 10 ? "0" : ""), (c += 0 | this.progress)), a.children[0].setAttribute("data-progress", "" + c)), (this.lastRenderedProgress = this.progress) ); }), (a.prototype.done = function () { return this.progress >= 100; }), a ); })()), (h = (function () { function a() { this.bindings = {}; } return ( (a.prototype.trigger = function (a, b) { var c, d, e, f, g; if (null != this.bindings[a]) { for (f = this.bindings[a], g = [], d = 0, e = f.length; e > d; d++) (c = f[d]), g.push(c.call(this, b)); return g; } }), (a.prototype.on = function (a, b) { var c; return null == (c = this.bindings)[a] && (c[a] = []), this.bindings[a].push(b); }), a ); })()), (P = window.XMLHttpRequest), (O = window.XDomainRequest), (N = window.WebSocket), (w = function (a, b) { var c, d, e; e = []; for (d in b.prototype) try { e.push( null == a[d] && "function" != typeof b[d] ? "function" == typeof Object.defineProperty ? Object.defineProperty(a, d, { get: function () { return b.prototype[d]; }, configurable: !0, enumerable: !0, }) : (a[d] = b.prototype[d]) : void 0 ); } catch (f) { c = f; } return e; }), (A = []), (j.ignore = function () { var a, b, c; return (b = arguments[0]), (a = 2 <= arguments.length ? X.call(arguments, 1) : []), A.unshift("ignore"), (c = b.apply(null, a)), A.shift(), c; }), (j.track = function () { var a, b, c; return (b = arguments[0]), (a = 2 <= arguments.length ? X.call(arguments, 1) : []), A.unshift("track"), (c = b.apply(null, a)), A.shift(), c; }), (J = function (a) { var b; if ((null == a && (a = "GET"), "track" === A[0])) return "force"; if (!A.length && D.ajax) { if ("socket" === a && D.ajax.trackWebSockets) return !0; if (((b = a.toUpperCase()), $.call(D.ajax.trackMethods, b) >= 0)) return !0; } return !1; }), (k = (function (a) { function b() { var a, c = this; b.__super__.constructor.apply(this, arguments), (a = function (a) { var b; return ( (b = a.open), (a.open = function (d, e) { return J(d) && c.trigger("request", { type: d, url: e, request: a }), b.apply(a, arguments); }) ); }), (window.XMLHttpRequest = function (b) { var c; return (c = new P(b)), a(c), c; }); try { w(window.XMLHttpRequest, P); } catch (d) {} if (null != O) { window.XDomainRequest = function () { var b; return (b = new O()), a(b), b; }; try { w(window.XDomainRequest, O); } catch (d) {} } if (null != N && D.ajax.trackWebSockets) { window.WebSocket = function (a, b) { var d; return (d = null != b ? new N(a, b) : new N(a)), J("socket") && c.trigger("request", { type: "socket", url: a, protocols: b, request: d }), d; }; try { w(window.WebSocket, N); } catch (d) {} } } return Z(b, a), b; })(h)), (R = null), (y = function () { return null == R && (R = new k()), R; }), (I = function (a) { var b, c, d, e; for (e = D.ajax.ignoreURLs, c = 0, d = e.length; d > c; c++) if (((b = e[c]), "string" == typeof b)) { if (-1 !== a.indexOf(b)) return !0; } else if (b.test(a)) return !0; return !1; }), y().on("request", function (b) { var c, d, e, f, g; return ( (f = b.type), (e = b.request), (g = b.url), I(g) ? void 0 : j.running || (D.restartOnRequestAfter === !1 && "force" !== J(f)) ? void 0 : ((d = arguments), (c = D.restartOnRequestAfter || 0), "boolean" == typeof c && (c = 0), setTimeout(function () { var b, c, g, h, i, k; if ((b = "socket" === f ? e.readyState < 2 : 0 < (h = e.readyState) && 4 > h)) { for (j.restart(), i = j.sources, k = [], c = 0, g = i.length; g > c; c++) { if (((K = i[c]), K instanceof a)) { K.watch.apply(K, d); break; } k.push(void 0); } return k; } }, c)) ); }), (a = (function () { function a() { var a = this; (this.elements = []), y().on("request", function () { return a.watch.apply(a, arguments); }); } return ( (a.prototype.watch = function (a) { var b, c, d, e; return (d = a.type), (b = a.request), (e = a.url), I(e) ? void 0 : ((c = "socket" === d ? new n(b) : new o(b)), this.elements.push(c)); }), a ); })()), (o = (function () { function a(a) { var b, c, d, e, f, g, h = this; if (((this.progress = 0), null != window.ProgressEvent)) for ( c = null, a.addEventListener( "progress", function (a) { return (h.progress = a.lengthComputable ? (100 * a.loaded) / a.total : h.progress + (100 - h.progress) / 2); }, !1 ), g = ["load", "abort", "timeout", "error"], d = 0, e = g.length; e > d; d++ ) (b = g[d]), a.addEventListener( b, function () { return (h.progress = 100); }, !1 ); else (f = a.onreadystatechange), (a.onreadystatechange = function () { var b; return 0 === (b = a.readyState) || 4 === b ? (h.progress = 100) : 3 === a.readyState && (h.progress = 50), "function" == typeof f ? f.apply(null, arguments) : void 0; }); } return a; })()), (n = (function () { function a(a) { var b, c, d, e, f = this; for (this.progress = 0, e = ["error", "open"], c = 0, d = e.length; d > c; c++) (b = e[c]), a.addEventListener( b, function () { return (f.progress = 100); }, !1 ); } return a; })()), (d = (function () { function a(a) { var b, c, d, f; for (null == a && (a = {}), this.elements = [], null == a.selectors && (a.selectors = []), f = a.selectors, c = 0, d = f.length; d > c; c++) (b = f[c]), this.elements.push(new e(b)); } return a; })()), (e = (function () { function a(a) { (this.selector = a), (this.progress = 0), this.check(); } return ( (a.prototype.check = function () { var a = this; return document.querySelector(this.selector) ? this.done() : setTimeout(function () { return a.check(); }, D.elements.checkInterval); }), (a.prototype.done = function () { return (this.progress = 100); }), a ); })()), (c = (function () { function a() { var a, b, c = this; (this.progress = null != (b = this.states[document.readyState]) ? b : 100), (a = document.onreadystatechange), (document.onreadystatechange = function () { return null != c.states[document.readyState] && (c.progress = c.states[document.readyState]), "function" == typeof a ? a.apply(null, arguments) : void 0; }); } return (a.prototype.states = { loading: 0, interactive: 50, complete: 100 }), a; })()), (f = (function () { function a() { var a, b, c, d, e, f = this; (this.progress = 0), (a = 0), (e = []), (d = 0), (c = C()), (b = setInterval(function () { var g; return ( (g = C() - c - 50), (c = C()), e.push(g), e.length > D.eventLag.sampleCount && e.shift(), (a = q(e)), ++d >= D.eventLag.minSamples && a < D.eventLag.lagThreshold ? ((f.progress = 100), clearInterval(b)) : (f.progress = 100 * (3 / (a + 3))) ); }, 50)); } return a; })()), (m = (function () { function a(a) { (this.source = a), (this.last = this.sinceLastUpdate = 0), (this.rate = D.initialRate), (this.catchup = 0), (this.progress = this.lastProgress = 0), null != this.source && (this.progress = F(this.source, "progress")); } return ( (a.prototype.tick = function (a, b) { var c; return ( null == b && (b = F(this.source, "progress")), b >= 100 && (this.done = !0), b === this.last ? (this.sinceLastUpdate += a) : (this.sinceLastUpdate && (this.rate = (b - this.last) / this.sinceLastUpdate), (this.catchup = (b - this.progress) / D.catchupTime), (this.sinceLastUpdate = 0), (this.last = b)), b > this.progress && (this.progress += this.catchup * a), (c = 1 - Math.pow(this.progress / 100, D.easeFactor)), (this.progress += c * this.rate * a), (this.progress = Math.min(this.lastProgress + D.maxProgressPerFrame, this.progress)), (this.progress = Math.max(0, this.progress)), (this.progress = Math.min(100, this.progress)), (this.lastProgress = this.progress), this.progress ); }), a ); })()), (L = null), (H = null), (r = null), (M = null), (p = null), (s = null), (j.running = !1), (z = function () { return D.restartOnPushState ? j.restart() : void 0; }), null != window.history.pushState && ((T = window.history.pushState), (window.history.pushState = function () { return z(), T.apply(window.history, arguments); })), null != window.history.replaceState && ((W = window.history.replaceState), (window.history.replaceState = function () { return z(), W.apply(window.history, arguments); })), (l = { ajax: a, elements: d, document: c, eventLag: f }), (B = function () { var a, c, d, e, f, g, h, i; for (j.sources = L = [], g = ["ajax", "elements", "document", "eventLag"], c = 0, e = g.length; e > c; c++) (a = g[c]), D[a] !== !1 && L.push(new l[a](D[a])); for (i = null != (h = D.extraSources) ? h : [], d = 0, f = i.length; f > d; d++) (K = i[d]), L.push(new K(D)); return (j.bar = r = new b()), (H = []), (M = new m()); })(), (j.stop = function () { return j.trigger("stop"), (j.running = !1), r.destroy(), (s = !0), null != p && ("function" == typeof t && t(p), (p = null)), B(); }), (j.restart = function () { return j.trigger("restart"), j.stop(), j.start(); }), (j.go = function () { var a; return ( (j.running = !0), r.render(), (a = C()), (s = !1), (p = G(function (b, c) { var d, e, f, g, h, i, k, l, n, o, p, q, t, u, v, w; for (l = 100 - r.progress, e = p = 0, f = !0, i = q = 0, u = L.length; u > q; i = ++q) for (K = L[i], o = null != H[i] ? H[i] : (H[i] = []), h = null != (w = K.elements) ? w : [K], k = t = 0, v = h.length; v > t; k = ++t) (g = h[k]), (n = null != o[k] ? o[k] : (o[k] = new m(g))), (f &= n.done), n.done || (e++, (p += n.tick(b))); return ( (d = p / e), r.update(M.tick(b, d)), r.done() || f || s ? (r.update(100), j.trigger("done"), setTimeout(function () { return r.finish(), (j.running = !1), j.trigger("hide"); }, Math.max(D.ghostTime, Math.max(D.minTime - (C() - a), 0)))) : c() ); })) ); }), (j.start = function (a) { v(D, a), (j.running = !0); try { r.render(); } catch (b) { i = b; } return document.querySelector(".pace") ? (j.trigger("start"), j.go()) : setTimeout(j.start, 50); }), "function" == typeof define && define.amd ? define(["pace"], function () { return j; }) : "object" == typeof exports ? (module.exports = j) : D.startOnPageLoad && j.start(); }.call(this)); // Waves !(function (t, e) { "use strict"; "function" == typeof define && define.amd ? define([], function () { return (t.Waves = e.call(t)), t.Waves; }) : "object" == typeof exports ? (module.exports = e.call(t)) : (t.Waves = e.call(t)); })("object" == typeof global ? global : this, function () { "use strict"; function t(t) { return null !== t && t === t.window; } function e(e) { return t(e) ? e : 9 === e.nodeType && e.defaultView; } function n(t) { var e = typeof t; return "function" === e || ("object" === e && !!t); } function o(t) { return n(t) && t.nodeType > 0; } function a(t) { var e = f.call(t); return "[object String]" === e ? d(t) : n(t) && /^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(e) && t.hasOwnProperty("length") ? t : o(t) ? [t] : []; } function i(t) { var n, o, a = { top: 0, left: 0 }, i = t && t.ownerDocument; return (n = i.documentElement), void 0 !== t.getBoundingClientRect && (a = t.getBoundingClientRect()), (o = e(i)), { top: a.top + o.pageYOffset - n.clientTop, left: a.left + o.pageXOffset - n.clientLeft }; } function r(t) { var e = ""; for (var n in t) t.hasOwnProperty(n) && (e += n + ":" + t[n] + ";"); return e; } function s(t, e, n) { if (n) { n.classList.remove("waves-rippling"); var o = n.getAttribute("data-x"), a = n.getAttribute("data-y"), i = n.getAttribute("data-scale"), s = n.getAttribute("data-translate"), u = 350 - (Date.now() - Number(n.getAttribute("data-hold"))); u < 0 && (u = 0), "mousemove" === t.type && (u = 150); var c = "mousemove" === t.type ? 2500 : v.duration; setTimeout(function () { var t = { top: a + "px", left: o + "px", opacity: "0", "-webkit-transition-duration": c + "ms", "-moz-transition-duration": c + "ms", "-o-transition-duration": c + "ms", "transition-duration": c + "ms", "-webkit-transform": i + " " + s, "-moz-transform": i + " " + s, "-ms-transform": i + " " + s, "-o-transform": i + " " + s, transform: i + " " + s, }; n.setAttribute("style", r(t)), setTimeout(function () { try { e.removeChild(n); } catch (t) { return !1; } }, c); }, u); } } function u(t) { if (!1 === h.allowEvent(t)) return null; for (var e = null, n = t.target || t.srcElement; n.parentElement; ) { if (!(n instanceof SVGElement) && n.classList.contains("waves-effect")) { e = n; break; } n = n.parentElement; } return e; } function c(t) { var e = u(t); if (null !== e) { if (e.disabled || e.getAttribute("disabled") || e.classList.contains("disabled")) return; if ((h.registerEvent(t), "touchstart" === t.type && v.delay)) { var n = !1, o = setTimeout(function () { (o = null), v.show(t, e); }, v.delay), a = function (a) { o && (clearTimeout(o), (o = null), v.show(t, e)), n || ((n = !0), v.hide(a, e)), r(); }, i = function (t) { o && (clearTimeout(o), (o = null)), a(t), r(); }; e.addEventListener("touchmove", i, !1), e.addEventListener("touchend", a, !1), e.addEventListener("touchcancel", a, !1); var r = function () { e.removeEventListener("touchmove", i), e.removeEventListener("touchend", a), e.removeEventListener("touchcancel", a); }; } else v.show(t, e), m && (e.addEventListener("touchend", v.hide, !1), e.addEventListener("touchcancel", v.hide, !1)), e.addEventListener("mouseup", v.hide, !1), e.addEventListener("mouseleave", v.hide, !1); } } var l = l || {}, d = document.querySelectorAll.bind(document), f = Object.prototype.toString, m = "ontouchstart" in window, v = { duration: 750, delay: 200, show: function (t, e, n) { if (2 === t.button) return !1; e = e || this; var o = document.createElement("div"); (o.className = "waves-ripple waves-rippling"), e.appendChild(o); var a = i(e), s = 0, u = 0; "touches" in t && t.touches.length ? ((s = t.touches[0].pageY - a.top), (u = t.touches[0].pageX - a.left)) : ((s = t.pageY - a.top), (u = t.pageX - a.left)), (u = u >= 0 ? u : 0), (s = s >= 0 ? s : 0); var c = "scale(" + (e.clientWidth / 100) * 3 + ")", l = "translate(0,0)"; n && (l = "translate(" + n.x + "px, " + n.y + "px)"), o.setAttribute("data-hold", Date.now()), o.setAttribute("data-x", u), o.setAttribute("data-y", s), o.setAttribute("data-scale", c), o.setAttribute("data-translate", l); var d = { top: s + "px", left: u + "px" }; o.classList.add("waves-notransition"), o.setAttribute("style", r(d)), o.classList.remove("waves-notransition"), (d["-webkit-transform"] = c + " " + l), (d["-moz-transform"] = c + " " + l), (d["-ms-transform"] = c + " " + l), (d["-o-transform"] = c + " " + l), (d.transform = c + " " + l), (d.opacity = "1"); var f = "mousemove" === t.type ? 2500 : v.duration; (d["-webkit-transition-duration"] = f + "ms"), (d["-moz-transition-duration"] = f + "ms"), (d["-o-transition-duration"] = f + "ms"), (d["transition-duration"] = f + "ms"), o.setAttribute("style", r(d)); }, hide: function (t, e) { for (var n = (e = e || this).getElementsByClassName("waves-rippling"), o = 0, a = n.length; o < a; o++) s(t, e, n[o]); m && (e.removeEventListener("touchend", v.hide), e.removeEventListener("touchcancel", v.hide)), e.removeEventListener("mouseup", v.hide), e.removeEventListener("mouseleave", v.hide); }, }, p = { input: function (t) { var e = t.parentNode; if ("i" !== e.tagName.toLowerCase() || !e.classList.contains("waves-effect")) { var n = document.createElement("i"); (n.className = t.className + " waves-input-wrapper"), (t.className = "waves-button-input"), e.replaceChild(n, t), n.appendChild(t); var o = window.getComputedStyle(t, null), a = o.color, i = o.backgroundColor; n.setAttribute("style", "color:" + a + ";background:" + i), t.setAttribute("style", "background-color:rgba(0,0,0,0);"); } }, img: function (t) { var e = t.parentNode; if ("i" !== e.tagName.toLowerCase() || !e.classList.contains("waves-effect")) { var n = document.createElement("i"); e.replaceChild(n, t), n.appendChild(t); } }, }, h = { touches: 0, allowEvent: function (t) { var e = !0; return /^(mousedown|mousemove)$/.test(t.type) && h.touches && (e = !1), e; }, registerEvent: function (t) { var e = t.type; "touchstart" === e ? (h.touches += 1) : /^(touchend|touchcancel)$/.test(e) && setTimeout(function () { h.touches && (h.touches -= 1); }, 500); }, }; return ( (l.init = function (t) { var e = document.body; "duration" in (t = t || {}) && (v.duration = t.duration), "delay" in t && (v.delay = t.delay), m && (e.addEventListener("touchstart", c, !1), e.addEventListener("touchcancel", h.registerEvent, !1), e.addEventListener("touchend", h.registerEvent, !1)), e.addEventListener("mousedown", c, !1); }), (l.attach = function (t, e) { (t = a(t)), "[object Array]" === f.call(e) && (e = e.join(" ")), (e = e ? " " + e : ""); for (var n, o, i = 0, r = t.length; i < r; i++) (o = (n = t[i]).tagName.toLowerCase()), -1 !== ["input", "img"].indexOf(o) && (p[o](n), (n = n.parentElement)), -1 === n.className.indexOf("waves-effect") && (n.className += " waves-effect" + e); }), (l.ripple = function (t, e) { var n = (t = a(t)).length; if (((e = e || {}), (e.wait = e.wait || 0), (e.position = e.position || null), n)) for (var o, r, s, u = {}, c = 0, l = { type: "mousedown", button: 1 }; c < n; c++) if ( ((o = t[c]), (r = e.position || { x: o.clientWidth / 2, y: o.clientHeight / 2 }), (s = i(o)), (u.x = s.left + r.x), (u.y = s.top + r.y), (l.pageX = u.x), (l.pageY = u.y), v.show(l, o), e.wait >= 0 && null !== e.wait) ) { var d = { type: "mouseup", button: 1 }; setTimeout( (function (t, e) { return function () { v.hide(t, e); }; })(d, o), e.wait ); } }), (l.calm = function (t) { for (var e = { type: "mouseup", button: 1 }, n = 0, o = (t = a(t)).length; n < o; n++) v.hide(e, t[n]); }), (l.displayEffect = function (t) { l.init(t); }), l ); }); //# sourceMappingURL=waves.min.js.map // Internationalization !(function (e, t) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ? define(t) : ((e = e || self).i18next = t()); })(this, function () { "use strict"; function e(t) { return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; })(t); } function t(n) { return (t = "function" == typeof Symbol && "symbol" === e(Symbol.iterator) ? function (t) { return e(t); } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : e(t); })(n); } function n(e, t, n) { return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e; } function r(e) { for (var t = 1; t < arguments.length; t++) { var r = null != arguments[t] ? arguments[t] : {}, o = Object.keys(r); "function" == typeof Object.getOwnPropertySymbols && (o = o.concat( Object.getOwnPropertySymbols(r).filter(function (e) { return Object.getOwnPropertyDescriptor(r, e).enumerable; }) )), o.forEach(function (t) { n(e, t, r[t]); }); } return e; } function o(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function i(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } function a(e, t, n) { return t && i(e.prototype, t), n && i(e, n), e; } function s(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function u(e, n) { return !n || ("object" !== t(n) && "function" != typeof n) ? s(e) : n; } function l(e) { return (l = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } function c(e, t) { return (c = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; })(e, t); } function f(e, t) { if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), t && c(e, t); } function p(e) { return ( (function (e) { if (Array.isArray(e)) { for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t]; return n; } })(e) || (function (e) { if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) return Array.from(e); })(e) || (function () { throw new TypeError("Invalid attempt to spread non-iterable instance"); })() ); } var g = { type: "logger", log: function (e) { this.output("log", e); }, warn: function (e) { this.output("warn", e); }, error: function (e) { this.output("error", e); }, output: function (e, t) { var n; console && console[e] && (n = console)[e].apply(n, p(t)); }, }, h = new ((function () { function e(t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(this, e), this.init(t, n); } return ( a(e, [ { key: "init", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; (this.prefix = t.prefix || "i18next:"), (this.logger = e || g), (this.options = t), (this.debug = t.debug); }, }, { key: "setDebug", value: function (e) { this.debug = e; }, }, { key: "log", value: function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "log", "", !0); }, }, { key: "warn", value: function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "warn", "", !0); }, }, { key: "error", value: function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "error", ""); }, }, { key: "deprecate", value: function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "warn", "WARNING DEPRECATED: ", !0); }, }, { key: "forward", value: function (e, t, n, r) { return r && !this.debug ? null : ("string" == typeof e[0] && (e[0] = "".concat(n).concat(this.prefix, " ").concat(e[0])), this.logger[t](e)); }, }, { key: "create", value: function (t) { return new e(this.logger, r({}, { prefix: "".concat(this.prefix, ":").concat(t, ":") }, this.options)); }, }, ]), e ); })())(), d = (function () { function e() { o(this, e), (this.observers = {}); } return ( a(e, [ { key: "on", value: function (e, t) { var n = this; return ( e.split(" ").forEach(function (e) { (n.observers[e] = n.observers[e] || []), n.observers[e].push(t); }), this ); }, }, { key: "off", value: function (e, t) { var n = this; this.observers[e] && this.observers[e].forEach(function () { if (t) { var r = n.observers[e].indexOf(t); r > -1 && n.observers[e].splice(r, 1); } else delete n.observers[e]; }); }, }, { key: "emit", value: function (e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; this.observers[e] && [].concat(this.observers[e]).forEach(function (e) { e.apply(void 0, n); }); this.observers["*"] && [].concat(this.observers["*"]).forEach(function (t) { t.apply(t, [e].concat(n)); }); }, }, ]), e ); })(); function v() { var e, t, n = new Promise(function (n, r) { (e = n), (t = r); }); return (n.resolve = e), (n.reject = t), n; } function y(e) { return null == e ? "" : "" + e; } function m(e, t, n) { function r(e) { return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e; } function o() { return !e || "string" == typeof e; } for (var i = "string" != typeof t ? [].concat(t) : t.split("."); i.length > 1; ) { if (o()) return {}; var a = r(i.shift()); !e[a] && n && (e[a] = new n()), (e = e[a]); } return o() ? {} : { obj: e, k: r(i.shift()) }; } function b(e, t, n) { var r = m(e, t, Object); r.obj[r.k] = n; } function k(e, t) { var n = m(e, t), r = n.obj, o = n.k; if (r) return r[o]; } function x(e) { return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } var S = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "/": "/" }; function w(e) { return "string" == typeof e ? e.replace(/[&<>"'\/]/g, function (e) { return S[e]; }) : e; } var O = (function (e) { function t(e) { var n, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { ns: ["translation"], defaultNS: "translation" }; return o(this, t), (n = u(this, l(t).call(this))), d.call(s(n)), (n.data = e || {}), (n.options = r), void 0 === n.options.keySeparator && (n.options.keySeparator = "."), n; } return ( f(t, d), a(t, [ { key: "addNamespaces", value: function (e) { this.options.ns.indexOf(e) < 0 && this.options.ns.push(e); }, }, { key: "removeNamespaces", value: function (e) { var t = this.options.ns.indexOf(e); t > -1 && this.options.ns.splice(t, 1); }, }, { key: "getResource", value: function (e, t, n) { var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator, i = [e, t]; return n && "string" != typeof n && (i = i.concat(n)), n && "string" == typeof n && (i = i.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (i = e.split(".")), k(this.data, i); }, }, { key: "addResource", value: function (e, t, n, r) { var o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : { silent: !1 }, i = this.options.keySeparator; void 0 === i && (i = "."); var a = [e, t]; n && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && ((r = t), (t = (a = e.split("."))[1])), this.addNamespaces(t), b(this.data, a, r), o.silent || this.emit("added", e, t, n, r); }, }, { key: "addResources", value: function (e, t, n) { var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : { silent: !1 }; for (var o in n) ("string" != typeof n[o] && "[object Array]" !== Object.prototype.toString.apply(n[o])) || this.addResource(e, t, o, n[o], { silent: !0 }); r.silent || this.emit("added", e, t, n); }, }, { key: "addResourceBundle", value: function (e, t, n, o, i) { var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : { silent: !1 }, s = [e, t]; e.indexOf(".") > -1 && ((o = n), (n = t), (t = (s = e.split("."))[1])), this.addNamespaces(t); var u = k(this.data, s) || {}; o ? (function e(t, n, r) { for (var o in n) o in t ? ("string" == typeof t[o] || t[o] instanceof String || "string" == typeof n[o] || n[o] instanceof String ? r && (t[o] = n[o]) : e(t[o], n[o], r)) : (t[o] = n[o]); return t; })(u, n, i) : (u = r({}, u, n)), b(this.data, s, u), a.silent || this.emit("added", e, t, n); }, }, { key: "removeResourceBundle", value: function (e, t) { this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t); }, }, { key: "hasResourceBundle", value: function (e, t) { return void 0 !== this.getResource(e, t); }, }, { key: "getResourceBundle", value: function (e, t) { return t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? r({}, {}, this.getResource(e, t)) : this.getResource(e, t); }, }, { key: "getDataByLanguage", value: function (e) { return this.data[e]; }, }, { key: "toJSON", value: function () { return this.data; }, }, ]), t ); })(), R = { processors: {}, addPostProcessor: function (e) { this.processors[e.name] = e; }, handle: function (e, t, n, r, o) { var i = this; return ( e.forEach(function (e) { i.processors[e] && (t = i.processors[e].process(t, n, r, o)); }), t ); }, }, j = (function (e) { function n(e) { var t, r, i, a, c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( o(this, n), (t = u(this, l(n).call(this))), d.call(s(t)), (r = ["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat"]), (i = e), (a = s(t)), r.forEach(function (e) { i[e] && (a[e] = i[e]); }), (t.options = c), void 0 === t.options.keySeparator && (t.options.keySeparator = "."), (t.logger = h.create("translator")), t ); } return ( f(n, d), a(n, [ { key: "changeLanguage", value: function (e) { e && (this.language = e); }, }, { key: "exists", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} }, n = this.resolve(e, t); return n && void 0 !== n.res; }, }, { key: "extractFromKey", value: function (e, t) { var n = t.nsSeparator || this.options.nsSeparator; void 0 === n && (n = ":"); var r = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator, o = t.ns || this.options.defaultNS; if (n && e.indexOf(n) > -1) { var i = e.split(n); (n !== r || (n === r && this.options.ns.indexOf(i[0]) > -1)) && (o = i.shift()), (e = i.join(r)); } return "string" == typeof o && (o = [o]), { key: e, namespaces: o }; }, }, { key: "translate", value: function (e, n) { var o = this; if (("object" !== t(n) && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), n || (n = {}), null == e)) return ""; Array.isArray(e) || (e = [String(e)]); var i = void 0 !== n.keySeparator ? n.keySeparator : this.options.keySeparator, a = this.extractFromKey(e[e.length - 1], n), s = a.key, u = a.namespaces, l = u[u.length - 1], c = n.lng || this.language, f = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode; if (c && "cimode" === c.toLowerCase()) { if (f) { var p = n.nsSeparator || this.options.nsSeparator; return l + p + s; } return s; } var g = this.resolve(e, n), h = g && g.res, d = (g && g.usedKey) || s, v = (g && g.exactUsedKey) || s, y = Object.prototype.toString.apply(h), m = void 0 !== n.joinArrays ? n.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject; if ( b && h && "string" != typeof h && "boolean" != typeof h && "number" != typeof h && ["[object Number]", "[object Function]", "[object RegExp]"].indexOf(y) < 0 && ("string" != typeof m || "[object Array]" !== y) ) { if (!n.returnObjects && !this.options.returnObjects) return ( this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(d, h, n) : "key '".concat(s, " (").concat(this.language, ")' returned an object instead of string.") ); if (i) { var k = "[object Array]" === y, x = k ? [] : {}, S = k ? v : d; for (var w in h) if (Object.prototype.hasOwnProperty.call(h, w)) { var O = "".concat(S).concat(i).concat(w); (x[w] = this.translate(O, r({}, n, { joinArrays: !1, ns: u }))), x[w] === O && (x[w] = h[w]); } h = x; } } else if (b && "string" == typeof m && "[object Array]" === y) (h = h.join(m)) && (h = this.extendTranslation(h, e, n)); else { var R = !1, j = !1; if (!this.isValidLookup(h) && void 0 !== n.defaultValue) { if (((R = !0), void 0 !== n.count)) { var L = this.pluralResolver.getSuffix(c, n.count); h = n["defaultValue".concat(L)]; } h || (h = n.defaultValue); } this.isValidLookup(h) || ((j = !0), (h = s)); var N = n.defaultValue && n.defaultValue !== h && this.options.updateMissing; if (j || R || N) { this.logger.log(N ? "updateKey" : "missingKey", c, l, s, N ? n.defaultValue : h); var C = [], E = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language); if ("fallback" === this.options.saveMissingTo && E && E[0]) for (var P = 0; P < E.length; P++) C.push(E[P]); else "all" === this.options.saveMissingTo ? (C = this.languageUtils.toResolveHierarchy(n.lng || this.language)) : C.push(n.lng || this.language); var F = function (e, t) { o.options.missingKeyHandler ? o.options.missingKeyHandler(e, l, t, N ? n.defaultValue : h, N, n) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(e, l, t, N ? n.defaultValue : h, N, n), o.emit("missingKey", e, l, t, h); }; if (this.options.saveMissing) { var A = void 0 !== n.count && "string" != typeof n.count; this.options.saveMissingPlurals && A ? C.forEach(function (e) { o.pluralResolver.getPluralFormsOfKey(e, s).forEach(function (t) { return F([e], t); }); }) : F(C, s); } } (h = this.extendTranslation(h, e, n, g)), j && h === s && this.options.appendNamespaceToMissingKey && (h = "".concat(l, ":").concat(s)), j && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h)); } return h; }, }, { key: "extendTranslation", value: function (e, t, n, o) { var i = this; if (this.i18nFormat && this.i18nFormat.parse) e = this.i18nFormat.parse(e, n, o.usedLng, o.usedNS, o.usedKey, { resolved: o }); else if (!n.skipInterpolation) { n.interpolation && this.interpolator.init(r({}, n, { interpolation: r({}, this.options.interpolation, n.interpolation) })); var a = n.replace && "string" != typeof n.replace ? n.replace : n; this.options.interpolation.defaultVariables && (a = r({}, this.options.interpolation.defaultVariables, a)), (e = this.interpolator.interpolate(e, a, n.lng || this.language, n)), !1 !== n.nest && (e = this.interpolator.nest( e, function () { return i.translate.apply(i, arguments); }, n )), n.interpolation && this.interpolator.reset(); } var s = n.postProcess || this.options.postProcess, u = "string" == typeof s ? [s] : s; return null != e && u && u.length && !1 !== n.applyPostProcessor && (e = R.handle(u, e, t, n, this)), e; }, }, { key: "resolve", value: function (e) { var t, n, r, o, i, a = this, s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( "string" == typeof e && (e = [e]), e.forEach(function (e) { if (!a.isValidLookup(t)) { var u = a.extractFromKey(e, s), l = u.key; n = l; var c = u.namespaces; a.options.fallbackNS && (c = c.concat(a.options.fallbackNS)); var f = void 0 !== s.count && "string" != typeof s.count, p = void 0 !== s.context && "string" == typeof s.context && "" !== s.context, g = s.lngs ? s.lngs : a.languageUtils.toResolveHierarchy(s.lng || a.language, s.fallbackLng); c.forEach(function (e) { a.isValidLookup(t) || ((i = e), g.forEach(function (n) { if (!a.isValidLookup(t)) { o = n; var i, u, c = l, g = [c]; if (a.i18nFormat && a.i18nFormat.addLookupKeys) a.i18nFormat.addLookupKeys(g, l, n, e, s); else f && (i = a.pluralResolver.getSuffix(n, s.count)), f && p && g.push(c + i), p && g.push((c += "".concat(a.options.contextSeparator).concat(s.context))), f && g.push((c += i)); for (; (u = g.pop()); ) a.isValidLookup(t) || ((r = u), (t = a.getResource(n, e, u, s))); } })); }); } }), { res: t, usedKey: n, exactUsedKey: r, usedLng: o, usedNS: i } ); }, }, { key: "isValidLookup", value: function (e) { return !(void 0 === e || (!this.options.returnNull && null === e) || (!this.options.returnEmptyString && "" === e)); }, }, { key: "getResource", value: function (e, t, n) { var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r); }, }, ]), n ); })(); function L(e) { return e.charAt(0).toUpperCase() + e.slice(1); } var N = (function () { function e(t) { o(this, e), (this.options = t), (this.whitelist = this.options.whitelist || !1), (this.logger = h.create("languageUtils")); } return ( a(e, [ { key: "getScriptPartFromCode", value: function (e) { if (!e || e.indexOf("-") < 0) return null; var t = e.split("-"); return 2 === t.length ? null : (t.pop(), this.formatLanguageCode(t.join("-"))); }, }, { key: "getLanguagePartFromCode", value: function (e) { if (!e || e.indexOf("-") < 0) return e; var t = e.split("-"); return this.formatLanguageCode(t[0]); }, }, { key: "formatLanguageCode", value: function (e) { if ("string" == typeof e && e.indexOf("-") > -1) { var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], n = e.split("-"); return ( this.options.lowerCaseLng ? (n = n.map(function (e) { return e.toLowerCase(); })) : 2 === n.length ? ((n[0] = n[0].toLowerCase()), (n[1] = n[1].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = L(n[1].toLowerCase()))) : 3 === n.length && ((n[0] = n[0].toLowerCase()), 2 === n[1].length && (n[1] = n[1].toUpperCase()), "sgn" !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = L(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = L(n[2].toLowerCase()))), n.join("-") ); } return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e; }, }, { key: "isWhitelisted", value: function (e) { return ("languageOnly" === this.options.load || this.options.nonExplicitWhitelist) && (e = this.getLanguagePartFromCode(e)), !this.whitelist || !this.whitelist.length || this.whitelist.indexOf(e) > -1; }, }, { key: "getFallbackCodes", value: function (e, t) { if (!e) return []; if (("string" == typeof e && (e = [e]), "[object Array]" === Object.prototype.toString.apply(e))) return e; if (!t) return e.default || []; var n = e[t]; return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e.default), n || []; }, }, { key: "toResolveHierarchy", value: function (e, t) { var n = this, r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), o = [], i = function (e) { e && (n.isWhitelisted(e) ? o.push(e) : n.logger.warn("rejecting non-whitelisted language code: ".concat(e))); }; return ( "string" == typeof e && e.indexOf("-") > -1 ? ("languageOnly" !== this.options.load && i(this.formatLanguageCode(e)), "languageOnly" !== this.options.load && "currentOnly" !== this.options.load && i(this.getScriptPartFromCode(e)), "currentOnly" !== this.options.load && i(this.getLanguagePartFromCode(e))) : "string" == typeof e && i(this.formatLanguageCode(e)), r.forEach(function (e) { o.indexOf(e) < 0 && i(n.formatLanguageCode(e)); }), o ); }, }, ]), e ); })(), C = [ { lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "ti", "tr", "uz", "wa"], nr: [1, 2], fc: 1 }, { lngs: [ "af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo", ], nr: [1, 2], fc: 2, }, { lngs: ["ay", "bo", "cgg", "fa", "id", "ja", "jbo", "ka", "kk", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"], nr: [1], fc: 3 }, { lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"], nr: [1, 2, 5], fc: 4 }, { lngs: ["ar"], nr: [0, 1, 2, 3, 11, 100], fc: 5 }, { lngs: ["cs", "sk"], nr: [1, 2, 5], fc: 6 }, { lngs: ["csb", "pl"], nr: [1, 2, 5], fc: 7 }, { lngs: ["cy"], nr: [1, 2, 3, 8], fc: 8 }, { lngs: ["fr"], nr: [1, 2], fc: 9 }, { lngs: ["ga"], nr: [1, 2, 3, 7, 11], fc: 10 }, { lngs: ["gd"], nr: [1, 2, 3, 20], fc: 11 }, { lngs: ["is"], nr: [1, 2], fc: 12 }, { lngs: ["jv"], nr: [0, 1], fc: 13 }, { lngs: ["kw"], nr: [1, 2, 3, 4], fc: 14 }, { lngs: ["lt"], nr: [1, 2, 10], fc: 15 }, { lngs: ["lv"], nr: [1, 2, 0], fc: 16 }, { lngs: ["mk"], nr: [1, 2], fc: 17 }, { lngs: ["mnk"], nr: [0, 1, 2], fc: 18 }, { lngs: ["mt"], nr: [1, 2, 11, 20], fc: 19 }, { lngs: ["or"], nr: [2, 1], fc: 2 }, { lngs: ["ro"], nr: [1, 2, 20], fc: 20 }, { lngs: ["sl"], nr: [5, 1, 2, 3], fc: 21 }, { lngs: ["he"], nr: [1, 2, 20, 21], fc: 22 }, ], E = { 1: function (e) { return Number(e > 1); }, 2: function (e) { return Number(1 != e); }, 3: function (e) { return 0; }, 4: function (e) { return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2); }, 5: function (e) { return Number(0 === e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5); }, 6: function (e) { return Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2); }, 7: function (e) { return Number(1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2); }, 8: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3); }, 9: function (e) { return Number(e >= 2); }, 10: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4); }, 11: function (e) { return Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3); }, 12: function (e) { return Number(e % 10 != 1 || e % 100 == 11); }, 13: function (e) { return Number(0 !== e); }, 14: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3); }, 15: function (e) { return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2); }, 16: function (e) { return Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2); }, 17: function (e) { return Number(1 == e || e % 10 == 1 ? 0 : 1); }, 18: function (e) { return Number(0 == e ? 0 : 1 == e ? 1 : 2); }, 19: function (e) { return Number(1 == e ? 0 : 0 === e || (e % 100 > 1 && e % 100 < 11) ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3); }, 20: function (e) { return Number(1 == e ? 0 : 0 === e || (e % 100 > 0 && e % 100 < 20) ? 1 : 2); }, 21: function (e) { return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0); }, 22: function (e) { return Number(1 === e ? 0 : 2 === e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3); }, }; var P = (function () { function e(t) { var n, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(this, e), (this.languageUtils = t), (this.options = r), (this.logger = h.create("pluralResolver")), (this.rules = ((n = {}), C.forEach(function (e) { e.lngs.forEach(function (t) { n[t] = { numbers: e.nr, plurals: E[e.fc] }; }); }), n)); } return ( a(e, [ { key: "addRule", value: function (e, t) { this.rules[e] = t; }, }, { key: "getRule", value: function (e) { return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)]; }, }, { key: "needsPlural", value: function (e) { var t = this.getRule(e); return t && t.numbers.length > 1; }, }, { key: "getPluralFormsOfKey", value: function (e, t) { var n = this, r = [], o = this.getRule(e); return o ? (o.numbers.forEach(function (o) { var i = n.getSuffix(e, o); r.push("".concat(t).concat(i)); }), r) : r; }, }, { key: "getSuffix", value: function (e, t) { var n = this, r = this.getRule(e); if (r) { var o = r.noAbs ? r.plurals(t) : r.plurals(Math.abs(t)), i = r.numbers[o]; this.options.simplifyPluralSuffix && 2 === r.numbers.length && 1 === r.numbers[0] && (2 === i ? (i = "plural") : 1 === i && (i = "")); var a = function () { return n.options.prepend && i.toString() ? n.options.prepend + i.toString() : i.toString(); }; return "v1" === this.options.compatibilityJSON ? 1 === i ? "" : "number" == typeof i ? "_plural_".concat(i.toString()) : a() : "v2" === this.options.compatibilityJSON ? a() : this.options.simplifyPluralSuffix && 2 === r.numbers.length && 1 === r.numbers[0] ? a() : this.options.prepend && o.toString() ? this.options.prepend + o.toString() : o.toString(); } return this.logger.warn("no plural rule found for: ".concat(e)), ""; }, }, ]), e ); })(), F = (function () { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; o(this, e), (this.logger = h.create("interpolator")), (this.options = t), (this.format = (t.interpolation && t.interpolation.format) || function (e) { return e; }), this.init(t); } return ( a(e, [ { key: "init", value: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; e.interpolation || (e.interpolation = { escapeValue: !0 }); var t = e.interpolation; (this.escape = void 0 !== t.escape ? t.escape : w), (this.escapeValue = void 0 === t.escapeValue || t.escapeValue), (this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape), (this.prefix = t.prefix ? x(t.prefix) : t.prefixEscaped || "{{"), (this.suffix = t.suffix ? x(t.suffix) : t.suffixEscaped || "}}"), (this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ","), (this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-"), (this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || ""), (this.nestingPrefix = t.nestingPrefix ? x(t.nestingPrefix) : t.nestingPrefixEscaped || x("$t(")), (this.nestingSuffix = t.nestingSuffix ? x(t.nestingSuffix) : t.nestingSuffixEscaped || x(")")), (this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3), this.resetRegExp(); }, }, { key: "reset", value: function () { this.options && this.init(this.options); }, }, { key: "resetRegExp", value: function () { var e = "".concat(this.prefix, "(.+?)").concat(this.suffix); this.regexp = new RegExp(e, "g"); var t = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix); this.regexpUnescape = new RegExp(t, "g"); var n = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix); this.nestingRegexp = new RegExp(n, "g"); }, }, { key: "interpolate", value: function (e, t, n, o) { var i, a, s, u = this, l = r({}, (this.options && this.options.interpolation && this.options.interpolation.defaultVariables) || {}, t); function c(e) { return e.replace(/\$/g, "$$$$"); } var f = function (e) { if (e.indexOf(u.formatSeparator) < 0) return k(l, e); var t = e.split(u.formatSeparator), r = t.shift().trim(), o = t.join(u.formatSeparator).trim(); return u.format(k(l, r), o, n); }; this.resetRegExp(); var p = (o && o.missingInterpolationHandler) || this.options.missingInterpolationHandler; for (s = 0; (i = this.regexpUnescape.exec(e)); ) { if (void 0 === (a = f(i[1].trim()))) if ("function" == typeof p) { var g = p(e, i, o); a = "string" == typeof g ? g : ""; } else this.logger.warn("missed to pass in variable ".concat(i[1], " for interpolating ").concat(e)), (a = ""); else "string" == typeof a || this.useRawValueToEscape || (a = y(a)); if (((e = e.replace(i[0], c(a))), (this.regexpUnescape.lastIndex = 0), ++s >= this.maxReplaces)) break; } for (s = 0; (i = this.regexp.exec(e)); ) { if (void 0 === (a = f(i[1].trim()))) if ("function" == typeof p) { var h = p(e, i, o); a = "string" == typeof h ? h : ""; } else this.logger.warn("missed to pass in variable ".concat(i[1], " for interpolating ").concat(e)), (a = ""); else "string" == typeof a || this.useRawValueToEscape || (a = y(a)); if (((a = this.escapeValue ? c(this.escape(a)) : c(a)), (e = e.replace(i[0], a)), (this.regexp.lastIndex = 0), ++s >= this.maxReplaces)) break; } return e; }, }, { key: "nest", value: function (e, t) { var n, o, i = r({}, arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}); function a(e, t) { if (e.indexOf(",") < 0) return e; var n = e.split(","); e = n.shift(); var o = n.join(","); o = (o = this.interpolate(o, i)).replace(/'/g, '"'); try { (i = JSON.parse(o)), t && (i = r({}, t, i)); } catch (t) { this.logger.error("failed parsing options string in nesting for key ".concat(e), t); } return e; } for (i.applyPostProcessor = !1; (n = this.nestingRegexp.exec(e)); ) { if ((o = t(a.call(this, n[1].trim(), i), i)) && n[0] === e && "string" != typeof o) return o; "string" != typeof o && (o = y(o)), o || (this.logger.warn("missed to resolve ".concat(n[1], " for nesting ").concat(e)), (o = "")), (e = e.replace(n[0], o)), (this.regexp.lastIndex = 0); } return e; }, }, ]), e ); })(); function A(e, t) { return ( (function (e) { if (Array.isArray(e)) return e; })(e) || (function (e, t) { var n = [], r = !0, o = !1, i = void 0; try { for (var a, s = e[Symbol.iterator](); !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t); r = !0); } catch (e) { (o = !0), (i = e); } finally { try { r || null == s.return || s.return(); } finally { if (o) throw i; } } return n; })(e, t) || (function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); })() ); } var T = (function (e) { function t(e, n, r) { var i, a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; return ( o(this, t), (i = u(this, l(t).call(this))), d.call(s(i)), (i.backend = e), (i.store = n), (i.languageUtils = r.languageUtils), (i.options = a), (i.logger = h.create("backendConnector")), (i.state = {}), (i.queue = []), i.backend && i.backend.init && i.backend.init(r, a.backend, a), i ); } return ( f(t, d), a(t, [ { key: "queueLoad", value: function (e, t, n, r) { var o = this, i = [], a = [], s = [], u = []; return ( e.forEach(function (e) { var r = !0; t.forEach(function (t) { var s = "".concat(e, "|").concat(t); !n.reload && o.store.hasResourceBundle(e, t) ? (o.state[s] = 2) : o.state[s] < 0 || (1 === o.state[s] ? a.indexOf(s) < 0 && a.push(s) : ((o.state[s] = 1), (r = !1), a.indexOf(s) < 0 && a.push(s), i.indexOf(s) < 0 && i.push(s), u.indexOf(t) < 0 && u.push(t))); }), r || s.push(e); }), (i.length || a.length) && this.queue.push({ pending: a, loaded: {}, errors: [], callback: r }), { toLoad: i, pending: a, toLoadLanguages: s, toLoadNamespaces: u } ); }, }, { key: "loaded", value: function (e, t, n) { var r = A(e.split("|"), 2), o = r[0], i = r[1]; t && this.emit("failedLoading", o, i, t), n && this.store.addResourceBundle(o, i, n), (this.state[e] = t ? -1 : 2); var a = {}; this.queue.forEach(function (n) { var r, s, u, l, c, f; (r = n.loaded), (s = i), (l = m(r, [o], Object)), (c = l.obj), (f = l.k), (c[f] = c[f] || []), u && (c[f] = c[f].concat(s)), u || c[f].push(s), (function (e, t) { for (var n = e.indexOf(t); -1 !== n; ) e.splice(n, 1), (n = e.indexOf(t)); })(n.pending, e), t && n.errors.push(t), 0 !== n.pending.length || n.done || (Object.keys(n.loaded).forEach(function (e) { a[e] || (a[e] = []), n.loaded[e].length && n.loaded[e].forEach(function (t) { a[e].indexOf(t) < 0 && a[e].push(t); }); }), (n.done = !0), n.errors.length ? n.callback(n.errors) : n.callback()); }), this.emit("loaded", a), (this.queue = this.queue.filter(function (e) { return !e.done; })); }, }, { key: "read", value: function (e, t, n) { var r = this, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0, i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 250, a = arguments.length > 5 ? arguments[5] : void 0; return e.length ? this.backend[n](e, t, function (s, u) { s && u && o < 5 ? setTimeout(function () { r.read.call(r, e, t, n, o + 1, 2 * i, a); }, i) : a(s, u); }) : a(null, {}); }, }, { key: "prepareLoading", value: function (e, t) { var n = this, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o = arguments.length > 3 ? arguments[3] : void 0; if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), o && o(); "string" == typeof e && (e = this.languageUtils.toResolveHierarchy(e)), "string" == typeof t && (t = [t]); var i = this.queueLoad(e, t, r, o); if (!i.toLoad.length) return i.pending.length || o(), null; i.toLoad.forEach(function (e) { n.loadOne(e); }); }, }, { key: "load", value: function (e, t, n) { this.prepareLoading(e, t, {}, n); }, }, { key: "reload", value: function (e, t, n) { this.prepareLoading(e, t, { reload: !0 }, n); }, }, { key: "loadOne", value: function (e) { var t = this, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "", r = A(e.split("|"), 2), o = r[0], i = r[1]; this.read(o, i, "read", null, null, function (r, a) { r && t.logger.warn("".concat(n, "loading namespace ").concat(i, " for language ").concat(o, " failed"), r), !r && a && t.logger.log("".concat(n, "loaded namespace ").concat(i, " for language ").concat(o), a), t.loaded(e, r, a); }); }, }, { key: "saveMissing", value: function (e, t, n, o, i) { var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {}; this.backend && this.backend.create && this.backend.create(e, t, n, o, null, r({}, a, { isUpdate: i })), e && e[0] && this.store.addResource(e[0], t, n, o); }, }, ]), t ); })(); function V(e) { return ( "string" == typeof e.ns && (e.ns = [e.ns]), "string" == typeof e.fallbackLng && (e.fallbackLng = [e.fallbackLng]), "string" == typeof e.fallbackNS && (e.fallbackNS = [e.fallbackNS]), e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e ); } function U() {} return new ((function (e) { function n() { var e, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0; if ((o(this, n), (e = u(this, l(n).call(this))), d.call(s(e)), (e.options = V(t)), (e.services = {}), (e.logger = h), (e.modules = { external: [] }), r && !e.isInitialized && !t.isClone)) { if (!e.options.initImmediate) return e.init(t, r), u(e, s(e)); setTimeout(function () { e.init(t, r); }, 0); } return e; } return ( f(n, d), a(n, [ { key: "init", value: function () { var e = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0; function i(e) { return e ? ("function" == typeof e ? new e() : e) : null; } if ( ("function" == typeof n && ((o = n), (n = {})), (this.options = r( {}, { debug: !1, initImmediate: !0, ns: ["translation"], defaultNS: ["translation"], fallbackLng: ["dev"], fallbackNS: !1, whitelist: !1, nonExplicitWhitelist: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, returnNull: !0, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: function (e) { var n = {}; if (("object" === t(e[1]) && (n = e[1]), "string" == typeof e[1] && (n.defaultValue = e[1]), "string" == typeof e[2] && (n.tDescription = e[2]), "object" === t(e[2]) || "object" === t(e[3]))) { var r = e[3] || e[2]; Object.keys(r).forEach(function (e) { n[e] = r[e]; }); } return n; }, interpolation: { escapeValue: !0, format: function (e, t, n) { return e; }, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", maxReplaces: 1e3, }, }, this.options, V(n) )), (this.format = this.options.interpolation.format), o || (o = U), !this.options.isClone) ) { this.modules.logger ? h.init(i(this.modules.logger), this.options) : h.init(null, this.options); var a = new N(this.options); this.store = new O(this.options.resources, this.options); var s = this.services; (s.logger = h), (s.resourceStore = this.store), (s.languageUtils = a), (s.pluralResolver = new P(a, { prepend: this.options.pluralSeparator, compatibilityJSON: this.options.compatibilityJSON, simplifyPluralSuffix: this.options.simplifyPluralSuffix })), (s.interpolator = new F(this.options)), (s.backendConnector = new T(i(this.modules.backend), s.resourceStore, s, this.options)), s.backendConnector.on("*", function (t) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o]; e.emit.apply(e, [t].concat(r)); }), this.modules.languageDetector && ((s.languageDetector = i(this.modules.languageDetector)), s.languageDetector.init(s, this.options.detection, this.options)), this.modules.i18nFormat && ((s.i18nFormat = i(this.modules.i18nFormat)), s.i18nFormat.init && s.i18nFormat.init(this)), (this.translator = new j(this.services, this.options)), this.translator.on("*", function (t) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o]; e.emit.apply(e, [t].concat(r)); }), this.modules.external.forEach(function (t) { t.init && t.init(e); }); } ["getResource", "addResource", "addResources", "addResourceBundle", "removeResourceBundle", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach(function (t) { e[t] = function () { var n; return (n = e.store)[t].apply(n, arguments); }; }); var u = v(), l = function () { e.changeLanguage(e.options.lng, function (t, n) { (e.isInitialized = !0), e.logger.log("initialized", e.options), e.emit("initialized", e.options), u.resolve(n), o(t, n); }); }; return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), u; }, }, { key: "loadResources", value: function () { var e = this, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : U; if (!this.options.resources || this.options.partialBundledLanguages) { if (this.language && "cimode" === this.language.toLowerCase()) return t(); var n = [], r = function (t) { t && e.services.languageUtils.toResolveHierarchy(t).forEach(function (e) { n.indexOf(e) < 0 && n.push(e); }); }; if (this.language) r(this.language); else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function (e) { return r(e); }); this.options.preload && this.options.preload.forEach(function (e) { return r(e); }), this.services.backendConnector.load(n, this.options.ns, t); } else t(null); }, }, { key: "reloadResources", value: function (e, t, n) { var r = v(); return ( e || (e = this.languages), t || (t = this.options.ns), n || (n = U), this.services.backendConnector.reload(e, t, function (e) { r.resolve(), n(e); }), r ); }, }, { key: "use", value: function (e) { return ( "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || (e.log && e.warn && e.error)) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && R.addPostProcessor(e), "3rdParty" === e.type && this.modules.external.push(e), this ); }, }, { key: "changeLanguage", value: function (e, t) { var n = this, r = v(); this.emit("languageChanging", e); var o = function (e) { e && ((n.language = e), (n.languages = n.services.languageUtils.toResolveHierarchy(e)), n.translator.language || n.translator.changeLanguage(e), n.services.languageDetector && n.services.languageDetector.cacheUserLanguage(e)), n.loadResources(function (o) { !(function (e, o) { n.translator.changeLanguage(o), o && (n.emit("languageChanged", o), n.logger.log("languageChanged", o)), r.resolve(function () { return n.t.apply(n, arguments); }), t && t(e, function () { return n.t.apply(n, arguments); }); })(o, e); }); }; return ( e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(o) : o(e) : o(this.services.languageDetector.detect()), r ); }, }, { key: "getFixedT", value: function (e, n) { var o = this, i = function e(n, i) { var a; if ("object" !== t(i)) { for (var s = arguments.length, u = new Array(s > 2 ? s - 2 : 0), l = 2; l < s; l++) u[l - 2] = arguments[l]; a = o.options.overloadTranslationOptionHandler([n, i].concat(u)); } else a = r({}, i); return (a.lng = a.lng || e.lng), (a.lngs = a.lngs || e.lngs), (a.ns = a.ns || e.ns), o.t(n, a); }; return "string" == typeof e ? (i.lng = e) : (i.lngs = e), (i.ns = n), i; }, }, { key: "t", value: function () { var e; return this.translator && (e = this.translator).translate.apply(e, arguments); }, }, { key: "exists", value: function () { var e; return this.translator && (e = this.translator).exists.apply(e, arguments); }, }, { key: "setDefaultNamespace", value: function (e) { this.options.defaultNS = e; }, }, { key: "loadNamespaces", value: function (e, t) { var n = this, r = v(); return this.options.ns ? ("string" == typeof e && (e = [e]), e.forEach(function (e) { n.options.ns.indexOf(e) < 0 && n.options.ns.push(e); }), this.loadResources(function (e) { r.resolve(), t && t(e); }), r) : (t && t(), Promise.resolve()); }, }, { key: "loadLanguages", value: function (e, t) { var n = v(); "string" == typeof e && (e = [e]); var r = this.options.preload || [], o = e.filter(function (e) { return r.indexOf(e) < 0; }); return o.length ? ((this.options.preload = r.concat(o)), this.loadResources(function (e) { n.resolve(), t && t(e); }), n) : (t && t(), Promise.resolve()); }, }, { key: "dir", value: function (e) { if ((e || (e = this.languages && this.languages.length > 0 ? this.languages[0] : this.language), !e)) return "rtl"; return [ "ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", ].indexOf(this.services.languageUtils.getLanguagePartFromCode(e)) >= 0 ? "rtl" : "ltr"; }, }, { key: "createInstance", value: function () { return new n(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, arguments.length > 1 ? arguments[1] : void 0); }, }, { key: "cloneInstance", value: function () { var e = this, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : U, i = r({}, this.options, t, { isClone: !0 }), a = new n(i); return ( ["store", "services", "language"].forEach(function (t) { a[t] = e[t]; }), (a.translator = new j(a.services, a.options)), a.translator.on("*", function (e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; a.emit.apply(a, [e].concat(n)); }), a.init(i, o), (a.translator.options = a.options), a ); }, }, ]), n ); })())(); }); // I18n XHR Backend !(function (t, e) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = e()) : "function" == typeof define && define.amd ? define(e) : ((t = t || self).i18nextXHRBackend = e()); })(this, function () { "use strict"; function t(t, e) { for (var n = 0; n < e.length; n++) { var o = e[n]; (o.enumerable = o.enumerable || !1), (o.configurable = !0), "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); } } var e = [], n = e.forEach, o = e.slice; function i(t) { return ( n.call(o.call(arguments, 1), function (e) { if (e) for (var n in e) void 0 === t[n] && (t[n] = e[n]); }), t ); } function r(t) { return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); } function a(t) { return (a = "function" == typeof Symbol && "symbol" === r(Symbol.iterator) ? function (t) { return r(t); } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : r(t); })(t); } function s(t, e) { if (e && "object" === a(e)) { var n = "", o = encodeURIComponent; for (var i in e) n += "&" + o(i) + "=" + o(e[i]); if (!n) return t; t = t + (-1 !== t.indexOf("?") ? "&" : "?") + n.slice(1); } return t; } function l(t, e, n, o, i) { o && "object" === a(o) && (i || (o._t = new Date()), (o = s("", o).slice(1))), e.queryStringParams && (t = s(t, e.queryStringParams)); try { var r; (r = XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o ? "POST" : "GET", t, 1), e.crossDomain || r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), (r.withCredentials = !!e.withCredentials), o && r.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), r.overrideMimeType && r.overrideMimeType("application/json"); var l = e.customHeaders; if ((l = "function" == typeof l ? l() : l)) for (var u in l) r.setRequestHeader(u, l[u]); (r.onreadystatechange = function () { r.readyState > 3 && n && n(r.responseText, r); }), r.send(o); } catch (t) { console && console.log(t); } } function u() { return { loadPath: "/locales/{{lng}}/{{ns}}.json", addPath: "/locales/add/{{lng}}/{{ns}}", allowMultiLoading: !1, parse: JSON.parse, parsePayload: function (t, e, n) { return (function (t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (t[e] = n), t; })({}, e, n || ""); }, crossDomain: !1, ajax: l, }; } var c = (function () { function e(t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; !(function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); })(this, e), this.init(t, n), (this.type = "backend"); } var n, o, r; return ( (n = e), (o = [ { key: "init", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; (this.services = t), (this.options = i(e, this.options || {}, u())); }, }, { key: "readMulti", value: function (t, e, n) { var o = this.options.loadPath; "function" == typeof this.options.loadPath && (o = this.options.loadPath(t, e)); var i = this.services.interpolator.interpolate(o, { lng: t.join("+"), ns: e.join("+") }); this.loadUrl(i, n); }, }, { key: "read", value: function (t, e, n) { var o = this.options.loadPath; "function" == typeof this.options.loadPath && (o = this.options.loadPath([t], [e])); var i = this.services.interpolator.interpolate(o, { lng: t, ns: e }); this.loadUrl(i, n); }, }, { key: "loadUrl", value: function (t, e) { var n = this; this.options.ajax(t, this.options, function (o, i) { if (i.status >= 500 && i.status < 600) return e("failed loading " + t, !0); if (i.status >= 400 && i.status < 500) return e("failed loading " + t, !1); var r, a; try { r = n.options.parse(o, t); } catch (e) { a = "failed parsing " + t + " to json"; } if (a) return e(a, !1); e(null, r); }); }, }, { key: "create", value: function (t, e, n, o) { var i = this; "string" == typeof t && (t = [t]); var r = this.options.parsePayload(e, n, o); t.forEach(function (t) { var n = i.services.interpolator.interpolate(i.options.addPath, { lng: t, ns: e }); i.options.ajax(n, i.options, function (t, e) {}, r); }); }, }, ]) && t(n.prototype, o), r && t(n, r), e ); })(); return (c.type = "backend"), c; }); // Language detector i18n !(function (e, o) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = o()) : "function" == typeof define && define.amd ? define(o) : (e.i18nextBrowserLanguageDetector = o()); })(this, function () { "use strict"; function e(e) { return ( a.call(i.call(arguments, 1), function (o) { if (o) for (var t in o) void 0 === e[t] && (e[t] = o[t]); }), e ); } function o(e, o) { if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function"); } function t() { return { order: ["querystring", "cookie", "localStorage", "navigator", "htmlTag"], lookupQuerystring: "lng", lookupCookie: "i18next", lookupLocalStorage: "i18nextLng", caches: ["localStorage"], excludeCacheFor: ["cimode"] }; } var n = [], a = n.forEach, i = n.slice, r = { create: function (e, o, t, n) { var a = void 0; if (t) { var i = new Date(); i.setTime(i.getTime() + 60 * t * 1e3), (a = "; expires=" + i.toGMTString()); } else a = ""; (n = n ? "domain=" + n + ";" : ""), (document.cookie = e + "=" + o + a + ";" + n + "path=/"); }, read: function (e) { for (var o = e + "=", t = document.cookie.split(";"), n = 0; n < t.length; n++) { for (var a = t[n]; " " === a.charAt(0); ) a = a.substring(1, a.length); if (0 === a.indexOf(o)) return a.substring(o.length, a.length); } return null; }, remove: function (e) { this.create(e, "", -1); }, }, u = { name: "cookie", lookup: function (e) { var o = void 0; if (e.lookupCookie && "undefined" != typeof document) { var t = r.read(e.lookupCookie); t && (o = t); } return o; }, cacheUserLanguage: function (e, o) { o.lookupCookie && "undefined" != typeof document && r.create(o.lookupCookie, e, o.cookieMinutes, o.cookieDomain); }, }, c = { name: "querystring", lookup: function (e) { var o = void 0; if ("undefined" != typeof window) for (var t = window.location.search.substring(1), n = t.split("&"), a = 0; a < n.length; a++) { var i = n[a].indexOf("="); if (i > 0) { var r = n[a].substring(0, i); r === e.lookupQuerystring && (o = n[a].substring(i + 1)); } } return o; }, }, l = void 0; try { l = "undefined" !== window && null !== window.localStorage; window.localStorage.setItem("i18next.translate.boo", "foo"), window.localStorage.removeItem("i18next.translate.boo"); } catch (e) { l = !1; } var s = { name: "localStorage", lookup: function (e) { var o = void 0; if (e.lookupLocalStorage && l) { var t = window.localStorage.getItem(e.lookupLocalStorage); t && (o = t); } return o; }, cacheUserLanguage: function (e, o) { o.lookupLocalStorage && l && window.localStorage.setItem(o.lookupLocalStorage, e); }, }, d = { name: "navigator", lookup: function (e) { var o = []; if ("undefined" != typeof navigator) { if (navigator.languages) for (var t = 0; t < navigator.languages.length; t++) o.push(navigator.languages[t]); navigator.userLanguage && o.push(navigator.userLanguage), navigator.language && o.push(navigator.language); } return o.length > 0 ? o : void 0; }, }, f = { name: "htmlTag", lookup: function (e) { var o = void 0, t = e.htmlTag || ("undefined" != typeof document ? document.documentElement : null); return t && "function" == typeof t.getAttribute && (o = t.getAttribute("lang")), o; }, }, g = { name: "path", lookup: function (e) { var o = void 0; if ("undefined" != typeof window) { var t = window.location.pathname.match(/\/([a-zA-Z-]*)/g); if (t instanceof Array) if ("number" == typeof e.lookupFromPathIndex) { if ("string" != typeof t[e.lookupFromPathIndex]) return; o = t[e.lookupFromPathIndex].replace("/", ""); } else o = t[0].replace("/", ""); } return o; }, }, p = { name: "subdomain", lookup: function (e) { var o = void 0; if ("undefined" != typeof window) { var t = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi); t instanceof Array && (o = "number" == typeof e.lookupFromSubdomainIndex ? t[e.lookupFromSubdomainIndex].replace("http://", "").replace("https://", "").replace(".", "") : t[0].replace("http://", "").replace("https://", "").replace(".", "")); } return o; }, }, h = (function () { function e(e, o) { for (var t = 0; t < o.length; t++) { var n = o[t]; (n.enumerable = n.enumerable || !1), (n.configurable = !0), "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n); } } return function (o, t, n) { return t && e(o.prototype, t), n && e(o, n), o; }; })(), v = (function () { function n(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(this, n), (this.type = "languageDetector"), (this.detectors = {}), this.init(e, t); } return ( h(n, [ { key: "init", value: function (o) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; (this.services = o), (this.options = e(n, this.options || {}, t())), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), (this.i18nOptions = a), this.addDetector(u), this.addDetector(c), this.addDetector(s), this.addDetector(d), this.addDetector(f), this.addDetector(g), this.addDetector(p); }, }, { key: "addDetector", value: function (e) { this.detectors[e.name] = e; }, }, { key: "detect", value: function (e) { var o = this; e || (e = this.options.order); var t = []; e.forEach(function (e) { if (o.detectors[e]) { var n = o.detectors[e].lookup(o.options); n && "string" == typeof n && (n = [n]), n && (t = t.concat(n)); } }); var n = void 0; if ( (t.forEach(function (e) { if (!n) { var t = o.services.languageUtils.formatLanguageCode(e); o.services.languageUtils.isWhitelisted(t) && (n = t); } }), !n) ) { var a = this.i18nOptions.fallbackLng; "string" == typeof a && (a = [a]), a || (a = []), (n = "[object Array]" === Object.prototype.toString.apply(a) ? a[0] : a[0] || (a.default && a.default[0])); } return n; }, }, { key: "cacheUserLanguage", value: function (e, o) { var t = this; o || (o = this.options.caches), o && ((this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1) || o.forEach(function (o) { t.detectors[o] && t.detectors[o].cacheUserLanguage(e, t.options); })); }, }, ]), n ); })(); return (v.type = "languageDetector"), v; }); // I18n Jquery !(function (t, e) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = e()) : "function" == typeof define && define.amd ? define(e) : (t.jqueryI18next = e()); })(this, function () { "use strict"; function t(t, a) { function i(n, a, i) { function r(t, n) { return f.parseDefaultValueFromContent ? e({}, t, { defaultValue: n }) : t; } if (0 !== a.length) { var o = "text"; if (0 === a.indexOf("[")) { var l = a.split("]"); (a = l[1]), (o = l[0].substr(1, l[0].length - 1)); } if ((a.indexOf(";") === a.length - 1 && (a = a.substr(0, a.length - 2)), "html" === o)) n.html(t.t(a, r(i, n.html()))); else if ("text" === o) n.text(t.t(a, r(i, n.text()))); else if ("prepend" === o) n.prepend(t.t(a, r(i, n.html()))); else if ("append" === o) n.append(t.t(a, r(i, n.html()))); else if (0 === o.indexOf("data-")) { var s = o.substr("data-".length), d = t.t(a, r(i, n.data(s))); n.data(s, d), n.attr(o, d); } else n.attr(o, t.t(a, r(i, n.attr(o)))); } } function r(t, n) { var r = t.attr(f.selectorAttr); if ((r || void 0 === r || !1 === r || (r = t.text() || t.val()), r)) { var o = t, l = t.data(f.targetAttr); if ((l && (o = t.find(l) || t), n || !0 !== f.useOptionsAttr || (n = t.data(f.optionsAttr)), (n = n || {}), r.indexOf(";") >= 0)) { var s = r.split(";"); a.each(s, function (t, e) { "" !== e && i(o, e.trim(), n); }); } else i(o, r, n); if (!0 === f.useOptionsAttr) { var d = {}; (d = e({ clone: d }, n)), delete d.lng, t.data(f.optionsAttr, d); } } } function o(t) { return this.each(function () { r(a(this), t), a(this) .find("[" + f.selectorAttr + "]") .each(function () { r(a(this), t); }); }); } var f = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; (f = e({}, n, f)), (a[f.tName] = t.t.bind(t)), (a[f.i18nName] = t), (a.fn[f.handleName] = o); } var e = Object.assign || function (t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]); } return t; }, n = { tName: "t", i18nName: "i18n", handleName: "localize", selectorAttr: "data-i18n", targetAttr: "i18n-target", optionsAttr: "i18n-options", useOptionsAttr: !1, parseDefaultValueFromContent: !0 }; return { init: t }; }); // Promises - for IE11 /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE * @version 3.2.1 */ (function () { "use strict"; function t(t) { return "function" == typeof t || ("object" == typeof t && null !== t); } function e(t) { return "function" == typeof t; } function n(t) { G = t; } function r(t) { Q = t; } function o() { return function () { process.nextTick(a); }; } function i() { return function () { B(a); }; } function s() { var t = 0, e = new X(a), n = document.createTextNode(""); return ( e.observe(n, { characterData: !0 }), function () { n.data = t = ++t % 2; } ); } function u() { var t = new MessageChannel(); return ( (t.port1.onmessage = a), function () { t.port2.postMessage(0); } ); } function c() { return function () { setTimeout(a, 1); }; } function a() { for (var t = 0; J > t; t += 2) { var e = tt[t], n = tt[t + 1]; e(n), (tt[t] = void 0), (tt[t + 1] = void 0); } J = 0; } function f() { try { var t = require, e = t("vertx"); return (B = e.runOnLoop || e.runOnContext), i(); } catch (n) { return c(); } } function l(t, e) { var n = this, r = new this.constructor(p); void 0 === r[rt] && k(r); var o = n._state; if (o) { var i = arguments[o - 1]; Q(function () { x(o, r, i, n._result); }); } else E(n, r, t, e); return r; } function h(t) { var e = this; if (t && "object" == typeof t && t.constructor === e) return t; var n = new e(p); return g(n, t), n; } function p() {} function _() { return new TypeError("You cannot resolve a promise with itself"); } function d() { return new TypeError("A promises callback cannot return that same promise."); } function v(t) { try { return t.then; } catch (e) { return (ut.error = e), ut; } } function y(t, e, n, r) { try { t.call(e, n, r); } catch (o) { return o; } } function m(t, e, n) { Q(function (t) { var r = !1, o = y( n, e, function (n) { r || ((r = !0), e !== n ? g(t, n) : S(t, n)); }, function (e) { r || ((r = !0), j(t, e)); }, "Settle: " + (t._label || " unknown promise") ); !r && o && ((r = !0), j(t, o)); }, t); } function b(t, e) { e._state === it ? S(t, e._result) : e._state === st ? j(t, e._result) : E( e, void 0, function (e) { g(t, e); }, function (e) { j(t, e); } ); } function w(t, n, r) { n.constructor === t.constructor && r === et && constructor.resolve === nt ? b(t, n) : r === ut ? j(t, ut.error) : void 0 === r ? S(t, n) : e(r) ? m(t, n, r) : S(t, n); } function g(e, n) { e === n ? j(e, _()) : t(n) ? w(e, n, v(n)) : S(e, n); } function A(t) { t._onerror && t._onerror(t._result), T(t); } function S(t, e) { t._state === ot && ((t._result = e), (t._state = it), 0 !== t._subscribers.length && Q(T, t)); } function j(t, e) { t._state === ot && ((t._state = st), (t._result = e), Q(A, t)); } function E(t, e, n, r) { var o = t._subscribers, i = o.length; (t._onerror = null), (o[i] = e), (o[i + it] = n), (o[i + st] = r), 0 === i && t._state && Q(T, t); } function T(t) { var e = t._subscribers, n = t._state; if (0 !== e.length) { for (var r, o, i = t._result, s = 0; s < e.length; s += 3) (r = e[s]), (o = e[s + n]), r ? x(n, r, o, i) : o(i); t._subscribers.length = 0; } } function M() { this.error = null; } function P(t, e) { try { return t(e); } catch (n) { return (ct.error = n), ct; } } function x(t, n, r, o) { var i, s, u, c, a = e(r); if (a) { if (((i = P(r, o)), i === ct ? ((c = !0), (s = i.error), (i = null)) : (u = !0), n === i)) return void j(n, d()); } else (i = o), (u = !0); n._state !== ot || (a && u ? g(n, i) : c ? j(n, s) : t === it ? S(n, i) : t === st && j(n, i)); } function C(t, e) { try { e( function (e) { g(t, e); }, function (e) { j(t, e); } ); } catch (n) { j(t, n); } } function O() { return at++; } function k(t) { (t[rt] = at++), (t._state = void 0), (t._result = void 0), (t._subscribers = []); } function Y(t) { return new _t(this, t).promise; } function q(t) { var e = this; return new e( I(t) ? function (n, r) { for (var o = t.length, i = 0; o > i; i++) e.resolve(t[i]).then(n, r); } : function (t, e) { e(new TypeError("You must pass an array to race.")); } ); } function F(t) { var e = this, n = new e(p); return j(n, t), n; } function D() { throw new TypeError("You must pass a resolver function as the first argument to the promise constructor"); } function K() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } function L(t) { (this[rt] = O()), (this._result = this._state = void 0), (this._subscribers = []), p !== t && ("function" != typeof t && D(), this instanceof L ? C(this, t) : K()); } function N(t, e) { (this._instanceConstructor = t), (this.promise = new t(p)), this.promise[rt] || k(this.promise), I(e) ? ((this._input = e), (this.length = e.length), (this._remaining = e.length), (this._result = new Array(this.length)), 0 === this.length ? S(this.promise, this._result) : ((this.length = this.length || 0), this._enumerate(), 0 === this._remaining && S(this.promise, this._result))) : j(this.promise, U()); } function U() { return new Error("Array Methods must be provided an Array"); } function W() { var t; if ("undefined" != typeof global) t = global; else if ("undefined" != typeof self) t = self; else try { t = Function("return this")(); } catch (e) { throw new Error("polyfill failed because global object is unavailable in this environment"); } var n = t.Promise; (!n || "[object Promise]" !== Object.prototype.toString.call(n.resolve()) || n.cast) && (t.Promise = pt); } var z; z = Array.isArray ? Array.isArray : function (t) { return "[object Array]" === Object.prototype.toString.call(t); }; var B, G, H, I = z, J = 0, Q = function (t, e) { (tt[J] = t), (tt[J + 1] = e), (J += 2), 2 === J && (G ? G(a) : H()); }, R = "undefined" != typeof window ? window : void 0, V = R || {}, X = V.MutationObserver || V.WebKitMutationObserver, Z = "undefined" == typeof self && "undefined" != typeof process && "[object process]" === {}.toString.call(process), $ = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel, tt = new Array(1e3); H = Z ? o() : X ? s() : $ ? u() : void 0 === R && "function" == typeof require ? f() : c(); var et = l, nt = h, rt = Math.random().toString(36).substring(16), ot = void 0, it = 1, st = 2, ut = new M(), ct = new M(), at = 0, ft = Y, lt = q, ht = F, pt = L; (L.all = ft), (L.race = lt), (L.resolve = nt), (L.reject = ht), (L._setScheduler = n), (L._setAsap = r), (L._asap = Q), (L.prototype = { constructor: L, then: et, catch: function (t) { return this.then(null, t); }, }); var _t = N; (N.prototype._enumerate = function () { for (var t = this.length, e = this._input, n = 0; this._state === ot && t > n; n++) this._eachEntry(e[n], n); }), (N.prototype._eachEntry = function (t, e) { var n = this._instanceConstructor, r = n.resolve; if (r === nt) { var o = v(t); if (o === et && t._state !== ot) this._settledAt(t._state, e, t._result); else if ("function" != typeof o) this._remaining--, (this._result[e] = t); else if (n === pt) { var i = new n(p); w(i, t, o), this._willSettleAt(i, e); } else this._willSettleAt( new n(function (e) { e(t); }), e ); } else this._willSettleAt(r(t), e); }), (N.prototype._settledAt = function (t, e, n) { var r = this.promise; r._state === ot && (this._remaining--, t === st ? j(r, n) : (this._result[e] = n)), 0 === this._remaining && S(r, this._result); }), (N.prototype._willSettleAt = function (t, e) { var n = this; E( t, void 0, function (t) { n._settledAt(it, e, t); }, function (t) { n._settledAt(st, e, t); } ); }); var dt = W, vt = { Promise: pt, polyfill: dt }; "function" == typeof define && define.amd ? define(function () { return vt; }) : "undefined" != typeof module && module.exports ? (module.exports = vt) : "undefined" != typeof this && (this.ES6Promise = vt), dt(); }.call(this)); ================================================ FILE: public/frontend/crossbrowserjs/html5shiv.js ================================================ /* HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d li > a { line-height: 40px; } .navbar.navbar-sm .navbar-nav > li > a { line-height: 30px; } .navbar-form .form-control { border-radius: 40px; height: 45px; min-width: 300px; font-size: 16px; padding: 0 65px 0 20px; } .navbar-form .btn { font-size: 24px; } /* Container Setting */ .container { width: 1360px; } /* Content Setting */ .content { padding: 45px 0 75px; } /* Search Banner Setting */ .search-banner { padding: 70px 0; } .search-banner h1 { font-size: 48px; } .search-banner .form-control { font-size: 18px; } .search-banner .btn .fa { display: block; font-size: 24px; line-height: 24px; height: 24px; } .search-banner h5 { font-size: 16px; } .search-banner .container { width: 860px; } /* Popular Tags Setting */ .popular-tags > li > a { padding: 4px 12px; } /* Panel Setting */ .panel.panel-forum { border-width: 3px; } .panel-title { font-size: 16px; line-height: 24px; } /* Forum List Setting */ .forum-list > li + li, .threads-list > li + li { border-top-width: 3px; } .forum-list .info-container .info .title { font-size: 18px; } .forum-list .info-container .desc { font-size: 16px; line-height: 24px; } .forum-list .info-container .total-count { font-size: 18px; } .forum-list .info-container .latest-post .title, .forum-list .info-container .latest-post .time { font-size: 16px; } .forum-list .media { width: 72px; line-height: 72px; } .forum-list .info-container { margin-left: 89px; } .forum-list.forum-topic-list .info-start-end { line-height: 24px; } .forum-list.forum-topic-list .info-container .date-replies .replies { padding: 5px 15px; } .forum-list.forum-topic-list .info-container .date-replies .time { line-height: 13px; font-size: 13px; } .forum-list.forum-topic-list .info-container .date-replies .replies .total { font-size: 18px; line-height: 24px; } .forum-list.forum-topic-list .info-container .date-replies .replies .text { font-size: 13px; line-height: 17px; } .threads-list { font-size: 14px; } .threads-list > li .title { font-size: 16px; line-height: 24px; } .forum-list.forum-detail-list .info-container { margin-left: 92px; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; } .forum-list.forum-detail-list .post-user{ font-size: 16px; } .forum-list.forum-detail-list .post-content { font-size: 16px; line-height: 28px; } .forum-list.forum-detail-list .post-content pre { padding: 15px; font-size: 16px; } /* Footer Setting */ .footer h4 { font-size: 18px; } .footer p { font-size: 16px; line-height: 24px; } .footer .latest-post > li .title, .footer .latest-post > li .title a { font-size: 16px; line-height: 24px; } .footer .latest-post > li .time { font-size: 14px; } .footer-copyright { padding: 30px 0; } /* Page Title Setting */ .page-title { padding: 45px 0; } .page-title h1 { font-size: 36px; } /* Pagination Setting */ .pager li > a, .pager li > span, .pagination > li > a, .pagination > li > span { font-size: 16px; padding: 10px 15px; } /* Button Setting */ .btn { font-size: 16px; padding: 10px 15px; } /* Backgroun Cover Setting */ .has-bg .bg-cover img { width: 100%; } /* Theme Panel Setting */ .theme-panel { width: 248px; right: -248px; } .theme-panel .theme-list > li + li { margin-left: 7px; } .theme-panel .theme-list > li > a { width: 40px; height: 40px; } .theme-panel .theme-panel-content { padding: 10px; } .theme-panel .theme-collapse-btn { width: 60px; height: 60px; left: -60px; margin-top: -30px; font-size: 24px; line-height: 60px; } .theme-panel .theme-list > li.active > a:before { font-size: 20px; line-height: 40px; } /* Tooltip Setting */ .tooltip { font-size: 16px; } } @media (max-width: 767px) { /* Navbar Element Setting */ .navbar-form, .navbar.navbar-sm .navbar-form { border: none; margin: 0; } .navbar .navbar-nav > li > a { line-height: 20px; } /* Search Banner Element Setting */ .search-banner { padding: 30px 0; } .search-banner .container { width: 100%; } .search-banner h1 { font-size: 24px; } /* Content Element Setting */ .content { padding: 20px 0 30px; } .has-bg .bg-cover img { max-width: inherit; min-width: 100%; max-height: 100%; } /* Forum List Element Setting */ .forum-list .info-container .info, .forum-list .info-container .total-count, .forum-list .info-container .latest-post { float: none; width: auto; text-align: left; } .forum-list .info-container > div + div { margin-top: 10px; } /* Forum Topic List Setting */ .forum-list.forum-topic-list .info-container .info { padding-right: 0; } .forum-list.forum-topic-list .info-container .date-replies { position: relative; top: 0; margin-top: 5px; width: auto; text-align: left; } .forum-list.forum-topic-list .info-container .date-replies .time, .forum-list.forum-topic-list .info-container .date-replies .replies, .forum-list.forum-topic-list .info-container .date-replies .replies .total, .forum-list.forum-topic-list .info-container .date-replies .replies .text { display: inline-block; padding: 0; margin: 0; font-size: 11px; line-height: 11px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .forum-list.forum-topic-list .info-container .date-replies .replies { margin-left: 10px; border-left: 1px solid #ddd; padding-left: 10px; background: none; } /* Forum Details Page Setting */ .forum-list.forum-detail-list .media { width: 40px; line-height: 40px; } .forum-list.forum-detail-list .media .label { font-size: 9px; padding-left: 0; padding-right: 0; } .forum-list.forum-detail-list .info-container { margin-left: 50px; } } ================================================ FILE: public/frontend/css/forum/style.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ :: 1.0 General Reset & Setup ------------------------------------------- 1.1 Reset and overrides :: 2.0 Header Navbar Setting ------------------------------------------- 2.1 Navbar Element Setting 2.2 Small Navbar Setting :: 3.0 Search Banner Setting ------------------------------------------- 3.1 Search Banner Element Setting 3.2 Search Banner Popular Tags Setting :: 4.0 Content Setting ------------------------------------------- 4.1 Content Element Setting 4.2 Content Has Background Setting 4.3 Section Container Setting 4.4 Breadcrumb Setting 4.5 Page Title Setting :: 5.0 Forum Setting ------------------------------------------- 5.1 Panel Forum Setting 5.2 Forum List Setting 5.3 Forum Topic List Setting 5.4 Forum Threads List Setting 5.5 Forum Detail List Setting :: 6.0 Footer Setting ------------------------------------------- 6.1 Footer Element Setting 6.2 Footer Copyright Setting :: 7.0 Pace Loader Setting ------------------------------------------- 7.1 Pace Loader Element Setting :: 8.0 Predefined CSS Setting ------------------------------------------- 8.1 Predefined Classes :: 9.0 Basic Element Setting ------------------------------------------- 9.1 Component - Button 9.1.1 Component - Button - Default 9.1.2 Component - Button - White 9.1.3 Component - Button - Inverse 9.1.4 Component - Button - Primary 9.1.5 Component - Button - Success 9.1.6 Component - Button - Warning 9.1.7 Component - Button - Danger 9.1.8 Component - Button - Info 9.2 Component - Progress Bar 9.3 Component - From Control 9.4 Component - Dropdown Menu 9.5 Component - Tooltip 9.6 Component - Alert 9.7 Component - Note Setting 9.8 Component - Badge & Label Setting 9.9 Component - Pagination & pager 9.10 Component - Nav Setting 9.11 Component - Nav Tabs 9.12 Component - Nav Pills 9.13 Component - Tab Content 9.14 Component - Accordion Panel 9.15 Component - Panel 9.16 Component - Panel - Panel Expand 9.17 Component - Panel - Panel loading 9.18 Component - Modal Setting 9.19 Component - Media Object 9.20 Component - Tabl 9.21 Component - Well 9.22 Component - Jumbotron 9.23 Component - List Group 9.24 Component - Carousel 9.25 Component - Theme Panel */ /* ------------------------------- 1.0 General reset & setup ------------------------------- */ /* 1.1 Reset and overrides */ body { padding-top: 60px; background: #fff; font-size: 12px; font-family: 'Open Sans', "Helvetica Neue",Helvetica,Arial,sans-serif; color: #707478; } a { color: #00acac; } a:hover, a:focus { color: #008a8a; } /* ------------------------------- 2.0 Header Navbar Setting ------------------------------- */ /* 2.1 Navbar Element Setting */ .navbar { border: none; border-radius: 0; } .navbar.navbar-default { background: #fff; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.125); box-shadow: 0 1px 3px rgba(0,0,0,0.125); } .navbar-brand { height: 60px; line-height: 30px; font-size: 16px; } .navbar-brand img { max-height: 40px; display: block; margin: -5px 0; } .navbar-logo { border: 15px solid transparent; border-color: #4DCACA #31A3A3 #1D8888; float: left; border-radius: 6px; margin-right: 10px; } .navbar.navbar-default .navbar-brand { color: #000; } .navbar-nav > li > a { line-height: 30px; } .navbar-default .navbar-nav > li > a { color: #242a30; } .navbar-form, .navbar-toggle { margin-top: 13px; margin-bottom: 13px; } .navbar-form .form-group { position: relative; } .navbar-form .form-control { border-radius: 40px; padding-right: 45px; } .navbar-form .btn { position: absolute; right: 0; top: 0; background: none; border: none; font-size: 16px; -webkit-border-radius: 0 15px 15px 0; -moz-border-radius: 0 15px 15px 0; border-radius: 0 15px 15px 0; } /* 2.2 Small Navbar Setting */ .header.navbar .navbar-brand, .header.navbar .navbar-form, .header.navbar .navbar-nav > li > a, .header.navbar .navbar-toggle { -webkit-transition: all .2s linear; -moz-transition: all .2s linear; transition: all .2s linear; } .navbar.navbar-sm .navbar-brand { padding-top: 10px; padding-bottom: 10px; height: 50px; } .navbar.navbar-sm .navbar-form, .navbar.navbar-sm .navbar-toggle { margin-top: 8px; margin-bottom: 8px; } .navbar.navbar-sm .navbar-nav > li > a { line-height: 20px; } /* ------------------------------- 3.0 Search Banner Setting ------------------------------- */ /* 3.1 Search Banner Element Setting */ .search-banner { padding: 60px 0; } .search-banner h1 { color: #fff; font-size: 36px; text-align: center; margin: 0 0 15px; font-weight: 600; } .search-banner p { margin-bottom: 0; color: rgba(255,255,255,0.8); } .search-banner .container { width: 640px; } .search-banner .form-control { padding-left: 20px; padding-right: 20px; font-size: 16px; border: none; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .search-banner .form-group { position: relative; } .search-banner .btn { background: #fff; color: #242a30; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .search-banner p { font-size: 16px; color: #fff; text-align: center; font-weight: 300; } /* 3.2 Search Banner Popular Tags Setting */ .popular-tags { list-style-type: none; margin: 0; padding: 0; } .popular-tags > li { display: inline-block; margin-right: 3px; margin-bottom: 5px; } .popular-tags > li > a { padding: 3px 10px; border-radius: 40px; border: 2px solid #ccc; color: #fff; display: inline-block; } .popular-tags > li > a:hover, .popular-tags > li > a:focus { text-decoration: none; color: #fff; border-color: #fff; } .popular-tags > li > a .fa { font-size: 6px; margin-right: 3px; position: relative; top: -2px; color: #fff !important; } /* ------------------------------- 4.0 Content Setting ------------------------------- */ /* 4.1 Content Element Setting */ .content { padding: 30px 0 60px; } /* 4.2 Content Has Background Setting */ .has-bg, .has-bg .container { position: relative; color: #fff; } .has-bg .bg-cover, .has-bg .bg-cover:before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; height: 300px !important; } .has-bg .bg-cover:before { content: ''; background: url('images/transparent/black-0.4.png'); } .has-bg .bg-cover img { max-width: 100%; min-height: 100%; } /* 4.3 Section Container Setting */ .section-container { margin-bottom: 30px; } /* 4.4 Breadcrumb Setting */ .breadcrumb { background: #e2e7eb; color: #242a30; font-weight: bold; } .breadcrumb > li a { color: #242a30; } .breadcrumb > li + li:before { font-weight: normal; } /* 4.5 Page Title Setting */ .page-title { padding: 30px 0; } .page-title .breadcrumb { background: none; padding: 0; font-weight: normal; margin-bottom: 10px; } .page-title.has-bg .breadcrumb { color: #fff; } .page-title.has-bg .breadcrumb > li a { color: #ccc; } .page-title h1 { font-size: 28px; margin: 0; } .page-title h5 { font-size: 12px; font-weight: bold; color: #fff; } /* ------------------------------- 5.0 Forum Setting ------------------------------- */ /* 5.1 Panel Forum Setting */ .panel.panel-forum { border: 1px solid #e2e7eb; box-shadow: 10px ghostwhite !important; } .panel.panel-forum .panel-heading { background: #e2e7eb; } /* 5.2 Forum List Setting */ .forum-list { list-style-type: none; margin: 0; padding: 0; } .forum-list > li { padding: 15px; } .forum-list > li:before, .forum-list > li:after { content: ''; display: table; clear: both; } .forum-list > li + li { border-top: 2px solid #e2e7eb; } .forum-list .media { font-size: 28px; float: left; width: 64px; text-align: center; color: rgba(0,0,0,0.4); line-height: 64px; } .forum-list .media img { max-width: 100%; display: block; } .forum-list .media .fa { display: block; line-height: 64px; background: #00acac; } .forum-list .info-container { margin-left: 79px; padding-top: 5px; } .forum-list .info-container > div { float: left; } .forum-list .info-container .info { width: 50%; } .forum-list .info-container .total-count { width: 20%; text-align: center; } .forum-list .info-container .total-count .divider { margin: 0 8px; } .forum-list .info-container .latest-post { width: 30%; } .forum-list .info-container .info .title { font-size: 16px; margin: 0 0 5px; font-weight: 600; } .forum-list .info-container .info .title a { color: #242a30; } .forum-list .info-container .latest-post .title { margin: 0 0 4px; font-size: 12px; } .forum-list .info-container .latest-post .title a { color: #242a30; } .forum-list .info-container .latest-post .time { font-size: 12px; } .forum-list .info-container .desc { margin-bottom: 0; font-size: 12px; color: #666; line-height: 16px; } .total-post { color: #242a30; font-weight: bold; } /* 5.3 Forum Topic List Setting */ .forum-list.forum-topic-list .info-container { position: relative; } .forum-list.forum-topic-list .info-start-end { list-style-type: none; margin: 0; padding: 0; line-height: 20px; } .forum-list.forum-topic-list .info-container .info { width: auto; float: none; padding-right: 100px; } .forum-list.forum-topic-list .info-container .date-replies { position: absolute; right: 0; top: 5px; text-align: center; width: 80px; } .forum-list.forum-topic-list .info-container .date-replies .time { font-size: 11px; line-height: 11px; margin-bottom: 7px; } .forum-list.forum-topic-list .info-container .date-replies .replies { background: #e2e7eb; padding: 5px 10px; border-radius: 4px; } .forum-list.forum-topic-list .info-container .date-replies .replies .total { font-size: 16px; color: #242a30; line-height: 18px; margin-bottom: 2px; } .forum-list.forum-topic-list .info-container .date-replies .replies .text { font-size: 10px; line-height: 12px; font-weight: normal; color: #999; margin-bottom: 2px; } /* ------------------------------- 6.0 Footer Setting ------------------------------- */ /* 6.1 Footer Element Setting */ .footer { margin: 0; border: none; padding: 60px 0 30px; background: #242a30; box-shadow: inset 0 100px 80px -80px rgba(0,0,0,.7); -webkit-box-shadow: inset 0 100px 80px -80px rgba(0,0,0,.7); } .footer h4 { font-weight: 600; color: #CFD0D1; font-size: 14px; letter-spacing: 0.5px; margin: 0 0 20px; } .footer p { color: #A6A9AB; font-size: 12px; line-height: 20px; margin-bottom: 0; } .footer .latest-post { list-style-type: none; margin: 0; padding: 0; } .footer .latest-post > li + li { margin-top: 10px; } .footer .latest-post > li .title, .footer .latest-post > li .title a { margin: 0; font-weight: normal; font-size: 13px; line-height: 20px; color: #CFD0D1; } .footer .latest-post > li .time { font-size: 11px; } .footer .new-user { list-style-type: none; margin: -5px; padding: 0; } .footer .new-user > li { float: left; width: 10%; padding: 5px; } .footer .new-user > li img { max-width: 100%; } /* 6.2 Footer Copyright Setting */ .footer-copyright { padding: 20px 0; color: #A6A9AB; background: #1d2226; } /* WA BUTTON */ .wabutton{ width:50px; height:50px; position:fixed; bottom:20px; right:20px; z-index:100; } /* ------------------------------- 7.0 Pace Loader Setting ------------------------------- */ /* 7.1 Pace Loader Element Setting */ .pace-inactive { opacity: 0; filter: alpha(opacity=0); } .pace { background: #2d353c; position: fixed; top: 0; left: 0; right: 0; -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s; z-index: 1050; } .pace-progress { position: fixed; top: 0; left: 0; right: 0; text-align: center; height: 3px; background: #00acac; -webkit-transition: width 1s; -moz-transition: width 1s; -o-transition: width 1s; transition: width 1s; z-index: 2000; } .pace:before { content: ''; position: fixed; top: 0; right: 0; left: 0; height: 3px; } .pace .pace-activity { display: block; position: fixed; z-index: 2000; top: 20px; right: 20px; width: 20px; height: 20px; border: solid 2px transparent; border-top-color: #00acac; border-left-color: #00acac; border-radius: 10px; -webkit-animation: pace-spinner 400ms linear infinite; -moz-animation: pace-spinner 400ms linear infinite; -ms-animation: pace-spinner 400ms linear infinite; -o-animation: pace-spinner 400ms linear infinite; animation: pace-spinner 400ms linear infinite; } @media (max-width: 767px) { .pace .pace-activity { top: 80px; } } @-webkit-keyframes pace-spinner { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes pace-spinner { 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); } } @-o-keyframes pace-spinner { 0% { -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -o-transform: rotate(360deg); transform: rotate(360deg); } } @-ms-keyframes pace-spinner { 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); } 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes pace-spinner { 0% { transform: rotate(0deg); transform: rotate(0deg); } 100% { transform: rotate(360deg); transform: rotate(360deg); } } /* ------------------------------- 8.0 Predefined CSS Setting ------------------------------- */ /* 8.1 Predefined Classes */ .row { margin: 0 -10px; } .row > [class*="col-"] { padding: 0 10px; } .row.row-space-0 { margin: 0; } .row.row-space-2 { margin: 0 -1px; } .row.row-space-4 { margin: 0 -2px; } .row.row-space-6 { margin: 0 -3px; } .row.row-space-8 { margin: 0 -4px; } .row.row-space-10 { margin: 0 -5px; } .row.row-space-12 { margin: 0 -6px; } .row.row-space-14 { margin: 0 -7px; } .row.row-space-16 { margin: 0 -8px; } .row.row-space-18 { margin: 0 -9px; } .row.row-space-18 { margin: 0 -10px; } .row.row-space-22 { margin: 0 -11px; } .row.row-space-24 { margin: 0 -12px; } .row.row-space-26 { margin: 0 -13px; } .row.row-space-28 { margin: 0 -14px; } .row.row-space-30 { margin: 0 -15px; } .row.row-space-0 > [class*="col-"] { padding: 0; } .row.row-space-2 > [class*="col-"] { padding: 0 1px; } .row.row-space-4 > [class*="col-"] { padding: 0 2px; } .row.row-space-6 > [class*="col-"] { padding: 0 3px; } .row.row-space-8 > [class*="col-"] { padding: 0 4px; } .row.row-space-10 > [class*="col-"] { padding: 0 5px; } .row.row-space-12 > [class*="col-"] { padding: 0 6px; } .row.row-space-14 > [class*="col-"] { padding: 0 7px; } .row.row-space-16 > [class*="col-"] { padding: 0 8px; } .row.row-space-18 > [class*="col-"] { padding: 0 9px; } .row.row-space-20 > [class*="col-"] { padding: 0 10px; } .row.row-space-22 > [class*="col-"] { padding: 0 11px; } .row.row-space-24 > [class*="col-"] { padding: 0 12px; } .row.row-space-26 > [class*="col-"] { padding: 0 13px; } .row.row-space-28 > [class*="col-"] { padding: 0 14px; } .row.row-space-30 > [class*="col-"] { padding: 0 15px; } .semi-bold { font-weight: 600; } .overflow-auto { overflow: auto !important; } .overflow-hidden { overflow: hidden !important; } .overflow-visible { overflow: visible !important; } .overflow-scroll { overflow: scroll !important; } .overflow-x-hidden { overflow-x: hidden !important; } .overflow-x-visible { overflow-x: visible !important; } .overflow-x-scroll { overflow-x: scroll !important; } .overflow-y-hidden { overflow-y: hidden !important; } .overflow-y-visible { overflow-y: visible !important; } .overflow-y-scroll { overflow-y: scroll !important; } .m-auto { margin: 0 auto !important; } .m-0 { margin: 0px !important; } .m-1 { margin: 1px !important; } .m-2 { margin: 2px !important; } .m-3 { margin: 3px !important; } .m-4 { margin: 4px !important; } .m-5 { margin: 5px !important; } .m-10 { margin: 10px !important; } .m-15 { margin: 15px !important; } .m-20 { margin: 20px !important; } .m-25 { margin: 25px !important; } .m-30 { margin: 30px !important; } .m-35 { margin: 35px !important; } .m-40 { margin: 40px !important; } .m-t-0 { margin-top: 0px !important; } .m-t-1 { margin-top: 1px !important; } .m-t-2 { margin-top: 2px !important; } .m-t-3 { margin-top: 3px !important; } .m-t-4 { margin-top: 4px !important; } .m-t-5 { margin-top: 5px !important; } .m-t-10 { margin-top: 10px !important; } .m-t-15 { margin-top: 15px !important; } .m-t-20 { margin-top: 20px !important; } .m-t-25 { margin-top: 25px !important; } .m-t-30 { margin-top: 30px !important; } .m-t-35 { margin-top: 35px !important; } .m-t-40 { margin-top: 40px !important; } .m-r-0 { margin-right: 0px !important; } .m-r-1 { margin-right: 1px !important; } .m-r-2 { margin-right: 2px !important; } .m-r-3 { margin-right: 3px !important; } .m-r-4 { margin-right: 4px !important; } .m-r-5 { margin-right: 5px !important; } .m-r-10 { margin-right: 10px !important; } .m-r-15 { margin-right: 15px !important; } .m-r-20 { margin-right: 20px !important; } .m-r-25 { margin-right: 25px !important; } .m-r-30 { margin-right: 30px !important; } .m-r-35 { margin-right: 35px !important; } .m-r-40 { margin-right: 40px !important; } .m-b-0 { margin-bottom: 0px !important; } .m-b-1 { margin-bottom: 1px !important; } .m-b-2 { margin-bottom: 2px !important; } .m-b-3 { margin-bottom: 3px !important; } .m-b-4 { margin-bottom: 4px !important; } .m-b-5 { margin-bottom: 5px !important; } .m-b-10 { margin-bottom: 10px !important; } .m-b-15 { margin-bottom: 15px !important; } .m-b-20 { margin-bottom: 20px !important; } .m-b-25 { margin-bottom: 25px !important; } .m-b-30 { margin-bottom: 30px !important; } .m-b-35 { margin-bottom: 35px !important; } .m-b-40 { margin-bottom: 40px !important; } .m-l-0 { margin-left: 0px !important; } .m-l-1 { margin-left: 1px !important; } .m-l-2 { margin-left: 2px !important; } .m-l-3 { margin-left: 3px !important; } .m-l-4 { margin-left: 4px !important; } .m-l-5 { margin-left: 5px !important; } .m-l-10 { margin-left: 10px !important; } .m-l-15 { margin-left: 15px !important; } .m-l-20 { margin-left: 20px !important; } .m-l-25 { margin-left: 25px !important; } .m-l-30 { margin-left: 30px !important; } .m-l-35 { margin-left: 35px !important; } .m-l-40 { margin-left: 40px !important; } .p-0 { padding: 0px !important; } .p-1 { padding: 1px !important; } .p-2 { padding: 2px !important; } .p-3 { padding: 3px !important; } .p-4 { padding: 4px !important; } .p-5 { padding: 5px !important; } .p-10 { padding: 10px !important; } .p-15, .wrapper { padding: 15px !important; } .p-20 { padding: 20px !important; } .p-25 { padding: 25px !important; } .p-30 { padding: 30px !important; } .p-35 { padding: 35px !important; } .p-40 { padding: 40px !important; } .p-t-0 { padding-top: 0px !important; } .p-t-1 { padding-top: 1px !important; } .p-t-2 { padding-top: 2px !important; } .p-t-3 { padding-top: 3px !important; } .p-t-4 { padding-top: 4px !important; } .p-t-5 { padding-top: 5px !important; } .p-t-10 { padding-top: 10px !important; } .p-t-15 { padding-top: 15px !important; } .p-t-20 { padding-top: 20px !important; } .p-t-25 { padding-top: 25px !important; } .p-t-30 { padding-top: 30px !important; } .p-t-35 { padding-top: 35px !important; } .p-t-40 { padding-top: 40px !important; } .p-r-0 { padding-right: 0px !important; } .p-r-1 { padding-right: 1px !important; } .p-r-2 { padding-right: 2px !important; } .p-r-3 { padding-right: 3px !important; } .p-r-4 { padding-right: 4px !important; } .p-r-5 { padding-right: 5px !important; } .p-r-10 { padding-right: 10px !important; } .p-r-15 { padding-right: 15px !important; } .p-r-20 { padding-right: 20px !important; } .p-r-25 { padding-right: 25px !important; } .p-r-30 { padding-right: 30px !important; } .p-r-35 { padding-right: 35px !important; } .p-r-40 { padding-right: 40px !important; } .p-b-0 { padding-bottom: 0px !important; } .p-b-1 { padding-bottom: 1px !important; } .p-b-2 { padding-bottom: 2px !important; } .p-b-3 { padding-bottom: 3px !important; } .p-b-4 { padding-bottom: 4px !important; } .p-b-5 { padding-bottom: 5px !important; } .p-b-10 { padding-bottom: 10px !important; } .p-b-15 { padding-bottom: 15px !important; } .p-b-20 { padding-bottom: 20px !important; } .p-b-25 { padding-bottom: 25px !important; } .p-b-30 { padding-bottom: 30px !important; } .p-b-35 { padding-bottom: 35px !important; } .p-b-40 { padding-bottom: 40px !important; } .p-l-0 { padding-left: 0px !important; } .p-l-1 { padding-left: 1px !important; } .p-l-2 { padding-left: 2px !important; } .p-l-3 { padding-left: 3px !important; } .p-l-4 { padding-left: 4px !important; } .p-l-5 { padding-left: 5px !important; } .p-l-10 { padding-left: 10px !important; } .p-l-15 { padding-left: 15px !important; } .p-l-20 { padding-left: 20px !important; } .p-l-25 { padding-left: 25px !important; } .p-l-30 { padding-left: 30px !important; } .p-l-35 { padding-left: 35px !important; } .p-l-40 { padding-left: 40px !important; } .f-s-8 { font-size: 8px !important; } .f-s-9 { font-size: 9px !important; } .f-s-10 { font-size: 10px !important; } .f-s-11 { font-size: 11px !important; } .f-s-12 { font-size: 12px !important; } .f-s-13 { font-size: 13px !important; } .f-s-14 { font-size: 14px !important; } .f-s-15 { font-size: 15px !important; } .f-s-16 { font-size: 16px !important; } .f-s-17 { font-size: 17px !important; } .f-s-18 { font-size: 18px !important; } .f-s-19 { font-size: 19px !important; } .f-s-20 { font-size: 20px !important; } .text-center { text-align: center !important; } .text-left { text-align: left !important; } .text-right { text-align: right !important; } .pull-left { float: left !important; } .pull-right { float: right !important; } .pull-none { float: none !important; } .f-w-100 { font-weight: 100 !important; } .f-w-200 { font-weight: 200 !important; } .f-w-300 { font-weight: 300 !important; } .f-w-400 { font-weight: 400 !important; } .f-w-500 { font-weight: 500 !important; } .f-w-600 { font-weight: 600 !important; } .f-w-700 { font-weight: 700 !important; } .table-valign-middle th, .table-valign-middle td { vertical-align: middle !important; } .table-th-valign-middle th, .table-td-valign-middle td { vertical-align: middle !important; } .table-valign-top th, .table-valign-top td { vertical-align: top !important; } .table-th-valign-top th, .table-td-valign-top td { vertical-align: top !important; } .table-valign-bottom th, .table-valign-bottom td { vertical-align: bottom !important; } .table-th-valign-bottom th, .table-td-valign-bottom td { vertical-align: bottom !important; } .vertical-box { display: table; table-layout: fixed; border-spacing: 0; height: 100%; width: 100%; } .vertical-box-column { display: table-cell; vertical-align: top; height: 100%; } .vertical-box-row { display: table-row; height: 100%; } .vertical-box-row > .vertical-box-cell { position: relative; height: 100%; width: 100%; float: none; } .vertical-box-row > .vertical-box-cell > .vertical-box-inner-cell { position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; } .panel-expand .vertical-box .vertical-box-column { display: table-cell; } .page-content-full-height .content { position: absolute; left: 0; top: 54px; right: 0; bottom: -1px; -webkit-transform: translateZ(0); } .no-rounded-corner { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .rounded-corner { -webkit-border-radius: 50% !important; -moz-border-radius: 50% !important; border-radius: 50% !important; } .no-border { border: 0 !important; } .border-top-1 { border-top: 1px solid #eee !important; } .border-right-1 { border-right: 1px solid #eee !important; } .border-bottom-1 { border-bottom: 1px solid #eee !important; } .border-left-1 { border-left: 1px solid #eee !important; } .no-box-shadow { -webkit-box-shadow: none !important; box-shadow: none !important; } .text-inverse { color: #2d353c !important; } a.text-inverse:hover, a.text-inverse:focus { color: #575d63 !important; } .text-success { color: #00acac !important; } a.text-success:hover, a.text-success:focus { color: #33bdbd !important; } .text-info { color: #49b6d6 !important; } a.text-info:hover, a.text-info:focus { color: #6dc5de !important; } .text-primary { color: #348fe2 !important; } a.text-primary:hover, a.text-primary:focus { color: #5da5e8 !important; } .text-warning { color: #f59c1a !important; } a.text-warning:hover, a.text-warning:focus { color: #f7b048 !important; } .text-danger { color: #ff5b57 !important; } a.text-danger:hover, a.text-danger:focus { color: #ff7c79 !important; } .text-white { color: #fff !important; } a.text-white:hover, a.text-white:focus { color: #f0f3f4 !important; } .bg-white { background: #ffffff !important; } .bg-silver-lighter { background: #f4f6f7 !important; } .bg-silver { background: #f0f3f4 !important; } .bg-silver-darker { background: #b4b6b7 !important; } .bg-black { background: #2d353c !important; } .bg-black-darker { background: #242a30 !important; } .bg-black-lighter { background: #575d63 !important; } .bg-grey { background: #b6c2c9 !important; } .bg-grey-darker { background: #929ba1 !important; } .bg-grey-lighter { background: #c5ced4 !important; } .bg-red { background: #ff5b57 !important; } .bg-red-darker { background: #cc4946 !important; } .bg-red-lighter { background: #ff7c79 !important; } .bg-orange { background: #f59c1a !important; } .bg-orange-darker { background: #c47d15 !important; } .bg-orange-lighter { background: #f7b048 !important; } .bg-yellow { background: #e3fa3e !important; } .bg-yellow-darker { background: #b6c832 !important; } .bg-yellow-lighter { background: #e9fb65 !important; } .bg-green { background: #00acac !important; } .bg-green-darker { background: #008a8a !important; } .bg-green-lighter { background: #33bdbd !important; } .bg-blue { background: #348fe2 !important; } .bg-blue-darker { background: #2a72b5 !important; } .bg-blue-lighter { background: #5da5e8 !important; } .bg-aqua { background: #49b6d6 !important; } .bg-aqua-darker { background: #3a92ab !important; } .bg-aqua-lighter { background: #6dc5de !important; } .bg-purple { background: #727cb6 !important; } .bg-purple-darker { background: #5b6392 !important; } .bg-purple-lighter { background: #8e96c5 !important; } .no-bg { background: none !important; } .height-xs { height: 150px !important; } .height-sm { height: 300px !important; } .height-md { height: 450px !important; } .height-lg { height: 600px !important; } .height-full { height: 100% !important; } .height-50 { height: 50px !important; } .height-100 { height: 100px !important; } .height-150 { height: 150px !important; } .height-200 { height: 200px !important; } .height-250 { height: 250px !important; } .height-300 { height: 300px !important; } .height-350 { height: 350px !important; } .height-400 { height: 400px !important; } .height-450 { height: 450px !important; } .height-500 { height: 500px !important; } .height-550 { height: 550px !important; } .height-600 { height: 600px !important; } .width-xs { width: 150px !important; } .width-sm { width: 300px !important; } .width-md { width: 450px !important; } .width-lg { width: 600px !important; } .width-full { width: 100% !important; } .width-50 { width: 50px !important; } .width-100 { width: 100px !important; } .width-150 { width: 150px !important; } .width-200 { width: 200px !important; } .width-250 { width: 250px !important; } .width-300 { width: 300px !important; } .width-350 { width: 350px !important; } .width-400 { width: 400px !important; } .width-450 { width: 450px !important; } .width-500 { width: 500px !important; } .width-550 { width: 550px !important; } .width-600 { width: 600px !important; } .animated { -webkit-animation-duration: .6s; animation-duration: .6s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .fade { opacity: 0; -webkit-transition: opacity .3s linear; transition: opacity .3s linear; } .text-ellipsis { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; } .underline { border-bottom: 1px solid #e2e7eb !important; } /* ------------------------------- 9.0 Component Setting ------------------------------- */ /* 9.1 Component - Form Elements */ .form-control { border: 2px solid #ccd0d4; -webkit-box-shadow: none; box-shadow: none; font-size: 12px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; } .form-control.input-white { background: #fff; border-color: #fff; } .form-control.input-white:focus { box-shadow: none; -webkit-box-shadow: none; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: #e5e9ed; opacity: 0.6; filter: alpha(opacity=60); } .form-control[disabled]:focus, .form-control[readonly]:focus, fieldset[disabled] .form-control:focus { box-shadow: none; -webkit-box-shadow: none; border: 1px solid #ccd0d4; } .form-control:focus { border-color: #9fa2a5; -webkit-box-shadow: none; box-shadow: none; } .form-control.input-inline { display: inline; width: auto; padding: 0 7px; } .form-control.input-xs { height: 20px; } .form-horizontal.form-bordered .form-group { border-bottom: 1px solid #e2e7eb; margin: 0; } .form-horizontal.form-bordered .form-group:last-child { border-bottom: 0; } .form-horizontal.form-bordered .form-group > .control-label { padding: 22px 15px 15px; } .form-horizontal.form-bordered .form-group > div { padding: 15px; } .form-horizontal.form-bordered .form-group > div { border-left: 1px solid #e2e7eb; } .form-horizontal.form-bordered .form-group > .control-label { border-right: 1px solid #e2e7eb; margin-right: -1px; } .form-horizontal.form-bordered .has-feedback .form-control-feedback { top: 15px; } label { font-weight: 500; } .has-success .form-control, .has-success .form-control:focus, .has-warning .form-control, .has-warning .form-control:focus, .has-error .form-control, .has-error .form-control:focus { -webkit-box-shadow: none; box-shadow: none; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success .form-control-feedback { color: #00acac; } .has-success .form-control { border-color: #00acac; } .has-success .form-control:focus { border-color: #008a8a; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning .form-control-feedback { color: #f59c1a; } .has-warning .form-control { border-color: #f59c1a; } .has-warning .form-control:focus { border-color: #c47d15; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error .form-control-feedback { color: #ff5b57; } .has-error .form-control { border-color: #ff5b57; } .has-error .form-control:focus { border-color: #cc4946; } .form-control-feedback { line-height: 34px; } select.form-control { border-color: #ccd0d4; } select[multiple].form-control { border-color: #ccd0d4; } .input-group-addon { background: #e2e7eb; border: none; } legend { padding-bottom: 3px; border-bottom: 1px solid #e2e7eb; } /* 9.2 Component - Dropdown Menu */ .dropdown-menu { border: none; -webkit-box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.2); font-size: 12px; } .dropdown-menu > li > a { padding: 5px 15px; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: #edf0f5; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { background: #348fe2; } .dropdown-menu .divider { border-color: #e2e7eb; } .dropdown-menu.media-list { max-width: 280px; padding: 0; } .dropdown-menu.media-list p { text-overflow: ellipsis; overflow: hidden; margin-bottom: 4px; max-width: 200px; } .dropdown-menu.media-list .dropdown-header { padding: 10px 20px !important; background: #fafafa; } .dropdown-menu.media-list > .media { margin-top: 0; border-top: 1px solid #e2e7eb; border-bottom: 1px solid #e2e7eb; margin-bottom: -1px; } .dropdown-menu.media-list > .media > a { display: block; padding: 10px 20px !important; } .dropdown-menu.media-list > .media .media-left { padding-right: 10px; } .dropdown-menu.media-list > .media .media-right { padding-left: 10px; } .dropdown-menu.media-list > .media .media-object { height: 36px; width: 36px; line-height: 36px; font-size: 14px; color: #fff; text-align: center; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .dropdown-footer { padding: 10px 20px; } .dropdown-menu > li.dropdown-footer > a { padding: 0 !important; display: inline !important; } .dropdown-menu > li.dropdown-footer > a:hover, .dropdown-menu > li.dropdown-footer > a:focus { background: none !important; text-decoration: underline !important; } /* 9.3 Component - Tooltip */ .tooltip-inner { padding: 4px 10px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } /* 9.4 Component - Alert */ .alert { border: none; } .alert.alert-success { background: #7cdda7; } .alert.alert-info { background: #93cfe5; } .alert.alert-danger { background: #f8b2b2; } .alert.alert-warning { background: #ffead0; } /* 9.5 Component - Note Setting */ .note { margin-bottom: 20px; padding: 15px; border-left: 3px solid; } .note.note-success { border-color: #4a8564; background: #b0ebca; color: #3c763d; } .note.note-success h1, .note.note-success h2, .note.note-success h3, .note.note-success h4, .note.note-success h5, .note.note-success h6 { color: #3c763d; } .note.note-danger { border-color: #986e6e; background: #fbd1d1; color: #a94442; } .note.note-danger h1, .note.note-danger h2, .note.note-danger h3, .note.note-danger h4, .note.note-danger h5, .note.note-danger h6 { color: #a94442; } .note.note-info { border-color: #587c89; background: #bee2ef; color: #31708f; } .note.note-info h1, .note.note-info h2, .note.note-info h3, .note.note-info h4, .note.note-info h5, .note.note-info h6 { color: #31708f; } .note.note-warning { border-color: #9d9080; background: #fff2e3; color: #8a6d3b; } .note.note-warning h1, .note.note-warning h2, .note.note-warning h3, .note.note-warning h4, .note.note-warning h5, .note.note-warning h6 { color: #8a6d3b; } /* 9.6 Component - Badge & Label Setting */ .badge { font-size: 75%; line-height: 1.25; font-weight: 600; } .label { font-size: 75%; font-weight: 600; } .badge.badge-square { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .badge.badge-default, .label.label-default { background: #b6c2c9 ; } .badge.badge-danger, .label.label-danger { background: #ff5b57 ; } .badge.badge-warning, .label.label-warning { background: #f59c1a ; } .badge.badge-success, .label.label-success { background: #00acac ; } .badge.badge-info, .label.label-info { background: #49b6d6 ; } .badge.badge-primary, .label.label-primary { background: #348fe2 ; } .badge.badge-inverse, .label.label-inverse { background: #2d353c ; } /* 9.7 Component - Pagination & pager */ .pager li > a, .pager li > span, .pagination > li > a, .pagination > li > span { border-color: #e2e7eb; color: #242a30; border: none; padding: 7px 9px; font-weight: 600; font-size: 12px; color: #999; -webkit-border-radius: 5px !important; -moz-border-radius: 5px !important; border-radius: 5px !important; } .pager.pager-without-border li > a, .pager.pager-without-border li > span, .pagination.pagination-without-border > li > a { border-color: #fff; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus, .pager > .disabled > span, .pager > .disabled > a { opacity: 0.6; filter: alpha(opacity=60); border-color: #ddd; } .pagination > li > a, .pagination > li > span { color: #242a30; margin-left: 6px; } .pagination > li:first-child > a { margin-left: 0; } .pagination-sm > li > a, .pagination-sm > li > span { font-size: 10px; margin-left: 4px; } .pagination-lg > li > a, .pagination-lg > li > span { font-size: 14px; margin-left: 6px; } .pager li > a:hover, .pager li > a:focus, .pager li > span:hover, .pager li > span:focus, .pagination > li > a:hover, .pagination > li > a:focus { color: #242a30; background: #e2e7eb; border-color: #d8dde1; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { background: #e2e7eb !important; color: #242a30; } .pagination > li.text > span, .pagination > li.text > span:hover, .pagination > li.text > span:focus { background: none; color: #999; padding-left: 0; padding-right: 0; } .pagination > li.active > a, .pagination > li.active > a:hover, .pagination > li.active > a:focus { background: #e2e7eb !important; color: #242a30; } .pagination > li.left > a, .pagination > li.right > a { background: #242a30; color: #fff; } .pagination > li.left > a:hover, .pagination > li.right > a:hover, .pagination > li.left > a:focus, .pagination > li.right > a:focus { background: #00acac; } /* 9.8 Component - Progress bar */ .progress { -webkit-box-shadow: none; box-shadow: none; background: #e2e7eb; } .progress-xs { height: 5px; } .progress-xs .progress-bar { line-height: 5px; } .progress-sm { height: 10px; } .progress-sm .progress-bar { line-height: 10px; } .progress-lg { height: 30px; } .progress-lg .progress-bar { line-height: 30px; } .progress-bar { background: #348fe2; -webkit-box-shadow: none; box-shadow: none; } .progress-bar.progress-bar-success { background-color: #00acac; } .progress-bar.progress-bar-info { background-color: #49b6d6; } .progress-bar.progress-bar-warning { background-color: #f59c1a; } .progress-bar.progress-bar-danger { background-color: #ff5b57; } .progress-bar.progress-bar-inverse { background-color: #2d353c; } /* 9.9 Component - Nav Setting */ .nav > li > a { color: #6e7179; } .nav > li > a:hover, .nav > li > a:focus { color: #242a30; background: #fafafa; } /* 9.10 Component - Nav Tabs */ .nav-tabs, .nav-tabs > li > a, .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus, .nav-tabs.nav-justified > li > a, .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: none !important; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus, .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { color: #242a30; } .nav-tabs { background: #c1ccd1; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .nav-tabs.nav-tabs-inverse { background: #242a30; } .nav-tabs.nav-justified > li > a { -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; } .nav-tabs.nav-tabs-inverse > li.active > a, .nav-tabs.nav-tabs-inverse > li.active > a:hover, .nav-tabs.nav-tabs-inverse > li.active > a:focus { color: #242a30; background: #fff; } .nav-tabs.nav-tabs-inverse > li > a:hover, .nav-tabs.nav-tabs-inverse > li > a:focus { color: #fff; background: none; } .nav-tabs > li, .nav-tabs.nav-justified > li { margin-bottom: 0; } .nav-tabs > li > a { margin-right: 5px; line-height: 20px; } /* 9.11 Component - Nav Pills */ .nav-pills { margin-bottom: 10px; } .nav-pills > li + li { margin-left: 5px; } .nav-pills > li > a { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background: #242a30; } .nav-stacked > li + li { margin-left: 0; margin-top: 5px; } /* 9.12 Component - Tab Content */ .tab-content { padding: 15px; margin-bottom: 20px; background: #fff; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .nav-tabs + .tab-content { -webkit-border-radius: 0 0 3px 3px; -moz-border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px; } /* 9.13 Component - Accordion Panel */ .panel-title a { display: block; } .panel-title > a:hover, .panel-title > a:focus { text-decoration: none; } /* 9.14 Component - Button */ .btn { font-weight: 300; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn:focus, .btn:active:focus, .btn.active:focus { outline: none; } .btn-icon, .btn.btn-icon { display: inline-block; width: 28px; height: 28px; padding: 0; border: none; line-height: 28px; text-align: center; font-size: 14px; } .btn-circle, .btn.btn-circle { -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .btn-icon.btn-xs { width: 16px; height: 16px; font-size: 8px; line-height: 16px; } .btn-icon.btn-sm { width: 22px; height: 22px; font-size: 11px; line-height: 22px; } .btn-icon.btn-lg { width: 34px; height: 34px; font-size: 17px; line-height: 34px; } .btn-scroll-to-top { position: fixed; bottom: 20px; right: 25px; z-index: 1020; } .page-with-right-sidebar .btn-scroll-to-top { left: 25px; right: auto; } .btn > .pull-left, .btn > .pull-right { line-height: 1.428571429; } .btn-block { padding-left: 12px; padding-right: 12px; } .btn:active, .btn.active { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1); } /* 9.14.1 Component - Button - Default */ .btn.btn-default { color: #fff; background: #b6c2c9; border-color: #b6c2c9; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background: #929ba1; border-color: #929ba1; } .btn-group .btn.btn-default:not(.active) + .btn.btn-default, .input-group-btn .btn.btn-default:not(.active) + .btn.btn-default { border-left-color: #929ba1; } /* 9.14.2 Component - Button - White */ .btn.btn-white { font-weight: normal; color: #242a30; background: #fff; border-color: #e2e7eb; } .btn.btn-white.btn-white-without-border { border-color: #fff; } .btn.btn-white.btn-white-without-border.active, .btn.btn-white.btn-white-without-border.active:hover, .btn.btn-white.btn-white-without-border.active:focus { border-color: #ddd; } .btn.btn-white.btn-white-without-border:hover, .btn.btn-white.btn-white-without-border:focus { border-color: #e2e7eb; } .btn-white:hover, .btn-white:focus, .btn-white:active, .btn-white.active, .open .dropdown-toggle.btn-white { background: #e2e7eb; border-color: #d8dde1; } .btn-group .btn.btn-white:not(.active) + .btn.btn-white, .input-group-btn .btn.btn-white:not(.active) + .btn.btn-white { border-left-color: #e2e7eb; } /* 9.14.3 Component - Button - Inverse */ .btn.btn-inverse { color: #fff; background: #2d353c; border-color: #2d353c; } .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .open .dropdown-toggle.btn-inverse { background: #242a30; border-color: #242a30; } .btn-group .btn.btn-inverse:not(.active) + .btn.btn-inverse, .input-group-btn .btn.btn-inverse:not(.active) + .btn.btn-inverse { border-left-color: #242a30; } /* 9.14.4 Component - Button - Primary */ .btn.btn-primary { color: #fff; background: #348fe2; border-color: #348fe2; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background: #2a72b5; border-color: #2a72b5; } .btn-group .btn.btn-primary:not(.active) + .btn.btn-primary, .input-group-btn .btn.btn-primary:not(.active) + .btn.btn-primary { border-left-color: #2a72b5; } /* 9.14.5 Component - Button - Success */ .btn.btn-success { color: #fff; background: #00acac; border-color: #00acac; } .btn.btn-success:hover, .btn.btn-success:focus, .btn.btn-success:active, .btn.btn-success.active, .open .dropdown-toggle.btn-success { background: #008a8a; border-color: #008a8a; } .btn-group .btn.btn-success:not(.active) + .btn.btn-success, .input-group-btn .btn.btn-success:not(.active) + .btn.btn-success { border-left-color: #008a8a; } /* 9.14.6 Component - Button - Warning */ .btn.btn-warning { color: #fff; background: #f59c1a; border-color: #f59c1a; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background: #c47d15; border-color: #c47d15; } .btn-group .btn.btn-warning:not(.active) + .btn.btn-warning, .input-group-btn .btn.btn-warning:not(.active) + .btn.btn-warning { border-left-color: #c47d15; } /* 9.14.7 Component - Button - Danger */ .btn.btn-danger { color: #fff; background: #ff5b57; border-color: #ff5b57; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background: #cc4946; border-color: #cc4946; } .btn-group .btn.btn-danger:not(.active) + .btn.btn-danger, .input-group-btn .btn.btn-danger:not(.active) + .btn.btn-danger { border-left-color: #cc4946; } /* 9.14.8 Component - Button - Info */ .btn.btn-info { color: #fff; background: #49b6d6; border-color: #49b6d6; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background: #3a92ab; border-color: #3a92ab; } .btn-group .btn.btn-info:not(.active) + .btn.btn-info, .input-group-btn .btn.btn-info:not(.active) + .btn.btn-info { border-left-color: #3a92ab; } /* 9.15 Component - Panel */ .panel { border: 2px solid; -webkit-box-shadow: none; box-shadow: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .panel.panel-no-rounded-corner .panel-heading, .panel.panel-no-rounded-corner .panel-body, .panel.panel-no-rounded-corner .panel-footer { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .panel-heading { padding: 12px 15px; border: none; } .panel-heading + .table, .panel-heading + .slimScrollDiv { border-top: 1px solid #e2e7eb; } .panel-heading-btn { float: right; } .panel-heading-btn > a { margin-left: 8px; } .panel-heading .btn-group .btn { margin-top: -7px; } .panel-heading .btn-group .btn.btn-sm { margin-top: -5px; } .panel-heading .btn-group .btn.btn-xs { margin-top: -1px; } .panel-heading .label.pull-left, .panel-heading .label.pull-right { line-height: 15px; } .panel-heading .progress.pull-right, .panel-heading .progress.pull-left { width: 40%; min-width: 120px; } .panel-heading + .alert { margin-bottom: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .panel-with-tabs.panel-default .panel-heading { background: #c1ccd1; color: #242a30; } .panel-heading .nav-tabs { margin-top: -10px; margin-right: -15px; } .panel-heading .nav-tabs > li > a { padding: 10px 15px; line-height: 20px; } .panel-title { line-height: 20px; font-size: 12px; font-weight: bold; } .panel-title .accordion-toggle { margin: -10px -15px; padding: 10px 15px; } .panel-title .accordion-toggle.accordion-toggle-styled .fa:before { content: '\f056'; } .panel-title .accordion-toggle.accordion-toggle-styled.collapsed .fa:before { content: '\f055'; } .panel-title .pull-right { line-height: 20px; } .panel-toolbar { border-top: 1px solid #e2e7eb; border-bottom: 1px solid #e2e7eb; padding: 10px 15px; background: #fff; } .panel-toolbar + .form-control { margin: -1px 0 0; border-right: none; border-left: none; } .panel-group .panel { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .form-control + .panel-footer { border-top: none; } .panel-body { padding: 15px; } .panel-body.no-border { border: none !important; } .panel-body.panel-table, .panel-body.panel-form, .panel-body.no-padding, .panel-body.panel-full-width { padding: 0 !important; } .panel-body.with-table > .table { border: 0; margin: 0; } .panel-body.with-table > .table tr:last-child th, .panel-body.with-table > .table tr:last-child td{ border-bottom: 0; } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top: 1px solid #e2e7eb; } .panel-footer { background: #f3f5f7; border-top: 2px solid #e2e7eb; } .panel .tab-content { -webkit-border-radius: 0 0 3px 3px; -moz-border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px; } .panel-default > .panel-heading { background: #fafafa; } .panel-inverse > .panel-heading, .panel-success > .panel-heading, .panel-warning > .panel-heading, .panel-danger > .panel-heading, .panel-primary > .panel-heading, .panel-info > .panel-heading { color: #fff; } .panel-inverse > .panel-heading { background: #242a30; } .panel-success > .panel-heading { background: #008a8a; } .panel-warning > .panel-heading { background: #c47d15; } .panel-danger > .panel-heading { background: #cc4946; } .panel-primary > .panel-heading { background: #2a72b5; } .panel-info > .panel-heading { background: #3a92ab; } /* 9.16.Component - Panel - Panel Expand */ .panel.panel-expand { position: fixed; top: 0; left: 0; right: 0; bottom: 0; margin: 0; overflow: hidden; z-index: 1080; } .panel-expand .height-xs, .panel-expand .height-sm, .panel-expand .height-md, .panel-expand .height-lg, .panel-expand .height-full { height: 100% !important; } @keyframes panelExpand { from { top: 50%; left: 50%; right: 50%; bottom: 50%; } to { top: 0; left: 0; right: 0; bottom: 0; } } @-webkit-keyframes panelExpand { from { top: 50%; left: 50%; right: 50%; bottom: 50%; } to { top: 0; left: 0; right: 0; bottom: 0; } } .panel.panel-expand > .panel-heading .fa.fa-expand:before { content: '\f066'; } .panel.panel-expand, .panel.panel-expand > .panel-heading, .panel.panel-expand > .panel-body { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .panel.panel-expand > .panel-body { position: absolute; right: 0; left: 0; bottom: 0; top: 40px; overflow-y: scroll; z-index: 1020; } .panel.panel-expand > .panel-footer { position: absolute; left: 0; right: 0; bottom: 0; } /* 9.17 Component - Panel - Panel loading */ .panel.panel-loading .panel-body { position: relative; z-index: 0; } .panel.panel-loading.panel-expand .panel-body { position: absolute; } .panel.panel-loading .panel-body .panel-loader { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: #fff; opacity: 0.9; filter: alpha(opacity=90); animation: fadeIn .2s; -webkit-animation: fadeIn .2s; z-index: 1020; -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* 9.18 Component - Modal Setting */ .modal-content { border: none; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .modal-header { padding: 12px 15px; border-bottom-color: #e2e7eb; } .modal-header .close { margin-top: 2px; } .modal-body { padding: 15px; } .modal-footer { border-top-color: #e2e7eb; padding: 14px 15px 15px; } .modal-message .modal-dialog { width: 100%; } .modal-message .modal-content { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .modal-message .modal-header, .modal-message .modal-body, .modal-message .modal-footer { width: 60%; border: none; margin: 0 auto; } .modal-backdrop.fade.in { opacity: 0.5; filter: alpha(opacity=50); } /* 9.19 Component - Media Object */ .media, .media-body { overflow: hidden; zoom: 1; } .media .media-object { width: 128px; } .media.media-lg .media-object { width: 256px; } .media.media-sm .media-object { width: 64px; } .media.media-xs .media-object { width: 32px; } .media > .pull-left, .media > .media-left { padding-right: 15px; } .media > .pull-right, .media > .media-right { padding-left: 15px; } .media a:not(.btn):hover, .media a:not(.btn):focus, .media a:not(.btn):hover .media-heading, .media a:not(.btn):focus .media-heading, .media a:not(.btn).media-heading:hover, .media a:not(.btn).media-heading:focus { color: #242a30; text-decoration: none; } .media-list.media-list-with-divider > li + li { border-top: 1px solid #e2e7eb; padding-top: 20px; } /* 9.20 Component - Table */ .table { border-color: #e2e7eb; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .table > thead > tr > th { color: #242a30; font-weight: 600; border-bottom: 2px solid #e2e7eb !important; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { border-color: #e2e7eb; padding: 10px 15px; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 7px 15px; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background: #e8ecf1 !important; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background: #f0f3f5; } .table.table-inverse > thead > tr > th, .table.table-inverse > tbody > tr > th, .table.table-inverse > tfoot > tr > th, .table.table-inverse > thead > tr > td, .table.table-inverse > tbody > tr > td, .table.table-inverse > tfoot > tr > td { border-color: #999 !important; border-color: rgba(0,0,0,0.2) !important; } .table.table-inverse, .table.table-inverse > thead > tr > th, .table.table-inverse > tbody > tr > th, .table.table-inverse > tfoot > tr > th { color: #fff; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background: #dbf0f7; border-color: #b6e2ef; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background: #cceeee; border-color: #99dede; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background: #ffdedd; border-color: #ffbdbc; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background: #fdebd1; border-color: #fbd7a3; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background: #f0f3f5; border-color: #e2e7e9; } /* 9.21 Component - Well */ .well { padding: 15px; background: #fff; box-shadow: none; -webkit-box-shadow: none; } .well-sm { padding: 10px; } .well-lg { padding: 30px; } /* 9.22 Component - Jumbotron */ .jumbotron { background: #f0f3f4; } .jumbotron h1, .jumbotron .h1 { font-size: 56px; } .jumbotron p { font-size: 18px; } /* 9.23 Component - List Group */ a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus { background: #348fe2; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #242a30; } .nav.nav-pills.nav-sm > li { margin: 0 0 3px; } .nav.nav-pills.nav-sm > li a { padding: 8px 10px; line-height: 1.5; } /* 9.24 Component - Carousel */ .carousel .carousel-control .fa { position: absolute; top: 50%; z-index: 5; display: block; width: 30px; height: 30px; margin-top: -15px; text-align: center; line-height: 30px; margin-left: -15px; } .carousel .carousel-control.left .fa { margin-left: 15px; } /* 9.25 Component - Theme Panel */ .theme-panel .theme-collapse-btn { position: absolute; left: -40px; top: 50%; margin-top: -20px; width: 40px; height: 40px; line-height: 40px; font-size: 18px; color: #000; background: #fff; background: rgba(255,255,255,0.9); border-radius: 4px 0 0 4px; text-align: center; box-shadow: 0 0 2px rgba(0,0,0,.4); -webkit-box-shadow: 0 0 2px rgba(0,0,0,.4); -moz-box-shadow: 0 0 2px rgba(0,0,0,.4); text-decoration: none; } .theme-panel { position: fixed; right: -180px; top: 200px; z-index: 1020; box-shadow: 0 0 2px rgba(0,0,0,.4); -webkit-box-shadow: 0 0 2px rgba(0,0,0,.4); -moz-box-shadow: 0 0 2px rgba(0,0,0,.4); width: 180px; -webkit-transition: right .2s linear; -moz-transition: right .2s linear; transition: right .2s linear; } .theme-panel .theme-panel-content { padding: 5px; background: #fff; position: relative; z-index: 1020; } .theme-panel .theme-list { list-style-type: none; margin: 0; padding: 0; } .theme-panel .theme-list > li { float: left; } .theme-panel .theme-list > li + li { margin-left: 5px; } .theme-panel .theme-list > li > a { width: 30px; height: 30px; border-radius: 3px; display: block; -webkit-transition: all .2s linear; -moz-transition: all .2s linear; transition: all .2s linear; position: relative; text-decoration: none; } .theme-panel .theme-list > li.active > a:before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; right: 0; top: 0; bottom: 0; font-size: 14px; color: #fff; opacity: .4; filter: alpha(opacity=40); text-align: center; line-height: 30px; text-align: center; } .theme-panel.active { right: 0; } ================================================ FILE: public/frontend/css/forum/theme/blue.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ .btn.btn-theme { background: #348fe2; border-color: #348fe2; color: #fff; } .btn.btn-theme:hover, .btn.btn-theme:focus { background: #2a72b5; border-color: #2a72b5; } .text-theme, a { color: #348fe2; } a:hover, a:focus { color: #2a72b5; } .pace-progress, .pagination > li.left > a:focus, .pagination > li.left > a:hover, .pagination > li.right > a:focus, .pagination > li.right > a:hover { background: #348fe2; } .forum-list .media .fa { background: #348fe2; } .pace .pace-activity { border-top-color: #348fe2; border-left-color: #348fe2; } .navbar-logo { border-color: #2F83CF #2a72b5 #1f5688; } ================================================ FILE: public/frontend/css/forum/theme/default.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ .btn.btn-theme { background: #00acac; border-color: #00acac; color: #fff; } .btn.btn-theme:hover, .btn.btn-theme:focus { background: #008a8a; border-color: #008a8a; } .text-theme, a { color: #00acac; } a:hover, a:focus { color: #008a8a; } .pace-progress, .pagination > li.left > a:focus, .pagination > li.left > a:hover, .pagination > li.right > a:focus, .pagination > li.right > a:hover { background: #00acac; } .forum-list .media .fa { background: #00acac; } .pace .pace-activity { border-top-color: #00acac; border-left-color: #00acac; } .navbar-logo { border-color: #4DCACA #31A3A3 #1D8888; } ================================================ FILE: public/frontend/css/forum/theme/orange.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ .btn.btn-theme { background: #f59c1a; border-color: #f59c1a; color: #fff; } .btn.btn-theme:hover, .btn.btn-theme:focus { background: #c47d15; border-color: #c47d15; } .text-theme, a { color: #f59c1a; } a:hover, a:focus { color: #c47d15; } .pace-progress, .pagination > li.left > a:focus, .pagination > li.left > a:hover, .pagination > li.right > a:focus, .pagination > li.right > a:hover { background: #f59c1a; } .forum-list .media .fa { background: #f59c1a; } .pace .pace-activity { border-top-color: #f59c1a; border-left-color: #f59c1a; } .navbar-logo { border-color: #DF8F19 #c47d15 #935e10; } ================================================ FILE: public/frontend/css/forum/theme/purple.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ .btn.btn-theme { background: #727cb6; border-color: #727cb6; color: #fff; } .btn.btn-theme:hover, .btn.btn-theme:focus { background: #5b6392; border-color: #5b6392; } .text-theme, a { color: #727cb6; } a:hover, a:focus { color: #5b6392; } .pace-progress, .pagination > li.left > a:focus, .pagination > li.left > a:hover, .pagination > li.right > a:focus, .pagination > li.right > a:hover { background: #727cb6; } .forum-list .media .fa { background: #727cb6; } .pace .pace-activity { border-top-color: #727cb6; border-left-color: #727cb6; } .navbar-logo { border-color: #6670AC #5b6392 #444a6d; } ================================================ FILE: public/frontend/css/forum/theme/red.css ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ .btn.btn-theme { background: #ff5b57; border-color: #ff5b57; color: #fff; } .btn.btn-theme:hover, .btn.btn-theme:focus { background: #cc4946; border-color: #cc4946; } .text-theme, a { color: #ff5b57; } a:hover, a:focus { color: #cc4946; } .pace-progress, .pagination > li.left > a:focus, .pagination > li.left > a:hover, .pagination > li.right > a:focus, .pagination > li.right > a:hover { background: #ff5b57; } .forum-list .media .fa { background: #ff5b57; } .pace .pace-activity { border-top-color: #ff5b57; border-left-color: #ff5b57; } .navbar-logo { border-color: #F8504B #cc4946 #993734; } ================================================ FILE: public/frontend/js/forum/apps.js ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ ---------------------------- APPS CONTENT TABLE ---------------------------- 01. Handle Header Navigation State 02. Handle Pace Page Loading Plugins 03. Handle Tooltip Activation 04. Handle Theme Panel Expand Application Controller */ /* 01. Handle Header Navigation State ------------------------------------------------ */ var handleHeaderNavigationState = function() { $(window).on('scroll load', function() { if ($(window).scrollTop() > 20) { $('#header').addClass('navbar-sm'); } else { $('#header').removeClass('navbar-sm'); } }); }; /* 02. Handle Pace Page Loading Plugins ------------------------------------------------ */ var handlePaceLoadingPlugins = function() { Pace.on('hide', function(){ setTimeout(function() { $('.pace').addClass('hide'); }, 1000); }); }; /* 03. Handle Tooltip Activation ------------------------------------------------ */ var handleTooltipActivation = function() { if ($('[data-toggle=tooltip]').length !== 0) { $('[data-toggle=tooltip]').tooltip(); } }; /* 04. Handle Theme Panel Expand ------------------------------------------------ */ var handleThemePanelExpand = function() { $(document).on('click', '[data-click="theme-panel-expand"]', function() { var targetContainer = '.theme-panel'; var targetClass = 'active'; if ($(targetContainer).hasClass(targetClass)) { $(targetContainer).removeClass(targetClass); } else { $(targetContainer).addClass(targetClass); } }); }; /* 05. Handle Theme Page Control ------------------------------------------------ */ var handleThemePageControl = function() { if (Cookies && Cookies.get('theme')) { if ($('.theme-list').length !== 0) { $('.theme-list [data-theme]').closest('li').removeClass('active'); $('.theme-list [data-theme="'+ Cookies.get('theme') +'"]').closest('li').addClass('active'); } var cssFileSrc = $('[data-theme="'+ Cookies.get('theme') +'"]').attr('data-theme-file'); $('#theme').attr('href', cssFileSrc, { expires: 365 }); } $(document).on('click', '.theme-list [data-theme]', function() { var cssFileSrc = $(this).attr('data-theme-file'); $('#theme').attr('href', cssFileSrc); $('.theme-list [data-theme]').not(this).closest('li').removeClass('active'); $(this).closest('li').addClass('active'); Cookies.set('theme', $(this).attr('data-theme')); }); }; /* Application Controller ------------------------------------------------ */ var App = function () { "use strict"; return { //main function init: function () { handleHeaderNavigationState(); handlePaceLoadingPlugins(); handleTooltipActivation(); handleThemePanelExpand(); handleThemePageControl(); } }; }(); ================================================ FILE: public/frontend/js/forum/forum-details-page.js ================================================ /* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4 Version: 4.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.0/frontend/forum/ */ var handleFormWysihtml5 = function () { "use strict"; $('#wysihtml5').wysihtml5(); }; var ForumDetailsPage = function () { "use strict"; return { //main function init: function () { handleFormWysihtml5(); } }; }(); ================================================ FILE: public/frontend/js/swal/sweetalert2.js ================================================ (function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global.Sweetalert2=factory());}(this,function(){'use strict';var swalPrefix='swal2-' var prefix=function(items){var result={} for(var i in items){result[items[i]]=swalPrefix+items[i]}return result} var swalClasses=prefix(['container','in','iosfix','modal','overlay','fade','show','hide','noanimation','close','content','spacer','confirm','cancel','icon','image','input','file','range','select','radio','checkbox','textarea','inputerror','validationerror','progresssteps','activeprogressstep','progresscircle','progressline','loading','styled']) var iconTypes=prefix(['success','warning','info','question','error']) var defaultParams={title:'',text:'',html:'',type:null,customClass:'',animation:true,allowOutsideClick:true,allowEscapeKey:true,showConfirmButton:true,showCancelButton:false,preConfirm:null,confirmButtonText:'OK',confirmButtonColor:'#3085d6',confirmButtonClass:null,cancelButtonText:'Cancel',cancelButtonColor:'#aaa',cancelButtonClass:null,buttonsStyling:true,reverseButtons:false,focusCancel:false,showCloseButton:false,showLoaderOnConfirm:false,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:'#fff',input:null,inputPlaceholder:'',inputValue:'',inputOptions:{},inputAutoTrim:true,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:'40px',onOpen:null,onClose:null} var sweetHTML='' var sweetContainer var existingSweetContainers=document.getElementsByClassName(swalClasses.container) if(existingSweetContainers.length){sweetContainer=existingSweetContainers[0]}else{sweetContainer=document.createElement('div') sweetContainer.className=swalClasses.container sweetContainer.innerHTML=sweetHTML}var extend=function(a,b){for(var key in b){if(b.hasOwnProperty(key)){a[key]=b[key]}}return a} var colorLuminance=function(hex,lum){hex=String(hex).replace(/[^0-9a-f]/gi,'') if(hex.length<6){hex=hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]}lum=lum||0 var rgb='#' for(var i=0;i<3;i++){var c=parseInt(hex.substr(i*2,2),16) c=Math.round(Math.min(Math.max(0,c+(c*lum)),255)).toString(16) rgb+=('00'+c).substr(c.length)}return rgb} var states={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null} var init=function(){if(typeof document==='undefined'){console.error('SweetAlert2 requires document to initialize') return}else if(document.getElementsByClassName(swalClasses.container).length){return}document.body.appendChild(sweetContainer) var modal=getModal() var input=getChildByClass(modal,swalClasses.input) var file=getChildByClass(modal,swalClasses.file) var range=modal.querySelector('.'+swalClasses.range+' input') var select=getChildByClass(modal,swalClasses.select) var checkbox=modal.querySelector('.'+swalClasses.checkbox+' input') var textarea=getChildByClass(modal,swalClasses.textarea) input.oninput=function(){sweetAlert.resetValidationError()} input.onkeyup=function(event){event.stopPropagation() if(event.keyCode===13){sweetAlert.clickConfirm()}} file.onchange=function(){sweetAlert.resetValidationError()} range.oninput=function(){sweetAlert.resetValidationError() range.previousSibling.value=range.value} range.onchange=function(){sweetAlert.resetValidationError() range.previousSibling.value=range.value} select.onchange=function(){sweetAlert.resetValidationError()} checkbox.onchange=function(){sweetAlert.resetValidationError()} textarea.oninput=function(){sweetAlert.resetValidationError()} return modal} var elementByClass=function(className){return sweetContainer.querySelector('.'+className)} var getModal=function(){return document.body.querySelector('.'+swalClasses.modal)||init()} var getIcons=function(){var modal=getModal() return modal.querySelectorAll('.'+swalClasses.icon)} var getSpacer=function(){return elementByClass(swalClasses.spacer)} var getProgressSteps=function(){return elementByClass(swalClasses.progresssteps)} var getValidationError=function(){return elementByClass(swalClasses.validationerror)} var getConfirmButton=function(){return elementByClass(swalClasses.confirm)} var getCancelButton=function(){return elementByClass(swalClasses.cancel)} var getCloseButton=function(){return elementByClass(swalClasses.close)} var getFocusableElements=function(focusCancel){var buttons=[getConfirmButton(),getCancelButton()] if(focusCancel){buttons.reverse()}return buttons.concat(Array.prototype.slice.call(getModal().querySelectorAll('button:not([class^='+swalPrefix+']), input:not([type=hidden]), textarea, select')))} var hasClass=function(elem,className){return elem.classList.contains(className)} var focusInput=function(input){input.focus() if(input.type!=='file'){var val=input.value input.value='' input.value=val}} var addClass=function(elem,className){if(!elem||!className){return}var classes=className.split(/\s+/) classes.forEach(function(className){elem.classList.add(className)})} var removeClass=function(elem,className){if(!elem||!className){return}var classes=className.split(/\s+/) classes.forEach(function(className){elem.classList.remove(className)})} var getChildByClass=function(elem,className){for(var i=0;i') var i if(params.text||params.html){if(typeof params.html==='object'){$content.innerHTML='' if(0 in params.html){for(i=0;i in params.html;i++){$content.appendChild(params.html[i].cloneNode(true))}}else{$content.appendChild(params.html.cloneNode(true))}}else{$content.innerHTML=params.html||(params.text.split('\n').join('
            '))}show($content)}else{hide($content)}if(params.showCloseButton){show($closeButton)}else{hide($closeButton)}modal.className=swalClasses.modal if(params.customClass){addClass(modal,params.customClass)}var progressStepsContainer=getProgressSteps() var currentProgressStep=parseInt(params.currentProgressStep===null?sweetAlert.getQueueStep():params.currentProgressStep,10) if(params.progressSteps.length){show(progressStepsContainer) empty(progressStepsContainer) if(currentProgressStep>=params.progressSteps.length){console.warn('SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length '+'(currentProgressStep like JS arrays starts from 0)')}params.progressSteps.forEach(function(step,index){var circle=document.createElement('li') addClass(circle,swalClasses.progresscircle) circle.innerHTML=step if(index===currentProgressStep){addClass(circle,swalClasses.activeprogressstep)}progressStepsContainer.appendChild(circle) if(index!==params.progressSteps.length-1){var line=document.createElement('li') addClass(line,swalClasses.progressline) line.style.width=params.progressStepsDistance progressStepsContainer.appendChild(line)}})}else{hide(progressStepsContainer)}var icons=getIcons() for(i=0;iwindow.innerHeight){states.previousBodyPadding=document.body.style.paddingRight document.body.style.paddingRight=measureScrollbar()+'px'}}function undoScrollbar(){if(states.previousBodyPadding!==null){document.body.style.paddingRight=states.previousBodyPadding states.previousBodyPadding=null}}function iOSfix(){var iOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream if(iOS&&!hasClass(document.body,swalClasses.iosfix)){var offset=document.body.scrollTop document.body.style.top=(offset*-1)+'px' addClass(document.body,swalClasses.iosfix)}}function undoIOSfix(){if(hasClass(document.body,swalClasses.iosfix)){var offset=parseInt(document.body.style.top,10) removeClass(document.body,swalClasses.iosfix) document.body.scrollTop=(offset*-1)}}function modalDependant(){if(arguments[0]===undefined){console.error('SweetAlert2 expects at least 1 attribute!') return false}var params=extend({},modalParams) switch(typeof arguments[0]){case'string':params.title=arguments[0] params.text=arguments[1]||'' params.type=arguments[2]||'' break case'object':extend(params,arguments[0]) params.extraParams=arguments[0].extraParams if(params.input==='email'&¶ms.inputValidator===null){params.inputValidator=function(email){return new Promise(function(resolve,reject){var emailRegex=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/ if(emailRegex.test(email)){resolve()}else{reject('Invalid email address')}})}}break default:console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]) return false}setParameters(params) var modal=getModal() return new Promise(function(resolve,reject){if(params.timer){modal.timeout=setTimeout(function(){sweetAlert.closeModal(params.onClose) reject('timer')},params.timer)}var getInput=function(inputType){inputType=inputType||params.input switch(inputType){case'select':case'textarea':case'file':return getChildByClass(modal,swalClasses[inputType]) case'checkbox':return modal.querySelector('.'+swalClasses.checkbox+' input') case'radio':return modal.querySelector('.'+swalClasses.radio+' input:checked')||modal.querySelector('.'+swalClasses.radio+' input:first-child') case'range':return modal.querySelector('.'+swalClasses.range+' input') default:return getChildByClass(modal,swalClasses.input)}} var getInputValue=function(){var input=getInput() if(!input){return null}switch(params.input){case'checkbox':return input.checked?1:0 case'radio':return input.checked?input.value:null case'file':return input.files.length?input.files[0]:null default:return params.inputAutoTrim?input.value.trim():input.value}} if(params.input){setTimeout(function(){var input=getInput() if(input){focusInput(input)}},0)}var confirm=function(value){if(params.showLoaderOnConfirm){sweetAlert.showLoading()}if(params.preConfirm){params.preConfirm(value,params.extraParams).then(function(preConfirmValue){sweetAlert.closeModal(params.onClose) resolve(preConfirmValue||value)},function(error){sweetAlert.hideLoading() if(error){sweetAlert.showValidationError(error)}})}else{sweetAlert.closeModal(params.onClose) resolve(value)}} var onButtonEvent=function(event){var e=event||window.event var target=e.target||e.srcElement var confirmBtn=getConfirmButton() var cancelBtn=getCancelButton() var targetedConfirm=confirmBtn===target||confirmBtn.contains(target) var targetedCancel=cancelBtn===target||cancelBtn.contains(target) switch(e.type){case'mouseover':case'mouseup':if(params.buttonsStyling){if(targetedConfirm){confirmBtn.style.backgroundColor=colorLuminance(params.confirmButtonColor,-0.1)}else if(targetedCancel){cancelBtn.style.backgroundColor=colorLuminance(params.cancelButtonColor,-0.1)}}break case'mouseout':if(params.buttonsStyling){if(targetedConfirm){confirmBtn.style.backgroundColor=params.confirmButtonColor}else if(targetedCancel){cancelBtn.style.backgroundColor=params.cancelButtonColor}}break case'mousedown':if(params.buttonsStyling){if(targetedConfirm){confirmBtn.style.backgroundColor=colorLuminance(params.confirmButtonColor,-0.2)}else if(targetedCancel){cancelBtn.style.backgroundColor=colorLuminance(params.cancelButtonColor,-0.2)}}break case'click':if(targetedConfirm&&sweetAlert.isVisible()){if(params.input){var inputValue=getInputValue() if(params.inputValidator){sweetAlert.disableInput() params.inputValidator(inputValue,params.extraParams).then(function(){sweetAlert.enableInput() confirm(inputValue)},function(error){sweetAlert.enableInput() if(error){sweetAlert.showValidationError(error)}})}else{confirm(inputValue)}}else{confirm(true)}}else if(targetedCancel&&sweetAlert.isVisible()){sweetAlert.closeModal(params.onClose) reject('cancel')}break default:}} var $buttons=modal.querySelectorAll('button') var i for(i=0;i<$buttons.length;i++){$buttons[i].onclick=onButtonEvent $buttons[i].onmouseover=onButtonEvent $buttons[i].onmouseout=onButtonEvent $buttons[i].onmousedown=onButtonEvent}getCloseButton().onclick=function(){sweetAlert.closeModal(params.onClose) reject('close')} sweetContainer.onclick=function(e){if(e.target!==sweetContainer){return}if(params.allowOutsideClick){sweetAlert.closeModal(params.onClose) reject('overlay')}} var $confirmButton=getConfirmButton() var $cancelButton=getCancelButton() if(params.reverseButtons){$confirmButton.parentNode.insertBefore($cancelButton,$confirmButton)}else{$confirmButton.parentNode.insertBefore($confirmButton,$cancelButton)}function setFocus(index,increment){var focusableElements=getFocusableElements(params.focusCancel) for(var i=0;i li > a:hover, .dropdown-menu > li > a:focus { background-color: #e8e8e8; background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); background-repeat: repeat-x; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { background-color: #2e6da4; background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); background-repeat: repeat-x; } .navbar-default { background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); background-repeat: repeat-x; border-radius: 4px; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .active > a { background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); background-repeat: repeat-x; -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); } .navbar-brand, .navbar-nav > li > a { text-shadow: 0 1px 0 rgba(255, 255, 255, .25); } .navbar-inverse { background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); background-repeat: repeat-x; border-radius: 4px; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .active > a { background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); background-repeat: repeat-x; -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); } .navbar-inverse .navbar-brand, .navbar-inverse .navbar-nav > li > a { text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); } .navbar-static-top, .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } @media (max-width: 767px) { .navbar .navbar-nav .open .dropdown-menu > .active > a, .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); background-repeat: repeat-x; } } .alert { text-shadow: 0 1px 0 rgba(255, 255, 255, .2); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); } .alert-success { background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); background-repeat: repeat-x; border-color: #b2dba1; } .alert-info { background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); background-repeat: repeat-x; border-color: #9acfea; } .alert-warning { background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); background-repeat: repeat-x; border-color: #f5e79e; } .alert-danger { background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); background-repeat: repeat-x; border-color: #dca7a7; } .progress { background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); background-repeat: repeat-x; } .progress-bar { background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); background-repeat: repeat-x; } .progress-bar-success { background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); background-repeat: repeat-x; } .progress-bar-info { background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); background-repeat: repeat-x; } .progress-bar-warning { background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); background-repeat: repeat-x; } .progress-bar-danger { background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); background-repeat: repeat-x; } .progress-bar-striped { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } .list-group { border-radius: 4px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); box-shadow: 0 1px 2px rgba(0, 0, 0, .075); } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { text-shadow: 0 -1px 0 #286090; background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); background-repeat: repeat-x; border-color: #2b669a; } .list-group-item.active .badge, .list-group-item.active:hover .badge, .list-group-item.active:focus .badge { text-shadow: none; } .panel { -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); } .panel-default > .panel-heading { background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); background-repeat: repeat-x; } .panel-primary > .panel-heading { background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); background-repeat: repeat-x; } .panel-success > .panel-heading { background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); background-repeat: repeat-x; } .panel-info > .panel-heading { background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); background-repeat: repeat-x; } .panel-warning > .panel-heading { background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); background-repeat: repeat-x; } .panel-danger > .panel-heading { background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); background-repeat: repeat-x; } .well { background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); background-repeat: repeat-x; border-color: #dcdcdc; -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); } /*# sourceMappingURL=bootstrap-theme.css.map */ ================================================ FILE: public/frontend/plugins/bootstrap3/css/bootstrap.css ================================================ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { margin: .67em 0; font-size: 2em; } mark { color: #000; background: #ff0; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -.5em; } sub { bottom: -.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { height: 0; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { margin: 0; font: inherit; color: inherit; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { padding: .35em .625em .75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-spacing: 0; border-collapse: collapse; } td, th { padding: 0; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *:before, *:after { color: #000 !important; text-shadow: none !important; background: transparent !important; -webkit-box-shadow: none !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\002a"; } .glyphicon-plus:before { content: "\002b"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .glyphicon-cd:before { content: "\e201"; } .glyphicon-save-file:before { content: "\e202"; } .glyphicon-open-file:before { content: "\e203"; } .glyphicon-level-up:before { content: "\e204"; } .glyphicon-copy:before { content: "\e205"; } .glyphicon-paste:before { content: "\e206"; } .glyphicon-alert:before { content: "\e209"; } .glyphicon-equalizer:before { content: "\e210"; } .glyphicon-king:before { content: "\e211"; } .glyphicon-queen:before { content: "\e212"; } .glyphicon-pawn:before { content: "\e213"; } .glyphicon-bishop:before { content: "\e214"; } .glyphicon-knight:before { content: "\e215"; } .glyphicon-baby-formula:before { content: "\e216"; } .glyphicon-tent:before { content: "\26fa"; } .glyphicon-blackboard:before { content: "\e218"; } .glyphicon-bed:before { content: "\e219"; } .glyphicon-apple:before { content: "\f8ff"; } .glyphicon-erase:before { content: "\e221"; } .glyphicon-hourglass:before { content: "\231b"; } .glyphicon-lamp:before { content: "\e223"; } .glyphicon-duplicate:before { content: "\e224"; } .glyphicon-piggy-bank:before { content: "\e225"; } .glyphicon-scissors:before { content: "\e226"; } .glyphicon-bitcoin:before { content: "\e227"; } .glyphicon-btc:before { content: "\e227"; } .glyphicon-xbt:before { content: "\e227"; } .glyphicon-yen:before { content: "\00a5"; } .glyphicon-jpy:before { content: "\00a5"; } .glyphicon-ruble:before { content: "\20bd"; } .glyphicon-rub:before { content: "\20bd"; } .glyphicon-scale:before { content: "\e230"; } .glyphicon-ice-lolly:before { content: "\e231"; } .glyphicon-ice-lolly-tasted:before { content: "\e232"; } .glyphicon-education:before { content: "\e233"; } .glyphicon-option-horizontal:before { content: "\e234"; } .glyphicon-option-vertical:before { content: "\e235"; } .glyphicon-menu-hamburger:before { content: "\e236"; } .glyphicon-modal-window:before { content: "\e237"; } .glyphicon-oil:before { content: "\e238"; } .glyphicon-grain:before { content: "\e239"; } .glyphicon-sunglasses:before { content: "\e240"; } .glyphicon-text-size:before { content: "\e241"; } .glyphicon-text-color:before { content: "\e242"; } .glyphicon-text-background:before { content: "\e243"; } .glyphicon-object-align-top:before { content: "\e244"; } .glyphicon-object-align-bottom:before { content: "\e245"; } .glyphicon-object-align-horizontal:before { content: "\e246"; } .glyphicon-object-align-left:before { content: "\e247"; } .glyphicon-object-align-vertical:before { content: "\e248"; } .glyphicon-object-align-right:before { content: "\e249"; } .glyphicon-triangle-right:before { content: "\e250"; } .glyphicon-triangle-left:before { content: "\e251"; } .glyphicon-triangle-bottom:before { content: "\e252"; } .glyphicon-triangle-top:before { content: "\e253"; } .glyphicon-console:before { content: "\e254"; } .glyphicon-superscript:before { content: "\e255"; } .glyphicon-subscript:before { content: "\e256"; } .glyphicon-menu-left:before { content: "\e257"; } .glyphicon-menu-right:before { content: "\e258"; } .glyphicon-menu-down:before { content: "\e259"; } .glyphicon-menu-up:before { content: "\e260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #337ab7; text-decoration: none; } a:hover, a:focus { color: #23527c; text-decoration: underline; } a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { display: inline-block; max-width: 100%; height: auto; padding: 4px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; -webkit-transition: all .2s ease-in-out; -o-transition: all .2s ease-in-out; transition: all .2s ease-in-out; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #777; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } mark, .mark { padding: .2em; background-color: #fcf8e3; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #777; } .text-primary { color: #337ab7; } a.text-primary:hover, a.text-primary:focus { color: #286090; } .text-success { color: #3c763d; } a.text-success:hover, a.text-success:focus { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover, a.text-info:focus { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover, a.text-warning:focus { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover, a.text-danger:focus { color: #843534; } .bg-primary { color: #fff; background-color: #337ab7; } a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover, a.bg-info:focus { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover, a.bg-warning:focus { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; margin-left: -5px; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #777; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #777; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; text-align: right; border-right: 5px solid #eee; border-left: 0; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #fff; background-color: #333; border-radius: 3px; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); } kbd kbd { padding: 0; font-size: 100%; font-weight: bold; -webkit-box-shadow: none; box-shadow: none; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .container-fluid { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .row { margin-right: -15px; margin-left: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: auto; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: auto; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: auto; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: auto; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: auto; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: auto; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: auto; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: auto; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0; } } table { background-color: transparent; } caption { padding-top: 8px; padding-bottom: 8px; color: #777; text-align: left; } th { text-align: left; } .table { width: 100%; max-width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #ddd; } .table .table { background-color: #fff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #ddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #ddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; } .table-hover > tbody > tr:hover { background-color: #f5f5f5; } table col[class*="col-"] { position: static; display: table-column; float: none; } table td[class*="col-"], table th[class*="col-"] { position: static; display: table-cell; float: none; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } .table-responsive { min-height: .01%; overflow-x: auto; } @media screen and (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #ddd; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); } .form-control::-moz-placeholder { color: #999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999; } .form-control::-webkit-input-placeholder { color: #999; } .form-control::-ms-expand { background-color: transparent; border: 0; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eee; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 34px; } input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm, .input-group-sm input[type="date"], .input-group-sm input[type="time"], .input-group-sm input[type="datetime-local"], .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg, .input-group-lg input[type="date"], .input-group-lg input[type="time"], .input-group-lg input[type="datetime-local"], .input-group-lg input[type="month"] { line-height: 46px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-top: 4px \9; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled, fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, .checkbox-inline.disabled, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, .checkbox.disabled label, fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { min-height: 34px; padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; } .form-control-static.input-lg, .form-control-static.input-sm { padding-right: 0; padding-left: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .form-group-lg select.form-control { height: 46px; line-height: 46px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 46px; min-height: 38px; padding: 11px 16px; font-size: 18px; line-height: 1.3333333; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: 46px; height: 46px; line-height: 46px; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; } .has-success .input-group-addon { color: #3c763d; background-color: #dff0d8; border-color: #3c763d; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; } .has-warning .input-group-addon { color: #8a6d3b; background-color: #fcf8e3; border-color: #8a6d3b; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; } .has-error .input-group-addon { color: #a94442; background-color: #f2dede; border-color: #a94442; } .has-error .form-control-feedback { color: #a94442; } .has-feedback label ~ .form-control-feedback { top: 25px; } .has-feedback label.sr-only ~ .form-control-feedback { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { padding-top: 7px; margin-top: 0; margin-bottom: 0; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { padding-top: 7px; margin-bottom: 0; text-align: right; } } .form-horizontal .has-feedback .form-control-feedback { right: 15px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 18px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: normal; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px; } .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #333; text-decoration: none; } .btn:active, .btn.active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; opacity: .65; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #333; background-color: #fff; border-color: #ccc; } .btn-default:focus, .btn-default.focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c; } .btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus { color: #333; background-color: #d4d4d4; border-color: #8c8c8c; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus { background-color: #fff; border-color: #ccc; } .btn-default .badge { color: #fff; background-color: #333; } .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; } .btn-primary:focus, .btn-primary.focus { color: #fff; background-color: #286090; border-color: #122b40; } .btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus { color: #fff; background-color: #204d74; border-color: #122b40; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus { background-color: #337ab7; border-color: #2e6da4; } .btn-primary .badge { color: #337ab7; background-color: #fff; } .btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:focus, .btn-success.focus { color: #fff; background-color: #449d44; border-color: #255625; } .btn-success:hover { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active:hover, .btn-success.active:hover, .open > .dropdown-toggle.btn-success:hover, .btn-success:active:focus, .btn-success.active:focus, .open > .dropdown-toggle.btn-success:focus, .btn-success:active.focus, .btn-success.active.focus, .open > .dropdown-toggle.btn-success.focus { color: #fff; background-color: #398439; border-color: #255625; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled.focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success.focus { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #fff; } .btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:focus, .btn-info.focus { color: #fff; background-color: #31b0d5; border-color: #1b6d85; } .btn-info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus { color: #fff; background-color: #269abc; border-color: #1b6d85; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled.focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info.focus { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #fff; } .btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:focus, .btn-warning.focus { color: #fff; background-color: #ec971f; border-color: #985f0d; } .btn-warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus { color: #fff; background-color: #d58512; border-color: #985f0d; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled.focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning.focus { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #fff; } .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:focus, .btn-danger.focus { color: #fff; background-color: #c9302c; border-color: #761c19; } .btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active:hover, .btn-danger.active:hover, .open > .dropdown-toggle.btn-danger:hover, .btn-danger:active:focus, .btn-danger.active:focus, .open > .dropdown-toggle.btn-danger:focus, .btn-danger:active.focus, .btn-danger.active.focus, .open > .dropdown-toggle.btn-danger.focus { color: #fff; background-color: #ac2925; border-color: #761c19; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled.focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger.focus { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #fff; } .btn-link { font-weight: normal; color: #337ab7; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #23527c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #777; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity .15s linear; -o-transition: opacity .15s linear; transition: opacity .15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } tr.collapse.in { display: table-row; } tbody.collapse.in { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition-timing-function: ease; -o-transition-timing-function: ease; transition-timing-function: ease; -webkit-transition-duration: .35s; -o-transition-duration: .35s; transition-duration: .35s; -webkit-transition-property: height, visibility; -o-transition-property: height, visibility; transition-property: height, visibility; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropup, .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; text-align: left; list-style: none; background-color: #fff; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); box-shadow: 0 6px 12px rgba(0, 0, 0, .175); } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #262626; text-decoration: none; background-color: #f5f5f5; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #fff; text-decoration: none; background-color: #337ab7; outline: 0; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #777; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { right: 0; left: auto; } .dropdown-menu-left { right: auto; left: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777; white-space: nowrap; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { content: ""; border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { right: 0; left: auto; } .navbar-right .dropdown-menu-left { right: auto; left: 0; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-left-radius: 0; border-bottom-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-left-radius: 0; border-top-right-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { display: table-cell; float: none; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } .btn-group-justified > .btn-group .dropdown-menu { left: auto; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group .form-control:focus { z-index: 3; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 46px; line-height: 46px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #555; text-align: center; background-color: #eee; border: 1px solid #ccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { z-index: 2; margin-left: -1px; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eee; } .nav > li.disabled > a { color: #777; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #777; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eee; border-color: #337ab7; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eee #eee #ddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555; cursor: default; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #fff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #fff; background-color: #337ab7; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #fff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { padding-right: 15px; padding-left: 15px; overflow-x: visible; -webkit-overflow-scrolling: touch; border-top: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-right: 0; padding-left: 0; } } .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 340px; } @media (max-device-width: 480px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 200px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; height: 50px; padding: 15px 15px; font-size: 18px; line-height: 20px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-brand > img { display: block; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: 0; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } } .navbar-form { padding: 10px 15px; margin-top: 8px; margin-right: -15px; margin-bottom: 8px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .form-control-static { display: inline-block; } .navbar-form .input-group { display: inline-table; vertical-align: middle; } .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { width: auto; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .navbar-form .radio label, .navbar-form .checkbox label { padding-left: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } .navbar-form .form-group:last-child { margin-bottom: 0; } } @media (min-width: 768px) { .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: 8px; margin-bottom: 8px; } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { float: left; margin-right: 15px; margin-left: 15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; margin-right: -15px; } .navbar-right ~ .navbar-right { margin-right: 0; } } .navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; } .navbar-default .navbar-brand { color: #777; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; } .navbar-default .navbar-text { color: #777; } .navbar-default .navbar-nav > li > a { color: #777; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #ccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #ddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #555; background-color: #e7e7e7; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #ccc; background-color: transparent; } } .navbar-default .navbar-link { color: #777; } .navbar-default .navbar-link:hover { color: #333; } .navbar-default .btn-link { color: #777; } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { color: #333; } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { color: #ccc; } .navbar-inverse { background-color: #222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #9d9d9d; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-text { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #fff; background-color: #080808; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #9d9d9d; } .navbar-inverse .navbar-link:hover { color: #fff; } .navbar-inverse .btn-link { color: #9d9d9d; } .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { color: #fff; } .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { color: #444; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #ccc; content: "/\00a0"; } .breadcrumb > .active { color: #777; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.42857143; color: #337ab7; text-decoration: none; background-color: #fff; border: 1px solid #ddd; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { z-index: 2; color: #23527c; background-color: #eee; border-color: #ddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 3; color: #fff; cursor: default; background-color: #337ab7; border-color: #337ab7; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #777; cursor: not-allowed; background-color: #fff; border-color: #ddd; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-top-left-radius: 6px; border-bottom-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; line-height: 1.5; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #777; cursor: not-allowed; background-color: #fff; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } a.label:hover, a.label:focus { color: #fff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #777; } .label-default[href]:hover, .label-default[href]:focus { background-color: #5e5e5e; } .label-primary { background-color: #337ab7; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #286090; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #777; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge, .btn-group-xs > .btn .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #fff; text-decoration: none; cursor: pointer; } .list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #337ab7; background-color: #fff; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .jumbotron > hr { border-top-color: #d5d5d5; } .container .jumbotron, .container-fluid .jumbotron { padding-right: 15px; padding-left: 15px; border-radius: 6px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron, .container-fluid .jumbotron { padding-right: 60px; padding-left: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; -webkit-transition: border .2s ease-in-out; -o-transition: border .2s ease-in-out; transition: border .2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-right: auto; margin-left: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #337ab7; } .thumbnail .caption { padding: 9px; color: #333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; line-height: 20px; color: #fff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); -webkit-transition: width .6s ease; -o-transition: width .6s ease; transition: width .6s ease; } .progress-striped .progress-bar, .progress-bar-striped { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; background-size: 40px 40px; } .progress.active .progress-bar, .progress-bar.active { -webkit-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media, .media-body { overflow: hidden; zoom: 1; } .media-body { width: 10000px; } .media-object { display: block; } .media-object.img-thumbnail { max-width: none; } .media-right, .media > .pull-right { padding-left: 10px; } .media-left, .media > .pull-left { padding-right: 10px; } .media-left, .media-right, .media-body { display: table-cell; vertical-align: top; } .media-middle { vertical-align: middle; } .media-bottom { vertical-align: bottom; } .media-heading { margin-top: 0; margin-bottom: 5px; } .media-list { padding-left: 0; list-style: none; } .list-group { padding-left: 0; margin-bottom: 20px; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #fff; border: 1px solid #ddd; } .list-group-item:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } a.list-group-item, button.list-group-item { color: #555; } a.list-group-item .list-group-item-heading, button.list-group-item .list-group-item-heading { color: #333; } a.list-group-item:hover, button.list-group-item:hover, a.list-group-item:focus, button.list-group-item:focus { color: #555; text-decoration: none; background-color: #f5f5f5; } button.list-group-item { width: 100%; text-align: left; } .list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { color: #777; cursor: not-allowed; background-color: #eee; } .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { color: inherit; } .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { color: #777; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #fff; background-color: #337ab7; border-color: #337ab7; } .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > small, .list-group-item.active:hover .list-group-item-heading > small, .list-group-item.active:focus .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading > .small { color: inherit; } .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { color: #c7ddef; } .list-group-item-success { color: #3c763d; background-color: #dff0d8; } a.list-group-item-success, button.list-group-item-success { color: #3c763d; } a.list-group-item-success .list-group-item-heading, button.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus { color: #3c763d; background-color: #d0e9c6; } a.list-group-item-success.active, button.list-group-item-success.active, a.list-group-item-success.active:hover, button.list-group-item-success.active:hover, a.list-group-item-success.active:focus, button.list-group-item-success.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .list-group-item-info { color: #31708f; background-color: #d9edf7; } a.list-group-item-info, button.list-group-item-info { color: #31708f; } a.list-group-item-info .list-group-item-heading, button.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus { color: #31708f; background-color: #c4e3f3; } a.list-group-item-info.active, button.list-group-item-info.active, a.list-group-item-info.active:hover, button.list-group-item-info.active:hover, a.list-group-item-info.active:focus, button.list-group-item-info.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .list-group-item-warning { color: #8a6d3b; background-color: #fcf8e3; } a.list-group-item-warning, button.list-group-item-warning { color: #8a6d3b; } a.list-group-item-warning .list-group-item-heading, button.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus { color: #8a6d3b; background-color: #faf2cc; } a.list-group-item-warning.active, button.list-group-item-warning.active, a.list-group-item-warning.active:hover, button.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus, button.list-group-item-warning.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .list-group-item-danger { color: #a94442; background-color: #f2dede; } a.list-group-item-danger, button.list-group-item-danger { color: #a94442; } a.list-group-item-danger .list-group-item-heading, button.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus { color: #a94442; background-color: #ebcccc; } a.list-group-item-danger.active, button.list-group-item-danger.active, a.list-group-item-danger.active:hover, button.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus, button.list-group-item-danger.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); box-shadow: 0 1px 1px rgba(0, 0, 0, .05); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { border-top-left-radius: 0; border-top-right-radius: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-right: 15px; padding-left: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #ddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { margin-bottom: 0; border: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #ddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #ddd; } .panel-default { border-color: #ddd; } .panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ddd; } .panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ddd; } .panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; } .panel-primary > .panel-heading .badge { color: #337ab7; background-color: #fff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; } .embed-responsive-16by9 { padding-bottom: 56.25%; } .embed-responsive-4by3 { padding-bottom: 75%; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, .15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; filter: alpha(opacity=20); opacity: .2; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; filter: alpha(opacity=50); opacity: .5; } button.close { -webkit-appearance: none; padding: 0; cursor: pointer; background: transparent; border: 0; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transition: -webkit-transform .3s ease-out; -o-transition: -o-transform .3s ease-out; transition: transform .3s ease-out; -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%); } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #fff; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; outline: 0; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); box-shadow: 0 3px 9px rgba(0, 0, 0, .5); } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; } .modal-backdrop.fade { filter: alpha(opacity=0); opacity: 0; } .modal-backdrop.in { filter: alpha(opacity=50); opacity: .5; } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 15px; } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); box-shadow: 0 5px 15px rgba(0, 0, 0, .5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1070; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; word-wrap: normal; white-space: normal; filter: alpha(opacity=0); opacity: 0; line-break: auto; } .tooltip.in { filter: alpha(opacity=90); opacity: .9; } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.top-left .tooltip-arrow { right: 5px; bottom: 0; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; word-wrap: normal; white-space: normal; background-color: #fff; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); box-shadow: 0 5px 10px rgba(0, 0, 0, .2); line-break: auto; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { content: ""; border-width: 10px; } .popover.top > .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999; border-top-color: rgba(0, 0, 0, .25); border-bottom-width: 0; } .popover.top > .arrow:after { bottom: 1px; margin-left: -10px; content: " "; border-top-color: #fff; border-bottom-width: 0; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999; border-right-color: rgba(0, 0, 0, .25); border-left-width: 0; } .popover.right > .arrow:after { bottom: -10px; left: 1px; content: " "; border-right-color: #fff; border-left-width: 0; } .popover.bottom > .arrow { top: -11px; left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, .25); } .popover.bottom > .arrow:after { top: 1px; margin-left: -10px; content: " "; border-top-width: 0; border-bottom-color: #fff; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999; border-left-color: rgba(0, 0, 0, .25); } .popover.left > .arrow:after { right: 1px; bottom: -10px; content: " "; border-right-width: 0; border-left-color: #fff; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: .6s ease-in-out left; -o-transition: .6s ease-in-out left; transition: .6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner > .item { -webkit-transition: -webkit-transform .6s ease-in-out; -o-transition: -o-transform .6s ease-in-out; transition: transform .6s ease-in-out; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; perspective: 1000px; } .carousel-inner > .item.next, .carousel-inner > .item.active.right { left: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } .carousel-inner > .item.prev, .carousel-inner > .item.active.left { left: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { left: 0; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); background-color: rgba(0, 0, 0, 0); filter: alpha(opacity=50); opacity: .5; } .carousel-control.left { background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); background-repeat: repeat-x; } .carousel-control.right { right: 0; left: auto; background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); background-repeat: repeat-x; } .carousel-control:hover, .carousel-control:focus { color: #fff; text-decoration: none; filter: alpha(opacity=90); outline: 0; opacity: .9; } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; margin-top: -10px; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; margin-left: -10px; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; margin-right: -10px; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; font-family: serif; line-height: 1; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); border: 1px solid #fff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #fff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -10px; font-size: 30px; } .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { margin-left: -10px; } .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { margin-right: -10px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-header:before, .modal-header:after, .modal-footer:before, .modal-footer:after { display: table; content: " "; } .clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-header:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .visible-xs-inline-block { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline-block { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline-block { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .visible-lg-inline-block { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .visible-print-inline { display: none !important; } @media print { .visible-print-inline { display: inline !important; } } .visible-print-inline-block { display: none !important; } @media print { .visible-print-inline-block { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } /*# sourceMappingURL=bootstrap.css.map */ ================================================ FILE: public/frontend/plugins/bootstrap3/js/bootstrap.js ================================================ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4') } }(jQuery); /* ======================================================================== * Bootstrap: transition.js v3.3.7 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // ============================================================ function transitionEnd() { var el = document.createElement('bootstrap') var transEndEventNames = { WebkitTransition : 'webkitTransitionEnd', MozTransition : 'transitionend', OTransition : 'oTransitionEnd otransitionend', transition : 'transitionend' } for (var name in transEndEventNames) { if (el.style[name] !== undefined) { return { end: transEndEventNames[name] } } } return false // explicit for ie8 ( ._.) } // http://blog.alexmaccaw.com/css-transitions $.fn.emulateTransitionEnd = function (duration) { var called = false var $el = this $(this).one('bsTransitionEnd', function () { called = true }) var callback = function () { if (!called) $($el).trigger($.support.transition.end) } setTimeout(callback, duration) return this } $(function () { $.support.transition = transitionEnd() if (!$.support.transition) return $.event.special.bsTransitionEnd = { bindType: $.support.transition.end, delegateType: $.support.transition.end, handle: function (e) { if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) } } }) }(jQuery); /* ======================================================================== * Bootstrap: alert.js v3.3.7 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // ALERT CLASS DEFINITION // ====================== var dismiss = '[data-dismiss="alert"]' var Alert = function (el) { $(el).on('click', dismiss, this.close) } Alert.VERSION = '3.3.7' Alert.TRANSITION_DURATION = 150 Alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = $(selector === '#' ? [] : selector) if (e) e.preventDefault() if (!$parent.length) { $parent = $this.closest('.alert') } $parent.trigger(e = $.Event('close.bs.alert')) if (e.isDefaultPrevented()) return $parent.removeClass('in') function removeElement() { // detach from parent, fire event then clean up data $parent.detach().trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasClass('fade') ? $parent .one('bsTransitionEnd', removeElement) .emulateTransitionEnd(Alert.TRANSITION_DURATION) : removeElement() } // ALERT PLUGIN DEFINITION // ======================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) } var old = $.fn.alert $.fn.alert = Plugin $.fn.alert.Constructor = Alert // ALERT NO CONFLICT // ================= $.fn.alert.noConflict = function () { $.fn.alert = old return this } // ALERT DATA-API // ============== $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) }(jQuery); /* ======================================================================== * Bootstrap: button.js v3.3.7 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // BUTTON PUBLIC CLASS DEFINITION // ============================== var Button = function (element, options) { this.$element = $(element) this.options = $.extend({}, Button.DEFAULTS, options) this.isLoading = false } Button.VERSION = '3.3.7' Button.DEFAULTS = { loadingText: 'loading...' } Button.prototype.setState = function (state) { var d = 'disabled' var $el = this.$element var val = $el.is('input') ? 'val' : 'html' var data = $el.data() state += 'Text' if (data.resetText == null) $el.data('resetText', $el[val]()) // push to event loop to allow forms to submit setTimeout($.proxy(function () { $el[val](data[state] == null ? this.options[state] : data[state]) if (state == 'loadingText') { this.isLoading = true $el.addClass(d).attr(d, d).prop(d, true) } else if (this.isLoading) { this.isLoading = false $el.removeClass(d).removeAttr(d).prop(d, false) } }, this), 0) } Button.prototype.toggle = function () { var changed = true var $parent = this.$element.closest('[data-toggle="buttons"]') if ($parent.length) { var $input = this.$element.find('input') if ($input.prop('type') == 'radio') { if ($input.prop('checked')) changed = false $parent.find('.active').removeClass('active') this.$element.addClass('active') } else if ($input.prop('type') == 'checkbox') { if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false this.$element.toggleClass('active') } $input.prop('checked', this.$element.hasClass('active')) if (changed) $input.trigger('change') } else { this.$element.attr('aria-pressed', !this.$element.hasClass('active')) this.$element.toggleClass('active') } } // BUTTON PLUGIN DEFINITION // ======================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() else if (option) data.setState(option) }) } var old = $.fn.button $.fn.button = Plugin $.fn.button.Constructor = Button // BUTTON NO CONFLICT // ================== $.fn.button.noConflict = function () { $.fn.button = old return this } // BUTTON DATA-API // =============== $(document) .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { var $btn = $(e.target).closest('.btn') Plugin.call($btn, 'toggle') if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { // Prevent double click on radios, and the double selections (so cancellation) on checkboxes e.preventDefault() // The target component still receive the focus if ($btn.is('input,button')) $btn.trigger('focus') else $btn.find('input:visible,button:visible').first().trigger('focus') } }) .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) }) }(jQuery); /* ======================================================================== * Bootstrap: carousel.js v3.3.7 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // CAROUSEL CLASS DEFINITION // ========================= var Carousel = function (element, options) { this.$element = $(element) this.$indicators = this.$element.find('.carousel-indicators') this.options = options this.paused = null this.sliding = null this.interval = null this.$active = null this.$items = null this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) } Carousel.VERSION = '3.3.7' Carousel.TRANSITION_DURATION = 600 Carousel.DEFAULTS = { interval: 5000, pause: 'hover', wrap: true, keyboard: true } Carousel.prototype.keydown = function (e) { if (/input|textarea/i.test(e.target.tagName)) return switch (e.which) { case 37: this.prev(); break case 39: this.next(); break default: return } e.preventDefault() } Carousel.prototype.cycle = function (e) { e || (this.paused = false) this.interval && clearInterval(this.interval) this.options.interval && !this.paused && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) return this } Carousel.prototype.getItemIndex = function (item) { this.$items = item.parent().children('.item') return this.$items.index(item || this.$active) } Carousel.prototype.getItemForDirection = function (direction, active) { var activeIndex = this.getItemIndex(active) var willWrap = (direction == 'prev' && activeIndex === 0) || (direction == 'next' && activeIndex == (this.$items.length - 1)) if (willWrap && !this.options.wrap) return active var delta = direction == 'prev' ? -1 : 1 var itemIndex = (activeIndex + delta) % this.$items.length return this.$items.eq(itemIndex) } Carousel.prototype.to = function (pos) { var that = this var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) if (pos > (this.$items.length - 1) || pos < 0) return if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" if (activeIndex == pos) return this.pause().cycle() return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos)) } Carousel.prototype.pause = function (e) { e || (this.paused = true) if (this.$element.find('.next, .prev').length && $.support.transition) { this.$element.trigger($.support.transition.end) this.cycle(true) } this.interval = clearInterval(this.interval) return this } Carousel.prototype.next = function () { if (this.sliding) return return this.slide('next') } Carousel.prototype.prev = function () { if (this.sliding) return return this.slide('prev') } Carousel.prototype.slide = function (type, next) { var $active = this.$element.find('.item.active') var $next = next || this.getItemForDirection(type, $active) var isCycling = this.interval var direction = type == 'next' ? 'left' : 'right' var that = this if ($next.hasClass('active')) return (this.sliding = false) var relatedTarget = $next[0] var slideEvent = $.Event('slide.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) this.$element.trigger(slideEvent) if (slideEvent.isDefaultPrevented()) return this.sliding = true isCycling && this.pause() if (this.$indicators.length) { this.$indicators.find('.active').removeClass('active') var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) $nextIndicator && $nextIndicator.addClass('active') } var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" if ($.support.transition && this.$element.hasClass('slide')) { $next.addClass(type) $next[0].offsetWidth // force reflow $active.addClass(direction) $next.addClass(direction) $active .one('bsTransitionEnd', function () { $next.removeClass([type, direction].join(' ')).addClass('active') $active.removeClass(['active', direction].join(' ')) that.sliding = false setTimeout(function () { that.$element.trigger(slidEvent) }, 0) }) .emulateTransitionEnd(Carousel.TRANSITION_DURATION) } else { $active.removeClass('active') $next.addClass('active') this.sliding = false this.$element.trigger(slidEvent) } isCycling && this.cycle() return this } // CAROUSEL PLUGIN DEFINITION // ========================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) if (typeof option == 'number') data.to(option) else if (action) data[action]() else if (options.interval) data.pause().cycle() }) } var old = $.fn.carousel $.fn.carousel = Plugin $.fn.carousel.Constructor = Carousel // CAROUSEL NO CONFLICT // ==================== $.fn.carousel.noConflict = function () { $.fn.carousel = old return this } // CAROUSEL DATA-API // ================= var clickHandler = function (e) { var href var $this = $(this) var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 if (!$target.hasClass('carousel')) return var options = $.extend({}, $target.data(), $this.data()) var slideIndex = $this.attr('data-slide-to') if (slideIndex) options.interval = false Plugin.call($target, options) if (slideIndex) { $target.data('bs.carousel').to(slideIndex) } e.preventDefault() } $(document) .on('click.bs.carousel.data-api', '[data-slide]', clickHandler) .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler) $(window).on('load', function () { $('[data-ride="carousel"]').each(function () { var $carousel = $(this) Plugin.call($carousel, $carousel.data()) }) }) }(jQuery); /* ======================================================================== * Bootstrap: collapse.js v3.3.7 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ /* jshint latedef: false */ +function ($) { 'use strict'; // COLLAPSE PUBLIC CLASS DEFINITION // ================================ var Collapse = function (element, options) { this.$element = $(element) this.options = $.extend({}, Collapse.DEFAULTS, options) this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + '[data-toggle="collapse"][data-target="#' + element.id + '"]') this.transitioning = null if (this.options.parent) { this.$parent = this.getParent() } else { this.addAriaAndCollapsedClass(this.$element, this.$trigger) } if (this.options.toggle) this.toggle() } Collapse.VERSION = '3.3.7' Collapse.TRANSITION_DURATION = 350 Collapse.DEFAULTS = { toggle: true } Collapse.prototype.dimension = function () { var hasWidth = this.$element.hasClass('width') return hasWidth ? 'width' : 'height' } Collapse.prototype.show = function () { if (this.transitioning || this.$element.hasClass('in')) return var activesData var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') if (actives && actives.length) { activesData = actives.data('bs.collapse') if (activesData && activesData.transitioning) return } var startEvent = $.Event('show.bs.collapse') this.$element.trigger(startEvent) if (startEvent.isDefaultPrevented()) return if (actives && actives.length) { Plugin.call(actives, 'hide') activesData || actives.data('bs.collapse', null) } var dimension = this.dimension() this.$element .removeClass('collapse') .addClass('collapsing')[dimension](0) .attr('aria-expanded', true) this.$trigger .removeClass('collapsed') .attr('aria-expanded', true) this.transitioning = 1 var complete = function () { this.$element .removeClass('collapsing') .addClass('collapse in')[dimension]('') this.transitioning = 0 this.$element .trigger('shown.bs.collapse') } if (!$.support.transition) return complete.call(this) var scrollSize = $.camelCase(['scroll', dimension].join('-')) this.$element .one('bsTransitionEnd', $.proxy(complete, this)) .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]) } Collapse.prototype.hide = function () { if (this.transitioning || !this.$element.hasClass('in')) return var startEvent = $.Event('hide.bs.collapse') this.$element.trigger(startEvent) if (startEvent.isDefaultPrevented()) return var dimension = this.dimension() this.$element[dimension](this.$element[dimension]())[0].offsetHeight this.$element .addClass('collapsing') .removeClass('collapse in') .attr('aria-expanded', false) this.$trigger .addClass('collapsed') .attr('aria-expanded', false) this.transitioning = 1 var complete = function () { this.transitioning = 0 this.$element .removeClass('collapsing') .addClass('collapse') .trigger('hidden.bs.collapse') } if (!$.support.transition) return complete.call(this) this.$element [dimension](0) .one('bsTransitionEnd', $.proxy(complete, this)) .emulateTransitionEnd(Collapse.TRANSITION_DURATION) } Collapse.prototype.toggle = function () { this[this.$element.hasClass('in') ? 'hide' : 'show']() } Collapse.prototype.getParent = function () { return $(this.options.parent) .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') .each($.proxy(function (i, element) { var $element = $(element) this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element) }, this)) .end() } Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) { var isOpen = $element.hasClass('in') $element.attr('aria-expanded', isOpen) $trigger .toggleClass('collapsed', !isOpen) .attr('aria-expanded', isOpen) } function getTargetFromTrigger($trigger) { var href var target = $trigger.attr('data-target') || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 return $(target) } // COLLAPSE PLUGIN DEFINITION // ========================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.collapse $.fn.collapse = Plugin $.fn.collapse.Constructor = Collapse // COLLAPSE NO CONFLICT // ==================== $.fn.collapse.noConflict = function () { $.fn.collapse = old return this } // COLLAPSE DATA-API // ================= $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { var $this = $(this) if (!$this.attr('data-target')) e.preventDefault() var $target = getTargetFromTrigger($this) var data = $target.data('bs.collapse') var option = data ? 'toggle' : $this.data() Plugin.call($target, option) }) }(jQuery); /* ======================================================================== * Bootstrap: dropdown.js v3.3.7 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // DROPDOWN CLASS DEFINITION // ========================= var backdrop = '.dropdown-backdrop' var toggle = '[data-toggle="dropdown"]' var Dropdown = function (element) { $(element).on('click.bs.dropdown', this.toggle) } Dropdown.VERSION = '3.3.7' function getParent($this) { var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = selector && $(selector) return $parent && $parent.length ? $parent : $this.parent() } function clearMenus(e) { if (e && e.which === 3) return $(backdrop).remove() $(toggle).each(function () { var $this = $(this) var $parent = getParent($this) var relatedTarget = { relatedTarget: this } if (!$parent.hasClass('open')) return if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) if (e.isDefaultPrevented()) return $this.attr('aria-expanded', 'false') $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget)) }) } Dropdown.prototype.toggle = function (e) { var $this = $(this) if ($this.is('.disabled, :disabled')) return var $parent = getParent($this) var isActive = $parent.hasClass('open') clearMenus() if (!isActive) { if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { // if mobile we use a backdrop because click events don't delegate $(document.createElement('div')) .addClass('dropdown-backdrop') .insertAfter($(this)) .on('click', clearMenus) } var relatedTarget = { relatedTarget: this } $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) if (e.isDefaultPrevented()) return $this .trigger('focus') .attr('aria-expanded', 'true') $parent .toggleClass('open') .trigger($.Event('shown.bs.dropdown', relatedTarget)) } return false } Dropdown.prototype.keydown = function (e) { if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return var $this = $(this) e.preventDefault() e.stopPropagation() if ($this.is('.disabled, :disabled')) return var $parent = getParent($this) var isActive = $parent.hasClass('open') if (!isActive && e.which != 27 || isActive && e.which == 27) { if (e.which == 27) $parent.find(toggle).trigger('focus') return $this.trigger('click') } var desc = ' li:not(.disabled):visible a' var $items = $parent.find('.dropdown-menu' + desc) if (!$items.length) return var index = $items.index(e.target) if (e.which == 38 && index > 0) index-- // up if (e.which == 40 && index < $items.length - 1) index++ // down if (!~index) index = 0 $items.eq(index).trigger('focus') } // DROPDOWN PLUGIN DEFINITION // ========================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.dropdown') if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) if (typeof option == 'string') data[option].call($this) }) } var old = $.fn.dropdown $.fn.dropdown = Plugin $.fn.dropdown.Constructor = Dropdown // DROPDOWN NO CONFLICT // ==================== $.fn.dropdown.noConflict = function () { $.fn.dropdown = old return this } // APPLY TO STANDARD DROPDOWN ELEMENTS // =================================== $(document) .on('click.bs.dropdown.data-api', clearMenus) .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) }(jQuery); /* ======================================================================== * Bootstrap: modal.js v3.3.7 * http://getbootstrap.com/javascript/#modals * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // MODAL CLASS DEFINITION // ====================== var Modal = function (element, options) { this.options = options this.$body = $(document.body) this.$element = $(element) this.$dialog = this.$element.find('.modal-dialog') this.$backdrop = null this.isShown = null this.originalBodyPad = null this.scrollbarWidth = 0 this.ignoreBackdropClick = false if (this.options.remote) { this.$element .find('.modal-content') .load(this.options.remote, $.proxy(function () { this.$element.trigger('loaded.bs.modal') }, this)) } } Modal.VERSION = '3.3.7' Modal.TRANSITION_DURATION = 300 Modal.BACKDROP_TRANSITION_DURATION = 150 Modal.DEFAULTS = { backdrop: true, keyboard: true, show: true } Modal.prototype.toggle = function (_relatedTarget) { return this.isShown ? this.hide() : this.show(_relatedTarget) } Modal.prototype.show = function (_relatedTarget) { var that = this var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) this.$element.trigger(e) if (this.isShown || e.isDefaultPrevented()) return this.isShown = true this.checkScrollbar() this.setScrollbar() this.$body.addClass('modal-open') this.escape() this.resize() this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) }) this.backdrop(function () { var transition = $.support.transition && that.$element.hasClass('fade') if (!that.$element.parent().length) { that.$element.appendTo(that.$body) // don't move modals dom position } that.$element .show() .scrollTop(0) that.adjustDialog() if (transition) { that.$element[0].offsetWidth // force reflow } that.$element.addClass('in') that.enforceFocus() var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget }) transition ? that.$dialog // wait for modal to slide in .one('bsTransitionEnd', function () { that.$element.trigger('focus').trigger(e) }) .emulateTransitionEnd(Modal.TRANSITION_DURATION) : that.$element.trigger('focus').trigger(e) }) } Modal.prototype.hide = function (e) { if (e) e.preventDefault() e = $.Event('hide.bs.modal') this.$element.trigger(e) if (!this.isShown || e.isDefaultPrevented()) return this.isShown = false this.escape() this.resize() $(document).off('focusin.bs.modal') this.$element .removeClass('in') .off('click.dismiss.bs.modal') .off('mouseup.dismiss.bs.modal') this.$dialog.off('mousedown.dismiss.bs.modal') $.support.transition && this.$element.hasClass('fade') ? this.$element .one('bsTransitionEnd', $.proxy(this.hideModal, this)) .emulateTransitionEnd(Modal.TRANSITION_DURATION) : this.hideModal() } Modal.prototype.enforceFocus = function () { $(document) .off('focusin.bs.modal') // guard against infinite focus loop .on('focusin.bs.modal', $.proxy(function (e) { if (document !== e.target && this.$element[0] !== e.target && !this.$element.has(e.target).length) { this.$element.trigger('focus') } }, this)) } Modal.prototype.escape = function () { if (this.isShown && this.options.keyboard) { this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) { e.which == 27 && this.hide() }, this)) } else if (!this.isShown) { this.$element.off('keydown.dismiss.bs.modal') } } Modal.prototype.resize = function () { if (this.isShown) { $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this)) } else { $(window).off('resize.bs.modal') } } Modal.prototype.hideModal = function () { var that = this this.$element.hide() this.backdrop(function () { that.$body.removeClass('modal-open') that.resetAdjustments() that.resetScrollbar() that.$element.trigger('hidden.bs.modal') }) } Modal.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove() this.$backdrop = null } Modal.prototype.backdrop = function (callback) { var that = this var animate = this.$element.hasClass('fade') ? 'fade' : '' if (this.isShown && this.options.backdrop) { var doAnimate = $.support.transition && animate this.$backdrop = $(document.createElement('div')) .addClass('modal-backdrop ' + animate) .appendTo(this.$body) this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) { if (this.ignoreBackdropClick) { this.ignoreBackdropClick = false return } if (e.target !== e.currentTarget) return this.options.backdrop == 'static' ? this.$element[0].focus() : this.hide() }, this)) if (doAnimate) this.$backdrop[0].offsetWidth // force reflow this.$backdrop.addClass('in') if (!callback) return doAnimate ? this.$backdrop .one('bsTransitionEnd', callback) .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : callback() } else if (!this.isShown && this.$backdrop) { this.$backdrop.removeClass('in') var callbackRemove = function () { that.removeBackdrop() callback && callback() } $.support.transition && this.$element.hasClass('fade') ? this.$backdrop .one('bsTransitionEnd', callbackRemove) .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : callbackRemove() } else if (callback) { callback() } } // these following methods are used to handle overflowing modals Modal.prototype.handleUpdate = function () { this.adjustDialog() } Modal.prototype.adjustDialog = function () { var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight this.$element.css({ paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' }) } Modal.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: '', paddingRight: '' }) } Modal.prototype.checkScrollbar = function () { var fullWindowWidth = window.innerWidth if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8 var documentElementRect = document.documentElement.getBoundingClientRect() fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left) } this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth this.scrollbarWidth = this.measureScrollbar() } Modal.prototype.setScrollbar = function () { var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) this.originalBodyPad = document.body.style.paddingRight || '' if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) } Modal.prototype.resetScrollbar = function () { this.$body.css('padding-right', this.originalBodyPad) } Modal.prototype.measureScrollbar = function () { // thx walsh var scrollDiv = document.createElement('div') scrollDiv.className = 'modal-scrollbar-measure' this.$body.append(scrollDiv) var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth this.$body[0].removeChild(scrollDiv) return scrollbarWidth } // MODAL PLUGIN DEFINITION // ======================= function Plugin(option, _relatedTarget) { return this.each(function () { var $this = $(this) var data = $this.data('bs.modal') var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.modal', (data = new Modal(this, options))) if (typeof option == 'string') data[option](_relatedTarget) else if (options.show) data.show(_relatedTarget) }) } var old = $.fn.modal $.fn.modal = Plugin $.fn.modal.Constructor = Modal // MODAL NO CONFLICT // ================= $.fn.modal.noConflict = function () { $.fn.modal = old return this } // MODAL DATA-API // ============== $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { var $this = $(this) var href = $this.attr('href') var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7 var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) if ($this.is('a')) e.preventDefault() $target.one('show.bs.modal', function (showEvent) { if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown $target.one('hidden.bs.modal', function () { $this.is(':visible') && $this.trigger('focus') }) }) Plugin.call($target, option, this) }) }(jQuery); /* ======================================================================== * Bootstrap: tooltip.js v3.3.7 * http://getbootstrap.com/javascript/#tooltip * Inspired by the original jQuery.tipsy by Jason Frame * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // TOOLTIP PUBLIC CLASS DEFINITION // =============================== var Tooltip = function (element, options) { this.type = null this.options = null this.enabled = null this.timeout = null this.hoverState = null this.$element = null this.inState = null this.init('tooltip', element, options) } Tooltip.VERSION = '3.3.7' Tooltip.TRANSITION_DURATION = 150 Tooltip.DEFAULTS = { animation: true, placement: 'top', selector: false, template: '', trigger: 'hover focus', title: '', delay: 0, html: false, container: false, viewport: { selector: 'body', padding: 0 } } Tooltip.prototype.init = function (type, element, options) { this.enabled = true this.type = type this.$element = $(element) this.options = this.getOptions(options) this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport)) this.inState = { click: false, hover: false, focus: false } if (this.$element[0] instanceof document.constructor && !this.options.selector) { throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!') } var triggers = this.options.trigger.split(' ') for (var i = triggers.length; i--;) { var trigger = triggers[i] if (trigger == 'click') { this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) } else if (trigger != 'manual') { var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin' var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout' this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) } } this.options.selector ? (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) : this.fixTitle() } Tooltip.prototype.getDefaults = function () { return Tooltip.DEFAULTS } Tooltip.prototype.getOptions = function (options) { options = $.extend({}, this.getDefaults(), this.$element.data(), options) if (options.delay && typeof options.delay == 'number') { options.delay = { show: options.delay, hide: options.delay } } return options } Tooltip.prototype.getDelegateOptions = function () { var options = {} var defaults = this.getDefaults() this._options && $.each(this._options, function (key, value) { if (defaults[key] != value) options[key] = value }) return options } Tooltip.prototype.enter = function (obj) { var self = obj instanceof this.constructor ? obj : $(obj.currentTarget).data('bs.' + this.type) if (!self) { self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) $(obj.currentTarget).data('bs.' + this.type, self) } if (obj instanceof $.Event) { self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true } if (self.tip().hasClass('in') || self.hoverState == 'in') { self.hoverState = 'in' return } clearTimeout(self.timeout) self.hoverState = 'in' if (!self.options.delay || !self.options.delay.show) return self.show() self.timeout = setTimeout(function () { if (self.hoverState == 'in') self.show() }, self.options.delay.show) } Tooltip.prototype.isInStateTrue = function () { for (var key in this.inState) { if (this.inState[key]) return true } return false } Tooltip.prototype.leave = function (obj) { var self = obj instanceof this.constructor ? obj : $(obj.currentTarget).data('bs.' + this.type) if (!self) { self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) $(obj.currentTarget).data('bs.' + this.type, self) } if (obj instanceof $.Event) { self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false } if (self.isInStateTrue()) return clearTimeout(self.timeout) self.hoverState = 'out' if (!self.options.delay || !self.options.delay.hide) return self.hide() self.timeout = setTimeout(function () { if (self.hoverState == 'out') self.hide() }, self.options.delay.hide) } Tooltip.prototype.show = function () { var e = $.Event('show.bs.' + this.type) if (this.hasContent() && this.enabled) { this.$element.trigger(e) var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]) if (e.isDefaultPrevented() || !inDom) return var that = this var $tip = this.tip() var tipId = this.getUID(this.type) this.setContent() $tip.attr('id', tipId) this.$element.attr('aria-describedby', tipId) if (this.options.animation) $tip.addClass('fade') var placement = typeof this.options.placement == 'function' ? this.options.placement.call(this, $tip[0], this.$element[0]) : this.options.placement var autoToken = /\s?auto?\s?/i var autoPlace = autoToken.test(placement) if (autoPlace) placement = placement.replace(autoToken, '') || 'top' $tip .detach() .css({ top: 0, left: 0, display: 'block' }) .addClass(placement) .data('bs.' + this.type, this) this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element) this.$element.trigger('inserted.bs.' + this.type) var pos = this.getPosition() var actualWidth = $tip[0].offsetWidth var actualHeight = $tip[0].offsetHeight if (autoPlace) { var orgPlacement = placement var viewportDim = this.getPosition(this.$viewport) placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' : placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' : placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' : placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' : placement $tip .removeClass(orgPlacement) .addClass(placement) } var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) this.applyPlacement(calculatedOffset, placement) var complete = function () { var prevHoverState = that.hoverState that.$element.trigger('shown.bs.' + that.type) that.hoverState = null if (prevHoverState == 'out') that.leave(that) } $.support.transition && this.$tip.hasClass('fade') ? $tip .one('bsTransitionEnd', complete) .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : complete() } } Tooltip.prototype.applyPlacement = function (offset, placement) { var $tip = this.tip() var width = $tip[0].offsetWidth var height = $tip[0].offsetHeight // manually read margins because getBoundingClientRect includes difference var marginTop = parseInt($tip.css('margin-top'), 10) var marginLeft = parseInt($tip.css('margin-left'), 10) // we must check for NaN for ie 8/9 if (isNaN(marginTop)) marginTop = 0 if (isNaN(marginLeft)) marginLeft = 0 offset.top += marginTop offset.left += marginLeft // $.fn.offset doesn't round pixel values // so we use setOffset directly with our own function B-0 $.offset.setOffset($tip[0], $.extend({ using: function (props) { $tip.css({ top: Math.round(props.top), left: Math.round(props.left) }) } }, offset), 0) $tip.addClass('in') // check to see if placing tip in new offset caused the tip to resize itself var actualWidth = $tip[0].offsetWidth var actualHeight = $tip[0].offsetHeight if (placement == 'top' && actualHeight != height) { offset.top = offset.top + height - actualHeight } var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight) if (delta.left) offset.left += delta.left else offset.top += delta.top var isVertical = /top|bottom/.test(placement) var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight' $tip.offset(offset) this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical) } Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) { this.arrow() .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') .css(isVertical ? 'top' : 'left', '') } Tooltip.prototype.setContent = function () { var $tip = this.tip() var title = this.getTitle() $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title) $tip.removeClass('fade in top bottom left right') } Tooltip.prototype.hide = function (callback) { var that = this var $tip = $(this.$tip) var e = $.Event('hide.bs.' + this.type) function complete() { if (that.hoverState != 'in') $tip.detach() if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary. that.$element .removeAttr('aria-describedby') .trigger('hidden.bs.' + that.type) } callback && callback() } this.$element.trigger(e) if (e.isDefaultPrevented()) return $tip.removeClass('in') $.support.transition && $tip.hasClass('fade') ? $tip .one('bsTransitionEnd', complete) .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : complete() this.hoverState = null return this } Tooltip.prototype.fixTitle = function () { var $e = this.$element if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') { $e.attr('data-original-title', $e.attr('title') || '').attr('title', '') } } Tooltip.prototype.hasContent = function () { return this.getTitle() } Tooltip.prototype.getPosition = function ($element) { $element = $element || this.$element var el = $element[0] var isBody = el.tagName == 'BODY' var elRect = el.getBoundingClientRect() if (elRect.width == null) { // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093 elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top }) } var isSvg = window.SVGElement && el instanceof window.SVGElement // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3. // See https://github.com/twbs/bootstrap/issues/20280 var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset()) var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null return $.extend({}, elRect, scroll, outerDims, elOffset) } Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width } } Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) { var delta = { top: 0, left: 0 } if (!this.$viewport) return delta var viewportPadding = this.options.viewport && this.options.viewport.padding || 0 var viewportDimensions = this.getPosition(this.$viewport) if (/right|left/.test(placement)) { var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight if (topEdgeOffset < viewportDimensions.top) { // top overflow delta.top = viewportDimensions.top - topEdgeOffset } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset } } else { var leftEdgeOffset = pos.left - viewportPadding var rightEdgeOffset = pos.left + viewportPadding + actualWidth if (leftEdgeOffset < viewportDimensions.left) { // left overflow delta.left = viewportDimensions.left - leftEdgeOffset } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset } } return delta } Tooltip.prototype.getTitle = function () { var title var $e = this.$element var o = this.options title = $e.attr('data-original-title') || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) return title } Tooltip.prototype.getUID = function (prefix) { do prefix += ~~(Math.random() * 1000000) while (document.getElementById(prefix)) return prefix } Tooltip.prototype.tip = function () { if (!this.$tip) { this.$tip = $(this.options.template) if (this.$tip.length != 1) { throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!') } } return this.$tip } Tooltip.prototype.arrow = function () { return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')) } Tooltip.prototype.enable = function () { this.enabled = true } Tooltip.prototype.disable = function () { this.enabled = false } Tooltip.prototype.toggleEnabled = function () { this.enabled = !this.enabled } Tooltip.prototype.toggle = function (e) { var self = this if (e) { self = $(e.currentTarget).data('bs.' + this.type) if (!self) { self = new this.constructor(e.currentTarget, this.getDelegateOptions()) $(e.currentTarget).data('bs.' + this.type, self) } } if (e) { self.inState.click = !self.inState.click if (self.isInStateTrue()) self.enter(self) else self.leave(self) } else { self.tip().hasClass('in') ? self.leave(self) : self.enter(self) } } Tooltip.prototype.destroy = function () { var that = this clearTimeout(this.timeout) this.hide(function () { that.$element.off('.' + that.type).removeData('bs.' + that.type) if (that.$tip) { that.$tip.detach() } that.$tip = null that.$arrow = null that.$viewport = null that.$element = null }) } // TOOLTIP PLUGIN DEFINITION // ========================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tooltip') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.tooltip $.fn.tooltip = Plugin $.fn.tooltip.Constructor = Tooltip // TOOLTIP NO CONFLICT // =================== $.fn.tooltip.noConflict = function () { $.fn.tooltip = old return this } }(jQuery); /* ======================================================================== * Bootstrap: popover.js v3.3.7 * http://getbootstrap.com/javascript/#popovers * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // POPOVER PUBLIC CLASS DEFINITION // =============================== var Popover = function (element, options) { this.init('popover', element, options) } if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') Popover.VERSION = '3.3.7' Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { placement: 'right', trigger: 'click', content: '', template: '' }) // NOTE: POPOVER EXTENDS tooltip.js // ================================ Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype) Popover.prototype.constructor = Popover Popover.prototype.getDefaults = function () { return Popover.DEFAULTS } Popover.prototype.setContent = function () { var $tip = this.tip() var title = this.getTitle() var content = this.getContent() $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' ](content) $tip.removeClass('fade top bottom left right in') // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do // this manually by checking the contents. if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() } Popover.prototype.hasContent = function () { return this.getTitle() || this.getContent() } Popover.prototype.getContent = function () { var $e = this.$element var o = this.options return $e.attr('data-content') || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) } Popover.prototype.arrow = function () { return (this.$arrow = this.$arrow || this.tip().find('.arrow')) } // POPOVER PLUGIN DEFINITION // ========================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.popover') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.popover $.fn.popover = Plugin $.fn.popover.Constructor = Popover // POPOVER NO CONFLICT // =================== $.fn.popover.noConflict = function () { $.fn.popover = old return this } }(jQuery); /* ======================================================================== * Bootstrap: scrollspy.js v3.3.7 * http://getbootstrap.com/javascript/#scrollspy * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // SCROLLSPY CLASS DEFINITION // ========================== function ScrollSpy(element, options) { this.$body = $(document.body) this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) this.options = $.extend({}, ScrollSpy.DEFAULTS, options) this.selector = (this.options.target || '') + ' .nav li > a' this.offsets = [] this.targets = [] this.activeTarget = null this.scrollHeight = 0 this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) this.refresh() this.process() } ScrollSpy.VERSION = '3.3.7' ScrollSpy.DEFAULTS = { offset: 10 } ScrollSpy.prototype.getScrollHeight = function () { return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) } ScrollSpy.prototype.refresh = function () { var that = this var offsetMethod = 'offset' var offsetBase = 0 this.offsets = [] this.targets = [] this.scrollHeight = this.getScrollHeight() if (!$.isWindow(this.$scrollElement[0])) { offsetMethod = 'position' offsetBase = this.$scrollElement.scrollTop() } this.$body .find(this.selector) .map(function () { var $el = $(this) var href = $el.data('target') || $el.attr('href') var $href = /^#./.test(href) && $(href) return ($href && $href.length && $href.is(':visible') && [[$href[offsetMethod]().top + offsetBase, href]]) || null }) .sort(function (a, b) { return a[0] - b[0] }) .each(function () { that.offsets.push(this[0]) that.targets.push(this[1]) }) } ScrollSpy.prototype.process = function () { var scrollTop = this.$scrollElement.scrollTop() + this.options.offset var scrollHeight = this.getScrollHeight() var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() var offsets = this.offsets var targets = this.targets var activeTarget = this.activeTarget var i if (this.scrollHeight != scrollHeight) { this.refresh() } if (scrollTop >= maxScroll) { return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) } if (activeTarget && scrollTop < offsets[0]) { this.activeTarget = null return this.clear() } for (i = offsets.length; i--;) { activeTarget != targets[i] && scrollTop >= offsets[i] && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) && this.activate(targets[i]) } } ScrollSpy.prototype.activate = function (target) { this.activeTarget = target this.clear() var selector = this.selector + '[data-target="' + target + '"],' + this.selector + '[href="' + target + '"]' var active = $(selector) .parents('li') .addClass('active') if (active.parent('.dropdown-menu').length) { active = active .closest('li.dropdown') .addClass('active') } active.trigger('activate.bs.scrollspy') } ScrollSpy.prototype.clear = function () { $(this.selector) .parentsUntil(this.options.target, '.active') .removeClass('active') } // SCROLLSPY PLUGIN DEFINITION // =========================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.scrollspy') var options = typeof option == 'object' && option if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.scrollspy $.fn.scrollspy = Plugin $.fn.scrollspy.Constructor = ScrollSpy // SCROLLSPY NO CONFLICT // ===================== $.fn.scrollspy.noConflict = function () { $.fn.scrollspy = old return this } // SCROLLSPY DATA-API // ================== $(window).on('load.bs.scrollspy.data-api', function () { $('[data-spy="scroll"]').each(function () { var $spy = $(this) Plugin.call($spy, $spy.data()) }) }) }(jQuery); /* ======================================================================== * Bootstrap: tab.js v3.3.7 * http://getbootstrap.com/javascript/#tabs * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // TAB CLASS DEFINITION // ==================== var Tab = function (element) { // jscs:disable requireDollarBeforejQueryAssignment this.element = $(element) // jscs:enable requireDollarBeforejQueryAssignment } Tab.VERSION = '3.3.7' Tab.TRANSITION_DURATION = 150 Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:not(.dropdown-menu)') var selector = $this.data('target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } if ($this.parent('li').hasClass('active')) return var $previous = $ul.find('.active:last a') var hideEvent = $.Event('hide.bs.tab', { relatedTarget: $this[0] }) var showEvent = $.Event('show.bs.tab', { relatedTarget: $previous[0] }) $previous.trigger(hideEvent) $this.trigger(showEvent) if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return var $target = $(selector) this.activate($this.closest('li'), $ul) this.activate($target, $target.parent(), function () { $previous.trigger({ type: 'hidden.bs.tab', relatedTarget: $this[0] }) $this.trigger({ type: 'shown.bs.tab', relatedTarget: $previous[0] }) }) } Tab.prototype.activate = function (element, container, callback) { var $active = container.find('> .active') var transition = callback && $.support.transition && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) function next() { $active .removeClass('active') .find('> .dropdown-menu > .active') .removeClass('active') .end() .find('[data-toggle="tab"]') .attr('aria-expanded', false) element .addClass('active') .find('[data-toggle="tab"]') .attr('aria-expanded', true) if (transition) { element[0].offsetWidth // reflow for transition element.addClass('in') } else { element.removeClass('fade') } if (element.parent('.dropdown-menu').length) { element .closest('li.dropdown') .addClass('active') .end() .find('[data-toggle="tab"]') .attr('aria-expanded', true) } callback && callback() } $active.length && transition ? $active .one('bsTransitionEnd', next) .emulateTransitionEnd(Tab.TRANSITION_DURATION) : next() $active.removeClass('in') } // TAB PLUGIN DEFINITION // ===================== function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tab') if (!data) $this.data('bs.tab', (data = new Tab(this))) if (typeof option == 'string') data[option]() }) } var old = $.fn.tab $.fn.tab = Plugin $.fn.tab.Constructor = Tab // TAB NO CONFLICT // =============== $.fn.tab.noConflict = function () { $.fn.tab = old return this } // TAB DATA-API // ============ var clickHandler = function (e) { e.preventDefault() Plugin.call($(this), 'show') } $(document) .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler) .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler) }(jQuery); /* ======================================================================== * Bootstrap: affix.js v3.3.7 * http://getbootstrap.com/javascript/#affix * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // AFFIX CLASS DEFINITION // ====================== var Affix = function (element, options) { this.options = $.extend({}, Affix.DEFAULTS, options) this.$target = $(this.options.target) .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) this.$element = $(element) this.affixed = null this.unpin = null this.pinnedOffset = null this.checkPosition() } Affix.VERSION = '3.3.7' Affix.RESET = 'affix affix-top affix-bottom' Affix.DEFAULTS = { offset: 0, target: window } Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { var scrollTop = this.$target.scrollTop() var position = this.$element.offset() var targetHeight = this.$target.height() if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false if (this.affixed == 'bottom') { if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' } var initializing = this.affixed == null var colliderTop = initializing ? scrollTop : position.top var colliderHeight = initializing ? targetHeight : height if (offsetTop != null && scrollTop <= offsetTop) return 'top' if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' return false } Affix.prototype.getPinnedOffset = function () { if (this.pinnedOffset) return this.pinnedOffset this.$element.removeClass(Affix.RESET).addClass('affix') var scrollTop = this.$target.scrollTop() var position = this.$element.offset() return (this.pinnedOffset = position.top - scrollTop) } Affix.prototype.checkPositionWithEventLoop = function () { setTimeout($.proxy(this.checkPosition, this), 1) } Affix.prototype.checkPosition = function () { if (!this.$element.is(':visible')) return var height = this.$element.height() var offset = this.options.offset var offsetTop = offset.top var offsetBottom = offset.bottom var scrollHeight = Math.max($(document).height(), $(document.body).height()) if (typeof offset != 'object') offsetBottom = offsetTop = offset if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) if (this.affixed != affix) { if (this.unpin != null) this.$element.css('top', '') var affixType = 'affix' + (affix ? '-' + affix : '') var e = $.Event(affixType + '.bs.affix') this.$element.trigger(e) if (e.isDefaultPrevented()) return this.affixed = affix this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null this.$element .removeClass(Affix.RESET) .addClass(affixType) .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') } if (affix == 'bottom') { this.$element.offset({ top: scrollHeight - height - offsetBottom }) } } // AFFIX PLUGIN DEFINITION // ======================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.affix') var options = typeof option == 'object' && option if (!data) $this.data('bs.affix', (data = new Affix(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.affix $.fn.affix = Plugin $.fn.affix.Constructor = Affix // AFFIX NO CONFLICT // ================= $.fn.affix.noConflict = function () { $.fn.affix = old return this } // AFFIX DATA-API // ============== $(window).on('load', function () { $('[data-spy="affix"]').each(function () { var $spy = $(this) var data = $spy.data() data.offset = data.offset || {} if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom if (data.offsetTop != null) data.offset.top = data.offsetTop Plugin.call($spy, data) }) }) }(jQuery); ================================================ FILE: public/frontend/plugins/bootstrap3/js/npm.js ================================================ // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. require('../../js/transition.js') require('../../js/alert.js') require('../../js/button.js') require('../../js/carousel.js') require('../../js/collapse.js') require('../../js/dropdown.js') require('../../js/modal.js') require('../../js/tooltip.js') require('../../js/popover.js') require('../../js/scrollspy.js') require('../../js/tab.js') require('../../js/affix.js') ================================================ FILE: public/frontend/plugins/bootstrap4/css/bootstrap-grid.css ================================================ /*! * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors * Copyright 2011-2017 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ @-ms-viewport { width: device-width; } html { box-sizing: border-box; -ms-overflow-style: scrollbar; } *, *::before, *::after { box-sizing: inherit; } .container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } @media (min-width: 576px) { .container { max-width: 540px; } } @media (min-width: 768px) { .container { max-width: 720px; } } @media (min-width: 992px) { .container { max-width: 960px; } } @media (min-width: 1200px) { .container { max-width: 1140px; } } .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; } .no-gutters { margin-right: 0; margin-left: 0; } .no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto { position: relative; width: 100%; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-first { -ms-flex-order: -1; order: -1; } .order-1 { -ms-flex-order: 1; order: 1; } .order-2 { -ms-flex-order: 2; order: 2; } .order-3 { -ms-flex-order: 3; order: 3; } .order-4 { -ms-flex-order: 4; order: 4; } .order-5 { -ms-flex-order: 5; order: 5; } .order-6 { -ms-flex-order: 6; order: 6; } .order-7 { -ms-flex-order: 7; order: 7; } .order-8 { -ms-flex-order: 8; order: 8; } .order-9 { -ms-flex-order: 9; order: 9; } .order-10 { -ms-flex-order: 10; order: 10; } .order-11 { -ms-flex-order: 11; order: 11; } .order-12 { -ms-flex-order: 12; order: 12; } .offset-1 { margin-left: 8.333333%; } .offset-2 { margin-left: 16.666667%; } .offset-3 { margin-left: 25%; } .offset-4 { margin-left: 33.333333%; } .offset-5 { margin-left: 41.666667%; } .offset-6 { margin-left: 50%; } .offset-7 { margin-left: 58.333333%; } .offset-8 { margin-left: 66.666667%; } .offset-9 { margin-left: 75%; } .offset-10 { margin-left: 83.333333%; } .offset-11 { margin-left: 91.666667%; } @media (min-width: 576px) { .col-sm { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-sm-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-sm-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-sm-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-sm-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-sm-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-sm-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-sm-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-sm-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-sm-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-sm-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-sm-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-sm-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-sm-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-sm-first { -ms-flex-order: -1; order: -1; } .order-sm-1 { -ms-flex-order: 1; order: 1; } .order-sm-2 { -ms-flex-order: 2; order: 2; } .order-sm-3 { -ms-flex-order: 3; order: 3; } .order-sm-4 { -ms-flex-order: 4; order: 4; } .order-sm-5 { -ms-flex-order: 5; order: 5; } .order-sm-6 { -ms-flex-order: 6; order: 6; } .order-sm-7 { -ms-flex-order: 7; order: 7; } .order-sm-8 { -ms-flex-order: 8; order: 8; } .order-sm-9 { -ms-flex-order: 9; order: 9; } .order-sm-10 { -ms-flex-order: 10; order: 10; } .order-sm-11 { -ms-flex-order: 11; order: 11; } .order-sm-12 { -ms-flex-order: 12; order: 12; } .offset-sm-0 { margin-left: 0; } .offset-sm-1 { margin-left: 8.333333%; } .offset-sm-2 { margin-left: 16.666667%; } .offset-sm-3 { margin-left: 25%; } .offset-sm-4 { margin-left: 33.333333%; } .offset-sm-5 { margin-left: 41.666667%; } .offset-sm-6 { margin-left: 50%; } .offset-sm-7 { margin-left: 58.333333%; } .offset-sm-8 { margin-left: 66.666667%; } .offset-sm-9 { margin-left: 75%; } .offset-sm-10 { margin-left: 83.333333%; } .offset-sm-11 { margin-left: 91.666667%; } } @media (min-width: 768px) { .col-md { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-md-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-md-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-md-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-md-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-md-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-md-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-md-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-md-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-md-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-md-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-md-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-md-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-md-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-md-first { -ms-flex-order: -1; order: -1; } .order-md-1 { -ms-flex-order: 1; order: 1; } .order-md-2 { -ms-flex-order: 2; order: 2; } .order-md-3 { -ms-flex-order: 3; order: 3; } .order-md-4 { -ms-flex-order: 4; order: 4; } .order-md-5 { -ms-flex-order: 5; order: 5; } .order-md-6 { -ms-flex-order: 6; order: 6; } .order-md-7 { -ms-flex-order: 7; order: 7; } .order-md-8 { -ms-flex-order: 8; order: 8; } .order-md-9 { -ms-flex-order: 9; order: 9; } .order-md-10 { -ms-flex-order: 10; order: 10; } .order-md-11 { -ms-flex-order: 11; order: 11; } .order-md-12 { -ms-flex-order: 12; order: 12; } .offset-md-0 { margin-left: 0; } .offset-md-1 { margin-left: 8.333333%; } .offset-md-2 { margin-left: 16.666667%; } .offset-md-3 { margin-left: 25%; } .offset-md-4 { margin-left: 33.333333%; } .offset-md-5 { margin-left: 41.666667%; } .offset-md-6 { margin-left: 50%; } .offset-md-7 { margin-left: 58.333333%; } .offset-md-8 { margin-left: 66.666667%; } .offset-md-9 { margin-left: 75%; } .offset-md-10 { margin-left: 83.333333%; } .offset-md-11 { margin-left: 91.666667%; } } @media (min-width: 992px) { .col-lg { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-lg-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-lg-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-lg-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-lg-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-lg-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-lg-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-lg-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-lg-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-lg-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-lg-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-lg-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-lg-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-lg-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-lg-first { -ms-flex-order: -1; order: -1; } .order-lg-1 { -ms-flex-order: 1; order: 1; } .order-lg-2 { -ms-flex-order: 2; order: 2; } .order-lg-3 { -ms-flex-order: 3; order: 3; } .order-lg-4 { -ms-flex-order: 4; order: 4; } .order-lg-5 { -ms-flex-order: 5; order: 5; } .order-lg-6 { -ms-flex-order: 6; order: 6; } .order-lg-7 { -ms-flex-order: 7; order: 7; } .order-lg-8 { -ms-flex-order: 8; order: 8; } .order-lg-9 { -ms-flex-order: 9; order: 9; } .order-lg-10 { -ms-flex-order: 10; order: 10; } .order-lg-11 { -ms-flex-order: 11; order: 11; } .order-lg-12 { -ms-flex-order: 12; order: 12; } .offset-lg-0 { margin-left: 0; } .offset-lg-1 { margin-left: 8.333333%; } .offset-lg-2 { margin-left: 16.666667%; } .offset-lg-3 { margin-left: 25%; } .offset-lg-4 { margin-left: 33.333333%; } .offset-lg-5 { margin-left: 41.666667%; } .offset-lg-6 { margin-left: 50%; } .offset-lg-7 { margin-left: 58.333333%; } .offset-lg-8 { margin-left: 66.666667%; } .offset-lg-9 { margin-left: 75%; } .offset-lg-10 { margin-left: 83.333333%; } .offset-lg-11 { margin-left: 91.666667%; } } @media (min-width: 1200px) { .col-xl { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-xl-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-xl-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-xl-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-xl-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-xl-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-xl-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-xl-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-xl-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-xl-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-xl-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-xl-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-xl-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-xl-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-xl-first { -ms-flex-order: -1; order: -1; } .order-xl-1 { -ms-flex-order: 1; order: 1; } .order-xl-2 { -ms-flex-order: 2; order: 2; } .order-xl-3 { -ms-flex-order: 3; order: 3; } .order-xl-4 { -ms-flex-order: 4; order: 4; } .order-xl-5 { -ms-flex-order: 5; order: 5; } .order-xl-6 { -ms-flex-order: 6; order: 6; } .order-xl-7 { -ms-flex-order: 7; order: 7; } .order-xl-8 { -ms-flex-order: 8; order: 8; } .order-xl-9 { -ms-flex-order: 9; order: 9; } .order-xl-10 { -ms-flex-order: 10; order: 10; } .order-xl-11 { -ms-flex-order: 11; order: 11; } .order-xl-12 { -ms-flex-order: 12; order: 12; } .offset-xl-0 { margin-left: 0; } .offset-xl-1 { margin-left: 8.333333%; } .offset-xl-2 { margin-left: 16.666667%; } .offset-xl-3 { margin-left: 25%; } .offset-xl-4 { margin-left: 33.333333%; } .offset-xl-5 { margin-left: 41.666667%; } .offset-xl-6 { margin-left: 50%; } .offset-xl-7 { margin-left: 58.333333%; } .offset-xl-8 { margin-left: 66.666667%; } .offset-xl-9 { margin-left: 75%; } .offset-xl-10 { margin-left: 83.333333%; } .offset-xl-11 { margin-left: 91.666667%; } } .flex-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } @media (min-width: 576px) { .flex-sm-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-sm-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-sm-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-sm-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-sm-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-sm-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-sm-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-sm-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-sm-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-sm-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-sm-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-sm-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-sm-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-sm-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-sm-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-sm-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-sm-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-sm-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-sm-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-sm-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-sm-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-sm-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-sm-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-sm-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-sm-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-sm-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-sm-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-sm-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-sm-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 768px) { .flex-md-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-md-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-md-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-md-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-md-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-md-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-md-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-md-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-md-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-md-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-md-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-md-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-md-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-md-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-md-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-md-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-md-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-md-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-md-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-md-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-md-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-md-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-md-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-md-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-md-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-md-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-md-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-md-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-md-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 992px) { .flex-lg-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-lg-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-lg-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-lg-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-lg-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-lg-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-lg-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-lg-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-lg-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-lg-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-lg-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-lg-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-lg-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-lg-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-lg-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-lg-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-lg-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-lg-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-lg-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-lg-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-lg-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-lg-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-lg-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-lg-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-lg-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-lg-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-lg-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-lg-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-lg-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 1200px) { .flex-xl-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-xl-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-xl-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-xl-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-xl-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-xl-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-xl-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-xl-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-xl-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-xl-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-xl-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-xl-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-xl-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-xl-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-xl-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-xl-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-xl-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-xl-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-xl-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-xl-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-xl-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-xl-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-xl-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-xl-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-xl-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-xl-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-xl-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-xl-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-xl-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } /*# sourceMappingURL=bootstrap-grid.css.map */ ================================================ FILE: public/frontend/plugins/bootstrap4/css/bootstrap-reboot.css ================================================ /*! * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors * Copyright 2011-2017 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) */ *, *::before, *::after { box-sizing: border-box; } html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -ms-overflow-style: scrollbar; -webkit-tap-highlight-color: transparent; } @-ms-viewport { width: device-width; } article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; background-color: #fff; } [tabindex="-1"]:focus { outline: none !important; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; } p { margin-top: 0; margin-bottom: 1rem; } abbr[title], abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; cursor: help; border-bottom: 0; } address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: .5rem; margin-left: 0; } blockquote { margin: 0 0 1rem; } dfn { font-style: italic; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -.25em; } sup { top: -.5em; } a { color: #007bff; text-decoration: none; background-color: transparent; -webkit-text-decoration-skip: objects; } a:hover { color: #0056b3; text-decoration: underline; } a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):focus { outline: 0; } pre, code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; -ms-overflow-style: scrollbar; } figure { margin: 0 0 1rem; } img { vertical-align: middle; border-style: none; } svg:not(:root) { overflow: hidden; } a, area, button, [role="button"], input:not([type="range"]), label, select, summary, textarea { -ms-touch-action: manipulation; touch-action: manipulation; } table { border-collapse: collapse; } caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #868e96; text-align: left; caption-side: bottom; } th { text-align: inherit; } label { display: inline-block; margin-bottom: .5rem; } button { border-radius: 0; } button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { padding: 0; border-style: none; } input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; } input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { -webkit-appearance: listbox; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; } progress { vertical-align: baseline; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { outline-offset: -2px; -webkit-appearance: none; } [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } /*# sourceMappingURL=bootstrap-reboot.css.map */ ================================================ FILE: public/frontend/plugins/bootstrap4/css/bootstrap.css ================================================ /*! * Bootstrap v4.0.0-beta.2 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors * Copyright 2011-2017 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ :root { --blue: #007bff; --indigo: #6610f2; --purple: #6f42c1; --pink: #e83e8c; --red: #dc3545; --orange: #fd7e14; --yellow: #ffc107; --green: #28a745; --teal: #20c997; --cyan: #17a2b8; --white: #fff; --gray: #868e96; --gray-dark: #343a40; --primary: #007bff; --secondary: #868e96; --success: #28a745; --info: #17a2b8; --warning: #ffc107; --danger: #dc3545; --light: #f8f9fa; --dark: #343a40; --breakpoint-xs: 0; --breakpoint-sm: 576px; --breakpoint-md: 768px; --breakpoint-lg: 992px; --breakpoint-xl: 1200px; --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; --font-family-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } @media print { *, *::before, *::after { text-shadow: none !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } abbr[title]::after { content: " (" attr(title) ")"; } pre { white-space: pre-wrap !important; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .badge { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } *, *::before, *::after { box-sizing: border-box; } html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -ms-overflow-style: scrollbar; -webkit-tap-highlight-color: transparent; } @-ms-viewport { width: device-width; } article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; background-color: #fff; } [tabindex="-1"]:focus { outline: none !important; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; } p { margin-top: 0; margin-bottom: 1rem; } abbr[title], abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; cursor: help; border-bottom: 0; } address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: .5rem; margin-left: 0; } blockquote { margin: 0 0 1rem; } dfn { font-style: italic; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -.25em; } sup { top: -.5em; } a { color: #007bff; text-decoration: none; background-color: transparent; -webkit-text-decoration-skip: objects; } a:hover { color: #0056b3; text-decoration: underline; } a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover { color: inherit; text-decoration: none; } a:not([href]):not([tabindex]):focus { outline: 0; } pre, code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; -ms-overflow-style: scrollbar; } figure { margin: 0 0 1rem; } img { vertical-align: middle; border-style: none; } svg:not(:root) { overflow: hidden; } a, area, button, [role="button"], input:not([type="range"]), label, select, summary, textarea { -ms-touch-action: manipulation; touch-action: manipulation; } table { border-collapse: collapse; } caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #868e96; text-align: left; caption-side: bottom; } th { text-align: inherit; } label { display: inline-block; margin-bottom: .5rem; } button { border-radius: 0; } button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { padding: 0; border-style: none; } input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; } input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { -webkit-appearance: listbox; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; } progress { vertical-align: baseline; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { outline-offset: -2px; -webkit-appearance: none; } [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 0.5rem; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; } h1, .h1 { font-size: 2.5rem; } h2, .h2 { font-size: 2rem; } h3, .h3 { font-size: 1.75rem; } h4, .h4 { font-size: 1.5rem; } h5, .h5 { font-size: 1.25rem; } h6, .h6 { font-size: 1rem; } .lead { font-size: 1.25rem; font-weight: 300; } .display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; } .display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; } .display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; } .display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; } hr { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); } small, .small { font-size: 80%; font-weight: 400; } mark, .mark { padding: 0.2em; background-color: #fcf8e3; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline-item { display: inline-block; } .list-inline-item:not(:last-child) { margin-right: 5px; } .initialism { font-size: 90%; text-transform: uppercase; } .blockquote { margin-bottom: 1rem; font-size: 1.25rem; } .blockquote-footer { display: block; font-size: 80%; color: #868e96; } .blockquote-footer::before { content: "\2014 \00A0"; } .img-fluid { max-width: 100%; height: auto; } .img-thumbnail { padding: 0.25rem; background-color: #fff; border: 1px solid #ddd; border-radius: 0.25rem; transition: all 0.2s ease-in-out; max-width: 100%; height: auto; } .figure { display: inline-block; } .figure-img { margin-bottom: 0.5rem; line-height: 1; } .figure-caption { font-size: 90%; color: #868e96; } code, kbd, pre, samp { font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } code { padding: 0.2rem 0.4rem; font-size: 90%; color: #bd4147; background-color: #f8f9fa; border-radius: 0.25rem; } a > code { padding: 0; color: inherit; background-color: inherit; } kbd { padding: 0.2rem 0.4rem; font-size: 90%; color: #fff; background-color: #212529; border-radius: 0.2rem; } kbd kbd { padding: 0; font-size: 100%; font-weight: 700; } pre { display: block; margin-top: 0; margin-bottom: 1rem; font-size: 90%; color: #212529; } pre code { padding: 0; font-size: inherit; color: inherit; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } @media (min-width: 576px) { .container { max-width: 540px; } } @media (min-width: 768px) { .container { max-width: 720px; } } @media (min-width: 992px) { .container { max-width: 960px; } } @media (min-width: 1200px) { .container { max-width: 1140px; } } .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; } .no-gutters { margin-right: 0; margin-left: 0; } .no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto { position: relative; width: 100%; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-first { -ms-flex-order: -1; order: -1; } .order-1 { -ms-flex-order: 1; order: 1; } .order-2 { -ms-flex-order: 2; order: 2; } .order-3 { -ms-flex-order: 3; order: 3; } .order-4 { -ms-flex-order: 4; order: 4; } .order-5 { -ms-flex-order: 5; order: 5; } .order-6 { -ms-flex-order: 6; order: 6; } .order-7 { -ms-flex-order: 7; order: 7; } .order-8 { -ms-flex-order: 8; order: 8; } .order-9 { -ms-flex-order: 9; order: 9; } .order-10 { -ms-flex-order: 10; order: 10; } .order-11 { -ms-flex-order: 11; order: 11; } .order-12 { -ms-flex-order: 12; order: 12; } .offset-1 { margin-left: 8.333333%; } .offset-2 { margin-left: 16.666667%; } .offset-3 { margin-left: 25%; } .offset-4 { margin-left: 33.333333%; } .offset-5 { margin-left: 41.666667%; } .offset-6 { margin-left: 50%; } .offset-7 { margin-left: 58.333333%; } .offset-8 { margin-left: 66.666667%; } .offset-9 { margin-left: 75%; } .offset-10 { margin-left: 83.333333%; } .offset-11 { margin-left: 91.666667%; } @media (min-width: 576px) { .col-sm { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-sm-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-sm-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-sm-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-sm-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-sm-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-sm-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-sm-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-sm-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-sm-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-sm-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-sm-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-sm-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-sm-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-sm-first { -ms-flex-order: -1; order: -1; } .order-sm-1 { -ms-flex-order: 1; order: 1; } .order-sm-2 { -ms-flex-order: 2; order: 2; } .order-sm-3 { -ms-flex-order: 3; order: 3; } .order-sm-4 { -ms-flex-order: 4; order: 4; } .order-sm-5 { -ms-flex-order: 5; order: 5; } .order-sm-6 { -ms-flex-order: 6; order: 6; } .order-sm-7 { -ms-flex-order: 7; order: 7; } .order-sm-8 { -ms-flex-order: 8; order: 8; } .order-sm-9 { -ms-flex-order: 9; order: 9; } .order-sm-10 { -ms-flex-order: 10; order: 10; } .order-sm-11 { -ms-flex-order: 11; order: 11; } .order-sm-12 { -ms-flex-order: 12; order: 12; } .offset-sm-0 { margin-left: 0; } .offset-sm-1 { margin-left: 8.333333%; } .offset-sm-2 { margin-left: 16.666667%; } .offset-sm-3 { margin-left: 25%; } .offset-sm-4 { margin-left: 33.333333%; } .offset-sm-5 { margin-left: 41.666667%; } .offset-sm-6 { margin-left: 50%; } .offset-sm-7 { margin-left: 58.333333%; } .offset-sm-8 { margin-left: 66.666667%; } .offset-sm-9 { margin-left: 75%; } .offset-sm-10 { margin-left: 83.333333%; } .offset-sm-11 { margin-left: 91.666667%; } } @media (min-width: 768px) { .col-md { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-md-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-md-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-md-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-md-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-md-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-md-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-md-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-md-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-md-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-md-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-md-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-md-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-md-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-md-first { -ms-flex-order: -1; order: -1; } .order-md-1 { -ms-flex-order: 1; order: 1; } .order-md-2 { -ms-flex-order: 2; order: 2; } .order-md-3 { -ms-flex-order: 3; order: 3; } .order-md-4 { -ms-flex-order: 4; order: 4; } .order-md-5 { -ms-flex-order: 5; order: 5; } .order-md-6 { -ms-flex-order: 6; order: 6; } .order-md-7 { -ms-flex-order: 7; order: 7; } .order-md-8 { -ms-flex-order: 8; order: 8; } .order-md-9 { -ms-flex-order: 9; order: 9; } .order-md-10 { -ms-flex-order: 10; order: 10; } .order-md-11 { -ms-flex-order: 11; order: 11; } .order-md-12 { -ms-flex-order: 12; order: 12; } .offset-md-0 { margin-left: 0; } .offset-md-1 { margin-left: 8.333333%; } .offset-md-2 { margin-left: 16.666667%; } .offset-md-3 { margin-left: 25%; } .offset-md-4 { margin-left: 33.333333%; } .offset-md-5 { margin-left: 41.666667%; } .offset-md-6 { margin-left: 50%; } .offset-md-7 { margin-left: 58.333333%; } .offset-md-8 { margin-left: 66.666667%; } .offset-md-9 { margin-left: 75%; } .offset-md-10 { margin-left: 83.333333%; } .offset-md-11 { margin-left: 91.666667%; } } @media (min-width: 992px) { .col-lg { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-lg-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-lg-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-lg-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-lg-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-lg-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-lg-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-lg-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-lg-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-lg-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-lg-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-lg-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-lg-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-lg-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-lg-first { -ms-flex-order: -1; order: -1; } .order-lg-1 { -ms-flex-order: 1; order: 1; } .order-lg-2 { -ms-flex-order: 2; order: 2; } .order-lg-3 { -ms-flex-order: 3; order: 3; } .order-lg-4 { -ms-flex-order: 4; order: 4; } .order-lg-5 { -ms-flex-order: 5; order: 5; } .order-lg-6 { -ms-flex-order: 6; order: 6; } .order-lg-7 { -ms-flex-order: 7; order: 7; } .order-lg-8 { -ms-flex-order: 8; order: 8; } .order-lg-9 { -ms-flex-order: 9; order: 9; } .order-lg-10 { -ms-flex-order: 10; order: 10; } .order-lg-11 { -ms-flex-order: 11; order: 11; } .order-lg-12 { -ms-flex-order: 12; order: 12; } .offset-lg-0 { margin-left: 0; } .offset-lg-1 { margin-left: 8.333333%; } .offset-lg-2 { margin-left: 16.666667%; } .offset-lg-3 { margin-left: 25%; } .offset-lg-4 { margin-left: 33.333333%; } .offset-lg-5 { margin-left: 41.666667%; } .offset-lg-6 { margin-left: 50%; } .offset-lg-7 { margin-left: 58.333333%; } .offset-lg-8 { margin-left: 66.666667%; } .offset-lg-9 { margin-left: 75%; } .offset-lg-10 { margin-left: 83.333333%; } .offset-lg-11 { margin-left: 91.666667%; } } @media (min-width: 1200px) { .col-xl { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; max-width: 100%; } .col-xl-auto { -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; max-width: none; } .col-xl-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; } .col-xl-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; } .col-xl-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; } .col-xl-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; } .col-xl-5 { -ms-flex: 0 0 41.666667%; flex: 0 0 41.666667%; max-width: 41.666667%; } .col-xl-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; } .col-xl-7 { -ms-flex: 0 0 58.333333%; flex: 0 0 58.333333%; max-width: 58.333333%; } .col-xl-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; } .col-xl-9 { -ms-flex: 0 0 75%; flex: 0 0 75%; max-width: 75%; } .col-xl-10 { -ms-flex: 0 0 83.333333%; flex: 0 0 83.333333%; max-width: 83.333333%; } .col-xl-11 { -ms-flex: 0 0 91.666667%; flex: 0 0 91.666667%; max-width: 91.666667%; } .col-xl-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } .order-xl-first { -ms-flex-order: -1; order: -1; } .order-xl-1 { -ms-flex-order: 1; order: 1; } .order-xl-2 { -ms-flex-order: 2; order: 2; } .order-xl-3 { -ms-flex-order: 3; order: 3; } .order-xl-4 { -ms-flex-order: 4; order: 4; } .order-xl-5 { -ms-flex-order: 5; order: 5; } .order-xl-6 { -ms-flex-order: 6; order: 6; } .order-xl-7 { -ms-flex-order: 7; order: 7; } .order-xl-8 { -ms-flex-order: 8; order: 8; } .order-xl-9 { -ms-flex-order: 9; order: 9; } .order-xl-10 { -ms-flex-order: 10; order: 10; } .order-xl-11 { -ms-flex-order: 11; order: 11; } .order-xl-12 { -ms-flex-order: 12; order: 12; } .offset-xl-0 { margin-left: 0; } .offset-xl-1 { margin-left: 8.333333%; } .offset-xl-2 { margin-left: 16.666667%; } .offset-xl-3 { margin-left: 25%; } .offset-xl-4 { margin-left: 33.333333%; } .offset-xl-5 { margin-left: 41.666667%; } .offset-xl-6 { margin-left: 50%; } .offset-xl-7 { margin-left: 58.333333%; } .offset-xl-8 { margin-left: 66.666667%; } .offset-xl-9 { margin-left: 75%; } .offset-xl-10 { margin-left: 83.333333%; } .offset-xl-11 { margin-left: 91.666667%; } } .table { width: 100%; max-width: 100%; margin-bottom: 1rem; background-color: transparent; } .table th, .table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #e9ecef; } .table thead th { vertical-align: bottom; border-bottom: 2px solid #e9ecef; } .table tbody + tbody { border-top: 2px solid #e9ecef; } .table .table { background-color: #fff; } .table-sm th, .table-sm td { padding: 0.3rem; } .table-bordered { border: 1px solid #e9ecef; } .table-bordered th, .table-bordered td { border: 1px solid #e9ecef; } .table-bordered thead th, .table-bordered thead td { border-bottom-width: 2px; } .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.05); } .table-hover tbody tr:hover { background-color: rgba(0, 0, 0, 0.075); } .table-primary, .table-primary > th, .table-primary > td { background-color: #b8daff; } .table-hover .table-primary:hover { background-color: #9fcdff; } .table-hover .table-primary:hover > td, .table-hover .table-primary:hover > th { background-color: #9fcdff; } .table-secondary, .table-secondary > th, .table-secondary > td { background-color: #dddfe2; } .table-hover .table-secondary:hover { background-color: #cfd2d6; } .table-hover .table-secondary:hover > td, .table-hover .table-secondary:hover > th { background-color: #cfd2d6; } .table-success, .table-success > th, .table-success > td { background-color: #c3e6cb; } .table-hover .table-success:hover { background-color: #b1dfbb; } .table-hover .table-success:hover > td, .table-hover .table-success:hover > th { background-color: #b1dfbb; } .table-info, .table-info > th, .table-info > td { background-color: #bee5eb; } .table-hover .table-info:hover { background-color: #abdde5; } .table-hover .table-info:hover > td, .table-hover .table-info:hover > th { background-color: #abdde5; } .table-warning, .table-warning > th, .table-warning > td { background-color: #ffeeba; } .table-hover .table-warning:hover { background-color: #ffe8a1; } .table-hover .table-warning:hover > td, .table-hover .table-warning:hover > th { background-color: #ffe8a1; } .table-danger, .table-danger > th, .table-danger > td { background-color: #f5c6cb; } .table-hover .table-danger:hover { background-color: #f1b0b7; } .table-hover .table-danger:hover > td, .table-hover .table-danger:hover > th { background-color: #f1b0b7; } .table-light, .table-light > th, .table-light > td { background-color: #fdfdfe; } .table-hover .table-light:hover { background-color: #ececf6; } .table-hover .table-light:hover > td, .table-hover .table-light:hover > th { background-color: #ececf6; } .table-dark, .table-dark > th, .table-dark > td { background-color: #c6c8ca; } .table-hover .table-dark:hover { background-color: #b9bbbe; } .table-hover .table-dark:hover > td, .table-hover .table-dark:hover > th { background-color: #b9bbbe; } .table-active, .table-active > th, .table-active > td { background-color: rgba(0, 0, 0, 0.075); } .table-hover .table-active:hover { background-color: rgba(0, 0, 0, 0.075); } .table-hover .table-active:hover > td, .table-hover .table-active:hover > th { background-color: rgba(0, 0, 0, 0.075); } .table .thead-dark th { color: #fff; background-color: #212529; border-color: #32383e; } .table .thead-light th { color: #495057; background-color: #e9ecef; border-color: #e9ecef; } .table-dark { color: #fff; background-color: #212529; } .table-dark th, .table-dark td, .table-dark thead th { border-color: #32383e; } .table-dark.table-bordered { border: 0; } .table-dark.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.05); } .table-dark.table-hover tbody tr:hover { background-color: rgba(255, 255, 255, 0.075); } @media (max-width: 575px) { .table-responsive-sm { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } .table-responsive-sm.table-bordered { border: 0; } } @media (max-width: 767px) { .table-responsive-md { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } .table-responsive-md.table-bordered { border: 0; } } @media (max-width: 991px) { .table-responsive-lg { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } .table-responsive-lg.table-bordered { border: 0; } } @media (max-width: 1199px) { .table-responsive-xl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } .table-responsive-xl.table-bordered { border: 0; } } .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } .table-responsive.table-bordered { border: 0; } .form-control { display: block; width: 100%; padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; color: #495057; background-color: #fff; background-image: none; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control::-ms-expand { background-color: transparent; border: 0; } .form-control:focus { color: #495057; background-color: #fff; border-color: #80bdff; outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .form-control::-webkit-input-placeholder { color: #868e96; opacity: 1; } .form-control:-ms-input-placeholder { color: #868e96; opacity: 1; } .form-control::-ms-input-placeholder { color: #868e96; opacity: 1; } .form-control::placeholder { color: #868e96; opacity: 1; } .form-control:disabled, .form-control[readonly] { background-color: #e9ecef; opacity: 1; } select.form-control:not([size]):not([multiple]) { height: calc(2.25rem + 2px); } select.form-control:focus::-ms-value { color: #495057; background-color: #fff; } .form-control-file, .form-control-range { display: block; } .col-form-label { padding-top: calc(0.375rem + 1px); padding-bottom: calc(0.375rem + 1px); margin-bottom: 0; line-height: 1.5; } .col-form-label-lg { padding-top: calc(0.5rem + 1px); padding-bottom: calc(0.5rem + 1px); font-size: 1.25rem; line-height: 1.5; } .col-form-label-sm { padding-top: calc(0.25rem + 1px); padding-bottom: calc(0.25rem + 1px); font-size: 0.875rem; line-height: 1.5; } .col-form-legend { padding-top: 0.375rem; padding-bottom: 0.375rem; margin-bottom: 0; font-size: 1rem; } .form-control-plaintext { padding-top: 0.375rem; padding-bottom: 0.375rem; margin-bottom: 0; line-height: 1.5; background-color: transparent; border: solid transparent; border-width: 1px 0; } .form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, .input-group-sm > .form-control-plaintext.input-group-addon, .input-group-sm > .input-group-btn > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, .input-group-lg > .form-control-plaintext.input-group-addon, .input-group-lg > .input-group-btn > .form-control-plaintext.btn { padding-right: 0; padding-left: 0; } .form-control-sm, .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; } select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), .input-group-sm > select.input-group-addon:not([size]):not([multiple]), .input-group-sm > .input-group-btn > select.btn:not([size]):not([multiple]) { height: calc(1.8125rem + 2px); } .form-control-lg, .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0.3rem; } select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), .input-group-lg > select.input-group-addon:not([size]):not([multiple]), .input-group-lg > .input-group-btn > select.btn:not([size]):not([multiple]) { height: calc(2.875rem + 2px); } .form-group { margin-bottom: 1rem; } .form-text { display: block; margin-top: 0.25rem; } .form-row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; } .form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; } .form-check { position: relative; display: block; margin-bottom: 0.5rem; } .form-check.disabled .form-check-label { color: #868e96; } .form-check-label { padding-left: 1.25rem; margin-bottom: 0; } .form-check-input { position: absolute; margin-top: 0.25rem; margin-left: -1.25rem; } .form-check-inline { display: inline-block; margin-right: 0.75rem; } .form-check-inline .form-check-label { vertical-align: middle; } .valid-feedback { display: none; margin-top: .25rem; font-size: .875rem; color: #28a745; } .valid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; width: 250px; padding: .5rem; margin-top: .1rem; font-size: .875rem; line-height: 1; color: #fff; background-color: rgba(40, 167, 69, 0.8); border-radius: .2rem; } .was-validated .form-control:valid, .form-control.is-valid, .was-validated .custom-select:valid, .custom-select.is-valid { border-color: #28a745; } .was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated .custom-select:valid:focus, .custom-select.is-valid:focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } .was-validated .form-control:valid ~ .valid-feedback, .was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, .form-control.is-valid ~ .valid-tooltip, .was-validated .custom-select:valid ~ .valid-feedback, .was-validated .custom-select:valid ~ .valid-tooltip, .custom-select.is-valid ~ .valid-feedback, .custom-select.is-valid ~ .valid-tooltip { display: block; } .was-validated .form-check-input:valid + .form-check-label, .form-check-input.is-valid + .form-check-label { color: #28a745; } .was-validated .custom-control-input:valid ~ .custom-control-indicator, .custom-control-input.is-valid ~ .custom-control-indicator { background-color: rgba(40, 167, 69, 0.25); } .was-validated .custom-control-input:valid ~ .custom-control-description, .custom-control-input.is-valid ~ .custom-control-description { color: #28a745; } .was-validated .custom-file-input:valid ~ .custom-file-control, .custom-file-input.is-valid ~ .custom-file-control { border-color: #28a745; } .was-validated .custom-file-input:valid ~ .custom-file-control::before, .custom-file-input.is-valid ~ .custom-file-control::before { border-color: inherit; } .was-validated .custom-file-input:valid:focus, .custom-file-input.is-valid:focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } .invalid-feedback { display: none; margin-top: .25rem; font-size: .875rem; color: #dc3545; } .invalid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; width: 250px; padding: .5rem; margin-top: .1rem; font-size: .875rem; line-height: 1; color: #fff; background-color: rgba(220, 53, 69, 0.8); border-radius: .2rem; } .was-validated .form-control:invalid, .form-control.is-invalid, .was-validated .custom-select:invalid, .custom-select.is-invalid { border-color: #dc3545; } .was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } .was-validated .form-control:invalid ~ .invalid-feedback, .was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, .form-control.is-invalid ~ .invalid-tooltip, .was-validated .custom-select:invalid ~ .invalid-feedback, .was-validated .custom-select:invalid ~ .invalid-tooltip, .custom-select.is-invalid ~ .invalid-feedback, .custom-select.is-invalid ~ .invalid-tooltip { display: block; } .was-validated .form-check-input:invalid + .form-check-label, .form-check-input.is-invalid + .form-check-label { color: #dc3545; } .was-validated .custom-control-input:invalid ~ .custom-control-indicator, .custom-control-input.is-invalid ~ .custom-control-indicator { background-color: rgba(220, 53, 69, 0.25); } .was-validated .custom-control-input:invalid ~ .custom-control-description, .custom-control-input.is-invalid ~ .custom-control-description { color: #dc3545; } .was-validated .custom-file-input:invalid ~ .custom-file-control, .custom-file-input.is-invalid ~ .custom-file-control { border-color: #dc3545; } .was-validated .custom-file-input:invalid ~ .custom-file-control::before, .custom-file-input.is-invalid ~ .custom-file-control::before { border-color: inherit; } .was-validated .custom-file-input:invalid:focus, .custom-file-input.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } .form-inline { display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; -ms-flex-align: center; align-items: center; } .form-inline .form-check { width: 100%; } @media (min-width: 576px) { .form-inline label { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; margin-bottom: 0; } .form-inline .form-group { display: -ms-flexbox; display: flex; -ms-flex: 0 0 auto; flex: 0 0 auto; -ms-flex-flow: row wrap; flex-flow: row wrap; -ms-flex-align: center; align-items: center; margin-bottom: 0; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-plaintext { display: inline-block; } .form-inline .input-group { width: auto; } .form-inline .form-check { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; width: auto; margin-top: 0; margin-bottom: 0; } .form-inline .form-check-label { padding-left: 0; } .form-inline .form-check-input { position: relative; margin-top: 0; margin-right: 0.25rem; margin-left: 0; } .form-inline .custom-control { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; padding-left: 0; } .form-inline .custom-control-indicator { position: static; display: inline-block; margin-right: 0.25rem; vertical-align: text-bottom; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .btn { display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .btn:focus, .btn:hover { text-decoration: none; } .btn:focus, .btn.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .btn.disabled, .btn:disabled { opacity: .65; } .btn:not([disabled]):not(.disabled):active, .btn:not([disabled]):not(.disabled).active { background-image: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; } .btn-primary:hover { color: #fff; background-color: #0069d9; border-color: #0062cc; } .btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } .btn-primary.disabled, .btn-primary:disabled { background-color: #007bff; border-color: #007bff; } .btn-primary:not([disabled]):not(.disabled):active, .btn-primary:not([disabled]):not(.disabled).active, .show > .btn-primary.dropdown-toggle { color: #fff; background-color: #0062cc; border-color: #005cbf; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } .btn-secondary { color: #fff; background-color: #868e96; border-color: #868e96; } .btn-secondary:hover { color: #fff; background-color: #727b84; border-color: #6c757d; } .btn-secondary:focus, .btn-secondary.focus { box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5); } .btn-secondary.disabled, .btn-secondary:disabled { background-color: #868e96; border-color: #868e96; } .btn-secondary:not([disabled]):not(.disabled):active, .btn-secondary:not([disabled]):not(.disabled).active, .show > .btn-secondary.dropdown-toggle { color: #fff; background-color: #6c757d; border-color: #666e76; box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5); } .btn-success { color: #fff; background-color: #28a745; border-color: #28a745; } .btn-success:hover { color: #fff; background-color: #218838; border-color: #1e7e34; } .btn-success:focus, .btn-success.focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .btn-success.disabled, .btn-success:disabled { background-color: #28a745; border-color: #28a745; } .btn-success:not([disabled]):not(.disabled):active, .btn-success:not([disabled]):not(.disabled).active, .show > .btn-success.dropdown-toggle { color: #fff; background-color: #1e7e34; border-color: #1c7430; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .btn-info { color: #fff; background-color: #17a2b8; border-color: #17a2b8; } .btn-info:hover { color: #fff; background-color: #138496; border-color: #117a8b; } .btn-info:focus, .btn-info.focus { box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .btn-info.disabled, .btn-info:disabled { background-color: #17a2b8; border-color: #17a2b8; } .btn-info:not([disabled]):not(.disabled):active, .btn-info:not([disabled]):not(.disabled).active, .show > .btn-info.dropdown-toggle { color: #fff; background-color: #117a8b; border-color: #10707f; box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .btn-warning { color: #111; background-color: #ffc107; border-color: #ffc107; } .btn-warning:hover { color: #111; background-color: #e0a800; border-color: #d39e00; } .btn-warning:focus, .btn-warning.focus { box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .btn-warning.disabled, .btn-warning:disabled { background-color: #ffc107; border-color: #ffc107; } .btn-warning:not([disabled]):not(.disabled):active, .btn-warning:not([disabled]):not(.disabled).active, .show > .btn-warning.dropdown-toggle { color: #111; background-color: #d39e00; border-color: #c69500; box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; } .btn-danger:hover { color: #fff; background-color: #c82333; border-color: #bd2130; } .btn-danger:focus, .btn-danger.focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .btn-danger.disabled, .btn-danger:disabled { background-color: #dc3545; border-color: #dc3545; } .btn-danger:not([disabled]):not(.disabled):active, .btn-danger:not([disabled]):not(.disabled).active, .show > .btn-danger.dropdown-toggle { color: #fff; background-color: #bd2130; border-color: #b21f2d; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .btn-light { color: #111; background-color: #f8f9fa; border-color: #f8f9fa; } .btn-light:hover { color: #111; background-color: #e2e6ea; border-color: #dae0e5; } .btn-light:focus, .btn-light.focus { box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-light.disabled, .btn-light:disabled { background-color: #f8f9fa; border-color: #f8f9fa; } .btn-light:not([disabled]):not(.disabled):active, .btn-light:not([disabled]):not(.disabled).active, .show > .btn-light.dropdown-toggle { color: #111; background-color: #dae0e5; border-color: #d3d9df; box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; } .btn-dark:hover { color: #fff; background-color: #23272b; border-color: #1d2124; } .btn-dark:focus, .btn-dark.focus { box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-dark.disabled, .btn-dark:disabled { background-color: #343a40; border-color: #343a40; } .btn-dark:not([disabled]):not(.disabled):active, .btn-dark:not([disabled]):not(.disabled).active, .show > .btn-dark.dropdown-toggle { color: #fff; background-color: #1d2124; border-color: #171a1d; box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-outline-primary { color: #007bff; background-color: transparent; background-image: none; border-color: #007bff; } .btn-outline-primary:hover { color: #fff; background-color: #007bff; border-color: #007bff; } .btn-outline-primary:focus, .btn-outline-primary.focus { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } .btn-outline-primary.disabled, .btn-outline-primary:disabled { color: #007bff; background-color: transparent; } .btn-outline-primary:not([disabled]):not(.disabled):active, .btn-outline-primary:not([disabled]):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle { color: #fff; background-color: #007bff; border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } .btn-outline-secondary { color: #868e96; background-color: transparent; background-image: none; border-color: #868e96; } .btn-outline-secondary:hover { color: #fff; background-color: #868e96; border-color: #868e96; } .btn-outline-secondary:focus, .btn-outline-secondary.focus { box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5); } .btn-outline-secondary.disabled, .btn-outline-secondary:disabled { color: #868e96; background-color: transparent; } .btn-outline-secondary:not([disabled]):not(.disabled):active, .btn-outline-secondary:not([disabled]):not(.disabled).active, .show > .btn-outline-secondary.dropdown-toggle { color: #fff; background-color: #868e96; border-color: #868e96; box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5); } .btn-outline-success { color: #28a745; background-color: transparent; background-image: none; border-color: #28a745; } .btn-outline-success:hover { color: #fff; background-color: #28a745; border-color: #28a745; } .btn-outline-success:focus, .btn-outline-success.focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .btn-outline-success.disabled, .btn-outline-success:disabled { color: #28a745; background-color: transparent; } .btn-outline-success:not([disabled]):not(.disabled):active, .btn-outline-success:not([disabled]):not(.disabled).active, .show > .btn-outline-success.dropdown-toggle { color: #fff; background-color: #28a745; border-color: #28a745; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .btn-outline-info { color: #17a2b8; background-color: transparent; background-image: none; border-color: #17a2b8; } .btn-outline-info:hover { color: #fff; background-color: #17a2b8; border-color: #17a2b8; } .btn-outline-info:focus, .btn-outline-info.focus { box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .btn-outline-info.disabled, .btn-outline-info:disabled { color: #17a2b8; background-color: transparent; } .btn-outline-info:not([disabled]):not(.disabled):active, .btn-outline-info:not([disabled]):not(.disabled).active, .show > .btn-outline-info.dropdown-toggle { color: #fff; background-color: #17a2b8; border-color: #17a2b8; box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .btn-outline-warning { color: #ffc107; background-color: transparent; background-image: none; border-color: #ffc107; } .btn-outline-warning:hover { color: #fff; background-color: #ffc107; border-color: #ffc107; } .btn-outline-warning:focus, .btn-outline-warning.focus { box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .btn-outline-warning.disabled, .btn-outline-warning:disabled { color: #ffc107; background-color: transparent; } .btn-outline-warning:not([disabled]):not(.disabled):active, .btn-outline-warning:not([disabled]):not(.disabled).active, .show > .btn-outline-warning.dropdown-toggle { color: #fff; background-color: #ffc107; border-color: #ffc107; box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .btn-outline-danger { color: #dc3545; background-color: transparent; background-image: none; border-color: #dc3545; } .btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; } .btn-outline-danger:focus, .btn-outline-danger.focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .btn-outline-danger.disabled, .btn-outline-danger:disabled { color: #dc3545; background-color: transparent; } .btn-outline-danger:not([disabled]):not(.disabled):active, .btn-outline-danger:not([disabled]):not(.disabled).active, .show > .btn-outline-danger.dropdown-toggle { color: #fff; background-color: #dc3545; border-color: #dc3545; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .btn-outline-light { color: #f8f9fa; background-color: transparent; background-image: none; border-color: #f8f9fa; } .btn-outline-light:hover { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; } .btn-outline-light:focus, .btn-outline-light.focus { box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-outline-light.disabled, .btn-outline-light:disabled { color: #f8f9fa; background-color: transparent; } .btn-outline-light:not([disabled]):not(.disabled):active, .btn-outline-light:not([disabled]):not(.disabled).active, .show > .btn-outline-light.dropdown-toggle { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-outline-dark { color: #343a40; background-color: transparent; background-image: none; border-color: #343a40; } .btn-outline-dark:hover { color: #fff; background-color: #343a40; border-color: #343a40; } .btn-outline-dark:focus, .btn-outline-dark.focus { box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-outline-dark.disabled, .btn-outline-dark:disabled { color: #343a40; background-color: transparent; } .btn-outline-dark:not([disabled]):not(.disabled):active, .btn-outline-dark:not([disabled]):not(.disabled).active, .show > .btn-outline-dark.dropdown-toggle { color: #fff; background-color: #343a40; border-color: #343a40; box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-link { font-weight: 400; color: #007bff; background-color: transparent; } .btn-link:hover { color: #0056b3; text-decoration: underline; background-color: transparent; border-color: transparent; } .btn-link:focus, .btn-link.focus { border-color: transparent; box-shadow: none; } .btn-link:disabled, .btn-link.disabled { color: #868e96; } .btn-lg, .btn-group-lg > .btn { padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0.3rem; } .btn-sm, .btn-group-sm > .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 0.5rem; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; transition: opacity 0.15s linear; } .fade.show { opacity: 1; } .collapse { display: none; } .collapse.show { display: block; } tr.collapse.show { display: table-row; } tbody.collapse.show { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; transition: height 0.35s ease; } .dropup, .dropdown { position: relative; } .dropdown-toggle::after { display: inline-block; width: 0; height: 0; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-bottom: 0; border-left: 0.3em solid transparent; } .dropdown-toggle:empty::after { margin-left: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 10rem; padding: 0.5rem 0; margin: 0.125rem 0 0; font-size: 1rem; color: #212529; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0.25rem; } .dropup .dropdown-menu { margin-top: 0; margin-bottom: 0.125rem; } .dropup .dropdown-toggle::after { display: inline-block; width: 0; height: 0; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0; border-right: 0.3em solid transparent; border-bottom: 0.3em solid; border-left: 0.3em solid transparent; } .dropup .dropdown-toggle:empty::after { margin-left: 0; } .dropdown-divider { height: 0; margin: 0.5rem 0; overflow: hidden; border-top: 1px solid #e9ecef; } .dropdown-item { display: block; width: 100%; padding: 0.25rem 1.5rem; clear: both; font-weight: 400; color: #212529; text-align: inherit; white-space: nowrap; background: none; border: 0; } .dropdown-item:focus, .dropdown-item:hover { color: #16181b; text-decoration: none; background-color: #f8f9fa; } .dropdown-item.active, .dropdown-item:active { color: #fff; text-decoration: none; background-color: #007bff; } .dropdown-item.disabled, .dropdown-item:disabled { color: #868e96; background-color: transparent; } .dropdown-menu.show { display: block; } .dropdown-header { display: block; padding: 0.5rem 1.5rem; margin-bottom: 0; font-size: 0.875rem; color: #868e96; white-space: nowrap; } .btn-group, .btn-group-vertical { position: relative; display: -ms-inline-flexbox; display: inline-flex; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; -ms-flex: 0 1 auto; flex: 0 1 auto; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover { z-index: 2; } .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn:focus, .btn-group-vertical > .btn:active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group, .btn-group-vertical .btn + .btn, .btn-group-vertical .btn + .btn-group, .btn-group-vertical .btn-group + .btn, .btn-group-vertical .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: start; justify-content: flex-start; } .btn-toolbar .input-group { width: auto; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-left-radius: 0; border-bottom-left-radius: 0; } .btn + .dropdown-toggle-split { padding-right: 0.5625rem; padding-left: 0.5625rem; } .btn + .dropdown-toggle-split::after { margin-left: 0; } .btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { padding-right: 0.375rem; padding-left: 0.375rem; } .btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { padding-right: 0.75rem; padding-left: 0.75rem; } .btn-group-vertical { -ms-flex-direction: column; flex-direction: column; -ms-flex-align: start; align-items: flex-start; -ms-flex-pack: center; justify-content: center; } .btn-group-vertical .btn, .btn-group-vertical .btn-group { width: 100%; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-top-right-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-left-radius: 0; border-top-right-radius: 0; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: -ms-flexbox; display: flex; -ms-flex-align: stretch; align-items: stretch; width: 100%; } .input-group .form-control { position: relative; z-index: 2; -ms-flex: 1 1 auto; flex: 1 1 auto; width: 1%; margin-bottom: 0; } .input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover { z-index: 3; } .input-group-addon, .input-group-btn, .input-group .form-control { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { white-space: nowrap; } .input-group-addon { padding: 0.375rem 0.75rem; margin-bottom: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; text-align: center; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 0.25rem; } .input-group-addon.form-control-sm, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .input-group-addon.btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; } .input-group-addon.form-control-lg, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .input-group-addon.btn { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:not(:last-child), .input-group-addon:not(:last-child), .input-group-btn:not(:last-child) > .btn, .input-group-btn:not(:last-child) > .btn-group > .btn, .input-group-btn:not(:last-child) > .dropdown-toggle, .input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:not(:last-child) { border-right: 0; } .input-group .form-control:not(:first-child), .input-group-addon:not(:first-child), .input-group-btn:not(:first-child) > .btn, .input-group-btn:not(:first-child) > .btn-group > .btn, .input-group-btn:not(:first-child) > .dropdown-toggle, .input-group-btn:not(:last-child) > .btn:not(:first-child), .input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; } .form-control + .input-group-addon:not(:first-child) { border-left: 0; } .input-group-btn { position: relative; -ms-flex-align: stretch; align-items: stretch; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:focus, .input-group-btn > .btn:active, .input-group-btn > .btn:hover { z-index: 3; } .input-group-btn:first-child > .btn + .btn { margin-left: 0; } .input-group-btn:not(:last-child) > .btn, .input-group-btn:not(:last-child) > .btn-group { margin-right: -1px; } .input-group-btn:not(:first-child) > .btn, .input-group-btn:not(:first-child) > .btn-group { z-index: 2; margin-left: 0; } .input-group-btn:not(:first-child) > .btn:first-child, .input-group-btn:not(:first-child) > .btn-group:first-child { margin-left: -1px; } .input-group-btn:not(:first-child) > .btn:focus, .input-group-btn:not(:first-child) > .btn:active, .input-group-btn:not(:first-child) > .btn:hover, .input-group-btn:not(:first-child) > .btn-group:focus, .input-group-btn:not(:first-child) > .btn-group:active, .input-group-btn:not(:first-child) > .btn-group:hover { z-index: 3; } .custom-control { position: relative; display: -ms-inline-flexbox; display: inline-flex; min-height: 1.5rem; padding-left: 1.5rem; margin-right: 1rem; } .custom-control-input { position: absolute; z-index: -1; opacity: 0; } .custom-control-input:checked ~ .custom-control-indicator { color: #fff; background-color: #007bff; } .custom-control-input:focus ~ .custom-control-indicator { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-control-input:active ~ .custom-control-indicator { color: #fff; background-color: #b3d7ff; } .custom-control-input:disabled ~ .custom-control-indicator { background-color: #e9ecef; } .custom-control-input:disabled ~ .custom-control-description { color: #868e96; } .custom-control-indicator { position: absolute; top: 0.25rem; left: 0; display: block; width: 1rem; height: 1rem; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: #ddd; background-repeat: no-repeat; background-position: center center; background-size: 50% 50%; } .custom-checkbox .custom-control-indicator { border-radius: 0.25rem; } .custom-checkbox .custom-control-input:checked ~ .custom-control-indicator { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"); } .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator { background-color: #007bff; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); } .custom-radio .custom-control-indicator { border-radius: 50%; } .custom-radio .custom-control-input:checked ~ .custom-control-indicator { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); } .custom-controls-stacked { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; } .custom-controls-stacked .custom-control { margin-bottom: 0.25rem; } .custom-controls-stacked .custom-control + .custom-control { margin-left: 0; } .custom-select { display: inline-block; max-width: 100%; height: calc(2.25rem + 2px); padding: 0.375rem 1.75rem 0.375rem 0.75rem; line-height: 1.5; color: #495057; vertical-align: middle; background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center; background-size: 8px 10px; border: 1px solid #ced4da; border-radius: 0.25rem; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .custom-select:focus { border-color: #80bdff; outline: none; } .custom-select:focus::-ms-value { color: #495057; background-color: #fff; } .custom-select[multiple] { height: auto; background-image: none; } .custom-select:disabled { color: #868e96; background-color: #e9ecef; } .custom-select::-ms-expand { opacity: 0; } .custom-select-sm { height: calc(1.8125rem + 2px); padding-top: 0.375rem; padding-bottom: 0.375rem; font-size: 75%; } .custom-file { position: relative; display: inline-block; max-width: 100%; height: calc(2.25rem + 2px); margin-bottom: 0; } .custom-file-input { min-width: 14rem; max-width: 100%; height: calc(2.25rem + 2px); margin: 0; opacity: 0; } .custom-file-input:focus ~ .custom-file-control { box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.2rem #007bff; } .custom-file-control { position: absolute; top: 0; right: 0; left: 0; z-index: 5; height: calc(2.25rem + 2px); padding: 0.375rem 0.75rem; line-height: 1.5; color: #495057; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: #fff; border: 1px solid #ced4da; border-radius: 0.25rem; } .custom-file-control:lang(en):empty::after { content: "Choose file..."; } .custom-file-control::before { position: absolute; top: -1px; right: -1px; bottom: -1px; z-index: 6; display: block; height: calc(2.25rem + 2px); padding: 0.375rem 0.75rem; line-height: 1.5; color: #495057; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 0 0.25rem 0.25rem 0; } .custom-file-control:lang(en)::before { content: "Browse"; } .nav { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; } .nav-link { display: block; padding: 0.5rem 1rem; } .nav-link:focus, .nav-link:hover { text-decoration: none; } .nav-link.disabled { color: #868e96; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs .nav-item { margin-bottom: -1px; } .nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; } .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { border-color: #e9ecef #e9ecef #ddd; } .nav-tabs .nav-link.disabled { color: #868e96; background-color: transparent; border-color: transparent; } .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: #495057; background-color: #fff; border-color: #ddd #ddd #fff; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; } .nav-pills .nav-link { border-radius: 0.25rem; } .nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; background-color: #007bff; } .nav-fill .nav-item { -ms-flex: 1 1 auto; flex: 1 1 auto; text-align: center; } .nav-justified .nav-item { -ms-flex-preferred-size: 0; flex-basis: 0; -ms-flex-positive: 1; flex-grow: 1; text-align: center; } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .navbar { position: relative; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-align: center; align-items: center; -ms-flex-pack: justify; justify-content: space-between; padding: 0.5rem 1rem; } .navbar > .container, .navbar > .container-fluid { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-align: center; align-items: center; -ms-flex-pack: justify; justify-content: space-between; } .navbar-brand { display: inline-block; padding-top: 0.3125rem; padding-bottom: 0.3125rem; margin-right: 1rem; font-size: 1.25rem; line-height: inherit; white-space: nowrap; } .navbar-brand:focus, .navbar-brand:hover { text-decoration: none; } .navbar-nav { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; } .navbar-nav .nav-link { padding-right: 0; padding-left: 0; } .navbar-nav .dropdown-menu { position: static; float: none; } .navbar-text { display: inline-block; padding-top: 0.5rem; padding-bottom: 0.5rem; } .navbar-collapse { -ms-flex-preferred-size: 100%; flex-basis: 100%; -ms-flex-positive: 1; flex-grow: 1; -ms-flex-align: center; align-items: center; } .navbar-toggler { padding: 0.25rem 0.75rem; font-size: 1.25rem; line-height: 1; background: transparent; border: 1px solid transparent; border-radius: 0.25rem; } .navbar-toggler:focus, .navbar-toggler:hover { text-decoration: none; } .navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; content: ""; background: no-repeat center center; background-size: 100% 100%; } @media (max-width: 575px) { .navbar-expand-sm > .container, .navbar-expand-sm > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 576px) { .navbar-expand-sm { -ms-flex-flow: row nowrap; flex-flow: row nowrap; -ms-flex-pack: start; justify-content: flex-start; } .navbar-expand-sm .navbar-nav { -ms-flex-direction: row; flex-direction: row; } .navbar-expand-sm .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-sm .navbar-nav .dropdown-menu-right { right: 0; left: auto; } .navbar-expand-sm .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; } .navbar-expand-sm > .container, .navbar-expand-sm > .container-fluid { -ms-flex-wrap: nowrap; flex-wrap: nowrap; } .navbar-expand-sm .navbar-collapse { display: -ms-flexbox !important; display: flex !important; -ms-flex-preferred-size: auto; flex-basis: auto; } .navbar-expand-sm .navbar-toggler { display: none; } .navbar-expand-sm .dropup .dropdown-menu { top: auto; bottom: 100%; } } @media (max-width: 767px) { .navbar-expand-md > .container, .navbar-expand-md > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 768px) { .navbar-expand-md { -ms-flex-flow: row nowrap; flex-flow: row nowrap; -ms-flex-pack: start; justify-content: flex-start; } .navbar-expand-md .navbar-nav { -ms-flex-direction: row; flex-direction: row; } .navbar-expand-md .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-md .navbar-nav .dropdown-menu-right { right: 0; left: auto; } .navbar-expand-md .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; } .navbar-expand-md > .container, .navbar-expand-md > .container-fluid { -ms-flex-wrap: nowrap; flex-wrap: nowrap; } .navbar-expand-md .navbar-collapse { display: -ms-flexbox !important; display: flex !important; -ms-flex-preferred-size: auto; flex-basis: auto; } .navbar-expand-md .navbar-toggler { display: none; } .navbar-expand-md .dropup .dropdown-menu { top: auto; bottom: 100%; } } @media (max-width: 991px) { .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 992px) { .navbar-expand-lg { -ms-flex-flow: row nowrap; flex-flow: row nowrap; -ms-flex-pack: start; justify-content: flex-start; } .navbar-expand-lg .navbar-nav { -ms-flex-direction: row; flex-direction: row; } .navbar-expand-lg .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-lg .navbar-nav .dropdown-menu-right { right: 0; left: auto; } .navbar-expand-lg .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; } .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { -ms-flex-wrap: nowrap; flex-wrap: nowrap; } .navbar-expand-lg .navbar-collapse { display: -ms-flexbox !important; display: flex !important; -ms-flex-preferred-size: auto; flex-basis: auto; } .navbar-expand-lg .navbar-toggler { display: none; } .navbar-expand-lg .dropup .dropdown-menu { top: auto; bottom: 100%; } } @media (max-width: 1199px) { .navbar-expand-xl > .container, .navbar-expand-xl > .container-fluid { padding-right: 0; padding-left: 0; } } @media (min-width: 1200px) { .navbar-expand-xl { -ms-flex-flow: row nowrap; flex-flow: row nowrap; -ms-flex-pack: start; justify-content: flex-start; } .navbar-expand-xl .navbar-nav { -ms-flex-direction: row; flex-direction: row; } .navbar-expand-xl .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand-xl .navbar-nav .dropdown-menu-right { right: 0; left: auto; } .navbar-expand-xl .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; } .navbar-expand-xl > .container, .navbar-expand-xl > .container-fluid { -ms-flex-wrap: nowrap; flex-wrap: nowrap; } .navbar-expand-xl .navbar-collapse { display: -ms-flexbox !important; display: flex !important; -ms-flex-preferred-size: auto; flex-basis: auto; } .navbar-expand-xl .navbar-toggler { display: none; } .navbar-expand-xl .dropup .dropdown-menu { top: auto; bottom: 100%; } } .navbar-expand { -ms-flex-flow: row nowrap; flex-flow: row nowrap; -ms-flex-pack: start; justify-content: flex-start; } .navbar-expand > .container, .navbar-expand > .container-fluid { padding-right: 0; padding-left: 0; } .navbar-expand .navbar-nav { -ms-flex-direction: row; flex-direction: row; } .navbar-expand .navbar-nav .dropdown-menu { position: absolute; } .navbar-expand .navbar-nav .dropdown-menu-right { right: 0; left: auto; } .navbar-expand .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; } .navbar-expand > .container, .navbar-expand > .container-fluid { -ms-flex-wrap: nowrap; flex-wrap: nowrap; } .navbar-expand .navbar-collapse { display: -ms-flexbox !important; display: flex !important; -ms-flex-preferred-size: auto; flex-basis: auto; } .navbar-expand .navbar-toggler { display: none; } .navbar-expand .dropup .dropdown-menu { top: auto; bottom: 100%; } .navbar-light .navbar-brand { color: rgba(0, 0, 0, 0.9); } .navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover { color: rgba(0, 0, 0, 0.9); } .navbar-light .navbar-nav .nav-link { color: rgba(0, 0, 0, 0.5); } .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover { color: rgba(0, 0, 0, 0.7); } .navbar-light .navbar-nav .nav-link.disabled { color: rgba(0, 0, 0, 0.3); } .navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .nav-link.active { color: rgba(0, 0, 0, 0.9); } .navbar-light .navbar-toggler { color: rgba(0, 0, 0, 0.5); border-color: rgba(0, 0, 0, 0.1); } .navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); } .navbar-light .navbar-text { color: rgba(0, 0, 0, 0.5); } .navbar-light .navbar-text a { color: rgba(0, 0, 0, 0.9); } .navbar-light .navbar-text a:focus, .navbar-light .navbar-text a:hover { color: rgba(0, 0, 0, 0.9); } .navbar-dark .navbar-brand { color: #fff; } .navbar-dark .navbar-brand:focus, .navbar-dark .navbar-brand:hover { color: #fff; } .navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.5); } .navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover { color: rgba(255, 255, 255, 0.75); } .navbar-dark .navbar-nav .nav-link.disabled { color: rgba(255, 255, 255, 0.25); } .navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active { color: #fff; } .navbar-dark .navbar-toggler { color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.1); } .navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); } .navbar-dark .navbar-text { color: rgba(255, 255, 255, 0.5); } .navbar-dark .navbar-text a { color: #fff; } .navbar-dark .navbar-text a:focus, .navbar-dark .navbar-text a:hover { color: #fff; } .card { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(0, 0, 0, 0.125); border-radius: 0.25rem; } .card > hr { margin-right: 0; margin-left: 0; } .card > .list-group:first-child .list-group-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; } .card > .list-group:last-child .list-group-item:last-child { border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .card-body { -ms-flex: 1 1 auto; flex: 1 1 auto; padding: 1.25rem; } .card-title { margin-bottom: 0.75rem; } .card-subtitle { margin-top: -0.375rem; margin-bottom: 0; } .card-text:last-child { margin-bottom: 0; } .card-link:hover { text-decoration: none; } .card-link + .card-link { margin-left: 1.25rem; } .card-header { padding: 0.75rem 1.25rem; margin-bottom: 0; background-color: rgba(0, 0, 0, 0.03); border-bottom: 1px solid rgba(0, 0, 0, 0.125); } .card-header:first-child { border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; } .card-header + .list-group .list-group-item:first-child { border-top: 0; } .card-footer { padding: 0.75rem 1.25rem; background-color: rgba(0, 0, 0, 0.03); border-top: 1px solid rgba(0, 0, 0, 0.125); } .card-footer:last-child { border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); } .card-header-tabs { margin-right: -0.625rem; margin-bottom: -0.75rem; margin-left: -0.625rem; border-bottom: 0; } .card-header-pills { margin-right: -0.625rem; margin-left: -0.625rem; } .card-img-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 1.25rem; } .card-img { width: 100%; border-radius: calc(0.25rem - 1px); } .card-img-top { width: 100%; border-top-left-radius: calc(0.25rem - 1px); border-top-right-radius: calc(0.25rem - 1px); } .card-img-bottom { width: 100%; border-bottom-right-radius: calc(0.25rem - 1px); border-bottom-left-radius: calc(0.25rem - 1px); } .card-deck { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; } .card-deck .card { margin-bottom: 15px; } @media (min-width: 576px) { .card-deck { -ms-flex-flow: row wrap; flex-flow: row wrap; margin-right: -15px; margin-left: -15px; } .card-deck .card { display: -ms-flexbox; display: flex; -ms-flex: 1 0 0%; flex: 1 0 0%; -ms-flex-direction: column; flex-direction: column; margin-right: 15px; margin-bottom: 0; margin-left: 15px; } } .card-group { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; } .card-group .card { margin-bottom: 15px; } @media (min-width: 576px) { .card-group { -ms-flex-flow: row wrap; flex-flow: row wrap; } .card-group .card { -ms-flex: 1 0 0%; flex: 1 0 0%; margin-bottom: 0; } .card-group .card + .card { margin-left: 0; border-left: 0; } .card-group .card:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; } .card-group .card:first-child .card-img-top { border-top-right-radius: 0; } .card-group .card:first-child .card-img-bottom { border-bottom-right-radius: 0; } .card-group .card:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; } .card-group .card:last-child .card-img-top { border-top-left-radius: 0; } .card-group .card:last-child .card-img-bottom { border-bottom-left-radius: 0; } .card-group .card:only-child { border-radius: 0.25rem; } .card-group .card:only-child .card-img-top { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; } .card-group .card:only-child .card-img-bottom { border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .card-group .card:not(:first-child):not(:last-child):not(:only-child) { border-radius: 0; } .card-group .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, .card-group .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom { border-radius: 0; } } .card-columns .card { margin-bottom: 0.75rem; } @media (min-width: 576px) { .card-columns { -webkit-column-count: 3; column-count: 3; -webkit-column-gap: 1.25rem; column-gap: 1.25rem; } .card-columns .card { display: inline-block; width: 100%; } } .breadcrumb { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #e9ecef; border-radius: 0.25rem; } .breadcrumb-item + .breadcrumb-item::before { display: inline-block; padding-right: 0.5rem; padding-left: 0.5rem; color: #868e96; content: "/"; } .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: underline; } .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: none; } .breadcrumb-item.active { color: #868e96; } .pagination { display: -ms-flexbox; display: flex; padding-left: 0; list-style: none; border-radius: 0.25rem; } .page-item:first-child .page-link { margin-left: 0; border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .page-item:last-child .page-link { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; } .page-item.active .page-link { z-index: 2; color: #fff; background-color: #007bff; border-color: #007bff; } .page-item.disabled .page-link { color: #868e96; pointer-events: none; background-color: #fff; border-color: #ddd; } .page-link { position: relative; display: block; padding: 0.5rem 0.75rem; margin-left: -1px; line-height: 1.25; color: #007bff; background-color: #fff; border: 1px solid #ddd; } .page-link:focus, .page-link:hover { color: #0056b3; text-decoration: none; background-color: #e9ecef; border-color: #ddd; } .pagination-lg .page-link { padding: 0.75rem 1.5rem; font-size: 1.25rem; line-height: 1.5; } .pagination-lg .page-item:first-child .page-link { border-top-left-radius: 0.3rem; border-bottom-left-radius: 0.3rem; } .pagination-lg .page-item:last-child .page-link { border-top-right-radius: 0.3rem; border-bottom-right-radius: 0.3rem; } .pagination-sm .page-link { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; } .pagination-sm .page-item:first-child .page-link { border-top-left-radius: 0.2rem; border-bottom-left-radius: 0.2rem; } .pagination-sm .page-item:last-child .page-link { border-top-right-radius: 0.2rem; border-bottom-right-radius: 0.2rem; } .badge { display: inline-block; padding: 0.25em 0.4em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .badge-pill { padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; } .badge-primary { color: #fff; background-color: #007bff; } .badge-primary[href]:focus, .badge-primary[href]:hover { color: #fff; text-decoration: none; background-color: #0062cc; } .badge-secondary { color: #fff; background-color: #868e96; } .badge-secondary[href]:focus, .badge-secondary[href]:hover { color: #fff; text-decoration: none; background-color: #6c757d; } .badge-success { color: #fff; background-color: #28a745; } .badge-success[href]:focus, .badge-success[href]:hover { color: #fff; text-decoration: none; background-color: #1e7e34; } .badge-info { color: #fff; background-color: #17a2b8; } .badge-info[href]:focus, .badge-info[href]:hover { color: #fff; text-decoration: none; background-color: #117a8b; } .badge-warning { color: #111; background-color: #ffc107; } .badge-warning[href]:focus, .badge-warning[href]:hover { color: #111; text-decoration: none; background-color: #d39e00; } .badge-danger { color: #fff; background-color: #dc3545; } .badge-danger[href]:focus, .badge-danger[href]:hover { color: #fff; text-decoration: none; background-color: #bd2130; } .badge-light { color: #111; background-color: #f8f9fa; } .badge-light[href]:focus, .badge-light[href]:hover { color: #111; text-decoration: none; background-color: #dae0e5; } .badge-dark { color: #fff; background-color: #343a40; } .badge-dark[href]:focus, .badge-dark[href]:hover { color: #fff; text-decoration: none; background-color: #1d2124; } .jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: 0.3rem; } @media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } } .jumbotron-fluid { padding-right: 0; padding-left: 0; border-radius: 0; } .alert { position: relative; padding: 0.75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; } .alert-heading { color: inherit; } .alert-link { font-weight: 700; } .alert-dismissible .close { position: absolute; top: 0; right: 0; padding: 0.75rem 1.25rem; color: inherit; } .alert-primary { color: #004085; background-color: #cce5ff; border-color: #b8daff; } .alert-primary hr { border-top-color: #9fcdff; } .alert-primary .alert-link { color: #002752; } .alert-secondary { color: #464a4e; background-color: #e7e8ea; border-color: #dddfe2; } .alert-secondary hr { border-top-color: #cfd2d6; } .alert-secondary .alert-link { color: #2e3133; } .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; } .alert-success hr { border-top-color: #b1dfbb; } .alert-success .alert-link { color: #0b2e13; } .alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; } .alert-info hr { border-top-color: #abdde5; } .alert-info .alert-link { color: #062c33; } .alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; } .alert-warning hr { border-top-color: #ffe8a1; } .alert-warning .alert-link { color: #533f03; } .alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; } .alert-danger hr { border-top-color: #f1b0b7; } .alert-danger .alert-link { color: #491217; } .alert-light { color: #818182; background-color: #fefefe; border-color: #fdfdfe; } .alert-light hr { border-top-color: #ececf6; } .alert-light .alert-link { color: #686868; } .alert-dark { color: #1b1e21; background-color: #d6d8d9; border-color: #c6c8ca; } .alert-dark hr { border-top-color: #b9bbbe; } .alert-dark .alert-link { color: #040505; } @-webkit-keyframes progress-bar-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } } .progress { display: -ms-flexbox; display: flex; height: 1rem; overflow: hidden; font-size: 0.75rem; background-color: #e9ecef; border-radius: 0.25rem; } .progress-bar { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; color: #fff; background-color: #007bff; } .progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; } .progress-bar-animated { -webkit-animation: progress-bar-stripes 1s linear infinite; animation: progress-bar-stripes 1s linear infinite; } .media { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; } .media-body { -ms-flex: 1; flex: 1; } .list-group { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; padding-left: 0; margin-bottom: 0; } .list-group-item-action { width: 100%; color: #495057; text-align: inherit; } .list-group-item-action:focus, .list-group-item-action:hover { color: #495057; text-decoration: none; background-color: #f8f9fa; } .list-group-item-action:active { color: #212529; background-color: #e9ecef; } .list-group-item { position: relative; display: block; padding: 0.75rem 1.25rem; margin-bottom: -1px; background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.125); } .list-group-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .list-group-item:focus, .list-group-item:hover { text-decoration: none; } .list-group-item.disabled, .list-group-item:disabled { color: #868e96; background-color: #fff; } .list-group-item.active { z-index: 2; color: #fff; background-color: #007bff; border-color: #007bff; } .list-group-flush .list-group-item { border-right: 0; border-left: 0; border-radius: 0; } .list-group-flush:first-child .list-group-item:first-child { border-top: 0; } .list-group-flush:last-child .list-group-item:last-child { border-bottom: 0; } .list-group-item-primary { color: #004085; background-color: #b8daff; } a.list-group-item-primary, button.list-group-item-primary { color: #004085; } a.list-group-item-primary:focus, a.list-group-item-primary:hover, button.list-group-item-primary:focus, button.list-group-item-primary:hover { color: #004085; background-color: #9fcdff; } a.list-group-item-primary.active, button.list-group-item-primary.active { color: #fff; background-color: #004085; border-color: #004085; } .list-group-item-secondary { color: #464a4e; background-color: #dddfe2; } a.list-group-item-secondary, button.list-group-item-secondary { color: #464a4e; } a.list-group-item-secondary:focus, a.list-group-item-secondary:hover, button.list-group-item-secondary:focus, button.list-group-item-secondary:hover { color: #464a4e; background-color: #cfd2d6; } a.list-group-item-secondary.active, button.list-group-item-secondary.active { color: #fff; background-color: #464a4e; border-color: #464a4e; } .list-group-item-success { color: #155724; background-color: #c3e6cb; } a.list-group-item-success, button.list-group-item-success { color: #155724; } a.list-group-item-success:focus, a.list-group-item-success:hover, button.list-group-item-success:focus, button.list-group-item-success:hover { color: #155724; background-color: #b1dfbb; } a.list-group-item-success.active, button.list-group-item-success.active { color: #fff; background-color: #155724; border-color: #155724; } .list-group-item-info { color: #0c5460; background-color: #bee5eb; } a.list-group-item-info, button.list-group-item-info { color: #0c5460; } a.list-group-item-info:focus, a.list-group-item-info:hover, button.list-group-item-info:focus, button.list-group-item-info:hover { color: #0c5460; background-color: #abdde5; } a.list-group-item-info.active, button.list-group-item-info.active { color: #fff; background-color: #0c5460; border-color: #0c5460; } .list-group-item-warning { color: #856404; background-color: #ffeeba; } a.list-group-item-warning, button.list-group-item-warning { color: #856404; } a.list-group-item-warning:focus, a.list-group-item-warning:hover, button.list-group-item-warning:focus, button.list-group-item-warning:hover { color: #856404; background-color: #ffe8a1; } a.list-group-item-warning.active, button.list-group-item-warning.active { color: #fff; background-color: #856404; border-color: #856404; } .list-group-item-danger { color: #721c24; background-color: #f5c6cb; } a.list-group-item-danger, button.list-group-item-danger { color: #721c24; } a.list-group-item-danger:focus, a.list-group-item-danger:hover, button.list-group-item-danger:focus, button.list-group-item-danger:hover { color: #721c24; background-color: #f1b0b7; } a.list-group-item-danger.active, button.list-group-item-danger.active { color: #fff; background-color: #721c24; border-color: #721c24; } .list-group-item-light { color: #818182; background-color: #fdfdfe; } a.list-group-item-light, button.list-group-item-light { color: #818182; } a.list-group-item-light:focus, a.list-group-item-light:hover, button.list-group-item-light:focus, button.list-group-item-light:hover { color: #818182; background-color: #ececf6; } a.list-group-item-light.active, button.list-group-item-light.active { color: #fff; background-color: #818182; border-color: #818182; } .list-group-item-dark { color: #1b1e21; background-color: #c6c8ca; } a.list-group-item-dark, button.list-group-item-dark { color: #1b1e21; } a.list-group-item-dark:focus, a.list-group-item-dark:hover, button.list-group-item-dark:focus, button.list-group-item-dark:hover { color: #1b1e21; background-color: #b9bbbe; } a.list-group-item-dark.active, button.list-group-item-dark.active { color: #fff; background-color: #1b1e21; border-color: #1b1e21; } .close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; } .close:focus, .close:hover { color: #000; text-decoration: none; opacity: .75; } button.close { padding: 0; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; outline: 0; } .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -25%); transform: translate(0, -25%); } .modal.show .modal-dialog { -webkit-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; pointer-events: none; } .modal-content { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; outline: 0; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop.show { opacity: 0.5; } .modal-header { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; -ms-flex-pack: justify; justify-content: space-between; padding: 15px; border-bottom: 1px solid #e9ecef; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; } .modal-header .close { padding: 15px; margin: -15px -15px -15px auto; } .modal-title { margin-bottom: 0; line-height: 1.5; } .modal-body { position: relative; -ms-flex: 1 1 auto; flex: 1 1 auto; padding: 15px; } .modal-footer { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: end; justify-content: flex-end; padding: 15px; border-top: 1px solid #e9ecef; } .modal-footer > :not(:first-child) { margin-left: .25rem; } .modal-footer > :not(:last-child) { margin-right: .25rem; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 576px) { .modal-dialog { max-width: 500px; margin: 30px auto; } .modal-sm { max-width: 300px; } } @media (min-width: 992px) { .modal-lg { max-width: 800px; } } .tooltip { position: absolute; z-index: 1070; display: block; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; opacity: 0; } .tooltip.show { opacity: 0.9; } .tooltip .arrow { position: absolute; display: block; width: 5px; height: 5px; } .tooltip .arrow::before { position: absolute; border-color: transparent; border-style: solid; } .tooltip.bs-tooltip-top, .tooltip.bs-tooltip-auto[x-placement^="top"] { padding: 5px 0; } .tooltip.bs-tooltip-top .arrow, .tooltip.bs-tooltip-auto[x-placement^="top"] .arrow { bottom: 0; } .tooltip.bs-tooltip-top .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before { margin-left: -3px; content: ""; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.bs-tooltip-right, .tooltip.bs-tooltip-auto[x-placement^="right"] { padding: 0 5px; } .tooltip.bs-tooltip-right .arrow, .tooltip.bs-tooltip-auto[x-placement^="right"] .arrow { left: 0; } .tooltip.bs-tooltip-right .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before { margin-top: -3px; content: ""; border-width: 5px 5px 5px 0; border-right-color: #000; } .tooltip.bs-tooltip-bottom, .tooltip.bs-tooltip-auto[x-placement^="bottom"] { padding: 5px 0; } .tooltip.bs-tooltip-bottom .arrow, .tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow { top: 0; } .tooltip.bs-tooltip-bottom .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before { margin-left: -3px; content: ""; border-width: 0 5px 5px; border-bottom-color: #000; } .tooltip.bs-tooltip-left, .tooltip.bs-tooltip-auto[x-placement^="left"] { padding: 0 5px; } .tooltip.bs-tooltip-left .arrow, .tooltip.bs-tooltip-auto[x-placement^="left"] .arrow { right: 0; } .tooltip.bs-tooltip-left .arrow::before, .tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before { right: 0; margin-top: -3px; content: ""; border-width: 5px 0 5px 5px; border-left-color: #000; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: 0.25rem; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: block; max-width: 276px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; } .popover .arrow { position: absolute; display: block; width: 0.8rem; height: 0.4rem; } .popover .arrow::before, .popover .arrow::after { position: absolute; display: block; border-color: transparent; border-style: solid; } .popover .arrow::before { content: ""; border-width: 0.8rem; } .popover .arrow::after { content: ""; border-width: 0.8rem; } .popover.bs-popover-top, .popover.bs-popover-auto[x-placement^="top"] { margin-bottom: 0.8rem; } .popover.bs-popover-top .arrow, .popover.bs-popover-auto[x-placement^="top"] .arrow { bottom: 0; } .popover.bs-popover-top .arrow::before, .popover.bs-popover-auto[x-placement^="top"] .arrow::before, .popover.bs-popover-top .arrow::after, .popover.bs-popover-auto[x-placement^="top"] .arrow::after { border-bottom-width: 0; } .popover.bs-popover-top .arrow::before, .popover.bs-popover-auto[x-placement^="top"] .arrow::before { bottom: -0.8rem; margin-left: -0.8rem; border-top-color: rgba(0, 0, 0, 0.25); } .popover.bs-popover-top .arrow::after, .popover.bs-popover-auto[x-placement^="top"] .arrow::after { bottom: calc((0.8rem - 1px) * -1); margin-left: -0.8rem; border-top-color: #fff; } .popover.bs-popover-right, .popover.bs-popover-auto[x-placement^="right"] { margin-left: 0.8rem; } .popover.bs-popover-right .arrow, .popover.bs-popover-auto[x-placement^="right"] .arrow { left: 0; } .popover.bs-popover-right .arrow::before, .popover.bs-popover-auto[x-placement^="right"] .arrow::before, .popover.bs-popover-right .arrow::after, .popover.bs-popover-auto[x-placement^="right"] .arrow::after { margin-top: -0.8rem; border-left-width: 0; } .popover.bs-popover-right .arrow::before, .popover.bs-popover-auto[x-placement^="right"] .arrow::before { left: -0.8rem; border-right-color: rgba(0, 0, 0, 0.25); } .popover.bs-popover-right .arrow::after, .popover.bs-popover-auto[x-placement^="right"] .arrow::after { left: calc((0.8rem - 1px) * -1); border-right-color: #fff; } .popover.bs-popover-bottom, .popover.bs-popover-auto[x-placement^="bottom"] { margin-top: 0.8rem; } .popover.bs-popover-bottom .arrow, .popover.bs-popover-auto[x-placement^="bottom"] .arrow { top: 0; } .popover.bs-popover-bottom .arrow::before, .popover.bs-popover-auto[x-placement^="bottom"] .arrow::before, .popover.bs-popover-bottom .arrow::after, .popover.bs-popover-auto[x-placement^="bottom"] .arrow::after { margin-left: -0.8rem; border-top-width: 0; } .popover.bs-popover-bottom .arrow::before, .popover.bs-popover-auto[x-placement^="bottom"] .arrow::before { top: -0.8rem; border-bottom-color: rgba(0, 0, 0, 0.25); } .popover.bs-popover-bottom .arrow::after, .popover.bs-popover-auto[x-placement^="bottom"] .arrow::after { top: calc((0.8rem - 1px) * -1); border-bottom-color: #fff; } .popover.bs-popover-bottom .popover-header::before, .popover.bs-popover-auto[x-placement^="bottom"] .popover-header::before { position: absolute; top: 0; left: 50%; display: block; width: 20px; margin-left: -10px; content: ""; border-bottom: 1px solid #f7f7f7; } .popover.bs-popover-left, .popover.bs-popover-auto[x-placement^="left"] { margin-right: 0.8rem; } .popover.bs-popover-left .arrow, .popover.bs-popover-auto[x-placement^="left"] .arrow { right: 0; } .popover.bs-popover-left .arrow::before, .popover.bs-popover-auto[x-placement^="left"] .arrow::before, .popover.bs-popover-left .arrow::after, .popover.bs-popover-auto[x-placement^="left"] .arrow::after { margin-top: -0.8rem; border-right-width: 0; } .popover.bs-popover-left .arrow::before, .popover.bs-popover-auto[x-placement^="left"] .arrow::before { right: -0.8rem; border-left-color: rgba(0, 0, 0, 0.25); } .popover.bs-popover-left .arrow::after, .popover.bs-popover-auto[x-placement^="left"] .arrow::after { right: calc((0.8rem - 1px) * -1); border-left-color: #fff; } .popover-header { padding: 0.5rem 0.75rem; margin-bottom: 0; font-size: 1rem; color: inherit; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); } .popover-header:empty { display: none; } .popover-body { padding: 0.5rem 0.75rem; color: #212529; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-item { position: relative; display: none; -ms-flex-align: center; align-items: center; width: 100%; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; transition: transform 0.6s ease, -webkit-transform 0.6s ease; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; perspective: 1000px; } .carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; } .carousel-item-next, .carousel-item-prev { position: absolute; top: 0; } .carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right { -webkit-transform: translateX(0); transform: translateX(0); } @supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { .carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .carousel-item-next, .active.carousel-item-right { -webkit-transform: translateX(100%); transform: translateX(100%); } @supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { .carousel-item-next, .active.carousel-item-right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .carousel-item-prev, .active.carousel-item-left { -webkit-transform: translateX(-100%); transform: translateX(-100%); } @supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { .carousel-item-prev, .active.carousel-item-left { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .carousel-control-prev, .carousel-control-next { position: absolute; top: 0; bottom: 0; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; width: 15%; color: #fff; text-align: center; opacity: 0.5; } .carousel-control-prev:focus, .carousel-control-prev:hover, .carousel-control-next:focus, .carousel-control-next:hover { color: #fff; text-decoration: none; outline: 0; opacity: .9; } .carousel-control-prev { left: 0; } .carousel-control-next { right: 0; } .carousel-control-prev-icon, .carousel-control-next-icon { display: inline-block; width: 20px; height: 20px; background: transparent no-repeat center center; background-size: 100% 100%; } .carousel-control-prev-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); } .carousel-control-next-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); } .carousel-indicators { position: absolute; right: 0; bottom: 10px; left: 0; z-index: 15; display: -ms-flexbox; display: flex; -ms-flex-pack: center; justify-content: center; padding-left: 0; margin-right: 15%; margin-left: 15%; list-style: none; } .carousel-indicators li { position: relative; -ms-flex: 0 1 auto; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; background-color: rgba(255, 255, 255, 0.5); } .carousel-indicators li::before { position: absolute; top: -10px; left: 0; display: inline-block; width: 100%; height: 10px; content: ""; } .carousel-indicators li::after { position: absolute; bottom: -10px; left: 0; display: inline-block; width: 100%; height: 10px; content: ""; } .carousel-indicators .active { background-color: #fff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; } .align-baseline { vertical-align: baseline !important; } .align-top { vertical-align: top !important; } .align-middle { vertical-align: middle !important; } .align-bottom { vertical-align: bottom !important; } .align-text-bottom { vertical-align: text-bottom !important; } .align-text-top { vertical-align: text-top !important; } .bg-primary { background-color: #007bff !important; } a.bg-primary:focus, a.bg-primary:hover { background-color: #0062cc !important; } .bg-secondary { background-color: #868e96 !important; } a.bg-secondary:focus, a.bg-secondary:hover { background-color: #6c757d !important; } .bg-success { background-color: #28a745 !important; } a.bg-success:focus, a.bg-success:hover { background-color: #1e7e34 !important; } .bg-info { background-color: #17a2b8 !important; } a.bg-info:focus, a.bg-info:hover { background-color: #117a8b !important; } .bg-warning { background-color: #ffc107 !important; } a.bg-warning:focus, a.bg-warning:hover { background-color: #d39e00 !important; } .bg-danger { background-color: #dc3545 !important; } a.bg-danger:focus, a.bg-danger:hover { background-color: #bd2130 !important; } .bg-light { background-color: #f8f9fa !important; } a.bg-light:focus, a.bg-light:hover { background-color: #dae0e5 !important; } .bg-dark { background-color: #343a40 !important; } a.bg-dark:focus, a.bg-dark:hover { background-color: #1d2124 !important; } .bg-white { background-color: #fff !important; } .bg-transparent { background-color: transparent !important; } .border { border: 1px solid #e9ecef !important; } .border-0 { border: 0 !important; } .border-top-0 { border-top: 0 !important; } .border-right-0 { border-right: 0 !important; } .border-bottom-0 { border-bottom: 0 !important; } .border-left-0 { border-left: 0 !important; } .border-primary { border-color: #007bff !important; } .border-secondary { border-color: #868e96 !important; } .border-success { border-color: #28a745 !important; } .border-info { border-color: #17a2b8 !important; } .border-warning { border-color: #ffc107 !important; } .border-danger { border-color: #dc3545 !important; } .border-light { border-color: #f8f9fa !important; } .border-dark { border-color: #343a40 !important; } .border-white { border-color: #fff !important; } .rounded { border-radius: 0.25rem !important; } .rounded-top { border-top-left-radius: 0.25rem !important; border-top-right-radius: 0.25rem !important; } .rounded-right { border-top-right-radius: 0.25rem !important; border-bottom-right-radius: 0.25rem !important; } .rounded-bottom { border-bottom-right-radius: 0.25rem !important; border-bottom-left-radius: 0.25rem !important; } .rounded-left { border-top-left-radius: 0.25rem !important; border-bottom-left-radius: 0.25rem !important; } .rounded-circle { border-radius: 50% !important; } .rounded-0 { border-radius: 0 !important; } .clearfix::after { display: block; clear: both; content: ""; } .d-none { display: none !important; } .d-inline { display: inline !important; } .d-inline-block { display: inline-block !important; } .d-block { display: block !important; } .d-table { display: table !important; } .d-table-row { display: table-row !important; } .d-table-cell { display: table-cell !important; } .d-flex { display: -ms-flexbox !important; display: flex !important; } .d-inline-flex { display: -ms-inline-flexbox !important; display: inline-flex !important; } @media (min-width: 576px) { .d-sm-none { display: none !important; } .d-sm-inline { display: inline !important; } .d-sm-inline-block { display: inline-block !important; } .d-sm-block { display: block !important; } .d-sm-table { display: table !important; } .d-sm-table-row { display: table-row !important; } .d-sm-table-cell { display: table-cell !important; } .d-sm-flex { display: -ms-flexbox !important; display: flex !important; } .d-sm-inline-flex { display: -ms-inline-flexbox !important; display: inline-flex !important; } } @media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-inline { display: inline !important; } .d-md-inline-block { display: inline-block !important; } .d-md-block { display: block !important; } .d-md-table { display: table !important; } .d-md-table-row { display: table-row !important; } .d-md-table-cell { display: table-cell !important; } .d-md-flex { display: -ms-flexbox !important; display: flex !important; } .d-md-inline-flex { display: -ms-inline-flexbox !important; display: inline-flex !important; } } @media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-inline { display: inline !important; } .d-lg-inline-block { display: inline-block !important; } .d-lg-block { display: block !important; } .d-lg-table { display: table !important; } .d-lg-table-row { display: table-row !important; } .d-lg-table-cell { display: table-cell !important; } .d-lg-flex { display: -ms-flexbox !important; display: flex !important; } .d-lg-inline-flex { display: -ms-inline-flexbox !important; display: inline-flex !important; } } @media (min-width: 1200px) { .d-xl-none { display: none !important; } .d-xl-inline { display: inline !important; } .d-xl-inline-block { display: inline-block !important; } .d-xl-block { display: block !important; } .d-xl-table { display: table !important; } .d-xl-table-row { display: table-row !important; } .d-xl-table-cell { display: table-cell !important; } .d-xl-flex { display: -ms-flexbox !important; display: flex !important; } .d-xl-inline-flex { display: -ms-inline-flexbox !important; display: inline-flex !important; } } .d-print-block { display: none !important; } @media print { .d-print-block { display: block !important; } } .d-print-inline { display: none !important; } @media print { .d-print-inline { display: inline !important; } } .d-print-inline-block { display: none !important; } @media print { .d-print-inline-block { display: inline-block !important; } } @media print { .d-print-none { display: none !important; } } .embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .embed-responsive::before { display: block; content: ""; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; } .embed-responsive-21by9::before { padding-top: 42.857143%; } .embed-responsive-16by9::before { padding-top: 56.25%; } .embed-responsive-4by3::before { padding-top: 75%; } .embed-responsive-1by1::before { padding-top: 100%; } .flex-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } @media (min-width: 576px) { .flex-sm-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-sm-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-sm-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-sm-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-sm-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-sm-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-sm-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-sm-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-sm-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-sm-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-sm-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-sm-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-sm-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-sm-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-sm-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-sm-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-sm-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-sm-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-sm-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-sm-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-sm-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-sm-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-sm-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-sm-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-sm-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-sm-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-sm-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-sm-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-sm-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 768px) { .flex-md-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-md-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-md-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-md-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-md-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-md-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-md-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-md-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-md-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-md-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-md-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-md-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-md-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-md-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-md-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-md-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-md-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-md-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-md-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-md-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-md-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-md-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-md-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-md-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-md-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-md-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-md-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-md-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-md-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 992px) { .flex-lg-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-lg-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-lg-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-lg-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-lg-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-lg-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-lg-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-lg-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-lg-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-lg-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-lg-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-lg-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-lg-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-lg-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-lg-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-lg-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-lg-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-lg-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-lg-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-lg-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-lg-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-lg-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-lg-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-lg-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-lg-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-lg-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-lg-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-lg-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-lg-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } @media (min-width: 1200px) { .flex-xl-row { -ms-flex-direction: row !important; flex-direction: row !important; } .flex-xl-column { -ms-flex-direction: column !important; flex-direction: column !important; } .flex-xl-row-reverse { -ms-flex-direction: row-reverse !important; flex-direction: row-reverse !important; } .flex-xl-column-reverse { -ms-flex-direction: column-reverse !important; flex-direction: column-reverse !important; } .flex-xl-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; } .flex-xl-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; } .flex-xl-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; } .justify-content-xl-start { -ms-flex-pack: start !important; justify-content: flex-start !important; } .justify-content-xl-end { -ms-flex-pack: end !important; justify-content: flex-end !important; } .justify-content-xl-center { -ms-flex-pack: center !important; justify-content: center !important; } .justify-content-xl-between { -ms-flex-pack: justify !important; justify-content: space-between !important; } .justify-content-xl-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; } .align-items-xl-start { -ms-flex-align: start !important; align-items: flex-start !important; } .align-items-xl-end { -ms-flex-align: end !important; align-items: flex-end !important; } .align-items-xl-center { -ms-flex-align: center !important; align-items: center !important; } .align-items-xl-baseline { -ms-flex-align: baseline !important; align-items: baseline !important; } .align-items-xl-stretch { -ms-flex-align: stretch !important; align-items: stretch !important; } .align-content-xl-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; } .align-content-xl-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; } .align-content-xl-center { -ms-flex-line-pack: center !important; align-content: center !important; } .align-content-xl-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; } .align-content-xl-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; } .align-content-xl-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; } .align-self-xl-auto { -ms-flex-item-align: auto !important; align-self: auto !important; } .align-self-xl-start { -ms-flex-item-align: start !important; align-self: flex-start !important; } .align-self-xl-end { -ms-flex-item-align: end !important; align-self: flex-end !important; } .align-self-xl-center { -ms-flex-item-align: center !important; align-self: center !important; } .align-self-xl-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; } .align-self-xl-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; } } .float-left { float: left !important; } .float-right { float: right !important; } .float-none { float: none !important; } @media (min-width: 576px) { .float-sm-left { float: left !important; } .float-sm-right { float: right !important; } .float-sm-none { float: none !important; } } @media (min-width: 768px) { .float-md-left { float: left !important; } .float-md-right { float: right !important; } .float-md-none { float: none !important; } } @media (min-width: 992px) { .float-lg-left { float: left !important; } .float-lg-right { float: right !important; } .float-lg-none { float: none !important; } } @media (min-width: 1200px) { .float-xl-left { float: left !important; } .float-xl-right { float: right !important; } .float-xl-none { float: none !important; } } .position-static { position: static !important; } .position-relative { position: relative !important; } .position-absolute { position: absolute !important; } .position-fixed { position: fixed !important; } .position-sticky { position: -webkit-sticky !important; position: sticky !important; } .fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } .fixed-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; } @supports ((position: -webkit-sticky) or (position: sticky)) { .sticky-top { position: -webkit-sticky; position: sticky; top: 0; z-index: 1020; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; -webkit-clip-path: inset(50%); clip-path: inset(50%); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; -webkit-clip-path: none; clip-path: none; } .w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; } .w-100 { width: 100% !important; } .h-25 { height: 25% !important; } .h-50 { height: 50% !important; } .h-75 { height: 75% !important; } .h-100 { height: 100% !important; } .mw-100 { max-width: 100% !important; } .mh-100 { max-height: 100% !important; } .m-0 { margin: 0 !important; } .mt-0, .my-0 { margin-top: 0 !important; } .mr-0, .mx-0 { margin-right: 0 !important; } .mb-0, .my-0 { margin-bottom: 0 !important; } .ml-0, .mx-0 { margin-left: 0 !important; } .m-1 { margin: 0.25rem !important; } .mt-1, .my-1 { margin-top: 0.25rem !important; } .mr-1, .mx-1 { margin-right: 0.25rem !important; } .mb-1, .my-1 { margin-bottom: 0.25rem !important; } .ml-1, .mx-1 { margin-left: 0.25rem !important; } .m-2 { margin: 0.5rem !important; } .mt-2, .my-2 { margin-top: 0.5rem !important; } .mr-2, .mx-2 { margin-right: 0.5rem !important; } .mb-2, .my-2 { margin-bottom: 0.5rem !important; } .ml-2, .mx-2 { margin-left: 0.5rem !important; } .m-3 { margin: 1rem !important; } .mt-3, .my-3 { margin-top: 1rem !important; } .mr-3, .mx-3 { margin-right: 1rem !important; } .mb-3, .my-3 { margin-bottom: 1rem !important; } .ml-3, .mx-3 { margin-left: 1rem !important; } .m-4 { margin: 1.5rem !important; } .mt-4, .my-4 { margin-top: 1.5rem !important; } .mr-4, .mx-4 { margin-right: 1.5rem !important; } .mb-4, .my-4 { margin-bottom: 1.5rem !important; } .ml-4, .mx-4 { margin-left: 1.5rem !important; } .m-5 { margin: 3rem !important; } .mt-5, .my-5 { margin-top: 3rem !important; } .mr-5, .mx-5 { margin-right: 3rem !important; } .mb-5, .my-5 { margin-bottom: 3rem !important; } .ml-5, .mx-5 { margin-left: 3rem !important; } .p-0 { padding: 0 !important; } .pt-0, .py-0 { padding-top: 0 !important; } .pr-0, .px-0 { padding-right: 0 !important; } .pb-0, .py-0 { padding-bottom: 0 !important; } .pl-0, .px-0 { padding-left: 0 !important; } .p-1 { padding: 0.25rem !important; } .pt-1, .py-1 { padding-top: 0.25rem !important; } .pr-1, .px-1 { padding-right: 0.25rem !important; } .pb-1, .py-1 { padding-bottom: 0.25rem !important; } .pl-1, .px-1 { padding-left: 0.25rem !important; } .p-2 { padding: 0.5rem !important; } .pt-2, .py-2 { padding-top: 0.5rem !important; } .pr-2, .px-2 { padding-right: 0.5rem !important; } .pb-2, .py-2 { padding-bottom: 0.5rem !important; } .pl-2, .px-2 { padding-left: 0.5rem !important; } .p-3 { padding: 1rem !important; } .pt-3, .py-3 { padding-top: 1rem !important; } .pr-3, .px-3 { padding-right: 1rem !important; } .pb-3, .py-3 { padding-bottom: 1rem !important; } .pl-3, .px-3 { padding-left: 1rem !important; } .p-4 { padding: 1.5rem !important; } .pt-4, .py-4 { padding-top: 1.5rem !important; } .pr-4, .px-4 { padding-right: 1.5rem !important; } .pb-4, .py-4 { padding-bottom: 1.5rem !important; } .pl-4, .px-4 { padding-left: 1.5rem !important; } .p-5 { padding: 3rem !important; } .pt-5, .py-5 { padding-top: 3rem !important; } .pr-5, .px-5 { padding-right: 3rem !important; } .pb-5, .py-5 { padding-bottom: 3rem !important; } .pl-5, .px-5 { padding-left: 3rem !important; } .m-auto { margin: auto !important; } .mt-auto, .my-auto { margin-top: auto !important; } .mr-auto, .mx-auto { margin-right: auto !important; } .mb-auto, .my-auto { margin-bottom: auto !important; } .ml-auto, .mx-auto { margin-left: auto !important; } @media (min-width: 576px) { .m-sm-0 { margin: 0 !important; } .mt-sm-0, .my-sm-0 { margin-top: 0 !important; } .mr-sm-0, .mx-sm-0 { margin-right: 0 !important; } .mb-sm-0, .my-sm-0 { margin-bottom: 0 !important; } .ml-sm-0, .mx-sm-0 { margin-left: 0 !important; } .m-sm-1 { margin: 0.25rem !important; } .mt-sm-1, .my-sm-1 { margin-top: 0.25rem !important; } .mr-sm-1, .mx-sm-1 { margin-right: 0.25rem !important; } .mb-sm-1, .my-sm-1 { margin-bottom: 0.25rem !important; } .ml-sm-1, .mx-sm-1 { margin-left: 0.25rem !important; } .m-sm-2 { margin: 0.5rem !important; } .mt-sm-2, .my-sm-2 { margin-top: 0.5rem !important; } .mr-sm-2, .mx-sm-2 { margin-right: 0.5rem !important; } .mb-sm-2, .my-sm-2 { margin-bottom: 0.5rem !important; } .ml-sm-2, .mx-sm-2 { margin-left: 0.5rem !important; } .m-sm-3 { margin: 1rem !important; } .mt-sm-3, .my-sm-3 { margin-top: 1rem !important; } .mr-sm-3, .mx-sm-3 { margin-right: 1rem !important; } .mb-sm-3, .my-sm-3 { margin-bottom: 1rem !important; } .ml-sm-3, .mx-sm-3 { margin-left: 1rem !important; } .m-sm-4 { margin: 1.5rem !important; } .mt-sm-4, .my-sm-4 { margin-top: 1.5rem !important; } .mr-sm-4, .mx-sm-4 { margin-right: 1.5rem !important; } .mb-sm-4, .my-sm-4 { margin-bottom: 1.5rem !important; } .ml-sm-4, .mx-sm-4 { margin-left: 1.5rem !important; } .m-sm-5 { margin: 3rem !important; } .mt-sm-5, .my-sm-5 { margin-top: 3rem !important; } .mr-sm-5, .mx-sm-5 { margin-right: 3rem !important; } .mb-sm-5, .my-sm-5 { margin-bottom: 3rem !important; } .ml-sm-5, .mx-sm-5 { margin-left: 3rem !important; } .p-sm-0 { padding: 0 !important; } .pt-sm-0, .py-sm-0 { padding-top: 0 !important; } .pr-sm-0, .px-sm-0 { padding-right: 0 !important; } .pb-sm-0, .py-sm-0 { padding-bottom: 0 !important; } .pl-sm-0, .px-sm-0 { padding-left: 0 !important; } .p-sm-1 { padding: 0.25rem !important; } .pt-sm-1, .py-sm-1 { padding-top: 0.25rem !important; } .pr-sm-1, .px-sm-1 { padding-right: 0.25rem !important; } .pb-sm-1, .py-sm-1 { padding-bottom: 0.25rem !important; } .pl-sm-1, .px-sm-1 { padding-left: 0.25rem !important; } .p-sm-2 { padding: 0.5rem !important; } .pt-sm-2, .py-sm-2 { padding-top: 0.5rem !important; } .pr-sm-2, .px-sm-2 { padding-right: 0.5rem !important; } .pb-sm-2, .py-sm-2 { padding-bottom: 0.5rem !important; } .pl-sm-2, .px-sm-2 { padding-left: 0.5rem !important; } .p-sm-3 { padding: 1rem !important; } .pt-sm-3, .py-sm-3 { padding-top: 1rem !important; } .pr-sm-3, .px-sm-3 { padding-right: 1rem !important; } .pb-sm-3, .py-sm-3 { padding-bottom: 1rem !important; } .pl-sm-3, .px-sm-3 { padding-left: 1rem !important; } .p-sm-4 { padding: 1.5rem !important; } .pt-sm-4, .py-sm-4 { padding-top: 1.5rem !important; } .pr-sm-4, .px-sm-4 { padding-right: 1.5rem !important; } .pb-sm-4, .py-sm-4 { padding-bottom: 1.5rem !important; } .pl-sm-4, .px-sm-4 { padding-left: 1.5rem !important; } .p-sm-5 { padding: 3rem !important; } .pt-sm-5, .py-sm-5 { padding-top: 3rem !important; } .pr-sm-5, .px-sm-5 { padding-right: 3rem !important; } .pb-sm-5, .py-sm-5 { padding-bottom: 3rem !important; } .pl-sm-5, .px-sm-5 { padding-left: 3rem !important; } .m-sm-auto { margin: auto !important; } .mt-sm-auto, .my-sm-auto { margin-top: auto !important; } .mr-sm-auto, .mx-sm-auto { margin-right: auto !important; } .mb-sm-auto, .my-sm-auto { margin-bottom: auto !important; } .ml-sm-auto, .mx-sm-auto { margin-left: auto !important; } } @media (min-width: 768px) { .m-md-0 { margin: 0 !important; } .mt-md-0, .my-md-0 { margin-top: 0 !important; } .mr-md-0, .mx-md-0 { margin-right: 0 !important; } .mb-md-0, .my-md-0 { margin-bottom: 0 !important; } .ml-md-0, .mx-md-0 { margin-left: 0 !important; } .m-md-1 { margin: 0.25rem !important; } .mt-md-1, .my-md-1 { margin-top: 0.25rem !important; } .mr-md-1, .mx-md-1 { margin-right: 0.25rem !important; } .mb-md-1, .my-md-1 { margin-bottom: 0.25rem !important; } .ml-md-1, .mx-md-1 { margin-left: 0.25rem !important; } .m-md-2 { margin: 0.5rem !important; } .mt-md-2, .my-md-2 { margin-top: 0.5rem !important; } .mr-md-2, .mx-md-2 { margin-right: 0.5rem !important; } .mb-md-2, .my-md-2 { margin-bottom: 0.5rem !important; } .ml-md-2, .mx-md-2 { margin-left: 0.5rem !important; } .m-md-3 { margin: 1rem !important; } .mt-md-3, .my-md-3 { margin-top: 1rem !important; } .mr-md-3, .mx-md-3 { margin-right: 1rem !important; } .mb-md-3, .my-md-3 { margin-bottom: 1rem !important; } .ml-md-3, .mx-md-3 { margin-left: 1rem !important; } .m-md-4 { margin: 1.5rem !important; } .mt-md-4, .my-md-4 { margin-top: 1.5rem !important; } .mr-md-4, .mx-md-4 { margin-right: 1.5rem !important; } .mb-md-4, .my-md-4 { margin-bottom: 1.5rem !important; } .ml-md-4, .mx-md-4 { margin-left: 1.5rem !important; } .m-md-5 { margin: 3rem !important; } .mt-md-5, .my-md-5 { margin-top: 3rem !important; } .mr-md-5, .mx-md-5 { margin-right: 3rem !important; } .mb-md-5, .my-md-5 { margin-bottom: 3rem !important; } .ml-md-5, .mx-md-5 { margin-left: 3rem !important; } .p-md-0 { padding: 0 !important; } .pt-md-0, .py-md-0 { padding-top: 0 !important; } .pr-md-0, .px-md-0 { padding-right: 0 !important; } .pb-md-0, .py-md-0 { padding-bottom: 0 !important; } .pl-md-0, .px-md-0 { padding-left: 0 !important; } .p-md-1 { padding: 0.25rem !important; } .pt-md-1, .py-md-1 { padding-top: 0.25rem !important; } .pr-md-1, .px-md-1 { padding-right: 0.25rem !important; } .pb-md-1, .py-md-1 { padding-bottom: 0.25rem !important; } .pl-md-1, .px-md-1 { padding-left: 0.25rem !important; } .p-md-2 { padding: 0.5rem !important; } .pt-md-2, .py-md-2 { padding-top: 0.5rem !important; } .pr-md-2, .px-md-2 { padding-right: 0.5rem !important; } .pb-md-2, .py-md-2 { padding-bottom: 0.5rem !important; } .pl-md-2, .px-md-2 { padding-left: 0.5rem !important; } .p-md-3 { padding: 1rem !important; } .pt-md-3, .py-md-3 { padding-top: 1rem !important; } .pr-md-3, .px-md-3 { padding-right: 1rem !important; } .pb-md-3, .py-md-3 { padding-bottom: 1rem !important; } .pl-md-3, .px-md-3 { padding-left: 1rem !important; } .p-md-4 { padding: 1.5rem !important; } .pt-md-4, .py-md-4 { padding-top: 1.5rem !important; } .pr-md-4, .px-md-4 { padding-right: 1.5rem !important; } .pb-md-4, .py-md-4 { padding-bottom: 1.5rem !important; } .pl-md-4, .px-md-4 { padding-left: 1.5rem !important; } .p-md-5 { padding: 3rem !important; } .pt-md-5, .py-md-5 { padding-top: 3rem !important; } .pr-md-5, .px-md-5 { padding-right: 3rem !important; } .pb-md-5, .py-md-5 { padding-bottom: 3rem !important; } .pl-md-5, .px-md-5 { padding-left: 3rem !important; } .m-md-auto { margin: auto !important; } .mt-md-auto, .my-md-auto { margin-top: auto !important; } .mr-md-auto, .mx-md-auto { margin-right: auto !important; } .mb-md-auto, .my-md-auto { margin-bottom: auto !important; } .ml-md-auto, .mx-md-auto { margin-left: auto !important; } } @media (min-width: 992px) { .m-lg-0 { margin: 0 !important; } .mt-lg-0, .my-lg-0 { margin-top: 0 !important; } .mr-lg-0, .mx-lg-0 { margin-right: 0 !important; } .mb-lg-0, .my-lg-0 { margin-bottom: 0 !important; } .ml-lg-0, .mx-lg-0 { margin-left: 0 !important; } .m-lg-1 { margin: 0.25rem !important; } .mt-lg-1, .my-lg-1 { margin-top: 0.25rem !important; } .mr-lg-1, .mx-lg-1 { margin-right: 0.25rem !important; } .mb-lg-1, .my-lg-1 { margin-bottom: 0.25rem !important; } .ml-lg-1, .mx-lg-1 { margin-left: 0.25rem !important; } .m-lg-2 { margin: 0.5rem !important; } .mt-lg-2, .my-lg-2 { margin-top: 0.5rem !important; } .mr-lg-2, .mx-lg-2 { margin-right: 0.5rem !important; } .mb-lg-2, .my-lg-2 { margin-bottom: 0.5rem !important; } .ml-lg-2, .mx-lg-2 { margin-left: 0.5rem !important; } .m-lg-3 { margin: 1rem !important; } .mt-lg-3, .my-lg-3 { margin-top: 1rem !important; } .mr-lg-3, .mx-lg-3 { margin-right: 1rem !important; } .mb-lg-3, .my-lg-3 { margin-bottom: 1rem !important; } .ml-lg-3, .mx-lg-3 { margin-left: 1rem !important; } .m-lg-4 { margin: 1.5rem !important; } .mt-lg-4, .my-lg-4 { margin-top: 1.5rem !important; } .mr-lg-4, .mx-lg-4 { margin-right: 1.5rem !important; } .mb-lg-4, .my-lg-4 { margin-bottom: 1.5rem !important; } .ml-lg-4, .mx-lg-4 { margin-left: 1.5rem !important; } .m-lg-5 { margin: 3rem !important; } .mt-lg-5, .my-lg-5 { margin-top: 3rem !important; } .mr-lg-5, .mx-lg-5 { margin-right: 3rem !important; } .mb-lg-5, .my-lg-5 { margin-bottom: 3rem !important; } .ml-lg-5, .mx-lg-5 { margin-left: 3rem !important; } .p-lg-0 { padding: 0 !important; } .pt-lg-0, .py-lg-0 { padding-top: 0 !important; } .pr-lg-0, .px-lg-0 { padding-right: 0 !important; } .pb-lg-0, .py-lg-0 { padding-bottom: 0 !important; } .pl-lg-0, .px-lg-0 { padding-left: 0 !important; } .p-lg-1 { padding: 0.25rem !important; } .pt-lg-1, .py-lg-1 { padding-top: 0.25rem !important; } .pr-lg-1, .px-lg-1 { padding-right: 0.25rem !important; } .pb-lg-1, .py-lg-1 { padding-bottom: 0.25rem !important; } .pl-lg-1, .px-lg-1 { padding-left: 0.25rem !important; } .p-lg-2 { padding: 0.5rem !important; } .pt-lg-2, .py-lg-2 { padding-top: 0.5rem !important; } .pr-lg-2, .px-lg-2 { padding-right: 0.5rem !important; } .pb-lg-2, .py-lg-2 { padding-bottom: 0.5rem !important; } .pl-lg-2, .px-lg-2 { padding-left: 0.5rem !important; } .p-lg-3 { padding: 1rem !important; } .pt-lg-3, .py-lg-3 { padding-top: 1rem !important; } .pr-lg-3, .px-lg-3 { padding-right: 1rem !important; } .pb-lg-3, .py-lg-3 { padding-bottom: 1rem !important; } .pl-lg-3, .px-lg-3 { padding-left: 1rem !important; } .p-lg-4 { padding: 1.5rem !important; } .pt-lg-4, .py-lg-4 { padding-top: 1.5rem !important; } .pr-lg-4, .px-lg-4 { padding-right: 1.5rem !important; } .pb-lg-4, .py-lg-4 { padding-bottom: 1.5rem !important; } .pl-lg-4, .px-lg-4 { padding-left: 1.5rem !important; } .p-lg-5 { padding: 3rem !important; } .pt-lg-5, .py-lg-5 { padding-top: 3rem !important; } .pr-lg-5, .px-lg-5 { padding-right: 3rem !important; } .pb-lg-5, .py-lg-5 { padding-bottom: 3rem !important; } .pl-lg-5, .px-lg-5 { padding-left: 3rem !important; } .m-lg-auto { margin: auto !important; } .mt-lg-auto, .my-lg-auto { margin-top: auto !important; } .mr-lg-auto, .mx-lg-auto { margin-right: auto !important; } .mb-lg-auto, .my-lg-auto { margin-bottom: auto !important; } .ml-lg-auto, .mx-lg-auto { margin-left: auto !important; } } @media (min-width: 1200px) { .m-xl-0 { margin: 0 !important; } .mt-xl-0, .my-xl-0 { margin-top: 0 !important; } .mr-xl-0, .mx-xl-0 { margin-right: 0 !important; } .mb-xl-0, .my-xl-0 { margin-bottom: 0 !important; } .ml-xl-0, .mx-xl-0 { margin-left: 0 !important; } .m-xl-1 { margin: 0.25rem !important; } .mt-xl-1, .my-xl-1 { margin-top: 0.25rem !important; } .mr-xl-1, .mx-xl-1 { margin-right: 0.25rem !important; } .mb-xl-1, .my-xl-1 { margin-bottom: 0.25rem !important; } .ml-xl-1, .mx-xl-1 { margin-left: 0.25rem !important; } .m-xl-2 { margin: 0.5rem !important; } .mt-xl-2, .my-xl-2 { margin-top: 0.5rem !important; } .mr-xl-2, .mx-xl-2 { margin-right: 0.5rem !important; } .mb-xl-2, .my-xl-2 { margin-bottom: 0.5rem !important; } .ml-xl-2, .mx-xl-2 { margin-left: 0.5rem !important; } .m-xl-3 { margin: 1rem !important; } .mt-xl-3, .my-xl-3 { margin-top: 1rem !important; } .mr-xl-3, .mx-xl-3 { margin-right: 1rem !important; } .mb-xl-3, .my-xl-3 { margin-bottom: 1rem !important; } .ml-xl-3, .mx-xl-3 { margin-left: 1rem !important; } .m-xl-4 { margin: 1.5rem !important; } .mt-xl-4, .my-xl-4 { margin-top: 1.5rem !important; } .mr-xl-4, .mx-xl-4 { margin-right: 1.5rem !important; } .mb-xl-4, .my-xl-4 { margin-bottom: 1.5rem !important; } .ml-xl-4, .mx-xl-4 { margin-left: 1.5rem !important; } .m-xl-5 { margin: 3rem !important; } .mt-xl-5, .my-xl-5 { margin-top: 3rem !important; } .mr-xl-5, .mx-xl-5 { margin-right: 3rem !important; } .mb-xl-5, .my-xl-5 { margin-bottom: 3rem !important; } .ml-xl-5, .mx-xl-5 { margin-left: 3rem !important; } .p-xl-0 { padding: 0 !important; } .pt-xl-0, .py-xl-0 { padding-top: 0 !important; } .pr-xl-0, .px-xl-0 { padding-right: 0 !important; } .pb-xl-0, .py-xl-0 { padding-bottom: 0 !important; } .pl-xl-0, .px-xl-0 { padding-left: 0 !important; } .p-xl-1 { padding: 0.25rem !important; } .pt-xl-1, .py-xl-1 { padding-top: 0.25rem !important; } .pr-xl-1, .px-xl-1 { padding-right: 0.25rem !important; } .pb-xl-1, .py-xl-1 { padding-bottom: 0.25rem !important; } .pl-xl-1, .px-xl-1 { padding-left: 0.25rem !important; } .p-xl-2 { padding: 0.5rem !important; } .pt-xl-2, .py-xl-2 { padding-top: 0.5rem !important; } .pr-xl-2, .px-xl-2 { padding-right: 0.5rem !important; } .pb-xl-2, .py-xl-2 { padding-bottom: 0.5rem !important; } .pl-xl-2, .px-xl-2 { padding-left: 0.5rem !important; } .p-xl-3 { padding: 1rem !important; } .pt-xl-3, .py-xl-3 { padding-top: 1rem !important; } .pr-xl-3, .px-xl-3 { padding-right: 1rem !important; } .pb-xl-3, .py-xl-3 { padding-bottom: 1rem !important; } .pl-xl-3, .px-xl-3 { padding-left: 1rem !important; } .p-xl-4 { padding: 1.5rem !important; } .pt-xl-4, .py-xl-4 { padding-top: 1.5rem !important; } .pr-xl-4, .px-xl-4 { padding-right: 1.5rem !important; } .pb-xl-4, .py-xl-4 { padding-bottom: 1.5rem !important; } .pl-xl-4, .px-xl-4 { padding-left: 1.5rem !important; } .p-xl-5 { padding: 3rem !important; } .pt-xl-5, .py-xl-5 { padding-top: 3rem !important; } .pr-xl-5, .px-xl-5 { padding-right: 3rem !important; } .pb-xl-5, .py-xl-5 { padding-bottom: 3rem !important; } .pl-xl-5, .px-xl-5 { padding-left: 3rem !important; } .m-xl-auto { margin: auto !important; } .mt-xl-auto, .my-xl-auto { margin-top: auto !important; } .mr-xl-auto, .mx-xl-auto { margin-right: auto !important; } .mb-xl-auto, .my-xl-auto { margin-bottom: auto !important; } .ml-xl-auto, .mx-xl-auto { margin-left: auto !important; } } .text-justify { text-align: justify !important; } .text-nowrap { white-space: nowrap !important; } .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .text-left { text-align: left !important; } .text-right { text-align: right !important; } .text-center { text-align: center !important; } @media (min-width: 576px) { .text-sm-left { text-align: left !important; } .text-sm-right { text-align: right !important; } .text-sm-center { text-align: center !important; } } @media (min-width: 768px) { .text-md-left { text-align: left !important; } .text-md-right { text-align: right !important; } .text-md-center { text-align: center !important; } } @media (min-width: 992px) { .text-lg-left { text-align: left !important; } .text-lg-right { text-align: right !important; } .text-lg-center { text-align: center !important; } } @media (min-width: 1200px) { .text-xl-left { text-align: left !important; } .text-xl-right { text-align: right !important; } .text-xl-center { text-align: center !important; } } .text-lowercase { text-transform: lowercase !important; } .text-uppercase { text-transform: uppercase !important; } .text-capitalize { text-transform: capitalize !important; } .font-weight-light { font-weight: 300 !important; } .font-weight-normal { font-weight: 400 !important; } .font-weight-bold { font-weight: 700 !important; } .font-italic { font-style: italic !important; } .text-white { color: #fff !important; } .text-primary { color: #007bff !important; } a.text-primary:focus, a.text-primary:hover { color: #0062cc !important; } .text-secondary { color: #868e96 !important; } a.text-secondary:focus, a.text-secondary:hover { color: #6c757d !important; } .text-success { color: #28a745 !important; } a.text-success:focus, a.text-success:hover { color: #1e7e34 !important; } .text-info { color: #17a2b8 !important; } a.text-info:focus, a.text-info:hover { color: #117a8b !important; } .text-warning { color: #ffc107 !important; } a.text-warning:focus, a.text-warning:hover { color: #d39e00 !important; } .text-danger { color: #dc3545 !important; } a.text-danger:focus, a.text-danger:hover { color: #bd2130 !important; } .text-light { color: #f8f9fa !important; } a.text-light:focus, a.text-light:hover { color: #dae0e5 !important; } .text-dark { color: #343a40 !important; } a.text-dark:focus, a.text-dark:hover { color: #1d2124 !important; } .text-muted { color: #868e96 !important; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .visible { visibility: visible !important; } .invisible { visibility: hidden !important; } /*# sourceMappingURL=bootstrap.css.map */ ================================================ FILE: public/frontend/plugins/bootstrap4/js/bootstrap.bundle.js ================================================ /*! * Bootstrap v4.0.0-beta.2 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ var bootstrap = (function (exports,$) { 'use strict'; $ = $ && $.hasOwnProperty('default') ? $['default'] : $; /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Util = function () { /** * ------------------------------------------------------------------------ * Private TransitionEnd Helpers * ------------------------------------------------------------------------ */ var transition = false; var MAX_UID = 1000000; var TransitionEndEvent = { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp) }; function toType(obj) { return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); } function getSpecialTransitionEndEvent() { return { bindType: transition.end, delegateType: transition.end, handle: function handle(event) { if ($(event.target).is(this)) { return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params } return undefined; // eslint-disable-line no-undefined } }; } function transitionEndTest() { if (window.QUnit) { return false; } var el = document.createElement('bootstrap'); for (var name in TransitionEndEvent) { if (typeof el.style[name] !== 'undefined') { return { end: TransitionEndEvent[name] }; } } return false; } function transitionEndEmulator(duration) { var _this = this; var called = false; $(this).one(Util.TRANSITION_END, function () { called = true; }); setTimeout(function () { if (!called) { Util.triggerTransitionEnd(_this); } }, duration); return this; } function setTransitionEndSupport() { transition = transitionEndTest(); $.fn.emulateTransitionEnd = transitionEndEmulator; if (Util.supportsTransitionEnd()) { $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); } } /** * -------------------------------------------------------------------------- * Public Util Api * -------------------------------------------------------------------------- */ var Util = { TRANSITION_END: 'bsTransitionEnd', getUID: function getUID(prefix) { do { // eslint-disable-next-line no-bitwise prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here } while (document.getElementById(prefix)); return prefix; }, getSelectorFromElement: function getSelectorFromElement(element) { var selector = element.getAttribute('data-target'); if (!selector || selector === '#') { selector = element.getAttribute('href') || ''; } try { var $selector = $(document).find(selector); return $selector.length > 0 ? selector : null; } catch (error) { return null; } }, reflow: function reflow(element) { return element.offsetHeight; }, triggerTransitionEnd: function triggerTransitionEnd(element) { $(element).trigger(transition.end); }, supportsTransitionEnd: function supportsTransitionEnd() { return Boolean(transition); }, isElement: function isElement(obj) { return (obj[0] || obj).nodeType; }, typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { var expectedTypes = configTypes[property]; var value = config[property]; var valueType = value && Util.isElement(value) ? 'element' : toType(value); if (!new RegExp(expectedTypes).test(valueType)) { throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); } } } } }; setTransitionEndSupport(); return Util; }($); function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var createClass = _createClass; function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } var inheritsLoose = _inheritsLoose; /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): alert.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Alert = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'alert'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.alert'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 150; var Selector = { DISMISS: '[data-dismiss="alert"]' }; var Event = { CLOSE: "close" + EVENT_KEY, CLOSED: "closed" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName = { ALERT: 'alert', FADE: 'fade', SHOW: 'show' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Alert = /*#__PURE__*/ function () { function Alert(element) { this._element = element; } // getters var _proto = Alert.prototype; // public _proto.close = function close(element) { element = element || this._element; var rootElement = this._getRootElement(element); var customEvent = this._triggerCloseEvent(rootElement); if (customEvent.isDefaultPrevented()) { return; } this._removeElement(rootElement); }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); this._element = null; }; // private _proto._getRootElement = function _getRootElement(element) { var selector = Util.getSelectorFromElement(element); var parent = false; if (selector) { parent = $(selector)[0]; } if (!parent) { parent = $(element).closest("." + ClassName.ALERT)[0]; } return parent; }; _proto._triggerCloseEvent = function _triggerCloseEvent(element) { var closeEvent = $.Event(Event.CLOSE); $(element).trigger(closeEvent); return closeEvent; }; _proto._removeElement = function _removeElement(element) { var _this = this; $(element).removeClass(ClassName.SHOW); if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) { this._destroyElement(element); return; } $(element).one(Util.TRANSITION_END, function (event) { return _this._destroyElement(element, event); }).emulateTransitionEnd(TRANSITION_DURATION); }; _proto._destroyElement = function _destroyElement(element) { $(element).detach().trigger(Event.CLOSED).remove(); }; // static Alert._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $element = $(this); var data = $element.data(DATA_KEY); if (!data) { data = new Alert(this); $element.data(DATA_KEY, data); } if (config === 'close') { data[config](this); } }); }; Alert._handleDismiss = function _handleDismiss(alertInstance) { return function (event) { if (event) { event.preventDefault(); } alertInstance.close(this); }; }; createClass(Alert, null, [{ key: "VERSION", get: function get() { return VERSION; } }]); return Alert; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Alert._jQueryInterface; $.fn[NAME].Constructor = Alert; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; return Alert; }($); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): button.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Button = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'button'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.button'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var ClassName = { ACTIVE: 'active', BUTTON: 'btn', FOCUS: 'focus' }; var Selector = { DATA_TOGGLE_CARROT: '[data-toggle^="button"]', DATA_TOGGLE: '[data-toggle="buttons"]', INPUT: 'input', ACTIVE: '.active', BUTTON: '.btn' }; var Event = { CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY) /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Button = /*#__PURE__*/ function () { function Button(element) { this._element = element; } // getters var _proto = Button.prototype; // public _proto.toggle = function toggle() { var triggerChangeEvent = true; var addAriaPressed = true; var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0]; if (rootElement) { var input = $(this._element).find(Selector.INPUT)[0]; if (input) { if (input.type === 'radio') { if (input.checked && $(this._element).hasClass(ClassName.ACTIVE)) { triggerChangeEvent = false; } else { var activeElement = $(rootElement).find(Selector.ACTIVE)[0]; if (activeElement) { $(activeElement).removeClass(ClassName.ACTIVE); } } } if (triggerChangeEvent) { if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) { return; } input.checked = !$(this._element).hasClass(ClassName.ACTIVE); $(input).trigger('change'); } input.focus(); addAriaPressed = false; } } if (addAriaPressed) { this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE)); } if (triggerChangeEvent) { $(this._element).toggleClass(ClassName.ACTIVE); } }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); this._element = null; }; // static Button._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); if (!data) { data = new Button(this); $(this).data(DATA_KEY, data); } if (config === 'toggle') { data[config](); } }); }; createClass(Button, null, [{ key: "VERSION", get: function get() { return VERSION; } }]); return Button; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { event.preventDefault(); var button = event.target; if (!$(button).hasClass(ClassName.BUTTON)) { button = $(button).closest(Selector.BUTTON); } Button._jQueryInterface.call($(button), 'toggle'); }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { var button = $(event.target).closest(Selector.BUTTON)[0]; $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type)); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Button._jQueryInterface; $.fn[NAME].Constructor = Button; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Button._jQueryInterface; }; return Button; }($); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): carousel.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Carousel = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'carousel'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.carousel'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 600; var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch var Default = { interval: 5000, keyboard: true, slide: false, pause: 'hover', wrap: true }; var DefaultType = { interval: '(number|boolean)', keyboard: 'boolean', slide: '(boolean|string)', pause: '(string|boolean)', wrap: 'boolean' }; var Direction = { NEXT: 'next', PREV: 'prev', LEFT: 'left', RIGHT: 'right' }; var Event = { SLIDE: "slide" + EVENT_KEY, SLID: "slid" + EVENT_KEY, KEYDOWN: "keydown" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY, TOUCHEND: "touchend" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName = { CAROUSEL: 'carousel', ACTIVE: 'active', SLIDE: 'slide', RIGHT: 'carousel-item-right', LEFT: 'carousel-item-left', NEXT: 'carousel-item-next', PREV: 'carousel-item-prev', ITEM: 'carousel-item' }; var Selector = { ACTIVE: '.active', ACTIVE_ITEM: '.active.carousel-item', ITEM: '.carousel-item', NEXT_PREV: '.carousel-item-next, .carousel-item-prev', INDICATORS: '.carousel-indicators', DATA_SLIDE: '[data-slide], [data-slide-to]', DATA_RIDE: '[data-ride="carousel"]' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Carousel = /*#__PURE__*/ function () { function Carousel(element, config) { this._items = null; this._interval = null; this._activeElement = null; this._isPaused = false; this._isSliding = false; this.touchTimeout = null; this._config = this._getConfig(config); this._element = $(element)[0]; this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0]; this._addEventListeners(); } // getters var _proto = Carousel.prototype; // public _proto.next = function next() { if (!this._isSliding) { this._slide(Direction.NEXT); } }; _proto.nextWhenVisible = function nextWhenVisible() { // Don't call next when the page isn't visible // or the carousel or its parent isn't visible if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') { this.next(); } }; _proto.prev = function prev() { if (!this._isSliding) { this._slide(Direction.PREV); } }; _proto.pause = function pause(event) { if (!event) { this._isPaused = true; } if ($(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) { Util.triggerTransitionEnd(this._element); this.cycle(true); } clearInterval(this._interval); this._interval = null; }; _proto.cycle = function cycle(event) { if (!event) { this._isPaused = false; } if (this._interval) { clearInterval(this._interval); this._interval = null; } if (this._config.interval && !this._isPaused) { this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval); } }; _proto.to = function to(index) { var _this = this; this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeIndex = this._getItemIndex(this._activeElement); if (index > this._items.length - 1 || index < 0) { return; } if (this._isSliding) { $(this._element).one(Event.SLID, function () { return _this.to(index); }); return; } if (activeIndex === index) { this.pause(); this.cycle(); return; } var direction = index > activeIndex ? Direction.NEXT : Direction.PREV; this._slide(direction, this._items[index]); }; _proto.dispose = function dispose() { $(this._element).off(EVENT_KEY); $.removeData(this._element, DATA_KEY); this._items = null; this._config = null; this._element = null; this._interval = null; this._isPaused = null; this._isSliding = null; this._activeElement = null; this._indicatorsElement = null; }; // private _proto._getConfig = function _getConfig(config) { config = $.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._addEventListeners = function _addEventListeners() { var _this2 = this; if (this._config.keyboard) { $(this._element).on(Event.KEYDOWN, function (event) { return _this2._keydown(event); }); } if (this._config.pause === 'hover') { $(this._element).on(Event.MOUSEENTER, function (event) { return _this2.pause(event); }).on(Event.MOUSELEAVE, function (event) { return _this2.cycle(event); }); if ('ontouchstart' in document.documentElement) { // if it's a touch-enabled device, mouseenter/leave are fired as // part of the mouse compatibility events on first tap - the carousel // would stop cycling until user tapped out of it; // here, we listen for touchend, explicitly pause the carousel // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling $(this._element).on(Event.TOUCHEND, function () { _this2.pause(); if (_this2.touchTimeout) { clearTimeout(_this2.touchTimeout); } _this2.touchTimeout = setTimeout(function (event) { return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); }); } } }; _proto._keydown = function _keydown(event) { if (/input|textarea/i.test(event.target.tagName)) { return; } switch (event.which) { case ARROW_LEFT_KEYCODE: event.preventDefault(); this.prev(); break; case ARROW_RIGHT_KEYCODE: event.preventDefault(); this.next(); break; default: return; } }; _proto._getItemIndex = function _getItemIndex(element) { this._items = $.makeArray($(element).parent().find(Selector.ITEM)); return this._items.indexOf(element); }; _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) { var isNextDirection = direction === Direction.NEXT; var isPrevDirection = direction === Direction.PREV; var activeIndex = this._getItemIndex(activeElement); var lastItemIndex = this._items.length - 1; var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex; if (isGoingToWrap && !this._config.wrap) { return activeElement; } var delta = direction === Direction.PREV ? -1 : 1; var itemIndex = (activeIndex + delta) % this._items.length; return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; }; _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex($(this._element).find(Selector.ACTIVE_ITEM)[0]); var slideEvent = $.Event(Event.SLIDE, { relatedTarget: relatedTarget, direction: eventDirectionName, from: fromIndex, to: targetIndex }); $(this._element).trigger(slideEvent); return slideEvent; }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { if (this._indicatorsElement) { $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE); var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $(nextIndicator).addClass(ClassName.ACTIVE); } } }; _proto._slide = function _slide(direction, element) { var _this3 = this; var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeElementIndex = this._getItemIndex(activeElement); var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement); var nextElementIndex = this._getItemIndex(nextElement); var isCycling = Boolean(this._interval); var directionalClassName; var orderClassName; var eventDirectionName; if (direction === Direction.NEXT) { directionalClassName = ClassName.LEFT; orderClassName = ClassName.NEXT; eventDirectionName = Direction.LEFT; } else { directionalClassName = ClassName.RIGHT; orderClassName = ClassName.PREV; eventDirectionName = Direction.RIGHT; } if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) { this._isSliding = false; return; } var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName); if (slideEvent.isDefaultPrevented()) { return; } if (!activeElement || !nextElement) { // some weirdness is happening, so we bail return; } this._isSliding = true; if (isCycling) { this.pause(); } this._setActiveIndicatorElement(nextElement); var slidEvent = $.Event(Event.SLID, { relatedTarget: nextElement, direction: eventDirectionName, from: activeElementIndex, to: nextElementIndex }); if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.SLIDE)) { $(nextElement).addClass(orderClassName); Util.reflow(nextElement); $(activeElement).addClass(directionalClassName); $(nextElement).addClass(directionalClassName); $(activeElement).one(Util.TRANSITION_END, function () { $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); $(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName); _this3._isSliding = false; setTimeout(function () { return $(_this3._element).trigger(slidEvent); }, 0); }).emulateTransitionEnd(TRANSITION_DURATION); } else { $(activeElement).removeClass(ClassName.ACTIVE); $(nextElement).addClass(ClassName.ACTIVE); this._isSliding = false; $(this._element).trigger(slidEvent); } if (isCycling) { this.cycle(); } }; // static Carousel._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); var _config = $.extend({}, Default, $(this).data()); if (typeof config === 'object') { $.extend(_config, config); } var action = typeof config === 'string' ? config : _config.slide; if (!data) { data = new Carousel(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'number') { data.to(config); } else if (typeof action === 'string') { if (typeof data[action] === 'undefined') { throw new Error("No method named \"" + action + "\""); } data[action](); } else if (_config.interval) { data.pause(); data.cycle(); } }); }; Carousel._dataApiClickHandler = function _dataApiClickHandler(event) { var selector = Util.getSelectorFromElement(this); if (!selector) { return; } var target = $(selector)[0]; if (!target || !$(target).hasClass(ClassName.CAROUSEL)) { return; } var config = $.extend({}, $(target).data(), $(this).data()); var slideIndex = this.getAttribute('data-slide-to'); if (slideIndex) { config.interval = false; } Carousel._jQueryInterface.call($(target), config); if (slideIndex) { $(target).data(DATA_KEY).to(slideIndex); } event.preventDefault(); }; createClass(Carousel, null, [{ key: "VERSION", get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }]); return Carousel; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); $(window).on(Event.LOAD_DATA_API, function () { $(Selector.DATA_RIDE).each(function () { var $carousel = $(this); Carousel._jQueryInterface.call($carousel, $carousel.data()); }); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Carousel._jQueryInterface; $.fn[NAME].Constructor = Carousel; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Carousel._jQueryInterface; }; return Carousel; }($); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): collapse.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Collapse = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'collapse'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.collapse'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 600; var Default = { toggle: true, parent: '' }; var DefaultType = { toggle: 'boolean', parent: '(string|element)' }; var Event = { SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName = { SHOW: 'show', COLLAPSE: 'collapse', COLLAPSING: 'collapsing', COLLAPSED: 'collapsed' }; var Dimension = { WIDTH: 'width', HEIGHT: 'height' }; var Selector = { ACTIVES: '.show, .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Collapse = /*#__PURE__*/ function () { function Collapse(element, config) { this._isTransitioning = false; this._element = element; this._config = this._getConfig(config); this._triggerArray = $.makeArray($("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); var tabToggles = $(Selector.DATA_TOGGLE); for (var i = 0; i < tabToggles.length; i++) { var elem = tabToggles[i]; var selector = Util.getSelectorFromElement(elem); if (selector !== null && $(selector).filter(element).length > 0) { this._triggerArray.push(elem); } } this._parent = this._config.parent ? this._getParent() : null; if (!this._config.parent) { this._addAriaAndCollapsedClass(this._element, this._triggerArray); } if (this._config.toggle) { this.toggle(); } } // getters var _proto = Collapse.prototype; // public _proto.toggle = function toggle() { if ($(this._element).hasClass(ClassName.SHOW)) { this.hide(); } else { this.show(); } }; _proto.show = function show() { var _this = this; if (this._isTransitioning || $(this._element).hasClass(ClassName.SHOW)) { return; } var actives; var activesData; if (this._parent) { actives = $.makeArray($(this._parent).children().children(Selector.ACTIVES)); if (!actives.length) { actives = null; } } if (actives) { activesData = $(actives).data(DATA_KEY); if (activesData && activesData._isTransitioning) { return; } } var startEvent = $.Event(Event.SHOW); $(this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; } if (actives) { Collapse._jQueryInterface.call($(actives), 'hide'); if (!activesData) { $(actives).data(DATA_KEY, null); } } var dimension = this._getDimension(); $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING); this._element.style[dimension] = 0; if (this._triggerArray.length) { $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true); } this.setTransitioning(true); var complete = function complete() { $(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); _this._element.style[dimension] = ''; _this.setTransitioning(false); $(_this._element).trigger(Event.SHOWN); }; if (!Util.supportsTransitionEnd()) { complete(); return; } var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); this._element.style[dimension] = this._element[scrollSize] + "px"; }; _proto.hide = function hide() { var _this2 = this; if (this._isTransitioning || !$(this._element).hasClass(ClassName.SHOW)) { return; } var startEvent = $.Event(Event.HIDE); $(this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; } var dimension = this._getDimension(); this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; Util.reflow(this._element); $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); if (this._triggerArray.length) { for (var i = 0; i < this._triggerArray.length; i++) { var trigger = this._triggerArray[i]; var selector = Util.getSelectorFromElement(trigger); if (selector !== null) { var $elem = $(selector); if (!$elem.hasClass(ClassName.SHOW)) { $(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false); } } } } this.setTransitioning(true); var complete = function complete() { _this2.setTransitioning(false); $(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN); }; this._element.style[dimension] = ''; if (!Util.supportsTransitionEnd()) { complete(); return; } $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); }; _proto.setTransitioning = function setTransitioning(isTransitioning) { this._isTransitioning = isTransitioning; }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); this._config = null; this._parent = null; this._element = null; this._triggerArray = null; this._isTransitioning = null; }; // private _proto._getConfig = function _getConfig(config) { config = $.extend({}, Default, config); config.toggle = Boolean(config.toggle); // coerce string values Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getDimension = function _getDimension() { var hasWidth = $(this._element).hasClass(Dimension.WIDTH); return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT; }; _proto._getParent = function _getParent() { var _this3 = this; var parent = null; if (Util.isElement(this._config.parent)) { parent = this._config.parent; // it's a jQuery object if (typeof this._config.parent.jquery !== 'undefined') { parent = this._config.parent[0]; } } else { parent = $(this._config.parent)[0]; } var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; $(parent).find(selector).each(function (i, element) { _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); }); return parent; }; _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { if (element) { var isOpen = $(element).hasClass(ClassName.SHOW); if (triggerArray.length) { $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); } } }; // static Collapse._getTargetFromElement = function _getTargetFromElement(element) { var selector = Util.getSelectorFromElement(element); return selector ? $(selector)[0] : null; }; Collapse._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var $this = $(this); var data = $this.data(DATA_KEY); var _config = $.extend({}, Default, $this.data(), typeof config === 'object' && config); if (!data && _config.toggle && /show|hide/.test(config)) { _config.toggle = false; } if (!data) { data = new Collapse(this, _config); $this.data(DATA_KEY, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new Error("No method named \"" + config + "\""); } data[config](); } }); }; createClass(Collapse, null, [{ key: "VERSION", get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }]); return Collapse; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { // preventDefault only for elements (which change the URL) not inside the collapsible element if (event.currentTarget.tagName === 'A') { event.preventDefault(); } var $trigger = $(this); var selector = Util.getSelectorFromElement(this); $(selector).each(function () { var $target = $(this); var data = $target.data(DATA_KEY); var config = data ? 'toggle' : $trigger.data(); Collapse._jQueryInterface.call($target, config); }); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Collapse._jQueryInterface; $.fn[NAME].Constructor = Collapse; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Collapse._jQueryInterface; }; return Collapse; }($); /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.12.5 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var nativeHints = ['native code', '[object MutationObserverConstructor]']; /** * Determine if a function is implemented natively (as opposed to a polyfill). * @method * @memberof Popper.Utils * @argument {Function | undefined} fn the function to check * @returns {Boolean} */ var isNative = (function (fn) { return nativeHints.some(function (hint) { return (fn || '').toString().indexOf(hint) > -1; }); }); var isBrowser = typeof window !== 'undefined'; var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; var timeoutDuration = 0; for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { timeoutDuration = 1; break; } } function microtaskDebounce(fn) { var scheduled = false; var i = 0; var elem = document.createElement('span'); // MutationObserver provides a mechanism for scheduling microtasks, which // are scheduled *before* the next task. This gives us a way to debounce // a function but ensure it's called *before* the next paint. var observer = new MutationObserver(function () { fn(); scheduled = false; }); observer.observe(elem, { attributes: true }); return function () { if (!scheduled) { scheduled = true; elem.setAttribute('x-index', i); i = i + 1; // don't use compund (+=) because it doesn't get optimized in V8 } }; } function taskDebounce(fn) { var scheduled = false; return function () { if (!scheduled) { scheduled = true; setTimeout(function () { scheduled = false; fn(); }, timeoutDuration); } }; } // It's common for MutationObserver polyfills to be seen in the wild, however // these rely on Mutation Events which only occur when an element is connected // to the DOM. The algorithm used in this module does not use a connected element, // and so we must ensure that a *native* MutationObserver is available. var supportsNativeMutationObserver = isBrowser && isNative(window.MutationObserver); /** * Create a debounced version of a method, that's asynchronously deferred * but called in the minimum time possible. * * @method * @memberof Popper.Utils * @argument {Function} fn * @returns {Function} */ var debounce = supportsNativeMutationObserver ? microtaskDebounce : taskDebounce; /** * Check if the given variable is a function * @method * @memberof Popper.Utils * @argument {Any} functionToCheck - variable to check * @returns {Boolean} answer to: is a function? */ function isFunction(functionToCheck) { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; } /** * Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property */ function getStyleComputedProperty(element, property) { if (element.nodeType !== 1) { return []; } // NOTE: 1 DOM access here var css = window.getComputedStyle(element, null); return property ? css[property] : css; } /** * Returns the parentNode or the host of the element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} parent */ function getParentNode(element) { if (element.nodeName === 'HTML') { return element; } return element.parentNode || element.host; } /** * Returns the scrolling parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} scroll parent */ function getScrollParent(element) { // Return body, `getScroll` will take care to get the correct `scrollTop` from it if (!element || ['HTML', 'BODY', '#document'].indexOf(element.nodeName) !== -1) { return window.document.body; } // Firefox want us to check `-x` and `-y` variations as well var _getStyleComputedProp = getStyleComputedProperty(element), overflow = _getStyleComputedProp.overflow, overflowX = _getStyleComputedProp.overflowX, overflowY = _getStyleComputedProp.overflowY; if (/(auto|scroll)/.test(overflow + overflowY + overflowX)) { return element; } return getScrollParent(getParentNode(element)); } /** * Returns the offset parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} offset parent */ function getOffsetParent(element) { // NOTE: 1 DOM access here var offsetParent = element && element.offsetParent; var nodeName = offsetParent && offsetParent.nodeName; if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { return window.document.documentElement; } // .offsetParent will return the closest TD or TABLE in case // no offsetParent is present, I hate this job... if (['TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { return getOffsetParent(offsetParent); } return offsetParent; } function isOffsetContainer(element) { var nodeName = element.nodeName; if (nodeName === 'BODY') { return false; } return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; } /** * Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node */ function getRoot(node) { if (node.parentNode !== null) { return getRoot(node.parentNode); } return node; } /** * Finds the offset parent common to the two provided nodes * @method * @memberof Popper.Utils * @argument {Element} element1 * @argument {Element} element2 * @returns {Element} common offset parent */ function findCommonOffsetParent(element1, element2) { // This check is needed to avoid errors in case one of the elements isn't defined for any reason if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { return window.document.documentElement; } // Here we make sure to give as "start" the element that comes first in the DOM var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; var start = order ? element1 : element2; var end = order ? element2 : element1; // Get common ancestor container var range = document.createRange(); range.setStart(start, 0); range.setEnd(end, 0); var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { if (isOffsetContainer(commonAncestorContainer)) { return commonAncestorContainer; } return getOffsetParent(commonAncestorContainer); } // one of the nodes is inside shadowDOM, find which one var element1root = getRoot(element1); if (element1root.host) { return findCommonOffsetParent(element1root.host, element2); } else { return findCommonOffsetParent(element1, getRoot(element2).host); } } /** * Gets the scroll value of the given element in the given side (top and left) * @method * @memberof Popper.Utils * @argument {Element} element * @argument {String} side `top` or `left` * @returns {number} amount of scrolled pixels */ function getScroll(element) { var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { var html = window.document.documentElement; var scrollingElement = window.document.scrollingElement || html; return scrollingElement[upperSide]; } return element[upperSide]; } /* * Sum or subtract the element scroll values (left and top) from a given rect object * @method * @memberof Popper.Utils * @param {Object} rect - Rect object you want to change * @param {HTMLElement} element - The element from the function reads the scroll values * @param {Boolean} subtract - set to true if you want to subtract the scroll values * @return {Object} rect - The modifier rect object */ function includeScroll(rect, element) { var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); var modifier = subtract ? -1 : 1; rect.top += scrollTop * modifier; rect.bottom += scrollTop * modifier; rect.left += scrollLeft * modifier; rect.right += scrollLeft * modifier; return rect; } /* * Helper to detect borders of a given element * @method * @memberof Popper.Utils * @param {CSSStyleDeclaration} styles * Result of `getStyleComputedProperty` on the given element * @param {String} axis - `x` or `y` * @return {number} borders - The borders size of the given axis */ function getBordersSize(styles, axis) { var sideA = axis === 'x' ? 'Left' : 'Top'; var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; return +styles['border' + sideA + 'Width'].split('px')[0] + +styles['border' + sideB + 'Width'].split('px')[0]; } /** * Tells if you are running Internet Explorer 10 * @method * @memberof Popper.Utils * @returns {Boolean} isIE10 */ var isIE10 = undefined; var isIE10$1 = function () { if (isIE10 === undefined) { isIE10 = navigator.appVersion.indexOf('MSIE 10') !== -1; } return isIE10; }; function getSize(axis, body, html, computedStyle) { return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE10$1() ? html['offset' + axis] + computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')] + computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')] : 0); } function getWindowSizes() { var body = window.document.body; var html = window.document.documentElement; var computedStyle = isIE10$1() && window.getComputedStyle(html); return { height: getSize('Height', body, html, computedStyle), width: getSize('Width', body, html, computedStyle) }; } var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var defineProperty = function (obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }; var _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** * Given element offsets, generate an output similar to getBoundingClientRect * @method * @memberof Popper.Utils * @argument {Object} offsets * @returns {Object} ClientRect like output */ function getClientRect(offsets) { return _extends$1({}, offsets, { right: offsets.left + offsets.width, bottom: offsets.top + offsets.height }); } /** * Get bounding client rect of given element * @method * @memberof Popper.Utils * @param {HTMLElement} element * @return {Object} client rect */ function getBoundingClientRect(element) { var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't // considered in DOM in some circumstances... // This isn't reproducible in IE10 compatibility mode of IE11 if (isIE10$1()) { try { rect = element.getBoundingClientRect(); var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); rect.top += scrollTop; rect.left += scrollLeft; rect.bottom += scrollTop; rect.right += scrollLeft; } catch (err) {} } else { rect = element.getBoundingClientRect(); } var result = { left: rect.left, top: rect.top, width: rect.right - rect.left, height: rect.bottom - rect.top }; // subtract scrollbar size from sizes var sizes = element.nodeName === 'HTML' ? getWindowSizes() : {}; var width = sizes.width || element.clientWidth || result.right - result.left; var height = sizes.height || element.clientHeight || result.bottom - result.top; var horizScrollbar = element.offsetWidth - width; var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border` // we make this check conditional for performance reasons if (horizScrollbar || vertScrollbar) { var styles = getStyleComputedProperty(element); horizScrollbar -= getBordersSize(styles, 'x'); vertScrollbar -= getBordersSize(styles, 'y'); result.width -= horizScrollbar; result.height -= vertScrollbar; } return getClientRect(result); } function getOffsetRectRelativeToArbitraryNode(children, parent) { var isIE10 = isIE10$1(); var isHTML = parent.nodeName === 'HTML'; var childrenRect = getBoundingClientRect(children); var parentRect = getBoundingClientRect(parent); var scrollParent = getScrollParent(children); var styles = getStyleComputedProperty(parent); var borderTopWidth = +styles.borderTopWidth.split('px')[0]; var borderLeftWidth = +styles.borderLeftWidth.split('px')[0]; var offsets = getClientRect({ top: childrenRect.top - parentRect.top - borderTopWidth, left: childrenRect.left - parentRect.left - borderLeftWidth, width: childrenRect.width, height: childrenRect.height }); offsets.marginTop = 0; offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent // we do this only on HTML because it's the only element that behaves // differently when margins are applied to it. The margins are included in // the box of the documentElement, in the other cases not. if (!isIE10 && isHTML) { var marginTop = +styles.marginTop.split('px')[0]; var marginLeft = +styles.marginLeft.split('px')[0]; offsets.top -= borderTopWidth - marginTop; offsets.bottom -= borderTopWidth - marginTop; offsets.left -= borderLeftWidth - marginLeft; offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them offsets.marginTop = marginTop; offsets.marginLeft = marginLeft; } if (isIE10 ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { offsets = includeScroll(offsets, parent); } return offsets; } function getViewportOffsetRectRelativeToArtbitraryNode(element) { var html = window.document.documentElement; var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); var width = Math.max(html.clientWidth, window.innerWidth || 0); var height = Math.max(html.clientHeight, window.innerHeight || 0); var scrollTop = getScroll(html); var scrollLeft = getScroll(html, 'left'); var offset = { top: scrollTop - relativeOffset.top + relativeOffset.marginTop, left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, width: width, height: height }; return getClientRect(offset); } /** * Check if the given element is fixed or is inside a fixed parent * @method * @memberof Popper.Utils * @argument {Element} element * @argument {Element} customContainer * @returns {Boolean} answer to "isFixed?" */ function isFixed(element) { var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { return false; } if (getStyleComputedProperty(element, 'position') === 'fixed') { return true; } return isFixed(getParentNode(element)); } /** * Computed the boundaries limits and return them * @method * @memberof Popper.Utils * @param {HTMLElement} popper * @param {HTMLElement} reference * @param {number} padding * @param {HTMLElement} boundariesElement - Element used to define the boundaries * @returns {Object} Coordinates of the boundaries */ function getBoundaries(popper, reference, padding, boundariesElement) { // NOTE: 1 DOM access here var boundaries = { top: 0, left: 0 }; var offsetParent = findCommonOffsetParent(popper, reference); // Handle viewport case if (boundariesElement === 'viewport') { boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent); } else { // Handle other cases based on DOM element used as boundaries var boundariesNode = void 0; if (boundariesElement === 'scrollParent') { boundariesNode = getScrollParent(getParentNode(popper)); if (boundariesNode.nodeName === 'BODY') { boundariesNode = window.document.documentElement; } } else if (boundariesElement === 'window') { boundariesNode = window.document.documentElement; } else { boundariesNode = boundariesElement; } var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent); // In case of HTML, we need a different computation if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { var _getWindowSizes = getWindowSizes(), height = _getWindowSizes.height, width = _getWindowSizes.width; boundaries.top += offsets.top - offsets.marginTop; boundaries.bottom = height + offsets.top; boundaries.left += offsets.left - offsets.marginLeft; boundaries.right = width + offsets.left; } else { // for all the other DOM elements, this one is good boundaries = offsets; } } // Add paddings boundaries.left += padding; boundaries.top += padding; boundaries.right -= padding; boundaries.bottom -= padding; return boundaries; } function getArea(_ref) { var width = _ref.width, height = _ref.height; return width * height; } /** * Utility used to transform the `auto` placement to the placement with more * available space. * @method * @memberof Popper.Utils * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; if (placement.indexOf('auto') === -1) { return placement; } var boundaries = getBoundaries(popper, reference, padding, boundariesElement); var rects = { top: { width: boundaries.width, height: refRect.top - boundaries.top }, right: { width: boundaries.right - refRect.right, height: boundaries.height }, bottom: { width: boundaries.width, height: boundaries.bottom - refRect.bottom }, left: { width: refRect.left - boundaries.left, height: boundaries.height } }; var sortedAreas = Object.keys(rects).map(function (key) { return _extends$1({ key: key }, rects[key], { area: getArea(rects[key]) }); }).sort(function (a, b) { return b.area - a.area; }); var filteredAreas = sortedAreas.filter(function (_ref2) { var width = _ref2.width, height = _ref2.height; return width >= popper.clientWidth && height >= popper.clientHeight; }); var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; var variation = placement.split('-')[1]; return computedPlacement + (variation ? '-' + variation : ''); } /** * Get offsets to the reference element * @method * @memberof Popper.Utils * @param {Object} state * @param {Element} popper - the popper element * @param {Element} reference - the reference element (the popper will be relative to this) * @returns {Object} An object containing the offsets which will be applied to the popper */ function getReferenceOffsets(state, popper, reference) { var commonOffsetParent = findCommonOffsetParent(popper, reference); return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent); } /** * Get the outer sizes of the given element (offset size + margins) * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Object} object containing width and height properties */ function getOuterSizes(element) { var styles = window.getComputedStyle(element); var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom); var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight); var result = { width: element.offsetWidth + y, height: element.offsetHeight + x }; return result; } /** * Get the opposite placement of the given one * @method * @memberof Popper.Utils * @argument {String} placement * @returns {String} flipped placement */ function getOppositePlacement(placement) { var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; return placement.replace(/left|right|bottom|top/g, function (matched) { return hash[matched]; }); } /** * Get offsets to the popper * @method * @memberof Popper.Utils * @param {Object} position - CSS position the Popper will get applied * @param {HTMLElement} popper - the popper element * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) * @param {String} placement - one of the valid placement options * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper */ function getPopperOffsets(popper, referenceOffsets, placement) { placement = placement.split('-')[0]; // Get popper node sizes var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object var popperOffsets = { width: popperRect.width, height: popperRect.height }; // depending by the popper placement we have to compute its offsets slightly differently var isHoriz = ['right', 'left'].indexOf(placement) !== -1; var mainSide = isHoriz ? 'top' : 'left'; var secondarySide = isHoriz ? 'left' : 'top'; var measurement = isHoriz ? 'height' : 'width'; var secondaryMeasurement = !isHoriz ? 'height' : 'width'; popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; if (placement === secondarySide) { popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; } else { popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; } return popperOffsets; } /** * Mimics the `find` method of Array * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function find(arr, check) { // use native find if supported if (Array.prototype.find) { return arr.find(check); } // use `filter` to obtain the same behavior of `find` return arr.filter(check)[0]; } /** * Return the index of the matching object * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function findIndex(arr, prop, value) { // use native findIndex if supported if (Array.prototype.findIndex) { return arr.findIndex(function (cur) { return cur[prop] === value; }); } // use `find` + `indexOf` if `findIndex` isn't supported var match = find(arr, function (obj) { return obj[prop] === value; }); return arr.indexOf(match); } /** * Loop trough the list of modifiers and run them in order, * each of them will then edit the data object. * @method * @memberof Popper.Utils * @param {dataObject} data * @param {Array} modifiers * @param {String} ends - Optional modifier name used as stopper * @returns {dataObject} */ function runModifiers(modifiers, data, ends) { var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); modifiersToRun.forEach(function (modifier) { if (modifier.function) { console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); } var fn = modifier.function || modifier.fn; if (modifier.enabled && isFunction(fn)) { // Add properties to offsets to make them a complete clientRect object // we do this before each modifier to make sure the previous one doesn't // mess with these values data.offsets.popper = getClientRect(data.offsets.popper); data.offsets.reference = getClientRect(data.offsets.reference); data = fn(data, modifier); } }); return data; } /** * Updates the position of the popper, computing the new offsets and applying * the new style.
            * Prefer `scheduleUpdate` over `update` because of performance reasons. * @method * @memberof Popper */ function update() { // if popper is destroyed, don't perform any further update if (this.state.isDestroyed) { return; } var data = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: false, offsets: {} }; // compute reference element offsets data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement` data.originalPlacement = data.placement; // compute the popper offsets data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); data.offsets.popper.position = 'absolute'; // run the modifiers data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback // the other ones will call `onUpdate` callback if (!this.state.isCreated) { this.state.isCreated = true; this.options.onCreate(data); } else { this.options.onUpdate(data); } } /** * Helper used to know if the given modifier is enabled. * @method * @memberof Popper.Utils * @returns {Boolean} */ function isModifierEnabled(modifiers, modifierName) { return modifiers.some(function (_ref) { var name = _ref.name, enabled = _ref.enabled; return enabled && name === modifierName; }); } /** * Get the prefixed supported property name * @method * @memberof Popper.Utils * @argument {String} property (camelCase) * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) */ function getSupportedPropertyName(property) { var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; var upperProp = property.charAt(0).toUpperCase() + property.slice(1); for (var i = 0; i < prefixes.length - 1; i++) { var prefix = prefixes[i]; var toCheck = prefix ? '' + prefix + upperProp : property; if (typeof window.document.body.style[toCheck] !== 'undefined') { return toCheck; } } return null; } /** * Destroy the popper * @method * @memberof Popper */ function destroy() { this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled if (isModifierEnabled(this.modifiers, 'applyStyle')) { this.popper.removeAttribute('x-placement'); this.popper.style.left = ''; this.popper.style.position = ''; this.popper.style.top = ''; this.popper.style[getSupportedPropertyName('transform')] = ''; } this.disableEventListeners(); // remove the popper if user explicity asked for the deletion on destroy // do not use `remove` because IE11 doesn't support it if (this.options.removeOnDestroy) { this.popper.parentNode.removeChild(this.popper); } return this; } function attachToScrollParents(scrollParent, event, callback, scrollParents) { var isBody = scrollParent.nodeName === 'BODY'; var target = isBody ? window : scrollParent; target.addEventListener(event, callback, { passive: true }); if (!isBody) { attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); } scrollParents.push(target); } /** * Setup needed event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function setupEventListeners(reference, options, state, updateBound) { // Resize event listener on window state.updateBound = updateBound; window.addEventListener('resize', state.updateBound, { passive: true }); // Scroll event listener on scroll parents var scrollElement = getScrollParent(reference); attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); state.scrollElement = scrollElement; state.eventsEnabled = true; return state; } /** * It will add resize/scroll events and start recalculating * position of the popper element when they are triggered. * @method * @memberof Popper */ function enableEventListeners() { if (!this.state.eventsEnabled) { this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); } } /** * Remove event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function removeEventListeners(reference, state) { // Remove resize event listener on window window.removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents state.scrollParents.forEach(function (target) { target.removeEventListener('scroll', state.updateBound); }); // Reset state state.updateBound = null; state.scrollParents = []; state.scrollElement = null; state.eventsEnabled = false; return state; } /** * It will remove resize/scroll events and won't recalculate popper position * when they are triggered. It also won't trigger onUpdate callback anymore, * unless you call `update` method manually. * @method * @memberof Popper */ function disableEventListeners() { if (this.state.eventsEnabled) { window.cancelAnimationFrame(this.scheduleUpdate); this.state = removeEventListeners(this.reference, this.state); } } /** * Tells if a given input is a number * @method * @memberof Popper.Utils * @param {*} input to check * @return {Boolean} */ function isNumeric(n) { return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); } /** * Set the style to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the style to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setStyles(element, styles) { Object.keys(styles).forEach(function (prop) { var unit = ''; // add unit if the value is numeric and is one of the following if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { unit = 'px'; } element.style[prop] = styles[prop] + unit; }); } /** * Set the attributes to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the attributes to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setAttributes(element, attributes) { Object.keys(attributes).forEach(function (prop) { var value = attributes[prop]; if (value !== false) { element.setAttribute(prop, attributes[prop]); } else { element.removeAttribute(prop); } }); } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} data.styles - List of style properties - values to apply to popper element * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element * @argument {Object} options - Modifiers configuration and options * @returns {Object} The same data object */ function applyStyle(data) { // any property present in `data.styles` will be applied to the popper, // in this way we can make the 3rd party modifiers add custom styles to it // Be aware, modifiers could override the properties defined in the previous // lines of this modifier! setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper, // they will be set as HTML attributes of the element setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties if (data.arrowElement && Object.keys(data.arrowStyles).length) { setStyles(data.arrowElement, data.arrowStyles); } return data; } /** * Set the x-placement attribute before everything else because it could be used * to add margins to the popper margins needs to be calculated to get the * correct popper offsets. * @method * @memberof Popper.modifiers * @param {HTMLElement} reference - The reference element used to position the popper * @param {HTMLElement} popper - The HTML element used as popper. * @param {Object} options - Popper.js options */ function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { // compute reference element offsets var referenceOffsets = getReferenceOffsets(state, popper, reference); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because // without the position applied we can't guarantee correct computations setStyles(popper, { position: 'absolute' }); return options; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeStyle(data, options) { var x = options.x, y = options.y; var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { return modifier.name === 'applyStyle'; }).gpuAcceleration; if (legacyGpuAccelerationOption !== undefined) { console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); } var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; var offsetParent = getOffsetParent(data.instance.popper); var offsetParentRect = getBoundingClientRect(offsetParent); // Styles var styles = { position: popper.position }; // floor sides to avoid blurry text var offsets = { left: Math.floor(popper.left), top: Math.floor(popper.top), bottom: Math.floor(popper.bottom), right: Math.floor(popper.right) }; var sideA = x === 'bottom' ? 'top' : 'bottom'; var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported, // we use `translate3d` to apply the position to the popper we // automatically use the supported prefixed version if needed var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?) // If the content of the popper grows once it's been positioned, it // may happen that the popper gets misplaced because of the new content // overflowing its reference element // To avoid this problem, we provide two options (x and y), which allow // the consumer to define the offset origin. // If we position a popper on top of a reference element, we can set // `x` to `top` to make the popper grow towards its top instead of // its bottom. var left = void 0, top = void 0; if (sideA === 'bottom') { top = -offsetParentRect.height + offsets.bottom; } else { top = offsets.top; } if (sideB === 'right') { left = -offsetParentRect.width + offsets.right; } else { left = offsets.left; } if (gpuAcceleration && prefixedProperty) { styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; styles[sideA] = 0; styles[sideB] = 0; styles.willChange = 'transform'; } else { // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties var invertTop = sideA === 'bottom' ? -1 : 1; var invertLeft = sideB === 'right' ? -1 : 1; styles[sideA] = top * invertTop; styles[sideB] = left * invertLeft; styles.willChange = sideA + ', ' + sideB; } // Attributes var attributes = { 'x-placement': data.placement }; // Update `data` attributes, styles and arrowStyles data.attributes = _extends$1({}, attributes, data.attributes); data.styles = _extends$1({}, styles, data.styles); data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles); return data; } /** * Helper used to know if the given modifier depends from another one.
            * It checks if the needed modifier is listed and enabled. * @method * @memberof Popper.Utils * @param {Array} modifiers - list of modifiers * @param {String} requestingName - name of requesting modifier * @param {String} requestedName - name of requested modifier * @returns {Boolean} */ function isModifierRequired(modifiers, requestingName, requestedName) { var requesting = find(modifiers, function (_ref) { var name = _ref.name; return name === requestingName; }); var isRequired = !!requesting && modifiers.some(function (modifier) { return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; }); if (!isRequired) { var _requesting = '`' + requestingName + '`'; var requested = '`' + requestedName + '`'; console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); } return isRequired; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function arrow(data, options) { // arrow depends on keepTogether in order to work if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { return data; } var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector if (typeof arrowElement === 'string') { arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier if (!arrowElement) { return data; } } else { // if the arrowElement isn't a query selector we must check that the // provided DOM node is child of its popper node if (!data.instance.popper.contains(arrowElement)) { console.warn('WARNING: `arrow.element` must be child of its popper element!'); return data; } } var placement = data.placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isVertical = ['left', 'right'].indexOf(placement) !== -1; var len = isVertical ? 'height' : 'width'; var sideCapitalized = isVertical ? 'Top' : 'Left'; var side = sideCapitalized.toLowerCase(); var altSide = isVertical ? 'left' : 'top'; var opSide = isVertical ? 'bottom' : 'right'; var arrowElementSize = getOuterSizes(arrowElement)[len]; // // extends keepTogether behavior making sure the popper and its // reference have enough pixels in conjuction // // top/left side if (reference[opSide] - arrowElementSize < popper[side]) { data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); } // bottom/right side if (reference[side] + arrowElementSize > popper[opSide]) { data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; } // compute center of the popper var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets // take popper margin in account because we don't have this info available var popperMarginSide = getStyleComputedProperty(data.instance.popper, 'margin' + sideCapitalized).replace('px', ''); var sideValue = center - getClientRect(data.offsets.popper)[side] - popperMarginSide; // prevent arrowElement from being placed not contiguously to its popper sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); data.arrowElement = arrowElement; data.offsets.arrow = {}; data.offsets.arrow[side] = Math.round(sideValue); data.offsets.arrow[altSide] = ''; // make sure to unset any eventual altSide value from the DOM node return data; } /** * Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation */ function getOppositeVariation(variation) { if (variation === 'end') { return 'start'; } else if (variation === 'start') { return 'end'; } return variation; } /** * List of accepted placements to use as values of the `placement` option.
            * Valid placements are: * - `auto` * - `top` * - `right` * - `bottom` * - `left` * * Each placement can have a variation from this list: * - `-start` * - `-end` * * Variations are interpreted easily if you think of them as the left to right * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` * is right.
            * Vertically (`left` and `right`), `start` is top and `end` is bottom. * * Some valid examples are: * - `top-end` (on top of reference, right aligned) * - `right-start` (on right of reference, top aligned) * - `bottom` (on bottom, centered) * - `auto-right` (on the side with more space available, alignment depends by placement) * * @static * @type {Array} * @enum {String} * @readonly * @method placements * @memberof Popper */ var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end` var validPlacements = placements.slice(3); /** * Given an initial placement, returns all the subsequent placements * clockwise (or counter-clockwise). * * @method * @memberof Popper.Utils * @argument {String} placement - A valid placement (it accepts variations) * @argument {Boolean} counter - Set to true to walk the placements counterclockwise * @returns {Array} placements including their variations */ function clockwise(placement) { var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var index = validPlacements.indexOf(placement); var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); return counter ? arr.reverse() : arr; } var BEHAVIORS = { FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise' }; /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function flip(data, options) { // if `inner` modifier is enabled, we can't use the `flip` modifier if (isModifierEnabled(data.instance.modifiers, 'inner')) { return data; } if (data.flipped && data.placement === data.originalPlacement) { // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides return data; } var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement); var placement = data.placement.split('-')[0]; var placementOpposite = getOppositePlacement(placement); var variation = data.placement.split('-')[1] || ''; var flipOrder = []; switch (options.behavior) { case BEHAVIORS.FLIP: flipOrder = [placement, placementOpposite]; break; case BEHAVIORS.CLOCKWISE: flipOrder = clockwise(placement); break; case BEHAVIORS.COUNTERCLOCKWISE: flipOrder = clockwise(placement, true); break; default: flipOrder = options.behavior; } flipOrder.forEach(function (step, index) { if (placement !== step || flipOrder.length === index + 1) { return data; } placement = data.placement.split('-')[0]; placementOpposite = getOppositePlacement(placement); var popperOffsets = data.offsets.popper; var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here var floor = Math.floor; var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; var flippedVariation = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); if (overlapsRef || overflowsBoundaries || flippedVariation) { // this boolean to detect any flip loop data.flipped = true; if (overlapsRef || overflowsBoundaries) { placement = flipOrder[index + 1]; } if (flippedVariation) { variation = getOppositeVariation(variation); } data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with // any additional property we may add in the future data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); data = runModifiers(data.instance.modifiers, data, 'flip'); } }); return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function keepTogether(data) { var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var placement = data.placement.split('-')[0]; var floor = Math.floor; var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; var side = isVertical ? 'right' : 'bottom'; var opSide = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; if (popper[side] < floor(reference[opSide])) { data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; } if (popper[opSide] > floor(reference[side])) { data.offsets.popper[opSide] = floor(reference[side]); } return data; } /** * Converts a string containing value + unit into a px value number * @function * @memberof {modifiers~offset} * @private * @argument {String} str - Value + unit string * @argument {String} measurement - `height` or `width` * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @returns {Number|String} * Value in pixels, or original string if no values were extracted */ function toValue(str, measurement, popperOffsets, referenceOffsets) { // separate value from unit var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); var value = +split[1]; var unit = split[2]; // If it's not a number it's an operator, I guess if (!value) { return str; } if (unit.indexOf('%') === 0) { var element = void 0; switch (unit) { case '%p': element = popperOffsets; break; case '%': case '%r': default: element = referenceOffsets; } var rect = getClientRect(element); return rect[measurement] / 100 * value; } else if (unit === 'vh' || unit === 'vw') { // if is a vh or vw, we calculate the size based on the viewport var size = void 0; if (unit === 'vh') { size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); } else { size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); } return size / 100 * value; } else { // if is an explicit pixel unit, we get rid of the unit and keep the value // if is an implicit unit, it's px, and we return just the value return value; } } /** * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. * @function * @memberof {modifiers~offset} * @private * @argument {String} offset * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @argument {String} basePlacement * @returns {Array} a two cells array with x and y offsets in numbers */ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width // in this way the first offset will use an axis and the second one // will use the other one var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands // The regex addresses values with the plus or minus sign in front (+10, -20, etc) var fragments = offset.split(/(\+|\-)/).map(function (frag) { return frag.trim(); }); // Detect if the offset string contains a pair of values or a single one // they could be separated by comma or space var divider = fragments.indexOf(find(fragments, function (frag) { return frag.search(/,|\s/) !== -1; })); if (fragments[divider] && fragments[divider].indexOf(',') === -1) { console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); } // If divider is found, we divide the list of values and operands to divide // them by ofset X and Y. var splitRegex = /\s*,\s*|\s+/; var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations ops = ops.map(function (op, index) { // Most of the units rely on the orientation of the popper var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; var mergeWithPrevious = false; return op // This aggregates any `+` or `-` sign that aren't considered operators // e.g.: 10 + +5 => [10, +, +5] .reduce(function (a, b) { if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { a[a.length - 1] = b; mergeWithPrevious = true; return a; } else if (mergeWithPrevious) { a[a.length - 1] += b; mergeWithPrevious = false; return a; } else { return a.concat(b); } }, []) // Here we convert the string values into number values (in px) .map(function (str) { return toValue(str, measurement, popperOffsets, referenceOffsets); }); }); // Loop trough the offsets arrays and execute the operations ops.forEach(function (op, index) { op.forEach(function (frag, index2) { if (isNumeric(frag)) { offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); } }); }); return offsets; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @argument {Number|String} options.offset=0 * The offset value as described in the modifier description * @returns {Object} The data object, properly modified */ function offset(data, _ref) { var offset = _ref.offset; var placement = data.placement, _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var basePlacement = placement.split('-')[0]; var offsets = void 0; if (isNumeric(+offset)) { offsets = [+offset, 0]; } else { offsets = parseOffset(offset, popper, reference, basePlacement); } if (basePlacement === 'left') { popper.top += offsets[0]; popper.left -= offsets[1]; } else if (basePlacement === 'right') { popper.top += offsets[0]; popper.left += offsets[1]; } else if (basePlacement === 'top') { popper.left += offsets[0]; popper.top -= offsets[1]; } else if (basePlacement === 'bottom') { popper.left += offsets[0]; popper.top += offsets[1]; } data.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function preventOverflow(data, options) { var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to // go one step up and use the next offsetParent as reference to // avoid to make this modifier completely useless and look like broken if (data.instance.reference === boundariesElement) { boundariesElement = getOffsetParent(boundariesElement); } var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement); options.boundaries = boundaries; var order = options.priority; var popper = data.offsets.popper; var check = { primary: function primary(placement) { var value = popper[placement]; if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { value = Math.max(popper[placement], boundaries[placement]); } return defineProperty({}, placement, value); }, secondary: function secondary(placement) { var mainSide = placement === 'right' ? 'left' : 'top'; var value = popper[mainSide]; if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); } return defineProperty({}, mainSide, value); } }; order.forEach(function (placement) { var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; popper = _extends$1({}, popper, check[side](placement)); }); data.offsets.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function shift(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier if (shiftvariation) { var _data$offsets = data.offsets, reference = _data$offsets.reference, popper = _data$offsets.popper; var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; var side = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; var shiftOffsets = { start: defineProperty({}, side, reference[side]), end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) }; data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]); } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function hide(data) { if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { return data; } var refRect = data.offsets.reference; var bound = find(data.instance.modifiers, function (modifier) { return modifier.name === 'preventOverflow'; }).boundaries; if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === true) { return data; } data.hide = true; data.attributes['x-out-of-boundaries'] = ''; } else { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === false) { return data; } data.hide = false; data.attributes['x-out-of-boundaries'] = false; } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function inner(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); data.placement = getOppositePlacement(placement); data.offsets.popper = getClientRect(popper); return data; } /** * Modifier function, each modifier can have a function of this type assigned * to its `fn` property.
            * These functions will be called on each update, this means that you must * make sure they are performant enough to avoid performance bottlenecks. * * @function ModifierFn * @argument {dataObject} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {dataObject} The data object, properly modified */ /** * Modifiers are plugins used to alter the behavior of your poppers.
            * Popper.js uses a set of 9 modifiers to provide all the basic functionalities * needed by the library. * * Usually you don't want to override the `order`, `fn` and `onLoad` props. * All the other properties are configurations that could be tweaked. * @namespace modifiers */ var modifiers = { /** * Modifier used to shift the popper on the start or end of its reference * element.
            * It will read the variation of the `placement` property.
            * It can be one either `-end` or `-start`. * @memberof modifiers * @inner */ shift: { /** @prop {number} order=100 - Index used to define the order of execution */ order: 100, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: shift }, /** * The `offset` modifier can shift your popper on both its axis. * * It accepts the following units: * - `px` or unitless, interpreted as pixels * - `%` or `%r`, percentage relative to the length of the reference element * - `%p`, percentage relative to the length of the popper element * - `vw`, CSS viewport width unit * - `vh`, CSS viewport height unit * * For length is intended the main axis relative to the placement of the popper.
            * This means that if the placement is `top` or `bottom`, the length will be the * `width`. In case of `left` or `right`, it will be the height. * * You can provide a single value (as `Number` or `String`), or a pair of values * as `String` divided by a comma or one (or more) white spaces.
            * The latter is a deprecated method because it leads to confusion and will be * removed in v2.
            * Additionally, it accepts additions and subtractions between different units. * Note that multiplications and divisions aren't supported. * * Valid examples are: * ``` * 10 * '10%' * '10, 10' * '10%, 10' * '10 + 10%' * '10 - 5vh + 3%' * '-10px + 5vh, 5px - 6%' * ``` * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap * > with their reference element, unfortunately, you will have to disable the `flip` modifier. * > More on this [reading this issue](https://github.com/FezVrasta/popper.js/issues/373) * * @memberof modifiers * @inner */ offset: { /** @prop {number} order=200 - Index used to define the order of execution */ order: 200, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: offset, /** @prop {Number|String} offset=0 * The offset value as described in the modifier description */ offset: 0 }, /** * Modifier used to prevent the popper from being positioned outside the boundary. * * An scenario exists where the reference itself is not within the boundaries.
            * We can say it has "escaped the boundaries" — or just "escaped".
            * In this case we need to decide whether the popper should either: * * - detach from the reference and remain "trapped" in the boundaries, or * - if it should ignore the boundary and "escape with its reference" * * When `escapeWithReference` is set to`true` and reference is completely * outside its boundaries, the popper will overflow (or completely leave) * the boundaries in order to remain attached to the edge of the reference. * * @memberof modifiers * @inner */ preventOverflow: { /** @prop {number} order=300 - Index used to define the order of execution */ order: 300, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: preventOverflow, /** * @prop {Array} [priority=['left','right','top','bottom']] * Popper will try to prevent overflow following these priorities by default, * then, it could overflow on the left and on top of the `boundariesElement` */ priority: ['left', 'right', 'top', 'bottom'], /** * @prop {number} padding=5 * Amount of pixel used to define a minimum distance between the boundaries * and the popper this makes sure the popper has always a little padding * between the edges of its container */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='scrollParent' * Boundaries used by the modifier, can be `scrollParent`, `window`, * `viewport` or any DOM element. */ boundariesElement: 'scrollParent' }, /** * Modifier used to make sure the reference and its popper stay near eachothers * without leaving any gap between the two. Expecially useful when the arrow is * enabled and you want to assure it to point to its reference element. * It cares only about the first axis, you can still have poppers with margin * between the popper and its reference element. * @memberof modifiers * @inner */ keepTogether: { /** @prop {number} order=400 - Index used to define the order of execution */ order: 400, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: keepTogether }, /** * This modifier is used to move the `arrowElement` of the popper to make * sure it is positioned between the reference element and its popper element. * It will read the outer size of the `arrowElement` node to detect how many * pixels of conjuction are needed. * * It has no effect if no `arrowElement` is provided. * @memberof modifiers * @inner */ arrow: { /** @prop {number} order=500 - Index used to define the order of execution */ order: 500, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: arrow, /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ element: '[x-arrow]' }, /** * Modifier used to flip the popper's placement when it starts to overlap its * reference element. * * Requires the `preventOverflow` modifier before it in order to work. * * **NOTE:** this modifier will interrupt the current update cycle and will * restart it if it detects the need to flip the placement. * @memberof modifiers * @inner */ flip: { /** @prop {number} order=600 - Index used to define the order of execution */ order: 600, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: flip, /** * @prop {String|Array} behavior='flip' * The behavior used to change the popper's placement. It can be one of * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid * placements (with optional variations). */ behavior: 'flip', /** * @prop {number} padding=5 * The popper will flip if it hits the edges of the `boundariesElement` */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='viewport' * The element which will define the boundaries of the popper position, * the popper will never be placed outside of the defined boundaries * (except if keepTogether is enabled) */ boundariesElement: 'viewport' }, /** * Modifier used to make the popper flow toward the inner of the reference element. * By default, when this modifier is disabled, the popper will be placed outside * the reference element. * @memberof modifiers * @inner */ inner: { /** @prop {number} order=700 - Index used to define the order of execution */ order: 700, /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ enabled: false, /** @prop {ModifierFn} */ fn: inner }, /** * Modifier used to hide the popper when its reference element is outside of the * popper boundaries. It will set a `x-out-of-boundaries` attribute which can * be used to hide with a CSS selector the popper when its reference is * out of boundaries. * * Requires the `preventOverflow` modifier before it in order to work. * @memberof modifiers * @inner */ hide: { /** @prop {number} order=800 - Index used to define the order of execution */ order: 800, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: hide }, /** * Computes the style that will be applied to the popper element to gets * properly positioned. * * Note that this modifier will not touch the DOM, it just prepares the styles * so that `applyStyle` modifier can apply it. This separation is useful * in case you need to replace `applyStyle` with a custom implementation. * * This modifier has `850` as `order` value to maintain backward compatibility * with previous versions of Popper.js. Expect the modifiers ordering method * to change in future major versions of the library. * * @memberof modifiers * @inner */ computeStyle: { /** @prop {number} order=850 - Index used to define the order of execution */ order: 850, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: computeStyle, /** * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3d transformation to position the popper. * Otherwise, it will use the `top` and `left` properties. */ gpuAcceleration: true, /** * @prop {string} [x='bottom'] * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. * Change this if your popper should grow in a direction different from `bottom` */ x: 'bottom', /** * @prop {string} [x='left'] * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. * Change this if your popper should grow in a direction different from `right` */ y: 'right' }, /** * Applies the computed styles to the popper element. * * All the DOM manipulations are limited to this modifier. This is useful in case * you want to integrate Popper.js inside a framework or view library and you * want to delegate all the DOM manipulations to it. * * Note that if you disable this modifier, you must make sure the popper element * has its position set to `absolute` before Popper.js can do its work! * * Just disable this modifier and define you own to achieve the desired effect. * * @memberof modifiers * @inner */ applyStyle: { /** @prop {number} order=900 - Index used to define the order of execution */ order: 900, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: applyStyle, /** @prop {Function} */ onLoad: applyStyleOnLoad, /** * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3d transformation to position the popper. * Otherwise, it will use the `top` and `left` properties. */ gpuAcceleration: undefined } }; /** * The `dataObject` is an object containing all the informations used by Popper.js * this object get passed to modifiers and to the `onCreate` and `onUpdate` callbacks. * @name dataObject * @property {Object} data.instance The Popper.js instance * @property {String} data.placement Placement applied to popper * @property {String} data.originalPlacement Placement originally defined on init * @property {Boolean} data.flipped True if popper has been flipped by flip modifier * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper. * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier * @property {Object} data.styles Any CSS property defined here will be applied to the popper, it expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow, it expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.boundaries Offsets of the popper boundaries * @property {Object} data.offsets The measurements of popper, reference and arrow elements. * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 */ /** * Default options provided to Popper.js constructor.
            * These can be overriden using the `options` argument of Popper.js.
            * To override an option, simply pass as 3rd argument an object with the same * structure of this object, example: * ``` * new Popper(ref, pop, { * modifiers: { * preventOverflow: { enabled: false } * } * }) * ``` * @type {Object} * @static * @memberof Popper */ var Defaults = { /** * Popper's placement * @prop {Popper.placements} placement='bottom' */ placement: 'bottom', /** * Whether events (resize, scroll) are initially enabled * @prop {Boolean} eventsEnabled=true */ eventsEnabled: true, /** * Set to true if you want to automatically remove the popper when * you call the `destroy` method. * @prop {Boolean} removeOnDestroy=false */ removeOnDestroy: false, /** * Callback called when the popper is created.
            * By default, is set to no-op.
            * Access Popper.js instance with `data.instance`. * @prop {onCreate} */ onCreate: function onCreate() {}, /** * Callback called when the popper is updated, this callback is not called * on the initialization/creation of the popper, but only on subsequent * updates.
            * By default, is set to no-op.
            * Access Popper.js instance with `data.instance`. * @prop {onUpdate} */ onUpdate: function onUpdate() {}, /** * List of modifiers used to modify the offsets before they are applied to the popper. * They provide most of the functionalities of Popper.js * @prop {modifiers} */ modifiers: modifiers }; /** * @callback onCreate * @param {dataObject} data */ /** * @callback onUpdate * @param {dataObject} data */ // Utils // Methods var Popper = function () { /** * Create a new Popper.js instance * @class Popper * @param {HTMLElement|referenceObject} reference - The reference element used to position the popper * @param {HTMLElement} popper - The HTML element used as popper. * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) * @return {Object} instance - The generated Popper.js instance */ function Popper(reference, popper) { var _this = this; var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; classCallCheck(this, Popper); this.scheduleUpdate = function () { return requestAnimationFrame(_this.update); }; // make update() debounced, so that it only runs at most once-per-tick this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it this.options = _extends$1({}, Popper.Defaults, options); // init state this.state = { isDestroyed: false, isCreated: false, scrollParents: [] }; // get reference and popper elements (allow jQuery wrappers) this.reference = reference.jquery ? reference[0] : reference; this.popper = popper.jquery ? popper[0] : popper; // Deep merge modifiers options this.options.modifiers = {}; Object.keys(_extends$1({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { _this.options.modifiers[name] = _extends$1({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); }); // Refactoring modifiers' list (Object => Array) this.modifiers = Object.keys(this.options.modifiers).map(function (name) { return _extends$1({ name: name }, _this.options.modifiers[name]); }) // sort the modifiers by order .sort(function (a, b) { return a.order - b.order; }); // modifiers have the ability to execute arbitrary code when Popper.js get inited // such code is executed in the same order of its modifier // they could add new properties to their options configuration // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! this.modifiers.forEach(function (modifierOptions) { if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); } }); // fire the first update to position the popper in the right place this.update(); var eventsEnabled = this.options.eventsEnabled; if (eventsEnabled) { // setup event listeners, they will take care of update the position in specific situations this.enableEventListeners(); } this.state.eventsEnabled = eventsEnabled; } // We can't use class properties because they don't get listed in the // class prototype and break stuff like Sinon stubs createClass$1(Popper, [{ key: 'update', value: function update$$1() { return update.call(this); } }, { key: 'destroy', value: function destroy$$1() { return destroy.call(this); } }, { key: 'enableEventListeners', value: function enableEventListeners$$1() { return enableEventListeners.call(this); } }, { key: 'disableEventListeners', value: function disableEventListeners$$1() { return disableEventListeners.call(this); } /** * Schedule an update, it will run on the next UI update available * @method scheduleUpdate * @memberof Popper */ /** * Collection of utilities useful when writing custom modifiers. * Starting from version 1.7, this method is available only if you * include `popper-utils.js` before `popper.js`. * * **DEPRECATION**: This way to access PopperUtils is deprecated * and will be removed in v2! Use the PopperUtils module directly instead. * Due to the high instability of the methods contained in Utils, we can't * guarantee them to follow semver. Use them at your own risk! * @static * @private * @type {Object} * @deprecated since version 1.8 * @member Utils * @memberof Popper */ }]); return Popper; }(); /** * The `referenceObject` is an object that provides an interface compatible with Popper.js * and lets you use it as replacement of a real DOM node.
            * You can use this method to position a popper relatively to a set of coordinates * in case you don't have a DOM node to use as reference. * * ``` * new Popper(referenceObject, popperNode); * ``` * * NB: This feature isn't supported in Internet Explorer 10 * @name referenceObject * @property {Function} data.getBoundingClientRect * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. * @property {number} data.clientWidth * An ES6 getter that will return the width of the virtual reference element. * @property {number} data.clientHeight * An ES6 getter that will return the height of the virtual reference element. */ Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; Popper.placements = placements; Popper.Defaults = Defaults; /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): dropdown.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Dropdown = function () { /** * Check for Popper dependency * Popper - https://popper.js.org */ if (typeof Popper === 'undefined') { throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)'); } /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'dropdown'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.dropdown'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); var Event = { HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, CLICK: "click" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY, KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY }; var ClassName = { DISABLED: 'disabled', SHOW: 'show', DROPUP: 'dropup', MENURIGHT: 'dropdown-menu-right', MENULEFT: 'dropdown-menu-left' }; var Selector = { DATA_TOGGLE: '[data-toggle="dropdown"]', FORM_CHILD: '.dropdown form', MENU: '.dropdown-menu', NAVBAR_NAV: '.navbar-nav', VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled)' }; var AttachmentMap = { TOP: 'top-start', TOPEND: 'top-end', BOTTOM: 'bottom-start', BOTTOMEND: 'bottom-end' }; var Default = { offset: 0, flip: true }; var DefaultType = { offset: '(number|string|function)', flip: 'boolean' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Dropdown = /*#__PURE__*/ function () { function Dropdown(element, config) { this._element = element; this._popper = null; this._config = this._getConfig(config); this._menu = this._getMenuElement(); this._inNavbar = this._detectNavbar(); this._addEventListeners(); } // getters var _proto = Dropdown.prototype; // public _proto.toggle = function toggle() { if (this._element.disabled || $(this._element).hasClass(ClassName.DISABLED)) { return; } var parent = Dropdown._getParentFromElement(this._element); var isActive = $(this._menu).hasClass(ClassName.SHOW); Dropdown._clearMenus(); if (isActive) { return; } var relatedTarget = { relatedTarget: this._element }; var showEvent = $.Event(Event.SHOW, relatedTarget); $(parent).trigger(showEvent); if (showEvent.isDefaultPrevented()) { return; } var element = this._element; // for dropup with alignment we use the parent as popper container if ($(parent).hasClass(ClassName.DROPUP)) { if ($(this._menu).hasClass(ClassName.MENULEFT) || $(this._menu).hasClass(ClassName.MENURIGHT)) { element = parent; } } this._popper = new Popper(element, this._menu, this._getPopperConfig()); // if this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; // only needed because of broken event delegation on iOS // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html if ('ontouchstart' in document.documentElement && !$(parent).closest(Selector.NAVBAR_NAV).length) { $('body').children().on('mouseover', null, $.noop); } this._element.focus(); this._element.setAttribute('aria-expanded', true); $(this._menu).toggleClass(ClassName.SHOW); $(parent).toggleClass(ClassName.SHOW).trigger($.Event(Event.SHOWN, relatedTarget)); }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); $(this._element).off(EVENT_KEY); this._element = null; this._menu = null; if (this._popper !== null) { this._popper.destroy(); } this._popper = null; }; _proto.update = function update() { this._inNavbar = this._detectNavbar(); if (this._popper !== null) { this._popper.scheduleUpdate(); } }; // private _proto._addEventListeners = function _addEventListeners() { var _this = this; $(this._element).on(Event.CLICK, function (event) { event.preventDefault(); event.stopPropagation(); _this.toggle(); }); }; _proto._getConfig = function _getConfig(config) { config = $.extend({}, this.constructor.Default, $(this._element).data(), config); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getMenuElement = function _getMenuElement() { if (!this._menu) { var parent = Dropdown._getParentFromElement(this._element); this._menu = $(parent).find(Selector.MENU)[0]; } return this._menu; }; _proto._getPlacement = function _getPlacement() { var $parentDropdown = $(this._element).parent(); var placement = AttachmentMap.BOTTOM; // Handle dropup if ($parentDropdown.hasClass(ClassName.DROPUP)) { placement = AttachmentMap.TOP; if ($(this._menu).hasClass(ClassName.MENURIGHT)) { placement = AttachmentMap.TOPEND; } } else if ($(this._menu).hasClass(ClassName.MENURIGHT)) { placement = AttachmentMap.BOTTOMEND; } return placement; }; _proto._detectNavbar = function _detectNavbar() { return $(this._element).closest('.navbar').length > 0; }; _proto._getPopperConfig = function _getPopperConfig() { var _this2 = this; var offsetConf = {}; if (typeof this._config.offset === 'function') { offsetConf.fn = function (data) { data.offsets = $.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); return data; }; } else { offsetConf.offset = this._config.offset; } var popperConfig = { placement: this._getPlacement(), modifiers: { offset: offsetConf, flip: { enabled: this._config.flip } } // Disable Popper.js for Dropdown in Navbar }; if (this._inNavbar) { popperConfig.modifiers.applyStyle = { enabled: !this._inNavbar }; } return popperConfig; }; // static Dropdown._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); var _config = typeof config === 'object' ? config : null; if (!data) { data = new Dropdown(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new Error("No method named \"" + config + "\""); } data[config](); } }); }; Dropdown._clearMenus = function _clearMenus(event) { if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { return; } var toggles = $.makeArray($(Selector.DATA_TOGGLE)); for (var i = 0; i < toggles.length; i++) { var parent = Dropdown._getParentFromElement(toggles[i]); var context = $(toggles[i]).data(DATA_KEY); var relatedTarget = { relatedTarget: toggles[i] }; if (!context) { continue; } var dropdownMenu = context._menu; if (!$(parent).hasClass(ClassName.SHOW)) { continue; } if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) { continue; } var hideEvent = $.Event(Event.HIDE, relatedTarget); $(parent).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { continue; } // if this is a touch-enabled device we remove the extra // empty mouseover listeners we added for iOS support if ('ontouchstart' in document.documentElement) { $('body').children().off('mouseover', null, $.noop); } toggles[i].setAttribute('aria-expanded', 'false'); $(dropdownMenu).removeClass(ClassName.SHOW); $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget)); } }; Dropdown._getParentFromElement = function _getParentFromElement(element) { var parent; var selector = Util.getSelectorFromElement(element); if (selector) { parent = $(selector)[0]; } return parent || element.parentNode; }; Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { if (!REGEXP_KEYDOWN.test(event.which) || /button/i.test(event.target.tagName) && event.which === SPACE_KEYCODE || /input|textarea/i.test(event.target.tagName)) { return; } event.preventDefault(); event.stopPropagation(); if (this.disabled || $(this).hasClass(ClassName.DISABLED)) { return; } var parent = Dropdown._getParentFromElement(this); var isActive = $(parent).hasClass(ClassName.SHOW); if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { if (event.which === ESCAPE_KEYCODE) { var toggle = $(parent).find(Selector.DATA_TOGGLE)[0]; $(toggle).trigger('focus'); } $(this).trigger('click'); return; } var items = $(parent).find(Selector.VISIBLE_ITEMS).get(); if (!items.length) { return; } var index = items.indexOf(event.target); if (event.which === ARROW_UP_KEYCODE && index > 0) { // up index--; } if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { // down index++; } if (index < 0) { index = 0; } items[index].focus(); }; createClass(Dropdown, null, [{ key: "VERSION", get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }, { key: "DefaultType", get: function get() { return DefaultType; } }]); return Dropdown; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { event.preventDefault(); event.stopPropagation(); Dropdown._jQueryInterface.call($(this), 'toggle'); }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) { e.stopPropagation(); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Dropdown._jQueryInterface; $.fn[NAME].Constructor = Dropdown; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Dropdown._jQueryInterface; }; return Dropdown; }($, Popper); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): modal.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Modal = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'modal'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.modal'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 300; var BACKDROP_TRANSITION_DURATION = 150; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key var Default = { backdrop: true, keyboard: true, focus: true, show: true }; var DefaultType = { backdrop: '(boolean|string)', keyboard: 'boolean', focus: 'boolean', show: 'boolean' }; var Event = { HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, RESIZE: "resize" + EVENT_KEY, CLICK_DISMISS: "click.dismiss" + EVENT_KEY, KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY, MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY, MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName = { SCROLLBAR_MEASURER: 'modal-scrollbar-measure', BACKDROP: 'modal-backdrop', OPEN: 'modal-open', FADE: 'fade', SHOW: 'show' }; var Selector = { DIALOG: '.modal-dialog', DATA_TOGGLE: '[data-toggle="modal"]', DATA_DISMISS: '[data-dismiss="modal"]', FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', STICKY_CONTENT: '.sticky-top', NAVBAR_TOGGLER: '.navbar-toggler' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Modal = /*#__PURE__*/ function () { function Modal(element, config) { this._config = this._getConfig(config); this._element = element; this._dialog = $(element).find(Selector.DIALOG)[0]; this._backdrop = null; this._isShown = false; this._isBodyOverflowing = false; this._ignoreBackdropClick = false; this._originalBodyPadding = 0; this._scrollbarWidth = 0; } // getters var _proto = Modal.prototype; // public _proto.toggle = function toggle(relatedTarget) { return this._isShown ? this.hide() : this.show(relatedTarget); }; _proto.show = function show(relatedTarget) { var _this = this; if (this._isTransitioning || this._isShown) { return; } if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) { this._isTransitioning = true; } var showEvent = $.Event(Event.SHOW, { relatedTarget: relatedTarget }); $(this._element).trigger(showEvent); if (this._isShown || showEvent.isDefaultPrevented()) { return; } this._isShown = true; this._checkScrollbar(); this._setScrollbar(); this._adjustDialog(); $(document.body).addClass(ClassName.OPEN); this._setEscapeEvent(); this._setResizeEvent(); $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) { return _this.hide(event); }); $(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () { $(_this._element).one(Event.MOUSEUP_DISMISS, function (event) { if ($(event.target).is(_this._element)) { _this._ignoreBackdropClick = true; } }); }); this._showBackdrop(function () { return _this._showElement(relatedTarget); }); }; _proto.hide = function hide(event) { var _this2 = this; if (event) { event.preventDefault(); } if (this._isTransitioning || !this._isShown) { return; } var hideEvent = $.Event(Event.HIDE); $(this._element).trigger(hideEvent); if (!this._isShown || hideEvent.isDefaultPrevented()) { return; } this._isShown = false; var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE); if (transition) { this._isTransitioning = true; } this._setEscapeEvent(); this._setResizeEvent(); $(document).off(Event.FOCUSIN); $(this._element).removeClass(ClassName.SHOW); $(this._element).off(Event.CLICK_DISMISS); $(this._dialog).off(Event.MOUSEDOWN_DISMISS); if (transition) { $(this._element).one(Util.TRANSITION_END, function (event) { return _this2._hideModal(event); }).emulateTransitionEnd(TRANSITION_DURATION); } else { this._hideModal(); } }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); $(window, document, this._element, this._backdrop).off(EVENT_KEY); this._config = null; this._element = null; this._dialog = null; this._backdrop = null; this._isShown = null; this._isBodyOverflowing = null; this._ignoreBackdropClick = null; this._scrollbarWidth = null; }; _proto.handleUpdate = function handleUpdate() { this._adjustDialog(); }; // private _proto._getConfig = function _getConfig(config) { config = $.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._showElement = function _showElement(relatedTarget) { var _this3 = this; var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE); if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { // don't move modals dom position document.body.appendChild(this._element); } this._element.style.display = 'block'; this._element.removeAttribute('aria-hidden'); this._element.scrollTop = 0; if (transition) { Util.reflow(this._element); } $(this._element).addClass(ClassName.SHOW); if (this._config.focus) { this._enforceFocus(); } var shownEvent = $.Event(Event.SHOWN, { relatedTarget: relatedTarget }); var transitionComplete = function transitionComplete() { if (_this3._config.focus) { _this3._element.focus(); } _this3._isTransitioning = false; $(_this3._element).trigger(shownEvent); }; if (transition) { $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION); } else { transitionComplete(); } }; _proto._enforceFocus = function _enforceFocus() { var _this4 = this; $(document).off(Event.FOCUSIN) // guard against infinite focus loop .on(Event.FOCUSIN, function (event) { if (document !== event.target && _this4._element !== event.target && !$(_this4._element).has(event.target).length) { _this4._element.focus(); } }); }; _proto._setEscapeEvent = function _setEscapeEvent() { var _this5 = this; if (this._isShown && this._config.keyboard) { $(this._element).on(Event.KEYDOWN_DISMISS, function (event) { if (event.which === ESCAPE_KEYCODE) { event.preventDefault(); _this5.hide(); } }); } else if (!this._isShown) { $(this._element).off(Event.KEYDOWN_DISMISS); } }; _proto._setResizeEvent = function _setResizeEvent() { var _this6 = this; if (this._isShown) { $(window).on(Event.RESIZE, function (event) { return _this6.handleUpdate(event); }); } else { $(window).off(Event.RESIZE); } }; _proto._hideModal = function _hideModal() { var _this7 = this; this._element.style.display = 'none'; this._element.setAttribute('aria-hidden', true); this._isTransitioning = false; this._showBackdrop(function () { $(document.body).removeClass(ClassName.OPEN); _this7._resetAdjustments(); _this7._resetScrollbar(); $(_this7._element).trigger(Event.HIDDEN); }); }; _proto._removeBackdrop = function _removeBackdrop() { if (this._backdrop) { $(this._backdrop).remove(); this._backdrop = null; } }; _proto._showBackdrop = function _showBackdrop(callback) { var _this8 = this; var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : ''; if (this._isShown && this._config.backdrop) { var doAnimate = Util.supportsTransitionEnd() && animate; this._backdrop = document.createElement('div'); this._backdrop.className = ClassName.BACKDROP; if (animate) { $(this._backdrop).addClass(animate); } $(this._backdrop).appendTo(document.body); $(this._element).on(Event.CLICK_DISMISS, function (event) { if (_this8._ignoreBackdropClick) { _this8._ignoreBackdropClick = false; return; } if (event.target !== event.currentTarget) { return; } if (_this8._config.backdrop === 'static') { _this8._element.focus(); } else { _this8.hide(); } }); if (doAnimate) { Util.reflow(this._backdrop); } $(this._backdrop).addClass(ClassName.SHOW); if (!callback) { return; } if (!doAnimate) { callback(); return; } $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); } else if (!this._isShown && this._backdrop) { $(this._backdrop).removeClass(ClassName.SHOW); var callbackRemove = function callbackRemove() { _this8._removeBackdrop(); if (callback) { callback(); } }; if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) { $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); } else { callbackRemove(); } } else if (callback) { callback(); } }; // ---------------------------------------------------------------------- // the following methods are used to handle overflowing modals // todo (fat): these should probably be refactored out of modal.js // ---------------------------------------------------------------------- _proto._adjustDialog = function _adjustDialog() { var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; if (!this._isBodyOverflowing && isModalOverflowing) { this._element.style.paddingLeft = this._scrollbarWidth + "px"; } if (this._isBodyOverflowing && !isModalOverflowing) { this._element.style.paddingRight = this._scrollbarWidth + "px"; } }; _proto._resetAdjustments = function _resetAdjustments() { this._element.style.paddingLeft = ''; this._element.style.paddingRight = ''; }; _proto._checkScrollbar = function _checkScrollbar() { var rect = document.body.getBoundingClientRect(); this._isBodyOverflowing = rect.left + rect.right < window.innerWidth; this._scrollbarWidth = this._getScrollbarWidth(); }; _proto._setScrollbar = function _setScrollbar() { var _this9 = this; if (this._isBodyOverflowing) { // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set // Adjust fixed content padding $(Selector.FIXED_CONTENT).each(function (index, element) { var actualPadding = $(element)[0].style.paddingRight; var calculatedPadding = $(element).css('padding-right'); $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); }); // Adjust sticky content margin $(Selector.STICKY_CONTENT).each(function (index, element) { var actualMargin = $(element)[0].style.marginRight; var calculatedMargin = $(element).css('margin-right'); $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); }); // Adjust navbar-toggler margin $(Selector.NAVBAR_TOGGLER).each(function (index, element) { var actualMargin = $(element)[0].style.marginRight; var calculatedMargin = $(element).css('margin-right'); $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px"); }); // Adjust body padding var actualPadding = document.body.style.paddingRight; var calculatedPadding = $('body').css('padding-right'); $('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); } }; _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding $(Selector.FIXED_CONTENT).each(function (index, element) { var padding = $(element).data('padding-right'); if (typeof padding !== 'undefined') { $(element).css('padding-right', padding).removeData('padding-right'); } }); // Restore sticky content and navbar-toggler margin $(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element) { var margin = $(element).data('margin-right'); if (typeof margin !== 'undefined') { $(element).css('margin-right', margin).removeData('margin-right'); } }); // Restore body padding var padding = $('body').data('padding-right'); if (typeof padding !== 'undefined') { $('body').css('padding-right', padding).removeData('padding-right'); } }; _proto._getScrollbarWidth = function _getScrollbarWidth() { // thx d.walsh var scrollDiv = document.createElement('div'); scrollDiv.className = ClassName.SCROLLBAR_MEASURER; document.body.appendChild(scrollDiv); var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return scrollbarWidth; }; // static Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { return this.each(function () { var data = $(this).data(DATA_KEY); var _config = $.extend({}, Modal.Default, $(this).data(), typeof config === 'object' && config); if (!data) { data = new Modal(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new Error("No method named \"" + config + "\""); } data[config](relatedTarget); } else if (_config.show) { data.show(relatedTarget); } }); }; createClass(Modal, null, [{ key: "VERSION", get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }]); return Modal; }(); /** * ------------------------------------------------------------------------ * Data Api implementation * ------------------------------------------------------------------------ */ $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { var _this10 = this; var target; var selector = Util.getSelectorFromElement(this); if (selector) { target = $(selector)[0]; } var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data()); if (this.tagName === 'A' || this.tagName === 'AREA') { event.preventDefault(); } var $target = $(target).one(Event.SHOW, function (showEvent) { if (showEvent.isDefaultPrevented()) { // only register focus restorer if modal will actually get shown return; } $target.one(Event.HIDDEN, function () { if ($(_this10).is(':visible')) { _this10.focus(); } }); }); Modal._jQueryInterface.call($(target), config, this); }); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Modal._jQueryInterface; $.fn[NAME].Constructor = Modal; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Modal._jQueryInterface; }; return Modal; }($); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): tooltip.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Tooltip = function () { /** * Check for Popper dependency * Popper - https://popper.js.org */ if (typeof Popper === 'undefined') { throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)'); } /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'tooltip'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.tooltip'; var EVENT_KEY = "." + DATA_KEY; var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 150; var CLASS_PREFIX = 'bs-tooltip'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var DefaultType = { animation: 'boolean', template: 'string', title: '(string|element|function)', trigger: 'string', delay: '(number|object)', html: 'boolean', selector: '(string|boolean)', placement: '(string|function)', offset: '(number|string)', container: '(string|element|boolean)', fallbackPlacement: '(string|array)' }; var AttachmentMap = { AUTO: 'auto', TOP: 'top', RIGHT: 'right', BOTTOM: 'bottom', LEFT: 'left' }; var Default = { animation: true, template: '', trigger: 'hover focus', title: '', delay: 0, html: false, selector: false, placement: 'top', offset: 0, container: false, fallbackPlacement: 'flip' }; var HoverState = { SHOW: 'show', OUT: 'out' }; var Event = { HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY }; var ClassName = { FADE: 'fade', SHOW: 'show' }; var Selector = { TOOLTIP: '.tooltip', TOOLTIP_INNER: '.tooltip-inner', ARROW: '.arrow' }; var Trigger = { HOVER: 'hover', FOCUS: 'focus', CLICK: 'click', MANUAL: 'manual' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Tooltip = /*#__PURE__*/ function () { function Tooltip(element, config) { // private this._isEnabled = true; this._timeout = 0; this._hoverState = ''; this._activeTrigger = {}; this._popper = null; // protected this.element = element; this.config = this._getConfig(config); this.tip = null; this._setListeners(); } // getters var _proto = Tooltip.prototype; // public _proto.enable = function enable() { this._isEnabled = true; }; _proto.disable = function disable() { this._isEnabled = false; }; _proto.toggleEnabled = function toggleEnabled() { this._isEnabled = !this._isEnabled; }; _proto.toggle = function toggle(event) { if (!this._isEnabled) { return; } if (event) { var dataKey = this.constructor.DATA_KEY; var context = $(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } context._activeTrigger.click = !context._activeTrigger.click; if (context._isWithActiveTrigger()) { context._enter(null, context); } else { context._leave(null, context); } } else { if ($(this.getTipElement()).hasClass(ClassName.SHOW)) { this._leave(null, this); return; } this._enter(null, this); } }; _proto.dispose = function dispose() { clearTimeout(this._timeout); $.removeData(this.element, this.constructor.DATA_KEY); $(this.element).off(this.constructor.EVENT_KEY); $(this.element).closest('.modal').off('hide.bs.modal'); if (this.tip) { $(this.tip).remove(); } this._isEnabled = null; this._timeout = null; this._hoverState = null; this._activeTrigger = null; if (this._popper !== null) { this._popper.destroy(); } this._popper = null; this.element = null; this.config = null; this.tip = null; }; _proto.show = function show() { var _this = this; if ($(this.element).css('display') === 'none') { throw new Error('Please use show on visible elements'); } var showEvent = $.Event(this.constructor.Event.SHOW); if (this.isWithContent() && this._isEnabled) { $(this.element).trigger(showEvent); var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element); if (showEvent.isDefaultPrevented() || !isInTheDom) { return; } var tip = this.getTipElement(); var tipId = Util.getUID(this.constructor.NAME); tip.setAttribute('id', tipId); this.element.setAttribute('aria-describedby', tipId); this.setContent(); if (this.config.animation) { $(tip).addClass(ClassName.FADE); } var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; var attachment = this._getAttachment(placement); this.addAttachmentClass(attachment); var container = this.config.container === false ? document.body : $(this.config.container); $(tip).data(this.constructor.DATA_KEY, this); if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) { $(tip).appendTo(container); } $(this.element).trigger(this.constructor.Event.INSERTED); this._popper = new Popper(this.element, tip, { placement: attachment, modifiers: { offset: { offset: this.config.offset }, flip: { behavior: this.config.fallbackPlacement }, arrow: { element: Selector.ARROW } }, onCreate: function onCreate(data) { if (data.originalPlacement !== data.placement) { _this._handlePopperPlacementChange(data); } }, onUpdate: function onUpdate(data) { _this._handlePopperPlacementChange(data); } }); $(tip).addClass(ClassName.SHOW); // if this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; // only needed because of broken event delegation on iOS // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html if ('ontouchstart' in document.documentElement) { $('body').children().on('mouseover', null, $.noop); } var complete = function complete() { if (_this.config.animation) { _this._fixTransition(); } var prevHoverState = _this._hoverState; _this._hoverState = null; $(_this.element).trigger(_this.constructor.Event.SHOWN); if (prevHoverState === HoverState.OUT) { _this._leave(null, _this); } }; if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) { $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION); } else { complete(); } } }; _proto.hide = function hide(callback) { var _this2 = this; var tip = this.getTipElement(); var hideEvent = $.Event(this.constructor.Event.HIDE); var complete = function complete() { if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) { tip.parentNode.removeChild(tip); } _this2._cleanTipClass(); _this2.element.removeAttribute('aria-describedby'); $(_this2.element).trigger(_this2.constructor.Event.HIDDEN); if (_this2._popper !== null) { _this2._popper.destroy(); } if (callback) { callback(); } }; $(this.element).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { return; } $(tip).removeClass(ClassName.SHOW); // if this is a touch-enabled device we remove the extra // empty mouseover listeners we added for iOS support if ('ontouchstart' in document.documentElement) { $('body').children().off('mouseover', null, $.noop); } this._activeTrigger[Trigger.CLICK] = false; this._activeTrigger[Trigger.FOCUS] = false; this._activeTrigger[Trigger.HOVER] = false; if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) { $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); } else { complete(); } this._hoverState = ''; }; _proto.update = function update() { if (this._popper !== null) { this._popper.scheduleUpdate(); } }; // protected _proto.isWithContent = function isWithContent() { return Boolean(this.getTitle()); }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement = function getTipElement() { this.tip = this.tip || $(this.config.template)[0]; return this.tip; }; _proto.setContent = function setContent() { var $tip = $(this.getTipElement()); this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; _proto.setElementContent = function setElementContent($element, content) { var html = this.config.html; if (typeof content === 'object' && (content.nodeType || content.jquery)) { // content is a DOM node or a jQuery if (html) { if (!$(content).parent().is($element)) { $element.empty().append(content); } } else { $element.text($(content).text()); } } else { $element[html ? 'html' : 'text'](content); } }; _proto.getTitle = function getTitle() { var title = this.element.getAttribute('data-original-title'); if (!title) { title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title; } return title; }; // private _proto._getAttachment = function _getAttachment(placement) { return AttachmentMap[placement.toUpperCase()]; }; _proto._setListeners = function _setListeners() { var _this3 = this; var triggers = this.config.trigger.split(' '); triggers.forEach(function (trigger) { if (trigger === 'click') { $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) { return _this3.toggle(event); }); } else if (trigger !== Trigger.MANUAL) { var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN; var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT; $(_this3.element).on(eventIn, _this3.config.selector, function (event) { return _this3._enter(event); }).on(eventOut, _this3.config.selector, function (event) { return _this3._leave(event); }); } $(_this3.element).closest('.modal').on('hide.bs.modal', function () { return _this3.hide(); }); }); if (this.config.selector) { this.config = $.extend({}, this.config, { trigger: 'manual', selector: '' }); } else { this._fixTitle(); } }; _proto._fixTitle = function _fixTitle() { var titleType = typeof this.element.getAttribute('data-original-title'); if (this.element.getAttribute('title') || titleType !== 'string') { this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); this.element.setAttribute('title', ''); } }; _proto._enter = function _enter(event, context) { var dataKey = this.constructor.DATA_KEY; context = context || $(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } if (event) { context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true; } if ($(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) { context._hoverState = HoverState.SHOW; return; } clearTimeout(context._timeout); context._hoverState = HoverState.SHOW; if (!context.config.delay || !context.config.delay.show) { context.show(); return; } context._timeout = setTimeout(function () { if (context._hoverState === HoverState.SHOW) { context.show(); } }, context.config.delay.show); }; _proto._leave = function _leave(event, context) { var dataKey = this.constructor.DATA_KEY; context = context || $(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } if (event) { context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false; } if (context._isWithActiveTrigger()) { return; } clearTimeout(context._timeout); context._hoverState = HoverState.OUT; if (!context.config.delay || !context.config.delay.hide) { context.hide(); return; } context._timeout = setTimeout(function () { if (context._hoverState === HoverState.OUT) { context.hide(); } }, context.config.delay.hide); }; _proto._isWithActiveTrigger = function _isWithActiveTrigger() { for (var trigger in this._activeTrigger) { if (this._activeTrigger[trigger]) { return true; } } return false; }; _proto._getConfig = function _getConfig(config) { config = $.extend({}, this.constructor.Default, $(this.element).data(), config); if (typeof config.delay === 'number') { config.delay = { show: config.delay, hide: config.delay }; } if (typeof config.title === 'number') { config.title = config.title.toString(); } if (typeof config.content === 'number') { config.content = config.content.toString(); } Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getDelegateConfig = function _getDelegateConfig() { var config = {}; if (this.config) { for (var key in this.config) { if (this.constructor.Default[key] !== this.config[key]) { config[key] = this.config[key]; } } } return config; }; _proto._cleanTipClass = function _cleanTipClass() { var $tip = $(this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); if (tabClass !== null && tabClass.length > 0) { $tip.removeClass(tabClass.join('')); } }; _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(data) { this._cleanTipClass(); this.addAttachmentClass(this._getAttachment(data.placement)); }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); var initConfigAnimation = this.config.animation; if (tip.getAttribute('x-placement') !== null) { return; } $(tip).removeClass(ClassName.FADE); this.config.animation = false; this.hide(); this.show(); this.config.animation = initConfigAnimation; }; // static Tooltip._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); var _config = typeof config === 'object' && config; if (!data && /dispose|hide/.test(config)) { return; } if (!data) { data = new Tooltip(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new Error("No method named \"" + config + "\""); } data[config](); } }); }; createClass(Tooltip, null, [{ key: "VERSION", get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }, { key: "NAME", get: function get() { return NAME; } }, { key: "DATA_KEY", get: function get() { return DATA_KEY; } }, { key: "Event", get: function get() { return Event; } }, { key: "EVENT_KEY", get: function get() { return EVENT_KEY; } }, { key: "DefaultType", get: function get() { return DefaultType; } }]); return Tooltip; }(); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Tooltip._jQueryInterface; $.fn[NAME].Constructor = Tooltip; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Tooltip._jQueryInterface; }; return Tooltip; }($, Popper); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): popover.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var Popover = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'popover'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.popover'; var EVENT_KEY = "." + DATA_KEY; var JQUERY_NO_CONFLICT = $.fn[NAME]; var CLASS_PREFIX = 'bs-popover'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var Default = $.extend({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '' }); var DefaultType = $.extend({}, Tooltip.DefaultType, { content: '(string|element|function)' }); var ClassName = { FADE: 'fade', SHOW: 'show' }; var Selector = { TITLE: '.popover-header', CONTENT: '.popover-body' }; var Event = { HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var Popover = /*#__PURE__*/ function (_Tooltip) { inheritsLoose(Popover, _Tooltip); function Popover() { return _Tooltip.apply(this, arguments) || this; } var _proto = Popover.prototype; // overrides _proto.isWithContent = function isWithContent() { return this.getTitle() || this._getContent(); }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement = function getTipElement() { this.tip = this.tip || $(this.config.template)[0]; return this.tip; }; _proto.setContent = function setContent() { var $tip = $(this.getTipElement()); // we use append for html objects to maintain js events this.setElementContent($tip.find(Selector.TITLE), this.getTitle()); this.setElementContent($tip.find(Selector.CONTENT), this._getContent()); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; // private _proto._getContent = function _getContent() { return this.element.getAttribute('data-content') || (typeof this.config.content === 'function' ? this.config.content.call(this.element) : this.config.content); }; _proto._cleanTipClass = function _cleanTipClass() { var $tip = $(this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); if (tabClass !== null && tabClass.length > 0) { $tip.removeClass(tabClass.join('')); } }; // static Popover._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); var _config = typeof config === 'object' ? config : null; if (!data && /destroy|hide/.test(config)) { return; } if (!data) { data = new Popover(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'string') { if (typeof data[config] === 'undefined') { throw new Error("No method named \"" + config + "\""); } data[config](); } }); }; createClass(Popover, null, [{ key: "VERSION", // getters get: function get() { return VERSION; } }, { key: "Default", get: function get() { return Default; } }, { key: "NAME", get: function get() { return NAME; } }, { key: "DATA_KEY", get: function get() { return DATA_KEY; } }, { key: "Event", get: function get() { return Event; } }, { key: "EVENT_KEY", get: function get() { return EVENT_KEY; } }, { key: "DefaultType", get: function get() { return DefaultType; } }]); return Popover; }(Tooltip); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ $.fn[NAME] = Popover._jQueryInterface; $.fn[NAME].Constructor = Popover; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; return Popover._jQueryInterface; }; return Popover; }($); /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): scrollspy.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ var ScrollSpy = function () { /** * ------------------------------------------------------------------------ * Constants * ------------------------------------------------------------------------ */ var NAME = 'scrollspy'; var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.scrollspy'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; var JQUERY_NO_CONFLICT = $.fn[NAME]; var Default = { offset: 10, method: 'auto', target: '' }; var DefaultType = { offset: 'number', method: 'string', target: '(string|element)' }; var Event = { ACTIVATE: "activate" + EVENT_KEY, SCROLL: "scroll" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY }; var ClassName = { DROPDOWN_ITEM: 'dropdown-item', DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active' }; var Selector = { DATA_SPY: '[data-spy="scroll"]', ACTIVE: '.active', NAV_LIST_GROUP: '.nav, .list-group', NAV_LINKS: '.nav-link', NAV_ITEMS: '.nav-item', LIST_ITEMS: '.list-group-item', DROPDOWN: '.dropdown', DROPDOWN_ITEMS: '.dropdown-item', DROPDOWN_TOGGLE: '.dropdown-toggle' }; var OffsetMethod = { OFFSET: 'offset', POSITION: 'position' /** * ------------------------------------------------------------------------ * Class Definition * ------------------------------------------------------------------------ */ }; var ScrollSpy = /*#__PURE__*/ function () { function ScrollSpy(element, config) { var _this = this; this._element = element; this._scrollElement = element.tagName === 'BODY' ? window : element; this._config = this._getConfig(config); this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS); this._offsets = []; this._targets = []; this._activeTarget = null; this._scrollHeight = 0; $(this._scrollElement).on(Event.SCROLL, function (event) { return _this._process(event); }); this.refresh(); this._process(); } // getters var _proto = ScrollSpy.prototype; // public _proto.refresh = function refresh() { var _this2 = this; var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET; var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0; this._offsets = []; this._targets = []; this._scrollHeight = this._getScrollHeight(); var targets = $.makeArray($(this._selector)); targets.map(function (element) { var target; var targetSelector = Util.getSelectorFromElement(element); if (targetSelector) { target = $(targetSelector)[0]; } if (target) { var targetBCR = target.getBoundingClientRect(); if (targetBCR.width || targetBCR.height) { // todo (fat): remove sketch reliance on jQuery position/offset return [$(target)[offsetMethod]().top + offsetBase, targetSelector]; } } return null; }).filter(function (item) { return item; }).sort(function (a, b) { return a[0] - b[0]; }).forEach(function (item) { _this2._offsets.push(item[0]); _this2._targets.push(item[1]); }); }; _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); $(this._scrollElement).off(EVENT_KEY); this._element = null; this._scrollElement = null; this._config = null; this._selector = null; this._offsets = null; this._targets = null; this._activeTarget = null; this._scrollHeight = null; }; // private _proto._getConfig = function _getConfig(config) { config = $.extend({}, Default, config); if (typeof config.target !== 'string') { var id = $(config.target).attr('id'); if (!id) { id = Util.getUID(NAME); $(config.target).attr('id', id); } config.target = "#" + id; } Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getScrollTop = function _getScrollTop() { return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; }; _proto._getScrollHeight = function _getScrollHeight() { return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); }; _proto._getOffsetHeight = function _getOffsetHeight() { return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; }; _proto._process = function _process() { var scrollTop = this._getScrollTop() + this._config.offset; var scrollHeight = this._getScrollHeight(); var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); if (this._scrollHeight !== scrollHeight) { this.refresh(); } if (scrollTop >= maxScroll) { var target = this._targets[this._targets.length - 1]; if (this._activeTarget !== target) { this._activate(target); } return; } if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { this._activeTarget = null; this._clear(); return; } for (var i = this._offsets.length; i--;) { var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); if (isActiveTarget) { this._activate(this._targets[i]); } } }; _proto._activate = function _activate(target) { this._activeTarget = target; this._clear(); var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style queries = queries.map(function (selector) { return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]"); }); var $link = $(queries.join(',')); if ($link.hasClass(ClassName.DROPDOWN_ITEM)) { $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); $link.addClass(ClassName.ACTIVE); } else { // Set triggered link as active $link.addClass(ClassName.ACTIVE); // Set triggered links parents as active // With both
             
            Sent by {{$data['nama_laundry']}} Teams
            {{$data['alamat_laundry']}}
            ================================================ FILE: resources/views/emails/orders.blade.php ================================================
            ================================================ FILE: resources/views/emails/register.blade.php ================================================
            Selamat Datang!

            Party Wumpus

            Halo, Selamat Datang Kak {{$data['name']}}.

            Terima kasih sudah menjadi member {{$data['nama_laundry']}}.

            Berikut ini adalah detail LOGIN akun kakak ya :

            • Email : {{$data['email']}}
            • password : {{$data['password']}}
            Login
             
            Sent by {{$data['nama_laundry']}} Teams
            {{$data['alamat_laundry']}}
            ================================================ FILE: resources/views/errors/404.blade.php ================================================ @extends('layouts.error') @section('title','Upsss !') @section('content')
            branding logo

            404 - Page Not Found!

            Sepertinya halaman yang kamu cari tidak bisa kami jangkau.

            Back to Home
            @endsection ================================================ FILE: resources/views/errors/500.blade.php ================================================ @extends('layouts.error') @section('title','Upsss !') @section('content')
            branding logo

            Internal Server Error !

            Kami akan segera kembali.

            Back to Home
            @endsection ================================================ FILE: resources/views/frontend/banner.blade.php ================================================ {{-- Banner --}}

            Lacak Status Laundry Kamu Disini...

            @include('frontend.modal')
            {{-- End Header --}} ================================================ FILE: resources/views/frontend/content.blade.php ================================================ {{-- Content --}} {{-- End Content --}} ================================================ FILE: resources/views/frontend/footer.blade.php ================================================ ================================================ FILE: resources/views/frontend/header.blade.php ================================================ ================================================ FILE: resources/views/frontend/index.blade.php ================================================ @extends('layouts.frontend') @section('title','Selamat Datang') @section('header') @include('frontend.header') @endsection @section('banner') {{-- banner --}} @include('frontend.banner') {{-- End banner --}} @endsection @section('content') @include('frontend.content') @endsection @section('footer') @include('frontend.footer') {{-- Whatsapp Button Start--}} {{-- End: Whatsapp Button --}} @endsection @section('scripts') @endsection ================================================ FILE: resources/views/frontend/modal.blade.php ================================================ ================================================ FILE: resources/views/karyawan/customer/create.blade.php ================================================ @extends('layouts.backend') @section('title','Tambah Customer') @section('header','Tambah Data Customer') @section('content')

            Form Tambah Data Customer

            @csrf
            @error('name') {{ $message }} @enderror
            @error('email') {{ $message }} @enderror
            @error('no_telp') {{ $message }} @enderror
            @error('alamat') {{ $message }} @enderror
            Batal
            @endsection ================================================ FILE: resources/views/karyawan/customer/detail.blade.php ================================================ @extends('layouts.backend') @section('title','Karyawan - Detail Customer') @section('header','Detail Customer') @section('content')

            Detail Data Customer

            Nama
            : {{$customer->name}}
            Email
            : {{$customer->email}}
            No. Telepon
            : {{$customer->no_telp == 0 ? 'Belum Input' : $customer->no_telp}}
            Alamat
            : {{$customer->alamat}}
            Kelamin
            : {{$customer->kelamin == 'L' ? 'Laki-laki' : 'Perempuan'}}
            Total Kg
            : {{$customer->transaksiCustomer()->sum('kg') ?? ''}} Kg
            Total Rupiah
            : {{Rupiah::getRupiah($customer->transaksiCustomer()->sum('harga_akhir')) ?? ''}}
            Total Laundry
            : {{$customer->transaksiCustomer()->count() ?? ''}} Kali
            Laundry Terakhir
            : {{$customer->transaksiCustomer[0]['created_at'] ?? '-'}}
            Pendaftaran Akun
            : {{$customer->created_at}}

            Detail Transaksi Customer

            @foreach ($customer->transaksiCustomer as $key => $item) @endforeach
            # Invoice Tgl Transaksi Tgl Diambil Jumlah KG Jenis Pembayaran Status Transaksi Total Harga
            {{$key+1}} {{$item->invoice}} {{$item->tgl_transaksi}} {{$item->tgl_ambil ?? 'Belum Diambil'}} {{$item->kg}} kg {{$item->jenis_pembayaran}} {{$item->status_order}} {{Rupiah::getRupiah($item->harga_akhir)}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/karyawan/customer/index.blade.php ================================================ @extends('layouts.backend') @section('title','Karyawan - Data Customer') @section('header','Data Customer') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif
            Tambah Customer @foreach ($customer as $item) @endforeach
            # Nama Email Alamat No Telpon Action
            {{$no}} {{$item->name}} {{$item->email}} {{$item->alamat}} {{$item->no_telp}} Detail
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/karyawan/index.blade.php ================================================ @extends('layouts.backend') @section('title','Dashboard Karyawan') @section('content')
            Welcome 🎉 {{Auth::user()->name}}!

            Semoga harimu menyenangkan.


            {{date('l, d F Y')}}, {{date('H:i:s')}}

            Statistics

            Updated 1 month ago

            {{$customer->count()}}

            Customers

            {{$masuk}}

            Laundry Masuk

            {{$selesai}}

            Laundry Selesai

            {{$diambil}}

            Laundry Diambil

            Hari ini

            {{$kgToday}} Kg
            Kilogram

            Kemarin

            {{$kgTodayOld}} Kg
            Kilogram

            Pendapatan

            Bulan Ini
            {{Rupiah::getRupiah($incomeM)}}

            Pendapatan {{$incomeM >= $incomeMOld ? 'naik' : 'turun'}} {{$persen}}% dari bulan kemarin.

            Data Laundry Masuk Per-bulan

            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/karyawan/laporan/cetak.blade.php ================================================ Invoice
            @foreach ($invoice as $item) @endforeach
            Invoice {{$data->invoice}} {{ $data->created_at->format('d-M-Y') }}

            {{$data->nama_cabang}}

            Diterima Oleh : {{$data->user->name}}
            Alamat : {{$data->user->alamat_cabang}},
            No. Telp : {{$data->user->no_telp}},

            Detail Order Customer :

            {{$data->customers->nama}}
            {{$data->customers->alamat}}
            {{$data->customers->no_telp}}


            Tanggal Masuk : {{carbon\carbon::parse($data->tgl_transaksi)->format('d-m-y')}}

            Tanggal Diambil : @if ($data->tgl_ambil == "") Belum Diambil @else {{carbon\carbon::parse($data->tgl_ambil)->format('d-m-y')}} @endif

            # Jenis Pakaian Berat Harga Total
            1 {{$item->price->jenis}} {{$item->kg}} Kg {{Rupiah::getRupiah($item->harga)}} /Kg

            {{Rupiah::getRupiah($hitung)}}

            Disc @if ($item->disc == "") 0 % @else {{$item->disc}} % @endif {{Rupiah::getRupiah($disc)}}
            Total Bayar {{Rupiah::getRupiah($item->harga_akhir)}}
            Metode Pembayaran :
              @foreach ($bank as $banks)
            1. {{$banks->nama_bank}}
              {{$banks->no_rekening}} a/n {{$banks->nama_pemilik}}
            2. @endforeach
            ================================================ FILE: resources/views/karyawan/laporan/excelExport.blade.php ================================================ @php $total_colspan = 11; $no = 0; @endphp @php $grand = 0; @endphp @foreach ($data as $key => $items) @php $grand += $items->harga_akhir @endphp @endforeach
            LAPORAN LAUNDRY
            {{strtoupper(Auth::user()->name)}}
             
            No Customer Jenis Laundry Status Pembayaran Jenis Pembayaran Total
            {{$key+1}} {{$items->customer}} {{$items->price->jenis}} {{$items->status_payment}} {{$items->jenis_pembayaran}} Rp {{number_format($items->harga_akhir)}}
            GRAND TOTAL Rp {{number_format($grand)}}
            ================================================ FILE: resources/views/karyawan/laporan/index.blade.php ================================================ @extends('layouts.backend') @section('title','Karyawan - Laporan Laundry') @section('content')

            Laporan Laundry Export Excel

            @foreach ($laporan as $laporans) @endforeach
            # Nama Customer Jenis Laundry Jenis Pembayaran Status Pembayaran Total
            {{$no}} {{namaCustomer($laporans->customer_id)}} {{$laporans->price->jenis}} {{$laporans->jenis_pembayaran}} {{$laporans->status_payment}} {{Rupiah::getRupiah($laporans->harga_akhir)}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/karyawan/laporan/invoice.blade.php ================================================ @extends('layouts.backend') @section('title','Karyawan - Invoice Customer') @section('header','Invoice Customer') @section('content')

            INVOICE {{$data->invoice}}


             {{$data->user->nama_cabang}}

            Diterima Oleh : {{$data->user->name}}
            Alamat : {{$data->user->alamat_cabang}},
            No. Telp : {{$data->user->no_telp}}

            Detail Order Customer :

            {{$data->customers->nama}}
            {{$data->customers->alamat}}
            {{$data->customers->no_telp}}

            Tanggal Masuk : {{carbon\carbon::parse($data->tgl_transaksi)->format('d-m-Y')}}

            Tanggal Diambil : @if ($data->tgl_ambil == "") Belum Diambil @else {{\carbon\carbon::parse($data->tgl_ambil)->format('d-m-Y')}} @endif

            @foreach ($invoice as $item)
            # Jenis Pakaian Berat Harga Total
            1 {{$item->price->jenis}} {{$item->kg}} / kg {{Rupiah::getRupiah($item->harga)}} /kg

            {{Rupiah::getRupiah($hitung)}}

            Metode Pembayaran :
              @foreach ($bank as $banks)
            1. {{$banks->nama_bank}}
              {{$banks->no_rekening}} a/n {{$banks->nama_pemilik}}
            2. @endforeach

            Total : {{Rupiah::getRupiah($hitung)}}

            Disc @if ($item->disc == "") (0 %) @else ({{$item->disc}} %) @endif :


            Total Bayar : {{Rupiah::getRupiah($item->harga_akhir)}}

            @endforeach

            @endsection ================================================ FILE: resources/views/karyawan/profile/index.blade.php ================================================ @extends('layouts.backend') @section('title','Profile') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif
            avatar

            {{Auth::user()->name}}

            Customer

            Email address
            {{Auth::user()->email}}
            Phone
            +{{Auth::user()->no_telp}}
            Address
            {{Auth::user()->alamat}}
            Social Profile
            @csrf @method('PUT')
            @error('name') {{ $message }} @enderror
            @error('email') {{ $message }} @enderror
            @error('alamat') {{ $message }} @enderror
            @error('no_telp') {{ $message }} @enderror
            Biarkan kosong jika tidak ingin di update. @error('foto') {{ $message }} @enderror
            Biarkan kosong jika tidak ingin di update. @error('password') {{ $message }} @enderror
            Biarkan kosong jika tidak ingin di update. @error('password_confirmation') {{ $message }} @enderror
            Data Laundry

            @error('nama_cabang') {{ $message }} @enderror
            @error('alamat_cabang') {{ $message }} @enderror
            Batal
            @endsection ================================================ FILE: resources/views/karyawan/settings/index.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Settings') @section('header','Settings') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif
            @csrf @method('PUT')
            Theme Dark
            theme == 1 ? 'checked' : ''}} value="1" id="theme"> Aktifkan Jika Ingin Menggunakan Theme Dark
            @endsection ================================================ FILE: resources/views/karyawan/transaksi/addorder.blade.php ================================================ @extends('layouts.backend') @section('title','Tambah Data Order') @section('content') @if (@$cek_harga->user_id == !null || @$cek_harga->user_id == Auth::user()->id) @if($message = Session::get('error'))
            {{ $message }}
            @endif

            Form Tambah Data Order + Customer Baru

            {{-- Cek Apakah Customer ada --}} @if ($cek_customer != 0)
            @csrf
            @error('customer_id') {{ $message }} @enderror
            @error('invoice') {{ $message }} @enderror
            @error('kg') {{ $message }} @enderror
            @error('status_payment') {{ $message }} @enderror
            @error('jenis_pembayaran') {{ $message }} @enderror
            @error('harga_id') {{ $message }} @enderror
            @error('disc') {{ $message }} @enderror
            @else

            Data Customer Masih Kosong !

            @endif
            @else

            Data Harga Kosong / Tidak Aktif !

            Mohon hubungi Administrator :)

            @endif @endsection @section('scripts') @endsection ================================================ FILE: resources/views/karyawan/transaksi/order.blade.php ================================================ @extends('layouts.backend') @section('title','Dashboard Karyawan') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif ($message = Session::get('error'))
            {{ $message }}
            @endif

            Tambah

            Info : Untuk Mengubah Status Order & Pembayaran Klik Pada Bagian 'Action' Masing-masing.
            {{-- {{dd($order)}} --}} @foreach ($order as $item) @endforeach
            # No Resi TGL Transaksi Customer Status Laundry Payment Jenis Total Action
            {{$no}} {{$item->invoice}} {{carbon\carbon::parse($item->tgl_transaksi)->format('d-m-y')}} {{$item->customer}} @if ($item->status_order == 'Done') Selesai @elseif($item->status_order == 'Delivery') Diambil @elseif($item->status_order == 'Process') Diproses @endif @if ($item->status_payment == 'Success') Lunas @elseif($item->status_payment == 'Pending') Pending @endif {{$item->price->jenis}} {{Rupiah::getRupiah($item->harga_akhir)}} @if ($item->status_payment == 'Pending') Bayar Invoice @elseif($item->status_payment == 'Success') @if ($item->status_order == 'Process') Selesai Invoice @elseif($item->status_order == 'Done') Diambil Invoice @elseif($item->status_order == 'Delivery') Invoice @endif @endif
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/layouts/auth.blade.php ================================================ @yield('title')
            @yield('content')
            ================================================ FILE: resources/views/layouts/backend.blade.php ================================================ @yield('title')
            @yield('content') @include('sweetalert::alert')

            COPYRIGHT © 2020 - {{date('Y')}}Andri Desmana,All rights ReservedBuild With

            @yield('scripts') ================================================ FILE: resources/views/layouts/error.blade.php ================================================ @yield('title')
            @yield('content')
            ================================================ FILE: resources/views/layouts/frontend.blade.php ================================================ @yield('title') @yield('header')
            @yield('banner')
            @yield('content')
            @yield('footer') @yield('scripts') ================================================ FILE: resources/views/modul_admin/customer/index.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Data Customer') @section('header','Data Customer') @section('content')

            Data Customer {{-- Tambah --}}

            @foreach ($customer as $item) @endforeach
            # Nama Alamat No Telpon Kelamin Action
            {{$no}} {{$item->name}} {{$item->alamat}} {{$item->no_telp}} @if ($item->kelamin == 'L') Laki-laki @else Perempuan @endif Info
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/customer/infoCustomer.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Detail Data Customer') @section('header','Detail Data Customer') @section('content')

            Detail Data Customer

            Nama Customer
            : {{$customer->name}}
            Email Customer
            : {{$customer->email}}
            No. Telepon
            : {{$customer->no_telp == 0 ? 'Belum Input' : $customer->no_telp}}
            Alamat Customer
            : {{$customer->alamat}}
            Kelamin Customer
            : {{$customer->kelamin == 'L' ? 'Laki-laki' : 'Perempuan'}}
            Total Kg
            : {{$customer->transaksiCustomer()->sum('kg') ?? ''}} Kg
            Total Rupiah
            : {{Rupiah::getRupiah($customer->transaksiCustomer()->sum('harga_akhir')) ?? ''}}
            Total Laundry
            : {{$customer->transaksiCustomer()->count() ?? ''}} Kali
            Laundry Terakhir
            : {{$customer->transaksiCustomer[0]['created_at'] ?? '-'}}
            Pendaftaran Akun
            : {{$customer->created_at}}

            Detail Transaksi Customer

            @foreach ($customer->transaksiCustomer as $key => $item) @endforeach
            # Invoice Tgl Transaksi Tgl Diambil Jumlah KG Jenis Pembayaran Status Transaksi Total Harga
            {{$key+1}} {{$item->invoice}} {{$item->tgl_transaksi}} {{$item->tgl_ambil ?? 'Belum Diambil'}} {{$item->kg}} kg {{$item->jenis_pembayaran}} {{$item->status_order}} {{Rupiah::getRupiah($item->harga_akhir)}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/customer/jmltransaksi.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Transaksi Customer') @section('header','Transaksi Customer') @section('content')
            {{$total = 0}}
            @foreach ($jml as $item) @endforeach
            # Nama Alamat No Telpon Transaksi Action
            {{$no}} {{$item->nama}} {{$item->alamat}} {{$item->no_telp}} {{$item->sum('kg')}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/doc/index.blade.php ================================================ @extends('layouts.backend') @section('title','Dokumentasi Aplikasi Laundry') @section('content')

            Punya Pertanyaan ?

            Telegram

            Best way to get answer faster!

            andridesmana29@outlook.com

            Saya selalu senang mambantu!
            @endsection ================================================ FILE: resources/views/modul_admin/doc/notifikasi.blade.php ================================================ @extends('layouts.backend') @section('title','Notifikasi | Dokumentasi Aplikasi Laundry') @section('content')

            Pengaturan Notifikasi Aplikasi Laundry

            Email Notifikasi
            Ada beberapa hal yang harus kalian sesuaikan jika ingin menggunakan email Notifikasi dan saya harap kalian sudah cukup familiar dengan SMTP. Karena jika saya jabarkan akan sangat panjang, silahkan buka tautan ini untuk memperlajari cara penggunaan SMPT, link disini.

            Telegram Notifikasi
            Harus kalian ketahui, untuk Telegram Notifikasi ini tidak mengirimkan nya pada setiap customer melainkan pada halaman group yang sudah kalian buat terlebih dahulu. Dengan kata lain notifikasi ini dikirimkan oleh Bot Telegram. Untuk cara membuat Bot Telegram kalian bisa bukan tautan ini, link disini.
            Perlu diingat, kalian hanya perlu mendapatkan TOKEN API yang kalian dapatkan saat membuat Bot. Nantinya TOKEN ini yang akan kita integrasikan pada Aplikasi Laundry.

            1. Pergi ke file .env lalu paste TOKEN API pada variable TELEGRAM_BOT_TOKEN
            2. Pada halaman Other > Setting > Notifications masukan username Channel Telegram yang sudah kalian buat

            WhatsApp Notifikasi
            Pada WhatsApp Notifikasi ini ada beberapa yang harus terpenuhi agar Notifikasi bisa berjalan. Berbeda dengan Telegram Notifikasi, WhatsApp notifikasi akan mengirimkan pemberitahuan secara real time/langsung kepada customer. Untuk hal ini, pemberitahuan yang dikirimkan hanya ketika Laundry sudah selesai atau pada page Data Transaksi > Order Masuk kalian meng-klik button selesai yang hanya bisa dilakukan jika kalian Login sebagai Karyawan.
            Pada kasus ini saya menggunakan API dari KirimWA.id, ini adalah sebuah layanan unofficial WhatsApp API Gateway.

            1. Pastikan kalian sudah mendaftar terlebih dahulu untuk mendapatkan TOKEN nya, daftar disini.
            2. Copy dan Paste TOKEN yang sudah di dapat pada halaman Other > Setting > Notifications

            Punya Pertanyaan ?

            Telegram

            Best way to get answer faster!

            andridesmana29@outlook.com

            Saya selalu senang mambantu!
            @endsection ================================================ FILE: resources/views/modul_admin/doc/penggunaan.blade.php ================================================ @extends('layouts.backend') @section('title','Instalasi & Penggunaan | Dokumentasi Aplikasi Laundry') @section('content')

            Instalasi & Penggunaan Aplikasi Laundry

            Requirements
            • Version 1.x , 2.x or 3.x use PHP 7.3 (Framework Laravel 8) Versi 3.x
            • Version 3.1 use PHP 8.0 (Framework Laravel 9) Versi 3.1
            • Database (eg: MySQL)
            • Web Server (eg: Apache, Nginx, IIS)
            Installation
            • Install Composer and Npm
            • Clone the repository: git clone https://github.com/andes2912/laundry.git
            • Install dependencies: composer install ; npm install ; npm run dev
            • Run cp .env.example .env for create .env file
            • Run php artisan migrate --seed for migration database
            • Run php artisan storage:link for create folder storage
            • Run php artisan create:admin for create user Administrator
            • Run php artisan queue:listen for run queue
            • Run php artisan serve for start app
            Credentials
            • Login sebagai Karyawan
              • Untuk membuat akun karyawan silahkan pergi ke menu Data User > Karyawan
              • Untuk Password, silahkan masukan 123456

            Punya Pertanyaan ?

            Telegram

            Best way to get answer faster!

            andridesmana29@outlook.com

            Saya selalu senang mambantu!
            @endsection ================================================ FILE: resources/views/modul_admin/doc/tentang.blade.php ================================================ @extends('layouts.backend') @section('title','Tentang Aplikasi | Dokumentasi Aplikasi Laundry') @section('content')

            Aplikasi Laundry

            Halo, ini adalah aplikasi Laundry yang dibangun dengan Framwork Laravel. Aplikasi ini sudah bisa multi toko, dengan kata lain kamu bisa membuat cabang laundry.

            Sekilas Utas
            Aplikasi Laundry mulai di develop di tahun 2019, pada saat itu aplikasi ini dibuat hanya untuk keperluan protofolio saja. Seiring dengan berjalan nya waktu aplikasi ini mulai di kenal banyak orang. Akhirnya saya memutuskan untuk menambah fitur-fitur baru serta memperbaiki hal-hal yang kurang demi kenyamanan pengguna nya.

            Ucapan Terima Kasih
            Saya ingin mengucapkan terima kasih kepada teman-teman yang sudah menggunakan aplikasi Laundry sebagai bahan belajar atau digunakan untuk keperluan pribadi sebagai penunjang usaha Laundry kalian. Terima kasih juga untuk teman-teman yang sudah membagikan sedikit rezeki nya kepada saya melalu Saweria, dukungan kalian amat sangat berharga buat saya.

            Punya Pertanyaan ?

            Telegram

            Best way to get answer faster!

            andridesmana29@outlook.com

            Saya selalu senang mambantu!
            @endsection ================================================ FILE: resources/views/modul_admin/doc/version.blade.php ================================================ @extends('layouts.backend') @section('title','Versi & Pembaruan | Dokumentasi Aplikasi Laundry') @section('content')

            Versi & Pembaruan Aplikasi Laundry

            Pembaruan

            Punya Pertanyaan ?

            Telegram

            Best way to get answer faster!

            andridesmana29@outlook.com

            Saya selalu senang mambantu!
            @endsection ================================================ FILE: resources/views/modul_admin/finance/index.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Data Finance') @section('header','Data Finance') @section('content')

            Pendapatan

            Pendapatan Harian

            {{Rupiah::getRupiah($incomeD)}}

            Hari ini {{date('l')}}

            {{Rupiah::getRupiah($incomeDOld)}}

            Kemarin {{date("l",strtotime("-1 day"))}}

            Pendapatan

            Pendapatan Tahuan & Bulan

            {{Rupiah::getRupiah($incomeY)}}

            Tahun ini {{date('Y')}}

            {{Rupiah::getRupiah($incomeM)}}

            Bulan ini {{date('F')}}

            {{Rupiah::getRupiah($incomeYOld)}}

            Tahun lalu {{date("Y",strtotime("-1 year")) ?? 0}}

            {{-- Target Tercapai --}}

            Target Laundry Masuk Per-Hari

            {{$target->target_day}} /kg
            Tercapai {{$kgDay}} Kg

            Target Laundry Masuk Per-Bulan

            {{$target->target_month}} /kg
            Tercapai {{$kgMonth}} Kg

            Target Laundry Masuk Per-Tahun

            {{$target->target_year}} /kg
            Tercapai {{$kgYear}} Kg
            {{-- Pendapatan keseluruhan --}}

            Pendapatan Keseluruhan

            {{Rupiah::getRupiah($incomeAll)}}

            @php $p = new NumberFormatter("id", NumberFormatter::SPELLOUT); $result = preg_replace("/\..+/", "", $incomeAll); @endphp {{ucwords($p->format($result))}} Rupiah

            {{-- Pendapatan By-Cabang --}}

            Pendapatan By-Cabang

            @foreach ($getCabang as $cabang)
            Avatar
            {{$cabang->nama_cabang}}
            Bulan ini
            {{Rupiah::getRupiah($cabang->transaksi()->sum('harga_akhir'))}}
            @endforeach
            {{-- Pendapatan by bulan --}}

            Chart Pendapatan By-Bulan

            {{date('l, F Y')}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/index.blade.php ================================================ @extends('layouts.backend') @section('title','Dashboard Admin') @section('content')

            {{$customer->count()}}

            Jumlah Customer

            {{$masuk}}

            Laundry Masuk

            {{$selesai}}

            Laundry Selesai

            {{$diambil}}

            Laundry Diambil

            Pendapatan

            Pendapatan Tahuan & Bulan

            {{Rupiah::getRupiah($incomeY)}}

            Tahun ini {{date('Y')}}

            {{Rupiah::getRupiah($incomeM)}}

            Bulan ini {{date('F')}}

            {{Rupiah::getRupiah($incomeYOld)}}

            Tahun lalu {{date("Y",strtotime("-1 year")) ?? 0}}

            Pendapatan

            Pendapatan Harian

            {{Rupiah::getRupiah($incomeD)}}

            Hari ini {{date('l')}}

            {{Rupiah::getRupiah($incomeDOld)}}

            Kemarin {{date("l",strtotime("-1 day"))}}

            Data Laundry Masuk Per-hari

            Data Laundry Masuk Per-bulan

            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/laundri/editharga.blade.php ================================================ ================================================ FILE: resources/views/modul_admin/laundri/harga.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Data Harga Laundri') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif @if ($getBank > 0)
            {{-- Data Harga Laundry Per-Cabang --}}

            Data Harga Laundry Per-Cabang Tambah

            @foreach ($harga as $item) @endforeach
            # Jenis Lama Kg Harga Status Cabang Action
            {{$no}} {{$item->jenis}} {{$item->hari}} Hari {{$item->kg}} Kg {{Rupiah::getRupiah($item->harga)}} @if ($item->status == "1") Aktif @else Tidak Aktif @endif {{$item->harga_user->nama_cabang}} Edit
            @include('modul_admin.laundri.editharga')
            {{-- Form Tambah Data Harga --}}

            Form Tambah Data Harga

            @csrf
            @if ($karyawan == !null)
            @error('user_id') {{ $message }} @enderror
            @error('jenis') {{ $message }} @enderror
            @error('harga') {{ $message }} @enderror
            @error('hari') {{ $message }} @enderror
            @else
            Upsss, data karyawan/cabang masih kosong nih !!!

            Tambah Karyawan @endif
            @else

            Data Bank Kosong / Tidak Aktif !

            Mohon untuk melakukan penginputan Data Bank terlebih dahulu :)

            Input Data Bank
            @endif @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/pengguna/addkry.blade.php ================================================ @extends('layouts.backend') @section('title','Form Tambah Data Karyawan') @section('header','Tambah Karyawan') @section('content')

            Form Tambah Data Karyawan

            @error('errors')
            {{ $message }}
            @enderror
            @csrf
            @error('name') {{ $message }} @enderror
            @error('email') {{ $message }} @enderror
            @error('nama_cabang') {{ $message }} @enderror
            @error('password') {{ $message }} @enderror
            @error('password_confirmation') {{ $message }} @enderror
            @error('no_telp') {{ $message }} @enderror
            @error('alamat') {{ $message }} @enderror
            @error('alamat_cabang') {{ $message }} @enderror
            Batal
            @endsection ================================================ FILE: resources/views/modul_admin/pengguna/kry.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Data Karyawan') @section('header','Data Karyawan') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif

            Data Karyawan / Cabang Tambah

            @foreach ($kry as $item) @endforeach
            # Nama Karyawan Email Alamat Cabang Nama Cabang No Telp Status Action
            {{$no}} {{$item->name}} {{$item->email}} {{$item->alamat_cabang}} {{$item->nama_cabang}} {{$item->no_telp}} @if ($item->status == 'Active') Aktif @else Tidak Aktif @endif
            @csrf @method('DELETE') {{$item->status == 'Active' ? 'Non-Aktifkan' : 'Aktifkan'}}
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/setting/index.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Settings') @section('header','Settings') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif
            {{-- Panel General --}}
            @csrf @method('PUT')
            Recomendes Image size 1200p x 400p
            {{-- Panel Target --}} {{-- Panel Theme --}} {{-- Panel Bank --}} {{-- Panel Notifications --}}
            @include('modul_admin.setting.modal')
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/setting/modal.blade.php ================================================ {{-- Modal Edit Profile --}} ================================================ FILE: resources/views/modul_admin/setting/profile.blade.php ================================================ @extends('layouts.backend') @section('title','Profile') @section('content') @if ($message = Session::get('success'))
            {{ $message }}
            @elseif($message = Session::get('error'))
            {{ $message }}
            @endif

            {{$profile->name}}

            Admininstrator

            Email address
            {{$profile->email}}
            Phone
            {{$profile->no_telp}}
            Address
            {{$profile->alamat}}
            Social Profile
            @include('modul_admin.setting.modal') @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/transaksi/index.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Data Transaksi') @section('content')

            Data Transaksi

            @foreach ($transaksi as $key => $item) @endforeach
            # TGL Transaksi Customer Status Order Status Pembayaran Jenis Laundri Total Action
            {{$key+1}} {{carbon\carbon::parse($item->tgl_transaksi)->format('d-m-y')}} {{$item->customer}} @if ($item->status_order == 'Done') Selesai @elseif($item->status_order == 'Delivery') Sudah Diambil @elseif($item->status_order == 'Process') Sedang Proses @endif @if ($item->status_payment == 'Success') Sudah Dibayar @elseif($item->status_payment == 'Pending') Belum Dibayar @endif {{$item->price->jenis}}

            {{Rupiah::getRupiah($item->harga_akhir)}}

            Invoice
            @endsection @section('scripts') @endsection ================================================ FILE: resources/views/modul_admin/transaksi/invoice.blade.php ================================================ @extends('layouts.backend') @section('title','Admin - Invoice Customer') @section('header','Invoice Customer') @section('content')

            INVOICE {{$dataInvoice->invoice}}


            {{$dataInvoice->user->nama_cabang}}

            Diterima Oleh : {{$dataInvoice->user->name}}
            Alamat : {{$dataInvoice->user->alamat_cabang}}
            No. Telp : {{$dataInvoice->user->no_telp == 0 ? '-' : $dataInvoice->user->no_telp}}

            Detail Order Customer :

            {{$dataInvoice->customers->name}}
            {{$dataInvoice->customers->alamat}}
            {{$dataInvoice->customers->no_telp == 0 ? '-' : $dataInvoice->customers->no_telp}}

            Tanggal Masuk : {{carbon\carbon::parse($dataInvoice->customers->tgl_transaksi)->format('d F Y')}}

            Tanggal Diambil : @if ($dataInvoice->customers->tgl_ambil == "") Belum Diambil @else {{carbon\carbon::parse($dataInvoice->tgl_ambil)->format('d F Y')}} @endif

            @foreach ($invoice as $key => $item)
            # Jenis Pakaian Berat Harga Sub Total
            {{$key+1}} {{$item->price->jenis}} {{$item->kg}} Kg {{Rupiah::getRupiah($item->harga)}} /Kg

            {{Rupiah::getRupiah($hitung)}}

            Dengan Menandatangani/Menerima Nota Ini, Berarti Anda Setuju :

            1. Isi Deskripsi
            2. Isi Deskripsi

            Total : {{Rupiah::getRupiah($hitung)}}

            Disc @if ($item->disc == "") (0 %) @else ({{$item->disc}} %) @endif : {{Rupiah::getRupiah($disc)}}


            Total Bayar : {{Rupiah::getRupiah($hitung - $disc)}}

            @endforeach

            Kembali {{-- --}}
            @endsection ================================================ FILE: routes/api.php ================================================ get('/user', function (Request $request) { return $request->user(); }); ================================================ FILE: routes/channels.php ================================================ id === (int) $id; }); ================================================ FILE: routes/console.php ================================================ comment(Inspiring::quote()); })->describe('Display an inspiring quote'); ================================================ FILE: routes/web.php ================================================ false, ]); Route::middleware('auth')->group(function () { Route::get('/home', 'HomeController@index')->name('home'); Route::get('read-notifikasi','HomeController@readNotifikasi'); // Modul Admin Route::prefix('/')->middleware('role:Admin')->group(function () { Route::resource('admin','Admin\AdminController'); // Pengguna/karyawan Route::resource('karyawan','Admin\KaryawanController'); Route::get('update-satatus-karyawan','Admin\KaryawanController@updateKaryawan'); // Customer Route::resource('customer','Admin\CustomerController'); // Data Transaksi Route::resource('transaksi','Admin\TransaksiController'); Route::get('filter-transaksi','Admin\TransaksiController@filtertransaksi'); // filter data transaksi by karyawan Route::get('invoice-customer/{invoice}','Admin\TransaksiController@invoice'); // lihat invoice Route::get('data-harga','Admin\FinanceController@dataharga'); Route::post('harga-store','Admin\FinanceController@hargastore'); Route::get('edit-harga','Admin\FinanceController@hargaedit'); // Finance Route::get('finance','Admin\FinanceController@index')->name('finance.index'); // Notifikasi Route::get('read-notification','Admin\AdminController@notif'); // Setting Route::get('settings','Admin\SettingsController@setting'); Route::put('proses-setting-page/{id}','Admin\SettingsController@proses_set_page')->name('seting-page.update'); Route::put('set-theme/{id}','Admin\SettingsController@set_theme')->name('setting-theme.update'); Route::put('set-target-laundry/{id}','Admin\SettingsController@set_target_laundry')->name('set-target.update'); Route::post('add-bank','Admin\SettingsController@bank')->name('setting.bank'); Route::put('set-notif/{id}','Admin\SettingsController@notif')->name('set-notif.update'); // Profile Route::get('profile-admin/{id}','Admin\AdminController@profile'); Route::get('profile-admin-edit','Admin\AdminController@edit_profile'); // Dodkumentasi Route::get('dokumentasi','Admin\DokumentasiController@index'); // Dokumentasi Route::get('dokumentasi/tentang','Admin\DokumentasiController@tentang'); // Tentang Route::get('dokumentasi/instalasi-penggunaan','Admin\DokumentasiController@instalasi'); // Instalasi & Penggunaan Route::get('dokumentasi/versi','Admin\DokumentasiController@versi'); // Versi dan Pembaruan Route::get('dokumentasi/notifikasi','Admin\DokumentasiController@notifikasi'); // Notifikasi }); // Modul Karyawan Route::prefix('/')->middleware('role:Karyawan')->group(function () { Route::resource('pelayanan','Karyawan\PelayananController'); // Transaksi Route::get('add-order','Karyawan\PelayananController@addorders'); Route::get('update-status-laundry','Karyawan\PelayananController@updateStatusLaundry'); // Customer Route::get('customers','Karyawan\CustomerController@index'); Route::get('customers/{id}','Karyawan\CustomerController@detail'); Route::get('customers-create','Karyawan\CustomerController@create'); Route::post('customers-store','Karyawan\CustomerController@store'); // Filter Route::get('listharga','Karyawan\PelayananController@listharga'); Route::get('listhari','Karyawan\PelayananController@listhari'); // Laporan Route::get('laporan','Karyawan\LaporanController@laporan'); Route::get('export-excel','Karyawan\LaporanController@exportExcel'); // Invoice Route::get('invoice-kar/{id}','Karyawan\InvoiceController@invoicekar'); Route::get('cetak-invoice/{id}/print','Karyawan\InvoiceController@cetakinvoice'); // Profile Route::get('profile-karyawan/{id}','Karyawan\ProfileController@karyawanProfile'); Route::put('profile-karyawan/update/{id}','Karyawan\ProfileController@karyawanProfileSave'); // Setting Route::get('karyawan-setting','Karyawan\SettingsController@setting'); Route::put('proses-setting-karyawan/{id}','Karyawan\SettingsController@proses_setting_karyawan')->name('proses-setting-karyawan.update'); }); // Modul Customer Route::prefix('/')->middleware('role:Customer')->group(function (){ // Setting Route::get('setitng','Customer\SettingController@index')->name('customer.setting'); Route::put('setitng/{id}','Customer\SettingController@settingUpdateCustomer')->name('customer.setting-update'); // Profile Route::get('me','Customer\ProfileController@index'); Route::put('me/{id}','Customer\ProfileController@updateProfile'); }); }); ================================================ FILE: server.php ================================================ */ $uri = urldecode( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ); // This file allows us to emulate Apache's "mod_rewrite" functionality from the // built-in PHP web server. This provides a convenient way to test a Laravel // application without having installed a "real" web server software here. if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { return false; } require_once __DIR__.'/public/index.php'; ================================================ FILE: storage/app/.gitignore ================================================ * !public/ !.gitignore ================================================ FILE: storage/framework/.gitignore ================================================ config.php routes.php schedule-* compiled.php services.json events.scanned.php routes.scanned.php down ================================================ FILE: storage/framework/cache/.gitignore ================================================ * !data/ !.gitignore ================================================ FILE: storage/framework/sessions/.gitignore ================================================ * !.gitignore ================================================ FILE: storage/framework/testing/.gitignore ================================================ * !.gitignore ================================================ FILE: storage/framework/views/.gitignore ================================================ * !.gitignore ================================================ FILE: storage/logs/.gitignore ================================================ * !.gitignore ================================================ FILE: stubs/export.model.stub ================================================ make(Kernel::class)->bootstrap(); return $app; } } ================================================ FILE: tests/Feature/ExampleTest.php ================================================ get('/'); $response->assertStatus(200); } } ================================================ FILE: tests/TestCase.php ================================================ assertTrue(true); } } ================================================ FILE: webpack.mix.js ================================================ const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up all the JS files. | */ mix.js('resources/js/app.js', 'public/js') .vue() .sass('resources/sass/app.scss', 'public/css');