Changeset 2989869
- Timestamp:
- 11/06/2023 12:30:21 PM (2 years ago)
- Location:
- custom-post-types
- Files:
-
- 135 added
- 40 deleted
- 5 edited
-
tags/3.1.3 (deleted)
-
tags/4.0.0 (deleted)
-
tags/4.0.1 (deleted)
-
tags/4.0.10 (deleted)
-
tags/4.0.11 (deleted)
-
tags/4.0.2 (deleted)
-
tags/4.0.3 (deleted)
-
tags/4.0.4 (deleted)
-
tags/4.0.5 (deleted)
-
tags/4.0.6 (deleted)
-
tags/4.0.7 (deleted)
-
tags/4.0.8 (deleted)
-
tags/4.0.9 (deleted)
-
tags/5.0.0 (added)
-
tags/5.0.0/assets (added)
-
tags/5.0.0/assets/css (added)
-
tags/5.0.0/assets/css/backend.css (added)
-
tags/5.0.0/assets/dashboard-icon.svg (added)
-
tags/5.0.0/assets/icon-256x256.png (added)
-
tags/5.0.0/assets/icon.svg (added)
-
tags/5.0.0/assets/js (added)
-
tags/5.0.0/assets/js/backend.js (added)
-
tags/5.0.0/custom-post-types.php (added)
-
tags/5.0.0/includes (added)
-
tags/5.0.0/includes/abstracts (added)
-
tags/5.0.0/includes/abstracts/class-cpt-component.php (added)
-
tags/5.0.0/includes/abstracts/class-cpt-field.php (added)
-
tags/5.0.0/includes/args (added)
-
tags/5.0.0/includes/args/core-admin-pages-pro.php (added)
-
tags/5.0.0/includes/args/core-admin-pages.php (added)
-
tags/5.0.0/includes/args/core-post-types.php (added)
-
tags/5.0.0/includes/args/fields-field-group.php (added)
-
tags/5.0.0/includes/args/fields-post-type.php (added)
-
tags/5.0.0/includes/args/fields-repeater.php (added)
-
tags/5.0.0/includes/args/fields-taxonomy.php (added)
-
tags/5.0.0/includes/args/post-types-default-args.php (added)
-
tags/5.0.0/includes/args/post-types-default-labels.php (added)
-
tags/5.0.0/includes/args/taxonomies-default-args.php (added)
-
tags/5.0.0/includes/args/taxonomies-default-labels.php (added)
-
tags/5.0.0/includes/class-cpt-admin-notices.php (added)
-
tags/5.0.0/includes/class-cpt-admin-pages.php (added)
-
tags/5.0.0/includes/class-cpt-ajax.php (added)
-
tags/5.0.0/includes/class-cpt-core.php (added)
-
tags/5.0.0/includes/class-cpt-field-groups.php (added)
-
tags/5.0.0/includes/class-cpt-fields.php (added)
-
tags/5.0.0/includes/class-cpt-plugin.php (added)
-
tags/5.0.0/includes/class-cpt-post-types.php (added)
-
tags/5.0.0/includes/class-cpt-shortcodes.php (added)
-
tags/5.0.0/includes/class-cpt-taxonomies.php (added)
-
tags/5.0.0/includes/class-cpt-ui.php (added)
-
tags/5.0.0/includes/class-cpt-utils.php (added)
-
tags/5.0.0/includes/compatibilities (added)
-
tags/5.0.0/includes/compatibilities/saswp.php (added)
-
tags/5.0.0/includes/compatibilities/v4.php (added)
-
tags/5.0.0/includes/fields (added)
-
tags/5.0.0/includes/fields/class-cpt-field-checkbox.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-color.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-date.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-email.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-embed.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-file.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-html.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-link.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-map.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-number.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-password.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-post-rel.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-radio.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-range.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-repeater.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-select.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-separator.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-switch.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-tax-rel.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-tel.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-text.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-textarea.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-time.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-tinymce.php (added)
-
tags/5.0.0/includes/fields/class-cpt-field-user-rel.php (added)
-
tags/5.0.0/includes/functions.php (added)
-
tags/5.0.0/includes/templates (added)
-
tags/5.0.0/includes/templates/modal-feedback.php (added)
-
tags/5.0.0/includes/templates/page-tools.php (added)
-
tags/5.0.0/index.php (added)
-
tags/5.0.0/languages (added)
-
tags/5.0.0/languages/custom-post-types.pot (added)
-
tags/5.0.0/readme.txt (added)
-
trunk/assets/css/backend.css (modified) (1 diff)
-
trunk/assets/js/backend.js (modified) (2 diffs)
-
trunk/custom-post-types.php (modified) (1 diff)
-
trunk/includes/abstracts (added)
-
trunk/includes/abstracts/class-cpt-component.php (added)
-
trunk/includes/abstracts/class-cpt-field.php (added)
-
trunk/includes/args (added)
-
trunk/includes/args/core-admin-pages-pro.php (added)
-
trunk/includes/args/core-admin-pages.php (added)
-
trunk/includes/args/core-post-types.php (added)
-
trunk/includes/args/fields-field-group.php (added)
-
trunk/includes/args/fields-post-type.php (added)
-
trunk/includes/args/fields-repeater.php (added)
-
trunk/includes/args/fields-taxonomy.php (added)
-
trunk/includes/args/post-types-default-args.php (added)
-
trunk/includes/args/post-types-default-labels.php (added)
-
trunk/includes/args/taxonomies-default-args.php (added)
-
trunk/includes/args/taxonomies-default-labels.php (added)
-
trunk/includes/class-cpt-admin-notices.php (added)
-
trunk/includes/class-cpt-admin-pages.php (added)
-
trunk/includes/class-cpt-ajax.php (added)
-
trunk/includes/class-cpt-core.php (added)
-
trunk/includes/class-cpt-field-groups.php (added)
-
trunk/includes/class-cpt-fields.php (added)
-
trunk/includes/class-cpt-plugin.php (added)
-
trunk/includes/class-cpt-post-types.php (added)
-
trunk/includes/class-cpt-shortcodes.php (added)
-
trunk/includes/class-cpt-taxonomies.php (added)
-
trunk/includes/class-cpt-ui.php (added)
-
trunk/includes/class-cpt-utils.php (added)
-
trunk/includes/classes/AdminNotices.php (deleted)
-
trunk/includes/classes/AdminPages.php (deleted)
-
trunk/includes/classes/Api.php (deleted)
-
trunk/includes/classes/Core.php (deleted)
-
trunk/includes/classes/FieldGroups.php (deleted)
-
trunk/includes/classes/PostTypes.php (deleted)
-
trunk/includes/classes/Taxonomies.php (deleted)
-
trunk/includes/classes/Utils.php (deleted)
-
trunk/includes/compatibilities (added)
-
trunk/includes/compatibilities/saswp.php (added)
-
trunk/includes/compatibilities/v4.php (added)
-
trunk/includes/fields/checkbox.php (deleted)
-
trunk/includes/fields/class-cpt-field-checkbox.php (added)
-
trunk/includes/fields/class-cpt-field-color.php (added)
-
trunk/includes/fields/class-cpt-field-date.php (added)
-
trunk/includes/fields/class-cpt-field-email.php (added)
-
trunk/includes/fields/class-cpt-field-embed.php (added)
-
trunk/includes/fields/class-cpt-field-file.php (added)
-
trunk/includes/fields/class-cpt-field-html.php (added)
-
trunk/includes/fields/class-cpt-field-link.php (added)
-
trunk/includes/fields/class-cpt-field-map.php (added)
-
trunk/includes/fields/class-cpt-field-number.php (added)
-
trunk/includes/fields/class-cpt-field-password.php (added)
-
trunk/includes/fields/class-cpt-field-post-rel.php (added)
-
trunk/includes/fields/class-cpt-field-radio.php (added)
-
trunk/includes/fields/class-cpt-field-range.php (added)
-
trunk/includes/fields/class-cpt-field-repeater.php (added)
-
trunk/includes/fields/class-cpt-field-select.php (added)
-
trunk/includes/fields/class-cpt-field-separator.php (added)
-
trunk/includes/fields/class-cpt-field-switch.php (added)
-
trunk/includes/fields/class-cpt-field-tax-rel.php (added)
-
trunk/includes/fields/class-cpt-field-tel.php (added)
-
trunk/includes/fields/class-cpt-field-text.php (added)
-
trunk/includes/fields/class-cpt-field-textarea.php (added)
-
trunk/includes/fields/class-cpt-field-time.php (added)
-
trunk/includes/fields/class-cpt-field-tinymce.php (added)
-
trunk/includes/fields/class-cpt-field-user-rel.php (added)
-
trunk/includes/fields/color.php (deleted)
-
trunk/includes/fields/date.php (deleted)
-
trunk/includes/fields/email.php (deleted)
-
trunk/includes/fields/file.php (deleted)
-
trunk/includes/fields/html.php (deleted)
-
trunk/includes/fields/number.php (deleted)
-
trunk/includes/fields/post_rel.php (deleted)
-
trunk/includes/fields/pro-only.php (deleted)
-
trunk/includes/fields/radio.php (deleted)
-
trunk/includes/fields/repeater.php (deleted)
-
trunk/includes/fields/select.php (deleted)
-
trunk/includes/fields/tax_rel.php (deleted)
-
trunk/includes/fields/tel.php (deleted)
-
trunk/includes/fields/text.php (deleted)
-
trunk/includes/fields/textarea.php (deleted)
-
trunk/includes/fields/time.php (deleted)
-
trunk/includes/fields/tinymce.php (deleted)
-
trunk/includes/functions.php (added)
-
trunk/includes/templates (added)
-
trunk/includes/templates/modal-feedback.php (added)
-
trunk/includes/templates/page-tools.php (added)
-
trunk/includes/views/tools.php (deleted)
-
trunk/index.php (added)
-
trunk/languages/custom-post-types.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-post-types/trunk/assets/css/backend.css
r2955028 r2989869 1 :root{--cpt-white: #fff;--cpt-black: #000;--cpt-grey: #e0e0e0;--cpt-grey-2: #f0f1f2;--cpt-grey-4: #444;--cpt-grey-light: #fcfcfd;--cpt-grey-dark: #d5d8da;--cpt-blue: #2271b1;--cpt-blue-2: #135e96;--cpt-red: #dc3232;--cpt-red-2: #b32d2e;--cpt-yellow: #ffb900;--cpt-green: #00a32a}.cpt-fields-section:not([data-template]),.cpt-field .cpt-repeater-fields:not([data-template]),.cpt-fields-section[data-template=post-type-form],.cpt-field [data-template=post-type-form].cpt-repeater-fields{margin-bottom:1em;background:#e0e0e0;display:flex;flex-flow:row wrap}.inside .cpt-fields-section:not([data-template]),.inside .cpt-field .cpt-repeater-fields:not([data-template]),.cpt-field .inside .cpt-repeater-fields:not([data-template]),.inside .cpt-fields-section[data-template=post-type-form],.inside .cpt-field [data-template=post-type-form].cpt-repeater-fields,.cpt-field .inside [data-template=post-type-form].cpt-repeater-fields{margin:-6px -12px -12px}.cpt-field{width:100%}.cpt-field .cpt-file-section{position:relative}.cpt-field .cpt-file-wrap{height:150px;position:relative;width:150px}.cpt-field .cpt-file-wrap:hover .cpt-file-actions{z-index:3}.cpt-field .cpt-file-preview{background-color:#f5f5f5;height:100%;width:100%;position:absolute}.cpt-field .cpt-file-preview img{position:relative;z-index:2;background-color:#fff}.cpt-field .cpt-file-actions{align-items:center;background-color:rgba(245,245,245,.7);border:1px dashed #d5d8da;display:flex;flex-flow:column wrap;height:calc(100% - 22px);justify-content:flex-end;padding:10px;position:relative;transition:opacity .2s;width:calc(100% - 22px);z-index:1}.cpt-field .cpt-file-actions .file-name{font-size:smaller;padding-bottom:10px;overflow:hidden;text-overflow:ellipsis;width:100%;white-space:nowrap}.cpt-field .cpt-file-button{z-index:2;line-height:0}.cpt-field .cpt-repeater-section{counter-reset:seq}.cpt-field .cpt-repeater-group{display:flex;flex-flow:row nowrap;position:relative;width:100%}.cpt-field .cpt-repeater-group:first-child>.buttons{border-top:0}.cpt-field .cpt-repeater-group:last-child>.buttons{border-bottom:0}.cpt-field .cpt-repeater-buttons{background-color:#e0e0e0;border:1px solid #fff;border-left:0;border-right:0;display:flex;flex-flow:column wrap}.cpt-field .cpt-repeater-buttons .order{align-items:center;display:flex;margin:8px auto}.cpt-field .cpt-repeater-buttons .order:before{background:#fff;border-radius:4px;color:#444;counter-increment:seq;content:counter(seq);font-size:10px;font-weight:bold;line-height:18px;padding:0 6px}.cpt-field .cpt-repeater-buttons .move{color:#444;cursor:grab}.cpt-field .cpt-repeater-buttons .remove{color:#dc3232}.cpt-field .cpt-repeater-button{line-height:0;border:0;padding:8px;background:rgba(0,0,0,0)}.cpt-field .cpt-repeater-button:focus{box-shadow:unset}.cpt-field .cpt-repeater-button:hover{background:#fff}.cpt-field .cpt-repeater-fields{margin:0 !important;width:100%}.cpt-field .cpt-repeater-extra{display:flex;flex-flow:row wrap;width:100%}.cpt-field .cpt-repeater-remove{background:rgba(224,224,224,.9);position:absolute;z-index:2;display:flex;flex-flow:row wrap;justify-content:center;align-items:center;height:100%;width:100%;gap:20px;opacity:0;pointer-events:none;transition:opacity .3s ease}.cpt-field .cpt-repeater-remove.active{opacity:1;pointer-events:inherit}.cpt-field .cpt-repeater-add{margin:10px 0 0;background:unset;border:0;color:#2271b1;cursor:pointer;height:30px;width:34px;padding:0}.cpt-field .cpt-repeater-add:focus{box-shadow:unset;outline:none}.cpt-field .cpt-repeater-add .dashicons{font-size:30px;height:auto;width:auto}.cpt-field .cpt-repeater-add:disabled{display:none}.cpt-field .cpt-repeater-spinner{align-items:center;display:flex;height:40px;justify-content:center;width:100%}.cpt-field .cpt-repeater-spinner .spinner{background-position:center;height:20px;margin:0;visibility:visible;width:20px}.cpt-field .select2-container .select2-selection{min-height:40px !important}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection{min-height:30px !important}}.cpt-field .select2-container .select2-search--inline .select2-search__field{vertical-align:top !important}.cpt-field .select2-selection__arrow{height:37px !important}@media screen and (min-width: 783px){.cpt-field .select2-selection__arrow{height:29px !important}}.cpt-field .select2-container--default .select2-selection--multiple .select2-selection__choice{margin-bottom:0 !important;margin-top:4px !important;line-height:27px}@media screen and (min-width: 783px){.cpt-field .select2-container--default .select2-selection--multiple .select2-selection__choice{line-height:18px}}.cpt-field .select2-selection__choice__remove{line-height:27px}@media screen and (min-width: 783px){.cpt-field .select2-selection__choice__remove{line-height:18px}}.cpt-field .select2-container--default .select2-selection--multiple .select2-selection__clear{height:34px !important;margin-top:0 !important}@media screen and (min-width: 783px){.cpt-field .select2-container--default .select2-selection--multiple .select2-selection__clear{height:26px !important}}.cpt-field .select2-selection__rendered:not(ul){line-height:38px !important}@media screen and (min-width: 783px){.cpt-field .select2-selection__rendered:not(ul){line-height:28px !important}}.cpt-field-tinymce textarea{display:inline-block !important}.cpt-field-tinymce textarea[aria-hidden=true]{opacity:0;pointer-events:none;position:absolute;bottom:0;left:0}@media screen and (max-width: 782px){.cpt-field{width:100% !important}}.cpt-field-required label[for]:after{content:"*";margin-left:4px;font-weight:bold}.cpt-field-inner{margin:1px}.cpt-field-wrap{background:#fff;display:flex;flex-flow:column wrap;padding:10px 15px;transition:background .1s ease-in-out}.cpt-field-wrap:hover{background:#fcfcfd}.cpt-field-wrap label{margin-bottom:3px}.cpt-field-wrap.advanced-field{height:0;overflow:hidden;pointer-events:none;padding:0;margin:-1px 0}.cpt-field-wrap.advanced-field.active{height:auto;overflow:auto;pointer-events:auto;padding:10px 15px;margin:unset}.cpt-field-wrap.advanced-field-btn .button{align-items:center;display:flex;justify-content:center;min-height:35px;text-align:center;width:100%}.cpt-field-wrap.advanced-field-btn .button .dashicons{margin-right:10px}.cpt-field-wrap .input input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),.cpt-field-wrap .input select,.cpt-field-wrap .input textarea{width:100%}.cpt-field-wrap .input textarea:not([class^=select2]){height:100px}.cpt-field-wrap .input .template-shortcode{margin:15px 0 0}.cpt-field-wrap .input .template-shortcode input{border:0;background:rgba(0,0,0,0);cursor:copy;margin:0}.cpt-field-wrap .input .template-shortcode input:not(:last-child){margin:0 0 10px}.cpt-field-wrap .description{margin-top:3px}.cpt-field-wrap .description p{font-size:smaller;opacity:.7;margin:0;padding:0}@media screen and (min-width: 783px){.cpt-field-wrap.horizontal{flex-flow:row wrap}.cpt-field-wrap.horizontal label{display:flex;justify-content:end;text-align:right;width:15%;padding-right:13px;margin:0}.cpt-field-wrap.horizontal .input{flex:1}.cpt-field-wrap.horizontal .description{width:35%;padding-left:13px;margin:0}}.cpt-notice .notice-title{display:block}.cpt-notice .message{margin:.5em 0;padding:2px}.cpt-notice .message p:first-child{margin-top:0;padding-top:0}.cpt-notice .message p:last-child{margin-bottom:0;padding-bottom:0}.cpt-notice .actions{margin-top:1em;padding-top:.5em;border-top:1px solid #d5d8da}.cpt-notice .actions .dashicons{font-size:110%;text-decoration:none;vertical-align:middle}.cpt-notice .actions a:not(:last-child){margin-right:20px}.cpt-notice .cpt-dismiss-notice{color:#b32d2e}.cpt-notice pre.error-code{margin:.5em 0 0}.cpt-notice pre.error-code code{padding:5px;display:none}.cpt-notice pre.error-code code.show{display:block}.cpt-pro-banner{border:5px dashed #ffb900;display:inline-block;margin:20px 0;max-width:300px;padding:0 1em;text-align:center;width:100%}.cpt-row{display:flex;flex-flow:row wrap;margin-left:-15px;margin-right:-15px}.cpt-col-3{padding:0 15px;width:calc(100% - 30px)}@media screen and (min-width: 783px){.cpt-col-3{width:calc(33.3333333333% - 30px)}}.cpt-hidden-input{bottom:0;opacity:0;position:absolute;pointer-events:none;max-width:148px}2 .datepicker{width:min-content}.datepicker:not(.active){display:none}.datepicker-dropdown{position:absolute;z-index:20;padding-top:4px}.datepicker-dropdown.datepicker-orient-top{padding-top:0;padding-bottom:4px}.datepicker-picker{display:flex;flex-direction:column;border-radius:4px;background-color:#fff}.datepicker-dropdown .datepicker-picker{box-shadow:0 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1)}.datepicker-main{flex:auto;padding:2px}.datepicker-footer{box-shadow:inset 0 1px 1px rgba(10,10,10,.1);background-color:#f5f5f5}.datepicker-title{box-shadow:inset 0 -1px 1px rgba(10,10,10,.1);background-color:#f5f5f5;padding:.375rem .75rem;text-align:center;font-weight:700}.datepicker-controls{display:flex}.datepicker-header .datepicker-controls{padding:2px 2px 0}.datepicker-controls .button{display:inline-flex;position:relative;align-items:center;justify-content:center;margin:0;border:1px solid #dcdcdc;border-radius:4px;box-shadow:none;background-color:#fff;cursor:pointer;padding:calc(0.375em - 1px) .75em;height:2.25em;vertical-align:top;text-align:center;line-height:1.5;white-space:nowrap;color:#363636;font-size:1rem}.datepicker-controls .button:focus,.datepicker-controls .button:active{outline:none}.datepicker-controls .button:hover{border-color:#b8b8b8;color:#363636}.datepicker-controls .button:focus{border-color:#3273dc;color:#363636}.datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.datepicker-controls .button:active{border-color:#474747;color:#363636}.datepicker-controls .button[disabled]{cursor:not-allowed}.datepicker-header .datepicker-controls .button{border-color:rgba(0,0,0,0);font-weight:bold}.datepicker-header .datepicker-controls .button:hover{background-color:#f9f9f9}.datepicker-header .datepicker-controls .button:active{background-color:#f2f2f2}.datepicker-footer .datepicker-controls .button{flex:auto;margin:calc(.375rem - 1px) .375rem;border-radius:2px;font-size:.75rem}.datepicker-controls .view-switch{flex:auto}.datepicker-controls .prev-button,.datepicker-controls .next-button{padding-right:.375rem;padding-left:.375rem;flex:0 0 14.2857142857%}.datepicker-controls .prev-button.disabled,.datepicker-controls .next-button.disabled{visibility:hidden}.datepicker-view,.datepicker-grid{display:flex}.datepicker-view{align-items:stretch;width:15.75rem}.datepicker-grid{flex-wrap:wrap;flex:auto}.datepicker .days{display:flex;flex-direction:column;flex:auto}.datepicker .days-of-week{display:flex}.datepicker .week-numbers{display:flex;flex-direction:column;flex:0 0 9.6774193548%}.datepicker .weeks{display:flex;flex-direction:column;align-items:stretch;flex:auto}.datepicker span{display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:default;-webkit-touch-callout:none;user-select:none}.datepicker .dow{height:1.5rem;font-size:.875rem;font-weight:700}.datepicker .week{flex:auto;color:#b8b8b8;font-size:.75rem}.datepicker-cell,.datepicker .days .dow{flex-basis:14.2857142857%}.datepicker-cell{height:2.25rem}.datepicker-cell:not(.day){flex-basis:25%;height:4.5rem}.datepicker-cell:not(.disabled):hover{background-color:#f9f9f9;cursor:pointer}.datepicker-cell.focused:not(.selected){background-color:#e9e9e9}.datepicker-cell.selected,.datepicker-cell.selected:hover{background-color:#3273dc;color:#fff;font-weight:600}.datepicker-cell.disabled{color:#dcdcdc}.datepicker-cell.prev:not(.disabled),.datepicker-cell.next:not(.disabled){color:#7a7a7a}.datepicker-cell.prev.selected,.datepicker-cell.next.selected{color:#e6e6e6}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today){border-radius:0;background-color:#f5f5f5}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover{background-color:#efefef}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused{background-color:#e9e9e9}.datepicker-cell.today:not(.selected){background-color:#00d1b2}.datepicker-cell.today:not(.selected):not(.disabled){color:#fff}.datepicker-cell.today.focused:not(.selected){background-color:#00ccad}.datepicker-cell.range-end:not(.selected),.datepicker-cell.range-start:not(.selected){background-color:#b8b8b8;color:#fff}.datepicker-cell.range-end.focused:not(.selected),.datepicker-cell.range-start.focused:not(.selected){background-color:#b3b3b3}.datepicker-cell.range-start:not(.range-end){border-radius:4px 0 0 4px}.datepicker-cell.range-end:not(.range-start){border-radius:0 4px 4px 0}.datepicker-cell.range{border-radius:0;background-color:#dcdcdc}.datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover{background-color:#d7d7d7}.datepicker-cell.range.disabled{color:#c6c6c6}.datepicker-cell.range.focused{background-color:#d1d1d1}.datepicker-input.in-edit{border-color:#276bda}.datepicker-input.in-edit:focus,.datepicker-input.in-edit:active{box-shadow:0 0 .25em .25em rgba(39,107,218,.2)}3 . 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{background-color:rgba(0,0,0,0);border:none;font-size:1em}.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;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:rgba(0,0,0,0);border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;margin-left:5px;padding:0;max-width:100%;resize:none;height:18px;vertical-align:bottom;font-family:sans-serif;overflow:hidden;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;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--selectable{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;height:26px;margin-right:20px;padding-right:0px}.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 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);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:rgba(0,0,0,0) rgba(0,0,0,0) #888 rgba(0,0,0,0);border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:bold;height:20px;margin-right:10px;margin-top:5px;position:absolute;right:0;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;padding:0;padding-left:20px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:rgba(0,0,0,0);border:none;border-right:1px solid #aaa;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px;position:absolute;left:0;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus{background-color:#f1f1f1;color:#333;outline:none}.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__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 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:rgba(0,0,0,0);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 .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--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:#fff}.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;height:26px;margin-right:20px}.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 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);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:rgba(0,0,0,0);border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #888 rgba(0,0,0,0);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:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.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;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:rgba(0,0,0,0);border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.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:#fff;border:1px solid rgba(0,0,0,0)}.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--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:gray}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}1 .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:#fff;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 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);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:rgba(0,0,0,0) rgba(0,0,0,0) #888 rgba(0,0,0,0);border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;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 #000 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:rgba(0,0,0,0);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:#fff}.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 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);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:rgba(0,0,0,0);border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #888 rgba(0,0,0,0);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:#fff;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:#fff;border:1px solid rgba(0,0,0,0)}.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:gray}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} 2 :root{--cpt-white: #fff;--cpt-black: #000;--cpt-grey: #e0e0e0;--cpt-grey-2: #f0f1f2;--cpt-grey-4: #444;--cpt-grey-light: #fcfcfd;--cpt-grey-dark: #d5d8da;--cpt-blue: #2271b1;--cpt-blue-2: #135e96;--cpt-red: #dc3232;--cpt-red-2: #b32d2e;--cpt-yellow: #ffb900;--cpt-green: #00a32a}.cpt-fields-section:not([data-template]),.cpt-field .cpt-repeater-fields:not([data-template]),.cpt-fields-section[data-template=post-type-form],.cpt-field [data-template=post-type-form].cpt-repeater-fields{margin-bottom:1em;background:#e0e0e0;display:flex;flex-flow:row wrap}.inside .cpt-fields-section:not([data-template]),.inside .cpt-field .cpt-repeater-fields:not([data-template]),.cpt-field .inside .cpt-repeater-fields:not([data-template]),.inside .cpt-fields-section[data-template=post-type-form],.inside .cpt-field [data-template=post-type-form].cpt-repeater-fields,.cpt-field .inside [data-template=post-type-form].cpt-repeater-fields{margin:-6px -12px -12px}.cpt-field{width:100%}.cpt-field .cpt-file-section{position:relative}.cpt-field .cpt-file-wrap{height:150px;position:relative;width:150px}.cpt-field .cpt-file-wrap:hover .cpt-file-actions{z-index:3}.cpt-field .cpt-file-preview{background-color:#f5f5f5;height:100%;width:100%;position:absolute}.cpt-field .cpt-file-preview img{position:relative;z-index:2;background-color:#fff}.cpt-field .cpt-file-actions{align-items:center;background-color:rgba(245,245,245,.7);border:1px dashed #d5d8da;display:flex;flex-flow:column wrap;height:calc(100% - 22px);justify-content:flex-end;padding:10px;position:relative;transition:opacity .2s;width:calc(100% - 22px);z-index:1}.cpt-field .cpt-file-actions .file-name{font-size:smaller;padding-bottom:10px;overflow:hidden;text-overflow:ellipsis;width:100%;white-space:nowrap}.cpt-field .cpt-file-button{z-index:2;line-height:0}.cpt-field .cpt-repeater-section{counter-reset:seq}.cpt-field .cpt-repeater-group{display:flex;flex-flow:row nowrap;position:relative;width:100%}.cpt-field .cpt-repeater-group:first-child>.buttons{border-top:0}.cpt-field .cpt-repeater-group:last-child>.buttons{border-bottom:0}.cpt-field .cpt-repeater-buttons{background-color:#e0e0e0;border:1px solid #fff;border-left:0;border-right:0;display:flex;flex-flow:column wrap}.cpt-field .cpt-repeater-buttons .order{align-items:center;display:flex;margin:8px auto}.cpt-field .cpt-repeater-buttons .order:before{background:#fff;border-radius:4px;color:#444;counter-increment:seq;content:counter(seq);font-size:10px;font-weight:bold;line-height:18px;padding:0 6px}.cpt-field .cpt-repeater-buttons .move{color:#444;cursor:grab}.cpt-field .cpt-repeater-buttons .remove{color:#dc3232}.cpt-field .cpt-repeater-button{line-height:0;border:0;padding:8px;background:rgba(0,0,0,0)}.cpt-field .cpt-repeater-button:focus{box-shadow:unset}.cpt-field .cpt-repeater-button:hover{background:#fff}.cpt-field .cpt-repeater-fields{margin:0 !important;width:100%}.cpt-field .cpt-repeater-extra{display:flex;flex-flow:row wrap;width:100%}.cpt-field .cpt-repeater-remove{background:rgba(224,224,224,.9);position:absolute;z-index:2;display:flex;flex-flow:row wrap;justify-content:center;align-items:center;height:100%;width:100%;gap:20px;opacity:0;pointer-events:none;transition:opacity .3s ease}.cpt-field .cpt-repeater-remove.active{opacity:1;pointer-events:inherit}.cpt-field .cpt-repeater-add{margin:10px 0 0;background:unset;border:0;color:#2271b1;cursor:pointer;height:30px;width:34px;padding:0}.cpt-field .cpt-repeater-add:focus{box-shadow:unset;outline:none}.cpt-field .cpt-repeater-add .dashicons{font-size:30px;height:auto;width:auto}.cpt-field .cpt-repeater-add:disabled{display:none}.cpt-field .cpt-repeater-spinner{align-items:center;display:flex;height:40px;justify-content:center;width:100%}.cpt-field .cpt-repeater-spinner .spinner{background-position:center;height:20px;margin:0;visibility:visible;width:20px}.cpt-field .select2-container .select2-selection{border-color:#8c8f94}.cpt-field .select2-container .select2-selection--multiple{line-height:0;min-height:40px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--multiple{min-height:30px}}.cpt-field .select2-container .select2-selection--multiple .select2-search--inline{margin:0}.cpt-field .select2-container .select2-selection--multiple .select2-search--inline .select2-search__field{margin-top:0;min-height:38px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--multiple .select2-search--inline .select2-search__field{min-height:28px}}.cpt-field .select2-container .select2-selection--multiple .select2-selection__clear{line-height:36px;margin-top:0}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--multiple .select2-selection__clear{line-height:24px}}.cpt-field .select2-container .select2-selection--multiple .select2-selection__choice{margin-bottom:0;margin-top:6px;line-height:24px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--multiple .select2-selection__choice{margin-top:4px;line-height:18px}}.cpt-field .select2-container .select2-selection--single{line-height:0;min-height:40px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--single{min-height:30px}}.cpt-field .select2-container .select2-selection--single .select2-selection__rendered{line-height:38px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--single .select2-selection__rendered{line-height:28px}}.cpt-field .select2-container .select2-selection--single .select2-selection__clear{line-height:38px;margin-top:0}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--single .select2-selection__clear{line-height:27px}}.cpt-field .select2-container .select2-selection--single .select2-selection__arrow{height:38px}@media screen and (min-width: 783px){.cpt-field .select2-container .select2-selection--single .select2-selection__arrow{height:28px}}.cpt-field-tinymce textarea{display:inline-block !important}.cpt-field-tinymce textarea[aria-hidden=true]{opacity:0;pointer-events:none;position:absolute;bottom:0;left:0}@media screen and (max-width: 782px){.cpt-field{width:100% !important}}.cpt-field-required label[for]:after{content:"*";margin-left:4px;font-weight:bold}.cpt-field-inner{margin:1px}.cpt-field-wrap{background:#fff;display:flex;flex-flow:column nowrap;padding:10px 15px;transition:background .1s ease-in-out}.cpt-field-wrap:hover{background:#fcfcfd}.cpt-field-wrap label{margin-bottom:3px}.cpt-field-wrap.advanced-field{height:0;overflow:hidden;pointer-events:none;padding:0;margin:-1px 0}.cpt-field-wrap.advanced-field.active{height:auto;overflow:auto;pointer-events:auto;padding:10px 15px;margin:unset}.cpt-field-wrap.advanced-field-btn .button{align-items:center;display:flex;justify-content:center;min-height:35px;text-align:center;width:100%}.cpt-field-wrap.advanced-field-btn .button .dashicons{margin-right:10px}.cpt-field-wrap .input input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),.cpt-field-wrap .input select,.cpt-field-wrap .input textarea{width:100%}.cpt-field-wrap .input textarea:not([class^=select2]){height:100px}.cpt-field-wrap .input .template-shortcode{margin:15px 0 0}.cpt-field-wrap .input .template-shortcode input{border:0;background:rgba(0,0,0,0);cursor:copy;margin:0}.cpt-field-wrap .input .template-shortcode input:not(:last-child){margin:0 0 10px}.cpt-field-wrap.cpt-field-prepend .input{display:flex;flex-flow:row nowrap}.cpt-field-wrap.cpt-field-prepend .input input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]){border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;z-index:1}.cpt-field-wrap.cpt-field-append .input{display:flex;flex-flow:row nowrap}.cpt-field-wrap.cpt-field-append .input input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]){border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;z-index:1}.cpt-field-wrap .prepend,.cpt-field-wrap .append{background-color:#f5f5f5;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #8c8f94;color:#2c3338;margin-right:-2px;line-height:1.4;padding:4px 8px}.cpt-field-wrap .append{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;margin:0;margin-left:-2px}.cpt-field-wrap .description{margin-top:3px}.cpt-field-wrap .description p{font-size:smaller;opacity:.7;margin:0;padding:0}@media screen and (min-width: 783px){.cpt-field-wrap.horizontal{flex-flow:row nowrap}.cpt-field-wrap.horizontal label{display:flex;justify-content:end;text-align:right;width:15%;padding-right:13px;margin:0}.cpt-field-wrap.horizontal .input{flex:1}.cpt-field-wrap.horizontal .description{width:35%;padding-left:13px;margin:0}}.cpt-notice .notice-title{display:block}.cpt-notice .message{margin:.5em 0;padding:2px}.cpt-notice .message p:first-child{margin-top:0;padding-top:0}.cpt-notice .message p:last-child{margin-bottom:0;padding-bottom:0}.cpt-notice .actions{margin-top:1em;padding-top:.5em;border-top:1px solid #d5d8da}.cpt-notice .actions .dashicons{font-size:110%;text-decoration:none;vertical-align:middle}.cpt-notice .actions a:not(:last-child){margin-right:20px}.cpt-notice .cpt-dismiss-notice{color:#b32d2e}.cpt-notice pre.error-code{margin:.5em 0 0}.cpt-notice pre.error-code code{padding:5px;display:none}.cpt-notice pre.error-code code.show{display:block}.cpt-pro-banner{border:5px dashed #ffb900;display:inline-block;margin:20px 0;max-width:300px;padding:0 1em;text-align:center;width:100%}.cpt-row{display:flex;flex-flow:row wrap;margin-left:-15px;margin-right:-15px}.cpt-col-3{padding:0 15px;width:calc(100% - 30px)}@media screen and (min-width: 783px){.cpt-col-3{width:calc(33.3333333333% - 30px)}}.cpt-hidden-input{bottom:0;opacity:0;position:absolute;pointer-events:none;max-width:148px}.cpt-modal #TB_title{display:none}.cpt-modal #TB_ajaxContent{width:100% !important;height:100% !important;padding:0}.cpt-modal-wrap{display:flex;flex-flow:column wrap;height:100%}.cpt-modal-title,.cpt-modal-content,.cpt-modal-actions{padding:20px}.cpt-modal-title,.cpt-modal-actions{background:#f0f0f1}.cpt-modal-title *{margin:0}.cpt-modal-content{margin-bottom:auto}.cpt-modal-content p{padding:0 !important;margin:0 0 10px;font-size:20px}.cpt-modal-content form{margin-top:16px}.cpt-modal-actions{display:flex;flex-flow:row wrap;justify-content:space-between}.cpt-modal-input-label{display:block}.cpt-modal-input-label:not(:last-child){margin-bottom:15px}.cpt-modal-input-text{width:100%;height:100px;margin:10px 0 0;padding:5px 10px;border-radius:0}.cpt-modal-input-checkbox-wrap{margin:10px 0 -5px}.cpt-modal-input-checkbox{display:inline-block;margin:0 5px 5px 0}.cpt-modal-input-checkbox input{position:absolute;opacity:0 !important;height:0;width:0}.cpt-modal-input-checkbox input:checked~button{background-color:#2271b1;color:#fff;border-color:#2271b1}.cpt-modal-input-checkbox button{pointer-events:none} 3 .datepicker{width:min-content}.datepicker:not(.active){display:none}.datepicker-dropdown{position:absolute;z-index:20;padding-top:4px}.datepicker-dropdown.datepicker-orient-top{padding-top:0;padding-bottom:4px}.datepicker-picker{display:flex;flex-direction:column;border-radius:4px;background-color:#fff}.datepicker-dropdown .datepicker-picker{box-shadow:0 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1)}.datepicker-main{flex:auto;padding:2px}.datepicker-footer{box-shadow:inset 0 1px 1px rgba(10,10,10,.1);background-color:#f5f5f5}.datepicker-title{box-shadow:inset 0 -1px 1px rgba(10,10,10,.1);background-color:#f5f5f5;padding:.375rem .75rem;text-align:center;font-weight:700}.datepicker-controls{display:flex}.datepicker-header .datepicker-controls{padding:2px 2px 0}.datepicker-controls .button{display:inline-flex;position:relative;align-items:center;justify-content:center;margin:0;border:1px solid #dcdcdc;border-radius:4px;box-shadow:none;background-color:#fff;cursor:pointer;padding:calc(.375em - 1px) .75em;height:2.25em;vertical-align:top;text-align:center;line-height:1.5;white-space:nowrap;color:#363636;font-size:1rem}.datepicker-controls .button:focus,.datepicker-controls .button:active{outline:none}.datepicker-controls .button:hover{border-color:#b8b8b8;color:#363636}.datepicker-controls .button:focus{border-color:#3273dc;color:#363636}.datepicker-controls .button:focus:not(:active){box-shadow:0 0 0 .125em rgba(50,115,220,.25)}.datepicker-controls .button:active{border-color:#474747;color:#363636}.datepicker-controls .button[disabled]{cursor:not-allowed}.datepicker-header .datepicker-controls .button{border-color:rgba(0,0,0,0);font-weight:bold}.datepicker-header .datepicker-controls .button:hover{background-color:#f9f9f9}.datepicker-header .datepicker-controls .button:active{background-color:#f2f2f2}.datepicker-footer .datepicker-controls .button{flex:auto;margin:calc(.375rem - 1px) .375rem;border-radius:2px;font-size:.75rem}.datepicker-controls .view-switch{flex:auto}.datepicker-controls .prev-button,.datepicker-controls .next-button{padding-right:.375rem;padding-left:.375rem;flex:0 0 14.2857142857%}.datepicker-controls .prev-button.disabled,.datepicker-controls .next-button.disabled{visibility:hidden}.datepicker-view,.datepicker-grid{display:flex}.datepicker-view{align-items:stretch;width:15.75rem}.datepicker-grid{flex-wrap:wrap;flex:auto}.datepicker .days{display:flex;flex-direction:column;flex:auto}.datepicker .days-of-week{display:flex}.datepicker .week-numbers{display:flex;flex-direction:column;flex:0 0 9.6774193548%}.datepicker .weeks{display:flex;flex-direction:column;align-items:stretch;flex:auto}.datepicker span{display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:default;-webkit-touch-callout:none;user-select:none}.datepicker .dow{height:1.5rem;font-size:.875rem;font-weight:700}.datepicker .week{flex:auto;color:#b8b8b8;font-size:.75rem}.datepicker-cell,.datepicker .days .dow{flex-basis:14.2857142857%}.datepicker-cell{height:2.25rem}.datepicker-cell:not(.day){flex-basis:25%;height:4.5rem}.datepicker-cell:not(.disabled):hover{background-color:#f9f9f9;cursor:pointer}.datepicker-cell.focused:not(.selected){background-color:#e9e9e9}.datepicker-cell.selected,.datepicker-cell.selected:hover{background-color:#3273dc;color:#fff;font-weight:600}.datepicker-cell.disabled{color:#dcdcdc}.datepicker-cell.prev:not(.disabled),.datepicker-cell.next:not(.disabled){color:#7a7a7a}.datepicker-cell.prev.selected,.datepicker-cell.next.selected{color:#e6e6e6}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today){border-radius:0;background-color:#f5f5f5}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover{background-color:#efefef}.datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused{background-color:#e9e9e9}.datepicker-cell.today:not(.selected){background-color:#00d1b2}.datepicker-cell.today:not(.selected):not(.disabled){color:#fff}.datepicker-cell.today.focused:not(.selected){background-color:#00ccad}.datepicker-cell.range-end:not(.selected),.datepicker-cell.range-start:not(.selected){background-color:#b8b8b8;color:#fff}.datepicker-cell.range-end.focused:not(.selected),.datepicker-cell.range-start.focused:not(.selected){background-color:#b3b3b3}.datepicker-cell.range-start:not(.range-end){border-radius:4px 0 0 4px}.datepicker-cell.range-end:not(.range-start){border-radius:0 4px 4px 0}.datepicker-cell.range{border-radius:0;background-color:#dcdcdc}.datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover{background-color:#d7d7d7}.datepicker-cell.range.disabled{color:#c6c6c6}.datepicker-cell.range.focused{background-color:#d1d1d1}.datepicker-input.in-edit{border-color:#276bda}.datepicker-input.in-edit:focus,.datepicker-input.in-edit:active{box-shadow:0 0 .25em .25em rgba(39,107,218,.2)} -
custom-post-types/trunk/assets/js/backend.js
r2959211 r2989869 1 !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=jQuery},function(e,t,n){ },function(e,t,n){var i,r,o;r=[n(0)],void 0===(o="function"==typeof(i=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){1 !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=jQuery},function(e,t,n){var i,r,o;r=[n(0)],void 0===(o="function"==typeof(i=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){ 2 2 /** 3 3 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. 4 4 * Released under MIT license, http://github.com/requirejs/almond/LICENSE 5 5 */ 6 var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){var r,o,s,a,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function g(e,t){return h.call(e,t)}function m(e,t){var n,i,r,o,s,a,l,c,d,h,p,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(h=g.length;h>0;h-=1)if((r=m[g.slice(0,h).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function v(e,t){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(void 0,n.concat([e,t]))}}function y(e){return function(t){l[e]=t}}function b(e){if(g(c,e)){var t=c[e];delete c[e],d[e]=!0,r.apply(void 0,t)}if(!g(l,e)&&!g(d,e))throw new Error("No "+e);return l[e]}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function _(e){return e?w(e):[]}function k(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,i,r=w(e),o=r[0],s=t[1];return e=r[1],o&&(n=b(o=m(o,s))),o?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(o=(r=w(e=m(e,s)))[0],e=r[1],o&&(n=b(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:k(e)}}},r=function(e,t,n,i){var r,o,u,h,p,f,m,w=[],k=typeof n;if(f=_(i=i||e),"undefined"===k||"function"===k){for(t=!t.length&&n.length?["require","exports","module"]:t,p=0;p<t.length;p+=1)if("require"===(o=(h=s(t[p],f)).f))w[p]=a.require(e);else if("exports"===o)w[p]=a.exports(e),m=!0;else if("module"===o)r=w[p]=a.module(e);else if(g(l,o)||g(c,o)||g(d,o))w[p]=b(o);else{if(!h.p)throw new Error(e+" missing "+o);h.p.load(h.n,v(i,!0),y(o),{}),w[p]=l[o]}u=n?n.apply(l[e],w):void 0,e&&(r&&void 0!==r.exports&&r.exports!==l[e]?l[e]=r.exports:void 0===u&&m||(l[e]=u))}else e&&(l[e]=n)},e=n=o=function(e,t,n,i,l){if("string"==typeof e)return a[e]?a[e](t):b(s(e,_(t)).f);if(!e.splice){if((u=e).deps&&o(u.deps,u.callback),!t)return;t.splice?(e=t,t=n,n=null):e=void 0}return t=t||function(){},"function"==typeof n&&(n=i,i=l),i?r(void 0,e,t,n):setTimeout((function(){r(void 0,e,t,n)}),4),o},o.config=function(e){return o(e)},e._defined=l,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&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."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<r.length;s++){var a=r[s];o.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var i=t.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];o.prototype[u]=l(u)}return o};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++r).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0===e.indexOf("select2-")}));var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0!==e.indexOf("select2-")}));var r=n.concat(i);e.setAttribute("class",r.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&r.indexOf(o)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var r={role:"option"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(r["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);u.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=r.getHighlightedResults(),t=r.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=r.getHighlightedResults(),t=r.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){r.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),o=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{}):r.trigger("select",{originalEvent:n,data:o})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),r.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):e(n).append(o)},n})),t.define("select2/keys",[],(function(){return{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}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,r){var o=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",(function(e){o.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!o.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){o.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r<e.length;r++){var o=e[r],s=this.selectionContainer(),a=this.display(o,s),l=i+n.generateChars(4)+"-";o.id?l+=o.id:l+=n.generateChars(4),s.find(".select2-selection__choice__display").append(a).attr("id",l);var c=o.title||o.text;c&&s.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=s.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),n.StoreData(s[0],"data",o),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},i})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var i=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",i),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&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(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.$selection.find(".select2-selection__rendered").attr("id"),o=this.options.get("translations").get("removeAllItems"),s=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');s.attr("title",o()),s.attr("aria-label",o()),s.attr("aria-describedby",r),n.StoreData(s[0],"data",i),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable")}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var r=t.call(this);return this._transferTabIndex(),r.append(this.$searchContainer),r},i.prototype.bind=function(e,i,r){var o=this,s=i.id+"-results",a=i.id+"-container";e.call(this,i,r),o.$search.attr("aria-describedby",a),i.on("open",(function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.resizeSearch(),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(e){o.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){o.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$selection.find(".select2-selection__choice").last();if(i.length>0){var r=t.GetData(i[0],"data");o.searchRemoveChoice(r),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){o.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==o.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==s.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var r=0;r<e.length;r++){var o=e[r].id;-1===i.indexOf(o)&&i.push(o)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var i=[],r=0;r<n.length;r++){var o=n[r].id;o!==e.id&&-1===i.indexOf(o)&&i.push(o)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),o=r.item(t),s=r.matches(e,o);null!==s&&i.push(s)}})),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var r=this._normalizeItem(e);return r.element=i,t.StoreData(i,"data",r),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var r=e[0];if("option"===r.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===r.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),s=[],a=0;a<o.length;a++){var l=n(o[a]),c=this.item(l);s.push(c)}i.children=s}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),r=i.map((function(){return t.item(n(this)).id})).get(),o=[];function s(e){return function(){return n(this).val()==e.id}}for(var a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if(r.indexOf(l.id)>=0){var c=i.filter(s(l)),u=this.item(c),d=n.extend(!0,{},l,u),h=this.option(d);c.replaceWith(h)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);p.append(f)}o.push(p)}}return o},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var r=n.ajax(e);return r.then(t),r.fail(i),r}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var n=r.transport(r,(function(n){var r=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&Array.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)}),(function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),Array.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(r,o){for(var s=r.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!o&&(r.data=s,void n(r))}if(o)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag","true"),i.addOptions([d]),i.insertTag(s,u)}r.results=s,n(r)})):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(e){r.trigger("select",{data:e})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var o=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==o.indexOf(c)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(r(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(r),n},t.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(o,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(o+" "+s+" "+a,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-a,d=c>o.bottom+a,h={left:o.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),h.top-=f.top,h.left-=f.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=s.top-f.top-a),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=e.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var i=n.first(),r=e.GetData(i[0],"data").element;if(r&&r.getAttribute&&"true"===r.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./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","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,_,k,D,x,S,A,$,C,E,O){function L(){this.reset()}return L.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,D)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,E))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=w;else{var d=c.Decorate(w,_);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,$)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var O=[],L=0;L<u.language.length;L++){var j=u.language[L];-1===O.indexOf(j)&&O.push(j)}return u.language=O,u.translations=this._processTranslations(u.language,u.debug),u},L.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(null==i.term||""===i.term.trim())return r;if(r.children&&r.children.length>0){for(var o=e.extend(!0,{},r),s=r.children.length-1;s>=0;s--)null==n(i,r.children[s])&&o.children.splice(s,1);return o.children.length>0?o:n(i,o)}var a=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},L.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},L.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},L.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var o=new u,s=t[r];if("string"==typeof s)try{o=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(s)?new u(s):s;i.extend(o)}return i},L.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(!0,this.defaults,r)},new L})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(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.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(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."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var r={};function o(e,t){return t.toUpperCase()}for(var s=0;s<t[0].attributes.length;s++){var a=t[0].attributes[s].name;if("data-"==a.substr(0,"data-".length)){var l=a.substring("data-".length),c=n.GetData(t[0],l);r[l.replace(/-([a-z])/g,o)]=c}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var u=e.extend(!0,{},n.GetData(t[0]),r);for(var d in u=n._convertData(u))i.indexOf(d)>-1||(e.isPlainObject(this.options[d])?e.extend(this.options[d],u[d]):this.options[d]=u[d]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var o=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",o),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},r.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)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},r.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){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.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){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 e=[];return this.dataAdapter.current((function(t){e=t})),e},r.prototype.val=function(e){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.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},r.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.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},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)})),o.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){},function(e,t){6 var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){var r,o,s,a,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function g(e,t){return h.call(e,t)}function m(e,t){var n,i,r,o,s,a,l,c,d,h,p,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(h=g.length;h>0;h-=1)if((r=m[g.slice(0,h).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function v(e,t){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(void 0,n.concat([e,t]))}}function y(e){return function(t){l[e]=t}}function w(e){if(g(c,e)){var t=c[e];delete c[e],d[e]=!0,r.apply(void 0,t)}if(!g(l,e)&&!g(d,e))throw new Error("No "+e);return l[e]}function b(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function _(e){return e?b(e):[]}function k(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,i,r=b(e),o=r[0],s=t[1];return e=r[1],o&&(n=w(o=m(o,s))),o?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(o=(r=b(e=m(e,s)))[0],e=r[1],o&&(n=w(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:k(e)}}},r=function(e,t,n,i){var r,o,u,h,p,f,m,b=[],k=typeof n;if(f=_(i=i||e),"undefined"===k||"function"===k){for(t=!t.length&&n.length?["require","exports","module"]:t,p=0;p<t.length;p+=1)if("require"===(o=(h=s(t[p],f)).f))b[p]=a.require(e);else if("exports"===o)b[p]=a.exports(e),m=!0;else if("module"===o)r=b[p]=a.module(e);else if(g(l,o)||g(c,o)||g(d,o))b[p]=w(o);else{if(!h.p)throw new Error(e+" missing "+o);h.p.load(h.n,v(i,!0),y(o),{}),b[p]=l[o]}u=n?n.apply(l[e],b):void 0,e&&(r&&void 0!==r.exports&&r.exports!==l[e]?l[e]=r.exports:void 0===u&&m||(l[e]=u))}else e&&(l[e]=n)},e=n=o=function(e,t,n,i,l){if("string"==typeof e)return a[e]?a[e](t):w(s(e,_(t)).f);if(!e.splice){if((u=e).deps&&o(u.deps,u.callback),!t)return;t.splice?(e=t,t=n,n=null):e=void 0}return t=t||function(){},"function"==typeof n&&(n=i,i=l),i?r(void 0,e,t,n):setTimeout((function(){r(void 0,e,t,n)}),4),o},o.config=function(e){return o(e)},e._defined=l,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&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."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<r.length;s++){var a=r[s];o.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var i=t.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];o.prototype[u]=l(u)}return o};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,(function(e){i=i.add(e)})),n=i}t.append(n)},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++r),t=r.toString())),t},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=e.map(i,(function(e){return e.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",e(c),this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);u.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}})),n.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(e){r.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var i=e(this),o=t.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):e(n).append(o)},n})),t.define("select2/keys",[],(function(){return{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}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){o.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!o.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var r=e[i],o=this.selectionContainer(),s=this.display(r,o);o.append(s);var a=r.title||r.text;a&&o.attr("title",a),n.StoreData(o[0],"data",r),t.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},i})),t.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&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(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=e('<span class="select2-selection__clear" title="'+r()+'">×</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,i,r){var o=this,s=i.id+"-results";e.call(this,i,r),i.on("open",(function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(e){o.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){o.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=t.GetData(i[0],"data");o.searchRemoveChoice(r),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){o.$search.val()&&e.stopPropagation()}));var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(l&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},i})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==e.inArray(t,o)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each((function(){var e=n(this),r=i.item(e);t.push(r)})),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var r=[];(e=[e]).push.apply(e,i);for(var o=0;o<e.length;o++){var s=e[o].id;-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")}));else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var r=[],o=0;o<i.length;o++){var s=i[o].id;s!==e.id&&-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each((function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var o=r.item(t),s=r.matches(e,o);null!==s&&i.push(s)}})),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var r=n(i),o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),r},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),o=[],s=0;s<r.length;s++){var a=n(r[s]),l=this.item(a);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,r=this.$element.find("option"),o=r.map((function(){return i.item(n(this)).id})).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,o)>=0){var u=r.filter(a(c)),d=this.item(u),h=n.extend(!0,{},c,d),p=this.option(h);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}s.push(f)}}return s},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var r=n.ajax(e);return r.then(t),r.fail(i),r}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,(function(r){var o=i.processResults(r,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)}),(function(){(!("status"in o)||0!==o.status&&"0"!==o.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(t,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(r,o){for(var s=r.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!o&&(r.data=s,void n(r))}if(o)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}r.results=s,n(r)})):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(e){r.trigger("select",{data:e})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var o=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,o)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(r(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(o,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(o+" "+s+" "+a,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-a,d=c>o.bottom+a,h={left:o.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),h.top-=f.top,h.left-=f.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=s.top-f.top-a),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=e.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),t.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(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,w,b,_,k,D,x,S,A,C,E){function $(){this.reset()}return $.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,w)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var E=t(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,E)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,D)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var $=c.Decorate(b,_);u.dropdownAdapter=$}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var O=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,O)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=r:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var j=t(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,j)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var M=[],T=0;T<u.language.length;T++){var L=u.language[T];-1===M.indexOf(L)&&M.push(L)}return u.language=M,u.translations=this._processTranslations(u.language,u.debug),u},$.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(""===e.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=e.extend(!0,{},r),s=r.children.length-1;s>=0;s--)null==n(i,r.children[s])&&o.children.splice(s,1);return o.children.length>0?o:n(i,o)}var a=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},$.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},$.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},$.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var o=new u,s=t[r];if("string"==typeof s)try{o=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(s)?new u(s):s;i.extend(o)}return i},$.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(!0,this.defaults,r)},new $})),t.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,n,i){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(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.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(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",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var r={};function o(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name;if("data-"==a.substr(0,"data-".length)){var l=a.substring("data-".length),c=i.GetData(e[0],l);r[l.replace(/-([a-z])/g,o)]=c}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(r=t.extend(!0,{},e[0].dataset,r));var u=t.extend(!0,{},i.GetData(e[0]),r);for(var d in u=i._convertData(u))t.inArray(d,n)>-1||(t.isPlainObject(this.options[d])?t.extend(this.options[d],u[d]):this.options[d]=u[d]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var o=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",o),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},r.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)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t((function(t){e._syncA(),e._syncS(null,t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,r){-1===e.inArray(i,n)&&t.trigger(i,r)}))},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},r.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(t,n){var i=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var o=0;o<n.addedNodes.length;o++)n.addedNodes[o].selected&&(i=!0);else n.removedNodes&&n.removedNodes.length>0?i=!0:e.isArray(n)&&e.each(n,(function(e,t){if(r._isChangeMutation(e,t))return i=!0,!1}));else i=!0;return i}},r.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current((function(e){i.trigger("selection:update",{data:e})}))},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){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.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){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 e=[];return this.dataAdapter.current((function(t){e=t})),e},r.prototype.val=function(t){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.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,(function(e){return e.toString()}))),this.$element.val(n).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.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},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)})),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){},function(e,t,n){},function(e,t){ 7 7 /**! 8 8 * wp-color-picker-alpha … … 15 15 * Licensed under the GPLv2 license or later. 16 16 */ 17 !function(e,t){var n={version:302};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var i=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(i)&&i>=n.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(e){"hex"===(e=e||"hex")&&this._alpha<1&&(e="rgba");var t="";return"hex"===e?t=this.toString():this.error||(t=this.toCSS(e).replace(/\(\s+/,"(").replace(/\s+\)/,")")),t},window.wpColorPickerAlpha=n;var r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";e.widget("a8c.iris",e.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(e){return void 0===e&&(e=this._color),this.alphaOptions.alphaEnabled?(e=e.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(e=e.replace(/\s+/g,"")),e):e.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(e){}e.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(e){var t=this,n=function(n){var i=e.val(),r=new Color(i),o=(i=i.replace(/^(#|(rgb|hsl)a?)/,""),t.alphaOptions.alphaColorType);e.removeClass("iris-error"),r.error?""!==i&&e.addClass("iris-error"):"hex"===o&&"keyup"===n.type&&i.match(/^[0-9a-fA-F]{3}$/)||r.toIEOctoHex()!==t._color.toIEOctoHex()&&t._setOption("color",t._getColor(r))};e.on("change",n).on("keyup",t._debounce(n,100)),t.options.hide&&e.one("focus",(function(){t.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var t=this,n=t.controls.strip.clone(!1,!1),i=n.find(".iris-slider-offset"),r={stripAlpha:n,stripAlphaSlider:i};n.addClass("iris-strip-alpha"),i.addClass("iris-slider-offset-alpha"),n.appendTo(t.picker.find(".iris-picker-inner")),e.each(r,(function(e,n){t.controls[e]=n})),t.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(e,n){t.active="strip",t._color._alpha=parseFloat(n.value/100),t._change.apply(t,arguments)}})}},_dimensions:function(e){if(this._super(e),this.alphaOptions.alphaEnabled){var t,n,i,r,o,s=this.options,a=this.controls.square,l=this.picker.find(".iris-strip");for(t=Math.round(this.picker.outerWidth(!0)-(s.border?22:0)),n=Math.round(a.outerWidth()),i=Math.round((t-n)/2),r=Math.round(i/2),o=Math.round(n+2*i+2*r);o>t;)i=Math.round(i-2),r=Math.round(r-1),o=Math.round(n+2*i+2*r);a.css("margin","0"),l.width(i).css("margin-left",r+"px")}},_change:function(){var t=this,n=t.active;if(t._super(),t.alphaOptions.alphaEnabled){var i=t.controls,o=parseInt(100*t._color._alpha),s=t._color.toRgb(),a=["rgb("+s.r+","+s.g+","+s.b+") 0%","rgba("+s.r+","+s.g+","+s.b+", 0) 100%"];t.picker.closest(".wp-picker-container").find(".wp-color-result");t.options.color=t._getColor(),i.stripAlpha.css({background:"linear-gradient(to bottom, "+a.join(", ")+"), url("+r+")"}),n&&i.stripAlphaSlider.slider("value",o),t._color.error||t.element.removeClass("iris-error").val(t.options.color),t.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var n=e(this).data("color");t.alphaOptions.alphaReset&&(t._color._alpha=1,n=t._getColor()),t._setOption("color",n)}))}},_paintDimension:function(e,t){var n=!1;this.alphaOptions.alphaEnabled&&"strip"===t&&(n=this._color,this._color=new Color(n.toString()),this.hue=this._color.h()),this._super(e,t),n&&(this._color=n)},_setOption:function(e,t){if("color"!==e||!this.alphaOptions.alphaEnabled)return this._super(e,t);t=""+t,newColor=new Color(t).setHSpace(this.options.mode),newColor.error||this._getColor(newColor)===this._getColor()||(this._color=newColor,this.options.color=this._getColor(),this.active="external",this._change())},color:function(e){return!0===e?this._color.clone():void 0===e?this._getColor():void this.option("color",e)}}),e.widget("wp.wpColorPicker",e.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var t=this.element,n=t.data("type")||this.options.type,i=t.data("defaultColor")||t.val(),r={alphaEnabled:t.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return r.alphaEnabled&&(r.alphaEnabled=t.is("input")&&"full"===n),r.alphaEnabled?(r.alphaColorWithSpace=i&&i.match(/\s/),e.each(r,(function(e,n){var o=t.data(e)||n;switch(e){case"alphaCustomWidth":o=o?parseInt(o,10):0,o=isNaN(o)?n:o;break;case"alphaColorType":o.match(/^(hex|(rgb|hsl)a?)$/)||(o=i&&i.match(/^#/)?"hex":i&&i.match(/^hsla?/)?"hsl":n);break;default:o=!!o}r[e]=o})),r):r},_create:function(){e.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var t=this,n=t.element,i=t.toggler.is("a");this.alphaOptions.defaultWidth=n.width(),this.alphaOptions.alphaCustomWidth&&n.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),t.toggler.css({position:"relative","background-image":"url("+r+")"}),i?t.toggler.html('<span class="color-alpha" />'):t.toggler.append('<span class="color-alpha" />'),t.colorAlpha=t.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":n.val()}),"ltr"===t.colorAlpha.css("direction")?t.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):t.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),n.iris({change:function(e,n){t.colorAlpha.css({"background-color":n.color.to_s(t.alphaOptions.alphaColorType)}),"function"==typeof t.options.change&&t.options.change.call(this,e,n)}}),t.wrap.on("click.wpcolorpicker",(function(e){e.stopPropagation()})),t.toggler.on("click",(function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()})),n.on("change",(function(r){var o=e(this).val();(n.hasClass("iris-error")||""===o||o.match(/^(#|(rgb|hsl)a?)$/))&&(i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),"function"==typeof t.options.clear&&t.options.clear.call(this,r))})),t.button.on("click",(function(r){e(this).hasClass("wp-picker-default")?n.val(t.options.defaultColor).change():e(this).hasClass("wp-picker-clear")&&(n.val(""),i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),"function"==typeof t.options.clear&&t.options.clear.call(this,r),n.trigger("change"))}))}})}}(jQuery)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n.p,n.p,n.p,n( 3);var i=n(0),r=n.n(i);function o(e){return(o="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})(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,s=Object.create(o.prototype),a=new $(r||[]);return i(s,"_invoke",{value:D(e,n,a)}),s}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p={};function f(){}function g(){}function m(){}var v={};u(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(C([])));b&&b!==t&&n.call(b,a)&&(v=b);var w=m.prototype=f.prototype=Object.create(v);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var r;i(this,"_invoke",{value:function(i,s){function a(){return new t((function(r,a){!function i(r,s,a,l){var c=h(e[r],e,s);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(c.arg)}(i,s,r,a)}))}return r=r?r.then(a,a):a()}})}function D(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=h(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}return g.prototype=m,i(w,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(k.prototype),u(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new k(d(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},_(w),u(w,c,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=C,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,l,"next",e)}function l(e){a(o,i,r,s,l,"throw",e)}s(void 0)}))}}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,s=void 0,s=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===o(s)?s:String(s)),i)}var r,s}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"appendFieldEvents",value:function(e,t){this.fieldsEvents=wp.hooks.applyFilters(cpt.js_fields_events_hook,[]);var n=this.fieldsEvents[e];n&&r.a.each(n,(function(e,n){r()(t).on(e,(function(e){n(t,e)}))}))}},{key:"sanitizeTitle",value:function(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/_,:;",n=0,i=t.length;n<i;n++)e=e.replace(new RegExp(t.charAt(n),"g"),"aaaaeeeeiiiioooouuuuncescrzyuudtn------".charAt(n));return e=e.replace(".","-").replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/\//g,"")}},{key:"autoFillKey",value:function(e,t){var n=this;r()(t).add(e).on("focusout",(function(){var i=r()(e).val(),o=r()(t).val();!i.length&&o.length&&r()(e).val(n.sanitizeTitle(o))}))}},{key:"copyToClipboard",value:function(e){var t=navigator.clipboard.writeText(r()(e).val()).then((function(){return!0}),(function(){return!1}));return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}},{key:"disableProFieldSelectOptions",value:function(e){var t=r()(e).closest(".cpt-fields-section");if(t&&"manage_cpt_field"===t.data("id")){var n=r()(e).find("select > option");r.a.each(n,(function(e,t){t.text.endsWith(" [PRO only]")&&(t.disabled=!0)}))}}}])&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.cptUtils=new u,wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.checkbox={load:function(e,t){var n=r()(e).find('input[type="checkbox"][required]');r()(n).on("click",(function(t){r()(n).prop("required",!r()(e).find('input[type="checkbox"]:checked').length)}))}},e}));n(4);wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.color={load:function(e,t){var n=r()(e).find(".cpt-color-section:first"),i=r()(n).children("input");r()(i).wpColorPicker({palettes:!0})}},e}));n(5);function d(e){return e[e.length-1]}function h(e,...t){return t.forEach(t=>{e.includes(t)||e.push(t)}),e}function p(e,t){return e?e.split(t):[]}function f(e,t,n){return(void 0===t||e>=t)&&(void 0===n||e<=n)}function g(e,t,n){return e<t?t:e>n?n:e}function m(e,t,n={},i=0,r=""){r+=`<${Object.keys(n).reduce((e,t)=>{let r=n[t];return"function"==typeof r&&(r=r(i)),`${e} ${t}="${r}"`},e)}></${e}>`;const o=i+1;return o<t?m(e,t,n,o,r):r}function v(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function y(e){return new Date(e).setHours(0,0,0,0)}function b(){return(new Date).setHours(0,0,0,0)}function w(...e){switch(e.length){case 0:return b();case 1:return y(e[0])}const t=new Date(0);return t.setFullYear(...e),t.setHours(0,0,0,0)}function _(e,t){const n=new Date(e);return n.setDate(n.getDate()+t)}function k(e,t){const n=new Date(e),i=n.getMonth()+t;let r=i%12;r<0&&(r+=12);const o=n.setMonth(i);return n.getMonth()!==r?n.setDate(0):o}function D(e,t){const n=new Date(e),i=n.getMonth(),r=n.setFullYear(n.getFullYear()+t);return 1===i&&2===n.getMonth()?n.setDate(0):r}function x(e,t){return(e-t+7)%7}function S(e,t,n=0){const i=new Date(e).getDay();return _(e,x(t,n)-x(i,n))}function A(e,t){return Math.round((e-t)/6048e5)+1}function $(e){const t=S(e,4,1);return A(t,S(new Date(t).setMonth(0,4),4,1))}function C(e,t){const n=S(new Date(e).setMonth(0,1),t,t),i=S(e,t,t),r=A(i,n);if(r<53)return r;return i===S(new Date(e).setDate(32),t,t)?1:r}function E(e){return C(e,0)}function O(e){return C(e,6)}function L(e,t){const n=new Date(e).getFullYear();return Math.floor(n/t)*t}function j(e,t,n){if(1!==t&&2!==t)return e;const i=new Date(e);return 1===t?n?i.setMonth(i.getMonth()+1,0):i.setDate(1):n?i.setFullYear(i.getFullYear()+1,0,0):i.setMonth(0,1),i.setHours(0,0,0,0)}const M=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,T=/[\s!-/:-@[-`{-~年月日]+/;let N={};const F={y:(e,t)=>new Date(e).setFullYear(parseInt(t,10)),m(e,t,n){const i=new Date(e);let r=parseInt(t,10)-1;if(isNaN(r)){if(!t)return NaN;const e=t.toLowerCase(),i=t=>t.toLowerCase().startsWith(e);if(r=n.monthsShort.findIndex(i),r<0&&(r=n.months.findIndex(i)),r<0)return NaN}return i.setMonth(r),i.getMonth()!==function e(t){return t>-1?t%12:e(t+12)}(r)?i.setDate(0):i.getTime()},d:(e,t)=>new Date(e).setDate(parseInt(t,10))},P={d:e=>e.getDate(),dd:e=>I(e.getDate(),2),D:(e,t)=>t.daysShort[e.getDay()],DD:(e,t)=>t.days[e.getDay()],m:e=>e.getMonth()+1,mm:e=>I(e.getMonth()+1,2),M:(e,t)=>t.monthsShort[e.getMonth()],MM:(e,t)=>t.months[e.getMonth()],y:e=>e.getFullYear(),yy:e=>I(e.getFullYear(),2).slice(-2),yyyy:e=>I(e.getFullYear(),4)};function I(e,t){return e.toString().padStart(t,"0")}function B(e){if("string"!=typeof e)throw new Error("Invalid date format.");if(e in N)return N[e];const t=e.split(M),n=e.match(new RegExp(M,"g"));if(0===t.length||!n)throw new Error("Invalid date format.");const i=n.map(e=>P[e]),r=Object.keys(F).reduce((e,t)=>(n.find(e=>"D"!==e[0]&&e[0].toLowerCase()===t)&&e.push(t),e),[]);return N[e]={parser(e,t){const i=e.split(T).reduce((e,t,i)=>{if(t.length>0&&n[i]){const r=n[i][0];"M"===r?e.m=t:"D"!==r&&(e[r]=t)}return e},{});return r.reduce((e,n)=>{const r=F[n](e,i[n],t);return isNaN(r)?e:r},b())},formatter:(e,n)=>i.reduce((i,r,o)=>i+`${t[o]}${r(e,n)}`,"")+d(t)}}function R(e,t,n){if(e instanceof Date||"number"==typeof e){const t=y(e);return isNaN(t)?void 0:t}if(e){if("today"===e)return b();if(t&&t.toValue){const i=t.toValue(e,t,n);return isNaN(i)?void 0:y(i)}return B(t).parser(e,n)}}function q(e,t,n){if(isNaN(e)||!e&&0!==e)return"";const i="number"==typeof e?new Date(e):e;return t.toDisplay?t.toDisplay(i,t,n):B(t).formatter(i,n)}const H=document.createRange();function V(e){return H.createContextualFragment(e)}function W(e){return e.parentElement||(e.parentNode instanceof ShadowRoot?e.parentNode.host:void 0)}function U(e){return e.getRootNode().activeElement===e}function z(e){"none"!==e.style.display&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function Y(e){"none"===e.style.display&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function G(e){e.firstChild&&(e.removeChild(e.firstChild),G(e))}const K=new WeakMap,{addEventListener:Z,removeEventListener:J}=EventTarget.prototype;function Q(e,t){let n=K.get(e);n||(n=[],K.set(e,n)),t.forEach(e=>{Z.call(...e),n.push(e)})}function X(e){let t=K.get(e);t&&(t.forEach(e=>{J.call(...e)}),K.delete(e))}if(!Event.prototype.composedPath){const e=(t,n=[])=>{let i;return n.push(t),t.parentNode?i=t.parentNode:t.host?i=t.host:t.defaultView&&(i=t.defaultView),i?e(i,n):n};Event.prototype.composedPath=function(){return e(this.target)}}function ee(e,t){const n="function"==typeof t?t:e=>e instanceof Element&&e.matches(t);return function e(t,n,i){const[r,...o]=t;return n(r)?r:r!==i&&"HTML"!==r.tagName&&0!==o.length?e(o,n,i):void 0}(e.composedPath(),n,e.currentTarget)}var te={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},ne={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0};const{language:ie,format:re,weekStart:oe}=ne;function se(e,t){return e.length<6&&t>=0&&t<7?h(e,t):e}function ae(e,t){switch(4===e?6===t?3:!t+1:e){case 1:return $;case 2:return E;case 3:return O}}function le(e,t,n){return t.weekStart=e,t.weekEnd=(e+6)%7,4===n&&(t.getWeekNumber=ae(4,e)),e}function ce(e,t,n,i){const r=R(e,t,n);return void 0!==r?r:i}function ue(e,t,n=3){const i=parseInt(e,10);return i>=0&&i<=n?i:t}function de(e,t,n,i){t in e&&(n in e||(e[n]=i?i(e[t]):e[t]),delete e[t])}function he(e,t){const n=Object.assign({},e),i={},r=t.constructor.locales,o=!!t.rangeSideIndex;let{datesDisabled:s,format:a,language:l,locale:c,maxDate:u,maxView:d,minDate:p,pickLevel:f,startView:g,weekNumbers:m,weekStart:v}=t.config||{};if(de(n,"calendarWeeks","weekNumbers",e=>e?1:0),de(n,"clearBtn","clearButton"),de(n,"todayBtn","todayButton"),de(n,"todayBtnMode","todayButtonMode"),n.language){let e;if(n.language!==l&&(r[n.language]?e=n.language:(e=n.language.split("-")[0],r[e]||(e=!1))),delete n.language,e){l=i.language=e;const t=c||r[ie];c=Object.assign({format:re,weekStart:oe},r[ie]),l!==ie&&Object.assign(c,r[l]),i.locale=c,a===t.format&&(a=i.format=c.format),v===t.weekStart&&(v=le(c.weekStart,i,m))}}if(n.format){const e="function"==typeof n.format.toDisplay,t="function"==typeof n.format.toValue,r=M.test(n.format);(e&&t||r)&&(a=i.format=n.format),delete n.format}let y=f;"pickLevel"in n&&(y=ue(n.pickLevel,f,2),delete n.pickLevel),y!==f&&(y>f&&("minDate"in n||(n.minDate=p),"maxDate"in n||(n.maxDate=u)),s&&!n.datesDisabled&&(n.datesDisabled=[]),f=i.pickLevel=y);let b=p,_=u;if("minDate"in n){const e=w(0,0,1);b=null===n.minDate?e:ce(n.minDate,a,c,b),b!==e&&(b=j(b,f,!1)),delete n.minDate}if("maxDate"in n&&(_=null===n.maxDate?void 0:ce(n.maxDate,a,c,_),void 0!==_&&(_=j(_,f,!0)),delete n.maxDate),_<b?(p=i.minDate=_,u=i.maxDate=b):(p!==b&&(p=i.minDate=b),u!==_&&(u=i.maxDate=_)),n.datesDisabled){const e=n.datesDisabled;if("function"==typeof e)i.datesDisabled=null,i.checkDisabled=(t,n)=>e(new Date(t),n,o);else{const t=i.datesDisabled=e.reduce((e,t)=>{const n=R(t,a,c);return void 0!==n?h(e,j(n,f,o)):e},[]);i.checkDisabled=e=>t.includes(e)}delete n.datesDisabled}if("defaultViewDate"in n){const e=R(n.defaultViewDate,a,c);void 0!==e&&(i.defaultViewDate=e),delete n.defaultViewDate}if("weekStart"in n){const e=Number(n.weekStart)%7;isNaN(e)||(v=le(e,i,m)),delete n.weekStart}if(n.daysOfWeekDisabled&&(i.daysOfWeekDisabled=n.daysOfWeekDisabled.reduce(se,[]),delete n.daysOfWeekDisabled),n.daysOfWeekHighlighted&&(i.daysOfWeekHighlighted=n.daysOfWeekHighlighted.reduce(se,[]),delete n.daysOfWeekHighlighted),"weekNumbers"in n){let e=n.weekNumbers;if(e){const t="function"==typeof e?(t,n)=>e(new Date(t),n):ae(e=parseInt(e,10),v);t&&(m=i.weekNumbers=e,i.getWeekNumber=t)}else m=i.weekNumbers=0,i.getWeekNumber=null;delete n.weekNumbers}if("maxNumberOfDates"in n){const e=parseInt(n.maxNumberOfDates,10);e>=0&&(i.maxNumberOfDates=e,i.multidate=1!==e),delete n.maxNumberOfDates}n.dateDelimiter&&(i.dateDelimiter=String(n.dateDelimiter),delete n.dateDelimiter);let k=d;"maxView"in n&&(k=ue(n.maxView,d),delete n.maxView),k=f>k?f:k,k!==d&&(d=i.maxView=k);let D=g;if("startView"in n&&(D=ue(n.startView,D),delete n.startView),D<f?D=f:D>d&&(D=d),D!==g&&(i.startView=D),n.prevArrow){const e=V(n.prevArrow);e.childNodes.length>0&&(i.prevArrow=e.childNodes),delete n.prevArrow}if(n.nextArrow){const e=V(n.nextArrow);e.childNodes.length>0&&(i.nextArrow=e.childNodes),delete n.nextArrow}if("disableTouchKeyboard"in n&&(i.disableTouchKeyboard="ontouchstart"in document&&!!n.disableTouchKeyboard,delete n.disableTouchKeyboard),n.orientation){const e=n.orientation.toLowerCase().split(/\s+/g);i.orientation={x:e.find(e=>"left"===e||"right"===e)||"auto",y:e.find(e=>"top"===e||"bottom"===e)||"auto"},delete n.orientation}if("todayButtonMode"in n){switch(n.todayButtonMode){case 0:case 1:i.todayButtonMode=n.todayButtonMode}delete n.todayButtonMode}return Object.entries(n).forEach(([e,t])=>{void 0!==t&&e in ne&&(i[e]=t)}),i}const pe={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};var fe=v('<div class="datepicker">\n <div class="datepicker-picker">\n <div class="datepicker-header">\n <div class="datepicker-title"></div>\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% prev-button prev-btn"></button>\n <button type="button" class="%buttonClass% view-switch"></button>\n <button type="button" class="%buttonClass% next-button next-btn"></button>\n </div>\n </div>\n <div class="datepicker-main"></div>\n <div class="datepicker-footer">\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% today-button today-btn"></button>\n <button type="button" class="%buttonClass% clear-button clear-btn"></button>\n </div>\n </div>\n </div>\n</div>'),ge=v(`<div class="days">\n <div class="days-of-week">${m("span",7,{class:"dow"})}</div>\n <div class="datepicker-grid">${m("span",42)}</div>\n</div>`),me=v(`<div class="week-numbers calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">${m("span",6,{class:"week"})}</div>\n</div>`);class ve{constructor(e,t){Object.assign(this,t,{picker:e,element:V('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!e.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(e){"pickLevel"in e&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}prepareForRender(e,t,n){this.disabled=[];const i=this.picker;i.setViewSwitchLabel(e),i.setPrevButtonDisabled(t),i.setNextButtonDisabled(n)}setDisabled(e,t){t.add("disabled"),h(this.disabled,e)}performBeforeHook(e,t){let n=this.beforeShow(new Date(t));switch(typeof n){case"boolean":n={enabled:n};break;case"string":n={classes:n}}if(n){const i=e.classList;if(!1===n.enabled&&this.setDisabled(t,i),n.classes){const e=n.classes.split(/\s+/);i.add(...e),e.includes("disabled")&&this.setDisabled(t,i)}n.content&&function(e,t){G(e),t instanceof DocumentFragment?e.appendChild(t):"string"==typeof t?e.appendChild(V(t)):"function"==typeof t.forEach&&t.forEach(t=>{e.appendChild(t)})}(e,n.content)}}renderCell(e,t,n,i,{selected:r,range:o},s,a=[]){e.textContent=t,this.isMinView&&(e.dataset.date=i);const l=e.classList;if(e.className="datepicker-cell "+this.cellClass,n<this.first?l.add("prev"):n>this.last&&l.add("next"),l.add(...a),(s||this.checkDisabled(i,this.id))&&this.setDisabled(i,l),o){const[e,t]=o;n>e&&n<t&&l.add("range"),n===e&&l.add("range-start"),n===t&&l.add("range-end")}r.includes(n)&&l.add("selected"),n===this.focused&&l.add("focused"),this.beforeShow&&this.performBeforeHook(e,i)}refreshCell(e,t,n,[i,r]){const o=e.classList;o.remove("range","range-start","range-end","selected","focused"),t>i&&t<r&&o.add("range"),t===i&&o.add("range-start"),t===r&&o.add("range-end"),n.includes(t)&&o.add("selected"),t===this.focused&&o.add("focused")}changeFocusedCell(e){this.grid.querySelectorAll(".focused").forEach(e=>{e.classList.remove("focused")}),this.grid.children[e].classList.add("focused")}}class ye extends ve{constructor(e){super(e,{id:0,name:"days",cellClass:"day"})}init(e,t=!0){if(t){const e=V(ge).firstChild;this.dow=e.firstChild,this.grid=e.lastChild,this.element.appendChild(e)}super.init(e)}setOptions(e){let t;if("minDate"in e&&(this.minDate=e.minDate),"maxDate"in e&&(this.maxDate=e.maxDate),e.checkDisabled&&(this.checkDisabled=e.checkDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),"todayHighlight"in e&&(this.todayHighlight=e.todayHighlight),"weekStart"in e&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){const n=this.locale=e.locale;this.dayNames=n.daysMin,this.switchLabelFormat=n.titleFormat,t=!0}if("beforeShowDay"in e&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),"weekNumbers"in e)if(e.weekNumbers&&!this.weekNumbers){const e=V(me).firstChild;this.weekNumbers={element:e,dow:e.firstChild,weeks:e.lastChild},this.element.insertBefore(e,this.element.firstChild)}else this.weekNumbers&&!e.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in e&&(this.getWeekNumber=e.getWeekNumber),"showDaysOfWeek"in e&&(e.showDaysOfWeek?(Y(this.dow),this.weekNumbers&&Y(this.weekNumbers.dow)):(z(this.dow),this.weekNumbers&&z(this.weekNumbers.dow))),t&&Array.from(this.dow.children).forEach((e,t)=>{const n=(this.weekStart+t)%7;e.textContent=this.dayNames[n],e.className=this.daysOfWeekDisabled.includes(n)?"dow disabled":"dow"})}updateFocus(){const e=new Date(this.picker.viewDate),t=e.getFullYear(),n=e.getMonth(),i=w(t,n,1),r=S(i,this.weekStart,this.weekStart);this.first=i,this.last=w(t,n+1,0),this.start=r,this.focused=this.picker.viewDate}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e,t&&(this.range=t.dates)}render(){if(this.today=this.todayHighlight?b():void 0,this.prepareForRender(q(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const e=this.weekStart,t=S(this.first,e,e);Array.from(this.weekNumbers.weeks.children).forEach((n,i)=>{const r=_(t,7*i);n.textContent=this.getWeekNumber(r,e),i>3&&n.classList[r>this.last?"add":"remove"]("next")})}Array.from(this.grid.children).forEach((e,t)=>{const n=_(this.start,t),i=new Date(n),r=i.getDay(),o=[];this.today===n&&o.push("today"),this.daysOfWeekHighlighted.includes(r)&&o.push("highlighted"),this.renderCell(e,i.getDate(),n,n,this,n<this.minDate||n>this.maxDate||this.daysOfWeekDisabled.includes(r),o)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.dataset.date),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function be(e,t){if(!e||!e[0]||!e[1])return;const[[n,i],[r,o]]=e;return n>t||r<t?void 0:[n===t?i:-1,r===t?o:12]}class we extends ve{constructor(e){super(e,{id:1,name:"months",cellClass:"month"})}init(e,t=!0){t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(V(m("span",12,{"data-month":e=>e}))),this.first=0,this.last=11),super.init(e)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),"minDate"in e)if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if("maxDate"in e)if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=w(this.maxYear,this.maxMonth+1,0)}e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),"beforeShowMonth"in e&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((e,t)=>{const n=new Date(t),i=n.getFullYear(),r=n.getMonth();return void 0===e[i]?e[i]=[r]:h(e[i],r),e},{}),t&&t.dates&&(this.range=t.dates.map(e=>{const t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]}))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const e=this.selected[this.year]||[],t=this.year<this.minYear||this.year>this.maxYear,n=this.year===this.minYear,i=this.year===this.maxYear,r=be(this.range,this.year);Array.from(this.grid.children).forEach((o,s)=>{const a=j(new Date(this.year,s,1),1,this.isRangeEnd);this.renderCell(o,this.monthNames[s],s,a,{selected:e,range:r},t||n&&s<this.minMonth||i&&s>this.maxMonth)})}refresh(){const e=this.selected[this.year]||[],t=be(this.range,this.year)||[];Array.from(this.grid.children).forEach((n,i)=>{this.refreshCell(n,i,e,t)})}refreshFocus(){this.changeFocusedCell(this.focused)}}class _e extends ve{constructor(e,t){super(e,t)}init(e,t=!0){var n;t&&(this.navStep=10*this.step,this.beforeShowOption="beforeShow"+(n=this.cellClass,[...n].reduce((e,t,n)=>e+(n?t:t.toUpperCase()),"")),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(V(m("span",12)))),super.init(e)}setOptions(e){if("minDate"in e&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=L(e.minDate,this.step),this.minDate=w(this.minYear,0,1))),"maxDate"in e&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=L(e.maxDate,this.step),this.maxDate=w(this.maxYear,11,31))),e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),this.beforeShowOption in e){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const e=new Date(this.picker.viewDate),t=L(e,this.navStep),n=t+9*this.step;this.first=t,this.last=n,this.start=t-this.step,this.focused=L(e,this.step)}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((e,t)=>h(e,L(t,this.step)),[]),t&&t.dates&&(this.range=t.dates.map(e=>{if(void 0!==e)return L(e,this.step)}))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>=this.maxYear),Array.from(this.grid.children).forEach((e,t)=>{const n=this.start+t*this.step,i=j(new Date(n,0,1),2,this.isRangeEnd);e.dataset.year=n,this.renderCell(e,n,n,i,this,n<this.minYear||n>this.maxYear)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.textContent),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function ke(e,t){const n={date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e};e.element.dispatchEvent(new CustomEvent(t,{detail:n}))}function De(e,t){const{config:n,picker:i}=e,{currentView:r,viewDate:o}=i;let s;switch(r.id){case 0:s=k(o,t);break;case 1:s=D(o,t);break;default:s=D(o,t*r.navStep)}s=g(s,n.minDate,n.maxDate),i.changeFocus(s).render()}function xe(e){const t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function Se(e){e.setDate({clear:!0})}function Ae(e){const t=b();1===e.config.todayButtonMode?e.setDate(t,{forceRefresh:!0,viewDate:t}):e.setFocusedDate(t,!0)}function $e(e){const t=()=>{e.config.updateOnBlur?e.update({revert:!0}):e.refresh("input"),e.hide()},n=e.element;U(n)?n.addEventListener("blur",t,{once:!0}):t()}function Ce(e,t){const n=e.picker,i=new Date(n.viewDate),r=n.currentView.id,o=1===r?k(i,t-i.getMonth()):D(i,t-i.getFullYear());n.changeFocus(o).changeView(r-1).render()}function Ee(e){xe(e)}function Oe(e){De(e,-1)}function Le(e){De(e,1)}function je(e,t){const n=ee(t,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:i,isMinView:r}=e.picker.currentView,o=n.dataset;r?e.setDate(Number(o.date)):Ce(e,Number(1===i?o.month:o.year))}function Me(e){e.preventDefault()}const Te=["left","top","right","bottom"].reduce((e,t)=>(e[t]="datepicker-orient-"+t,e),{}),Ne=e=>e?e+"px":e;function Fe(e,t){if("title"in t&&(t.title?(e.controls.title.textContent=t.title,Y(e.controls.title)):(e.controls.title.textContent="",z(e.controls.title))),t.prevArrow){const n=e.controls.prevButton;G(n),t.prevArrow.forEach(e=>{n.appendChild(e.cloneNode(!0))})}if(t.nextArrow){const n=e.controls.nextButton;G(n),t.nextArrow.forEach(e=>{n.appendChild(e.cloneNode(!0))})}if(t.locale&&(e.controls.todayButton.textContent=t.locale.today,e.controls.clearButton.textContent=t.locale.clear),"todayButton"in t&&(t.todayButton?Y(e.controls.todayButton):z(e.controls.todayButton)),"minDate"in t||"maxDate"in t){const{minDate:t,maxDate:n}=e.datepicker.config;e.controls.todayButton.disabled=!f(b(),t,n)}"clearButton"in t&&(t.clearButton?Y(e.controls.clearButton):z(e.controls.clearButton))}function Pe(e){const{dates:t,config:n,rangeSideIndex:i}=e;return g(t.length>0?d(t):j(n.defaultViewDate,n.pickLevel,i),n.minDate,n.maxDate)}function Ie(e,t){"_oldViewDate"in e||t===e.viewDate||(e._oldViewDate=e.viewDate),e.viewDate=t;const{id:n,year:i,first:r,last:o}=e.currentView,s=new Date(t).getFullYear();switch(n){case 0:return t<r||t>o;case 1:return s!==i;default:return s<r||s>o}}function Be(e){return window.getComputedStyle(e).direction}class Re{constructor(e){const{config:t,inputField:n}=this.datepicker=e,i=fe.replace(/%buttonClass%/g,t.buttonClass),r=this.element=V(i).firstChild,[o,s,a]=r.firstChild.children,l=o.firstElementChild,[c,u,d]=o.lastElementChild.children,[h,p]=a.firstChild.children,f={title:l,prevButton:c,viewSwitch:u,nextButton:d,todayButton:h,clearButton:p};this.main=s,this.controls=f;const g=n?"dropdown":"inline";r.classList.add("datepicker-"+g),Fe(this,t),this.viewDate=Pe(e),Q(e,[[r,"mousedown",Me],[s,"click",je.bind(null,e)],[f.viewSwitch,"click",Ee.bind(null,e)],[f.prevButton,"click",Oe.bind(null,e)],[f.nextButton,"click",Le.bind(null,e)],[f.todayButton,"click",Ae.bind(null,e)],[f.clearButton,"click",Se.bind(null,e)]]),this.views=[new ye(this),new we(this),new _e(this,{id:2,name:"years",cellClass:"year",step:1}),new _e(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.container?t.container.appendChild(this.element):n.after(this.element)}setOptions(e){Fe(this,e),this.views.forEach(t=>{t.init(e,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:e,element:t}=this,n=e.inputField;if(n){const i=Be(n);i!==Be(W(t))?t.dir=i:t.dir&&t.removeAttribute("dir"),t.style.visibility="hidden",t.classList.add("active"),this.place(),t.style.visibility="",e.config.disableTouchKeyboard&&n.blur()}else t.classList.add("active");this.active=!0,ke(e,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,ke(this.datepicker,"hide"))}place(){const{classList:e,offsetParent:t,style:n}=this.element,{config:i,inputField:r}=this.datepicker,{width:o,height:s}=this.element.getBoundingClientRect(),{left:a,top:l,right:c,bottom:u,width:d,height:h}=r.getBoundingClientRect();let{x:p,y:f}=i.orientation,g=a,m=l;if(t!==document.body&&t){const e=t.getBoundingClientRect();g-=e.left-t.scrollLeft,m-=e.top-t.scrollTop}else g+=window.scrollX,m+=window.scrollY;const v=function e(t){const n=W(t);if(n!==document.body&&n)return"visible"!==window.getComputedStyle(n).overflow?n:e(n)}(r);let y=0,b=0,{clientWidth:w,clientHeight:_}=document.documentElement;if(v){const e=v.getBoundingClientRect();e.top>0&&(b=e.top),e.left>0&&(y=e.left),e.right<w&&(w=e.right),e.bottom<_&&(_=e.bottom)}let k=0;"auto"===p&&(a<y?(p="left",k=y-a):a+o>w?(p="right",w<c&&(k=w-c)):p="rtl"===Be(r)?c-o<y?"left":"right":"left"),"right"===p&&(g+=d-o),g+=k,"auto"===f&&(f=l-s>b&&u+s>_?"top":"bottom"),"top"===f?m-=s:m+=h,e.remove(...Object.values(Te)),e.add(Te[p],Te[f]),n.left=Ne(g),n.top=Ne(m)}setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}setPrevButtonDisabled(e){this.controls.prevButton.disabled=e}setNextButtonDisabled(e){this.controls.nextButton.disabled=e}changeView(e){const t=this.currentView;return e!==t.id&&(this._oldView||(this._oldView=t),this.currentView=this.views[e],this._renderMethod="render"),this}changeFocus(e){return this._renderMethod=Ie(this,e)?"render":"refreshFocus",this.views.forEach(e=>{e.updateFocus()}),this}update(e){const t=void 0===e?Pe(this.datepicker):e;return this._renderMethod=Ie(this,t)?"render":"refresh",this.views.forEach(e=>{e.updateFocus(),e.updateSelection()}),this}render(e=!0){const{currentView:t,datepicker:n,_oldView:i}=this,r=new Date(this._oldViewDate),o=e&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,t[o](),i&&(this.main.replaceChild(t.element,i.element),ke(n,"changeView")),!isNaN(r)){const e=new Date(this.viewDate);e.getFullYear()!==r.getFullYear()&&ke(n,"changeYear"),e.getMonth()!==r.getMonth()&&ke(n,"changeMonth")}}}function qe(e,t,n){const i=e.picker,r=i.currentView,o=r.step||1;let s,a=i.viewDate;switch(r.id){case 0:a=_(a,n?7*t:t),s=_;break;case 1:a=k(a,n?4*t:t),s=k;break;default:a=D(a,t*(n?4:1)*o),s=D}a=function e(t,n,i,r,o,s){if(f(t,o,s)){if(r(t)){return e(n(t,i),n,i,r,o,s)}return t}}(a,s,t<0?-o:o,e=>r.disabled.includes(e),r.minDate,r.maxDate),void 0!==a&&i.changeFocus(a).render()}function He(e,t){const{config:n,picker:i,editMode:r}=e,o=i.active,{key:s,altKey:a,shiftKey:l}=t,c=t.ctrlKey||t.metaKey,u=()=>{t.preventDefault(),t.stopPropagation()};if("Tab"===s)return void $e(e);if("Enter"===s){if(o)if(r)e.exitEditMode({update:!0,autohide:n.autohide});else{const t=i.currentView;t.isMinView?e.setDate(i.viewDate):(i.changeView(t.id-1).render(),u())}else e.update();return}const d=n.shortcutKeys,h={key:s,ctrlOrMetaKey:c,altKey:a,shiftKey:l},p=Object.keys(d).find(e=>{const t=d[e];return!Object.keys(t).find(e=>t[e]!==h[e])});if(p){let t;if("toggle"===p?t=p:r?"exitEditMode"===p&&(t=p):o?"hide"===p?t=p:"prevButton"===p?t=[De,[e,-1]]:"nextButton"===p?t=[De,[e,1]]:"viewSwitch"===p?t=[xe,[e]]:n.clearButton&&"clearButton"===p?t=[Se,[e]]:n.todayButton&&"todayButton"===p&&(t=[Ae,[e]]):"show"===p&&(t=p),t)return Array.isArray(t)?t[0].apply(null,t[1]):e[t](),void u()}if(!o||r)return;const f=(n,i)=>{l||c||a?e.enterEditMode():(qe(e,n,i),t.preventDefault())};"ArrowLeft"===s?f(-1,!1):"ArrowRight"===s?f(1,!1):"ArrowUp"===s?f(-1,!0):"ArrowDown"===s?f(1,!0):("Backspace"===s||"Delete"===s||s&&1===s.length&&!c)&&e.enterEditMode()}function Ve(e){e.config.showOnFocus&&!e._showing&&e.show()}function We(e,t){const n=t.target;(e.picker.active||e.config.showOnClick)&&(n._active=U(n),n._clicking=setTimeout(()=>{delete n._active,delete n._clicking},2e3))}function Ue(e,t){const n=t.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function ze(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function Ye(e,t){const{element:n,picker:i}=e;if(!i.active&&!U(n))return;const r=i.element;ee(t,e=>e===n||e===r)||$e(e)}function Ge(e,t){return e.map(e=>q(e,t.format,t.locale)).join(t.dateDelimiter)}function Ke(e,t,n=!1){if(0===t.length)return n?[]:void 0;const{config:i,dates:r,rangeSideIndex:o}=e,{pickLevel:s,maxNumberOfDates:a}=i;let l=t.reduce((e,t)=>{let n=R(t,i.format,i.locale);return void 0===n||(n=j(n,s,o),!f(n,i.minDate,i.maxDate)||e.includes(n)||i.checkDisabled(n,s)||!(s>0)&&i.daysOfWeekDisabled.includes(new Date(n).getDay())||e.push(n)),e},[]);return 0!==l.length?(i.multidate&&!n&&(l=l.reduce((e,t)=>(r.includes(t)||e.push(t),e),r.filter(e=>!l.includes(e)))),a&&l.length>a?l.slice(-1*a):l):void 0}function Ze(e,t=3,n=!0,i){const{config:r,picker:o,inputField:s}=e;if(2&t){const e=o.active?r.pickLevel:r.startView;o.update(i).changeView(e).render(n)}1&t&&s&&(s.value=Ge(e.dates,r))}function Je(e,t,n){const i=e.config;let{clear:r,render:o,autohide:s,revert:a,forceRefresh:l,viewDate:c}=n;void 0===o&&(o=!0),o?void 0===s&&(s=i.autohide):s=l=!1,c=R(c,i.format,i.locale);const u=Ke(e,t,r);(u||a)&&(u&&u.toString()!==e.dates.toString()?(e.dates=u,Ze(e,o?3:1,!0,c),ke(e,"changeDate")):Ze(e,l?3:1,!0,c),s&&e.hide())}function Qe(e,t){return t?n=>q(n,t,e.config.locale):e=>new Date(e)}class Xe{constructor(e,t={},n){e.datepicker=this,this.element=e,this.dates=[];const i=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:null,defaultViewDate:b(),maxDate:void 0,minDate:void 0},he(ne,this));let r;if("INPUT"===e.tagName?(r=this.inputField=e,r.classList.add("datepicker-input"),t.container&&(i.container=t.container instanceof HTMLElement?t.container:document.querySelector(t.container))):i.container=e,n){const e=n.inputs.indexOf(r),t=n.datepickers;if(e<0||e>1||!Array.isArray(t))throw Error("Invalid rangepicker object.");t[e]=this,this.rangepicker=n,this.rangeSideIndex=e}this._options=t,Object.assign(i,he(t,this)),i.shortcutKeys=function(e){return Object.keys(pe).reduce((t,n)=>{const i=void 0===e[n]?pe[n]:e[n],r=i&&i.key;if(!r||"string"!=typeof r)return t;const o={key:r,ctrlOrMetaKey:!!(i.ctrlOrMetaKey||i.ctrlKey||i.metaKey)};return r.length>1&&(o.altKey=!!i.altKey,o.shiftKey=!!i.shiftKey),t[n]=o,t},{})}(t.shortcutKeys||{});const o=p(e.value||e.dataset.date,i.dateDelimiter);delete e.dataset.date;const s=Ke(this,o);s&&s.length>0&&(this.dates=s),r&&(r.value=Ge(this.dates,i));const a=this.picker=new Re(this),l=[e,"keydown",He.bind(null,this)];r?Q(this,[l,[r,"focus",Ve.bind(null,this)],[r,"mousedown",We.bind(null,this)],[r,"click",Ue.bind(null,this)],[r,"paste",ze.bind(null,this)],[document,"mousedown",Ye.bind(null,this)],[window,"resize",a.place.bind(a)]]):(Q(this,[l]),this.show())}static formatDate(e,t,n){return q(e,t,n&&te[n]||te.en)}static parseDate(e,t,n){return R(e,t,n&&te[n]||te.en)}static get locales(){return te}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(e){const t=he(e,this);Object.assign(this._options,e),Object.assign(this.config,t),this.picker.setOptions(t),Ze(this,3)}show(){if(this.inputField){const{config:e,inputField:t}=this;if(t.disabled||t.readOnly&&!e.enableOnReadonly)return;U(t)||e.disableTouchKeyboard||(this._showing=!0,t.focus(),delete this._showing)}this.picker.show()}hide(){this.inputField&&(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),X(this),this.picker.detach();const e=this.element;return e.classList.remove("datepicker-input"),delete e.datepicker,this}getDate(e){const t=Qe(this,e);return this.config.multidate?this.dates.map(t):this.dates.length>0?t(this.dates[0]):void 0}setDate(...e){const t=[...e],n={},i=d(e);!i||"object"!=typeof i||Array.isArray(i)||i instanceof Date||Object.assign(n,t.pop());Je(this,Array.isArray(t[0])?t[0]:t,n)}update(e){if(!this.inputField)return;const t=Object.assign(e||{},{clear:!0,render:!0,viewDate:void 0});Je(this,p(this.inputField.value,this.config.dateDelimiter),t)}getFocusedDate(e){return Qe(this,e)(this.picker.viewDate)}setFocusedDate(e,t=!1){const{config:n,picker:i,active:r,rangeSideIndex:o}=this,s=n.pickLevel,a=R(e,n.format,n.locale);void 0!==a&&(i.changeFocus(j(a,s,o)),r&&t&&i.changeView(s),i.render())}refresh(e,t=!1){let n;e&&"string"!=typeof e&&(t=e,e=void 0),n="picker"===e?2:"input"===e?1:3,Ze(this,n,!t)}enterEditMode(){const e=this.inputField;e&&!e.readOnly&&this.picker.active&&!this.editMode&&(this.editMode=!0,e.classList.add("in-edit"))}exitEditMode(e){if(!this.inputField||!this.editMode)return;const t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}function et(e){return(et="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})(e)}function tt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==et(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==et(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===et(o)?o:String(o)),i)}var r,o}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.date={load:function(e,t){var n=r()(e).find(".cpt-date-section:first"),i=r()(n).children("input"),o="no"!==r()(i).data("max")&&r()(i).data("max"),s="no"!==r()(i).data("min")&&r()(i).data("min");new Xe(i[0],{autohide:!0,clearBtn:!0,maxDate:o,minDate:s,format:"dd/mm/yyyy"})}},e}));var nt=wp.i18n,it=nt.__;nt._x,nt._n,nt._nx;wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.file={load:function(e,t){new rt(e)}},e}));var rt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fileSection=r()(t).find(".cpt-file-section:first"),this.fileTypes=r()(this.fileSection).data("type"),this.fileInput=r()(this.fileSection).find("input"),this.filePreview=r()(this.fileSection).find("img"),this.fileActions=r()(this.fileSection).find(".cpt-file-actions"),this.fileName=r()(this.fileSection).find(".file-name"),this.addButton=r()(this.fileSection).find(".cpt-file-upload"),this.removeButton=r()(this.fileSection).find(".cpt-file-remove"),this.listenRemoveEvent(),this.listenAddEvent()}var t,n,i;return t=e,(n=[{key:"listenAddEvent",value:function(){var e=this;r()(this.addButton).on("click",(function(t){t.preventDefault();var n=wp.media({title:it("Add file","custom-post-types"),frame:"select",library:wp.media.query({type:e.fileTypes,uploadedTo:wp.media.view.settings.post.id}),button:{text:it("Choose file","custom-post-types")},multiple:!1}).on("select",(function(){var t=n.state().get("selection").first().toJSON();t.sizes&&t.sizes.thumbnail&&t.sizes.thumbnail.url&&(r()(e.filePreview).attr("width",t.sizes.thumbnail.width),r()(e.filePreview).attr("height",t.sizes.thumbnail.height),r()(e.filePreview).attr("src",t.sizes.thumbnail.url),r()(e.filePreview).removeAttr("srcset"),r()(e.filePreview).show());var i=t.mime;i.startsWith("image")&&(i="image"),i.startsWith("audio")&&(i="audio"),i.startsWith("video")&&(i="video"),"-1"!=r.a.inArray(i,e.fileTypes)?(r()(e.fileName).html(t.url.split("/").reverse()[0]),r()(e.fileActions).attr("title",t.url.split("/").reverse()[0]),r()(e.fileInput).val(t.id),r()(e.removeButton).prop("disabled",!1)):e.resetField()})).open()}))}},{key:"listenRemoveEvent",value:function(){var e=this;r()(this.removeButton).on("click",(function(t){t.preventDefault(),e.resetField()}))}},{key:"resetField",value:function(){r()(this.fileName).html(""),r()(this.fileInput).val(""),r()(this.filePreview).removeAttr("src"),r()(this.filePreview).hide(),r()(this.removeButton).prop("disabled",!0),r()(this.fileActions).attr("title",it("Choose","custom-post-types"))}}])&&tt(t.prototype,n),i&&tt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(1),n(2);function ot(e){return(ot="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})(e)}function st(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ot(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===ot(o)?o:String(o)),i)}var r,o}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.post_rel={load:function(e,t){var n=r()(e).find("select:first"),i=r()(n).data("type"),o={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};i.length>0&&(o.ajax={url:cpt.ajax_url,data:function(e){return{action:"cpt-get-post_rel-options",nonce:cpt.ajax_nonce,search:e.term,post_type:i}},processResults:function(e){return{results:e.data}}}),r()(n).select2(o)}},e}));var at=wp.i18n;at.__,at._x,at._n,at._nx;wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.repeater={load:function(e,t){new lt(e)}},e}));var lt=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.repeaterSection=r()(t).find(".cpt-repeater-section:first"),this.parent=r()(this.repeaterSection).data("parent"),this.fields=r()(this.repeaterSection).data("fields"),this.initSortable();var i=r()(this.repeaterSection).parent().children(".cpt-repeater-add:first");i.length>0&&this.listenAddEvent(i);var o=r()(this.repeaterSection).find(".cpt-repeater-group");r.a.each(o,(function(e,t){n.initFieldGroup(t)}))}var t,n,i;return t=e,(n=[{key:"listenAddEvent",value:function(e){var t=this;r()(e).on("click",(function(n){n.preventDefault(),r()(e).prop("disabled",!0);var i=r()('<div class="cpt-repeater-spinner"><div class="spinner"></div></div>');r()(t.repeaterSection).append(i);var o=r()(t.repeaterSection).children(".cpt-repeater-group").length,s=[];s.push({name:"action",value:"cpt-get-repeater-group"}),s.push({name:"nonce",value:cpt.ajax_nonce}),s.push({name:"fields",value:JSON.stringify(t.fields)}),s.push({name:"parent",value:t.parent+"["+o+"]"}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:s,success:function(n){if(n.success){r()(e).prop("disabled",!1),r()(i).remove();var o=r()(n.data);r()(t.repeaterSection).append(o),t.initFieldGroup(o)}else r()(e).prop("disabled",!1),r()(i).remove(),console.log("Error",n)}})}))}},{key:"initSortable",value:function(){var e=r()(this.repeaterSection).children(".cpt-repeater-group").children(".cpt-repeater-buttons").find(".move");r()(e).on("click",(function(e){e.preventDefault()})),r()(this.repeaterSection).sortable({handle:".move",cancel:"",cursor:"grab",axis:"y",delay:150,dropOnEmpty:!1,opacity:.5,revert:!0})}},{key:"initFieldGroup",value:function(e){var t=r()(e).find(".cpt-repeater-fields:first").children(".cpt-field"),n=r()(e).find(".cpt-repeater-fields:first .cpt-repeater-extra").children(".cpt-field");r.a.each(r.a.merge(t,n),(function(e,t){var n=r()(t).data("field-type");window.cptUtils.appendFieldEvents(n,t),r()(t).trigger("load")})),this.listenRemoveEvent(e),this.autofillKeyInput(e),this.listenSwitchFieldTypeEvent(e)}},{key:"listenRemoveEvent",value:function(e){var t=r()(e).find(".remove:first"),n=r()(t).closest(".cpt-repeater-group").children(".cpt-repeater-remove");r()(t).on("click",(function(e){e.preventDefault(),r()(n).addClass("active")})),r()(n).find(".abort:first").on("click",(function(e){e.preventDefault(),r()(n).removeClass("active")})),r()(n).find(".confirm:first").on("click",(function(t){t.preventDefault(),r()(e).remove()}))}},{key:"autofillKeyInput",value:function(e){var t=r()(e).find('input[id$="-label"]:first'),n=r()(e).find('input[id$="-key"]:first');window.cptUtils.autoFillKey(n,t)}},{key:"listenSwitchFieldTypeEvent",value:function(e){var t=r()(e).find(".cpt-repeater-field-type:first").find("select"),n=r()(e).find(".cpt-repeater-extra:first");r()(t).on("select2:select",(function(e){r()(n).empty();var i=r()('<div class="cpt-repeater-spinner"><div class="spinner"></div></div>');r()(n).append(i);var o=!!r()(t).val().length&&r()(t).val();if(o){var s=r()(t).attr("name").replace("meta-fields","").replace("[type]",""),a=[];a.push({name:"action",value:"cpt-get-repeater-extra-fields"}),a.push({name:"nonce",value:cpt.ajax_nonce}),a.push({name:"field-type",value:o}),a.push({name:"parent",value:s}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:a,success:function(e){if(e.success){r()(i).remove();var t=r()(e.data);r()(n).append(t),r()(n).children(".cpt-field"),r.a.each(t,(function(e,t){var n=r()(t).data("field-type");window.cptUtils.appendFieldEvents(n,t),r()(t).trigger("load")}))}else r()(i).remove(),console.log("Error",e)}})}else r()(i).remove()}))}}])&&st(t.prototype,n),i&&st(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ct(e){return(ct="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})(e)}function ut(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ht(i.key),i)}}function dt(e,t,n){return(t=ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){var t=function(e,t){if("object"!==ct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ct(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ct(t)?t:String(t)}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.select={load:function(e,t){window.cptUtils.disableProFieldSelectOptions(e);var n=r()(e).find("select:first"),i={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};r()(n).select2(i)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.tax_rel={load:function(e,t){var n=r()(e).find("select:first"),i=r()(n).data("type"),o={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};i.length>0&&(o.ajax={url:cpt.ajax_url,data:function(e){return{action:"cpt-get-tax_rel-options",nonce:cpt.ajax_nonce,search:e.term,taxonomy:i}},processResults:function(e){return{results:e.data}}}),r()(n).select2(o)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.text={load:function(e,t){}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.time={load:function(e,t){for(var n=r()(e).find(".cpt-time-section:first"),i=r()(n).children("select"),o=r()(i).data("value")?r()(i).data("value"):"",s="no"!==r()(i).data("max")&&r()(i).data("max"),a="no"!==r()(i).data("min")&&r()(i).data("min"),l=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"00:00",i=0;if(!n)return i;var r=!!n.split(":")&&n.split(":"),o=null!==(e=r[0])&&void 0!==e&&e,s=null!==(t=r[1])&&void 0!==t&&t,a=Number(o+s);return Number.isInteger(a)?a:i},c=l(s),u=l(a),d=0;d<=23;d++){d=d<10?"0"+d:d;for(var h=0;h<=59;h++){var p=d+":"+(h=h<10?"0"+h:h);(u>0&&l(p)<u||c>0&&l(p)>c)&&c>u||r()(i).append(r()('<option value="'+p+'"'+(o==p?' selected="selected"':"")+">"+p+"</option>"))}}var f={placeholder:r()(i).attr("placeholder")?r()(selectEl).attr("placeholder"):" ... ",allowClear:!0,multiple:!1};r()(i).select2(f)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.tinymce={load:function(e,t){new pt(e)}},e}));var pt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dt(this,"editorEl",void 0),dt(this,"editorId",void 0),dt(this,"editorForm",void 0),dt(this,"defaultArgs",{tinymce:{wpautop:!1,plugins:"charmap colorpicker hr lists paste tabfocus textcolor fullscreen wordpress wpautoresize wpeditimage wpemoji wpgallery wplink wptextpattern",toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,wp_more,spellchecker,fullscreen,wp_adv,listbuttons",toolbar2:"styleselect,strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",textarea_rows:20,wp_autoresize_on:!1,autoresize_min_height:50},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"},mediaButtons:!0}),this.editorEl=r()(t).find("textarea:first"),this.editorId=r()(this.editorEl).attr("id"),this.defaultArgs.tinymce.wp_autoresize_on=r()(this.editorEl).is("[autoresize]"),this.editorForm=r()(t).closest("form"),this.startEditor()}var t,n,i;return t=e,(n=[{key:"startEditor",value:function(){var e=this,t=!1,n=setInterval((function(){!r()("#post-title-0")&&r()("body").hasClass("block-editor-page")||(t=!0,e.removeEditor(),e.initializeEditor(),e.listenSubmitEvent(),e.listenSortableEvent()),t&&clearInterval(n)}),500)}},{key:"initializeEditor",value:function(){wp.oldEditor.initialize(this.editorId,this.defaultArgs)}},{key:"removeEditor",value:function(){wp.oldEditor.remove(this.editorId)}},{key:"listenSubmitEvent",value:function(){var e=tinyMCE.editors[this.editorId];r()(this.editorForm).on("submit",(function(t){e.save()})),e.on("blur",(function(t){e.save()})),r()(document).ajaxComplete((function(t,n,i){i.data&&i.data.match(/action=add-tag/)&&(e.setContent(""),e.save())}))}},{key:"listenSortableEvent",value:function(){var e=this,t=r()(this.editorEl).closest(".ui-sortable");r()(t).on("sortstart",(function(){e.removeEditor()})),r()(t).on("sortstop",(function(){e.initializeEditor()}))}}])&&ut(t.prototype,n),i&&ut(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ft(e){return(ft="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})(e)}function gt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ft(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===ft(o)?o:String(o)),i)}var r,o}var mt=wp.i18n,vt=mt.__;mt._x,mt._n,mt._nx;new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=r()("body"),this.window=r()(window),this.document=r()(document),this.utils=new u,this.loadFields(),this.loadUiFeatures()}var t,n,i;return t=e,(n=[{key:"loadUiFeatures",value:function(){var e=this;this.body.on("click",".cpt-field-wrap.advanced-field-btn .button",(function(e){e.preventDefault();var t=e.currentTarget,n=r()(t).closest(".cpt-fields-section"),i=r()(n).find(".cpt-field-wrap.advanced-field");r()(t).hasClass("button-secondary")?(r()(i).removeClass("active"),r()(t).removeClass("button-secondary").addClass("button-primary"),r()(t).find(".dashicons").attr("class","dashicons dashicons-insert"),r()(t).find(".label").html(vt("Advanced view","custom-post-types"))):(r()(i).addClass("active"),r()(t).addClass("button-secondary").removeClass("button-primary"),r()(t).find(".dashicons").attr("class","dashicons dashicons-remove"),r()(t).find(".label").html(vt("Simple view","custom-post-types")))})),this.window.on("load",(function(){if(e.body.hasClass("block-editor-page")){var t=r()('.cpt-fields-section *[id^="meta-fields-"][required]');t.length<=0||setInterval((function(){!function(e){var t=!0;r.a.each(e,(function(e,n){var i=r()(n).val().length>0;t=!!t&&i}));var n=r()(".edit-post-header__settings button.editor-post-publish-button__button");t?(r()(n).removeAttr("disabled"),r()(n).attr("aria-disabled","false")):(r()(n).attr("disabled","disabled"),r()(n).attr("aria-disabled","true"))}(t)}),200)}})),this.body.on("click",".cpt-notice.is-dismissible a.cpt-dismiss-notice",(function(e){e.preventDefault();var t=e.currentTarget,n=r()(t).closest(".cpt-notice").find("button.notice-dismiss"),i=r()(t).data("notice"),o=r()(t).data("duration"),s=[];s.push({name:"action",value:"cpt-dismiss-notice"}),s.push({name:"nonce",value:cpt.ajax_nonce}),s.push({name:"key",value:i}),s.push({name:"duration",value:o}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:s,success:function(e){e.success?n.click():console.log("Error",e)}})})),this.body.on("click",".cpt-notice pre.error-code > a",(function(e){e.preventDefault();var t=e.currentTarget;r()(t).closest(".error-code").find("code").addClass("show"),r()(t).remove()}));var t=r()('div[data-id="manage_cpt"].cpt-fields-section, div[data-id="manage_cpt_tax"].cpt-fields-section');r.a.each(t,(function(t,n){var i=r()(n).find('input[id$="-plural"]:first'),o=r()(n).find('input[id$="-id"]:first');e.utils.autoFillKey(o,i)})),this.document.on("menu-item-added",(function(t,n){e.loadFields(n)}))}},{key:"loadFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$fieldGroups=t?r()(t).find(".cpt-fields-section"):r()(".cpt-fields-section"),this.$fieldGroups&&(this.fieldsEvents=wp.hooks.applyFilters(cpt.js_fields_events_hook,[]),r.a.each(this.$fieldGroups,(function(t,n){var i=r()(n).children(".cpt-field");i&&r.a.each(i,(function(t,n){var i=r()(n).data("field-type");e.utils.appendFieldEvents(i,n),r()(n).trigger("load")}))})))}}])&>(t.prototype,n),i&>(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}())}]);17 !function(e,t){var n={version:302};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var i=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(i)&&i>=n.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(e){"hex"===(e=e||"hex")&&this._alpha<1&&(e="rgba");var t="";return"hex"===e?t=this.toString():this.error||(t=this.toCSS(e).replace(/\(\s+/,"(").replace(/\s+\)/,")")),t},window.wpColorPickerAlpha=n;var r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";e.widget("a8c.iris",e.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(e){return void 0===e&&(e=this._color),this.alphaOptions.alphaEnabled?(e=e.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(e=e.replace(/\s+/g,"")),e):e.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(e){}e.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(e){var t=this,n=function(n){var i=e.val(),r=new Color(i),o=(i=i.replace(/^(#|(rgb|hsl)a?)/,""),t.alphaOptions.alphaColorType);e.removeClass("iris-error"),r.error?""!==i&&e.addClass("iris-error"):"hex"===o&&"keyup"===n.type&&i.match(/^[0-9a-fA-F]{3}$/)||r.toIEOctoHex()!==t._color.toIEOctoHex()&&t._setOption("color",t._getColor(r))};e.on("change",n).on("keyup",t._debounce(n,100)),t.options.hide&&e.one("focus",(function(){t.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var t=this,n=t.controls.strip.clone(!1,!1),i=n.find(".iris-slider-offset"),r={stripAlpha:n,stripAlphaSlider:i};n.addClass("iris-strip-alpha"),i.addClass("iris-slider-offset-alpha"),n.appendTo(t.picker.find(".iris-picker-inner")),e.each(r,(function(e,n){t.controls[e]=n})),t.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(e,n){t.active="strip",t._color._alpha=parseFloat(n.value/100),t._change.apply(t,arguments)}})}},_dimensions:function(e){if(this._super(e),this.alphaOptions.alphaEnabled){var t,n,i,r,o,s=this.options,a=this.controls.square,l=this.picker.find(".iris-strip");for(t=Math.round(this.picker.outerWidth(!0)-(s.border?22:0)),n=Math.round(a.outerWidth()),i=Math.round((t-n)/2),r=Math.round(i/2),o=Math.round(n+2*i+2*r);o>t;)i=Math.round(i-2),r=Math.round(r-1),o=Math.round(n+2*i+2*r);a.css("margin","0"),l.width(i).css("margin-left",r+"px")}},_change:function(){var t=this,n=t.active;if(t._super(),t.alphaOptions.alphaEnabled){var i=t.controls,o=parseInt(100*t._color._alpha),s=t._color.toRgb(),a=["rgb("+s.r+","+s.g+","+s.b+") 0%","rgba("+s.r+","+s.g+","+s.b+", 0) 100%"];t.picker.closest(".wp-picker-container").find(".wp-color-result");t.options.color=t._getColor(),i.stripAlpha.css({background:"linear-gradient(to bottom, "+a.join(", ")+"), url("+r+")"}),n&&i.stripAlphaSlider.slider("value",o),t._color.error||t.element.removeClass("iris-error").val(t.options.color),t.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var n=e(this).data("color");t.alphaOptions.alphaReset&&(t._color._alpha=1,n=t._getColor()),t._setOption("color",n)}))}},_paintDimension:function(e,t){var n=!1;this.alphaOptions.alphaEnabled&&"strip"===t&&(n=this._color,this._color=new Color(n.toString()),this.hue=this._color.h()),this._super(e,t),n&&(this._color=n)},_setOption:function(e,t){if("color"!==e||!this.alphaOptions.alphaEnabled)return this._super(e,t);t=""+t,newColor=new Color(t).setHSpace(this.options.mode),newColor.error||this._getColor(newColor)===this._getColor()||(this._color=newColor,this.options.color=this._getColor(),this.active="external",this._change())},color:function(e){return!0===e?this._color.clone():void 0===e?this._getColor():void this.option("color",e)}}),e.widget("wp.wpColorPicker",e.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var t=this.element,n=t.data("type")||this.options.type,i=t.data("defaultColor")||t.val(),r={alphaEnabled:t.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return r.alphaEnabled&&(r.alphaEnabled=t.is("input")&&"full"===n),r.alphaEnabled?(r.alphaColorWithSpace=i&&i.match(/\s/),e.each(r,(function(e,n){var o=t.data(e)||n;switch(e){case"alphaCustomWidth":o=o?parseInt(o,10):0,o=isNaN(o)?n:o;break;case"alphaColorType":o.match(/^(hex|(rgb|hsl)a?)$/)||(o=i&&i.match(/^#/)?"hex":i&&i.match(/^hsla?/)?"hsl":n);break;default:o=!!o}r[e]=o})),r):r},_create:function(){e.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var t=this,n=t.element,i=t.toggler.is("a");this.alphaOptions.defaultWidth=n.width(),this.alphaOptions.alphaCustomWidth&&n.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),t.toggler.css({position:"relative","background-image":"url("+r+")"}),i?t.toggler.html('<span class="color-alpha" />'):t.toggler.append('<span class="color-alpha" />'),t.colorAlpha=t.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":n.val()}),"ltr"===t.colorAlpha.css("direction")?t.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):t.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),n.iris({change:function(e,n){t.colorAlpha.css({"background-color":n.color.to_s(t.alphaOptions.alphaColorType)}),"function"==typeof t.options.change&&t.options.change.call(this,e,n)}}),t.wrap.on("click.wpcolorpicker",(function(e){e.stopPropagation()})),t.toggler.on("click",(function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()})),n.on("change",(function(r){var o=e(this).val();(n.hasClass("iris-error")||""===o||o.match(/^(#|(rgb|hsl)a?)$/))&&(i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),"function"==typeof t.options.clear&&t.options.clear.call(this,r))})),t.button.on("click",(function(r){e(this).hasClass("wp-picker-default")?n.val(t.options.defaultColor).change():e(this).hasClass("wp-picker-clear")&&(n.val(""),i&&t.toggler.removeAttr("style"),t.colorAlpha.css("background-color",""),"function"==typeof t.options.clear&&t.options.clear.call(this,r),n.trigger("change"))}))}})}}(jQuery)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n.p,n.p,n.p,n(2),n(3);var i=n(0),r=n.n(i);function o(e){return(o="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})(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var o=t&&t.prototype instanceof y?t:y,s=Object.create(o.prototype),a=new j(i||[]);return r(s,"_invoke",{value:C(e,n,a)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",g="executing",m="completed",v={};function y(){}function w(){}function b(){}var _={};d(_,l,(function(){return this}));var k=Object.getPrototypeOf,D=k&&k(k(M([])));D&&D!==n&&i.call(D,l)&&(_=D);var x=b.prototype=y.prototype=Object.create(_);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(r,s,a,l){var c=p(e[r],e,s);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return s=s?s.then(r,r):r()}})}function C(t,n,i){var r=f;return function(o,s){if(r===g)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var l=E(a,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var c=p(t,n,i);if("normal"===c.type){if(r=i.done?m:"suspendedYield",c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=m,i.method="throw",i.arg=c.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(o(t)+" is not iterable")}return w.prototype=b,r(x,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:w,configurable:!0}),w.displayName=d(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(A.prototype),d(A.prototype,c,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new A(h(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(x),d(x,u,"Generator"),d(x,l,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=M,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:M(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),v}},t}function a(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,l,"next",e)}function l(e){a(o,i,r,s,l,"throw",e)}s(void 0)}))}}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,s=void 0,s=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===o(s)?s:String(s)),i)}var r,s}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"appendFieldEvents",value:function(e,t){this.fieldsEvents=wp.hooks.applyFilters(cpt.js_fields_events_hook,[]);var n=this.fieldsEvents[e];n&&r.a.each(n,(function(e,n){r()(t).on(e,(function(e){n(t,e)}))}))}},{key:"sanitizeTitle",value:function(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/_,:;",n=0,i=t.length;n<i;n++)e=e.replace(new RegExp(t.charAt(n),"g"),"aaaaeeeeiiiioooouuuuncescrzyuudtn------".charAt(n));return e=e.replace(".","-").replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/\//g,"")}},{key:"autoFillKey",value:function(e,t){var n=this;r()(t).add(e).on("focusout",(function(){var i=r()(e).val(),o=r()(t).val();!i.length&&o.length&&r()(e).val(n.sanitizeTitle(o))}))}},{key:"copyToClipboard",value:function(e){var t=navigator.clipboard.writeText(r()(e).val()).then((function(){return!0}),(function(){return!1}));return l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}},{key:"disableProFieldSelectOptions",value:function(e){var t=r()(e).closest(".cpt-fields-section");if(t&&"manage_cpt_field"===t.data("id")){var n=r()(e).find("select > option");r.a.each(n,(function(e,t){t.text.endsWith(" [PRO only]")&&(t.disabled=!0)}))}}}])&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.cptUtils=new u,wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.checkbox={load:function(e,t){var n=r()(e).find('input[type="checkbox"][required]');r()(n).on("click",(function(t){r()(n).prop("required",!r()(e).find('input[type="checkbox"]:checked').length)}))}},e}));n(4);wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.color={load:function(e,t){var n=r()(e).find(".cpt-color-section:first"),i=r()(n).children("input");r()(i).wpColorPicker({palettes:!0})}},e}));n(5);function d(e){return e[e.length-1]}function h(e,...t){return t.forEach(t=>{e.includes(t)||e.push(t)}),e}function p(e,t){return e?e.split(t):[]}function f(e,t,n){return(void 0===t||e>=t)&&(void 0===n||e<=n)}function g(e,t,n){return e<t?t:e>n?n:e}function m(e,t,n={},i=0,r=""){r+=`<${Object.keys(n).reduce((e,t)=>{let r=n[t];return"function"==typeof r&&(r=r(i)),`${e} ${t}="${r}"`},e)}></${e}>`;const o=i+1;return o<t?m(e,t,n,o,r):r}function v(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function y(e){return new Date(e).setHours(0,0,0,0)}function w(){return(new Date).setHours(0,0,0,0)}function b(...e){switch(e.length){case 0:return w();case 1:return y(e[0])}const t=new Date(0);return t.setFullYear(...e),t.setHours(0,0,0,0)}function _(e,t){const n=new Date(e);return n.setDate(n.getDate()+t)}function k(e,t){const n=new Date(e),i=n.getMonth()+t;let r=i%12;r<0&&(r+=12);const o=n.setMonth(i);return n.getMonth()!==r?n.setDate(0):o}function D(e,t){const n=new Date(e),i=n.getMonth(),r=n.setFullYear(n.getFullYear()+t);return 1===i&&2===n.getMonth()?n.setDate(0):r}function x(e,t){return(e-t+7)%7}function S(e,t,n=0){const i=new Date(e).getDay();return _(e,x(t,n)-x(i,n))}function A(e,t){return Math.round((e-t)/6048e5)+1}function C(e){const t=S(e,4,1);return A(t,S(new Date(t).setMonth(0,4),4,1))}function E(e,t){const n=S(new Date(e).setMonth(0,1),t,t),i=S(e,t,t),r=A(i,n);if(r<53)return r;return i===S(new Date(e).setDate(32),t,t)?1:r}function $(e){return E(e,0)}function O(e){return E(e,6)}function j(e,t){const n=new Date(e).getFullYear();return Math.floor(n/t)*t}function M(e,t,n){if(1!==t&&2!==t)return e;const i=new Date(e);return 1===t?n?i.setMonth(i.getMonth()+1,0):i.setDate(1):n?i.setFullYear(i.getFullYear()+1,0,0):i.setMonth(0,1),i.setHours(0,0,0,0)}const T=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,L=/[\s!-/:-@[-`{-~年月日]+/;let N={};const F={y:(e,t)=>new Date(e).setFullYear(parseInt(t,10)),m(e,t,n){const i=new Date(e);let r=parseInt(t,10)-1;if(isNaN(r)){if(!t)return NaN;const e=t.toLowerCase(),i=t=>t.toLowerCase().startsWith(e);if(r=n.monthsShort.findIndex(i),r<0&&(r=n.months.findIndex(i)),r<0)return NaN}return i.setMonth(r),i.getMonth()!==function e(t){return t>-1?t%12:e(t+12)}(r)?i.setDate(0):i.getTime()},d:(e,t)=>new Date(e).setDate(parseInt(t,10))},P={d:e=>e.getDate(),dd:e=>I(e.getDate(),2),D:(e,t)=>t.daysShort[e.getDay()],DD:(e,t)=>t.days[e.getDay()],m:e=>e.getMonth()+1,mm:e=>I(e.getMonth()+1,2),M:(e,t)=>t.monthsShort[e.getMonth()],MM:(e,t)=>t.months[e.getMonth()],y:e=>e.getFullYear(),yy:e=>I(e.getFullYear(),2).slice(-2),yyyy:e=>I(e.getFullYear(),4)};function I(e,t){return e.toString().padStart(t,"0")}function B(e){if("string"!=typeof e)throw new Error("Invalid date format.");if(e in N)return N[e];const t=e.split(T),n=e.match(new RegExp(T,"g"));if(0===t.length||!n)throw new Error("Invalid date format.");const i=n.map(e=>P[e]),r=Object.keys(F).reduce((e,t)=>(n.find(e=>"D"!==e[0]&&e[0].toLowerCase()===t)&&e.push(t),e),[]);return N[e]={parser(e,t){const i=e.split(L).reduce((e,t,i)=>{if(t.length>0&&n[i]){const r=n[i][0];"M"===r?e.m=t:"D"!==r&&(e[r]=t)}return e},{});return r.reduce((e,n)=>{const r=F[n](e,i[n],t);return isNaN(r)?e:r},w())},formatter:(e,n)=>i.reduce((i,r,o)=>i+`${t[o]}${r(e,n)}`,"")+d(t)}}function R(e,t,n){if(e instanceof Date||"number"==typeof e){const t=y(e);return isNaN(t)?void 0:t}if(e){if("today"===e)return w();if(t&&t.toValue){const i=t.toValue(e,t,n);return isNaN(i)?void 0:y(i)}return B(t).parser(e,n)}}function q(e,t,n){if(isNaN(e)||!e&&0!==e)return"";const i="number"==typeof e?new Date(e):e;return t.toDisplay?t.toDisplay(i,t,n):B(t).formatter(i,n)}const H=document.createRange();function W(e){return H.createContextualFragment(e)}function V(e){return e.parentElement||(e.parentNode instanceof ShadowRoot?e.parentNode.host:void 0)}function U(e){return e.getRootNode().activeElement===e}function z(e){"none"!==e.style.display&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function Y(e){"none"===e.style.display&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function G(e){e.firstChild&&(e.removeChild(e.firstChild),G(e))}const K=new WeakMap,{addEventListener:Z,removeEventListener:J}=EventTarget.prototype;function Q(e,t){let n=K.get(e);n||(n=[],K.set(e,n)),t.forEach(e=>{Z.call(...e),n.push(e)})}function X(e){let t=K.get(e);t&&(t.forEach(e=>{J.call(...e)}),K.delete(e))}if(!Event.prototype.composedPath){const e=(t,n=[])=>{let i;return n.push(t),t.parentNode?i=t.parentNode:t.host?i=t.host:t.defaultView&&(i=t.defaultView),i?e(i,n):n};Event.prototype.composedPath=function(){return e(this.target)}}function ee(e,t){const n="function"==typeof t?t:e=>e instanceof Element&&e.matches(t);return function e(t,n,i){const[r,...o]=t;return n(r)?r:r!==i&&"HTML"!==r.tagName&&0!==o.length?e(o,n,i):void 0}(e.composedPath(),n,e.currentTarget)}var te={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},ne={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0};const{language:ie,format:re,weekStart:oe}=ne;function se(e,t){return e.length<6&&t>=0&&t<7?h(e,t):e}function ae(e,t){switch(4===e?6===t?3:!t+1:e){case 1:return C;case 2:return $;case 3:return O}}function le(e,t,n){return t.weekStart=e,t.weekEnd=(e+6)%7,4===n&&(t.getWeekNumber=ae(4,e)),e}function ce(e,t,n,i){const r=R(e,t,n);return void 0!==r?r:i}function ue(e,t,n=3){const i=parseInt(e,10);return i>=0&&i<=n?i:t}function de(e,t,n,i){t in e&&(n in e||(e[n]=i?i(e[t]):e[t]),delete e[t])}function he(e,t){const n=Object.assign({},e),i={},r=t.constructor.locales,o=!!t.rangeSideIndex;let{datesDisabled:s,format:a,language:l,locale:c,maxDate:u,maxView:d,minDate:p,pickLevel:f,startView:g,weekNumbers:m,weekStart:v}=t.config||{};if(de(n,"calendarWeeks","weekNumbers",e=>e?1:0),de(n,"clearBtn","clearButton"),de(n,"todayBtn","todayButton"),de(n,"todayBtnMode","todayButtonMode"),n.language){let e;if(n.language!==l&&(r[n.language]?e=n.language:(e=n.language.split("-")[0],r[e]||(e=!1))),delete n.language,e){l=i.language=e;const t=c||r[ie];c=Object.assign({format:re,weekStart:oe},r[ie]),l!==ie&&Object.assign(c,r[l]),i.locale=c,a===t.format&&(a=i.format=c.format),v===t.weekStart&&(v=le(c.weekStart,i,m))}}if(n.format){const e="function"==typeof n.format.toDisplay,t="function"==typeof n.format.toValue,r=T.test(n.format);(e&&t||r)&&(a=i.format=n.format),delete n.format}let y=f;"pickLevel"in n&&(y=ue(n.pickLevel,f,2),delete n.pickLevel),y!==f&&(y>f&&("minDate"in n||(n.minDate=p),"maxDate"in n||(n.maxDate=u)),s&&!n.datesDisabled&&(n.datesDisabled=[]),f=i.pickLevel=y);let w=p,_=u;if("minDate"in n){const e=b(0,0,1);w=null===n.minDate?e:ce(n.minDate,a,c,w),w!==e&&(w=M(w,f,!1)),delete n.minDate}if("maxDate"in n&&(_=null===n.maxDate?void 0:ce(n.maxDate,a,c,_),void 0!==_&&(_=M(_,f,!0)),delete n.maxDate),_<w?(p=i.minDate=_,u=i.maxDate=w):(p!==w&&(p=i.minDate=w),u!==_&&(u=i.maxDate=_)),n.datesDisabled){const e=n.datesDisabled;if("function"==typeof e)i.datesDisabled=null,i.checkDisabled=(t,n)=>e(new Date(t),n,o);else{const t=i.datesDisabled=e.reduce((e,t)=>{const n=R(t,a,c);return void 0!==n?h(e,M(n,f,o)):e},[]);i.checkDisabled=e=>t.includes(e)}delete n.datesDisabled}if("defaultViewDate"in n){const e=R(n.defaultViewDate,a,c);void 0!==e&&(i.defaultViewDate=e),delete n.defaultViewDate}if("weekStart"in n){const e=Number(n.weekStart)%7;isNaN(e)||(v=le(e,i,m)),delete n.weekStart}if(n.daysOfWeekDisabled&&(i.daysOfWeekDisabled=n.daysOfWeekDisabled.reduce(se,[]),delete n.daysOfWeekDisabled),n.daysOfWeekHighlighted&&(i.daysOfWeekHighlighted=n.daysOfWeekHighlighted.reduce(se,[]),delete n.daysOfWeekHighlighted),"weekNumbers"in n){let e=n.weekNumbers;if(e){const t="function"==typeof e?(t,n)=>e(new Date(t),n):ae(e=parseInt(e,10),v);t&&(m=i.weekNumbers=e,i.getWeekNumber=t)}else m=i.weekNumbers=0,i.getWeekNumber=null;delete n.weekNumbers}if("maxNumberOfDates"in n){const e=parseInt(n.maxNumberOfDates,10);e>=0&&(i.maxNumberOfDates=e,i.multidate=1!==e),delete n.maxNumberOfDates}n.dateDelimiter&&(i.dateDelimiter=String(n.dateDelimiter),delete n.dateDelimiter);let k=d;"maxView"in n&&(k=ue(n.maxView,d),delete n.maxView),k=f>k?f:k,k!==d&&(d=i.maxView=k);let D=g;if("startView"in n&&(D=ue(n.startView,D),delete n.startView),D<f?D=f:D>d&&(D=d),D!==g&&(i.startView=D),n.prevArrow){const e=W(n.prevArrow);e.childNodes.length>0&&(i.prevArrow=e.childNodes),delete n.prevArrow}if(n.nextArrow){const e=W(n.nextArrow);e.childNodes.length>0&&(i.nextArrow=e.childNodes),delete n.nextArrow}if("disableTouchKeyboard"in n&&(i.disableTouchKeyboard="ontouchstart"in document&&!!n.disableTouchKeyboard,delete n.disableTouchKeyboard),n.orientation){const e=n.orientation.toLowerCase().split(/\s+/g);i.orientation={x:e.find(e=>"left"===e||"right"===e)||"auto",y:e.find(e=>"top"===e||"bottom"===e)||"auto"},delete n.orientation}if("todayButtonMode"in n){switch(n.todayButtonMode){case 0:case 1:i.todayButtonMode=n.todayButtonMode}delete n.todayButtonMode}return Object.entries(n).forEach(([e,t])=>{void 0!==t&&e in ne&&(i[e]=t)}),i}const pe={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};const fe=e=>e.map(e=>`<button type="button" class="%buttonClass% ${e}" tabindex="-1"></button>`).join("");var ge=v(`<div class="datepicker">\n <div class="datepicker-picker">\n <div class="datepicker-header">\n <div class="datepicker-title"></div>\n <div class="datepicker-controls">\n ${fe(["prev-button prev-btn","view-switch","next-button next-btn"])}\n </div>\n </div>\n <div class="datepicker-main"></div>\n <div class="datepicker-footer">\n <div class="datepicker-controls">\n ${fe(["today-button today-btn","clear-button clear-btn"])}\n </div>\n </div>\n </div>\n</div>`),me=v(`<div class="days">\n <div class="days-of-week">${m("span",7,{class:"dow"})}</div>\n <div class="datepicker-grid">${m("span",42)}</div>\n</div>`),ve=v(`<div class="week-numbers calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">${m("span",6,{class:"week"})}</div>\n</div>`);class ye{constructor(e,t){Object.assign(this,t,{picker:e,element:W('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!e.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(e){"pickLevel"in e&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}prepareForRender(e,t,n){this.disabled=[];const i=this.picker;i.setViewSwitchLabel(e),i.setPrevButtonDisabled(t),i.setNextButtonDisabled(n)}setDisabled(e,t){t.add("disabled"),h(this.disabled,e)}performBeforeHook(e,t){let n=this.beforeShow(new Date(t));switch(typeof n){case"boolean":n={enabled:n};break;case"string":n={classes:n}}if(n){const i=e.classList;if(!1===n.enabled&&this.setDisabled(t,i),n.classes){const e=n.classes.split(/\s+/);i.add(...e),e.includes("disabled")&&this.setDisabled(t,i)}n.content&&function(e,t){G(e),t instanceof DocumentFragment?e.appendChild(t):"string"==typeof t?e.appendChild(W(t)):"function"==typeof t.forEach&&t.forEach(t=>{e.appendChild(t)})}(e,n.content)}}renderCell(e,t,n,i,{selected:r,range:o},s,a=[]){e.textContent=t,this.isMinView&&(e.dataset.date=i);const l=e.classList;if(e.className="datepicker-cell "+this.cellClass,n<this.first?l.add("prev"):n>this.last&&l.add("next"),l.add(...a),(s||this.checkDisabled(i,this.id))&&this.setDisabled(i,l),o){const[e,t]=o;n>e&&n<t&&l.add("range"),n===e&&l.add("range-start"),n===t&&l.add("range-end")}r.includes(n)&&l.add("selected"),n===this.focused&&l.add("focused"),this.beforeShow&&this.performBeforeHook(e,i)}refreshCell(e,t,n,[i,r]){const o=e.classList;o.remove("range","range-start","range-end","selected","focused"),t>i&&t<r&&o.add("range"),t===i&&o.add("range-start"),t===r&&o.add("range-end"),n.includes(t)&&o.add("selected"),t===this.focused&&o.add("focused")}changeFocusedCell(e){this.grid.querySelectorAll(".focused").forEach(e=>{e.classList.remove("focused")}),this.grid.children[e].classList.add("focused")}}class we extends ye{constructor(e){super(e,{id:0,name:"days",cellClass:"day"})}init(e,t=!0){if(t){const e=W(me).firstChild;this.dow=e.firstChild,this.grid=e.lastChild,this.element.appendChild(e)}super.init(e)}setOptions(e){let t;if("minDate"in e&&(this.minDate=e.minDate),"maxDate"in e&&(this.maxDate=e.maxDate),e.checkDisabled&&(this.checkDisabled=e.checkDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),"todayHighlight"in e&&(this.todayHighlight=e.todayHighlight),"weekStart"in e&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){const n=this.locale=e.locale;this.dayNames=n.daysMin,this.switchLabelFormat=n.titleFormat,t=!0}if("beforeShowDay"in e&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),"weekNumbers"in e)if(e.weekNumbers&&!this.weekNumbers){const e=W(ve).firstChild;this.weekNumbers={element:e,dow:e.firstChild,weeks:e.lastChild},this.element.insertBefore(e,this.element.firstChild)}else this.weekNumbers&&!e.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in e&&(this.getWeekNumber=e.getWeekNumber),"showDaysOfWeek"in e&&(e.showDaysOfWeek?(Y(this.dow),this.weekNumbers&&Y(this.weekNumbers.dow)):(z(this.dow),this.weekNumbers&&z(this.weekNumbers.dow))),t&&Array.from(this.dow.children).forEach((e,t)=>{const n=(this.weekStart+t)%7;e.textContent=this.dayNames[n],e.className=this.daysOfWeekDisabled.includes(n)?"dow disabled":"dow"})}updateFocus(){const e=new Date(this.picker.viewDate),t=e.getFullYear(),n=e.getMonth(),i=b(t,n,1),r=S(i,this.weekStart,this.weekStart);this.first=i,this.last=b(t,n+1,0),this.start=r,this.focused=this.picker.viewDate}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e,t&&(this.range=t.dates)}render(){if(this.today=this.todayHighlight?w():void 0,this.prepareForRender(q(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const e=this.weekStart,t=S(this.first,e,e);Array.from(this.weekNumbers.weeks.children).forEach((n,i)=>{const r=_(t,7*i);n.textContent=this.getWeekNumber(r,e),i>3&&n.classList[r>this.last?"add":"remove"]("next")})}Array.from(this.grid.children).forEach((e,t)=>{const n=_(this.start,t),i=new Date(n),r=i.getDay(),o=[];this.today===n&&o.push("today"),this.daysOfWeekHighlighted.includes(r)&&o.push("highlighted"),this.renderCell(e,i.getDate(),n,n,this,n<this.minDate||n>this.maxDate||this.daysOfWeekDisabled.includes(r),o)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.dataset.date),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function be(e,t){if(!e||!e[0]||!e[1])return;const[[n,i],[r,o]]=e;return n>t||r<t?void 0:[n===t?i:-1,r===t?o:12]}class _e extends ye{constructor(e){super(e,{id:1,name:"months",cellClass:"month"})}init(e,t=!0){t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(W(m("span",12,{"data-month":e=>e}))),this.first=0,this.last=11),super.init(e)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),"minDate"in e)if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if("maxDate"in e)if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=b(this.maxYear,this.maxMonth+1,0)}e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),"beforeShowMonth"in e&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((e,t)=>{const n=new Date(t),i=n.getFullYear(),r=n.getMonth();return void 0===e[i]?e[i]=[r]:h(e[i],r),e},{}),t&&t.dates&&(this.range=t.dates.map(e=>{const t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]}))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const e=this.selected[this.year]||[],t=this.year<this.minYear||this.year>this.maxYear,n=this.year===this.minYear,i=this.year===this.maxYear,r=be(this.range,this.year);Array.from(this.grid.children).forEach((o,s)=>{const a=M(new Date(this.year,s,1),1,this.isRangeEnd);this.renderCell(o,this.monthNames[s],s,a,{selected:e,range:r},t||n&&s<this.minMonth||i&&s>this.maxMonth)})}refresh(){const e=this.selected[this.year]||[],t=be(this.range,this.year)||[];Array.from(this.grid.children).forEach((n,i)=>{this.refreshCell(n,i,e,t)})}refreshFocus(){this.changeFocusedCell(this.focused)}}class ke extends ye{constructor(e,t){super(e,t)}init(e,t=!0){var n;t&&(this.navStep=10*this.step,this.beforeShowOption="beforeShow"+(n=this.cellClass,[...n].reduce((e,t,n)=>e+(n?t:t.toUpperCase()),"")),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(W(m("span",12)))),super.init(e)}setOptions(e){if("minDate"in e&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=j(e.minDate,this.step),this.minDate=b(this.minYear,0,1))),"maxDate"in e&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=j(e.maxDate,this.step),this.maxDate=b(this.maxYear,11,31))),e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),this.beforeShowOption in e){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const e=new Date(this.picker.viewDate),t=j(e,this.navStep),n=t+9*this.step;this.first=t,this.last=n,this.start=t-this.step,this.focused=j(e,this.step)}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((e,t)=>h(e,j(t,this.step)),[]),t&&t.dates&&(this.range=t.dates.map(e=>{if(void 0!==e)return j(e,this.step)}))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>=this.maxYear),Array.from(this.grid.children).forEach((e,t)=>{const n=this.start+t*this.step,i=M(new Date(n,0,1),2,this.isRangeEnd);e.dataset.year=n,this.renderCell(e,n,n,i,this,n<this.minYear||n>this.maxYear)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.textContent),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function De(e,t){const n={bubbles:!0,cancelable:!0,detail:{date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e}};e.element.dispatchEvent(new CustomEvent(t,n))}function xe(e,t){const{config:n,picker:i}=e,{currentView:r,viewDate:o}=i;let s;switch(r.id){case 0:s=k(o,t);break;case 1:s=D(o,t);break;default:s=D(o,t*r.navStep)}s=g(s,n.minDate,n.maxDate),i.changeFocus(s).render()}function Se(e){const t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function Ae(e){e.setDate({clear:!0})}function Ce(e){const t=w();1===e.config.todayButtonMode?e.setDate(t,{forceRefresh:!0,viewDate:t}):e.setFocusedDate(t,!0)}function Ee(e){const t=()=>{e.config.updateOnBlur?e.update({revert:!0}):e.refresh("input"),e.hide()},n=e.element;U(n)?n.addEventListener("blur",t,{once:!0}):t()}function $e(e,t){const n=e.picker,i=new Date(n.viewDate),r=n.currentView.id,o=1===r?k(i,t-i.getMonth()):D(i,t-i.getFullYear());n.changeFocus(o).changeView(r-1).render()}function Oe(e){Se(e)}function je(e){xe(e,-1)}function Me(e){xe(e,1)}function Te(e,t){const n=ee(t,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:i,isMinView:r}=e.picker.currentView,o=n.dataset;r?e.setDate(Number(o.date)):$e(e,Number(1===i?o.month:o.year))}function Le(e){e.preventDefault()}const Ne=["left","top","right","bottom"].reduce((e,t)=>(e[t]="datepicker-orient-"+t,e),{}),Fe=e=>e?e+"px":e;function Pe(e,t){if("title"in t&&(t.title?(e.controls.title.textContent=t.title,Y(e.controls.title)):(e.controls.title.textContent="",z(e.controls.title))),t.prevArrow){const n=e.controls.prevButton;G(n),t.prevArrow.forEach(e=>{n.appendChild(e.cloneNode(!0))})}if(t.nextArrow){const n=e.controls.nextButton;G(n),t.nextArrow.forEach(e=>{n.appendChild(e.cloneNode(!0))})}if(t.locale&&(e.controls.todayButton.textContent=t.locale.today,e.controls.clearButton.textContent=t.locale.clear),"todayButton"in t&&(t.todayButton?Y(e.controls.todayButton):z(e.controls.todayButton)),"minDate"in t||"maxDate"in t){const{minDate:t,maxDate:n}=e.datepicker.config;e.controls.todayButton.disabled=!f(w(),t,n)}"clearButton"in t&&(t.clearButton?Y(e.controls.clearButton):z(e.controls.clearButton))}function Ie(e){const{dates:t,config:n,rangeSideIndex:i}=e;return g(t.length>0?d(t):M(n.defaultViewDate,n.pickLevel,i),n.minDate,n.maxDate)}function Be(e,t){"_oldViewDate"in e||t===e.viewDate||(e._oldViewDate=e.viewDate),e.viewDate=t;const{id:n,year:i,first:r,last:o}=e.currentView,s=new Date(t).getFullYear();switch(n){case 0:return t<r||t>o;case 1:return s!==i;default:return s<r||s>o}}function Re(e){return window.getComputedStyle(e).direction}class qe{constructor(e){const{config:t,inputField:n}=this.datepicker=e,i=ge.replace(/%buttonClass%/g,t.buttonClass),r=this.element=W(i).firstChild,[o,s,a]=r.firstChild.children,l=o.firstElementChild,[c,u,d]=o.lastElementChild.children,[h,p]=a.firstChild.children,f={title:l,prevButton:c,viewSwitch:u,nextButton:d,todayButton:h,clearButton:p};this.main=s,this.controls=f;const g=n?"dropdown":"inline";r.classList.add("datepicker-"+g),Pe(this,t),this.viewDate=Ie(e),Q(e,[[r,"mousedown",Le],[s,"click",Te.bind(null,e)],[f.viewSwitch,"click",Oe.bind(null,e)],[f.prevButton,"click",je.bind(null,e)],[f.nextButton,"click",Me.bind(null,e)],[f.todayButton,"click",Ce.bind(null,e)],[f.clearButton,"click",Ae.bind(null,e)]]),this.views=[new we(this),new _e(this),new ke(this,{id:2,name:"years",cellClass:"year",step:1}),new ke(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.container?t.container.appendChild(this.element):n.after(this.element)}setOptions(e){Pe(this,e),this.views.forEach(t=>{t.init(e,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:e,element:t}=this,n=e.inputField;if(n){const i=Re(n);i!==Re(V(t))?t.dir=i:t.dir&&t.removeAttribute("dir"),this.place(),t.classList.add("active"),e.config.disableTouchKeyboard&&n.blur()}else t.classList.add("active");this.active=!0,De(e,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,De(this.datepicker,"hide"))}place(){const{classList:e,style:t}=this.element;t.display="block";const{width:n,height:i}=this.element.getBoundingClientRect(),r=this.element.offsetParent;t.display="";const{config:o,inputField:s}=this.datepicker,{left:a,top:l,right:c,bottom:u,width:d,height:h}=s.getBoundingClientRect();let{x:p,y:f}=o.orientation,g=a,m=l;if(r!==document.body&&r){const e=r.getBoundingClientRect();g-=e.left-r.scrollLeft,m-=e.top-r.scrollTop}else g+=window.scrollX,m+=window.scrollY;const v=function e(t){const n=V(t);if(n!==document.body&&n)return"visible"!==window.getComputedStyle(n).overflow?n:e(n)}(s);let y=0,w=0,{clientWidth:b,clientHeight:_}=document.documentElement;if(v){const e=v.getBoundingClientRect();e.top>0&&(w=e.top),e.left>0&&(y=e.left),e.right<b&&(b=e.right),e.bottom<_&&(_=e.bottom)}let k=0;"auto"===p&&(a<y?(p="left",k=y-a):a+n>b?(p="right",b<c&&(k=b-c)):p="rtl"===Re(s)?c-n<y?"left":"right":"left"),"right"===p&&(g+=d-n),g+=k,"auto"===f&&(f=l-i>w&&u+i>_?"top":"bottom"),"top"===f?m-=i:m+=h,e.remove(...Object.values(Ne)),e.add(Ne[p],Ne[f]),t.left=Fe(g),t.top=Fe(m)}setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}setPrevButtonDisabled(e){this.controls.prevButton.disabled=e}setNextButtonDisabled(e){this.controls.nextButton.disabled=e}changeView(e){const t=this.currentView;return e!==t.id&&(this._oldView||(this._oldView=t),this.currentView=this.views[e],this._renderMethod="render"),this}changeFocus(e){return this._renderMethod=Be(this,e)?"render":"refreshFocus",this.views.forEach(e=>{e.updateFocus()}),this}update(e){const t=void 0===e?Ie(this.datepicker):e;return this._renderMethod=Be(this,t)?"render":"refresh",this.views.forEach(e=>{e.updateFocus(),e.updateSelection()}),this}render(e=!0){const{currentView:t,datepicker:n,_oldView:i}=this,r=new Date(this._oldViewDate),o=e&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,t[o](),i&&(this.main.replaceChild(t.element,i.element),De(n,"changeView")),!isNaN(r)){const e=new Date(this.viewDate);e.getFullYear()!==r.getFullYear()&&De(n,"changeYear"),e.getMonth()!==r.getMonth()&&De(n,"changeMonth")}}}function He(e,t,n){const i=e.picker,r=i.currentView,o=r.step||1;let s,a=i.viewDate;switch(r.id){case 0:a=_(a,n?7*t:t),s=_;break;case 1:a=k(a,n?4*t:t),s=k;break;default:a=D(a,t*(n?4:1)*o),s=D}a=function e(t,n,i,r,o,s){if(f(t,o,s)){if(r(t)){return e(n(t,i),n,i,r,o,s)}return t}}(a,s,t<0?-o:o,e=>r.disabled.includes(e),r.minDate,r.maxDate),void 0!==a&&i.changeFocus(a).render()}function We(e,t){const{config:n,picker:i,editMode:r}=e,o=i.active,{key:s,altKey:a,shiftKey:l}=t,c=t.ctrlKey||t.metaKey,u=()=>{t.preventDefault(),t.stopPropagation()};if("Tab"===s)return void Ee(e);if("Enter"===s){if(o)if(r)e.exitEditMode({update:!0,autohide:n.autohide});else{const t=i.currentView;t.isMinView?e.setDate(i.viewDate):(i.changeView(t.id-1).render(),u())}else e.update();return}const d=n.shortcutKeys,h={key:s,ctrlOrMetaKey:c,altKey:a,shiftKey:l},p=Object.keys(d).find(e=>{const t=d[e];return!Object.keys(t).find(e=>t[e]!==h[e])});if(p){let t;if("toggle"===p?t=p:r?"exitEditMode"===p&&(t=p):o?"hide"===p?t=p:"prevButton"===p?t=[xe,[e,-1]]:"nextButton"===p?t=[xe,[e,1]]:"viewSwitch"===p?t=[Se,[e]]:n.clearButton&&"clearButton"===p?t=[Ae,[e]]:n.todayButton&&"todayButton"===p&&(t=[Ce,[e]]):"show"===p&&(t=p),t)return Array.isArray(t)?t[0].apply(null,t[1]):e[t](),void u()}if(!o||r)return;const f=(n,i)=>{l||c||a?e.enterEditMode():(He(e,n,i),t.preventDefault())};"ArrowLeft"===s?f(-1,!1):"ArrowRight"===s?f(1,!1):"ArrowUp"===s?f(-1,!0):"ArrowDown"===s?f(1,!0):("Backspace"===s||"Delete"===s||s&&1===s.length&&!c)&&e.enterEditMode()}function Ve(e){e.config.showOnFocus&&!e._showing&&e.show()}function Ue(e,t){const n=t.target;(e.picker.active||e.config.showOnClick)&&(n._active=U(n),n._clicking=setTimeout(()=>{delete n._active,delete n._clicking},2e3))}function ze(e,t){const n=t.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function Ye(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function Ge(e,t){const{element:n,picker:i}=e;if(!i.active&&!U(n))return;const r=i.element;ee(t,e=>e===n||e===r)||Ee(e)}function Ke(e,t){return e.map(e=>q(e,t.format,t.locale)).join(t.dateDelimiter)}function Ze(e,t,n=!1){if(0===t.length)return n?[]:void 0;const{config:i,dates:r,rangeSideIndex:o}=e,{pickLevel:s,maxNumberOfDates:a}=i;let l=t.reduce((e,t)=>{let n=R(t,i.format,i.locale);return void 0===n||(n=M(n,s,o),!f(n,i.minDate,i.maxDate)||e.includes(n)||i.checkDisabled(n,s)||!(s>0)&&i.daysOfWeekDisabled.includes(new Date(n).getDay())||e.push(n)),e},[]);return 0!==l.length?(i.multidate&&!n&&(l=l.reduce((e,t)=>(r.includes(t)||e.push(t),e),r.filter(e=>!l.includes(e)))),a&&l.length>a?l.slice(-1*a):l):void 0}function Je(e,t=3,n=!0,i){const{config:r,picker:o,inputField:s}=e;if(2&t){const e=o.active?r.pickLevel:r.startView;o.update(i).changeView(e).render(n)}1&t&&s&&(s.value=Ke(e.dates,r))}function Qe(e,t,n){const i=e.config;let{clear:r,render:o,autohide:s,revert:a,forceRefresh:l,viewDate:c}=n;void 0===o&&(o=!0),o?void 0===s&&(s=i.autohide):s=l=!1,c=R(c,i.format,i.locale);const u=Ze(e,t,r);(u||a)&&(u&&u.toString()!==e.dates.toString()?(e.dates=u,Je(e,o?3:1,!0,c),De(e,"changeDate")):Je(e,l?3:1,!0,c),s&&e.hide())}function Xe(e,t){return t?n=>q(n,t,e.config.locale):e=>new Date(e)}class et{constructor(e,t={},n){e.datepicker=this,this.element=e,this.dates=[];const i=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:null,defaultViewDate:w(),maxDate:void 0,minDate:void 0},he(ne,this));let r;if("INPUT"===e.tagName?(r=this.inputField=e,r.classList.add("datepicker-input"),t.container&&(i.container=t.container instanceof HTMLElement?t.container:document.querySelector(t.container))):i.container=e,n){const e=n.inputs.indexOf(r),t=n.datepickers;if(e<0||e>1||!Array.isArray(t))throw Error("Invalid rangepicker object.");t[e]=this,this.rangepicker=n,this.rangeSideIndex=e}this._options=t,Object.assign(i,he(t,this)),i.shortcutKeys=function(e){return Object.keys(pe).reduce((t,n)=>{const i=void 0===e[n]?pe[n]:e[n],r=i&&i.key;if(!r||"string"!=typeof r)return t;const o={key:r,ctrlOrMetaKey:!!(i.ctrlOrMetaKey||i.ctrlKey||i.metaKey)};return r.length>1&&(o.altKey=!!i.altKey,o.shiftKey=!!i.shiftKey),t[n]=o,t},{})}(t.shortcutKeys||{});const o=p(e.value||e.dataset.date,i.dateDelimiter);delete e.dataset.date;const s=Ze(this,o);s&&s.length>0&&(this.dates=s),r&&(r.value=Ke(this.dates,i));const a=this.picker=new qe(this),l=[e,"keydown",We.bind(null,this)];r?Q(this,[l,[r,"focus",Ve.bind(null,this)],[r,"mousedown",Ue.bind(null,this)],[r,"click",ze.bind(null,this)],[r,"paste",Ye.bind(null,this)],[document,"mousedown",Ge.bind(null,this)],[window,"resize",a.place.bind(a)]]):(Q(this,[l]),this.show())}static formatDate(e,t,n){return q(e,t,n&&te[n]||te.en)}static parseDate(e,t,n){return R(e,t,n&&te[n]||te.en)}static get locales(){return te}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(e){const t=he(e,this);Object.assign(this._options,e),Object.assign(this.config,t),this.picker.setOptions(t),Je(this,3)}show(){if(this.inputField){const{config:e,inputField:t}=this;if(t.disabled||t.readOnly&&!e.enableOnReadonly)return;U(t)||e.disableTouchKeyboard||(this._showing=!0,t.focus(),delete this._showing)}this.picker.show()}hide(){this.inputField&&(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),X(this),this.picker.detach();const e=this.element;return e.classList.remove("datepicker-input"),delete e.datepicker,this}getDate(e){const t=Xe(this,e);return this.config.multidate?this.dates.map(t):this.dates.length>0?t(this.dates[0]):void 0}setDate(...e){const t=[...e],n={},i=d(e);!i||"object"!=typeof i||Array.isArray(i)||i instanceof Date||Object.assign(n,t.pop());Qe(this,Array.isArray(t[0])?t[0]:t,n)}update(e){if(!this.inputField)return;const t=Object.assign(e||{},{clear:!0,render:!0,viewDate:void 0});Qe(this,p(this.inputField.value,this.config.dateDelimiter),t)}getFocusedDate(e){return Xe(this,e)(this.picker.viewDate)}setFocusedDate(e,t=!1){const{config:n,picker:i,active:r,rangeSideIndex:o}=this,s=n.pickLevel,a=R(e,n.format,n.locale);void 0!==a&&(i.changeFocus(M(a,s,o)),r&&t&&i.changeView(s),i.render())}refresh(e,t=!1){let n;e&&"string"!=typeof e&&(t=e,e=void 0),n="picker"===e?2:"input"===e?1:3,Je(this,n,!t)}enterEditMode(){const e=this.inputField;e&&!e.readOnly&&this.picker.active&&!this.editMode&&(this.editMode=!0,e.classList.add("in-edit"))}exitEditMode(e){if(!this.inputField||!this.editMode)return;const t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}function tt(e){return(tt="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})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==tt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===tt(o)?o:String(o)),i)}var r,o}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.date={load:function(e,t){var n=r()(e).find(".cpt-date-section:first"),i=r()(n).children("input"),o="no"!==r()(i).data("max")&&r()(i).data("max"),s="no"!==r()(i).data("min")&&r()(i).data("min");new et(i[0],{autohide:!0,clearBtn:!0,maxDate:o,minDate:s,format:"dd/mm/yyyy"})}},e}));var it=wp.i18n,rt=it.__;it._x,it._n,it._nx;wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.file={load:function(e,t){new ot(e)}},e}));var ot=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fileSection=r()(t).find(".cpt-file-section:first"),this.fileTypes=r()(this.fileSection).data("type"),this.fileInput=r()(this.fileSection).find("input"),this.filePreview=r()(this.fileSection).find("img"),this.fileActions=r()(this.fileSection).find(".cpt-file-actions"),this.fileName=r()(this.fileSection).find(".file-name"),this.addButton=r()(this.fileSection).find(".cpt-file-upload"),this.removeButton=r()(this.fileSection).find(".cpt-file-remove"),this.listenRemoveEvent(),this.listenAddEvent()}var t,n,i;return t=e,(n=[{key:"listenAddEvent",value:function(){var e=this;r()(this.addButton).on("click",(function(t){t.preventDefault();var n=wp.media({title:rt("Add file","custom-post-types"),frame:"select",library:wp.media.query({type:e.fileTypes,uploadedTo:wp.media.view.settings.post.id}),button:{text:rt("Choose file","custom-post-types")},multiple:!1}).on("select",(function(){var t=n.state().get("selection").first().toJSON();t.sizes&&t.sizes.thumbnail&&t.sizes.thumbnail.url&&(r()(e.filePreview).attr("width",t.sizes.thumbnail.width),r()(e.filePreview).attr("height",t.sizes.thumbnail.height),r()(e.filePreview).attr("src",t.sizes.thumbnail.url),r()(e.filePreview).removeAttr("srcset"),r()(e.filePreview).show());var i=t.mime;i.startsWith("image")&&(i="image"),i.startsWith("audio")&&(i="audio"),i.startsWith("video")&&(i="video"),"-1"!=r.a.inArray(i,e.fileTypes)?(r()(e.fileName).html(t.url.split("/").reverse()[0]),r()(e.fileActions).attr("title",t.url.split("/").reverse()[0]),r()(e.fileInput).val(t.id),r()(e.removeButton).prop("disabled",!1)):e.resetField()})).open()}))}},{key:"listenRemoveEvent",value:function(){var e=this;r()(this.removeButton).on("click",(function(t){t.preventDefault(),e.resetField()}))}},{key:"resetField",value:function(){r()(this.fileName).html(""),r()(this.fileInput).val(""),r()(this.filePreview).removeAttr("src"),r()(this.filePreview).hide(),r()(this.removeButton).prop("disabled",!0),r()(this.fileActions).attr("title",rt("Choose","custom-post-types"))}}])&&nt(t.prototype,n),i&&nt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(1);function st(e){return(st="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})(e)}function at(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==st(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==st(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===st(o)?o:String(o)),i)}var r,o}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.post_rel={load:function(e,t){var n=r()(e).find("select:first"),i=r()(n).data("type"),o={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};i.length>0&&(o.ajax={url:cpt.ajax_url,data:function(e){return{action:"cpt-get-post_rel-options",nonce:cpt.ajax_nonce,search:e.term,post_type:i}},processResults:function(e){return{results:e.data}}}),r()(n).select2(o)}},e}));var lt=wp.i18n;lt.__,lt._x,lt._n,lt._nx;wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.repeater={load:function(e,t){new ct(e)}},e}));var ct=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.repeaterSection=r()(t).find(".cpt-repeater-section:first"),this.parent=r()(this.repeaterSection).data("parent"),this.fields=r()(this.repeaterSection).data("fields"),this.fields_group=r()(this.repeaterSection).data("fields-group"),this.initSortable();var i=r()(this.repeaterSection).parent().children(".cpt-repeater-add:first");i.length>0&&this.listenAddEvent(i);var o=r()(this.repeaterSection).children(".cpt-repeater-group");r.a.each(o,(function(e,t){n.initFieldGroup(t)}))}var t,n,i;return t=e,(n=[{key:"getNewIndex",value:function(e){return r()(this.repeaterSection).find("input[name^='meta-fields"+this.parent+"["+e+"]']").length>0?this.getNewIndex(e+1):e}},{key:"listenAddEvent",value:function(e){var t=this;r()(e).on("click",(function(n){n.preventDefault(),r()(e).prop("disabled",!0);var i=r()('<div class="cpt-repeater-spinner"><div class="spinner"></div></div>');r()(t.repeaterSection).append(i);var o=r()(t.repeaterSection).children(".cpt-repeater-group").length,s=t.getNewIndex(o),a=[];a.push({name:"action",value:"cpt-get-repeater-group"}),a.push({name:"nonce",value:cpt.ajax_nonce}),a.push({name:"fields",value:JSON.stringify(t.fields)}),a.push({name:"parent",value:t.parent+"["+s+"]"}),a.push({name:"fields-group-id",value:t.fields_group}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:a,success:function(n){if(n.success){r()(e).prop("disabled",!1),r()(i).remove();var o=r()(n.data);r()(t.repeaterSection).append(o),t.initFieldGroup(o)}else r()(e).prop("disabled",!1),r()(i).remove(),console.log("Error",n)}})}))}},{key:"initSortable",value:function(){var e=r()(this.repeaterSection).children(".cpt-repeater-group").children(".cpt-repeater-buttons").find(".move");r()(e).on("click",(function(e){e.preventDefault()})),r()(this.repeaterSection).sortable({handle:".move",cancel:"",cursor:"grab",axis:"y",delay:150,dropOnEmpty:!1,opacity:.5,revert:!0})}},{key:"initFieldGroup",value:function(e){var t=r()(e).children(".cpt-repeater-fields"),n=r()(t).children(".cpt-field"),i=r()(t).children(".cpt-repeater-extra").children(".cpt-field");r.a.each(r.a.merge(n,i),(function(e,t){var n=r()(t).data("field-type");window.cptUtils.appendFieldEvents(n,t),r()(t).trigger("load")})),this.listenRemoveEvent(e),this.autofillKeyInput(e),this.listenSwitchFieldTypeEvent(e)}},{key:"listenRemoveEvent",value:function(e){var t=r()(e).find(".remove:first"),n=r()(t).closest(".cpt-repeater-group").children(".cpt-repeater-remove");r()(t).on("click",(function(e){e.preventDefault(),r()(n).addClass("active")})),r()(n).find(".abort:first").on("click",(function(e){e.preventDefault(),r()(n).removeClass("active")})),r()(n).find(".confirm:first").on("click",(function(t){t.preventDefault(),r()(e).remove()}))}},{key:"autofillKeyInput",value:function(e){var t=r()(e).find('input[id$="-label"]:first'),n=r()(e).find('input[id$="-key"]:first');window.cptUtils.autoFillKey(n,t)}},{key:"listenSwitchFieldTypeEvent",value:function(e){var t=this,n=r()(e).find(".cpt-repeater-field-type:first").find("select"),i=r()(e).find(".cpt-repeater-extra:first");r()(n).on("select2:select",(function(e){r()(i).empty();var o=r()('<div class="cpt-repeater-spinner"><div class="spinner"></div></div>');r()(i).append(o);var s=!!r()(n).val().length&&r()(n).val();if(s){var a=r()(n).attr("name").replace("meta-fields","").replace("[type]",""),l=[];l.push({name:"action",value:"cpt-get-repeater-extra-fields"}),l.push({name:"nonce",value:cpt.ajax_nonce}),l.push({name:"field-type",value:s}),l.push({name:"parent",value:a}),l.push({name:"fields-group-id",value:t.fields_group}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:l,success:function(e){if(e.success){r()(o).remove();var t=r()(e.data);r()(i).append(t),r()(i).children(".cpt-field"),r.a.each(t,(function(e,t){var n=r()(t).data("field-type");window.cptUtils.appendFieldEvents(n,t),r()(t).trigger("load")}))}else r()(o).remove(),console.log("Error",e)}})}else r()(o).remove()}))}}])&&at(t.prototype,n),i&&at(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ut(e){return(ut="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})(e)}function dt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pt(i.key),i)}}function ht(e,t,n){return(t=pt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e){var t=function(e,t){if("object"!==ut(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ut(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ut(t)?t:String(t)}wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.select={load:function(e,t){window.cptUtils.disableProFieldSelectOptions(e);var n=r()(e).find("select:first"),i={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};r()(n).select2(i)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.tax_rel={load:function(e,t){var n=r()(e).find("select:first"),i=r()(n).data("type"),o={placeholder:r()(n).attr("placeholder")?r()(n).attr("placeholder"):" ... ",allowClear:!0,multiple:r()(n).prop("multiple")};i.length>0&&(o.ajax={url:cpt.ajax_url,data:function(e){return{action:"cpt-get-tax_rel-options",nonce:cpt.ajax_nonce,search:e.term,taxonomy:i}},processResults:function(e){return{results:e.data}}}),r()(n).select2(o)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.text={load:function(e,t){}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.time={load:function(e,t){for(var n=r()(e).find(".cpt-time-section:first"),i=r()(n).children("select"),o=r()(i).data("value")?r()(i).data("value"):"",s="no"!==r()(i).data("max")&&r()(i).data("max"),a="no"!==r()(i).data("min")&&r()(i).data("min"),l=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"00:00",i=0;if(!n)return i;var r=!!n.split(":")&&n.split(":"),o=null!==(e=r[0])&&void 0!==e&&e,s=null!==(t=r[1])&&void 0!==t&&t,a=Number(o+s);return Number.isInteger(a)?a:i},c=l(s),u=l(a),d=0;d<=23;d++){d=d<10?"0"+d:d;for(var h=0;h<=59;h++){var p=d+":"+(h=h<10?"0"+h:h);(u>0&&l(p)<u||c>0&&l(p)>c)&&c>u||r()(i).append(r()('<option value="'+p+'"'+(o==p?' selected="selected"':"")+">"+p+"</option>"))}}var f={placeholder:r()(i).attr("placeholder")?r()(selectEl).attr("placeholder"):" ... ",allowClear:!0,multiple:!1};r()(i).select2(f)}},e})),wp.hooks.addFilter(cpt.js_fields_events_hook,cpt.js_fields_events_namespace,(function(e){return e.tinymce={load:function(e,t){new ft(e)}},e}));var ft=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ht(this,"editorEl",void 0),ht(this,"editorId",void 0),ht(this,"editorForm",void 0),ht(this,"defaultArgs",{tinymce:{wpautop:!1,plugins:"charmap colorpicker hr lists paste tabfocus textcolor fullscreen wordpress wpautoresize wpeditimage wpemoji wpgallery wplink wptextpattern",toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,wp_more,spellchecker,fullscreen,wp_adv,listbuttons",toolbar2:"styleselect,strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",textarea_rows:20,wp_autoresize_on:!1,autoresize_min_height:50},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"},mediaButtons:!0}),this.editorEl=r()(t).find("textarea:first"),this.editorId=r()(this.editorEl).attr("id"),this.defaultArgs.tinymce.wp_autoresize_on=r()(this.editorEl).is("[autoresize]"),this.editorForm=r()(t).closest("form"),this.startEditor()}var t,n,i;return t=e,(n=[{key:"startEditor",value:function(){var e=this,t=!1,n=setInterval((function(){!r()("#post-title-0")&&r()("body").hasClass("block-editor-page")||(t=!0,e.removeEditor(),e.initializeEditor(),e.listenSubmitEvent(),e.listenSortableEvent()),t&&clearInterval(n)}),500)}},{key:"initializeEditor",value:function(){wp.oldEditor.initialize(this.editorId,this.defaultArgs)}},{key:"removeEditor",value:function(){wp.oldEditor.remove(this.editorId)}},{key:"listenSubmitEvent",value:function(){var e=tinyMCE.editors[this.editorId];r()(this.editorForm).on("submit",(function(t){e.save()})),e.on("blur",(function(t){e.save()})),r()(document).ajaxComplete((function(t,n,i){i.data&&i.data.match(/action=add-tag/)&&(e.setContent(""),e.save())}))}},{key:"listenSortableEvent",value:function(){var e=this,t=r()(this.editorEl).closest(".ui-sortable");r()(t).on("sortstart",(function(){e.removeEditor()})),r()(t).on("sortstop",(function(){e.initializeEditor()}))}}])&&dt(t.prototype,n),i&&dt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gt(e){return(gt="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})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,o=void 0,o=function(e,t){if("object"!==gt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==gt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===gt(o)?o:String(o)),i)}var r,o}var vt=wp.i18n,yt=vt.__;vt._x,vt._n,vt._nx;new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=r()("body"),this.window=r()(window),this.document=r()(document),this.utils=new u,this.loadFields(),this.loadUiFeatures()}var t,n,i;return t=e,(n=[{key:"loadUiFeatures",value:function(){var e=this;this.body.on("click",".cpt-field-wrap.advanced-field-btn .button",(function(e){e.preventDefault();var t=e.currentTarget,n=r()(t).closest(".cpt-fields-section"),i=r()(n).find(".cpt-field-wrap.advanced-field");r()(t).hasClass("button-secondary")?(r()(i).removeClass("active"),r()(t).removeClass("button-secondary").addClass("button-primary"),r()(t).find(".dashicons").attr("class","dashicons dashicons-insert"),r()(t).find(".label").html(yt("Advanced view","custom-post-types"))):(r()(i).addClass("active"),r()(t).addClass("button-secondary").removeClass("button-primary"),r()(t).find(".dashicons").attr("class","dashicons dashicons-remove"),r()(t).find(".label").html(yt("Simple view","custom-post-types")))})),this.window.on("load",(function(){r()("a#deactivate-custom-post-types").on("click",(function e(){var t,n,i,o,s=r()("#TB_window");s.length<1&&setTimeout(e,100),r()(s).addClass("cpt-modal"),t=r()(".cpt-modal a.button-primary"),n=r()(".cpt-modal input[name='reason']"),i=r()(".cpt-modal textarea[name='suggestion']"),o=function(){console.log("OK");var e=[];r()(n).each((function(t,n){r()(n).is(":checked")&&e.push(r()(n).val())}));var o=r()(i).val(),s=r()(t).attr("data-href");e.length>0&&(s+="&reason="+e.join(" - ")),o.length>0&&(s+="&suggestion="+o),r()(t).attr("href",s)},r()(n).on("click",o),r()(i).on("keyup",o)}))})),this.window.on("load",(function(){if(e.body.hasClass("block-editor-page")){var t=r()('.cpt-fields-section *[id^="meta-fields-"][required]');t.length<=0||setInterval((function(){!function(e){var t=!0;r.a.each(e,(function(e,n){var i=r()(n).val().length>0;t=!!t&&i}));var n=r()(".edit-post-header__settings button.editor-post-publish-button__button");t?(r()(n).removeAttr("disabled"),r()(n).attr("aria-disabled","false")):(r()(n).attr("disabled","disabled"),r()(n).attr("aria-disabled","true"))}(t)}),200)}})),this.body.on("click",".cpt-notice.is-dismissible a.cpt-dismiss-notice",(function(e){e.preventDefault();var t=e.currentTarget,n=r()(t).closest(".cpt-notice").find("button.notice-dismiss"),i=r()(t).data("notice"),o=r()(t).data("duration"),s=[];s.push({name:"action",value:"cpt-dismiss-notice"}),s.push({name:"nonce",value:cpt.ajax_nonce}),s.push({name:"key",value:i}),s.push({name:"duration",value:o}),r.a.ajax({type:"post",dataType:"json",url:cpt.ajax_url,data:s,success:function(e){e.success?n.click():console.log("Error",e)}})})),this.body.on("click",".cpt-notice pre.error-code > a",(function(e){e.preventDefault();var t=e.currentTarget;r()(t).closest(".error-code").find("code").addClass("show"),r()(t).remove()}));var t=r()('div[data-id="manage_cpt"].cpt-fields-section, div[data-id="manage_cpt_tax"].cpt-fields-section');r.a.each(t,(function(t,n){var i=r()(n).find('input[id$="-plural"]:first'),o=r()(n).find('input[id$="-id"]:first');e.utils.autoFillKey(o,i)})),this.document.on("menu-item-added",(function(t,n){e.loadFields(n)}))}},{key:"loadFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$fieldGroups=t?r()(t).find(".cpt-fields-section"):r()(".cpt-fields-section"),this.$fieldGroups&&(this.fieldsEvents=wp.hooks.applyFilters(cpt.js_fields_events_hook,[]),r.a.each(this.$fieldGroups,(function(t,n){var i=r()(n).children(".cpt-field");i&&r.a.each(i,(function(t,n){var i=r()(n).data("field-type");e.utils.appendFieldEvents(i,n),r()(n).trigger("load")}))})))}}])&&mt(t.prototype,n),i&&mt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}())}]); -
custom-post-types/trunk/custom-post-types.php
r2961510 r2989869 8 8 Text Domain: custom-post-types 9 9 Domain Path: /languages/ 10 Version: 4.0.1210 Version: 5.0.0 11 11 */ 12 12 13 use CustomPostTypes\includes\classes\Core; 14 use CustomPostTypes\includes\classes\Utils; 13 defined( 'ABSPATH' ) || exit; 15 14 16 if ( !defined('ABSPATH')) {17 die('Invalid request.');15 if ( ! defined( 'CPT_PLUGIN_FILE' ) ) { 16 define( 'CPT_PLUGIN_FILE', __FILE__ ); 18 17 } 19 18 20 define('CPT_INFOS', [ 21 'version' => get_file_data(__FILE__, ['Version' => 'Version'], false)['Version'], 22 'path' => plugin_dir_path(__FILE__), 23 'url' => plugin_dir_url(__FILE__), 24 'plugin_url' => 'https://totalpress.org/plugins/custom-post-types?utm_source=wp-dashboard&utm_medium=installed-plugin&utm_campaign=custom-post-types', 25 'plugin_dev_url' => 'https://www.andreadegiovine.it/?utm_source=wp-dashboard&utm_medium=installed-plugin&utm_campaign=custom-post-types', 26 'plugin_doc_url' => 'https://totalpress.org/docs/custom-post-types.html?utm_source=wp-dashboard&utm_medium=installed-plugin&utm_campaign=custom-post-types', 27 'plugin_donate_url' => 'https://totalpress.org/donate?utm_source=wp-dashboard&utm_medium=installed-plugin&utm_campaign=custom-post-types', 28 'plugin_wporg_url' => 'https://wordpress.org/plugin/custom-post-types', 29 'plugin_support_url' => 'https://wordpress.org/support/plugin/custom-post-types', 30 'plugin_review_url' => 'https://wordpress.org/support/plugin/custom-post-types/reviews/#new-post', 31 'hook_prefix' => 'cpt_', 32 'ui_prefix' => 'manage_cpt', 33 'options_prefix' => 'custom_post_types_', 34 'nonce_key' => 'cpt-nonce' 35 ], false); 19 require_once dirname( CPT_PLUGIN_FILE ) . '/includes/abstracts/class-cpt-component.php'; 20 require_once dirname( CPT_PLUGIN_FILE ) . '/includes/class-cpt-core.php'; 36 21 37 // Autoload 38 foreach ( 39 array_merge( 40 glob(CPT_INFOS['path'] . "includes/classes/*.php"), 41 glob(CPT_INFOS['path'] . "includes/fields/*.php") 42 ) as $filename 43 ) { 44 include_once $filename; 45 } 22 require_once dirname( CPT_PLUGIN_FILE ) . '/includes/functions.php'; 46 23 47 Core::getInstance(); 48 49 do_action('custom_post_types_plugin_loaded'); 50 51 $currentVersion = Utils::getInfo('version'); 52 register_activation_hook(__FILE__, function () use ($currentVersion) { 53 $request_url = add_query_arg( 54 ['id' => 92, 'action' => 'activate', 'domain' => md5(get_home_url()), 'v' => $currentVersion], 55 'https://totalpress.org/wp-json/totalpress/v1/plugin-growth' 56 ); 57 wp_remote_get($request_url); 58 }); 59 register_deactivation_hook(__FILE__, function () use ($currentVersion) { 60 $request_url = add_query_arg( 61 ['id' => 92, 'action' => 'deactivate', 'domain' => md5(get_home_url()), 'v' => $currentVersion], 62 'https://totalpress.org/wp-json/totalpress/v1/plugin-growth' 63 ); 64 wp_remote_get($request_url); 65 }); 24 cpt_core(); -
custom-post-types/trunk/languages/custom-post-types.pot
r2954735 r2989869 3 3 msgstr "" 4 4 "Project-Id-Version: Custom post types\n" 5 "POT-Creation-Date: 2023- 08-16 17:00+0200\n"5 "POT-Creation-Date: 2023-11-06 13:14+0100\n" 6 6 "PO-Revision-Date: 2023-08-07 10:20+0200\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" 9 "Language: en\n" 9 10 "MIME-Version: 1.0\n" 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 2.4.2\n" 13 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 14 "X-Generator: Poedit 3.4.1\n" 13 15 "X-Poedit-Basepath: ..\n" 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n"15 "Language: en\n"16 16 "X-Poedit-KeywordsList: __;_e\n" 17 17 "X-Poedit-SearchPath-0: .\n" … … 21 21 "X-Poedit-SearchPathExcluded-3: languages\n" 22 22 23 #: includes/classes/AdminNotices.php:99 23 #: includes/abstracts/class-cpt-field.php:84 24 msgid "PRO only" 25 msgstr "" 26 27 #: includes/args/core-admin-pages-pro.php:11 28 msgid "Templates" 29 msgstr "" 30 31 #: includes/args/core-admin-pages-pro.php:20 includes/class-cpt-utils.php:159 32 msgid "Admin pages" 33 msgstr "" 34 35 #: includes/args/core-admin-pages-pro.php:29 36 msgid "Admin notices" 37 msgstr "" 38 39 #: includes/args/core-admin-pages.php:16 40 msgid "Tools & Infos" 41 msgstr "" 42 43 #: includes/args/core-post-types.php:35 includes/args/core-post-types.php:39 44 #: includes/args/core-post-types.php:41 includes/class-cpt-utils.php:147 45 #: includes/fields/class-cpt-field-post-rel.php:37 46 msgid "Post type" 47 msgstr "" 48 49 #: includes/args/core-post-types.php:36 50 msgid "Post types" 51 msgstr "" 52 53 #: includes/args/core-post-types.php:40 54 msgid "Extend / Manage" 55 msgstr "" 56 57 #: includes/args/core-post-types.php:42 58 msgid "Add post type" 59 msgstr "" 60 61 #: includes/args/core-post-types.php:43 62 msgid "Add new post type" 63 msgstr "" 64 65 #: includes/args/core-post-types.php:44 66 msgid "New post type" 67 msgstr "" 68 69 #: includes/args/core-post-types.php:45 70 msgid "Edit post type" 71 msgstr "" 72 73 #: includes/args/core-post-types.php:46 74 msgid "View post type" 75 msgstr "" 76 77 #: includes/args/core-post-types.php:47 includes/class-cpt-ui.php:165 78 #: includes/class-cpt-ui.php:166 79 msgid "Post type updated" 80 msgstr "" 81 82 #: includes/args/core-post-types.php:49 83 msgid "Search post type" 84 msgstr "" 85 86 #: includes/args/core-post-types.php:50 87 msgid "No post type available." 88 msgstr "" 89 90 #: includes/args/core-post-types.php:51 91 msgid "No post type in the trash." 92 msgstr "" 93 94 #: includes/args/core-post-types.php:56 95 msgid "Create and manage custom post types." 96 msgstr "" 97 98 #: includes/args/core-post-types.php:62 includes/args/core-post-types.php:119 99 #: includes/args/fields-post-type.php:37 includes/args/fields-taxonomy.php:37 100 msgid "Plural" 101 msgstr "" 102 103 #: includes/args/core-post-types.php:65 includes/args/core-post-types.php:122 104 #: includes/args/core-post-types.php:202 105 #: includes/args/fields-field-group.php:20 106 #: includes/args/fields-post-type.php:53 includes/args/fields-taxonomy.php:53 107 msgid "ID" 108 msgstr "" 109 110 #: includes/args/core-post-types.php:71 includes/args/core-post-types.php:128 111 msgid "Count" 112 msgstr "" 113 114 #: includes/args/core-post-types.php:81 includes/args/core-post-types.php:138 115 #: includes/args/core-post-types.php:158 includes/args/core-post-types.php:258 116 #: includes/args/core-post-types.php:268 includes/args/core-post-types.php:279 117 #: includes/args/core-post-types.php:287 includes/args/core-post-types.php:295 118 #: includes/args/core-post-types.php:303 includes/args/core-post-types.php:316 119 msgid "View" 120 msgstr "" 121 122 #: includes/args/core-post-types.php:92 includes/args/core-post-types.php:96 123 #: includes/args/core-post-types.php:97 includes/args/core-post-types.php:98 124 #: includes/fields/class-cpt-field-tax-rel.php:37 125 msgid "Taxonomy" 126 msgstr "" 127 128 #: includes/args/core-post-types.php:93 includes/args/core-post-types.php:105 129 #: includes/class-cpt-utils.php:153 130 msgid "Taxonomies" 131 msgstr "" 132 133 #: includes/args/core-post-types.php:95 134 msgid "Custom taxonomies" 135 msgstr "" 136 137 #: includes/args/core-post-types.php:99 138 msgid "Add taxonomy" 139 msgstr "" 140 141 #: includes/args/core-post-types.php:100 142 msgid "Add new taxonomy" 143 msgstr "" 144 145 #: includes/args/core-post-types.php:101 146 msgid "New taxonomy" 147 msgstr "" 148 149 #: includes/args/core-post-types.php:102 150 msgid "Edit taxonomy" 151 msgstr "" 152 153 #: includes/args/core-post-types.php:103 154 msgid "View taxonomy" 155 msgstr "" 156 157 #: includes/args/core-post-types.php:104 includes/class-cpt-ui.php:174 158 #: includes/class-cpt-ui.php:175 159 msgid "Taxonomy updated" 160 msgstr "" 161 162 #: includes/args/core-post-types.php:106 163 msgid "Search taxonomy" 164 msgstr "" 165 166 #: includes/args/core-post-types.php:107 167 msgid "No taxonomy available." 168 msgstr "" 169 170 #: includes/args/core-post-types.php:108 171 msgid "No taxonomy in the trash." 172 msgstr "" 173 174 #: includes/args/core-post-types.php:113 175 msgid "Create and manage custom taxonomies." 176 msgstr "" 177 178 #: includes/args/core-post-types.php:144 includes/args/core-post-types.php:236 179 #: includes/args/fields-field-group.php:74 includes/args/fields-taxonomy.php:85 180 msgid "Assignment" 181 msgstr "" 182 183 #: includes/args/core-post-types.php:171 includes/args/core-post-types.php:175 184 #: includes/args/core-post-types.php:176 includes/args/core-post-types.php:177 185 msgid "Field group" 186 msgstr "" 187 188 #: includes/args/core-post-types.php:172 includes/args/core-post-types.php:184 189 msgid "Field groups" 190 msgstr "" 191 192 #: includes/args/core-post-types.php:174 193 msgid "Custom field groups" 194 msgstr "" 195 196 #: includes/args/core-post-types.php:178 197 msgid "Add field group" 198 msgstr "" 199 200 #: includes/args/core-post-types.php:179 201 msgid "Add new field group" 202 msgstr "" 203 204 #: includes/args/core-post-types.php:180 205 msgid "New field group" 206 msgstr "" 207 208 #: includes/args/core-post-types.php:181 209 msgid "Edit field group" 210 msgstr "" 211 212 #: includes/args/core-post-types.php:182 213 msgid "View field group" 214 msgstr "" 215 216 #: includes/args/core-post-types.php:183 includes/class-cpt-ui.php:183 217 #: includes/class-cpt-ui.php:184 218 msgid "Field group updated" 219 msgstr "" 220 221 #: includes/args/core-post-types.php:185 222 msgid "Search field group" 223 msgstr "" 224 225 #: includes/args/core-post-types.php:186 226 msgid "No field group available." 227 msgstr "" 228 229 #: includes/args/core-post-types.php:187 230 msgid "No field group in the trash." 231 msgstr "" 232 233 #: includes/args/core-post-types.php:192 234 msgid "Create and manage custom field groups." 235 msgstr "" 236 237 #: includes/args/core-post-types.php:199 238 msgid "Name" 239 msgstr "" 240 241 #: includes/args/core-post-types.php:208 242 msgid "Fields" 243 msgstr "" 244 245 #: includes/args/core-post-types.php:224 246 #: includes/args/fields-field-group.php:36 247 msgid "Position" 248 msgstr "" 249 250 #: includes/args/core-post-types.php:227 includes/args/core-post-types.php:228 251 #: includes/args/fields-field-group.php:41 252 #: includes/args/fields-field-group.php:44 253 msgid "NORMAL" 254 msgstr "" 255 256 #: includes/args/core-post-types.php:229 257 #: includes/args/fields-field-group.php:45 258 msgid "SIDEBAR" 259 msgstr "" 260 261 #: includes/args/core-post-types.php:230 262 #: includes/args/fields-field-group.php:46 263 msgid "ADVANCED" 264 msgstr "" 265 266 #: includes/args/core-post-types.php:280 includes/class-cpt-utils.php:164 267 msgid "Users" 268 msgstr "" 269 270 #: includes/args/core-post-types.php:288 includes/class-cpt-utils.php:113 271 #: includes/class-cpt-utils.php:165 272 msgid "Media" 273 msgstr "" 274 275 #: includes/args/core-post-types.php:296 includes/args/fields-post-type.php:94 276 #: includes/class-cpt-utils.php:166 277 msgid "Comments" 278 msgstr "" 279 280 #: includes/args/core-post-types.php:304 includes/class-cpt-utils.php:167 281 msgid "Menu items" 282 msgstr "" 283 284 #: includes/args/fields-field-group.php:7 285 msgid "Field group settings" 286 msgstr "" 287 288 #: includes/args/fields-field-group.php:21 289 msgid "Field group ID." 290 msgstr "" 291 292 #: includes/args/fields-field-group.php:25 293 msgid "ex: custom-options" 294 msgstr "" 295 296 #: includes/args/fields-field-group.php:37 297 msgid "If set to \"NORMAL\" it will be shown at the bottom of the central column, if \"SIDEBAR\" it will be shown in the sidebar." 298 msgstr "" 299 300 #: includes/args/fields-field-group.php:41 301 #: includes/args/fields-field-group.php:44 302 #: includes/args/fields-repeater.php:107 includes/args/fields-repeater.php:110 303 #: includes/class-cpt-utils.php:592 includes/fields/class-cpt-field-file.php:32 304 #: includes/fields/class-cpt-field-file.php:35 305 #: includes/fields/class-cpt-field-post-rel.php:42 306 #: includes/fields/class-cpt-field-tax-rel.php:42 307 msgid "Default" 308 msgstr "" 309 310 #: includes/args/fields-field-group.php:58 311 msgid "Order" 312 msgstr "" 313 314 #: includes/args/fields-field-group.php:59 315 msgid "Field groups with a lower order will appear first" 316 msgstr "" 317 318 #: includes/args/fields-field-group.php:63 319 msgid "ex: 10" 320 msgstr "" 321 322 #: includes/args/fields-field-group.php:75 323 msgid "Choose for which CONTENT TYPE use this field group." 324 msgstr "" 325 326 #: includes/args/fields-field-group.php:91 327 #: includes/args/fields-post-type.php:137 includes/args/fields-taxonomy.php:109 328 msgid "Administrators only" 329 msgstr "" 330 331 #: includes/args/fields-field-group.php:92 332 #: includes/args/fields-post-type.php:138 includes/args/fields-taxonomy.php:110 333 msgid "If set to \"YES\" only the administrators can create / modify these contents, if \"NO\" all the roles with the minimum capacity of \"edit_posts\"." 334 msgstr "" 335 336 #: includes/args/fields-field-group.php:96 337 #: includes/args/fields-post-type.php:163 338 msgid "Show in rest" 339 msgstr "" 340 341 #: includes/args/fields-field-group.php:97 342 msgid "If set to \"YES\" and the assigned content type is supported by REST API the meta values will be added to the response." 343 msgstr "" 344 345 #: includes/args/fields-post-type.php:7 346 msgid "Post type settings" 347 msgstr "" 348 349 #: includes/args/fields-post-type.php:21 includes/args/fields-taxonomy.php:21 350 msgid "Singular" 351 msgstr "" 352 353 #: includes/args/fields-post-type.php:22 includes/args/fields-taxonomy.php:22 354 msgid "Singular name." 355 msgstr "" 356 357 #: includes/args/fields-post-type.php:26 358 msgid "ex: Product" 359 msgstr "" 360 361 #: includes/args/fields-post-type.php:38 includes/args/fields-taxonomy.php:38 362 msgid "Plural name." 363 msgstr "" 364 365 #: includes/args/fields-post-type.php:42 366 msgid "ex: Products" 367 msgstr "" 368 369 #: includes/args/fields-post-type.php:54 370 msgid "Post type ID." 371 msgstr "" 372 373 #: includes/args/fields-post-type.php:58 374 msgid "ex: products" 375 msgstr "" 376 377 #: includes/args/fields-post-type.php:69 includes/args/fields-taxonomy.php:69 378 msgid "Slug" 379 msgstr "" 380 381 #: includes/args/fields-post-type.php:70 382 msgid "Permalink base for posts (if empty, plural is used)." 383 msgstr "" 384 385 #: includes/args/fields-post-type.php:74 386 msgid "ex: product" 387 msgstr "" 388 389 #: includes/args/fields-post-type.php:85 390 msgid "Supports" 391 msgstr "" 392 393 #: includes/args/fields-post-type.php:86 394 msgid "Set the available components when editing a post." 395 msgstr "" 396 397 #: includes/args/fields-post-type.php:92 398 msgid "Title" 399 msgstr "" 400 401 #: includes/args/fields-post-type.php:93 402 msgid "Editor" 403 msgstr "" 404 405 #: includes/args/fields-post-type.php:95 406 msgid "Revisions" 407 msgstr "" 408 409 #: includes/args/fields-post-type.php:96 410 msgid "Trackbacks" 411 msgstr "" 412 413 #: includes/args/fields-post-type.php:97 414 msgid "Author" 415 msgstr "" 416 417 #: includes/args/fields-post-type.php:98 418 msgid "Excerpt" 419 msgstr "" 420 421 #: includes/args/fields-post-type.php:99 422 msgid "Page attributes" 423 msgstr "" 424 425 #: includes/args/fields-post-type.php:100 426 msgid "Thumbnail" 427 msgstr "" 428 429 #: includes/args/fields-post-type.php:101 430 msgid "Custom fields" 431 msgstr "" 432 433 #: includes/args/fields-post-type.php:102 434 msgid "Post formats" 435 msgstr "" 436 437 #: includes/args/fields-post-type.php:114 438 msgid "Menu icon" 439 msgstr "" 440 441 #: includes/args/fields-post-type.php:115 442 msgid "Url to the icon, base64-encoded SVG using a data URI, name of a <a href=\"https://developer.wordpress.org/resource/dashicons\" target=\"_blank\" rel=\"nofolow\">Dashicons</a> e.g. 'dashicons-chart-pie'." 443 msgstr "" 444 445 #: includes/args/fields-post-type.php:119 446 msgid "dashicons-tag" 447 msgstr "" 448 449 #: includes/args/fields-post-type.php:130 includes/args/fields-taxonomy.php:102 450 msgid "Public" 451 msgstr "" 452 453 #: includes/args/fields-post-type.php:131 454 msgid "If set to \"YES\" it will be shown in the frontend and will have a permalink and a single template." 455 msgstr "" 456 457 #: includes/args/fields-post-type.php:142 includes/args/fields-taxonomy.php:114 458 msgid "Hierarchical" 459 msgstr "" 460 461 #: includes/args/fields-post-type.php:143 462 msgid "If set to \"YES\" it will be possible to set a parent POST TYPE (as for pages)." 463 msgstr "" 464 465 #: includes/args/fields-post-type.php:149 466 msgid "Has archive" 467 msgstr "" 468 469 #: includes/args/fields-post-type.php:150 470 msgid "If set to \"YES\" the url of the post type archive will be reachable." 471 msgstr "" 472 473 #: includes/args/fields-post-type.php:156 474 msgid "Exclude from search" 475 msgstr "" 476 477 #: includes/args/fields-post-type.php:157 478 msgid "If set to \"YES\" these posts will be excluded from the search results." 479 msgstr "" 480 481 #: includes/args/fields-post-type.php:164 482 msgid "If set to \"YES\" API endpoints will be available (required for Gutenberg and other builders)." 483 msgstr "" 484 485 #: includes/args/fields-post-type.php:171 includes/args/fields-taxonomy.php:122 486 msgid "Add new item" 487 msgstr "" 488 489 #: includes/args/fields-post-type.php:172 includes/args/fields-taxonomy.php:123 490 msgid "The add new item text." 491 msgstr "" 492 493 #: includes/args/fields-post-type.php:176 494 msgid "ex: Add new product" 495 msgstr "" 496 497 #: includes/args/fields-post-type.php:187 includes/args/fields-taxonomy.php:138 498 msgid "Edit item" 499 msgstr "" 500 501 #: includes/args/fields-post-type.php:188 includes/args/fields-taxonomy.php:139 502 msgid "The edit item text." 503 msgstr "" 504 505 #: includes/args/fields-post-type.php:192 506 msgid "ex: Edit product" 507 msgstr "" 508 509 #: includes/args/fields-post-type.php:203 510 msgid "New item" 511 msgstr "" 512 513 #: includes/args/fields-post-type.php:204 514 msgid "The new item text." 515 msgstr "" 516 517 #: includes/args/fields-post-type.php:208 518 msgid "ex: New product" 519 msgstr "" 520 521 #: includes/args/fields-post-type.php:219 includes/args/fields-taxonomy.php:170 522 msgid "View item" 523 msgstr "" 524 525 #: includes/args/fields-post-type.php:220 includes/args/fields-taxonomy.php:171 526 msgid "The view item text." 527 msgstr "" 528 529 #: includes/args/fields-post-type.php:224 530 msgid "ex: View product" 531 msgstr "" 532 533 #: includes/args/fields-post-type.php:235 534 msgid "View items" 535 msgstr "" 536 537 #: includes/args/fields-post-type.php:236 538 msgid "The view items text." 539 msgstr "" 540 541 #: includes/args/fields-post-type.php:240 542 msgid "ex: View products" 543 msgstr "" 544 545 #: includes/args/fields-post-type.php:251 includes/args/fields-taxonomy.php:202 546 msgid "Search items" 547 msgstr "" 548 549 #: includes/args/fields-post-type.php:252 includes/args/fields-taxonomy.php:203 550 msgid "The search item text." 551 msgstr "" 552 553 #: includes/args/fields-post-type.php:256 554 msgid "ex: Search products" 555 msgstr "" 556 557 #: includes/args/fields-post-type.php:267 includes/args/fields-taxonomy.php:218 558 msgid "Not found" 559 msgstr "" 560 561 #: includes/args/fields-post-type.php:268 includes/args/fields-taxonomy.php:219 562 msgid "The not found text." 563 msgstr "" 564 565 #: includes/args/fields-post-type.php:272 566 msgid "ex: No product found" 567 msgstr "" 568 569 #: includes/args/fields-post-type.php:283 570 msgid "Not found in trash" 571 msgstr "" 572 573 #: includes/args/fields-post-type.php:284 574 msgid "The not found in trash text." 575 msgstr "" 576 577 #: includes/args/fields-post-type.php:288 578 msgid "ex: No product found in trash" 579 msgstr "" 580 581 #: includes/args/fields-post-type.php:299 includes/args/fields-taxonomy.php:234 582 #: includes/args/fields-taxonomy.php:250 583 msgid "Parent item" 584 msgstr "" 585 586 #: includes/args/fields-post-type.php:300 includes/args/fields-taxonomy.php:235 587 #: includes/args/fields-taxonomy.php:251 588 msgid "The parent item text." 589 msgstr "" 590 591 #: includes/args/fields-post-type.php:304 592 msgid "ex: Parent product" 593 msgstr "" 594 595 #: includes/args/fields-post-type.php:315 includes/args/fields-taxonomy.php:266 596 msgid "All items" 597 msgstr "" 598 599 #: includes/args/fields-post-type.php:316 includes/args/fields-taxonomy.php:267 600 msgid "The all items text." 601 msgstr "" 602 603 #: includes/args/fields-post-type.php:320 604 msgid "ex: All products" 605 msgstr "" 606 607 #: includes/args/fields-post-type.php:331 608 msgid "Archivies" 609 msgstr "" 610 611 #: includes/args/fields-post-type.php:332 612 msgid "The archives text." 613 msgstr "" 614 615 #: includes/args/fields-post-type.php:336 616 msgid "ex: Product archives" 617 msgstr "" 618 619 #: includes/args/fields-repeater.php:7 620 msgid "Fields list" 621 msgstr "" 622 623 #: includes/args/fields-repeater.php:15 624 msgid "Label" 625 msgstr "" 626 627 #: includes/args/fields-repeater.php:29 628 msgid "Key" 629 msgstr "" 630 631 #: includes/args/fields-repeater.php:43 632 msgid "Required" 633 msgstr "" 634 635 #: includes/args/fields-repeater.php:52 636 #: includes/fields/class-cpt-field-file.php:27 637 msgid "Type" 638 msgstr "" 639 640 #: includes/args/fields-repeater.php:69 641 msgid "Info" 642 msgstr "" 643 644 #: includes/args/fields-repeater.php:83 645 msgid "Container width" 646 msgstr "" 647 648 #: includes/args/fields-repeater.php:102 649 msgid "Container layout" 650 msgstr "" 651 652 #: includes/args/fields-repeater.php:107 includes/args/fields-repeater.php:110 653 msgid "VERTICAL" 654 msgstr "" 655 656 #: includes/args/fields-repeater.php:111 657 msgid "HORIZONTAL" 658 msgstr "" 659 660 #: includes/args/fields-repeater.php:123 661 msgid "Container class" 662 msgstr "" 663 664 #: includes/args/fields-repeater.php:137 665 msgid "Container id" 666 msgstr "" 667 668 #: includes/args/fields-taxonomy.php:7 669 msgid "Taxonomy settings" 670 msgstr "" 671 672 #: includes/args/fields-taxonomy.php:26 673 msgid "ex: Partner" 674 msgstr "" 675 676 #: includes/args/fields-taxonomy.php:42 677 msgid "ex: Partners" 678 msgstr "" 679 680 #: includes/args/fields-taxonomy.php:54 681 msgid "Taxonomy ID." 682 msgstr "" 683 684 #: includes/args/fields-taxonomy.php:58 685 msgid "ex: partner" 686 msgstr "" 687 688 #: includes/args/fields-taxonomy.php:70 689 msgid "Permalink base for terms (if empty, plural is used)." 690 msgstr "" 691 692 #: includes/args/fields-taxonomy.php:74 693 msgid "ex: partners" 694 msgstr "" 695 696 #: includes/args/fields-taxonomy.php:86 697 msgid "Choose for which POST TYPE use this taxonomy." 698 msgstr "" 699 700 #: includes/args/fields-taxonomy.php:103 701 msgid "If set to \"YES\" it will be shown in the frontend and will have a permalink and a archive template." 702 msgstr "" 703 704 #: includes/args/fields-taxonomy.php:115 705 msgid "If set to \"YES\" it will be possible to set a parent TAXONOMY (as for the posts categories)." 706 msgstr "" 707 708 #: includes/args/fields-taxonomy.php:127 709 msgid "ex: Add new partner" 710 msgstr "" 711 712 #: includes/args/fields-taxonomy.php:143 713 msgid "ex: Edit partner" 714 msgstr "" 715 716 #: includes/args/fields-taxonomy.php:154 717 msgid "New item name" 718 msgstr "" 719 720 #: includes/args/fields-taxonomy.php:155 721 msgid "The new item name text." 722 msgstr "" 723 724 #: includes/args/fields-taxonomy.php:159 725 msgid "ex: Partner name" 726 msgstr "" 727 728 #: includes/args/fields-taxonomy.php:175 729 msgid "ex: View partner" 730 msgstr "" 731 732 #: includes/args/fields-taxonomy.php:186 733 msgid "Update item" 734 msgstr "" 735 736 #: includes/args/fields-taxonomy.php:187 737 msgid "The update item text." 738 msgstr "" 739 740 #: includes/args/fields-taxonomy.php:191 741 msgid "ex: Update partner" 742 msgstr "" 743 744 #: includes/args/fields-taxonomy.php:207 745 msgid "ex: Search partners" 746 msgstr "" 747 748 #: includes/args/fields-taxonomy.php:223 749 msgid "ex: No partner found" 750 msgstr "" 751 752 #: includes/args/fields-taxonomy.php:239 includes/args/fields-taxonomy.php:255 753 msgid "ex: Parent partner" 754 msgstr "" 755 756 #: includes/args/fields-taxonomy.php:271 757 msgid "ex: All partners" 758 msgstr "" 759 760 #: includes/args/post-types-default-args.php:6 761 #, php-format 762 msgid "Post type created with the \"%s\" plugin." 763 msgstr "" 764 765 #: includes/args/post-types-default-labels.php:7 766 #: includes/args/taxonomies-default-labels.php:7 767 #, php-format 768 msgid "%s" 769 msgstr "" 770 771 #: includes/args/post-types-default-labels.php:10 772 #, php-format 773 msgid "Add New %s" 774 msgstr "" 775 776 #: includes/args/post-types-default-labels.php:11 777 #: includes/args/taxonomies-default-labels.php:10 778 #, php-format 779 msgid "Edit %s" 780 msgstr "" 781 782 #: includes/args/post-types-default-labels.php:12 783 #, php-format 784 msgid "New %s" 785 msgstr "" 786 787 #: includes/args/post-types-default-labels.php:13 788 #: includes/args/post-types-default-labels.php:14 789 #: includes/args/taxonomies-default-labels.php:11 790 #, php-format 791 msgid "View %s" 792 msgstr "" 793 794 #: includes/args/post-types-default-labels.php:15 795 #: includes/args/taxonomies-default-labels.php:17 796 #, php-format 797 msgid "Search %s" 798 msgstr "" 799 800 #: includes/args/post-types-default-labels.php:16 801 #: includes/args/taxonomies-default-labels.php:22 802 #, php-format 803 msgid "No %s found." 804 msgstr "" 805 806 #: includes/args/post-types-default-labels.php:17 807 #, php-format 808 msgid "No %s found in Trash." 809 msgstr "" 810 811 #: includes/args/post-types-default-labels.php:18 812 #: includes/args/taxonomies-default-labels.php:15 813 #: includes/args/taxonomies-default-labels.php:16 814 #, php-format 815 msgid "Parent %s" 816 msgstr "" 817 818 #: includes/args/post-types-default-labels.php:19 819 #: includes/args/taxonomies-default-labels.php:9 820 #, php-format 821 msgid "All %s" 822 msgstr "" 823 824 #: includes/args/post-types-default-labels.php:20 825 #, php-format 826 msgid "%s Archives" 827 msgstr "" 828 829 #: includes/args/post-types-default-labels.php:21 830 #, php-format 831 msgid "%s Attributes" 832 msgstr "" 833 834 #: includes/args/post-types-default-labels.php:22 835 #, php-format 836 msgid "Insert into %s" 837 msgstr "" 838 839 #: includes/args/post-types-default-labels.php:23 840 #, php-format 841 msgid "Uploaded to this %s" 842 msgstr "" 843 844 #: includes/args/post-types-default-labels.php:24 845 msgid "Featured image" 846 msgstr "" 847 848 #: includes/args/post-types-default-labels.php:25 849 msgid "Set featured image" 850 msgstr "" 851 852 #: includes/args/post-types-default-labels.php:26 853 msgid "Remove featured image" 854 msgstr "" 855 856 #: includes/args/post-types-default-labels.php:27 857 msgid "Use as featured image" 858 msgstr "" 859 860 #: includes/args/post-types-default-labels.php:28 861 #, php-format 862 msgid "Filter %s list" 863 msgstr "" 864 865 #: includes/args/post-types-default-labels.php:29 866 #, php-format 867 msgid "%s list navigation" 868 msgstr "" 869 870 #: includes/args/post-types-default-labels.php:30 871 #, php-format 872 msgid "%s list" 873 msgstr "" 874 875 #: includes/args/post-types-default-labels.php:31 876 #, php-format 877 msgid "%s published." 878 msgstr "" 879 880 #: includes/args/post-types-default-labels.php:32 881 #, php-format 882 msgid "%s published privately." 883 msgstr "" 884 885 #: includes/args/post-types-default-labels.php:33 886 #, php-format 887 msgid "%s reverted to draft." 888 msgstr "" 889 890 #: includes/args/post-types-default-labels.php:34 891 #, php-format 892 msgid "%s scheduled." 893 msgstr "" 894 895 #: includes/args/post-types-default-labels.php:35 896 #, php-format 897 msgid "%s updated." 898 msgstr "" 899 900 #: includes/args/taxonomies-default-args.php:6 901 #, php-format 902 msgid "Taxonomy created with the \"%s\" plugin." 903 msgstr "" 904 905 #: includes/args/taxonomies-default-labels.php:12 906 #, php-format 907 msgid "Update %s" 908 msgstr "" 909 910 #: includes/args/taxonomies-default-labels.php:13 911 #, php-format 912 msgid "Add %s" 913 msgstr "" 914 915 #: includes/args/taxonomies-default-labels.php:14 916 #, php-format 917 msgid "%s name" 918 msgstr "" 919 920 #: includes/args/taxonomies-default-labels.php:18 921 #, php-format 922 msgid "Popular %s" 923 msgstr "" 924 925 #: includes/args/taxonomies-default-labels.php:19 926 #, php-format 927 msgid "Separate %s with commas" 928 msgstr "" 929 930 #: includes/args/taxonomies-default-labels.php:20 931 #, php-format 932 msgid "Add or remove %s" 933 msgstr "" 934 935 #: includes/args/taxonomies-default-labels.php:21 936 #, php-format 937 msgid "Choose from the most used %s" 938 msgstr "" 939 940 #: includes/args/taxonomies-default-labels.php:23 941 #, php-format 942 msgid "← Back to %s" 943 msgstr "" 944 945 #: includes/class-cpt-admin-notices.php:103 24 946 msgid "Dismiss notice" 25 947 msgstr "" 26 948 27 #: includes/class es/AdminNotices.php:99949 #: includes/class-cpt-admin-notices.php:103 28 950 #, php-format 29 951 msgid "Dismiss notice for %s days" 30 952 msgstr "" 31 953 32 #: includes/class es/AdminNotices.php:172954 #: includes/class-cpt-admin-notices.php:193 33 955 msgid "Notice registration was not successful (\"id\" and \"message\" args are required)." 34 956 msgstr "" 35 957 36 #: includes/class es/AdminPages.php:44958 #: includes/class-cpt-admin-pages.php:117 37 959 msgid "Admin page registration was not successful (\"id\" and \"title\" args are required)." 38 960 msgstr "" 39 961 40 #: includes/class es/AdminPages.php:60962 #: includes/class-cpt-admin-pages.php:137 41 963 msgid "Admin page reserved or already registered, try a different \"id\"." 42 964 msgstr "" 43 965 44 #: includes/class es/AdminPages.php:86966 #: includes/class-cpt-admin-pages.php:163 45 967 msgid "Admin page registration was not successful." 46 968 msgstr "" 47 969 48 #: includes/classes/Core.php:158 includes/classes/Core.php:159 49 #: includes/classes/Utils.php:564 50 msgid "Post type updated" 51 msgstr "" 52 53 #: includes/classes/Core.php:160 970 #: includes/class-cpt-field-groups.php:135 971 msgid "Field group registration was not successful (\"id\" \"label\" and \"supports\" args are required)." 972 msgstr "" 973 974 #: includes/class-cpt-fields.php:597 975 msgid "This meta value cannot be returned without processing:" 976 msgstr "" 977 978 #: includes/class-cpt-plugin.php:60 979 msgid "Support" 980 msgstr "" 981 982 #: includes/class-cpt-plugin.php:66 983 msgid "Get PRO" 984 msgstr "" 985 986 #: includes/class-cpt-plugin.php:71 includes/templates/modal-feedback.php:19 987 msgid "Send your feedback" 988 msgstr "" 989 990 #: includes/class-cpt-plugin.php:123 991 msgid "PRO version update required." 992 msgstr "" 993 994 #: includes/class-cpt-plugin.php:124 995 #, php-format 996 msgid "version %s or higher" 997 msgstr "" 998 999 #: includes/class-cpt-post-types.php:197 1000 msgid "Post type registration was not successful (\"id\" \"singular\" and \"plural\" args are required)." 1001 msgstr "" 1002 1003 #: includes/class-cpt-post-types.php:217 1004 msgid "Post type reserved or already registered, try a different \"id\"." 1005 msgstr "" 1006 1007 #: includes/class-cpt-post-types.php:253 1008 msgid "Post type registration was not successful." 1009 msgstr "" 1010 1011 #: includes/class-cpt-shortcodes.php:32 includes/class-cpt-shortcodes.php:58 1012 #: includes/class-cpt-shortcodes.php:83 includes/class-cpt-shortcodes.php:111 1013 msgid "Missing field \"key\"." 1014 msgstr "" 1015 1016 #: includes/class-cpt-shortcodes.php:86 1017 msgid "Missing field \"term-id\"." 1018 msgstr "" 1019 1020 #: includes/class-cpt-shortcodes.php:114 1021 msgid "Missing field \"option-id\"." 1022 msgstr "" 1023 1024 #: includes/class-cpt-taxonomies.php:145 1025 msgid "Taxonomy registration was not successful (\"id\" \"singular\" and \"plural\" args are required)." 1026 msgstr "" 1027 1028 #: includes/class-cpt-taxonomies.php:165 1029 msgid "Taxonomy reserved or already registered, try a different \"id\"." 1030 msgstr "" 1031 1032 #: includes/class-cpt-taxonomies.php:196 1033 msgid "Taxonomy registration was not successful." 1034 msgstr "" 1035 1036 #: includes/class-cpt-ui.php:167 54 1037 msgid "Post type published" 55 1038 msgstr "" 56 1039 57 #: includes/class es/Core.php:1611040 #: includes/class-cpt-ui.php:168 58 1041 msgid "Post type saved" 59 1042 msgstr "" 60 1043 61 #: includes/class es/Core.php:1621044 #: includes/class-cpt-ui.php:169 62 1045 msgid "Post type submitted" 63 1046 msgstr "" 64 1047 65 #: includes/class es/Core.php:1631048 #: includes/class-cpt-ui.php:170 66 1049 msgid "Post type scheduled" 67 1050 msgstr "" 68 1051 69 #: includes/class es/Core.php:1641052 #: includes/class-cpt-ui.php:171 70 1053 msgid "Post type draft updated" 71 1054 msgstr "" 72 1055 73 #: includes/classes/Core.php:167 includes/classes/Core.php:168 74 #: includes/classes/Utils.php:617 75 msgid "Taxonomy updated" 76 msgstr "" 77 78 #: includes/classes/Core.php:169 1056 #: includes/class-cpt-ui.php:176 79 1057 msgid "Taxonomy published" 80 1058 msgstr "" 81 1059 82 #: includes/class es/Core.php:1701060 #: includes/class-cpt-ui.php:177 83 1061 msgid "Taxonomy saved" 84 1062 msgstr "" 85 1063 86 #: includes/class es/Core.php:1711064 #: includes/class-cpt-ui.php:178 87 1065 msgid "Taxonomy submitted" 88 1066 msgstr "" 89 1067 90 #: includes/class es/Core.php:1721068 #: includes/class-cpt-ui.php:179 91 1069 msgid "Taxonomy scheduled" 92 1070 msgstr "" 93 1071 94 #: includes/class es/Core.php:1731072 #: includes/class-cpt-ui.php:180 95 1073 msgid "Taxonomy draft updated" 96 1074 msgstr "" 97 1075 98 #: includes/classes/Core.php:176 includes/classes/Core.php:177 99 #: includes/classes/Utils.php:689 100 msgid "Field group updated" 101 msgstr "" 102 103 #: includes/classes/Core.php:178 1076 #: includes/class-cpt-ui.php:185 104 1077 msgid "Field group published" 105 1078 msgstr "" 106 1079 107 #: includes/class es/Core.php:1791080 #: includes/class-cpt-ui.php:186 108 1081 msgid "Field group saved" 109 1082 msgstr "" 110 1083 111 #: includes/class es/Core.php:1801084 #: includes/class-cpt-ui.php:187 112 1085 msgid "Field group submitted" 113 1086 msgstr "" 114 1087 115 #: includes/class es/Core.php:1811088 #: includes/class-cpt-ui.php:188 116 1089 msgid "Field group scheduled" 117 1090 msgstr "" 118 1091 119 #: includes/class es/Core.php:1821092 #: includes/class-cpt-ui.php:189 120 1093 msgid "Field group draft updated" 121 1094 msgstr "" 122 1095 123 #: includes/class es/Core.php:185 includes/classes/Core.php:1861096 #: includes/class-cpt-ui.php:192 includes/class-cpt-ui.php:193 124 1097 msgid "Template updated" 125 1098 msgstr "" 126 1099 127 #: includes/class es/Core.php:1871100 #: includes/class-cpt-ui.php:194 128 1101 msgid "Template published" 129 1102 msgstr "" 130 1103 131 #: includes/class es/Core.php:1881104 #: includes/class-cpt-ui.php:195 132 1105 msgid "Template saved" 133 1106 msgstr "" 134 1107 135 #: includes/class es/Core.php:1891108 #: includes/class-cpt-ui.php:196 136 1109 msgid "Template submitted" 137 1110 msgstr "" 138 1111 139 #: includes/class es/Core.php:1901112 #: includes/class-cpt-ui.php:197 140 1113 msgid "Template scheduled" 141 1114 msgstr "" 142 1115 143 #: includes/class es/Core.php:1911116 #: includes/class-cpt-ui.php:198 144 1117 msgid "Template draft updated" 145 1118 msgstr "" 146 1119 147 #: includes/class es/Core.php:194 includes/classes/Core.php:1951120 #: includes/class-cpt-ui.php:201 includes/class-cpt-ui.php:202 148 1121 msgid "Admin page updated" 149 1122 msgstr "" 150 1123 151 #: includes/class es/Core.php:1961124 #: includes/class-cpt-ui.php:203 152 1125 msgid "Admin page published" 153 1126 msgstr "" 154 1127 155 #: includes/class es/Core.php:1971128 #: includes/class-cpt-ui.php:204 156 1129 msgid "Admin page saved" 157 1130 msgstr "" 158 1131 159 #: includes/class es/Core.php:1981132 #: includes/class-cpt-ui.php:205 160 1133 msgid "Admin page submitted" 161 1134 msgstr "" 162 1135 163 #: includes/class es/Core.php:1991136 #: includes/class-cpt-ui.php:206 164 1137 msgid "Admin page scheduled" 165 1138 msgstr "" 166 1139 167 #: includes/class es/Core.php:2001140 #: includes/class-cpt-ui.php:207 168 1141 msgid "Admin page draft updated" 169 1142 msgstr "" 170 1143 171 #: includes/class es/Core.php:272 includes/views/tools.php:881144 #: includes/class-cpt-ui.php:261 includes/templates/page-tools.php:104 172 1145 msgid "Write a Review" 173 1146 msgstr "" 174 1147 175 #: includes/class es/Core.php:278 includes/views/tools.php:831148 #: includes/class-cpt-ui.php:267 includes/templates/page-tools.php:99 176 1149 msgid "Make a Donation" 177 1150 msgstr "" 178 1151 179 #: includes/class es/Core.php:285 includes/classes/Utils.php:398180 #: includes/ views/tools.php:771152 #: includes/class-cpt-ui.php:275 includes/class-cpt-utils.php:372 1153 #: includes/templates/page-tools.php:93 181 1154 msgid "Get PRO version" 182 1155 msgstr "" 183 1156 184 #: includes/class es/Core.php:2941157 #: includes/class-cpt-ui.php:284 185 1158 msgid "Thanks for using this plugin! Do you want to help us grow to add new features?" 186 1159 msgstr "" 187 1160 188 #: includes/class es/Core.php:294189 #, php-format 190 msgid "The new version % s introduces a lot of new features and improves the core of the plugin.<br>For any problems you can download the previous version %s from the official page of the plugin from WordPress.org (Advanced View > Previous version)."191 msgstr "" 192 193 #: includes/class es/Core.php:3121161 #: includes/class-cpt-ui.php:284 1162 #, php-format 1163 msgid "The new version %1$s introduces a lot of new features and improves the core of the plugin.<br>For any problems you can download the previous version %2$s from the official page of the plugin from WordPress.org (Advanced View > Previous version)." 1164 msgstr "" 1165 1166 #: includes/class-cpt-ui.php:305 194 1167 msgid "Wow! More than 7 days of using this amazing plugin. Your support is really important." 195 1168 msgstr "" 196 1169 197 #: includes/classes/Core.php:351 198 msgid "Support" 199 msgstr "" 200 201 #: includes/classes/Core.php:357 202 msgid "Get PRO" 203 msgstr "" 204 205 #: includes/classes/Core.php:381 includes/classes/Core.php:395 206 #: includes/classes/Core.php:415 includes/classes/Core.php:432 207 msgid "Missing field \"key\"." 208 msgstr "" 209 210 #: includes/classes/Core.php:418 211 msgid "Missing field \"term-id\"." 212 msgstr "" 213 214 #: includes/classes/Core.php:435 215 msgid "Missing field \"option-id\"." 216 msgstr "" 217 218 #: includes/classes/FieldGroups.php:42 1170 #: includes/class-cpt-ui.php:318 1171 msgid "Wow! More than 30 days of using this amazing plugin. Your support is really important." 1172 msgstr "" 1173 1174 #: includes/class-cpt-ui.php:337 1175 msgid "It's time to PRO, <u>go to the next level</u>:" 1176 msgstr "" 1177 1178 #: includes/class-cpt-ui.php:337 1179 msgid "now you are ready, one small step, one big change!" 1180 msgstr "" 1181 1182 #: includes/class-cpt-ui.php:361 1183 msgid "<u>BLACK FRIDAY 2023</u> special limited offer" 1184 msgstr "" 1185 1186 #: includes/class-cpt-ui.php:361 1187 #, no-php-format 1188 msgid "<u>50% discount</u> on PRO version using the coupon code: <strong>BLACK-FRIDAY-2023</strong>" 1189 msgstr "" 1190 1191 #: includes/class-cpt-utils.php:56 1192 #: includes/fields/class-cpt-field-post-rel.php:42 1193 msgid "Posts" 1194 msgstr "" 1195 1196 #: includes/class-cpt-utils.php:57 1197 msgid "Pages" 1198 msgstr "" 1199 1200 #: includes/class-cpt-utils.php:81 1201 #: includes/fields/class-cpt-field-tax-rel.php:42 1202 msgid "Categories" 1203 msgstr "" 1204 1205 #: includes/class-cpt-utils.php:82 1206 msgid "Tags" 1207 msgstr "" 1208 1209 #: includes/class-cpt-utils.php:97 includes/class-cpt-utils.php:101 1210 #: includes/class-cpt-utils.php:105 includes/class-cpt-utils.php:109 1211 #: includes/class-cpt-utils.php:113 1212 msgid "Settings" 1213 msgstr "" 1214 1215 #: includes/class-cpt-utils.php:101 1216 msgid "Writing" 1217 msgstr "" 1218 1219 #: includes/class-cpt-utils.php:105 1220 msgid "Reading" 1221 msgstr "" 1222 1223 #: includes/class-cpt-utils.php:109 1224 msgid "Discussion" 1225 msgstr "" 1226 1227 #: includes/class-cpt-utils.php:163 1228 msgid "Extra" 1229 msgstr "" 1230 1231 #: includes/class-cpt-utils.php:261 1232 msgid "Post title" 1233 msgstr "" 1234 1235 #: includes/class-cpt-utils.php:264 1236 msgid "Post content" 1237 msgstr "" 1238 1239 #: includes/class-cpt-utils.php:267 1240 msgid "Post excerpt" 1241 msgstr "" 1242 1243 #: includes/class-cpt-utils.php:270 1244 msgid "Post image" 1245 msgstr "" 1246 1247 #: includes/class-cpt-utils.php:273 1248 msgid "Post author" 1249 msgstr "" 1250 1251 #: includes/class-cpt-utils.php:275 1252 msgid "Post date" 1253 msgstr "" 1254 1255 #: includes/class-cpt-utils.php:276 1256 msgid "Post modified date" 1257 msgstr "" 1258 1259 #: includes/class-cpt-utils.php:291 1260 msgid "Term name" 1261 msgstr "" 1262 1263 #: includes/class-cpt-utils.php:292 1264 msgid "Term description" 1265 msgstr "" 1266 1267 #: includes/class-cpt-utils.php:367 1268 msgid "This feature requires the <u>PRO version</u> and a valid license key." 1269 msgstr "" 1270 1271 #: includes/class-cpt-utils.php:382 1272 msgid "<strong>" 1273 msgstr "" 1274 1275 #: includes/class-cpt-utils.php:400 1276 msgid "See registration args" 1277 msgstr "" 1278 1279 #: includes/class-cpt-utils.php:517 219 1280 msgid "Registration args" 220 1281 msgstr "" 221 1282 222 #: includes/class es/FieldGroups.php:61223 msgid "Registration label "224 msgstr "" 225 226 #: includes/class es/FieldGroups.php:801283 #: includes/class-cpt-utils.php:542 1284 msgid "Registration labels" 1285 msgstr "" 1286 1287 #: includes/class-cpt-utils.php:567 227 1288 msgid "Advanced view" 228 1289 msgstr "" 229 1290 230 #: includes/classes/FieldGroups.php:488 231 msgid "Field group registration was not successful (\"id\" \"label\" and \"supports\" args are required)." 232 msgstr "" 233 234 #: includes/classes/FieldGroups.php:624 235 msgid "Fields list" 236 msgstr "" 237 238 #: includes/classes/FieldGroups.php:632 239 msgid "Label" 240 msgstr "" 241 242 #: includes/classes/FieldGroups.php:646 includes/classes/Utils.php:705 243 msgid "Key" 244 msgstr "" 245 246 #: includes/classes/FieldGroups.php:660 247 msgid "Required" 248 msgstr "" 249 250 #: includes/classes/FieldGroups.php:665 includes/classes/FieldGroups.php:669 251 #: includes/classes/FieldGroups.php:866 includes/classes/FieldGroups.php:870 252 #: includes/classes/FieldGroups.php:887 includes/classes/FieldGroups.php:891 253 #: includes/classes/FieldGroups.php:1015 includes/classes/FieldGroups.php:1032 254 #: includes/classes/FieldGroups.php:1036 includes/classes/FieldGroups.php:1053 255 #: includes/classes/FieldGroups.php:1057 includes/classes/FieldGroups.php:1370 256 #: includes/classes/FieldGroups.php:1387 includes/classes/FieldGroups.php:1391 257 #: includes/classes/FieldGroups.php:1408 includes/classes/FieldGroups.php:1412 258 #: includes/classes/FieldGroups.php:1429 includes/classes/FieldGroups.php:1433 259 #: includes/classes/FieldGroups.php:1450 includes/classes/FieldGroups.php:1454 260 #: includes/classes/FieldGroups.php:1475 includes/fields/color.php:26 261 #: includes/fields/color.php:30 includes/fields/post_rel.php:57 262 #: includes/fields/post_rel.php:61 includes/fields/select.php:73 263 #: includes/fields/select.php:77 includes/fields/tax_rel.php:57 264 #: includes/fields/tax_rel.php:61 includes/fields/tinymce.php:41 265 #: includes/fields/tinymce.php:45 1291 #: includes/class-cpt-utils.php:590 1292 msgid "YES" 1293 msgstr "" 1294 1295 #: includes/class-cpt-utils.php:591 266 1296 msgid "NO" 267 1297 msgstr "" 268 1298 269 #: includes/classes/FieldGroups.php:665 includes/classes/FieldGroups.php:669 270 #: includes/classes/FieldGroups.php:736 includes/classes/FieldGroups.php:739 271 #: includes/classes/FieldGroups.php:811 includes/classes/FieldGroups.php:814 272 #: includes/classes/FieldGroups.php:866 includes/classes/FieldGroups.php:870 273 #: includes/classes/FieldGroups.php:887 includes/classes/FieldGroups.php:891 274 #: includes/classes/FieldGroups.php:1011 includes/classes/FieldGroups.php:1014 275 #: includes/classes/FieldGroups.php:1032 includes/classes/FieldGroups.php:1036 276 #: includes/classes/FieldGroups.php:1053 includes/classes/FieldGroups.php:1057 277 #: includes/classes/FieldGroups.php:1366 includes/classes/FieldGroups.php:1369 278 #: includes/classes/FieldGroups.php:1387 includes/classes/FieldGroups.php:1391 279 #: includes/classes/FieldGroups.php:1408 includes/classes/FieldGroups.php:1412 280 #: includes/classes/FieldGroups.php:1429 includes/classes/FieldGroups.php:1433 281 #: includes/classes/FieldGroups.php:1450 includes/classes/FieldGroups.php:1454 282 #: includes/classes/FieldGroups.php:1471 includes/classes/FieldGroups.php:1474 283 #: includes/fields/color.php:26 includes/fields/color.php:30 284 #: includes/fields/file.php:51 includes/fields/file.php:54 285 #: includes/fields/post_rel.php:57 includes/fields/post_rel.php:61 286 #: includes/fields/post_rel.php:78 includes/fields/select.php:73 287 #: includes/fields/select.php:77 includes/fields/tax_rel.php:57 288 #: includes/fields/tax_rel.php:61 includes/fields/tax_rel.php:78 289 #: includes/fields/tinymce.php:41 includes/fields/tinymce.php:45 290 msgid "Default" 291 msgstr "" 292 293 #: includes/classes/FieldGroups.php:668 includes/classes/FieldGroups.php:869 294 #: includes/classes/FieldGroups.php:890 includes/classes/FieldGroups.php:1011 295 #: includes/classes/FieldGroups.php:1014 includes/classes/FieldGroups.php:1035 296 #: includes/classes/FieldGroups.php:1056 includes/classes/FieldGroups.php:1366 297 #: includes/classes/FieldGroups.php:1369 includes/classes/FieldGroups.php:1390 298 #: includes/classes/FieldGroups.php:1411 includes/classes/FieldGroups.php:1432 299 #: includes/classes/FieldGroups.php:1453 includes/classes/FieldGroups.php:1471 300 #: includes/classes/FieldGroups.php:1474 includes/fields/color.php:29 301 #: includes/fields/post_rel.php:60 includes/fields/select.php:76 302 #: includes/fields/tax_rel.php:60 includes/fields/tinymce.php:44 303 msgid "YES" 304 msgstr "" 305 306 #: includes/classes/FieldGroups.php:681 includes/fields/file.php:46 307 msgid "Type" 308 msgstr "" 309 310 #: includes/classes/FieldGroups.php:698 311 msgid "Info" 312 msgstr "" 313 314 #: includes/classes/FieldGroups.php:712 315 msgid "Container width" 316 msgstr "" 317 318 #: includes/classes/FieldGroups.php:731 319 msgid "Container layout" 320 msgstr "" 321 322 #: includes/classes/FieldGroups.php:736 includes/classes/FieldGroups.php:739 323 msgid "VERTICAL" 324 msgstr "" 325 326 #: includes/classes/FieldGroups.php:740 327 msgid "HORIZONTAL" 328 msgstr "" 329 330 #: includes/classes/FieldGroups.php:752 331 msgid "Container class" 332 msgstr "" 333 334 #: includes/classes/FieldGroups.php:766 335 msgid "Container id" 336 msgstr "" 337 338 #: includes/classes/FieldGroups.php:795 339 msgid "Field group settings" 340 msgstr "" 341 342 #: includes/classes/FieldGroups.php:806 includes/classes/Utils.php:719 343 msgid "Position" 344 msgstr "" 345 346 #: includes/classes/FieldGroups.php:807 347 msgid "If set to \"NORMAL\" it will be shown at the bottom of the central column, if \"SIDEBAR\" it will be shown in the sidebar." 348 msgstr "" 349 350 #: includes/classes/FieldGroups.php:811 includes/classes/FieldGroups.php:814 351 #: includes/classes/Utils.php:722 includes/classes/Utils.php:723 352 msgid "NORMAL" 353 msgstr "" 354 355 #: includes/classes/FieldGroups.php:815 includes/classes/Utils.php:724 356 msgid "SIDEBAR" 357 msgstr "" 358 359 #: includes/classes/FieldGroups.php:816 includes/classes/Utils.php:725 360 msgid "ADVANCED" 361 msgstr "" 362 363 #: includes/classes/FieldGroups.php:828 364 msgid "Order" 365 msgstr "" 366 367 #: includes/classes/FieldGroups.php:829 368 msgid "Field groups with a lower order will appear first" 369 msgstr "" 370 371 #: includes/classes/FieldGroups.php:833 372 msgid "ex: 10" 373 msgstr "" 374 375 #: includes/classes/FieldGroups.php:844 includes/classes/FieldGroups.php:989 376 #: includes/classes/Utils.php:654 includes/classes/Utils.php:731 377 msgid "Assignment" 378 msgstr "" 379 380 #: includes/classes/FieldGroups.php:845 381 msgid "Choose for which CONTENT TYPE use this field group." 382 msgstr "" 383 384 #: includes/classes/FieldGroups.php:861 includes/classes/FieldGroups.php:1027 385 #: includes/classes/FieldGroups.php:1382 386 msgid "Administrators only" 387 msgstr "" 388 389 #: includes/classes/FieldGroups.php:862 includes/classes/FieldGroups.php:1028 390 #: includes/classes/FieldGroups.php:1383 391 msgid "If set to \"YES\" only the administrators can create / modify these contents, if \"NO\" all the roles with the minimum capacity of \"edit_posts\"." 392 msgstr "" 393 394 #: includes/classes/FieldGroups.php:882 includes/classes/FieldGroups.php:1466 395 msgid "Show in rest" 396 msgstr "" 397 398 #: includes/classes/FieldGroups.php:883 399 msgid "If set to \"YES\" and the assigned content type is supported by REST API the meta values will be added to the response." 400 msgstr "" 401 402 #: includes/classes/FieldGroups.php:913 403 msgid "Taxonomy settings" 404 msgstr "" 405 406 #: includes/classes/FieldGroups.php:925 includes/classes/FieldGroups.php:1252 407 msgid "Singular" 408 msgstr "" 409 410 #: includes/classes/FieldGroups.php:926 includes/classes/FieldGroups.php:1253 411 msgid "Singular name." 412 msgstr "" 413 414 #: includes/classes/FieldGroups.php:930 415 msgid "ex: Partner" 416 msgstr "" 417 418 #: includes/classes/FieldGroups.php:941 includes/classes/FieldGroups.php:1268 419 #: includes/classes/Utils.php:575 includes/classes/Utils.php:629 420 msgid "Plural" 421 msgstr "" 422 423 #: includes/classes/FieldGroups.php:942 includes/classes/FieldGroups.php:1269 424 msgid "Plural name." 425 msgstr "" 426 427 #: includes/classes/FieldGroups.php:946 428 msgid "ex: Partners" 429 msgstr "" 430 431 #: includes/classes/FieldGroups.php:957 includes/classes/FieldGroups.php:1284 432 #: includes/classes/Utils.php:578 includes/classes/Utils.php:632 433 msgid "ID" 434 msgstr "" 435 436 #: includes/classes/FieldGroups.php:958 437 msgid "Taxonomy ID." 438 msgstr "" 439 440 #: includes/classes/FieldGroups.php:962 441 msgid "ex: partner" 442 msgstr "" 443 444 #: includes/classes/FieldGroups.php:973 includes/classes/FieldGroups.php:1300 445 msgid "Slug" 446 msgstr "" 447 448 #: includes/classes/FieldGroups.php:974 449 msgid "Permalink base for terms (if empty, plural is used)." 450 msgstr "" 451 452 #: includes/classes/FieldGroups.php:978 453 msgid "ex: partners" 454 msgstr "" 455 456 #: includes/classes/FieldGroups.php:990 457 msgid "Choose for which POST TYPE use this taxonomy." 458 msgstr "" 459 460 #: includes/classes/FieldGroups.php:1006 includes/classes/FieldGroups.php:1361 461 msgid "Public" 462 msgstr "" 463 464 #: includes/classes/FieldGroups.php:1007 465 msgid "If set to \"YES\" it will be shown in the frontend and will have a permalink and a archive template." 466 msgstr "" 467 468 #: includes/classes/FieldGroups.php:1048 includes/classes/FieldGroups.php:1403 469 msgid "Hierarchical" 470 msgstr "" 471 472 #: includes/classes/FieldGroups.php:1049 473 msgid "If set to \"YES\" it will be possible to set a parent TAXONOMY (as for the posts categories)." 474 msgstr "" 475 476 #: includes/classes/FieldGroups.php:1070 includes/classes/FieldGroups.php:1488 477 msgid "Add new item" 478 msgstr "" 479 480 #: includes/classes/FieldGroups.php:1071 includes/classes/FieldGroups.php:1489 481 msgid "The add new item text." 482 msgstr "" 483 484 #: includes/classes/FieldGroups.php:1075 485 msgid "ex: Add new partner" 486 msgstr "" 487 488 #: includes/classes/FieldGroups.php:1086 includes/classes/FieldGroups.php:1504 489 msgid "Edit item" 490 msgstr "" 491 492 #: includes/classes/FieldGroups.php:1087 includes/classes/FieldGroups.php:1505 493 msgid "The edit item text." 494 msgstr "" 495 496 #: includes/classes/FieldGroups.php:1091 497 msgid "ex: Edit partner" 498 msgstr "" 499 500 #: includes/classes/FieldGroups.php:1102 501 msgid "New item name" 502 msgstr "" 503 504 #: includes/classes/FieldGroups.php:1103 505 msgid "The new item name text." 506 msgstr "" 507 508 #: includes/classes/FieldGroups.php:1107 509 msgid "ex: Partner name" 510 msgstr "" 511 512 #: includes/classes/FieldGroups.php:1118 includes/classes/FieldGroups.php:1536 513 msgid "View item" 514 msgstr "" 515 516 #: includes/classes/FieldGroups.php:1119 includes/classes/FieldGroups.php:1537 517 msgid "The view item text." 518 msgstr "" 519 520 #: includes/classes/FieldGroups.php:1123 521 msgid "ex: View partner" 522 msgstr "" 523 524 #: includes/classes/FieldGroups.php:1134 525 msgid "Update item" 526 msgstr "" 527 528 #: includes/classes/FieldGroups.php:1135 529 msgid "The update item text." 530 msgstr "" 531 532 #: includes/classes/FieldGroups.php:1139 533 msgid "ex: Update partner" 534 msgstr "" 535 536 #: includes/classes/FieldGroups.php:1150 includes/classes/FieldGroups.php:1568 537 msgid "Search items" 538 msgstr "" 539 540 #: includes/classes/FieldGroups.php:1151 includes/classes/FieldGroups.php:1569 541 msgid "The search item text." 542 msgstr "" 543 544 #: includes/classes/FieldGroups.php:1155 545 msgid "ex: Search partners" 546 msgstr "" 547 548 #: includes/classes/FieldGroups.php:1166 includes/classes/FieldGroups.php:1584 549 msgid "Not found" 550 msgstr "" 551 552 #: includes/classes/FieldGroups.php:1167 includes/classes/FieldGroups.php:1585 553 msgid "The not found text." 554 msgstr "" 555 556 #: includes/classes/FieldGroups.php:1171 557 msgid "ex: No partner found" 558 msgstr "" 559 560 #: includes/classes/FieldGroups.php:1182 includes/classes/FieldGroups.php:1198 561 #: includes/classes/FieldGroups.php:1616 562 msgid "Parent item" 563 msgstr "" 564 565 #: includes/classes/FieldGroups.php:1183 includes/classes/FieldGroups.php:1199 566 #: includes/classes/FieldGroups.php:1617 567 msgid "The parent item text." 568 msgstr "" 569 570 #: includes/classes/FieldGroups.php:1187 includes/classes/FieldGroups.php:1203 571 msgid "ex: Parent partner" 572 msgstr "" 573 574 #: includes/classes/FieldGroups.php:1214 includes/classes/FieldGroups.php:1632 575 msgid "All items" 576 msgstr "" 577 578 #: includes/classes/FieldGroups.php:1215 includes/classes/FieldGroups.php:1633 579 msgid "The all items text." 580 msgstr "" 581 582 #: includes/classes/FieldGroups.php:1219 583 msgid "ex: All partners" 584 msgstr "" 585 586 #: includes/classes/FieldGroups.php:1240 587 msgid "Post type settings" 588 msgstr "" 589 590 #: includes/classes/FieldGroups.php:1257 591 msgid "ex: Product" 592 msgstr "" 593 594 #: includes/classes/FieldGroups.php:1273 595 msgid "ex: Products" 596 msgstr "" 597 598 #: includes/classes/FieldGroups.php:1285 599 msgid "Post type ID." 600 msgstr "" 601 602 #: includes/classes/FieldGroups.php:1289 603 msgid "ex: products" 604 msgstr "" 605 606 #: includes/classes/FieldGroups.php:1301 607 msgid "Permalink base for posts (if empty, plural is used)." 608 msgstr "" 609 610 #: includes/classes/FieldGroups.php:1305 611 msgid "ex: product" 612 msgstr "" 613 614 #: includes/classes/FieldGroups.php:1316 615 msgid "Supports" 616 msgstr "" 617 618 #: includes/classes/FieldGroups.php:1317 619 msgid "Set the available components when editing a post." 620 msgstr "" 621 622 #: includes/classes/FieldGroups.php:1323 623 msgid "Title" 624 msgstr "" 625 626 #: includes/classes/FieldGroups.php:1324 627 msgid "Editor" 628 msgstr "" 629 630 #: includes/classes/FieldGroups.php:1325 631 msgid "Comments" 632 msgstr "" 633 634 #: includes/classes/FieldGroups.php:1326 635 msgid "Revisions" 636 msgstr "" 637 638 #: includes/classes/FieldGroups.php:1327 639 msgid "Trackbacks" 640 msgstr "" 641 642 #: includes/classes/FieldGroups.php:1328 643 msgid "Author" 644 msgstr "" 645 646 #: includes/classes/FieldGroups.php:1329 647 msgid "Excerpt" 648 msgstr "" 649 650 #: includes/classes/FieldGroups.php:1330 651 msgid "Page attributes" 652 msgstr "" 653 654 #: includes/classes/FieldGroups.php:1331 655 msgid "Thumbnail" 656 msgstr "" 657 658 #: includes/classes/FieldGroups.php:1332 659 msgid "Custom fields" 660 msgstr "" 661 662 #: includes/classes/FieldGroups.php:1333 663 msgid "Post formats" 664 msgstr "" 665 666 #: includes/classes/FieldGroups.php:1345 667 msgid "Menu icon" 668 msgstr "" 669 670 #: includes/classes/FieldGroups.php:1346 671 msgid "Url to the icon, base64-encoded SVG using a data URI, name of a <a href=\"https://developer.wordpress.org/resource/dashicons\" target=\"_blank\" rel=\"nofolow\">Dashicons</a> e.g. 'dashicons-chart-pie'." 672 msgstr "" 673 674 #: includes/classes/FieldGroups.php:1350 675 msgid "dashicons-tag" 676 msgstr "" 677 678 #: includes/classes/FieldGroups.php:1362 679 msgid "If set to \"YES\" it will be shown in the frontend and will have a permalink and a single template." 680 msgstr "" 681 682 #: includes/classes/FieldGroups.php:1404 683 msgid "If set to \"YES\" it will be possible to set a parent POST TYPE (as for pages)." 684 msgstr "" 685 686 #: includes/classes/FieldGroups.php:1424 687 msgid "Has archive" 688 msgstr "" 689 690 #: includes/classes/FieldGroups.php:1425 691 msgid "If set to \"YES\" the url of the post type archive will be reachable." 692 msgstr "" 693 694 #: includes/classes/FieldGroups.php:1445 695 msgid "Exclude from search" 696 msgstr "" 697 698 #: includes/classes/FieldGroups.php:1446 699 msgid "If set to \"YES\" these posts will be excluded from the search results." 700 msgstr "" 701 702 #: includes/classes/FieldGroups.php:1467 703 msgid "If set to \"YES\" API endpoints will be available (required for Gutenberg and other builders)." 704 msgstr "" 705 706 #: includes/classes/FieldGroups.php:1493 707 msgid "ex: Add new product" 708 msgstr "" 709 710 #: includes/classes/FieldGroups.php:1509 711 msgid "ex: Edit product" 712 msgstr "" 713 714 #: includes/classes/FieldGroups.php:1520 715 msgid "New item" 716 msgstr "" 717 718 #: includes/classes/FieldGroups.php:1521 719 msgid "The new item text." 720 msgstr "" 721 722 #: includes/classes/FieldGroups.php:1525 723 msgid "ex: New product" 724 msgstr "" 725 726 #: includes/classes/FieldGroups.php:1541 727 msgid "ex: View product" 728 msgstr "" 729 730 #: includes/classes/FieldGroups.php:1552 731 msgid "View items" 732 msgstr "" 733 734 #: includes/classes/FieldGroups.php:1553 735 msgid "The view items text." 736 msgstr "" 737 738 #: includes/classes/FieldGroups.php:1557 739 msgid "ex: View products" 740 msgstr "" 741 742 #: includes/classes/FieldGroups.php:1573 743 msgid "ex: Search products" 744 msgstr "" 745 746 #: includes/classes/FieldGroups.php:1589 747 msgid "ex: No product found" 748 msgstr "" 749 750 #: includes/classes/FieldGroups.php:1600 751 msgid "Not found in trash" 752 msgstr "" 753 754 #: includes/classes/FieldGroups.php:1601 755 msgid "The not found in trash text." 756 msgstr "" 757 758 #: includes/classes/FieldGroups.php:1605 759 msgid "ex: No product found in trash" 760 msgstr "" 761 762 #: includes/classes/FieldGroups.php:1621 763 msgid "ex: Parent product" 764 msgstr "" 765 766 #: includes/classes/FieldGroups.php:1637 767 msgid "ex: All products" 768 msgstr "" 769 770 #: includes/classes/FieldGroups.php:1648 771 msgid "Archivies" 772 msgstr "" 773 774 #: includes/classes/FieldGroups.php:1649 775 msgid "The archives text." 776 msgstr "" 777 778 #: includes/classes/FieldGroups.php:1653 779 msgid "ex: Product archives" 780 msgstr "" 781 782 #: includes/classes/PostTypes.php:28 783 msgid "Post type created with the \"Custom post types\" plugin." 784 msgstr "" 785 786 #: includes/classes/PostTypes.php:56 includes/classes/Taxonomies.php:54 787 #, php-format 788 msgid "%s" 789 msgstr "" 790 791 #: includes/classes/PostTypes.php:59 792 #, php-format 793 msgid "Add New %s" 794 msgstr "" 795 796 #: includes/classes/PostTypes.php:60 includes/classes/Taxonomies.php:57 797 #, php-format 798 msgid "Edit %s" 799 msgstr "" 800 801 #: includes/classes/PostTypes.php:61 802 #, php-format 803 msgid "New %s" 804 msgstr "" 805 806 #: includes/classes/PostTypes.php:62 includes/classes/PostTypes.php:63 807 #: includes/classes/Taxonomies.php:58 808 #, php-format 809 msgid "View %s" 810 msgstr "" 811 812 #: includes/classes/PostTypes.php:64 includes/classes/Taxonomies.php:64 813 #, php-format 814 msgid "Search %s" 815 msgstr "" 816 817 #: includes/classes/PostTypes.php:65 includes/classes/Taxonomies.php:69 818 #, php-format 819 msgid "No %s found." 820 msgstr "" 821 822 #: includes/classes/PostTypes.php:66 823 #, php-format 824 msgid "No %s found in Trash." 825 msgstr "" 826 827 #: includes/classes/PostTypes.php:67 includes/classes/Taxonomies.php:62 828 #: includes/classes/Taxonomies.php:63 829 #, php-format 830 msgid "Parent %s" 831 msgstr "" 832 833 #: includes/classes/PostTypes.php:68 includes/classes/Taxonomies.php:56 834 #, php-format 835 msgid "All %s" 836 msgstr "" 837 838 #: includes/classes/PostTypes.php:69 839 #, php-format 840 msgid "%s Archives" 841 msgstr "" 842 843 #: includes/classes/PostTypes.php:70 844 #, php-format 845 msgid "%s Attributes" 846 msgstr "" 847 848 #: includes/classes/PostTypes.php:71 849 #, php-format 850 msgid "Insert into %s" 851 msgstr "" 852 853 #: includes/classes/PostTypes.php:72 854 #, php-format 855 msgid "Uploaded to this %s" 856 msgstr "" 857 858 #: includes/classes/PostTypes.php:73 859 msgid "Featured image" 860 msgstr "" 861 862 #: includes/classes/PostTypes.php:74 863 msgid "Set featured image" 864 msgstr "" 865 866 #: includes/classes/PostTypes.php:75 867 msgid "Remove featured image" 868 msgstr "" 869 870 #: includes/classes/PostTypes.php:76 871 msgid "Use as featured image" 872 msgstr "" 873 874 #: includes/classes/PostTypes.php:77 875 #, php-format 876 msgid "Filter %s list" 877 msgstr "" 878 879 #: includes/classes/PostTypes.php:78 880 #, php-format 881 msgid "%s list navigation" 882 msgstr "" 883 884 #: includes/classes/PostTypes.php:79 885 #, php-format 886 msgid "%s list" 887 msgstr "" 888 889 #: includes/classes/PostTypes.php:80 890 #, php-format 891 msgid "%s published." 892 msgstr "" 893 894 #: includes/classes/PostTypes.php:81 895 #, php-format 896 msgid "%s published privately." 897 msgstr "" 898 899 #: includes/classes/PostTypes.php:82 900 #, php-format 901 msgid "%s reverted to draft." 902 msgstr "" 903 904 #: includes/classes/PostTypes.php:83 905 #, php-format 906 msgid "%s scheduled." 907 msgstr "" 908 909 #: includes/classes/PostTypes.php:84 910 #, php-format 911 msgid "%s updated." 912 msgstr "" 913 914 #: includes/classes/PostTypes.php:238 915 msgid "Post type registration was not successful (\"id\" \"singular\" and \"plural\" args are required)." 916 msgstr "" 917 918 #: includes/classes/PostTypes.php:254 919 msgid "Post type reserved or already registered, try a different \"id\"." 920 msgstr "" 921 922 #: includes/classes/PostTypes.php:288 923 msgid "Post type registration was not successful." 924 msgstr "" 925 926 #: includes/classes/Taxonomies.php:28 927 msgid "Taxonomy created with the \"Custom post types\" plugin." 928 msgstr "" 929 930 #: includes/classes/Taxonomies.php:59 931 #, php-format 932 msgid "Update %s" 933 msgstr "" 934 935 #: includes/classes/Taxonomies.php:60 936 #, php-format 937 msgid "Add %s" 938 msgstr "" 939 940 #: includes/classes/Taxonomies.php:61 941 #, php-format 942 msgid "%s name" 943 msgstr "" 944 945 #: includes/classes/Taxonomies.php:65 946 #, php-format 947 msgid "Popular %s" 948 msgstr "" 949 950 #: includes/classes/Taxonomies.php:66 951 #, php-format 952 msgid "Separate %s with commas" 953 msgstr "" 954 955 #: includes/classes/Taxonomies.php:67 956 #, php-format 957 msgid "Add or remove %s" 958 msgstr "" 959 960 #: includes/classes/Taxonomies.php:68 961 #, php-format 962 msgid "Choose from the most used %s" 963 msgstr "" 964 965 #: includes/classes/Taxonomies.php:70 966 #, php-format 967 msgid "← Back to %s" 968 msgstr "" 969 970 #: includes/classes/Taxonomies.php:190 971 msgid "Taxonomy registration was not successful (\"id\" \"singular\" and \"plural\" args are required)." 972 msgstr "" 973 974 #: includes/classes/Taxonomies.php:206 975 msgid "Taxonomy reserved or already registered, try a different \"id\"." 976 msgstr "" 977 978 #: includes/classes/Taxonomies.php:235 979 msgid "Taxonomy registration was not successful." 980 msgstr "" 981 982 #: includes/classes/Utils.php:69 includes/fields/post_rel.php:78 983 msgid "Posts" 984 msgstr "" 985 986 #: includes/classes/Utils.php:70 987 msgid "Pages" 988 msgstr "" 989 990 #: includes/classes/Utils.php:87 includes/fields/tax_rel.php:78 991 msgid "Categories" 992 msgstr "" 993 994 #: includes/classes/Utils.php:88 995 msgid "Tags" 996 msgstr "" 997 998 #: includes/classes/Utils.php:103 includes/classes/Utils.php:104 999 #: includes/classes/Utils.php:105 includes/classes/Utils.php:106 1000 #: includes/classes/Utils.php:107 1001 msgid "Settings" 1002 msgstr "" 1003 1004 #: includes/classes/Utils.php:104 1005 msgid "Writing" 1006 msgstr "" 1007 1008 #: includes/classes/Utils.php:105 1009 msgid "Reading" 1010 msgstr "" 1011 1012 #: includes/classes/Utils.php:106 1013 msgid "Discussion" 1014 msgstr "" 1015 1016 #: includes/classes/Utils.php:107 1017 msgid "Media" 1018 msgstr "" 1019 1020 #: includes/classes/Utils.php:172 includes/classes/Utils.php:553 1021 msgid "Post types" 1022 msgstr "" 1023 1024 #: includes/classes/Utils.php:178 includes/classes/Utils.php:606 1025 #: includes/classes/Utils.php:618 1026 msgid "Taxonomies" 1027 msgstr "" 1028 1029 #: includes/classes/Utils.php:184 includes/classes/Utils.php:423 1030 msgid "Admin pages" 1031 msgstr "" 1032 1033 #: includes/classes/Utils.php:188 1034 msgid "Extra" 1035 msgstr "" 1036 1037 #: includes/classes/Utils.php:189 includes/classes/Utils.php:772 1038 msgid "Users" 1039 msgstr "" 1040 1041 #: includes/classes/Utils.php:272 1042 msgid "Post title" 1043 msgstr "" 1044 1045 #: includes/classes/Utils.php:273 1046 msgid "Post content" 1047 msgstr "" 1048 1049 #: includes/classes/Utils.php:274 1050 msgid "Post excerpt" 1051 msgstr "" 1052 1053 #: includes/classes/Utils.php:275 1054 msgid "Post image" 1055 msgstr "" 1056 1057 #: includes/classes/Utils.php:276 1058 msgid "Post author" 1059 msgstr "" 1060 1061 #: includes/classes/Utils.php:277 1062 msgid "Post date" 1063 msgstr "" 1064 1065 #: includes/classes/Utils.php:278 1066 msgid "Post modified date" 1067 msgstr "" 1068 1069 #: includes/classes/Utils.php:291 1070 msgid "Term name" 1071 msgstr "" 1072 1073 #: includes/classes/Utils.php:292 1074 msgid "Term description" 1075 msgstr "" 1076 1077 #: includes/classes/Utils.php:361 includes/classes/Utils.php:370 1078 msgid "Click to copy" 1079 msgstr "" 1080 1081 #: includes/classes/Utils.php:375 includes/classes/Utils.php:376 1082 msgid "No shortcodes available" 1083 msgstr "" 1084 1085 #: includes/classes/Utils.php:393 1086 msgid "This feature requires the <u>PRO version</u> and a valid license key." 1087 msgstr "" 1088 1089 #: includes/classes/Utils.php:414 1090 msgid "Templates" 1091 msgstr "" 1092 1093 #: includes/classes/Utils.php:432 1094 msgid "Admin notices" 1095 msgstr "" 1096 1097 #: includes/classes/Utils.php:459 1098 msgid "<strong>Custom post types</strong> notice:" 1099 msgstr "" 1100 1101 #: includes/classes/Utils.php:477 1102 msgid "See registration args" 1103 msgstr "" 1104 1105 #: includes/classes/Utils.php:552 includes/classes/Utils.php:556 1106 #: includes/classes/Utils.php:558 includes/fields/post_rel.php:73 1107 msgid "Post type" 1108 msgstr "" 1109 1110 #: includes/classes/Utils.php:557 1111 msgid "Extend / Manage" 1112 msgstr "" 1113 1114 #: includes/classes/Utils.php:559 1115 msgid "Add post type" 1116 msgstr "" 1117 1118 #: includes/classes/Utils.php:560 1119 msgid "Add new post type" 1120 msgstr "" 1121 1122 #: includes/classes/Utils.php:561 1123 msgid "New post type" 1124 msgstr "" 1125 1126 #: includes/classes/Utils.php:562 1127 msgid "Edit post type" 1128 msgstr "" 1129 1130 #: includes/classes/Utils.php:563 1131 msgid "View post type" 1132 msgstr "" 1133 1134 #: includes/classes/Utils.php:566 1135 msgid "Search post type" 1136 msgstr "" 1137 1138 #: includes/classes/Utils.php:567 1139 msgid "No post type available." 1140 msgstr "" 1141 1142 #: includes/classes/Utils.php:568 1143 msgid "No post type in the trash." 1144 msgstr "" 1145 1146 #: includes/classes/Utils.php:571 1147 msgid "Create and manage custom post types." 1148 msgstr "" 1149 1150 #: includes/classes/Utils.php:584 includes/classes/Utils.php:638 1151 msgid "Count" 1152 msgstr "" 1153 1154 #: includes/classes/Utils.php:594 includes/classes/Utils.php:648 1155 #: includes/classes/Utils.php:664 includes/classes/Utils.php:751 1156 #: includes/classes/Utils.php:761 includes/classes/Utils.php:771 1157 #: includes/classes/Utils.php:782 1158 msgid "View" 1159 msgstr "" 1160 1161 #: includes/classes/Utils.php:605 includes/classes/Utils.php:609 1162 #: includes/classes/Utils.php:610 includes/classes/Utils.php:611 1163 #: includes/fields/tax_rel.php:73 1164 msgid "Taxonomy" 1165 msgstr "" 1166 1167 #: includes/classes/Utils.php:608 1168 msgid "Custom taxonomies" 1169 msgstr "" 1170 1171 #: includes/classes/Utils.php:612 1172 msgid "Add taxonomy" 1173 msgstr "" 1174 1175 #: includes/classes/Utils.php:613 1176 msgid "Add new taxonomy" 1177 msgstr "" 1178 1179 #: includes/classes/Utils.php:614 1180 msgid "New taxonomy" 1181 msgstr "" 1182 1183 #: includes/classes/Utils.php:615 1184 msgid "Edit taxonomy" 1185 msgstr "" 1186 1187 #: includes/classes/Utils.php:616 1188 msgid "View taxonomy" 1189 msgstr "" 1190 1191 #: includes/classes/Utils.php:619 1192 msgid "Search taxonomy" 1193 msgstr "" 1194 1195 #: includes/classes/Utils.php:620 1196 msgid "No taxonomy available." 1197 msgstr "" 1198 1199 #: includes/classes/Utils.php:621 1200 msgid "No taxonomy in the trash." 1201 msgstr "" 1202 1203 #: includes/classes/Utils.php:624 1204 msgid "Create and manage custom taxonomies." 1205 msgstr "" 1206 1207 #: includes/classes/Utils.php:677 includes/classes/Utils.php:681 1208 #: includes/classes/Utils.php:682 includes/classes/Utils.php:683 1209 msgid "Field group" 1210 msgstr "" 1211 1212 #: includes/classes/Utils.php:678 includes/classes/Utils.php:690 1213 msgid "Field groups" 1214 msgstr "" 1215 1216 #: includes/classes/Utils.php:680 1217 msgid "Custom field groups" 1218 msgstr "" 1219 1220 #: includes/classes/Utils.php:684 1221 msgid "Add field group" 1222 msgstr "" 1223 1224 #: includes/classes/Utils.php:685 1225 msgid "Add new field group" 1226 msgstr "" 1227 1228 #: includes/classes/Utils.php:686 1229 msgid "New field group" 1230 msgstr "" 1231 1232 #: includes/classes/Utils.php:687 1233 msgid "Edit field group" 1234 msgstr "" 1235 1236 #: includes/classes/Utils.php:688 1237 msgid "View field group" 1238 msgstr "" 1239 1240 #: includes/classes/Utils.php:691 1241 msgid "Search field group" 1242 msgstr "" 1243 1244 #: includes/classes/Utils.php:692 1245 msgid "No field group available." 1246 msgstr "" 1247 1248 #: includes/classes/Utils.php:693 1249 msgid "No field group in the trash." 1250 msgstr "" 1251 1252 #: includes/classes/Utils.php:696 1253 msgid "Create and manage custom field groups." 1254 msgstr "" 1255 1256 #: includes/classes/Utils.php:702 1257 msgid "Name" 1258 msgstr "" 1259 1260 #: includes/classes/Utils.php:705 1261 msgid "Fields" 1262 msgstr "" 1263 1264 #: includes/classes/Utils.php:813 1265 msgid "Tools & Infos" 1266 msgstr "" 1267 1268 #: includes/fields/checkbox.php:7 1299 #: includes/class-cpt-utils.php:624 1300 msgid "Placeholder" 1301 msgstr "" 1302 1303 #: includes/class-cpt-utils.php:651 1304 msgid "Min" 1305 msgstr "" 1306 1307 #: includes/class-cpt-utils.php:675 1308 msgid "Max" 1309 msgstr "" 1310 1311 #: includes/class-cpt-utils.php:697 1312 msgid "Prepend" 1313 msgstr "" 1314 1315 #: includes/class-cpt-utils.php:719 1316 msgid "Append" 1317 msgstr "" 1318 1319 #: includes/fields/class-cpt-field-checkbox.php:17 1269 1320 msgid "Checkbox" 1270 1321 msgstr "" 1271 1322 1272 #: includes/fields/checkbox.php:25 includes/fields/radio.php:25 1273 #: includes/fields/select.php:89 1323 #: includes/fields/class-cpt-field-checkbox.php:27 1324 #: includes/fields/class-cpt-field-radio.php:27 1325 #: includes/fields/class-cpt-field-select.php:37 1274 1326 msgid "Options" 1275 1327 msgstr "" 1276 1328 1277 #: includes/fields/checkbox.php:26 includes/fields/radio.php:26 1278 #: includes/fields/select.php:90 1329 #: includes/fields/class-cpt-field-checkbox.php:28 1330 #: includes/fields/class-cpt-field-radio.php:28 1331 #: includes/fields/class-cpt-field-select.php:38 1279 1332 msgid "One per row (value|label)." 1280 1333 msgstr "" 1281 1334 1282 #: includes/fields/c olor.php:71335 #: includes/fields/class-cpt-field-color.php:17 1283 1336 msgid "Color picker" 1284 1337 msgstr "" 1285 1338 1286 #: includes/fields/c olor.php:211339 #: includes/fields/class-cpt-field-color.php:27 1287 1340 msgid "Alpha color" 1288 1341 msgstr "" 1289 1342 1290 #: includes/fields/ date.php:71343 #: includes/fields/class-cpt-field-date.php:17 1291 1344 msgid "Date picker" 1292 1345 msgstr "" 1293 1346 1294 #: includes/fields/date.php:24 includes/fields/email.php:22 1295 #: includes/fields/number.php:23 includes/fields/post_rel.php:38 1296 #: includes/fields/select.php:54 includes/fields/tax_rel.php:38 1297 #: includes/fields/tel.php:21 includes/fields/text.php:21 1298 #: includes/fields/textarea.php:23 includes/fields/time.php:26 1299 #: includes/fields/tinymce.php:22 1300 msgid "Placeholder" 1301 msgstr "" 1302 1303 #: includes/fields/date.php:38 1304 msgid "Minimum limit to selectable date" 1305 msgstr "" 1306 1307 #: includes/fields/date.php:52 1308 msgid "Maximum limit to selectable date" 1309 msgstr "" 1310 1311 #: includes/fields/email.php:7 1347 #: includes/fields/class-cpt-field-email.php:17 1312 1348 msgid "Email" 1313 1349 msgstr "" 1314 1350 1315 #: includes/fields/file.php:7 1351 #: includes/fields/class-cpt-field-embed.php:17 1352 msgid "Embed" 1353 msgstr "" 1354 1355 #: includes/fields/class-cpt-field-file.php:17 1316 1356 msgid "File upload" 1317 1357 msgstr "" 1318 1358 1319 #: includes/fields/file.php:22 includes/fields/file.php:27 1320 #: includes/fields/file.php:28 1359 #: includes/fields/class-cpt-field-file.php:32 1360 #: includes/fields/class-cpt-field-file.php:35 1361 msgid "Image (all extensions)" 1362 msgstr "" 1363 1364 #: includes/fields/class-cpt-field-file.php:36 1365 msgid "Audio (all extensions)" 1366 msgstr "" 1367 1368 #: includes/fields/class-cpt-field-file.php:37 1369 msgid "Video (all extensions)" 1370 msgstr "" 1371 1372 #: includes/fields/class-cpt-field-file.php:38 1373 msgid ".pdf" 1374 msgstr "" 1375 1376 #: includes/fields/class-cpt-field-file.php:39 1377 msgid ".zip" 1378 msgstr "" 1379 1380 #: includes/fields/class-cpt-field-file.php:40 1381 msgid ".txt" 1382 msgstr "" 1383 1384 #: includes/fields/class-cpt-field-file.php:41 1385 msgid ".doc" 1386 msgstr "" 1387 1388 #: includes/fields/class-cpt-field-file.php:75 1389 #: includes/fields/class-cpt-field-file.php:80 1390 #: includes/fields/class-cpt-field-file.php:81 1321 1391 msgid "Choose" 1322 1392 msgstr "" 1323 1393 1324 #: includes/fields/file.php:32 includes/fields/file.php:33 1325 #: includes/fields/repeater.php:21 includes/fields/repeater.php:22 1394 #: includes/fields/class-cpt-field-file.php:85 1395 #: includes/fields/class-cpt-field-file.php:86 1396 #: includes/fields/class-cpt-field-repeater.php:80 1397 #: includes/fields/class-cpt-field-repeater.php:81 1326 1398 msgid "Remove" 1327 1399 msgstr "" 1328 1400 1329 #: includes/fields/file.php:51 includes/fields/file.php:54 1330 msgid "Image (all extensions)" 1331 msgstr "" 1332 1333 #: includes/fields/file.php:55 1334 msgid "Audio (all extensions)" 1335 msgstr "" 1336 1337 #: includes/fields/file.php:56 1338 msgid "Video (all extensions)" 1339 msgstr "" 1340 1341 #: includes/fields/file.php:57 1342 msgid ".pdf" 1343 msgstr "" 1344 1345 #: includes/fields/file.php:58 1346 msgid ".zip" 1347 msgstr "" 1348 1349 #: includes/fields/file.php:59 1350 msgid ".txt" 1351 msgstr "" 1352 1353 #: includes/fields/file.php:60 1354 msgid ".doc" 1355 msgstr "" 1356 1357 #: includes/fields/html.php:7 1401 #: includes/fields/class-cpt-field-html.php:17 1358 1402 msgid "Html" 1359 1403 msgstr "" 1360 1404 1361 #: includes/fields/ html.php:141405 #: includes/fields/class-cpt-field-html.php:27 1362 1406 msgid "Content" 1363 1407 msgstr "" 1364 1408 1365 #: includes/fields/number.php:7 1409 #: includes/fields/class-cpt-field-link.php:17 1410 msgid "Link" 1411 msgstr "" 1412 1413 #: includes/fields/class-cpt-field-map.php:17 1414 msgid "Map" 1415 msgstr "" 1416 1417 #: includes/fields/class-cpt-field-number.php:17 1366 1418 msgid "Number" 1367 1419 msgstr "" 1368 1420 1369 #: includes/fields/number.php:37 1370 msgid "Min" 1371 msgstr "" 1372 1373 #: includes/fields/number.php:53 1374 msgid "Max" 1375 msgstr "" 1376 1377 #: includes/fields/post_rel.php:7 1421 #: includes/fields/class-cpt-field-password.php:17 1422 msgid "Password" 1423 msgstr "" 1424 1425 #: includes/fields/class-cpt-field-post-rel.php:17 1378 1426 msgid "Post relationship" 1379 1427 msgstr "" 1380 1428 1381 #: includes/fields/post_rel.php:52 includes/fields/select.php:68 1382 #: includes/fields/tax_rel.php:52 1429 #: includes/fields/class-cpt-field-post-rel.php:28 1430 #: includes/fields/class-cpt-field-select.php:28 1431 #: includes/fields/class-cpt-field-tax-rel.php:28 1383 1432 msgid "Multiple" 1384 1433 msgstr "" 1385 1434 1386 #: includes/fields/pro-only.php:7 1435 #: includes/fields/class-cpt-field-radio.php:17 1436 msgid "Radio" 1437 msgstr "" 1438 1439 #: includes/fields/class-cpt-field-range.php:17 1387 1440 msgid "Range" 1388 1441 msgstr "" 1389 1442 1390 #: includes/fields/pro-only.php:11 1443 #: includes/fields/class-cpt-field-repeater.php:17 1444 msgid "Repeater" 1445 msgstr "" 1446 1447 #: includes/fields/class-cpt-field-repeater.php:53 1448 msgid "Add" 1449 msgstr "" 1450 1451 #: includes/fields/class-cpt-field-repeater.php:75 1452 #: includes/fields/class-cpt-field-repeater.php:76 1453 msgid "Reorder" 1454 msgstr "" 1455 1456 #: includes/fields/class-cpt-field-repeater.php:114 1457 #: includes/fields/class-cpt-field-repeater.php:115 1458 #: includes/fields/class-cpt-field-repeater.php:116 1459 #: includes/templates/modal-feedback.php:48 1460 msgid "Cancel" 1461 msgstr "" 1462 1463 #: includes/fields/class-cpt-field-repeater.php:119 1464 #: includes/fields/class-cpt-field-repeater.php:120 1465 #: includes/fields/class-cpt-field-repeater.php:121 1466 msgid "Confirm" 1467 msgstr "" 1468 1469 #: includes/fields/class-cpt-field-select.php:17 1470 msgid "Dropdown" 1471 msgstr "" 1472 1473 #: includes/fields/class-cpt-field-separator.php:17 1474 msgid "Separator" 1475 msgstr "" 1476 1477 #: includes/fields/class-cpt-field-switch.php:17 1391 1478 msgid "Switch ON/OFF" 1392 1479 msgstr "" 1393 1480 1394 #: includes/fields/pro-only.php:15 1395 msgid "Password" 1396 msgstr "" 1397 1398 #: includes/fields/pro-only.php:19 1399 msgid "Link" 1400 msgstr "" 1401 1402 #: includes/fields/pro-only.php:23 1481 #: includes/fields/class-cpt-field-tax-rel.php:17 1482 msgid "Taxonomy relationship" 1483 msgstr "" 1484 1485 #: includes/fields/class-cpt-field-tel.php:17 1486 msgid "Tel" 1487 msgstr "" 1488 1489 #: includes/fields/class-cpt-field-text.php:17 1490 msgid "Text" 1491 msgstr "" 1492 1493 #: includes/fields/class-cpt-field-textarea.php:17 1494 msgid "Textarea" 1495 msgstr "" 1496 1497 #: includes/fields/class-cpt-field-textarea.php:28 1498 msgid "Rows" 1499 msgstr "" 1500 1501 #: includes/fields/class-cpt-field-textarea.php:45 1502 msgid "Columns" 1503 msgstr "" 1504 1505 #: includes/fields/class-cpt-field-time.php:17 1506 msgid "Time picker" 1507 msgstr "" 1508 1509 #: includes/fields/class-cpt-field-tinymce.php:17 1510 msgid "WYSIWYG editor" 1511 msgstr "" 1512 1513 #: includes/fields/class-cpt-field-tinymce.php:28 1514 msgid "Auto-resize" 1515 msgstr "" 1516 1517 #: includes/fields/class-cpt-field-user-rel.php:17 1403 1518 msgid "User relationship" 1404 1519 msgstr "" 1405 1520 1406 #: includes/fields/pro-only.php:27 1407 msgid "Separator" 1408 msgstr "" 1409 1410 #: includes/fields/pro-only.php:34 1411 msgid "PRO only" 1412 msgstr "" 1413 1414 #: includes/fields/radio.php:7 1415 msgid "Radio" 1416 msgstr "" 1417 1418 #: includes/fields/repeater.php:16 includes/fields/repeater.php:17 1419 msgid "Reorder" 1420 msgstr "" 1421 1422 #: includes/fields/repeater.php:54 includes/fields/repeater.php:55 1423 #: includes/fields/repeater.php:56 1424 msgid "Cancel" 1425 msgstr "" 1426 1427 #: includes/fields/repeater.php:59 includes/fields/repeater.php:60 1428 #: includes/fields/repeater.php:61 1429 msgid "Confirm" 1430 msgstr "" 1431 1432 #: includes/fields/repeater.php:69 1433 msgid "Repeater" 1434 msgstr "" 1435 1436 #: includes/fields/repeater.php:86 1437 msgid "Add" 1438 msgstr "" 1439 1440 #: includes/fields/select.php:7 1441 msgid "Dropdown" 1442 msgstr "" 1443 1444 #: includes/fields/tax_rel.php:7 1445 msgid "Taxonomy relationship" 1446 msgstr "" 1447 1448 #: includes/fields/tel.php:7 1449 msgid "Tel" 1450 msgstr "" 1451 1452 #: includes/fields/text.php:7 1453 msgid "Text" 1454 msgstr "" 1455 1456 #: includes/fields/textarea.php:7 1457 msgid "Textarea" 1458 msgstr "" 1459 1460 #: includes/fields/textarea.php:37 1461 msgid "Rows" 1462 msgstr "" 1463 1464 #: includes/fields/textarea.php:54 1465 msgid "Columns" 1466 msgstr "" 1467 1468 #: includes/fields/time.php:7 1469 msgid "Time picker" 1470 msgstr "" 1471 1472 #: includes/fields/time.php:40 1473 msgid "Minimum limit to selectable time" 1474 msgstr "" 1475 1476 #: includes/fields/time.php:54 1477 msgid "Maximum limit to selectable time" 1478 msgstr "" 1479 1480 #: includes/fields/tinymce.php:7 1481 msgid "WYSIWYG editor" 1482 msgstr "" 1483 1484 #: includes/fields/tinymce.php:36 1485 msgid "Auto-resize" 1486 msgstr "" 1487 1488 #: includes/views/tools.php:19 1521 #: includes/templates/modal-feedback.php:7 1522 msgid "Error / Bug" 1523 msgstr "" 1524 1525 #: includes/templates/modal-feedback.php:8 1526 msgid "Safety / performance" 1527 msgstr "" 1528 1529 #: includes/templates/modal-feedback.php:9 1530 msgid "Compatibility" 1531 msgstr "" 1532 1533 #: includes/templates/modal-feedback.php:10 1534 msgid "Bad UI experience" 1535 msgstr "" 1536 1537 #: includes/templates/modal-feedback.php:11 1538 msgid "Bad features" 1539 msgstr "" 1540 1541 #: includes/templates/modal-feedback.php:12 1542 msgid "Use another plugin" 1543 msgstr "" 1544 1545 #: includes/templates/modal-feedback.php:22 1546 msgid "Our mission is to improve the plugin to make it a complete and reliable tool for extending WordPress." 1547 msgstr "" 1548 1549 #: includes/templates/modal-feedback.php:23 1550 msgid "Your anonymous feedback can help us improve. Thank you!" 1551 msgstr "" 1552 1553 #: includes/templates/modal-feedback.php:26 1554 msgid "Choose the reasons for deactivation (multiple accepted):" 1555 msgstr "" 1556 1557 #: includes/templates/modal-feedback.php:39 1558 msgid "Your suggestion for improvement:" 1559 msgstr "" 1560 1561 #: includes/templates/modal-feedback.php:40 1562 msgid "..." 1563 msgstr "" 1564 1565 #: includes/templates/modal-feedback.php:54 1566 msgid "Deactivate" 1567 msgstr "" 1568 1569 #: includes/templates/page-tools.php:6 1570 msgid "Export" 1571 msgstr "" 1572 1573 #: includes/templates/page-tools.php:7 1574 msgid "Import" 1575 msgstr "" 1576 1577 #: includes/templates/page-tools.php:35 1489 1578 msgid "Infos" 1490 1579 msgstr "" 1491 1580 1492 #: includes/views/tools.php:25 1493 msgid "Export" 1494 msgstr "" 1495 1496 #: includes/views/tools.php:31 1497 msgid "Import" 1498 msgstr "" 1499 1500 #: includes/views/tools.php:36 1581 #: includes/templates/page-tools.php:48 1501 1582 msgid "Documentation" 1502 1583 msgstr "" 1503 1584 1504 #: includes/ views/tools.php:441585 #: includes/templates/page-tools.php:56 1505 1586 msgid "This tool allows you to <u>import</u> all plugin settings (post types, taxonomies, field groups and templates)." 1506 1587 msgstr "" 1507 1588 1508 #: includes/ views/tools.php:521589 #: includes/templates/page-tools.php:64 1509 1590 msgid "This tool allows you to <u>export</u> all plugin settings (post types, taxonomies, field groups and templates)." 1510 1591 msgstr "" 1511 1592 1512 #: includes/ views/tools.php:621593 #: includes/templates/page-tools.php:78 1513 1594 msgid "The purpose of the plugin is to <u>extend the features of the CMS</u> by adding custom content types without writing code or knowledge of development languages." 1514 1595 msgstr "" 1515 1596 1516 #: includes/ views/tools.php:651597 #: includes/templates/page-tools.php:81 1517 1598 msgid "This plugin is <strong>FREE</strong> and the developer guarantees frequent updates (for security and compatibility), if this plugin is useful <u>please support the development</u>." 1518 1599 msgstr "" 1519 1600 1520 #: includes/ views/tools.php:711601 #: includes/templates/page-tools.php:87 1521 1602 msgid "Support the project" 1522 1603 msgstr "" 1523 1604 1524 #: includes/ views/tools.php:931605 #: includes/templates/page-tools.php:109 1525 1606 msgid "Other infos" 1526 1607 msgstr "" 1527 1608 1528 #: includes/ views/tools.php:981609 #: includes/templates/page-tools.php:114 1529 1610 msgid "WordPress.org Plugin Page" 1530 1611 msgstr "" 1531 1612 1532 #: includes/ views/tools.php:1031613 #: includes/templates/page-tools.php:119 1533 1614 msgid "Official Support Page" 1534 1615 msgstr "" 1535 1616 1536 #: includes/ views/tools.php:1081617 #: includes/templates/page-tools.php:124 1537 1618 msgid "Plugin Documentation" 1538 1619 msgstr "" 1539 1620 1540 #: includes/ views/tools.php:1131621 #: includes/templates/page-tools.php:129 1541 1622 msgid "Tools" 1542 1623 msgstr "" 1543 1544 #: includes/views/tools.php:1181545 msgid "Export settings"1546 msgstr ""1547 1548 #: includes/views/tools.php:1231549 msgid "Import settings"1550 msgstr "" -
custom-post-types/trunk/readme.txt
r2961510 r2989869 5 5 Requires at least: 4.0 6 6 Tested up to: 6.3 7 Stable tag: 4.0.127 Stable tag: 5.0.0 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 78 78 * Color picker; 79 79 * File upload; 80 * Embed - **PRO**; 81 * Map - **PRO**; 80 82 * Post relationship; 81 83 * Taxonomy relationship; … … 96 98 ✔ **create custom admin pages;** 97 99 ✔ **create custom admin notices;** 98 ✔ **+ 6fields types;**100 ✔ **+8 fields types;** 99 101 ✔ **export settings;** 100 102 ✔ **import settings;** … … 186 188 == Changelog == 187 189 190 = 5.0.0 - 2023-11-06 = 191 * FIX: stored XSS vulnerability in admin screens with UI labels (thanks to Taihei Shimamine); 192 * FIX: repeater (remove the first item, and try to add a new item, this will overwrite the existing one); 193 * FIX: nested repeater (after first save, the add field button add multiple times as nested repeater); 194 * FIX: select2 conflicts; 195 * FIX: refresh rewrite rules after created content updating; 196 * FEAT: core refactoring to improve performance and security; 197 * FEAT: apply WordPress standard quality code rules; 198 * FEAT: check for pro min version; 199 * FEAT: improve all plugin hooks/filters; 200 * FEAT: Now can use on template {{cpt-field key=XXX}} instead [cpt-field key=XXX] (for all shortcode of this plugin); 201 * FEAT: Now the [cpt-field]/[cpt-*-field] shortcode accept a new argument "output-filter", if set to "0" the meta value is returned from db without apply filters, default true; 202 * FEAT: Now the [cpt-term] shortcode accept 2 new arguments: "output-type" links|names|ids, default links; "separator" default ", "; 203 * DEPRECATED: hook cpt_field_types; 204 188 205 = 4.0.12 - 2023-09-01 = 189 206 * Fix bug on admin page registration and not admin logged (@mhannpannos);
Note: See TracChangeset
for help on using the changeset viewer.